@acorex/platform 18.0.1 → 18.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/themes/default/acorex-platform-themes-default.mjs +5 -0
- package/esm2022/themes/default/index.mjs +3 -0
- package/esm2022/themes/default/lib/default.module.mjs +74 -0
- package/esm2022/themes/default/lib/entity-reuse.strategy.mjs +21 -0
- package/esm2022/themes/default/lib/layout.routes.mjs +20 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.mjs +114 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.mjs +93 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-list-view.component.mjs +157 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.mjs +64 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-sorting/list-view-option-sorting.component.mjs +61 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.mjs +82 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.mjs +77 -0
- package/esm2022/themes/default/lib/layouts/root-layout/components/footer/footer.component.mjs +14 -0
- package/esm2022/themes/default/lib/layouts/root-layout/components/header/header.component.mjs +29 -0
- package/esm2022/themes/default/lib/layouts/root-layout/index.mjs +5 -0
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.component.mjs +78 -0
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.module.mjs +91 -0
- package/esm2022/themes/default/lib/pages/errors/error-401/error-401.component.mjs +28 -0
- package/esm2022/themes/default/lib/pages/errors/error-404/error-404.component.mjs +22 -0
- package/esm2022/themes/default/lib/pages/errors/error-offline/error-offline.component.mjs +16 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Buanq4is.mjs +96 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Buanq4is.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-F7dr-osu.mjs +85 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-F7dr-osu.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-401.component-Djuin07Z.mjs +31 -0
- package/fesm2022/acorex-platform-themes-default-error-401.component-Djuin07Z.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-404.component-C-RyiLkk.mjs +25 -0
- package/fesm2022/acorex-platform-themes-default-error-404.component-C-RyiLkk.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-WCfy9-cr.mjs +19 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-WCfy9-cr.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +681 -0
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -0
- package/package.json +7 -1
- package/themes/default/README.md +3 -0
- package/themes/default/index.d.ts +2 -0
- package/themes/default/lib/default.module.d.ts +8 -0
- package/themes/default/lib/entity-reuse.strategy.d.ts +8 -0
- package/themes/default/lib/layout.routes.d.ts +2 -0
- package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +24 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.d.ts +17 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-list-view.component.d.ts +29 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.d.ts +18 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-sorting/list-view-option-sorting.component.d.ts +16 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.d.ts +16 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +13 -0
- package/themes/default/lib/layouts/root-layout/components/footer/footer.component.d.ts +5 -0
- package/themes/default/lib/layouts/root-layout/components/header/header.component.d.ts +10 -0
- package/themes/default/lib/layouts/root-layout/index.d.ts +4 -0
- package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +32 -0
- package/themes/default/lib/layouts/root-layout/root-layout.module.d.ts +24 -0
- package/themes/default/lib/pages/errors/error-401/error-401.component.d.ts +10 -0
- package/themes/default/lib/pages/errors/error-404/error-404.component.d.ts +8 -0
- package/themes/default/lib/pages/errors/error-offline/error-offline.component.d.ts +9 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
2
|
+
import { AXPSessionService } from '@acorex/platform/auth';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { Component, inject } from '@angular/core';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@acorex/components/button";
|
|
8
|
+
import * as i2 from "@angular/common";
|
|
9
|
+
export class AXPError401Component {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.sessionService = inject(AXPSessionService);
|
|
12
|
+
this.router = inject(Router);
|
|
13
|
+
this.isAuthorized$ = this.sessionService.isAuthorized$;
|
|
14
|
+
}
|
|
15
|
+
handleHomeClick() {
|
|
16
|
+
this.router.navigate([`/${this.sessionService.application?.name}/home`]);
|
|
17
|
+
}
|
|
18
|
+
handleSignInClick() {
|
|
19
|
+
this.router.navigate([`/auth/login`]);
|
|
20
|
+
}
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPError401Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPError401Component, isStandalone: true, selector: "axp-error-401", ngImport: i0, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\" src=\"/assets/images/error/error-401.svg\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">Hold on a second!</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Sorry, but you are not authorized to view this page.</p>\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n @if((isAuthorized$ | async))\r\n {\r\n <ax-button (onClick)=\"handleHomeClick()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n } @else {\r\n <ax-button (onClick)=\"handleSignInClick()\" class=\"ax-px-4\" color=\"primary\" text=\"Sign Up / Sign In\"></ax-button>\r\n }\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>", dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] }); }
|
|
23
|
+
}
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPError401Component, decorators: [{
|
|
25
|
+
type: Component,
|
|
26
|
+
args: [{ selector: 'axp-error-401', imports: [AXButtonModule, CommonModule], standalone: true, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\" src=\"/assets/images/error/error-401.svg\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">Hold on a second!</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Sorry, but you are not authorized to view this page.</p>\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n @if((isAuthorized$ | async))\r\n {\r\n <ax-button (onClick)=\"handleHomeClick()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n } @else {\r\n <ax-button (onClick)=\"handleSignInClick()\" class=\"ax-px-4\" color=\"primary\" text=\"Sign Up / Sign In\"></ax-button>\r\n }\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>" }]
|
|
27
|
+
}] });
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItNDAxLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcGxhdGZvcm0vdGhlbWVzL2RlZmF1bHQvc3JjL2xpYi9wYWdlcy9lcnJvcnMvZXJyb3ItNDAxL2Vycm9yLTQwMS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL3RoZW1lcy9kZWZhdWx0L3NyYy9saWIvcGFnZXMvZXJyb3JzL2Vycm9yLTQwMS9lcnJvci00MDEuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDJCQUEyQixDQUF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yBiYWNrIHRvIGhvbWVcIj48L2F4LWJ1dHRvbj5cclxuICAgICAgICB9IEBlbHNlIHtcclxuICAgICAgICA8YXgtYnV0dG9uIChvbkNsaWNrKT1cImhhbmRsZVNpZ25JbkNsaWNrKClcIiBjbGFzcz1cImF4LXB4LTRcIiBjb2xvcj1cInByaW1hcnlcIiB0ZXh0PVwiU2lnbiBVcCAvIFNpZ24gSW5cIj48L2F4LWJ1dHRvbj5cclxuICAgICAgICB9XHJcbiAgICAgICAgPGF4LWJ1dHRvbiBjbGFzcz1cImF4LXB4LTRcIiBjb2xvcj1cImdob3N0XCIgdGV4dD1cIkNvbnRhY3QgdXNcIj48L2F4LWJ1dHRvbj5cclxuICAgIDwvZGl2PlxyXG48L2Rpdj4iXX0=
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
2
|
+
import { AXPSessionService } from '@acorex/platform/auth';
|
|
3
|
+
import { Component, inject } from '@angular/core';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@acorex/components/button";
|
|
7
|
+
export class AXPError404Component {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.sessionService = inject(AXPSessionService);
|
|
10
|
+
this.router = inject(Router);
|
|
11
|
+
}
|
|
12
|
+
goHome() {
|
|
13
|
+
this.router.navigate([`/${this.sessionService.application?.name}/home`]);
|
|
14
|
+
}
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPError404Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPError404Component, isStandalone: true, selector: "axp-error-404", ngImport: i0, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/3\" src=\" /assets/images/error/error-404.svg\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">No Result Found.</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Whoops! Looks like that page doesn't exist.</p>\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n <ax-button (onClick)=\"goHome()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>", styles: [""], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }] }); }
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPError404Component, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{ selector: 'axp-error-404', imports: [AXButtonModule], standalone: true, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/3\" src=\" /assets/images/error/error-404.svg\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">No Result Found.</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Whoops! Looks like that page doesn't exist.</p>\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n <ax-button (onClick)=\"goHome()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>" }]
|
|
21
|
+
}] });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItNDA0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcGxhdGZvcm0vdGhlbWVzL2RlZmF1bHQvc3JjL2xpYi9wYWdlcy9lcnJvcnMvZXJyb3ItNDA0L2Vycm9yLTQwNC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL3RoZW1lcy9kZWZhdWx0L3NyYy9saWIvcGFnZXMvZXJyb3JzL2Vycm9yLTQwNC9lcnJvci00MDQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzNELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQzFELE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFELE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7O0FBU3pDLE1BQU0sT0FBTyxvQkFBb0I7SUFQakM7UUFTVSxtQkFBYyxHQUFHLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO1FBQzNDLFdBQU0sR0FBRyxNQUFNLENBQUMsT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gICAgPGF4LWJ1dHRvbiAob25DbGljayk9XCJnb0hvbWUoKVwiIGNsYXNzPVwiYXgtcHgtNFwiIGNvbG9yPVwicHJpbWFyeVwiIHRleHQ9XCJHbyBiYWNrIHRvIGhvbWVcIj48L2F4LWJ1dHRvbj5cclxuICAgICAgICA8YXgtYnV0dG9uIGNsYXNzPVwiYXgtcHgtNFwiIGNvbG9yPVwiZ2hvc3RcIiB0ZXh0PVwiQ29udGFjdCB1c1wiPjwvYXgtYnV0dG9uPlxyXG4gICAgPC9kaXY+XHJcbjwvZGl2PiJdfQ==
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@acorex/components/button";
|
|
5
|
+
export class AXPErrorOfflineComponent {
|
|
6
|
+
constructor() { }
|
|
7
|
+
ngOnInit() { }
|
|
8
|
+
goHome() { }
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPErrorOfflineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPErrorOfflineComponent, isStandalone: true, selector: "axp-error-offline", ngImport: i0, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\" src=\"/assets/images/error/error-offline.png\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">Please check your connectivity!</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Sorry, it seems you don't have access to the internet.</p>\r\n\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n <ax-button (onClick)=\"goHome()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>", styles: [""], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }] }); }
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPErrorOfflineComponent, decorators: [{
|
|
13
|
+
type: Component,
|
|
14
|
+
args: [{ selector: 'axp-error-offline', imports: [AXButtonModule], standalone: true, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\" src=\"/assets/images/error/error-offline.png\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">Please check your connectivity!</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Sorry, it seems you don't have access to the internet.</p>\r\n\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n <ax-button (onClick)=\"goHome()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>" }]
|
|
15
|
+
}], ctorParameters: () => [] });
|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NzPVwibWQ6YXgtdGV4dC1sZyBheC10ZXh0LW5ldXRyYWwtNDAwXCI+U29ycnksIGl0IHNlZW1zIHlvdSBkb24ndCBoYXZlIGFjY2VzcyB0byB0aGUgaW50ZXJuZXQuPC9wPlxyXG5cclxuICAgIDwvZGl2PlxyXG4gICAgPGRpdiBjbGFzcz1cImF4LWZsZXggYXgtZmxleC1jb2wgYXgtZ2FwLTIgbWQ6YXgtZ2FwLTQgbWQ6YXgtZmxleC1yb3dcIj5cclxuICAgICAgICA8YXgtYnV0dG9uIChvbkNsaWNrKT1cImdvSG9tZSgpXCIgY2xhc3M9XCJheC1weC00XCIgY29sb3I9XCJwcmltYXJ5XCIgdGV4dD1cIkdvIGJhY2sgdG8gaG9tZVwiPjwvYXgtYnV0dG9uPlxyXG4gICAgICAgIDxheC1idXR0b24gY2xhc3M9XCJheC1weC00XCIgY29sb3I9XCJnaG9zdFwiIHRleHQ9XCJDb250YWN0IHVzXCI+PC9heC1idXR0b24+XHJcbiAgICA8L2Rpdj5cclxuPC9kaXY+Il19
|
package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Buanq4is.mjs
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as i4 from '@acorex/components/button';
|
|
2
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
+
import * as i3 from '@acorex/components/decorators';
|
|
4
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
+
import { AXDialogModule } from '@acorex/components/dialog';
|
|
6
|
+
import * as i7 from '@acorex/components/dropdown-button';
|
|
7
|
+
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
8
|
+
import * as i2 from '@acorex/components/form';
|
|
9
|
+
import { AXFormModule } from '@acorex/components/form';
|
|
10
|
+
import * as i6 from '@acorex/components/label';
|
|
11
|
+
import { AXLabelModule } from '@acorex/components/label';
|
|
12
|
+
import * as i5 from '@acorex/components/loading';
|
|
13
|
+
import { AXLoadingModule } from '@acorex/components/loading';
|
|
14
|
+
import { AXBasePageComponent } from '@acorex/components/page';
|
|
15
|
+
import { AXTabsModule } from '@acorex/components/tabs';
|
|
16
|
+
import { AXTooltipModule } from '@acorex/components/tooltip';
|
|
17
|
+
import * as i1 from '@angular/common';
|
|
18
|
+
import { CommonModule } from '@angular/common';
|
|
19
|
+
import * as i0 from '@angular/core';
|
|
20
|
+
import { inject, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
21
|
+
import { FormsModule } from '@angular/forms';
|
|
22
|
+
import { AXValidationModule } from '@acorex/core/validation';
|
|
23
|
+
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
24
|
+
import { AXPGridLayoutDirective, AXPStickyDirective } from '@acorex/platform/common';
|
|
25
|
+
import { AXPWorkflowService } from '@acorex/platform/workflow';
|
|
26
|
+
import * as i8 from '@acorex/platform/layout/builder';
|
|
27
|
+
import { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
|
|
28
|
+
import { AXPWidgetsModule } from '@acorex/platform/widgets';
|
|
29
|
+
|
|
30
|
+
class AXPEntityMasterCreateViewComponent extends AXBasePageComponent {
|
|
31
|
+
constructor() {
|
|
32
|
+
super(...arguments);
|
|
33
|
+
this.workflow = inject(AXPWorkflowService);
|
|
34
|
+
}
|
|
35
|
+
handleCloseClick() {
|
|
36
|
+
this.close();
|
|
37
|
+
}
|
|
38
|
+
async handleBackClick() {
|
|
39
|
+
//await this.vm.executeCommand('back');
|
|
40
|
+
}
|
|
41
|
+
async handleNextClick(form) {
|
|
42
|
+
// const formResult = await form.validate();
|
|
43
|
+
// if (formResult.result) {
|
|
44
|
+
// await this.vm.executeCommand('next');
|
|
45
|
+
// }
|
|
46
|
+
}
|
|
47
|
+
async handleSaveClick(form) {
|
|
48
|
+
const formResult = await form.validate();
|
|
49
|
+
if (formResult.result) {
|
|
50
|
+
const record = await this.vm.save();
|
|
51
|
+
this.close({ save: true, recordId: record.id, redirect: true });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async handleSaveAndNewClick(form) {
|
|
55
|
+
const formResult = await form.validate();
|
|
56
|
+
if (formResult.result) {
|
|
57
|
+
const record = await this.vm.save();
|
|
58
|
+
this.close({ save: true, recordId: record.id, redirect: false });
|
|
59
|
+
await this.vm.createNewOne();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async handleContextChange(data) {
|
|
63
|
+
this.vm.context.set(data);
|
|
64
|
+
}
|
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityMasterCreateViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
66
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPEntityMasterCreateViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div>\r\n <axp-widgets-container [context]=\"vm.context()\" (contextChange)=\"handleContextChange($event)\">\r\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4 ax-pb-8\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\r\n <!-- Begin Sections -->\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\r\n @for(section of vm.sections(); track section.name()) {\r\n <div class=\"ax-col-span-12\">\r\n <ax-form #form>\r\n <div class=\"ax-pb-4\">\r\n <span class=\"ax-font-bold ax-text-xl\">{{ section.title() }}</span>\r\n @if(section.description()) {\r\n <p class=\"ax-text-sm ax-text-gray-500\">{{ section.description() }}</p>\r\n }\r\n </div>\r\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\r\n @for(attr of section.elements(); track $index) {\r\n <ax-form-field class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\r\n <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"attr.isRequired()\">{{ attr.title()\r\n }}</ax-label>\r\n <axp-widget-renderer [node]=\"attr.node()\"> </axp-widget-renderer>\r\n </ax-form-field>\r\n }\r\n </div>\r\n\r\n </ax-form>\r\n </div>\r\n }\r\n </div>\r\n <!-- Finish Sections -->\r\n </ax-form>\r\n </axp-widgets-container>\r\n <ax-footer>\r\n <ax-suffix>\r\n <ax-button look=\"solid\" color=\"ghost\" text=\"Cancel\" (onClick)=\"handleCloseClick()\"> </ax-button>\r\n <ax-dropdown-button [disabled]=\"vm.isInProgress()\" color=\"primary\" text=\"Save\" look=\"solid\"\r\n (onClick)=\"handleSaveClick(form)\">\r\n <ax-loading *ngIf=\"vm.isInProgress()\"></ax-loading>\r\n <ax-button-item-list>\r\n <ax-button-item text=\"Save & Create New\" (onClick)=\"handleSaveAndNewClick(form)\"> </ax-button-item>\r\n </ax-button-item-list>\r\n </ax-dropdown-button>\r\n </ax-suffix>\r\n </ax-footer>\r\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i2.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i2.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i5.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "ngmodule", type: AXTooltipModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i6.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type: i7.AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "type", "mode"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type:
|
|
67
|
+
//
|
|
68
|
+
AXPLayoutBuilderModule }, { kind: "component", type: i8.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "variables", "functions"], outputs: ["contextChange"] }, { kind: "component", type: i8.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["node"] }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "directive", type: AXPGridLayoutDirective, selector: "[gridLayout]", inputs: ["gridLayout"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
69
|
+
}
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityMasterCreateViewComponent, decorators: [{
|
|
71
|
+
type: Component,
|
|
72
|
+
args: [{ imports: [
|
|
73
|
+
CommonModule,
|
|
74
|
+
FormsModule,
|
|
75
|
+
AXFormModule,
|
|
76
|
+
AXDecoratorModule,
|
|
77
|
+
CommonModule,
|
|
78
|
+
AXButtonModule,
|
|
79
|
+
AXDialogModule,
|
|
80
|
+
AXLoadingModule,
|
|
81
|
+
AXTabsModule,
|
|
82
|
+
AXTooltipModule,
|
|
83
|
+
AXValidationModule,
|
|
84
|
+
AXLabelModule,
|
|
85
|
+
AXDropdownModule,
|
|
86
|
+
AXDropdownButtonModule,
|
|
87
|
+
//
|
|
88
|
+
AXPLayoutBuilderModule,
|
|
89
|
+
AXPWidgetsModule,
|
|
90
|
+
AXPStickyDirective,
|
|
91
|
+
AXPGridLayoutDirective
|
|
92
|
+
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>\r\n <axp-widgets-container [context]=\"vm.context()\" (contextChange)=\"handleContextChange($event)\">\r\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4 ax-pb-8\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\r\n <!-- Begin Sections -->\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\r\n @for(section of vm.sections(); track section.name()) {\r\n <div class=\"ax-col-span-12\">\r\n <ax-form #form>\r\n <div class=\"ax-pb-4\">\r\n <span class=\"ax-font-bold ax-text-xl\">{{ section.title() }}</span>\r\n @if(section.description()) {\r\n <p class=\"ax-text-sm ax-text-gray-500\">{{ section.description() }}</p>\r\n }\r\n </div>\r\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\r\n @for(attr of section.elements(); track $index) {\r\n <ax-form-field class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\r\n <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"attr.isRequired()\">{{ attr.title()\r\n }}</ax-label>\r\n <axp-widget-renderer [node]=\"attr.node()\"> </axp-widget-renderer>\r\n </ax-form-field>\r\n }\r\n </div>\r\n\r\n </ax-form>\r\n </div>\r\n }\r\n </div>\r\n <!-- Finish Sections -->\r\n </ax-form>\r\n </axp-widgets-container>\r\n <ax-footer>\r\n <ax-suffix>\r\n <ax-button look=\"solid\" color=\"ghost\" text=\"Cancel\" (onClick)=\"handleCloseClick()\"> </ax-button>\r\n <ax-dropdown-button [disabled]=\"vm.isInProgress()\" color=\"primary\" text=\"Save\" look=\"solid\"\r\n (onClick)=\"handleSaveClick(form)\">\r\n <ax-loading *ngIf=\"vm.isInProgress()\"></ax-loading>\r\n <ax-button-item-list>\r\n <ax-button-item text=\"Save & Create New\" (onClick)=\"handleSaveAndNewClick(form)\"> </ax-button-item>\r\n </ax-button-item-list>\r\n </ax-dropdown-button>\r\n </ax-suffix>\r\n </ax-footer>\r\n</div>" }]
|
|
93
|
+
}] });
|
|
94
|
+
|
|
95
|
+
export { AXPEntityMasterCreateViewComponent };
|
|
96
|
+
//# sourceMappingURL=acorex-platform-themes-default-entity-master-create-view.component-Buanq4is.mjs.map
|
package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Buanq4is.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-themes-default-entity-master-create-view.component-Buanq4is.mjs","sources":["../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXDialogModule } from '@acorex/components/dialog';\r\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\r\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\r\nimport { AXLabelModule } from '@acorex/components/label';\r\nimport { AXLoadingModule } from '@acorex/components/loading';\r\nimport { AXBasePageComponent } from '@acorex/components/page';\r\nimport { AXTabsModule } from '@acorex/components/tabs';\r\nimport { AXTooltipModule } from '@acorex/components/tooltip';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, WritableSignal, inject, signal } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { AXValidationModule } from '@acorex/core/validation';\r\n\r\nimport { AXDropdownModule } from '@acorex/components/dropdown';\r\nimport { AXPGridLayoutDirective, AXPStickyDirective } from '@acorex/platform/common';\r\nimport { AXPWorkflowService } from '@acorex/platform/workflow';\r\nimport { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';\r\nimport { AXPWidgetsModule } from '@acorex/platform/widgets';\r\nimport { AXPEntityMasterCreateViewModel } from '@acorex/platform/layout/entity';\r\n\r\n@Component({\r\n templateUrl: './entity-master-create-view.component.html',\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n AXFormModule,\r\n AXDecoratorModule,\r\n CommonModule,\r\n AXButtonModule,\r\n AXDialogModule,\r\n AXLoadingModule,\r\n AXTabsModule,\r\n AXTooltipModule,\r\n AXValidationModule,\r\n AXLabelModule,\r\n AXDropdownModule,\r\n AXDropdownButtonModule,\r\n //\r\n AXPLayoutBuilderModule,\r\n AXPWidgetsModule,\r\n AXPStickyDirective,\r\n AXPGridLayoutDirective\r\n ],\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXPEntityMasterCreateViewComponent extends AXBasePageComponent {\r\n protected vm!: AXPEntityMasterCreateViewModel;\r\n\r\n protected workflow = inject(AXPWorkflowService);\r\n\r\n protected handleCloseClick() {\r\n this.close();\r\n }\r\n\r\n protected async handleBackClick() {\r\n //await this.vm.executeCommand('back');\r\n }\r\n\r\n protected async handleNextClick(form: AXFormComponent) {\r\n // const formResult = await form.validate();\r\n // if (formResult.result) {\r\n // await this.vm.executeCommand('next');\r\n // }\r\n }\r\n\r\n protected async handleSaveClick(form: AXFormComponent) {\r\n const formResult = await form.validate();\r\n if (formResult.result) {\r\n const record = await this.vm.save();\r\n this.close({ save: true, recordId: record.id, redirect: true });\r\n }\r\n }\r\n\r\n protected async handleSaveAndNewClick(form: AXFormComponent) {\r\n const formResult = await form.validate();\r\n if (formResult.result) {\r\n const record = await this.vm.save();\r\n this.close({ save: true, recordId: record.id, redirect: false });\r\n await this.vm.createNewOne();\r\n }\r\n }\r\n\r\n protected async handleContextChange(data: any) {\r\n this.vm.context.set(data);\r\n }\r\n}\r\n","<div>\r\n <axp-widgets-container [context]=\"vm.context()\" (contextChange)=\"handleContextChange($event)\">\r\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4 ax-pb-8\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\r\n <!-- Begin Sections -->\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\r\n @for(section of vm.sections(); track section.name()) {\r\n <div class=\"ax-col-span-12\">\r\n <ax-form #form>\r\n <div class=\"ax-pb-4\">\r\n <span class=\"ax-font-bold ax-text-xl\">{{ section.title() }}</span>\r\n @if(section.description()) {\r\n <p class=\"ax-text-sm ax-text-gray-500\">{{ section.description() }}</p>\r\n }\r\n </div>\r\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\r\n @for(attr of section.elements(); track $index) {\r\n <ax-form-field class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\r\n <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"attr.isRequired()\">{{ attr.title()\r\n }}</ax-label>\r\n <axp-widget-renderer [node]=\"attr.node()\"> </axp-widget-renderer>\r\n </ax-form-field>\r\n }\r\n </div>\r\n\r\n </ax-form>\r\n </div>\r\n }\r\n </div>\r\n <!-- Finish Sections -->\r\n </ax-form>\r\n </axp-widgets-container>\r\n <ax-footer>\r\n <ax-suffix>\r\n <ax-button look=\"solid\" color=\"ghost\" text=\"Cancel\" (onClick)=\"handleCloseClick()\"> </ax-button>\r\n <ax-dropdown-button [disabled]=\"vm.isInProgress()\" color=\"primary\" text=\"Save\" look=\"solid\"\r\n (onClick)=\"handleSaveClick(form)\">\r\n <ax-loading *ngIf=\"vm.isInProgress()\"></ax-loading>\r\n <ax-button-item-list>\r\n <ax-button-item text=\"Save & Create New\" (onClick)=\"handleSaveAndNewClick(form)\"> </ax-button-item>\r\n </ax-button-item-list>\r\n </ax-dropdown-button>\r\n </ax-suffix>\r\n </ax-footer>\r\n</div>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDM,MAAO,kCAAmC,SAAQ,mBAAmB,CAAA;AA1B3E,IAAA,WAAA,GAAA;;AA6BY,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAqCjD,KAAA;IAnCW,gBAAgB,GAAA;QACxB,IAAI,CAAC,KAAK,EAAE,CAAC;KACd;AAES,IAAA,MAAM,eAAe,GAAA;;KAE9B;IAES,MAAM,eAAe,CAAC,IAAqB,EAAA;;;;;KAKpD;IAES,MAAM,eAAe,CAAC,IAAqB,EAAA;AACnD,QAAA,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzC,QAAA,IAAI,UAAU,CAAC,MAAM,EAAE;YACrB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;AACpC,YAAA,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;SACjE;KACF;IAES,MAAM,qBAAqB,CAAC,IAAqB,EAAA;AACzD,QAAA,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzC,QAAA,IAAI,UAAU,CAAC,MAAM,EAAE;YACrB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;AACpC,YAAA,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,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,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACtB,gBAAgB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAEhB,sBAAsB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAKb,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBA1B9C,SAAS;AAEC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;wBACZ,cAAc;wBACd,cAAc;wBACd,eAAe;wBACf,YAAY;wBACZ,eAAe;wBACf,kBAAkB;wBAClB,aAAa;wBACb,gBAAgB;wBAChB,sBAAsB;;wBAEtB,sBAAsB;wBACtB,gBAAgB;wBAChB,kBAAkB;wBAClB,sBAAsB;AACvB,qBAAA,EAAA,UAAA,EACW,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+kEAAA,EAAA,CAAA;;;;;"}
|
package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-F7dr-osu.mjs
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as i4 from '@acorex/components/button';
|
|
2
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
+
import * as i3 from '@acorex/components/decorators';
|
|
4
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
+
import { AXDialogModule } from '@acorex/components/dialog';
|
|
6
|
+
import * as i7 from '@acorex/components/dropdown-button';
|
|
7
|
+
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
8
|
+
import * as i2 from '@acorex/components/form';
|
|
9
|
+
import { AXFormModule } from '@acorex/components/form';
|
|
10
|
+
import * as i6 from '@acorex/components/label';
|
|
11
|
+
import { AXLabelModule } from '@acorex/components/label';
|
|
12
|
+
import * as i5 from '@acorex/components/loading';
|
|
13
|
+
import { AXLoadingModule } from '@acorex/components/loading';
|
|
14
|
+
import { AXBasePageComponent } from '@acorex/components/page';
|
|
15
|
+
import { AXTabsModule } from '@acorex/components/tabs';
|
|
16
|
+
import { AXTooltipModule } from '@acorex/components/tooltip';
|
|
17
|
+
import * as i1 from '@angular/common';
|
|
18
|
+
import { CommonModule } from '@angular/common';
|
|
19
|
+
import * as i0 from '@angular/core';
|
|
20
|
+
import { inject, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
21
|
+
import { FormsModule } from '@angular/forms';
|
|
22
|
+
import { AXValidationModule } from '@acorex/core/validation';
|
|
23
|
+
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
24
|
+
import { AXPGridLayoutDirective, AXPStickyDirective } from '@acorex/platform/common';
|
|
25
|
+
import { AXPWorkflowService } from '@acorex/platform/workflow';
|
|
26
|
+
import * as i8 from '@acorex/platform/layout/builder';
|
|
27
|
+
import { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
|
|
28
|
+
import { AXPWidgetsModule } from '@acorex/platform/widgets';
|
|
29
|
+
|
|
30
|
+
class AXPEntityMasterModifyViewComponent extends AXBasePageComponent {
|
|
31
|
+
constructor() {
|
|
32
|
+
super(...arguments);
|
|
33
|
+
this.workflow = inject(AXPWorkflowService);
|
|
34
|
+
}
|
|
35
|
+
handleCloseClick() {
|
|
36
|
+
this.close();
|
|
37
|
+
}
|
|
38
|
+
async handleSaveClick(form) {
|
|
39
|
+
const formResult = await form.validate();
|
|
40
|
+
if (formResult.result) {
|
|
41
|
+
await this.vm.save();
|
|
42
|
+
this.close({ result: true, context: this.vm.context() });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
async handleSectionDiscard(form) {
|
|
46
|
+
this.close({ result: false });
|
|
47
|
+
}
|
|
48
|
+
async handleSectionReset(form) {
|
|
49
|
+
this.vm.reset();
|
|
50
|
+
}
|
|
51
|
+
async handleContextChange(data) {
|
|
52
|
+
this.vm.context.set(data);
|
|
53
|
+
}
|
|
54
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityMasterModifyViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
55
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPEntityMasterModifyViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-p-4 ax-pb-8\">\r\n <axp-widgets-container [context]=\"vm.context()\" (contextChange)=\"handleContextChange($event)\">\r\n <ax-form #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\r\n @for(attr of vm.elements(); track $index) {\r\n <ax-form-field class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\r\n <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"attr.isRequired()\">{{ attr.title()\r\n }}</ax-label>\r\n <axp-widget-renderer [node]=\"attr.node()\"> </axp-widget-renderer>\r\n </ax-form-field>\r\n }\r\n </div>\r\n </ax-form>\r\n </axp-widgets-container>\r\n <ax-footer>\r\n <ax-suffix>\r\n <ax-dropdown-button text=\"Discard\" (onClick)=\"handleSectionDiscard(form)\">\r\n <ax-button-item-list>\r\n <ax-button-item text=\"Reset\" (onClick)=\"handleSectionReset(form)\">\r\n <ax-prefix>\r\n <ax-icon icon=\"fa-solid fa-rotate-left fa-flip-horizontal\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ax-button-item-list>\r\n </ax-dropdown-button>\r\n <ax-button [disabled]=\"vm.isInProgress()\" color=\"primary\" text=\"Apply\" (onClick)=\"handleSaveClick(form)\">\r\n <ax-loading *ngIf=\"vm.isInProgress()\"></ax-loading>\r\n </ax-button>\r\n </ax-suffix>\r\n </ax-footer>\r\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i2.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i2.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i5.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "ngmodule", type: AXTooltipModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i6.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type: i7.AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "type", "mode"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type:
|
|
56
|
+
//
|
|
57
|
+
AXPLayoutBuilderModule }, { kind: "component", type: i8.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "variables", "functions"], outputs: ["contextChange"] }, { kind: "component", type: i8.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["node"] }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "directive", type: AXPGridLayoutDirective, selector: "[gridLayout]", inputs: ["gridLayout"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
58
|
+
}
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityMasterModifyViewComponent, decorators: [{
|
|
60
|
+
type: Component,
|
|
61
|
+
args: [{ imports: [
|
|
62
|
+
CommonModule,
|
|
63
|
+
FormsModule,
|
|
64
|
+
AXFormModule,
|
|
65
|
+
AXDecoratorModule,
|
|
66
|
+
CommonModule,
|
|
67
|
+
AXButtonModule,
|
|
68
|
+
AXDialogModule,
|
|
69
|
+
AXLoadingModule,
|
|
70
|
+
AXTabsModule,
|
|
71
|
+
AXTooltipModule,
|
|
72
|
+
AXValidationModule,
|
|
73
|
+
AXLabelModule,
|
|
74
|
+
AXDropdownModule,
|
|
75
|
+
AXDropdownButtonModule,
|
|
76
|
+
//
|
|
77
|
+
AXPLayoutBuilderModule,
|
|
78
|
+
AXPWidgetsModule,
|
|
79
|
+
AXPStickyDirective,
|
|
80
|
+
AXPGridLayoutDirective
|
|
81
|
+
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ax-p-4 ax-pb-8\">\r\n <axp-widgets-container [context]=\"vm.context()\" (contextChange)=\"handleContextChange($event)\">\r\n <ax-form #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\r\n @for(attr of vm.elements(); track $index) {\r\n <ax-form-field class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\r\n <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"attr.isRequired()\">{{ attr.title()\r\n }}</ax-label>\r\n <axp-widget-renderer [node]=\"attr.node()\"> </axp-widget-renderer>\r\n </ax-form-field>\r\n }\r\n </div>\r\n </ax-form>\r\n </axp-widgets-container>\r\n <ax-footer>\r\n <ax-suffix>\r\n <ax-dropdown-button text=\"Discard\" (onClick)=\"handleSectionDiscard(form)\">\r\n <ax-button-item-list>\r\n <ax-button-item text=\"Reset\" (onClick)=\"handleSectionReset(form)\">\r\n <ax-prefix>\r\n <ax-icon icon=\"fa-solid fa-rotate-left fa-flip-horizontal\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ax-button-item-list>\r\n </ax-dropdown-button>\r\n <ax-button [disabled]=\"vm.isInProgress()\" color=\"primary\" text=\"Apply\" (onClick)=\"handleSaveClick(form)\">\r\n <ax-loading *ngIf=\"vm.isInProgress()\"></ax-loading>\r\n </ax-button>\r\n </ax-suffix>\r\n </ax-footer>\r\n</div>" }]
|
|
82
|
+
}] });
|
|
83
|
+
|
|
84
|
+
export { AXPEntityMasterModifyViewComponent };
|
|
85
|
+
//# sourceMappingURL=acorex-platform-themes-default-entity-master-modify-view.component-F7dr-osu.mjs.map
|
package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-F7dr-osu.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-themes-default-entity-master-modify-view.component-F7dr-osu.mjs","sources":["../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXDialogModule } from '@acorex/components/dialog';\r\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\r\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\r\nimport { AXLabelModule } from '@acorex/components/label';\r\nimport { AXLoadingModule } from '@acorex/components/loading';\r\nimport { AXBasePageComponent } from '@acorex/components/page';\r\nimport { AXTabsModule } from '@acorex/components/tabs';\r\nimport { AXTooltipModule } from '@acorex/components/tooltip';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { AXValidationModule } from '@acorex/core/validation';\r\nimport { AXDropdownModule } from '@acorex/components/dropdown';\r\nimport { AXPGridLayoutDirective, AXPStickyDirective } from '@acorex/platform/common';\r\nimport { AXPWorkflowService } from '@acorex/platform/workflow';\r\nimport { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';\r\nimport { AXPWidgetsModule } from '@acorex/platform/widgets';\r\nimport { AXUnsubscriber } from '@acorex/core/utils';\r\nimport { AXPEntityMasterUpdateViewModel } from '@acorex/platform/layout/entity';\r\n\r\n@Component({\r\n templateUrl: './entity-master-modify-view.component.html',\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n AXFormModule,\r\n AXDecoratorModule,\r\n CommonModule,\r\n AXButtonModule,\r\n AXDialogModule,\r\n AXLoadingModule,\r\n AXTabsModule,\r\n AXTooltipModule,\r\n AXValidationModule,\r\n AXLabelModule,\r\n AXDropdownModule,\r\n AXDropdownButtonModule,\r\n //\r\n AXPLayoutBuilderModule,\r\n AXPWidgetsModule,\r\n AXPStickyDirective,\r\n AXPGridLayoutDirective\r\n ],\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXPEntityMasterModifyViewComponent extends AXBasePageComponent {\r\n protected vm!: AXPEntityMasterUpdateViewModel;\r\n\r\n protected workflow = inject(AXPWorkflowService);\r\n\r\n protected handleCloseClick() {\r\n this.close();\r\n }\r\n\r\n protected async handleSaveClick(form: AXFormComponent) {\r\n const formResult = await form.validate();\r\n if (formResult.result) {\r\n await this.vm.save();\r\n this.close({ result: true, context: this.vm.context() });\r\n }\r\n }\r\n\r\n protected async handleSectionDiscard(form: AXFormComponent) {\r\n this.close({ result: false });\r\n }\r\n\r\n protected async handleSectionReset(form: AXFormComponent) {\r\n this.vm.reset();\r\n }\r\n\r\n protected async handleContextChange(data: any) {\r\n this.vm.context.set(data);\r\n }\r\n}\r\n","<div class=\"ax-p-4 ax-pb-8\">\r\n <axp-widgets-container [context]=\"vm.context()\" (contextChange)=\"handleContextChange($event)\">\r\n <ax-form #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\r\n @for(attr of vm.elements(); track $index) {\r\n <ax-form-field class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\r\n <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"attr.isRequired()\">{{ attr.title()\r\n }}</ax-label>\r\n <axp-widget-renderer [node]=\"attr.node()\"> </axp-widget-renderer>\r\n </ax-form-field>\r\n }\r\n </div>\r\n </ax-form>\r\n </axp-widgets-container>\r\n <ax-footer>\r\n <ax-suffix>\r\n <ax-dropdown-button text=\"Discard\" (onClick)=\"handleSectionDiscard(form)\">\r\n <ax-button-item-list>\r\n <ax-button-item text=\"Reset\" (onClick)=\"handleSectionReset(form)\">\r\n <ax-prefix>\r\n <ax-icon icon=\"fa-solid fa-rotate-left fa-flip-horizontal\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ax-button-item-list>\r\n </ax-dropdown-button>\r\n <ax-button [disabled]=\"vm.isInProgress()\" color=\"primary\" text=\"Apply\" (onClick)=\"handleSaveClick(form)\">\r\n <ax-loading *ngIf=\"vm.isInProgress()\"></ax-loading>\r\n </ax-button>\r\n </ax-suffix>\r\n </ax-footer>\r\n</div>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDM,MAAO,kCAAmC,SAAQ,mBAAmB,CAAA;AA1B3E,IAAA,WAAA,GAAA;;AA6BY,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAyBjD,KAAA;IAvBW,gBAAgB,GAAA;QACxB,IAAI,CAAC,KAAK,EAAE,CAAC;KACd;IAES,MAAM,eAAe,CAAC,IAAqB,EAAA;AACnD,QAAA,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzC,QAAA,IAAI,UAAU,CAAC,MAAM,EAAE;AACrB,YAAA,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;AACrB,YAAA,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;SAC1D;KACF;IAES,MAAM,oBAAoB,CAAC,IAAqB,EAAA;QACxD,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;KAC/B;IAES,MAAM,kBAAkB,CAAC,IAAqB,EAAA;AACtD,QAAA,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;KACjB;IAES,MAAM,mBAAmB,CAAC,IAAS,EAAA;QAC3C,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KAC3B;8GA3BU,kCAAkC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAA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A,IAAA,EAEhB,sBAAsB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAKb,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBA1B9C,SAAS;AAEC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;wBACZ,cAAc;wBACd,cAAc;wBACd,eAAe;wBACf,YAAY;wBACZ,eAAe;wBACf,kBAAkB;wBAClB,aAAa;wBACb,gBAAgB;wBAChB,sBAAsB;;wBAEtB,sBAAsB;wBACtB,gBAAgB;wBAChB,kBAAkB;wBAClB,sBAAsB;AACvB,qBAAA,EAAA,UAAA,EACW,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,48CAAA,EAAA,CAAA;;;;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as i4 from '@acorex/components/button';
|
|
2
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
+
import { AXPSessionService } from '@acorex/platform/auth';
|
|
4
|
+
import * as i1 from '@angular/common';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
import * as i0 from '@angular/core';
|
|
7
|
+
import { inject, Component } from '@angular/core';
|
|
8
|
+
import { Router } from '@angular/router';
|
|
9
|
+
|
|
10
|
+
class AXPError401Component {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.sessionService = inject(AXPSessionService);
|
|
13
|
+
this.router = inject(Router);
|
|
14
|
+
this.isAuthorized$ = this.sessionService.isAuthorized$;
|
|
15
|
+
}
|
|
16
|
+
handleHomeClick() {
|
|
17
|
+
this.router.navigate([`/${this.sessionService.application?.name}/home`]);
|
|
18
|
+
}
|
|
19
|
+
handleSignInClick() {
|
|
20
|
+
this.router.navigate([`/auth/login`]);
|
|
21
|
+
}
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPError401Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPError401Component, isStandalone: true, selector: "axp-error-401", ngImport: i0, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\" src=\"/assets/images/error/error-401.svg\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">Hold on a second!</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Sorry, but you are not authorized to view this page.</p>\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n @if((isAuthorized$ | async))\r\n {\r\n <ax-button (onClick)=\"handleHomeClick()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n } @else {\r\n <ax-button (onClick)=\"handleSignInClick()\" class=\"ax-px-4\" color=\"primary\" text=\"Sign Up / Sign In\"></ax-button>\r\n }\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>", dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPError401Component, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{ selector: 'axp-error-401', imports: [AXButtonModule, CommonModule], standalone: true, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\" src=\"/assets/images/error/error-401.svg\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">Hold on a second!</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Sorry, but you are not authorized to view this page.</p>\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n @if((isAuthorized$ | async))\r\n {\r\n <ax-button (onClick)=\"handleHomeClick()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n } @else {\r\n <ax-button (onClick)=\"handleSignInClick()\" class=\"ax-px-4\" color=\"primary\" text=\"Sign Up / Sign In\"></ax-button>\r\n }\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>" }]
|
|
28
|
+
}] });
|
|
29
|
+
|
|
30
|
+
export { AXPError401Component };
|
|
31
|
+
//# sourceMappingURL=acorex-platform-themes-default-error-401.component-Djuin07Z.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-themes-default-error-401.component-Djuin07Z.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';\r\nimport { AXPSessionService } from '@acorex/platform/auth';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { Component, OnInit, inject } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'axp-error-401',\r\n templateUrl: './error-401.component.html',\r\n imports: [AXButtonModule, CommonModule],\r\n standalone: true,\r\n})\r\nexport class AXPError401Component {\r\n\r\n private sessionService = inject(AXPSessionService);\r\n private router = inject(Router);\r\n protected isAuthorized$ = this.sessionService.isAuthorized$;\r\n\r\n protected handleHomeClick() {\r\n this.router.navigate([`/${this.sessionService.application?.name}/home`]);\r\n }\r\n\r\n protected handleSignInClick() {\r\n this.router.navigate([`/auth/login`]);\r\n }\r\n}\r\n","<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\" src=\"/assets/images/error/error-401.svg\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">Hold on a second!</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Sorry, but you are not authorized to view this page.</p>\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n @if((isAuthorized$ | async))\r\n {\r\n <ax-button (onClick)=\"handleHomeClick()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n } @else {\r\n <ax-button (onClick)=\"handleSignInClick()\" class=\"ax-px-4\" color=\"primary\" text=\"Sign Up / Sign In\"></ax-button>\r\n }\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>"],"names":["i2"],"mappings":";;;;;;;;;MAaa,oBAAoB,CAAA;AANjC,IAAA,WAAA,GA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cAC3B,IAAI,EAAA,QAAA,EAAA,kkCAAA,EAAA,CAAA;;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as i4 from '@acorex/components/button';
|
|
2
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
+
import { AXPSessionService } from '@acorex/platform/auth';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { inject, Component } from '@angular/core';
|
|
6
|
+
import { Router } from '@angular/router';
|
|
7
|
+
|
|
8
|
+
class AXPError404Component {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.sessionService = inject(AXPSessionService);
|
|
11
|
+
this.router = inject(Router);
|
|
12
|
+
}
|
|
13
|
+
goHome() {
|
|
14
|
+
this.router.navigate([`/${this.sessionService.application?.name}/home`]);
|
|
15
|
+
}
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPError404Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPError404Component, isStandalone: true, selector: "axp-error-404", ngImport: i0, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/3\" src=\" /assets/images/error/error-404.svg\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">No Result Found.</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Whoops! Looks like that page doesn't exist.</p>\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n <ax-button (onClick)=\"goHome()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>", styles: [""], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }] }); }
|
|
18
|
+
}
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPError404Component, decorators: [{
|
|
20
|
+
type: Component,
|
|
21
|
+
args: [{ selector: 'axp-error-404', imports: [AXButtonModule], standalone: true, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/3\" src=\" /assets/images/error/error-404.svg\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">No Result Found.</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Whoops! Looks like that page doesn't exist.</p>\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n <ax-button (onClick)=\"goHome()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>" }]
|
|
22
|
+
}] });
|
|
23
|
+
|
|
24
|
+
export { AXPError404Component };
|
|
25
|
+
//# sourceMappingURL=acorex-platform-themes-default-error-404.component-C-RyiLkk.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-themes-default-error-404.component-C-RyiLkk.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';\r\nimport { AXPSessionService } from '@acorex/platform/auth';\r\nimport { Component, OnInit, inject } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'axp-error-404',\r\n templateUrl: './error-404.component.html',\r\n styleUrls: ['./error-404.component.scss'],\r\n imports: [AXButtonModule],\r\n standalone: true,\r\n})\r\nexport class AXPError404Component {\r\n\r\n private sessionService = inject(AXPSessionService);\r\n private router = inject(Router);\r\n\r\n goHome() {\r\n this.router.navigate([`/${this.sessionService.application?.name}/home`]);\r\n }\r\n}\r\n","<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/3\" src=\" /assets/images/error/error-404.svg\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">No Result Found.</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Whoops! Looks like that page doesn't exist.</p>\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n <ax-button (onClick)=\"goHome()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>"],"names":["i1"],"mappings":";;;;;;;MAYa,oBAAoB,CAAA;AAPjC,IAAA,WAAA,GAAA;AASU,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAC3C,QAAA,IAAA,CAAA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
+
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Component } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
class AXPErrorOfflineComponent {
|
|
7
|
+
constructor() { }
|
|
8
|
+
ngOnInit() { }
|
|
9
|
+
goHome() { }
|
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPErrorOfflineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPErrorOfflineComponent, isStandalone: true, selector: "axp-error-offline", ngImport: i0, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\" src=\"/assets/images/error/error-offline.png\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">Please check your connectivity!</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Sorry, it seems you don't have access to the internet.</p>\r\n\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n <ax-button (onClick)=\"goHome()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>", styles: [""], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }] }); }
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPErrorOfflineComponent, decorators: [{
|
|
14
|
+
type: Component,
|
|
15
|
+
args: [{ selector: 'axp-error-offline', imports: [AXButtonModule], standalone: true, template: "<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\" src=\"/assets/images/error/error-offline.png\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">Please check your connectivity!</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Sorry, it seems you don't have access to the internet.</p>\r\n\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n <ax-button (onClick)=\"goHome()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>" }]
|
|
16
|
+
}], ctorParameters: () => [] });
|
|
17
|
+
|
|
18
|
+
export { AXPErrorOfflineComponent };
|
|
19
|
+
//# sourceMappingURL=acorex-platform-themes-default-error-offline.component-WCfy9-cr.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-themes-default-error-offline.component-WCfy9-cr.mjs","sources":["../../../../libs/platform/themes/default/src/lib/pages/errors/error-offline/error-offline.component.ts","../../../../libs/platform/themes/default/src/lib/pages/errors/error-offline/error-offline.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\r\nimport { Component, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'axp-error-offline',\r\n templateUrl: './error-offline.component.html',\r\n styleUrls: ['./error-offline.component.scss'],\r\n imports: [AXButtonModule],\r\n standalone: true,\r\n})\r\nexport class AXPErrorOfflineComponent implements OnInit {\r\n constructor() {}\r\n ngOnInit(): void {}\r\n\r\n goHome() {}\r\n}\r\n","<div class=\"ax-h-full ax-flex ax-flex-col ax-gap-8 ax-items-center ax-justify-center\">\r\n <img class=\"ax-w-3/4 md:ax-w-1/2 lg:ax-w-1/3 xl:ax-w-1/4\" src=\"/assets/images/error/error-offline.png\"\r\n alt=\"Oops! Error 404. No result found.\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2 md:ax-gap-4\">\r\n <h1 class=\"ax-font-bold ax-text-2xl md:ax-text-4xl\">Please check your connectivity!</h1>\r\n <p class=\"md:ax-text-lg ax-text-neutral-400\">Sorry, it seems you don't have access to the internet.</p>\r\n\r\n </div>\r\n <div class=\"ax-flex ax-flex-col ax-gap-2 md:ax-gap-4 md:ax-flex-row\">\r\n <ax-button (onClick)=\"goHome()\" class=\"ax-px-4\" color=\"primary\" text=\"Go back to home\"></ax-button>\r\n <ax-button class=\"ax-px-4\" color=\"ghost\" text=\"Contact us\"></ax-button>\r\n </div>\r\n</div>"],"names":["i1"],"mappings":";;;;;MAUa,wBAAwB,CAAA;AACnC,IAAA,WAAA,GAAA,GAAgB;AAChB,IAAA,QAAQ,MAAW;AAEnB,IAAA,MAAM,MAAK;8GAJA,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECVrC,s3BAYM,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDLM,cAAc,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,MAAA,EAAA,UAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,YAAA,EAAA,UAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,YAAA,EAAA,aAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGb,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAPpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,mBAAmB,EAGpB,OAAA,EAAA,CAAC,cAAc,CAAC,cACb,IAAI,EAAA,QAAA,EAAA,s3BAAA,EAAA,CAAA;;;;;"}
|