@acorex/platform 21.0.0-next.70 → 21.0.0-next.72

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.
Files changed (55) hide show
  1. package/fesm2022/acorex-platform-auth.mjs +10 -2
  2. package/fesm2022/acorex-platform-auth.mjs.map +1 -1
  3. package/fesm2022/{acorex-platform-common-common-settings.provider-Bi1RYif5.mjs → acorex-platform-common-common-settings.provider-Ytey9uhY.mjs} +15 -1
  4. package/fesm2022/acorex-platform-common-common-settings.provider-Ytey9uhY.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-common.mjs +3798 -1674
  6. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  7. package/fesm2022/acorex-platform-core.mjs +1362 -97
  8. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-layout-builder.mjs +446 -44
  10. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  11. package/fesm2022/acorex-platform-layout-components.mjs +149 -109
  12. package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
  13. package/fesm2022/acorex-platform-layout-designer.mjs +199 -126
  14. package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
  15. package/fesm2022/{acorex-platform-layout-entity-attachments-page.component-D8iQnT-R.mjs → acorex-platform-layout-entity-attachments-page.component-B0EkdqvH.mjs} +6 -1
  16. package/fesm2022/acorex-platform-layout-entity-attachments-page.component-B0EkdqvH.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-layout-entity.mjs +823 -594
  18. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  19. package/fesm2022/acorex-platform-layout-views.mjs +845 -218
  20. package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
  21. package/fesm2022/acorex-platform-layout-widget-core.mjs +122 -33
  22. package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
  23. package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-BcpRkpJp.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-DjpZU6gz.mjs} +2 -2
  24. package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-BcpRkpJp.mjs.map → acorex-platform-layout-widgets-tabular-data-edit-popup.component-DjpZU6gz.mjs.map} +1 -1
  25. package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-DQtK4lxl.mjs → acorex-platform-layout-widgets-tabular-data-view-popup.component-gX-3Kx9I.mjs} +2 -2
  26. package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-DQtK4lxl.mjs.map → acorex-platform-layout-widgets-tabular-data-view-popup.component-gX-3Kx9I.mjs.map} +1 -1
  27. package/fesm2022/acorex-platform-layout-widgets.mjs +312 -676
  28. package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
  29. package/fesm2022/acorex-platform-themes-default-error-401.component-B1nsdpTY.mjs +48 -0
  30. package/fesm2022/acorex-platform-themes-default-error-401.component-B1nsdpTY.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-themes-default-error-404.component-D4UvRe8u.mjs +42 -0
  32. package/fesm2022/acorex-platform-themes-default-error-404.component-D4UvRe8u.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-themes-default.mjs +89 -46
  34. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  35. package/fesm2022/acorex-platform-themes-shared.mjs +50 -30
  36. package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
  37. package/package.json +1 -1
  38. package/types/acorex-platform-auth.d.ts +2 -0
  39. package/types/acorex-platform-common.d.ts +899 -256
  40. package/types/acorex-platform-core.d.ts +394 -60
  41. package/types/acorex-platform-layout-builder.d.ts +78 -13
  42. package/types/acorex-platform-layout-components.d.ts +30 -24
  43. package/types/acorex-platform-layout-entity.d.ts +93 -44
  44. package/types/acorex-platform-layout-views.d.ts +162 -42
  45. package/types/acorex-platform-layout-widget-core.d.ts +60 -33
  46. package/types/acorex-platform-layout-widgets.d.ts +48 -20
  47. package/types/acorex-platform-themes-default.d.ts +38 -8
  48. package/types/acorex-platform-themes-shared.d.ts +6 -0
  49. package/types/acorex-platform-workflow.d.ts +1 -1
  50. package/fesm2022/acorex-platform-common-common-settings.provider-Bi1RYif5.mjs.map +0 -1
  51. package/fesm2022/acorex-platform-layout-entity-attachments-page.component-D8iQnT-R.mjs.map +0 -1
  52. package/fesm2022/acorex-platform-themes-default-error-401.component-C7EYJzSr.mjs +0 -31
  53. package/fesm2022/acorex-platform-themes-default-error-401.component-C7EYJzSr.mjs.map +0 -1
  54. package/fesm2022/acorex-platform-themes-default-error-404.component-7MVLMwIa.mjs +0 -25
  55. package/fesm2022/acorex-platform-themes-default-error-404.component-7MVLMwIa.mjs.map +0 -1
