@acorex/components 19.15.0-next.13 → 19.15.0-next.15
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/drawer/lib/drawer/drawer-container/drawer-container.component.d.ts +3 -3
- package/drawer/lib/drawer/drawer-item/drawer.component.d.ts +50 -17
- package/fesm2022/acorex-components-drawer.mjs +136 -56
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-file-explorer.mjs +1 -1
- package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +10 -0
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +131 -113
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/package.json +27 -27
- package/scheduler/lib/scheduler.class.d.ts +6 -21
- package/scheduler/lib/scheduler.component.d.ts +6 -3
- package/scheduler/lib/scheduler.service.d.ts +10 -10
- package/scheduler/lib/views/agenda/scheduler-agenda-view.component.d.ts +3 -3
- package/scheduler/lib/views/day/scheduler-day-view.component.d.ts +5 -4
- package/scheduler/lib/views/month/scheduler-month-view.component.d.ts +4 -4
- package/scheduler/lib/views/timeline-day/scheduler-timeline-day-view.component.d.ts +4 -3
- package/scheduler/lib/views/timeline-month/scheduler-timeline-month-view.component.d.ts +3 -3
- package/scheduler/lib/views/timeline-multi-day/scheduler-timeline-multi-day-view.component.d.ts +3 -3
- package/scheduler/lib/views/week/scheduler-week-view.component.d.ts +3 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@acorex/components",
|
3
|
-
"version": "19.15.0-next.
|
3
|
+
"version": "19.15.0-next.15",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/common": ">=19.0.0",
|
6
6
|
"@angular/core": ">=19.0.0",
|
@@ -29,17 +29,13 @@
|
|
29
29
|
"types": "./action-sheet/index.d.ts",
|
30
30
|
"default": "./fesm2022/acorex-components-action-sheet.mjs"
|
31
31
|
},
|
32
|
-
"./audio-wave": {
|
33
|
-
"types": "./audio-wave/index.d.ts",
|
34
|
-
"default": "./fesm2022/acorex-components-audio-wave.mjs"
|
35
|
-
},
|
36
32
|
"./autocomplete": {
|
37
33
|
"types": "./autocomplete/index.d.ts",
|
38
34
|
"default": "./fesm2022/acorex-components-autocomplete.mjs"
|
39
35
|
},
|
40
|
-
"./
|
41
|
-
"types": "./
|
42
|
-
"default": "./fesm2022/acorex-components-
|
36
|
+
"./avatar": {
|
37
|
+
"types": "./avatar/index.d.ts",
|
38
|
+
"default": "./fesm2022/acorex-components-avatar.mjs"
|
43
39
|
},
|
44
40
|
"./badge": {
|
45
41
|
"types": "./badge/index.d.ts",
|
@@ -49,9 +45,13 @@
|
|
49
45
|
"types": "./bottom-navigation/index.d.ts",
|
50
46
|
"default": "./fesm2022/acorex-components-bottom-navigation.mjs"
|
51
47
|
},
|
52
|
-
"./
|
53
|
-
"types": "./
|
54
|
-
"default": "./fesm2022/acorex-components-
|
48
|
+
"./audio-wave": {
|
49
|
+
"types": "./audio-wave/index.d.ts",
|
50
|
+
"default": "./fesm2022/acorex-components-audio-wave.mjs"
|
51
|
+
},
|
52
|
+
"./alert": {
|
53
|
+
"types": "./alert/index.d.ts",
|
54
|
+
"default": "./fesm2022/acorex-components-alert.mjs"
|
55
55
|
},
|
56
56
|
"./breadcrumbs": {
|
57
57
|
"types": "./breadcrumbs/index.d.ts",
|
@@ -69,14 +69,14 @@
|
|
69
69
|
"types": "./calendar/index.d.ts",
|
70
70
|
"default": "./fesm2022/acorex-components-calendar.mjs"
|
71
71
|
},
|
72
|
-
"./chips": {
|
73
|
-
"types": "./chips/index.d.ts",
|
74
|
-
"default": "./fesm2022/acorex-components-chips.mjs"
|
75
|
-
},
|
76
72
|
"./check-box": {
|
77
73
|
"types": "./check-box/index.d.ts",
|
78
74
|
"default": "./fesm2022/acorex-components-check-box.mjs"
|
79
75
|
},
|
76
|
+
"./chips": {
|
77
|
+
"types": "./chips/index.d.ts",
|
78
|
+
"default": "./fesm2022/acorex-components-chips.mjs"
|
79
|
+
},
|
80
80
|
"./circular-progress": {
|
81
81
|
"types": "./circular-progress/index.d.ts",
|
82
82
|
"default": "./fesm2022/acorex-components-circular-progress.mjs"
|
@@ -121,6 +121,10 @@
|
|
121
121
|
"types": "./datetime-input/index.d.ts",
|
122
122
|
"default": "./fesm2022/acorex-components-datetime-input.mjs"
|
123
123
|
},
|
124
|
+
"./decorators": {
|
125
|
+
"types": "./decorators/index.d.ts",
|
126
|
+
"default": "./fesm2022/acorex-components-decorators.mjs"
|
127
|
+
},
|
124
128
|
"./datetime-picker": {
|
125
129
|
"types": "./datetime-picker/index.d.ts",
|
126
130
|
"default": "./fesm2022/acorex-components-datetime-picker.mjs"
|
@@ -129,14 +133,6 @@
|
|
129
133
|
"types": "./dialog/index.d.ts",
|
130
134
|
"default": "./fesm2022/acorex-components-dialog.mjs"
|
131
135
|
},
|
132
|
-
"./decorators": {
|
133
|
-
"types": "./decorators/index.d.ts",
|
134
|
-
"default": "./fesm2022/acorex-components-decorators.mjs"
|
135
|
-
},
|
136
|
-
"./dropdown": {
|
137
|
-
"types": "./dropdown/index.d.ts",
|
138
|
-
"default": "./fesm2022/acorex-components-dropdown.mjs"
|
139
|
-
},
|
140
136
|
"./drawer": {
|
141
137
|
"types": "./drawer/index.d.ts",
|
142
138
|
"default": "./fesm2022/acorex-components-drawer.mjs"
|
@@ -145,6 +141,10 @@
|
|
145
141
|
"types": "./dropdown-button/index.d.ts",
|
146
142
|
"default": "./fesm2022/acorex-components-dropdown-button.mjs"
|
147
143
|
},
|
144
|
+
"./dropdown": {
|
145
|
+
"types": "./dropdown/index.d.ts",
|
146
|
+
"default": "./fesm2022/acorex-components-dropdown.mjs"
|
147
|
+
},
|
148
148
|
"./file-explorer": {
|
149
149
|
"types": "./file-explorer/index.d.ts",
|
150
150
|
"default": "./fesm2022/acorex-components-file-explorer.mjs"
|
@@ -153,14 +153,14 @@
|
|
153
153
|
"types": "./flow-chart/index.d.ts",
|
154
154
|
"default": "./fesm2022/acorex-components-flow-chart.mjs"
|
155
155
|
},
|
156
|
-
"./grid-layout-builder": {
|
157
|
-
"types": "./grid-layout-builder/index.d.ts",
|
158
|
-
"default": "./fesm2022/acorex-components-grid-layout-builder.mjs"
|
159
|
-
},
|
160
156
|
"./form": {
|
161
157
|
"types": "./form/index.d.ts",
|
162
158
|
"default": "./fesm2022/acorex-components-form.mjs"
|
163
159
|
},
|
160
|
+
"./grid-layout-builder": {
|
161
|
+
"types": "./grid-layout-builder/index.d.ts",
|
162
|
+
"default": "./fesm2022/acorex-components-grid-layout-builder.mjs"
|
163
|
+
},
|
164
164
|
"./image": {
|
165
165
|
"types": "./image/index.d.ts",
|
166
166
|
"default": "./fesm2022/acorex-components-image.mjs"
|
@@ -18,27 +18,12 @@ export type AXSchedulerAppointment = {
|
|
18
18
|
description?: string;
|
19
19
|
backgroundColor?: string;
|
20
20
|
};
|
21
|
-
|
22
|
-
* Only used for internal scheduler
|
23
|
-
*/
|
24
|
-
export type AXSchedulerInternalAppointment = {
|
25
|
-
id: any;
|
26
|
-
data: any;
|
27
|
-
title: string;
|
28
|
-
allDay: boolean;
|
29
|
-
readonly: boolean;
|
30
|
-
textColor: string;
|
31
|
-
description: string;
|
32
|
-
endDate: AXDateTime;
|
33
|
-
startDate: AXDateTime;
|
34
|
-
backgroundColor: string;
|
35
|
-
};
|
36
|
-
export type AXSchedulerAppointmentSegment = AXSchedulerInternalAppointment & {
|
21
|
+
export type AXSchedulerAppointmentSegment = AXSchedulerAppointment & {
|
37
22
|
isContinuationFromPreviousDay: boolean;
|
38
23
|
isContinuationToNextDay: boolean;
|
39
|
-
originalStartDate:
|
40
|
-
originalEndDate:
|
41
|
-
originalAppointmentRef?:
|
24
|
+
originalStartDate: Date;
|
25
|
+
originalEndDate: Date;
|
26
|
+
originalAppointmentRef?: AXSchedulerAppointment;
|
42
27
|
};
|
43
28
|
export type AXSchedulerDayAppointmentLayout = {
|
44
29
|
columnIndex: number;
|
@@ -55,7 +40,7 @@ export type AXSchedulerOverflowBadge = {
|
|
55
40
|
};
|
56
41
|
export type AXSchedulerAllDaySlotData = {
|
57
42
|
day: AXDateTime;
|
58
|
-
appointments:
|
43
|
+
appointments: AXSchedulerAppointment[];
|
59
44
|
};
|
60
45
|
export type AXSchedulerAppointmentLayout = {
|
61
46
|
appointment: AXSchedulerAppointmentSegment;
|
@@ -65,7 +50,7 @@ export type AXSchedulerAppointmentLayout = {
|
|
65
50
|
layoutHeight: string;
|
66
51
|
};
|
67
52
|
export type AXSchedulerMultiDayViewAppointment = {
|
68
|
-
appointments:
|
53
|
+
appointments: AXSchedulerAppointment[];
|
69
54
|
date: AXDateTime;
|
70
55
|
};
|
71
56
|
export type AXSchedulerDateRange = AXRange<Date>;
|
@@ -2,7 +2,7 @@ import { AXValueChangedEvent, NXComponent, NXEvent, NXNativeEvent } from '@acore
|
|
2
2
|
import { AXDropZoneDropEvent } from '@acorex/cdk/drag-drop';
|
3
3
|
import { AXDateTime } from '@acorex/core/date-time';
|
4
4
|
import { OnInit } from '@angular/core';
|
5
|
-
import { AXDayOfWeekName, AXSchedulerAppointment, AXSchedulerAppointmentDataSource, AXSchedulerDateRange,
|
5
|
+
import { AXDayOfWeekName, AXSchedulerAppointment, AXSchedulerAppointmentDataSource, AXSchedulerDateRange, AXSchedulerView } from './scheduler.class';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export interface AXSchedulerAppointmentMouseEvent extends NXNativeEvent<AXSchedulerComponent, MouseEvent> {
|
8
8
|
appointment: AXSchedulerAppointment;
|
@@ -58,6 +58,8 @@ export declare class AXSchedulerComponent extends NXComponent implements OnInit
|
|
58
58
|
firstDayOfWeek: import("@angular/core").InputSignal<AXDayOfWeekName>;
|
59
59
|
views: import("@angular/core").InputSignal<AXSchedulerView[]>;
|
60
60
|
selectedView: import("@angular/core").ModelSignal<AXSchedulerView>;
|
61
|
+
private prevView;
|
62
|
+
onDataLoaded: import("@angular/core").OutputEmitterRef<void>;
|
61
63
|
onRangeChanged: import("@angular/core").OutputEmitterRef<AXSchedulerDateRange>;
|
62
64
|
onSlotClicked: import("@angular/core").OutputEmitterRef<AXSchedulerSlotMouseEvent>;
|
63
65
|
onSlotDblClicked: import("@angular/core").OutputEmitterRef<AXSchedulerSlotMouseEvent>;
|
@@ -80,13 +82,14 @@ export declare class AXSchedulerComponent extends NXComponent implements OnInit
|
|
80
82
|
calendarDepth: import("@angular/core").Signal<"day" | "month">;
|
81
83
|
private mappedAppointments;
|
82
84
|
range: import("@angular/core").Signal<AXSchedulerDateRange>;
|
83
|
-
viewAppointments: import("@angular/core").Signal<
|
85
|
+
viewAppointments: import("@angular/core").Signal<AXSchedulerAppointment[]>;
|
84
86
|
viewChanged(e: AXValueChangedEvent<AXSchedulerView>): void;
|
87
|
+
private handleViewChanged;
|
85
88
|
nextClick(): void;
|
86
89
|
prevClick(): void;
|
87
90
|
calendarDateChanged(e: AXValueChangedEvent<Date>): void;
|
88
91
|
handleFullScreen(): void;
|
89
92
|
refresh(appointments?: AXSchedulerAppointment[]): Promise<void>;
|
90
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXSchedulerComponent, never>;
|
91
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXSchedulerComponent, "ax-scheduler", never, { "calendar": { "alias": "calendar"; "required": false; "isSignal": true; }; "startingDate": { "alias": "startingDate"; "required": false; "isSignal": true; }; "endDayHour": { "alias": "endDayHour"; "required": false; "isSignal": true; }; "startDayHour": { "alias": "startDayHour"; "required": false; "isSignal": true; }; "hasHeader": { "alias": "hasHeader"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "allowFullScreen": { "alias": "allowFullScreen"; "required": false; "isSignal": true; }; "multiDayViewDaysCount": { "alias": "multiDayViewDaysCount"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "views": { "alias": "views"; "required": false; "isSignal": true; }; "selectedView": { "alias": "selectedView"; "required": false; "isSignal": true; }; }, { "selectedView": "selectedViewChange"; "onRangeChanged": "onRangeChanged"; "onSlotClicked": "onSlotClicked"; "onSlotDblClicked": "onSlotDblClicked"; "onSlotRightClick": "onSlotRightClick"; "onAppointmentDrop": "onAppointmentDrop"; "onAppointmentClicked": "onAppointmentClicked"; "onAppointmentDblClicked": "onAppointmentDblClicked"; "onAppointmentRightClick": "onAppointmentRightClick"; }, never, never, true, never>;
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXSchedulerComponent, "ax-scheduler", never, { "calendar": { "alias": "calendar"; "required": false; "isSignal": true; }; "startingDate": { "alias": "startingDate"; "required": false; "isSignal": true; }; "endDayHour": { "alias": "endDayHour"; "required": false; "isSignal": true; }; "startDayHour": { "alias": "startDayHour"; "required": false; "isSignal": true; }; "hasHeader": { "alias": "hasHeader"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "allowFullScreen": { "alias": "allowFullScreen"; "required": false; "isSignal": true; }; "multiDayViewDaysCount": { "alias": "multiDayViewDaysCount"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "views": { "alias": "views"; "required": false; "isSignal": true; }; "selectedView": { "alias": "selectedView"; "required": false; "isSignal": true; }; }, { "selectedView": "selectedViewChange"; "onDataLoaded": "onDataLoaded"; "onRangeChanged": "onRangeChanged"; "onSlotClicked": "onSlotClicked"; "onSlotDblClicked": "onSlotDblClicked"; "onSlotRightClick": "onSlotRightClick"; "onAppointmentDrop": "onAppointmentDrop"; "onAppointmentClicked": "onAppointmentClicked"; "onAppointmentDblClicked": "onAppointmentDblClicked"; "onAppointmentRightClick": "onAppointmentRightClick"; }, never, never, true, never>;
|
92
95
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { AXDateTime } from '@acorex/core/date-time';
|
2
|
-
import { AXDayOfWeekName, AXSchedulerActiveAppointmentsInBlock, AXSchedulerAppointmentsByStartBlock, AXSchedulerAppointmentSegment, AXSchedulerBlockIdentifier,
|
2
|
+
import { AXDayOfWeekName, AXSchedulerActiveAppointmentsInBlock, AXSchedulerAppointment, AXSchedulerAppointmentsByStartBlock, AXSchedulerAppointmentSegment, AXSchedulerBlockIdentifier, AXSchedulerView } from './scheduler.class';
|
3
3
|
import { AXSchedulerAppointmentMouseEvent, AXSchedulerSlotMouseEvent } from './scheduler.component';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class AXSchedulerService {
|
6
|
-
private calendarService;
|
7
6
|
private formatService;
|
7
|
+
private calendarService;
|
8
8
|
readonly HOURS_PER_DAY = 24;
|
9
9
|
readonly MINUTES_PER_HOUR = 60;
|
10
10
|
readonly BLOCK_DURATION_MINUTES = 30;
|
@@ -13,15 +13,15 @@ export declare class AXSchedulerService {
|
|
13
13
|
/**
|
14
14
|
* Checks if two appointments overlap in time.
|
15
15
|
*/
|
16
|
-
doAppointmentsOverlap(appointmentA:
|
16
|
+
doAppointmentsOverlap(appointmentA: AXSchedulerAppointment, appointmentB: AXSchedulerAppointment): boolean;
|
17
17
|
/**
|
18
18
|
* Calculates appointment duration in minutes.
|
19
19
|
*/
|
20
|
-
calculateDurationInMinutes(Appointment:
|
20
|
+
calculateDurationInMinutes(Appointment: AXSchedulerAppointment): number;
|
21
21
|
/**
|
22
22
|
* Calculates appointment duration in blocks (default 30 min).
|
23
23
|
*/
|
24
|
-
calculateDurationInBlocks(appointment:
|
24
|
+
calculateDurationInBlocks(appointment: AXSchedulerAppointment): number;
|
25
25
|
/**
|
26
26
|
* Gets the day index (relative to view start) and block index (relative to start hour)
|
27
27
|
* for a given date time within the view context. Returns null if outside view.
|
@@ -49,8 +49,8 @@ export declare class AXSchedulerService {
|
|
49
49
|
* Groups appointments by the day(s) they occur on within a given date range.
|
50
50
|
* Returns a Map where the key is the date string ('YYYY-MM-DD') and the value is an array of appointments.
|
51
51
|
*/
|
52
|
-
groupAppointmentsByDay(appointments:
|
53
|
-
viewEndDate: AXDateTime): Map<string,
|
52
|
+
groupAppointmentsByDay(appointments: AXSchedulerAppointment[], viewStartDate: AXDateTime, // First day visible in the grid
|
53
|
+
viewEndDate: AXDateTime): Map<string, AXSchedulerAppointment[]>;
|
54
54
|
getDayOfWeekNumber(dayName: AXDayOfWeekName): number;
|
55
55
|
getSlotData(startDate: AXDateTime, view: AXSchedulerView): {
|
56
56
|
startDate: AXDateTime;
|
@@ -58,7 +58,7 @@ export declare class AXSchedulerService {
|
|
58
58
|
view: AXSchedulerView;
|
59
59
|
};
|
60
60
|
handleEvent(event: AXSchedulerSlotMouseEvent | AXSchedulerAppointmentMouseEvent, eventOutputMap: any, eventType: 'appointment' | 'slot'): void;
|
61
|
-
calculateTimelineLayout(appt:
|
61
|
+
calculateTimelineLayout(appt: AXSchedulerAppointment, viewStartHour: number, // e.g., 8 for 8 AM
|
62
62
|
viewEndHour: number): {
|
63
63
|
left: string;
|
64
64
|
width: string;
|
@@ -68,9 +68,9 @@ export declare class AXSchedulerService {
|
|
68
68
|
* constrained by the view's start and end hours.
|
69
69
|
* Returns a new appointment-like object representing the segment.
|
70
70
|
*/
|
71
|
-
getClonedAppointmentSegmentOnDay(appointment:
|
71
|
+
getClonedAppointmentSegmentOnDay(appointment: AXSchedulerAppointment, // This is the ORIGINAL appointment
|
72
72
|
day: AXDateTime, viewStartHour: number, viewEndHour: number, isFullDayCellContext?: boolean): AXSchedulerAppointmentSegment | null;
|
73
|
-
getOriginalAppointment(item:
|
73
|
+
getOriginalAppointment(item: AXSchedulerAppointment | AXSchedulerAppointmentSegment): AXSchedulerAppointment;
|
74
74
|
isHoliday(date: AXDateTime): boolean;
|
75
75
|
isWeekend(date: AXDateTime, calendar: string): boolean;
|
76
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXSchedulerService, never>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { NXComponent } from '@acorex/cdk/common';
|
2
2
|
import { AXDropZoneDropEvent } from '@acorex/cdk/drag-drop';
|
3
3
|
import { AXDateTime, AXHolidayDate } from '@acorex/core/date-time';
|
4
|
-
import {
|
4
|
+
import { AXSchedulerAppointment, AXSchedulerAppointmentSegment } from '../../scheduler.class';
|
5
5
|
import { AXSchedulerAppointmentMouseEvent, AXSchedulerSlotDropEvent, AXSchedulerSlotMouseEvent } from '../../scheduler.component';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export interface AgendaDayData {
|
@@ -21,7 +21,7 @@ export declare class AXSchedulerAgendaViewComponent extends NXComponent {
|
|
21
21
|
draggable: import("@angular/core").InputSignal<boolean>;
|
22
22
|
calendar: import("@angular/core").InputSignal<string>;
|
23
23
|
date: import("@angular/core").InputSignal<AXDateTime>;
|
24
|
-
appointments: import("@angular/core").InputSignal<
|
24
|
+
appointments: import("@angular/core").InputSignal<AXSchedulerAppointment[]>;
|
25
25
|
agendaDaysLayout: import("@angular/core").Signal<AgendaDayData[]>;
|
26
26
|
slotClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotMouseEvent>;
|
27
27
|
slotDblClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotMouseEvent>;
|
@@ -31,7 +31,7 @@ export declare class AXSchedulerAgendaViewComponent extends NXComponent {
|
|
31
31
|
appointmentRightClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerAppointmentMouseEvent>;
|
32
32
|
onAppointmentDropInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotDropEvent>;
|
33
33
|
private readonly eventOutputMap;
|
34
|
-
handleAppointmentEvent(mouseEvent: MouseEvent, appointmentItem:
|
34
|
+
handleAppointmentEvent(mouseEvent: MouseEvent, appointmentItem: AXSchedulerAppointment): void;
|
35
35
|
handleSlotEvent(mouseEvent: MouseEvent, date: AXDateTime): void;
|
36
36
|
handleDrop(e: AXDropZoneDropEvent, date: AXDateTime): void;
|
37
37
|
protected isToday(date: AXDateTime): boolean;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { NXComponent } from '@acorex/cdk/common';
|
2
2
|
import { AXDropZoneDropEvent } from '@acorex/cdk/drag-drop';
|
3
3
|
import { AXDateTime } from '@acorex/core/date-time';
|
4
|
-
import { AXSchedulerAppointmentSegment, AXSchedulerDayAppointmentLayout
|
4
|
+
import { AXSchedulerAppointment, AXSchedulerAppointmentSegment, AXSchedulerDayAppointmentLayout } from '../../scheduler.class';
|
5
5
|
import { AXSchedulerAppointmentMouseEvent, AXSchedulerSlotDropEvent, AXSchedulerSlotMouseEvent } from '../../scheduler.component';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class AXSchedulerDayViewComponent extends NXComponent {
|
8
8
|
private scheduler;
|
9
|
+
private calendarService;
|
9
10
|
private schedulerService;
|
10
11
|
readonly GAP_PX = 1;
|
11
12
|
readonly: import("@angular/core").InputSignal<boolean>;
|
@@ -14,9 +15,9 @@ export declare class AXSchedulerDayViewComponent extends NXComponent {
|
|
14
15
|
date: import("@angular/core").InputSignal<AXDateTime>;
|
15
16
|
endDayHour: import("@angular/core").InputSignal<number>;
|
16
17
|
startDayHour: import("@angular/core").InputSignal<number>;
|
17
|
-
appointments: import("@angular/core").InputSignal<
|
18
|
+
appointments: import("@angular/core").InputSignal<AXSchedulerAppointment[]>;
|
18
19
|
processedAppointmentsForLayout: import("@angular/core").Signal<AXSchedulerAppointmentSegment[]>;
|
19
|
-
allDayAppointments: import("@angular/core").Signal<
|
20
|
+
allDayAppointments: import("@angular/core").Signal<AXSchedulerAppointment[]>;
|
20
21
|
singleDayAppointments: import("@angular/core").Signal<AXSchedulerAppointmentSegment[]>;
|
21
22
|
slotClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotMouseEvent>;
|
22
23
|
slotDblClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotMouseEvent>;
|
@@ -26,7 +27,7 @@ export declare class AXSchedulerDayViewComponent extends NXComponent {
|
|
26
27
|
appointmentRightClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerAppointmentMouseEvent>;
|
27
28
|
onAppointmentDropInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotDropEvent>;
|
28
29
|
private readonly eventOutputMap;
|
29
|
-
handleAppointmentEvent(mouseEvent: MouseEvent, appointment:
|
30
|
+
handleAppointmentEvent(mouseEvent: MouseEvent, appointment: AXSchedulerAppointment): void;
|
30
31
|
handleSingleSlotEvent(mouseEvent: MouseEvent, startDate: AXDateTime): void;
|
31
32
|
handleAllDaySlotEvent(mouseEvent: MouseEvent): void;
|
32
33
|
handleAllDayDrop(e: AXDropZoneDropEvent): void;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { NXComponent } from '@acorex/cdk/common';
|
2
2
|
import { AXDropZoneDropEvent } from '@acorex/cdk/drag-drop';
|
3
3
|
import { AXDateTime } from '@acorex/core/date-time';
|
4
|
-
import { AXDayOfWeekName,
|
4
|
+
import { AXDayOfWeekName, AXSchedulerAppointment, AXSchedulerAppointmentSegment } from '../../scheduler.class';
|
5
5
|
import { AXSchedulerAppointmentMouseEvent, AXSchedulerSlotDropEvent, AXSchedulerSlotMouseEvent } from '../../scheduler.component';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export type AXSchedulerMonthDayCell = {
|
@@ -24,7 +24,7 @@ export declare class AXSchedulerMonthViewComponent extends NXComponent {
|
|
24
24
|
calendar: import("@angular/core").InputSignal<string>;
|
25
25
|
date: import("@angular/core").InputSignal<AXDateTime>;
|
26
26
|
firstDayOfWeek: import("@angular/core").InputSignal<AXDayOfWeekName>;
|
27
|
-
appointments: import("@angular/core").InputSignal<
|
27
|
+
appointments: import("@angular/core").InputSignal<AXSchedulerAppointment[]>;
|
28
28
|
readonly DAYS_IN_WEEK = 7;
|
29
29
|
readonly MAX_VISIBLE_APPOINTMENTS_PER_DAY = 2;
|
30
30
|
slotClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotMouseEvent>;
|
@@ -35,7 +35,7 @@ export declare class AXSchedulerMonthViewComponent extends NXComponent {
|
|
35
35
|
appointmentRightClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerAppointmentMouseEvent>;
|
36
36
|
onAppointmentDropInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotDropEvent>;
|
37
37
|
private readonly eventOutputMap;
|
38
|
-
handleAppointmentEvent(mouseEvent: MouseEvent, appointmentSegmentOrOriginal:
|
38
|
+
handleAppointmentEvent(mouseEvent: MouseEvent, appointmentSegmentOrOriginal: AXSchedulerAppointment): void;
|
39
39
|
handleSlotEvent(mouseEvent: MouseEvent, date: AXDateTime): void;
|
40
40
|
handleDrop(e: AXDropZoneDropEvent, date: AXDateTime): void;
|
41
41
|
monthStartDate: import("@angular/core").Signal<AXDateTime>;
|
@@ -50,7 +50,7 @@ export declare class AXSchedulerMonthViewComponent extends NXComponent {
|
|
50
50
|
}[];
|
51
51
|
weeksNeeded: number;
|
52
52
|
}>;
|
53
|
-
appointmentsGroupedByDay: import("@angular/core").Signal<Map<string,
|
53
|
+
appointmentsGroupedByDay: import("@angular/core").Signal<Map<string, AXSchedulerAppointment[]>>;
|
54
54
|
dayCellLayouts: import("@angular/core").Signal<AXSchedulerMonthDayCell[]>;
|
55
55
|
gridTemplateRowsStyle: import("@angular/core").Signal<string>;
|
56
56
|
get isReadonly(): boolean;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { NXComponent } from '@acorex/cdk/common';
|
2
2
|
import { AXDropZoneDropEvent } from '@acorex/cdk/drag-drop';
|
3
3
|
import { AXDateTime } from '@acorex/core/date-time';
|
4
|
-
import { AXSchedulerAppointmentLayout, AXSchedulerAppointmentSegment
|
4
|
+
import { AXSchedulerAppointment, AXSchedulerAppointmentLayout, AXSchedulerAppointmentSegment } from '../../scheduler.class';
|
5
5
|
import { AXSchedulerAppointmentMouseEvent, AXSchedulerSlotDropEvent, AXSchedulerSlotMouseEvent } from '../../scheduler.component';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class AXSchedulerTimelineDayViewComponent extends NXComponent {
|
8
8
|
private scheduler;
|
9
|
+
private calendarService;
|
9
10
|
private schedulerService;
|
10
11
|
readonly GAP_PX = 1;
|
11
12
|
readonly: import("@angular/core").InputSignal<boolean>;
|
@@ -14,7 +15,7 @@ export declare class AXSchedulerTimelineDayViewComponent extends NXComponent {
|
|
14
15
|
date: import("@angular/core").InputSignal<AXDateTime>;
|
15
16
|
endDayHour: import("@angular/core").InputSignal<number>;
|
16
17
|
startDayHour: import("@angular/core").InputSignal<number>;
|
17
|
-
appointments: import("@angular/core").InputSignal<
|
18
|
+
appointments: import("@angular/core").InputSignal<AXSchedulerAppointment[]>;
|
18
19
|
/**
|
19
20
|
* Processes original appointments to get segments relevant to this specific day and its viewable hours.
|
20
21
|
* Filters out original all-day events.
|
@@ -28,7 +29,7 @@ export declare class AXSchedulerTimelineDayViewComponent extends NXComponent {
|
|
28
29
|
appointmentRightClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerAppointmentMouseEvent>;
|
29
30
|
onAppointmentDropInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotDropEvent>;
|
30
31
|
private readonly eventOutputMap;
|
31
|
-
handleAppointmentEvent(mouseEvent: MouseEvent, appointmentItem:
|
32
|
+
handleAppointmentEvent(mouseEvent: MouseEvent, appointmentItem: AXSchedulerAppointment): void;
|
32
33
|
handleSlotEvent(mouseEvent: MouseEvent, startDate: AXDateTime): void;
|
33
34
|
handleDrop(e: AXDropZoneDropEvent, startDate: AXDateTime): void;
|
34
35
|
hoursArray: import("@angular/core").Signal<AXDateTime[]>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { NXComponent } from '@acorex/cdk/common';
|
2
2
|
import { AXDropZoneDropEvent } from '@acorex/cdk/drag-drop';
|
3
3
|
import { AXDateTime, AXHolidayDate } from '@acorex/core/date-time';
|
4
|
-
import {
|
4
|
+
import { AXSchedulerAppointment, AXSchedulerAppointmentSegment } from '../../scheduler.class';
|
5
5
|
import { AXSchedulerAppointmentMouseEvent, AXSchedulerSlotDropEvent, AXSchedulerSlotMouseEvent } from '../../scheduler.component';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export interface TimelineMonthViewDayData {
|
@@ -23,7 +23,7 @@ export declare class AXSchedulerTimelineMonthViewComponent extends NXComponent {
|
|
23
23
|
draggable: import("@angular/core").InputSignal<boolean>;
|
24
24
|
calendar: import("@angular/core").InputSignal<string>;
|
25
25
|
date: import("@angular/core").InputSignal<AXDateTime>;
|
26
|
-
appointments: import("@angular/core").InputSignal<
|
26
|
+
appointments: import("@angular/core").InputSignal<AXSchedulerAppointment[]>;
|
27
27
|
processedDayData: import("@angular/core").Signal<TimelineMonthViewDayData[]>;
|
28
28
|
slotClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotMouseEvent>;
|
29
29
|
slotDblClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotMouseEvent>;
|
@@ -33,7 +33,7 @@ export declare class AXSchedulerTimelineMonthViewComponent extends NXComponent {
|
|
33
33
|
appointmentRightClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerAppointmentMouseEvent>;
|
34
34
|
onAppointmentDropInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotDropEvent>;
|
35
35
|
private readonly eventOutputMap;
|
36
|
-
handleAppointmentEvent(mouseEvent: MouseEvent, appointmentItem:
|
36
|
+
handleAppointmentEvent(mouseEvent: MouseEvent, appointmentItem: AXSchedulerAppointment): void;
|
37
37
|
handleSlotEvent(mouseEvent: MouseEvent, date: AXDateTime): void;
|
38
38
|
handleDrop(e: AXDropZoneDropEvent, date: AXDateTime): void;
|
39
39
|
protected isToday(date: AXDateTime): boolean;
|
package/scheduler/lib/views/timeline-multi-day/scheduler-timeline-multi-day-view.component.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { NXComponent } from '@acorex/cdk/common';
|
2
2
|
import { AXDateTime, AXHolidayDate } from '@acorex/core/date-time';
|
3
|
-
import {
|
3
|
+
import { AXSchedulerAppointment } from '../../scheduler.class';
|
4
4
|
import { AXSchedulerAppointmentMouseEvent, AXSchedulerSlotDropEvent, AXSchedulerSlotMouseEvent } from '../../scheduler.component';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
export interface TimelineMultiDayDaySlot {
|
7
7
|
date: AXDateTime;
|
8
|
-
originalAppointmentsForThisDay:
|
8
|
+
originalAppointmentsForThisDay: AXSchedulerAppointment[];
|
9
9
|
holiday?: {
|
10
10
|
state: 'holiday' | 'weekend' | 'none';
|
11
11
|
holiday?: AXHolidayDate;
|
@@ -21,7 +21,7 @@ export declare class AXSchedulerTimelineMultiDayViewComponent extends NXComponen
|
|
21
21
|
date: import("@angular/core").InputSignal<AXDateTime>;
|
22
22
|
endDayHour: import("@angular/core").InputSignal<number>;
|
23
23
|
startDayHour: import("@angular/core").InputSignal<number>;
|
24
|
-
appointments: import("@angular/core").InputSignal<
|
24
|
+
appointments: import("@angular/core").InputSignal<AXSchedulerAppointment[]>;
|
25
25
|
daysDataForTimelineViews: import("@angular/core").Signal<TimelineMultiDayDaySlot[]>;
|
26
26
|
slotClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotMouseEvent>;
|
27
27
|
slotDblClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotMouseEvent>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { NXComponent } from '@acorex/cdk/common';
|
2
2
|
import { AXDropZoneDropEvent } from '@acorex/cdk/drag-drop';
|
3
3
|
import { AXDateTime, AXHolidayDate } from '@acorex/core/date-time';
|
4
|
-
import { AXSchedulerActiveAppointmentsInBlock, AXSchedulerAllDaySlotData, AXSchedulerAppointmentLayout, AXSchedulerAppointmentSegment,
|
4
|
+
import { AXSchedulerActiveAppointmentsInBlock, AXSchedulerAllDaySlotData, AXSchedulerAppointment, AXSchedulerAppointmentLayout, AXSchedulerAppointmentSegment, AXSchedulerOverflowBadge } from '../../scheduler.class';
|
5
5
|
import { AXSchedulerAppointmentMouseEvent, AXSchedulerSlotDropEvent, AXSchedulerSlotMouseEvent } from '../../scheduler.component';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
type AXSchedulerGridBadgeInfo = AXSchedulerOverflowBadge & {
|
@@ -18,7 +18,7 @@ export declare class AXSchedulerWeekViewComponent extends NXComponent {
|
|
18
18
|
date: import("@angular/core").InputSignal<AXDateTime>;
|
19
19
|
endDayHour: import("@angular/core").InputSignal<number>;
|
20
20
|
startDayHour: import("@angular/core").InputSignal<number>;
|
21
|
-
appointments: import("@angular/core").InputSignal<
|
21
|
+
appointments: import("@angular/core").InputSignal<AXSchedulerAppointment[]>;
|
22
22
|
/**
|
23
23
|
* Processes all original appointments and generates day-specific segments for the entire week.
|
24
24
|
* Each segment represents the visible part of an appointment on a particular day.
|
@@ -38,7 +38,7 @@ export declare class AXSchedulerWeekViewComponent extends NXComponent {
|
|
38
38
|
appointmentRightClickedInternal: import("@angular/core").OutputEmitterRef<AXSchedulerAppointmentMouseEvent>;
|
39
39
|
onAppointmentDropInternal: import("@angular/core").OutputEmitterRef<AXSchedulerSlotDropEvent>;
|
40
40
|
private readonly eventOutputMap;
|
41
|
-
handleAppointmentEvent(mouseEvent: MouseEvent, appointmentSegment:
|
41
|
+
handleAppointmentEvent(mouseEvent: MouseEvent, appointmentSegment: AXSchedulerAppointment): void;
|
42
42
|
handleSingleSlotEvent(mouseEvent: MouseEvent, hour: AXDateTime, day: AXDateTime, minuteIndex: number): void;
|
43
43
|
handleAllDaySlotEvent(mouseEvent: MouseEvent, day: AXDateTime): void;
|
44
44
|
handleAllDayDrop(e: AXDropZoneDropEvent, day: AXDateTime): void;
|