mis-crystal-design-system 18.2.2 → 18.2.4
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/datepicker_v2/tz-datepicker.directive.d.ts +2 -2
- package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +15 -1
- package/daterangepicker_v2/daterangepicker-constants.d.ts +6 -0
- package/daterangepicker_v2/models/drp-config.model.d.ts +2 -0
- package/daterangepicker_v2/public_api.d.ts +1 -0
- package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +2 -2
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +12 -0
- package/dropdown/dropdown.component.d.ts +3 -1
- package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +194 -76
- package/esm2022/daterangepicker_v2/daterangepicker-constants.mjs +6 -1
- package/esm2022/daterangepicker_v2/models/drp-config.model.mjs +1 -1
- package/esm2022/daterangepicker_v2/public_api.mjs +2 -1
- package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +92 -13
- package/esm2022/dropdown/dropdown.component.mjs +60 -49
- package/esm2022/specificdatepicker/models/sdp-config.model.mjs +1 -1
- package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +67 -51
- package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +4 -2
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs +196 -78
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +96 -12
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dropdown.mjs +60 -49
- package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs +69 -51
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
- package/package.json +13 -13
- package/specificdatepicker/models/sdp-config.model.d.ts +2 -0
- package/specificdatepicker/tz-specificdatepicker.directive.d.ts +4 -3
|
@@ -12,8 +12,8 @@ export declare class TzDatepickerDirective implements OnInit {
|
|
|
12
12
|
selectedDate: import("@angular/core").InputSignal<string>;
|
|
13
13
|
datesDisabled: import("@angular/core").InputSignal<string[]>;
|
|
14
14
|
dateMessages: import("@angular/core").InputSignal<IDatePickerToastText[]>;
|
|
15
|
-
positionX: import("@angular/core").InputSignal<"start" | "
|
|
16
|
-
positionY: import("@angular/core").InputSignal<"
|
|
15
|
+
positionX: import("@angular/core").InputSignal<"start" | "end" | "center">;
|
|
16
|
+
positionY: import("@angular/core").InputSignal<"top" | "bottom" | "center">;
|
|
17
17
|
offsetX: import("@angular/core").InputSignal<number>;
|
|
18
18
|
offsetY: import("@angular/core").InputSignal<number>;
|
|
19
19
|
allowBookingOnDisabledDay: import("@angular/core").InputSignal<boolean>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { OnInit } from "@angular/core";
|
|
2
|
+
import { LiveAnnouncer } from "@angular/cdk/a11y";
|
|
2
3
|
import { ICurrentMonth, ICurrentMonthDates, IDatePickerData, IWeekDay } from "../models/dp-config.model";
|
|
3
4
|
import { ToastService } from "mis-crystal-design-system/toast";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class TzDpContainerComponent implements OnInit {
|
|
6
7
|
private toast;
|
|
8
|
+
private liveAnnouncer;
|
|
7
9
|
data: IDatePickerData;
|
|
8
10
|
private parseZoneInstance;
|
|
9
11
|
/**
|
|
@@ -19,6 +21,16 @@ export declare class TzDpContainerComponent implements OnInit {
|
|
|
19
21
|
private readonly isPreviousMonthDisabledSignal;
|
|
20
22
|
private readonly isNextMonthDisabledSignal;
|
|
21
23
|
private readonly localSelectedDateSignal;
|
|
24
|
+
readonly focusedDateSignal: import("@angular/core").WritableSignal<{
|
|
25
|
+
date: number;
|
|
26
|
+
month: number;
|
|
27
|
+
year: number;
|
|
28
|
+
}>;
|
|
29
|
+
focusedDate: import("@angular/core").Signal<{
|
|
30
|
+
date: number;
|
|
31
|
+
month: number;
|
|
32
|
+
year: number;
|
|
33
|
+
}>;
|
|
22
34
|
private readonly allowBookingOnDisabledDaySignal;
|
|
23
35
|
private readonly currentSelectionSignal;
|
|
24
36
|
readonly selectedHourSignal: import("@angular/core").WritableSignal<number>;
|
|
@@ -53,13 +65,14 @@ export declare class TzDpContainerComponent implements OnInit {
|
|
|
53
65
|
disabledYears: import("@angular/core").Signal<boolean[]>;
|
|
54
66
|
selectedYear: import("@angular/core").Signal<number>;
|
|
55
67
|
isYearSelectionFlow: import("@angular/core").Signal<boolean>;
|
|
56
|
-
constructor(data: IDatePickerData, toast: ToastService);
|
|
68
|
+
constructor(data: IDatePickerData, toast: ToastService, liveAnnouncer: LiveAnnouncer);
|
|
57
69
|
onHourInput(event: any): void;
|
|
58
70
|
onMinuteInput(event: any): void;
|
|
59
71
|
validateHourInput(): void;
|
|
60
72
|
validateMinuteInput(): void;
|
|
61
73
|
is12HourFormat(): boolean;
|
|
62
74
|
retractDayMonth(day: any, month: any, year: any): any;
|
|
75
|
+
isFocusedDay(day: ICurrentMonthDates): boolean;
|
|
63
76
|
ngOnInit(): void;
|
|
64
77
|
get yearRange(): string;
|
|
65
78
|
private initializeTimeValues;
|
|
@@ -72,6 +85,7 @@ export declare class TzDpContainerComponent implements OnInit {
|
|
|
72
85
|
private generateDates;
|
|
73
86
|
selectDay(day: ICurrentMonthDates): void;
|
|
74
87
|
applyDate(day?: ICurrentMonthDates): void;
|
|
88
|
+
onDayKeydown(event: KeyboardEvent, day: ICurrentMonthDates): void;
|
|
75
89
|
closeOnEsc(): void;
|
|
76
90
|
cancelDatePicker(): void;
|
|
77
91
|
toggleMonthSelector(): void;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { InjectionToken } from "@angular/core";
|
|
3
3
|
export declare const CONTAINER_DATA: InjectionToken<{}>;
|
|
4
4
|
export declare const DATE_FORMAT = "DD-MM-YYYY";
|
|
5
|
+
export declare const ISO_DATE_FORMAT = "YYYY-MM-DD";
|
|
5
6
|
export declare const COLUMN_NAV_DIRECTION: {
|
|
6
7
|
readonly FORWARD: "forward";
|
|
7
8
|
readonly BACKWARD: "backward";
|
|
@@ -24,3 +25,8 @@ export declare const CALENDAR_ARROW_KEY: {
|
|
|
24
25
|
readonly DOWN: "ArrowDown";
|
|
25
26
|
};
|
|
26
27
|
export type CalendarArrowKey = (typeof CALENDAR_ARROW_KEY)[keyof typeof CALENDAR_ARROW_KEY];
|
|
28
|
+
export declare const SELECTION_MODE: {
|
|
29
|
+
readonly DEFAULT: "default";
|
|
30
|
+
readonly WEEKLY: "weekly";
|
|
31
|
+
};
|
|
32
|
+
export type SelectionMode = (typeof SELECTION_MODE)[keyof typeof SELECTION_MODE];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SelectionMode } from "../daterangepicker-constants";
|
|
1
2
|
export interface IDatePickerConfig {
|
|
2
3
|
format: string;
|
|
3
4
|
minDate: string;
|
|
@@ -6,6 +7,7 @@ export interface IDatePickerConfig {
|
|
|
6
7
|
maxAllowedRange?: number;
|
|
7
8
|
ranges?: RangeItem[];
|
|
8
9
|
enableTime?: boolean;
|
|
10
|
+
selectionMode?: SelectionMode;
|
|
9
11
|
}
|
|
10
12
|
export interface RangeItem {
|
|
11
13
|
label: string;
|
|
@@ -2,3 +2,4 @@ export { TzDrpContainerComponent } from "./tz-drp-container/tz-drp-container.com
|
|
|
2
2
|
export { DateRangepickerModuleV2 } from "./daterangepicker.module";
|
|
3
3
|
export { TzDaterangepickerDirective } from "./tz-daterangepicker.directive";
|
|
4
4
|
export { IDatePickerConfig, IDatePickerToastText } from "./models/drp-config.model";
|
|
5
|
+
export { SELECTION_MODE, type SelectionMode } from "./daterangepicker-constants";
|
|
@@ -13,8 +13,8 @@ export declare class TzDaterangepickerDirective {
|
|
|
13
13
|
datesDisabled: import("@angular/core").InputSignal<string[]>;
|
|
14
14
|
selectedRangeLabel: import("@angular/core").InputSignal<string>;
|
|
15
15
|
dateMessages: import("@angular/core").InputSignal<IDatePickerToastText[]>;
|
|
16
|
-
positionX: import("@angular/core").InputSignal<"start" | "
|
|
17
|
-
positionY: import("@angular/core").InputSignal<"
|
|
16
|
+
positionX: import("@angular/core").InputSignal<"start" | "end" | "center">;
|
|
17
|
+
positionY: import("@angular/core").InputSignal<"top" | "bottom" | "center">;
|
|
18
18
|
offsetX: import("@angular/core").InputSignal<number>;
|
|
19
19
|
offsetY: import("@angular/core").InputSignal<number>;
|
|
20
20
|
dateChange: import("@angular/core").OutputEmitterRef<ISelectedDatesConfig>;
|
|
@@ -16,6 +16,10 @@ export declare class TzDrpContainerComponent implements OnInit {
|
|
|
16
16
|
readonly NEXT: "NEXT";
|
|
17
17
|
readonly PREVIOUS: "PREVIOUS";
|
|
18
18
|
};
|
|
19
|
+
readonly SELECTION_MODE: {
|
|
20
|
+
readonly DEFAULT: "default";
|
|
21
|
+
readonly WEEKLY: "weekly";
|
|
22
|
+
};
|
|
19
23
|
private readonly CUSTOM_RANGE_LABEL;
|
|
20
24
|
readonly data: import("@angular/core").WritableSignal<IDatePickerData>;
|
|
21
25
|
private dayjsInstance;
|
|
@@ -39,6 +43,7 @@ export declare class TzDrpContainerComponent implements OnInit {
|
|
|
39
43
|
private readonly localSelectedDatesSignal;
|
|
40
44
|
private readonly isDatesValidSignal;
|
|
41
45
|
private readonly selectedItemLabelSignal;
|
|
46
|
+
private readonly hoveredWeekStartSignal;
|
|
42
47
|
readonly startHourSignal: import("@angular/core").WritableSignal<number>;
|
|
43
48
|
readonly startMinuteSignal: import("@angular/core").WritableSignal<number>;
|
|
44
49
|
readonly startAmPmSignal: import("@angular/core").WritableSignal<string>;
|
|
@@ -60,6 +65,7 @@ export declare class TzDrpContainerComponent implements OnInit {
|
|
|
60
65
|
localSelectedDates: import("@angular/core").Signal<ISelectedDatesConfig>;
|
|
61
66
|
isDatesValid: import("@angular/core").Signal<boolean>;
|
|
62
67
|
selectedItemLabel: import("@angular/core").Signal<string>;
|
|
68
|
+
isWeeklyMode: import("@angular/core").Signal<boolean>;
|
|
63
69
|
currentMonthDates: import("@angular/core").Signal<ICurrentMonthDates[]>;
|
|
64
70
|
nextMonthDates: import("@angular/core").Signal<ICurrentMonthDates[]>;
|
|
65
71
|
startHour: import("@angular/core").Signal<number>;
|
|
@@ -94,6 +100,12 @@ export declare class TzDrpContainerComponent implements OnInit {
|
|
|
94
100
|
*/
|
|
95
101
|
private updateCalendarFromSelectedDates;
|
|
96
102
|
private generateDates;
|
|
103
|
+
setHoveredWeek(pane: DateRangePane, day: ICurrentMonthDates): void;
|
|
104
|
+
clearHoveredWeek(): void;
|
|
105
|
+
isInHoveredWeek(pane: DateRangePane, day: ICurrentMonthDates): boolean;
|
|
106
|
+
isHoveredWeekStart(pane: DateRangePane, day: ICurrentMonthDates): boolean;
|
|
107
|
+
isHoveredWeekEnd(pane: DateRangePane, day: ICurrentMonthDates): boolean;
|
|
108
|
+
private selectWeek;
|
|
97
109
|
selectDay(from: DateRangePane, day: ICurrentMonthDates): void;
|
|
98
110
|
selectRange(item: RangeItem): void;
|
|
99
111
|
resetRange(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementRef, TemplateRef, ViewContainerRef, ChangeDetectorRef } from "@angular/core";
|
|
2
2
|
import { Overlay } from "@angular/cdk/overlay";
|
|
3
|
+
import { LiveAnnouncer } from "@angular/cdk/a11y";
|
|
3
4
|
import { CdkVirtualScrollViewport } from "@angular/cdk/scrolling";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class DropdownComponent {
|
|
@@ -7,6 +8,7 @@ export declare class DropdownComponent {
|
|
|
7
8
|
private overlay;
|
|
8
9
|
private viewContainerRef;
|
|
9
10
|
private cdr;
|
|
11
|
+
private liveAnnouncer;
|
|
10
12
|
isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
11
13
|
readonly loading: import("@angular/core").WritableSignal<boolean>;
|
|
12
14
|
readonly isSearchInputFocused: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -45,7 +47,7 @@ export declare class DropdownComponent {
|
|
|
45
47
|
private _itemsContainer;
|
|
46
48
|
set itemsContainer(container: ElementRef | null);
|
|
47
49
|
private overlayRef;
|
|
48
|
-
constructor(eRef: ElementRef, overlay: Overlay, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef);
|
|
50
|
+
constructor(eRef: ElementRef, overlay: Overlay, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef, liveAnnouncer: LiveAnnouncer);
|
|
49
51
|
measureAndUpdateHeight(): void;
|
|
50
52
|
get currentData(): DropdownItem[];
|
|
51
53
|
get itemsContainerStyle(): {
|