@acorex/platform 20.8.19 → 20.8.22

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.
@@ -0,0 +1,42 @@
1
+ import * as i3 from '@acorex/components/button';
2
+ import { AXButtonModule } from '@acorex/components/button';
3
+ import * as i10 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: "20.3.19", ngImport: i0, type: AXPError404Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", 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: i10.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
+ }
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", 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-CgVwJxdC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-themes-default-error-404.component-CgVwJxdC.mjs","sources":["../tmp-esm2022/themes/default/lib/pages/errors/error-404/error-404.component.js"],"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';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@acorex/components/button\";\nimport * as i2 from \"@angular/common\";\nimport * as i3 from \"@acorex/core/translation\";\nexport class AXPError404Component {\n constructor() {\n //#region ---- Services & Dependencies ----\n this.sessionService = inject(AXPSessionService);\n this.homePageService = inject(AXPHomePageService);\n this.router = inject(Router);\n }\n //#endregion\n //#region ---- UI Handlers ----\n async goHome() {\n if (this.sessionService.tenant?.id == null) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n if (this.sessionService.application?.id == null) {\n await this.router.navigate(['/auth/account/app-chooser']);\n return;\n }\n await this.homePageService.navigateTo();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.19\", ngImport: i0, type: AXPError404Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.3.19\", 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: i1.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: i2.AsyncPipe, name: \"async\" }, { kind: \"pipe\", type: i3.AXTranslatorPipe, name: \"translate\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.19\", ngImport: i0, type: AXPError404Component, decorators: [{\n type: Component,\n 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\"] }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItNDA0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcGxhdGZv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EAAE,uBAAuB,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,mBAAmB,CAAC,EAAE,QAAQ,EAAE,uuCAAuuC,EAAE,MAAM,EAAE,CAAC,yMAAyM,CAAC,EAAE;AACvmD,SAAS,CAAC,EAAE,CAAC;;;;"}
@@ -25,8 +25,8 @@ import * as i10 from '@acorex/core/translation';
25
25
  import { AXTranslationModule } from '@acorex/core/translation';
26
26
  import * as i2 from '@acorex/core/utils';
27
27
  import { AXUnsubscriber } from '@acorex/core/utils';
28
- import { AXPAuthModule, AXPSessionService, AXPSessionStatus, AXPAuthGuard } from '@acorex/platform/auth';
29
- import { AXPRefreshEvent, AXP_PLATFORM_CONFIG_TOKEN, AXPMenuService, AXPSettingsService, AXPMenuVisibilityService, AXPCommonModule } from '@acorex/platform/common';
28
+ import { AXPAuthModule, AXPSessionService, AXPSessionStatus } from '@acorex/platform/auth';
29
+ import { AXPRefreshEvent, AXP_PLATFORM_CONFIG_TOKEN, AXPMenuService, AXPSettingsService, AXPMenuVisibilityService, AXP_PROTECTED_ROUTE_GUARDS, AXPCommonModule } from '@acorex/platform/common';
30
30
  import * as i1$2 from '@acorex/platform/core';
31
31
  import { AXPDeviceService, AXPComponentSlotModule, AXPPlatformScope, AXPBroadcastEventService, AXPContextStore } from '@acorex/platform/core';
32
32
  import { AXP_ENTITY_CONFIG_TOKEN } from '@acorex/platform/layout/entity';
@@ -870,7 +870,7 @@ function routesFacory() {
870
870
  let routes = [
871
871
  {
872
872
  path: ':app/modules/:module/:entity',
873
- canActivate: [AXPAuthGuard],
873
+ canActivate: [...AXP_PROTECTED_ROUTE_GUARDS],
874
874
  loadComponent: () => {
875
875
  return config.viewers.root();
876
876
  },
@@ -894,7 +894,7 @@ function routesFacory() {
894
894
  },
895
895
  {
896
896
  path: '404',
897
- loadComponent: () => import('./acorex-platform-themes-default-error-404.component-DVF9soT5.mjs').then((c) => c.AXPError404Component),
897
+ loadComponent: () => import('./acorex-platform-themes-default-error-404.component-CgVwJxdC.mjs').then((c) => c.AXPError404Component),
898
898
  },
899
899
  {
900
900
  path: '401',
@@ -902,6 +902,16 @@ function routesFacory() {
902
902
  },
903
903
  ],
904
904
  },
905
+ {
906
+ path: '404',
907
+ redirectTo: 'error/404',
908
+ pathMatch: 'full',
909
+ },
910
+ {
911
+ path: '401',
912
+ redirectTo: 'error/401',
913
+ pathMatch: 'full',
914
+ },
905
915
  ];
906
916
  return routes;
907
917
  }