@acorex/modules 21.0.0-next.79 → 21.0.0-next.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-modules-task-management-task-board.page-t7bncwGo.mjs → acorex-modules-task-management-task-board.page-Dx6oov4j.mjs} +16 -8
- package/fesm2022/acorex-modules-task-management-task-board.page-Dx6oov4j.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +1 -1
- package/package.json +2 -2
- package/fesm2022/acorex-modules-task-management-task-board.page-t7bncwGo.mjs.map +0 -1
|
@@ -29,7 +29,7 @@ import { computed, ChangeDetectionStrategy, Component, inject, signal, effect, V
|
|
|
29
29
|
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
30
30
|
import * as i1$3 from '@angular/forms';
|
|
31
31
|
import { FormsModule } from '@angular/forms';
|
|
32
|
-
import {
|
|
32
|
+
import { ActivatedRoute, Router, NavigationEnd, RouterModule } from '@angular/router';
|
|
33
33
|
import { isEqual, sortBy } from 'lodash-es';
|
|
34
34
|
import { filter } from 'rxjs';
|
|
35
35
|
import { AXMSecurityManagementDataSourceKeys } from '@acorex/modules/security-management';
|
|
@@ -1759,7 +1759,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1759
1759
|
class AXMTaskBoardPage extends AXPPageLayoutBaseComponent {
|
|
1760
1760
|
constructor() {
|
|
1761
1761
|
super(...arguments);
|
|
1762
|
-
this.router = inject(Router);
|
|
1763
1762
|
this.rootConfig = RootConfig;
|
|
1764
1763
|
this.deviceService = inject(AXPDeviceService);
|
|
1765
1764
|
this.vm = inject(AXMTaskBoardViewModel);
|
|
@@ -1773,6 +1772,7 @@ class AXMTaskBoardPage extends AXPPageLayoutBaseComponent {
|
|
|
1773
1772
|
this.dueStatusProviderService = inject(AXPDueStatusProviderService);
|
|
1774
1773
|
this.dataSourceDefinitionService = inject(AXPDataSourceDefinitionProviderService);
|
|
1775
1774
|
this.translationService = inject(AXTranslationService);
|
|
1775
|
+
this.router = inject(Router);
|
|
1776
1776
|
this.sessionUser = toSignal(this.sessionService.user$, { initialValue: null });
|
|
1777
1777
|
this.sessionPermissions = toSignal(this.sessionService.permissions$, { initialValue: [] });
|
|
1778
1778
|
this.activeCalendar = toSignal(this.calendarService.calendarChanges$, {
|
|
@@ -2043,8 +2043,13 @@ class AXMTaskBoardPage extends AXPPageLayoutBaseComponent {
|
|
|
2043
2043
|
let from = this.calendarService.create(currentDate, this.localeService.activeProfile().calendar.system);
|
|
2044
2044
|
let end;
|
|
2045
2045
|
const currentView = this.vm.currentViewMode();
|
|
2046
|
-
if (currentView === 'grid'
|
|
2047
|
-
|
|
2046
|
+
if (currentView === 'grid') {
|
|
2047
|
+
// List/grid is always scoped to the current month, regardless of any day-range
|
|
2048
|
+
// selected from the navigator in other views.
|
|
2049
|
+
from = from.startOf('month');
|
|
2050
|
+
end = from.endOf('month');
|
|
2051
|
+
}
|
|
2052
|
+
else if (currentView === 'kanban' ||
|
|
2048
2053
|
currentView === 'agenda' ||
|
|
2049
2054
|
currentView === 'timeline-weekly' ||
|
|
2050
2055
|
currentView === 'status-grouped-grid') {
|
|
@@ -2807,8 +2812,11 @@ class AXMTaskBoardPage extends AXPPageLayoutBaseComponent {
|
|
|
2807
2812
|
const formatOptions = { locale: calendarSystem };
|
|
2808
2813
|
const axDate = this.calendarService.create(currentDate, calendarSystem);
|
|
2809
2814
|
const viewMode = this.vm.currentViewMode();
|
|
2810
|
-
if (viewMode === 'grid'
|
|
2811
|
-
|
|
2815
|
+
if (viewMode === 'grid') {
|
|
2816
|
+
// List/grid is locked to the current month, so the navigator shows the month label.
|
|
2817
|
+
return axDate.format('MMMM yyyy', formatOptions);
|
|
2818
|
+
}
|
|
2819
|
+
if (viewMode === 'kanban' ||
|
|
2812
2820
|
viewMode === 'status-grouped-grid') {
|
|
2813
2821
|
const startText = axDate.format('DD MMMM yyyy', formatOptions);
|
|
2814
2822
|
if (this.vm.daysCount() <= 1) {
|
|
@@ -3181,13 +3189,13 @@ class AXMTaskBoardPage extends AXPPageLayoutBaseComponent {
|
|
|
3181
3189
|
case 'week':
|
|
3182
3190
|
this.vm.setCurrentDate(date.add('week', forward ? 1 : -1).date);
|
|
3183
3191
|
break;
|
|
3184
|
-
case 'grid':
|
|
3185
3192
|
case 'agenda':
|
|
3186
3193
|
case 'kanban':
|
|
3187
3194
|
case 'timeline-weekly':
|
|
3188
3195
|
case 'status-grouped-grid':
|
|
3189
3196
|
this.vm.setCurrentDate(date.add('day', forward ? this.vm.daysCount() : -this.vm.daysCount()).date);
|
|
3190
3197
|
break;
|
|
3198
|
+
case 'grid':
|
|
3191
3199
|
case 'month':
|
|
3192
3200
|
case 'timeline-month':
|
|
3193
3201
|
this.vm.setCurrentDate(date.add('month', forward ? 1 : -1).date);
|
|
@@ -3392,4 +3400,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
3392
3400
|
}] } });
|
|
3393
3401
|
|
|
3394
3402
|
export { AXMTaskBoardPage };
|
|
3395
|
-
//# sourceMappingURL=acorex-modules-task-management-task-board.page-
|
|
3403
|
+
//# sourceMappingURL=acorex-modules-task-management-task-board.page-Dx6oov4j.mjs.map
|