@@ -0,0 +1,48 @@
1
+ import * as i3 from '@acorex/components/button';
2
+ import { AXButtonModule } from '@acorex/components/button';
3
+ import * as i3$1 from '@acorex/core/translation';
4
+ import { AXTranslationModule } from '@acorex/core/translation';
5
+ import { AXPSessionService } from '@acorex/platform/auth';
6
+ import { AXPHomePageService } from '@acorex/platform/common';
7
+ import * as i1 from '@angular/common';
8
+ import { CommonModule } from '@angular/common';
9
+ import * as i0 from '@angular/core';
10
+ import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
11
+ import { Router } from '@angular/router';
12
+
13
+ class AXPError401Component {
14
+ constructor() {
15
+ //#region ---- Services & Dependencies ----
16
+ this.sessionService = inject(AXPSessionService);
17
+ this.homePageService = inject(AXPHomePageService);
18
+ this.router = inject(Router);
19
+ //#endregion
20
+ //#region ---- State ----
21
+ this.isAuthorized$ = this.sessionService.isAuthorized$;
22
+ }
23
+ //#endregion
24
+ //#region ---- UI Handlers ----
25
+ async goHome() {
26
+ if (this.sessionService.tenant?.id == null) {
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();
35
+ }
36
+ async signIn() {
37
+ await this.router.navigate(['/auth/login']);
38
+ }
39
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPError401Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
40
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXPError401Component, isStandalone: true, selector: "axp-error-401", ngImport: i0, template: "<div\n class=\"axp-error-401 ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center ax-bg-lightest dark:ax-bg-darkest\"\n>\n <img\n class=\"axp-error-401__image ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\"\n src=\"/assets/images/error/error-401.svg\"\n [attr.alt]=\"'@general:errors.401.image-alt' | translate | async\"\n />\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4 ax-text-center ax-px-4\">\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl ax-text-neutral-900 dark:ax-text-neutral-50\">\n {{ '@general:errors.401.title' | translate | async }}\n </h1>\n <p class=\"md:ax-text-lg ax-text-neutral-500 dark:ax-text-neutral-300\">\n {{ '@general:errors.401.description' | translate | async }}\n </p>\n </div>\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\n @if (isAuthorized$ | async) {\n <ax-button\n (onClick)=\"goHome()\"\n class=\"ax-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=\"ax-px-4\"\n color=\"primary\"\n [text]=\"'@general:errors.401.actions.sign-in.title' | translate | async\"\n ></ax-button>\n }\n </div>\n</div>\n", styles: [".axp-error-401__image:is(.ax-dark *){opacity:.9}.axp-error-401__image{filter:none}:host-context(.ax-dark) .axp-error-401__image,.ax-dark .axp-error-401__image{filter:brightness(.92) contrast(1.05)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "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: i3$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
41
+ }
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPError401Component, decorators: [{
43
+ type: Component,
44
+ args: [{ selector: 'axp-error-401', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, AXButtonModule, AXTranslationModule], template: "<div\n class=\"axp-error-401 ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center ax-bg-lightest dark:ax-bg-darkest\"\n>\n <img\n class=\"axp-error-401__image ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\"\n src=\"/assets/images/error/error-401.svg\"\n [attr.alt]=\"'@general:errors.401.image-alt' | translate | async\"\n />\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4 ax-text-center ax-px-4\">\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl ax-text-neutral-900 dark:ax-text-neutral-50\">\n {{ '@general:errors.401.title' | translate | async }}\n </h1>\n <p class=\"md:ax-text-lg ax-text-neutral-500 dark:ax-text-neutral-300\">\n {{ '@general:errors.401.description' | translate | async }}\n </p>\n </div>\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\n @if (isAuthorized$ | async) {\n <ax-button\n (onClick)=\"goHome()\"\n class=\"ax-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=\"ax-px-4\"\n color=\"primary\"\n [text]=\"'@general:errors.401.actions.sign-in.title' | translate | async\"\n ></ax-button>\n }\n </div>\n</div>\n", styles: [".axp-error-401__image:is(.ax-dark *){opacity:.9}.axp-error-401__image{filter:none}:host-context(.ax-dark) .axp-error-401__image,.ax-dark .axp-error-401__image{filter:brightness(.92) contrast(1.05)}\n"] }]
45
+ }] });
46
+
47
+ export { AXPError401Component };
48
+ //# sourceMappingURL=acorex-platform-themes-default-error-401.component-B1nsdpTY.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-themes-default-error-401.component-B1nsdpTY.mjs","sources":["../../../../libs/platform/themes/default/src/lib/pages/errors/error-401/error-401.component.ts","../../../../libs/platform/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/auth';\nimport { AXPHomePageService } from '@acorex/platform/common';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'axp-error-401',\n templateUrl: './error-401.component.html',\n styleUrls: ['./error-401.component.scss'],\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 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 if (this.sessionService.tenant?.id == null) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n\n if (this.sessionService.application?.id == null) {\n await this.router.navigate(['/auth/account/app-chooser']);\n return;\n }\n\n await this.homePageService.navigateTo();\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 ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center ax-bg-lightest dark:ax-bg-darkest\"\n>\n <img\n class=\"axp-error-401__image ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\"\n src=\"/assets/images/error/error-401.svg\"\n [attr.alt]=\"'@general:errors.401.image-alt' | translate | async\"\n />\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4 ax-text-center ax-px-4\">\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl ax-text-neutral-900 dark:ax-text-neutral-50\">\n {{ '@general:errors.401.title' | translate | async }}\n </h1>\n <p class=\"md:ax-text-lg ax-text-neutral-500 dark:ax-text-neutral-300\">\n {{ '@general:errors.401.description' | translate | async }}\n </p>\n </div>\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\n @if (isAuthorized$ | async) {\n <ax-button\n (onClick)=\"goHome()\"\n class=\"ax-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=\"ax-px-4\"\n color=\"primary\"\n [text]=\"'@general:errors.401.actions.sign-in.title' | translate | async\"\n ></ax-button>\n }\n </div>\n</div>\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;MAea,oBAAoB,CAAA;AAPjC,IAAA,WAAA,GAAA;;AAUmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,MAAM,G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AAA,EAAAC,IAAA,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,w1CAAA,EAAA,MAAA,EAAA,CAAA,yMAAA,CAAA,EAAA;;;;;"}
@@ -0,0 +1,42 @@
1
+ import * as i3 from '@acorex/components/button';
2
+ import { AXButtonModule } from '@acorex/components/button';
3
+ import * as i3$1 from '@acorex/core/translation';
4
+ import { AXTranslationModule } from '@acorex/core/translation';
5
+ import { AXPSessionService } from '@acorex/platform/auth';
6
+ import { AXPHomePageService } from '@acorex/platform/common';
7
+ import * as i1 from '@angular/common';
8
+ import { CommonModule } from '@angular/common';
9
+ import * as i0 from '@angular/core';
10
+ import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
11
+ import { Router } from '@angular/router';
12
+
13
+ class AXPError404Component {
14
+ constructor() {
15
+ //#region ---- Services & Dependencies ----
16
+ this.sessionService = inject(AXPSessionService);
17
+ this.homePageService = inject(AXPHomePageService);
18
+ this.router = inject(Router);
19
+ }
20
+ //#endregion
21
+ //#region ---- UI Handlers ----
22
+ async goHome() {
23
+ if (this.sessionService.tenant?.id == null) {
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();
32
+ }
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPError404Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: AXPError404Component, isStandalone: true, selector: "axp-error-404", ngImport: i0, template: "<div class=\"axp-error-404 ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center ax-bg-lightest dark:ax-bg-darkest\">\n <img\n class=\"axp-error-404__image ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/3\"\n src=\"/assets/images/error/error-404.svg\"\n [attr.alt]=\"'@general:errors.404.image-alt' | translate | async\"\n />\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4 ax-text-center ax-px-4\">\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl ax-text-neutral-900 dark:ax-text-neutral-50\">\n {{ '@general:errors.404.title' | translate | async }}\n </h1>\n <p class=\"md:ax-text-lg ax-text-neutral-500 dark:ax-text-neutral-300\">\n {{ '@general:errors.404.description' | translate | async }}\n </p>\n </div>\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\n <ax-button\n (onClick)=\"goHome()\"\n class=\"ax-px-4\"\n color=\"primary\"\n [text]=\"'@general:errors.404.actions.go-home.title' | translate | async\"\n ></ax-button>\n <ax-button\n class=\"ax-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:is(.ax-dark *){opacity:.9}.axp-error-404__image{filter:none}:host-context(.ax-dark) .axp-error-404__image,.ax-dark .axp-error-404__image{filter:brightness(.92) contrast(1.05)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "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: i3$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
+ }
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPError404Component, decorators: [{
37
+ type: Component,
38
+ args: [{ selector: 'axp-error-404', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, AXButtonModule, AXTranslationModule], template: "<div class=\"axp-error-404 ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center ax-bg-lightest dark:ax-bg-darkest\">\n <img\n class=\"axp-error-404__image ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/3\"\n src=\"/assets/images/error/error-404.svg\"\n [attr.alt]=\"'@general:errors.404.image-alt' | translate | async\"\n />\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4 ax-text-center ax-px-4\">\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl ax-text-neutral-900 dark:ax-text-neutral-50\">\n {{ '@general:errors.404.title' | translate | async }}\n </h1>\n <p class=\"md:ax-text-lg ax-text-neutral-500 dark:ax-text-neutral-300\">\n {{ '@general:errors.404.description' | translate | async }}\n </p>\n </div>\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\n <ax-button\n (onClick)=\"goHome()\"\n class=\"ax-px-4\"\n color=\"primary\"\n [text]=\"'@general:errors.404.actions.go-home.title' | translate | async\"\n ></ax-button>\n <ax-button\n class=\"ax-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:is(.ax-dark *){opacity:.9}.axp-error-404__image{filter:none}:host-context(.ax-dark) .axp-error-404__image,.ax-dark .axp-error-404__image{filter:brightness(.92) contrast(1.05)}\n"] }]
39
+ }] });
40
+
41
+ export { AXPError404Component };
42
+ //# sourceMappingURL=acorex-platform-themes-default-error-404.component-D4UvRe8u.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-themes-default-error-404.component-D4UvRe8u.mjs","sources":["../../../../libs/platform/themes/default/src/lib/pages/errors/error-404/error-404.component.ts","../../../../libs/platform/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/auth';\nimport { AXPHomePageService } from '@acorex/platform/common';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'axp-error-404',\n templateUrl: './error-404.component.html',\n styleUrls: ['./error-404.component.scss'],\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 router = inject(Router);\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n protected async goHome(): Promise<void> {\n if (this.sessionService.tenant?.id == null) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n\n if (this.sessionService.application?.id == null) {\n await this.router.navigate(['/auth/account/app-chooser']);\n return;\n }\n\n await this.homePageService.navigateTo();\n }\n\n //#endregion\n}\n","<div class=\"axp-error-404 ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center ax-bg-lightest dark:ax-bg-darkest\">\n <img\n class=\"axp-error-404__image ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/3\"\n src=\"/assets/images/error/error-404.svg\"\n [attr.alt]=\"'@general:errors.404.image-alt' | translate | async\"\n />\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4 ax-text-center ax-px-4\">\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl ax-text-neutral-900 dark:ax-text-neutral-50\">\n {{ '@general:errors.404.title' | translate | async }}\n </h1>\n <p class=\"md:ax-text-lg ax-text-neutral-500 dark:ax-text-neutral-300\">\n {{ '@general:errors.404.description' | translate | async }}\n </p>\n </div>\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\n <ax-button\n (onClick)=\"goHome()\"\n class=\"ax-px-4\"\n color=\"primary\"\n [text]=\"'@general:errors.404.actions.go-home.title' | translate | async\"\n ></ax-button>\n <ax-button\n class=\"ax-px-4\"\n color=\"default\"\n [text]=\"'@general:errors.404.actions.contact-us.title' | translate | async\"\n ></ax-button>\n </div>\n</div>\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;MAea,oBAAoB,CAAA;AAPjC,IAAA,WAAA,GAAA;;AAUmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AAqBzC,IAAA;;;AAfW,IAAA,MAAM,MAAM,GAAA;QACpB,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,IAAI,IAAI,EAAE;YAC1C,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,8BAA8B,CAAC,CAAC;YAC5D;QACF;QAEA,IAAI,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,EAAE,IAAI,IAAI,EAAE;YAC/C,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,2BAA2B,CAAC,CAAC;YACzD;QACF;AAEA,QAAA,MAAM,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE;IACzC;8GAvBW,oBA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