@acorex/platform 20.1.0 → 20.2.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/index.d.ts +12 -29
- package/fesm2022/acorex-platform-auth.mjs +103 -181
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +14 -24
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-color-chooser-view.component-ChOhTEqX.mjs → acorex-platform-themes-shared-color-chooser-column.component-EZGn900W.mjs} +6 -7
- package/fesm2022/acorex-platform-themes-shared-color-chooser-column.component-EZGn900W.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-color-chooser-view.component-DTLYX00a.mjs +49 -0
- package/fesm2022/acorex-platform-themes-shared-color-chooser-view.component-DTLYX00a.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-SXfawqIa.mjs → acorex-platform-themes-shared-icon-chooser-view.component-DMPET9Fu.mjs} +10 -11
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-DMPET9Fu.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +56 -39
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-BfWr5Wz8.mjs → acorex-platform-widgets-button-widget-designer.component-BUx-nksc.mjs} +5 -5
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-BfWr5Wz8.mjs.map → acorex-platform-widgets-button-widget-designer.component-BUx-nksc.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-widgets-file-list-popup.component-CEPrED5e.mjs → acorex-platform-widgets-file-list-popup.component-n3nuXZNq.mjs} +6 -6
- package/fesm2022/{acorex-platform-widgets-file-list-popup.component-CEPrED5e.mjs.map → acorex-platform-widgets-file-list-popup.component-n3nuXZNq.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-widgets-file-rename-popup.component-DCVTwkGL.mjs → acorex-platform-widgets-file-rename-popup.component-DBRV6X7W.mjs} +8 -8
- package/fesm2022/{acorex-platform-widgets-file-rename-popup.component-DCVTwkGL.mjs.map → acorex-platform-widgets-file-rename-popup.component-DBRV6X7W.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-widgets-rich-text-popup.component-ti6XgNeD.mjs → acorex-platform-widgets-rich-text-popup.component-DPuTM42n.mjs} +3 -3
- package/fesm2022/{acorex-platform-widgets-rich-text-popup.component-ti6XgNeD.mjs.map → acorex-platform-widgets-rich-text-popup.component-DPuTM42n.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-C-OZ-B7h.mjs → acorex-platform-widgets-tabular-data-edit-popup.component-BH1_BkJh.mjs} +5 -5
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-C-OZ-B7h.mjs.map → acorex-platform-widgets-tabular-data-edit-popup.component-BH1_BkJh.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-CvPn4SJx.mjs → acorex-platform-widgets-tabular-data-view-popup.component-DCsLuXR9.mjs} +3 -3
- package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-CvPn4SJx.mjs.map → acorex-platform-widgets-tabular-data-view-popup.component-DCsLuXR9.mjs.map} +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +216 -170
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/views/index.d.ts +8 -0
- package/package.json +1 -1
- package/themes/default/index.d.ts +10 -1
- package/themes/shared/index.d.ts +4 -0
- package/widgets/index.d.ts +7 -2
- package/fesm2022/acorex-platform-themes-shared-color-chooser-view.component-ChOhTEqX.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-SXfawqIa.mjs.map +0 -1
|
@@ -41,12 +41,12 @@ import { inject, computed, effect, ViewChild, Input, ChangeDetectionStrategy, Vi
|
|
|
41
41
|
import { FormsModule } from '@angular/forms';
|
|
42
42
|
import * as i1$3 from '@angular/router';
|
|
43
43
|
import { RouterModule, Router, NavigationEnd, RouteReuseStrategy, ROUTES } from '@angular/router';
|
|
44
|
-
import { Subject, takeUntil, filter
|
|
44
|
+
import { Subject, takeUntil, filter } from 'rxjs';
|
|
45
45
|
import * as i1$2 from '@acorex/platform/layout/components';
|
|
46
46
|
import { AXPComponentSlotModule, AXPTaskBadgeService, AXPMenuBadgeHelper, AXPTaskBadgeDirective } from '@acorex/platform/layout/components';
|
|
47
47
|
import * as i2$2 from '@acorex/components/side-menu';
|
|
48
48
|
import { AXSideMenuModule } from '@acorex/components/side-menu';
|
|
49
|
-
import { AXPPlatformScope, AXPBroadcastEventService
|
|
49
|
+
import { AXPPlatformScope, AXPBroadcastEventService } from '@acorex/platform/core';
|
|
50
50
|
import { sortBy } from 'lodash-es';
|
|
51
51
|
import { AXAvatarModule } from '@acorex/components/avatar';
|
|
52
52
|
import { AXImageModule } from '@acorex/components/image';
|
|
@@ -410,32 +410,22 @@ class AXPRootLayoutComponent {
|
|
|
410
410
|
this.sessionService = inject(AXPSessionService);
|
|
411
411
|
this.unsubscriber = inject(AXUnsubscriber);
|
|
412
412
|
this.workflowService = inject(AXPWorkflowService);
|
|
413
|
-
this.contextStore = inject(AXPContextStore);
|
|
414
413
|
}
|
|
415
414
|
ngOnInit() {
|
|
416
415
|
// Select the menu item based on the current route when the page loads
|
|
417
416
|
this.menuStore.selectMenuItemByRoute(this.router.url);
|
|
417
|
+
// Update the selected menu item whenever the route changes
|
|
418
418
|
this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe((event) => {
|
|
419
|
-
// Update the selected menu item whenever the route changes
|
|
420
419
|
this.menuStore.selectMenuItemByRoute(event.urlAfterRedirects);
|
|
421
|
-
// Reset the context store
|
|
422
|
-
this.contextStore.reset();
|
|
423
420
|
});
|
|
424
421
|
this.eventService.listen(AXPSessionStatus.SignedOut).subscribe(() => {
|
|
425
422
|
console.log('signed out in root layout');
|
|
426
423
|
this.router.navigate(['/auth/login']);
|
|
427
424
|
});
|
|
428
425
|
//
|
|
429
|
-
this.sessionService.status$.pipe(this.unsubscriber.takeUntilDestroy).subscribe(async (
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
if (isLoading) {
|
|
433
|
-
console.log('Session is still loading, skipping redirect check');
|
|
434
|
-
return;
|
|
435
|
-
}
|
|
436
|
-
const redirectKeys = [AXPSessionStatus.SignedOut, AXPSessionStatus.Unauthenticated, AXPSessionStatus.Expired];
|
|
437
|
-
if (redirectKeys.includes(status)) {
|
|
438
|
-
console.log('Redirecting to login due to status:', status);
|
|
426
|
+
this.sessionService.status$.pipe(this.unsubscriber.takeUntilDestroy).subscribe(async (c) => {
|
|
427
|
+
const keys = [AXPSessionStatus.SignedOut, AXPSessionStatus.Unauthenticated, AXPSessionStatus.Expired];
|
|
428
|
+
if (keys.includes(c)) {
|
|
439
429
|
this.router.navigate(['/auth/login']);
|
|
440
430
|
}
|
|
441
431
|
});
|
|
@@ -444,10 +434,10 @@ class AXPRootLayoutComponent {
|
|
|
444
434
|
}
|
|
445
435
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPRootLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
446
436
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXPRootLayoutComponent, isStandalone: true, selector: "ng-component", providers: [AXUnsubscriber], ngImport: i0, template: `
|
|
447
|
-
@if(layout.isMenuHorizontal()){
|
|
448
|
-
|
|
449
|
-
}@else{
|
|
450
|
-
|
|
437
|
+
@if (layout.isMenuHorizontal()) {
|
|
438
|
+
<axp-root-horizontal-layout></axp-root-horizontal-layout>
|
|
439
|
+
} @else {
|
|
440
|
+
<axp-root-vertical-layout></axp-root-vertical-layout>
|
|
451
441
|
}
|
|
452
442
|
`, isInline: true, dependencies: [{ kind: "component", type: AXPRootHorizontalLayoutComponent, selector: "axp-root-horizontal-layout" }, { kind: "component", type: AXPRootVerticalLayoutComponent, selector: "axp-root-vertical-layout" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
453
443
|
}
|
|
@@ -455,10 +445,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
455
445
|
type: Component,
|
|
456
446
|
args: [{
|
|
457
447
|
template: `
|
|
458
|
-
@if(layout.isMenuHorizontal()){
|
|
459
|
-
|
|
460
|
-
}@else{
|
|
461
|
-
|
|
448
|
+
@if (layout.isMenuHorizontal()) {
|
|
449
|
+
<axp-root-horizontal-layout></axp-root-horizontal-layout>
|
|
450
|
+
} @else {
|
|
451
|
+
<axp-root-vertical-layout></axp-root-vertical-layout>
|
|
462
452
|
}
|
|
463
453
|
`,
|
|
464
454
|
encapsulation: ViewEncapsulation.None,
|