mis-crystal-design-system 18.2.13 → 18.2.16-test
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-dp-container/tz-dp-container.component.d.ts +1 -0
- package/daterangepicker_v2/daterangepicker-constants.d.ts +4 -0
- package/daterangepicker_v2/daterangepicker.module.d.ts +9 -8
- package/daterangepicker_v2/models/drp-config.model.d.ts +14 -0
- package/daterangepicker_v2/public_api.d.ts +3 -1
- package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +2 -1
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +24 -1
- package/daterangepicker_v2/tz-drp-mobile-container/tz-drp-mobile-container.component.d.ts +13 -0
- package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +49 -33
- package/esm2022/daterangepicker_v2/daterangepicker-constants.mjs +12 -1
- package/esm2022/daterangepicker_v2/daterangepicker.module.mjs +5 -4
- package/esm2022/daterangepicker_v2/models/drp-config.model.mjs +1 -1
- package/esm2022/daterangepicker_v2/public_api.mjs +3 -1
- package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +8 -3
- package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +177 -50
- package/esm2022/daterangepicker_v2/tz-drp-mobile-container/tz-drp-mobile-container.component.mjs +267 -0
- package/esm2022/specificdatepicker/models/sdp-config.model.mjs +1 -1
- package/esm2022/specificdatepicker/specificdatepicker.module.mjs +4 -5
- package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +277 -225
- package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +33 -31
- package/esm2022/table/table.component.mjs +62 -63
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs +48 -32
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +464 -61
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs +311 -257
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-table.mjs +61 -62
- package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
- package/package.json +7 -7
- package/specificdatepicker/models/sdp-config.model.d.ts +1 -0
- package/specificdatepicker/specificdatepicker.module.d.ts +2 -3
- package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +10 -9
- package/specificdatepicker/tz-specificdatepicker.directive.d.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mis-crystal-design-system",
|
|
3
|
-
"version": "18.2.
|
|
3
|
+
"version": "18.2.16-test",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "*",
|
|
6
6
|
"@angular/core": "*",
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
"esm": "./esm2022/button/mis-crystal-design-system-button.mjs",
|
|
47
47
|
"default": "./fesm2022/mis-crystal-design-system-button.mjs"
|
|
48
48
|
},
|
|
49
|
-
"./chip": {
|
|
50
|
-
"types": "./chip/index.d.ts",
|
|
51
|
-
"esm2022": "./esm2022/chip/mis-crystal-design-system-chip.mjs",
|
|
52
|
-
"esm": "./esm2022/chip/mis-crystal-design-system-chip.mjs",
|
|
53
|
-
"default": "./fesm2022/mis-crystal-design-system-chip.mjs"
|
|
54
|
-
},
|
|
55
49
|
"./checkbox": {
|
|
56
50
|
"types": "./checkbox/index.d.ts",
|
|
57
51
|
"esm2022": "./esm2022/checkbox/mis-crystal-design-system-checkbox.mjs",
|
|
58
52
|
"esm": "./esm2022/checkbox/mis-crystal-design-system-checkbox.mjs",
|
|
59
53
|
"default": "./fesm2022/mis-crystal-design-system-checkbox.mjs"
|
|
60
54
|
},
|
|
55
|
+
"./chip": {
|
|
56
|
+
"types": "./chip/index.d.ts",
|
|
57
|
+
"esm2022": "./esm2022/chip/mis-crystal-design-system-chip.mjs",
|
|
58
|
+
"esm": "./esm2022/chip/mis-crystal-design-system-chip.mjs",
|
|
59
|
+
"default": "./fesm2022/mis-crystal-design-system-chip.mjs"
|
|
60
|
+
},
|
|
61
61
|
"./datepicker_v2": {
|
|
62
62
|
"types": "./datepicker_v2/index.d.ts",
|
|
63
63
|
"esm2022": "./esm2022/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs",
|
|
@@ -6,10 +6,9 @@ import * as i4 from "@angular/cdk/overlay";
|
|
|
6
6
|
import * as i5 from "mis-crystal-design-system/toast";
|
|
7
7
|
import * as i6 from "mis-crystal-design-system/button";
|
|
8
8
|
import * as i7 from "mis-crystal-design-system/radio-button";
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "@angular/cdk/a11y";
|
|
9
|
+
import * as i8 from "@angular/cdk/a11y";
|
|
11
10
|
export declare class SpecificDatepickerModule {
|
|
12
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpecificDatepickerModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SpecificDatepickerModule, [typeof i1.TzDrpContainerComponent, typeof i2.TzSpecificDatepickerDirective], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.ToastModule, typeof i6.ButtonModule, typeof i7.RadioButtonModule, typeof i8.
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SpecificDatepickerModule, [typeof i1.TzDrpContainerComponent, typeof i2.TzSpecificDatepickerDirective], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.ToastModule, typeof i6.ButtonModule, typeof i7.RadioButtonModule, typeof i8.A11yModule], [typeof i1.TzDrpContainerComponent, typeof i2.TzSpecificDatepickerDirective]>;
|
|
14
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<SpecificDatepickerModule>;
|
|
15
14
|
}
|
|
@@ -2,24 +2,23 @@ import { ElementRef, OnInit } from "@angular/core";
|
|
|
2
2
|
import { ICurrentMonth, ICurrentMonthDates, IDatePickerData, ISSelectedDatesConfig, IRSelectedDatesConfig } from "../models/sdp-config.model";
|
|
3
3
|
import { ToastService } from "mis-crystal-design-system/toast";
|
|
4
4
|
import { UntypedFormControl } from "@angular/forms";
|
|
5
|
-
import { TzDatepickerDirective } from "mis-crystal-design-system/datepicker_v2";
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class TzDrpContainerComponent implements OnInit {
|
|
8
7
|
private injectedData;
|
|
9
8
|
private toast;
|
|
10
9
|
private elementRef;
|
|
11
10
|
readonly data: import("@angular/core").WritableSignal<IDatePickerData>;
|
|
11
|
+
readonly isMobile: import("@angular/core").Signal<boolean>;
|
|
12
12
|
private readonly dayjsInstance;
|
|
13
13
|
private readonly rawWeekDays;
|
|
14
14
|
readonly localSelectedDates: import("@angular/core").WritableSignal<ISSelectedDatesConfig[]>;
|
|
15
15
|
readonly localSelectedDatesRange: import("@angular/core").WritableSignal<IRSelectedDatesConfig>;
|
|
16
16
|
readonly isDatesValid: import("@angular/core").Signal<boolean>;
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
17
|
+
private readonly mode;
|
|
18
|
+
readonly isSpecificPickerSelected: import("@angular/core").Signal<boolean>;
|
|
19
|
+
readonly singleDatePickerSelected: import("@angular/core").Signal<boolean>;
|
|
20
|
+
readonly dateRangeSelected: import("@angular/core").Signal<boolean>;
|
|
21
21
|
readonly selectionStarted: import("@angular/core").WritableSignal<boolean>;
|
|
22
|
-
readonly isSpecificPickerSelected: import("@angular/core").WritableSignal<boolean>;
|
|
23
22
|
readonly formControl: UntypedFormControl;
|
|
24
23
|
readonly datePickerValue: import("@angular/core").WritableSignal<string[]>;
|
|
25
24
|
readonly currentMonthNumber: import("@angular/core").WritableSignal<number>;
|
|
@@ -38,25 +37,27 @@ export declare class TzDrpContainerComponent implements OnInit {
|
|
|
38
37
|
readonly isNextMonthDisabled: import("@angular/core").Signal<boolean>;
|
|
39
38
|
readonly currentMonthDates: import("@angular/core").Signal<ICurrentMonthDates[]>;
|
|
40
39
|
readonly nextMonthDates: import("@angular/core").Signal<ICurrentMonthDates[]>;
|
|
41
|
-
|
|
40
|
+
readonly showSecondMonth: import("@angular/core").Signal<boolean>;
|
|
42
41
|
constructor(injectedData: IDatePickerData, toast: ToastService, elementRef: ElementRef<HTMLElement>);
|
|
43
42
|
ngOnInit(): void;
|
|
43
|
+
private setMode;
|
|
44
|
+
private positionToSelection;
|
|
44
45
|
private generateDates;
|
|
45
46
|
navigateMonth(direction: "NEXT" | "PREVIOUS"): void;
|
|
46
47
|
selectDay(from: "LEFT" | "RIGHT", day: ICurrentMonthDates): void;
|
|
47
48
|
applyDates(): void;
|
|
48
49
|
applyDatesRange(): void;
|
|
49
|
-
onSingleDateChange(event: string): void;
|
|
50
50
|
cancelDatePicker(): void;
|
|
51
51
|
changePicker(event: any): void;
|
|
52
|
+
getDayCellStyle(day: ICurrentMonthDates): Record<string, string>;
|
|
52
53
|
getDayTabIndex(day: ICurrentMonthDates, panel: "LEFT" | "RIGHT"): number;
|
|
53
54
|
getDayCellId(day: ICurrentMonthDates, panel: "LEFT" | "RIGHT"): string;
|
|
54
55
|
private scheduleFocusCell;
|
|
55
56
|
private static readonly ROW_SIZE;
|
|
56
57
|
getDayIndexInMonth(day: ICurrentMonthDates, panel: "LEFT" | "RIGHT"): number;
|
|
57
58
|
getNextDayIndex(currentIndex: number, direction: "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown", panel: "LEFT" | "RIGHT"): number;
|
|
59
|
+
private moveFocusToAdjacentMonth;
|
|
58
60
|
handleDayKeydown(event: KeyboardEvent, panel: "LEFT" | "RIGHT", day: ICurrentMonthDates): void;
|
|
59
|
-
ngOnDestroy(): void;
|
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<TzDrpContainerComponent, never>;
|
|
61
62
|
static ɵcmp: i0.ɵɵComponentDeclaration<TzDrpContainerComponent, "mis-tz-sdp", never, {}, {}, never, never, false, never>;
|
|
62
63
|
}
|
|
@@ -22,19 +22,21 @@ export declare class TzSpecificDatepickerDirective {
|
|
|
22
22
|
readonly offsetY: import("@angular/core").InputSignal<number>;
|
|
23
23
|
readonly isSPickerSelected: import("@angular/core").InputSignal<boolean>;
|
|
24
24
|
readonly isSingleDatePickerEnable: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
readonly isMobileView: import("@angular/core").InputSignal<boolean>;
|
|
25
26
|
readonly dateChange: import("@angular/core").OutputEmitterRef<ISSelectedDatesConfig[]>;
|
|
26
27
|
readonly dateChangeRange: import("@angular/core").OutputEmitterRef<IRSelectedDatesConfig>;
|
|
27
28
|
private readonly isOpen;
|
|
28
29
|
private overlayRef;
|
|
29
30
|
constructor(element: ElementRef, overlay: Overlay, viewContainerRef: ViewContainerRef, control: NgControl);
|
|
31
|
+
private buildPositions;
|
|
32
|
+
private buildPositionStrategy;
|
|
30
33
|
toggleDatePicker(): void;
|
|
31
34
|
toggleDatePickerOnEnter(): void;
|
|
32
35
|
closeOnEsc(): void;
|
|
33
36
|
private open;
|
|
34
|
-
private updateOverlayPosition;
|
|
35
37
|
applyDate(dates: ISSelectedDatesConfig[]): void;
|
|
36
38
|
applyDateRange(dates: IRSelectedDatesConfig): void;
|
|
37
39
|
close(): void;
|
|
38
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<TzSpecificDatepickerDirective, [null, null, null, { optional: true; }]>;
|
|
39
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TzSpecificDatepickerDirective, "input[misTzSdp]", never, { "dpConfig": { "alias": "dpConfig"; "required": false; "isSignal": true; }; "selectedDates": { "alias": "selectedDates"; "required": false; "isSignal": true; }; "selectedDatesRange": { "alias": "selectedDatesRange"; "required": false; "isSignal": true; }; "datesDisabled": { "alias": "datesDisabled"; "required": false; "isSignal": true; }; "holidaysDates": { "alias": "holidaysDates"; "required": false; "isSignal": true; }; "weekOffsSelection": { "alias": "weekOffsSelection"; "required": false; "isSignal": true; }; "noShows": { "alias": "noShows"; "required": false; "isSignal": true; }; "dateMessages": { "alias": "dateMessages"; "required": false; "isSignal": true; }; "positionX": { "alias": "positionX"; "required": false; "isSignal": true; }; "positionY": { "alias": "positionY"; "required": false; "isSignal": true; }; "offsetX": { "alias": "offsetX"; "required": false; "isSignal": true; }; "offsetY": { "alias": "offsetY"; "required": false; "isSignal": true; }; "isSPickerSelected": { "alias": "isSPickerSelected"; "required": false; "isSignal": true; }; "isSingleDatePickerEnable": { "alias": "isSingleDatePickerEnable"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; "dateChangeRange": "dateChangeRange"; }, never, never, false, never>;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TzSpecificDatepickerDirective, "input[misTzSdp]", never, { "dpConfig": { "alias": "dpConfig"; "required": false; "isSignal": true; }; "selectedDates": { "alias": "selectedDates"; "required": false; "isSignal": true; }; "selectedDatesRange": { "alias": "selectedDatesRange"; "required": false; "isSignal": true; }; "datesDisabled": { "alias": "datesDisabled"; "required": false; "isSignal": true; }; "holidaysDates": { "alias": "holidaysDates"; "required": false; "isSignal": true; }; "weekOffsSelection": { "alias": "weekOffsSelection"; "required": false; "isSignal": true; }; "noShows": { "alias": "noShows"; "required": false; "isSignal": true; }; "dateMessages": { "alias": "dateMessages"; "required": false; "isSignal": true; }; "positionX": { "alias": "positionX"; "required": false; "isSignal": true; }; "positionY": { "alias": "positionY"; "required": false; "isSignal": true; }; "offsetX": { "alias": "offsetX"; "required": false; "isSignal": true; }; "offsetY": { "alias": "offsetY"; "required": false; "isSignal": true; }; "isSPickerSelected": { "alias": "isSPickerSelected"; "required": false; "isSignal": true; }; "isSingleDatePickerEnable": { "alias": "isSingleDatePickerEnable"; "required": false; "isSignal": true; }; "isMobileView": { "alias": "isMobileView"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; "dateChangeRange": "dateChangeRange"; }, never, never, false, never>;
|
|
40
42
|
}
|