@netwin/angular-datetime-picker 19.0.0-rc.1 → 19.0.0-rc.2
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/esm2022/lib/date-time/adapter/native-date-time-adapter.class.mjs +4 -4
- package/esm2022/lib/date-time/adapter/native-date-time.module.mjs +9 -9
- package/esm2022/lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-adapter.class.mjs +4 -4
- package/esm2022/lib/date-time/calendar-body.component.mjs +4 -4
- package/esm2022/lib/date-time/calendar-month-view.component.mjs +4 -4
- package/esm2022/lib/date-time/calendar-multi-year-view.component.mjs +4 -4
- package/esm2022/lib/date-time/calendar-year-view.component.mjs +4 -4
- package/esm2022/lib/date-time/calendar.component.mjs +4 -4
- package/esm2022/lib/date-time/date-time-inline.component.mjs +23 -7
- package/esm2022/lib/date-time/date-time-picker-intl.service.mjs +4 -4
- package/esm2022/lib/date-time/date-time.module.mjs +5 -5
- package/esm2022/lib/date-time/timer-box.component.mjs +4 -4
- package/esm2022/lib/date-time/timer.component.mjs +4 -4
- package/esm2022/public_api.mjs +10 -5
- package/fesm2022/netwin-angular-datetime-picker.mjs +145 -127
- package/fesm2022/netwin-angular-datetime-picker.mjs.map +1 -1
- package/lib/date-time/calendar-multi-year-view.component.d.ts +7 -6
- package/lib/date-time/date-time-inline.component.d.ts +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +4 -4
|
@@ -3,6 +3,7 @@ import { SelectMode } from '../types';
|
|
|
3
3
|
import { DateTimeAdapter } from './adapter/date-time-adapter.class';
|
|
4
4
|
import { CalendarCell, OwlCalendarBodyComponent } from './calendar-body.component';
|
|
5
5
|
import { OwlDateTimeIntl } from './date-time-picker-intl.service';
|
|
6
|
+
import { Options } from './options-provider';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class OwlMultiYearViewComponent<T> implements AfterContentInit {
|
|
8
9
|
private cdRef;
|
|
@@ -23,7 +24,7 @@ export declare class OwlMultiYearViewComponent<T> implements AfterContentInit {
|
|
|
23
24
|
get selecteds(): Array<T>;
|
|
24
25
|
set selecteds(values: Array<T>);
|
|
25
26
|
private _pickerMoment;
|
|
26
|
-
get pickerMoment(): T;
|
|
27
|
+
get pickerMoment(): T | null;
|
|
27
28
|
set pickerMoment(value: T);
|
|
28
29
|
/**
|
|
29
30
|
* A function used to filter which dates are selectable
|
|
@@ -42,7 +43,7 @@ export declare class OwlMultiYearViewComponent<T> implements AfterContentInit {
|
|
|
42
43
|
private _todayYear;
|
|
43
44
|
get todayYear(): number;
|
|
44
45
|
private _years;
|
|
45
|
-
get years(): CalendarCell
|
|
46
|
+
get years(): Array<Array<CalendarCell>>;
|
|
46
47
|
private _selectedYears;
|
|
47
48
|
get selectedYears(): Array<number>;
|
|
48
49
|
private initiated;
|
|
@@ -63,11 +64,11 @@ export declare class OwlMultiYearViewComponent<T> implements AfterContentInit {
|
|
|
63
64
|
/** Emits when any date is activated. */
|
|
64
65
|
readonly pickerMomentChange: EventEmitter<T>;
|
|
65
66
|
/** Emits when use keyboard enter to select a calendar cell */
|
|
66
|
-
readonly keyboardEnter: EventEmitter<
|
|
67
|
+
readonly keyboardEnter: EventEmitter<KeyboardEvent>;
|
|
67
68
|
/** The body of calendar table */
|
|
68
69
|
calendarBodyElm: OwlCalendarBodyComponent;
|
|
69
70
|
get owlDTCalendarMultiYearView(): boolean;
|
|
70
|
-
constructor(cdRef: ChangeDetectorRef, pickerIntl: OwlDateTimeIntl, dateTimeAdapter: DateTimeAdapter<T>, options:
|
|
71
|
+
constructor(cdRef: ChangeDetectorRef, pickerIntl: OwlDateTimeIntl, dateTimeAdapter: DateTimeAdapter<T>, options: Options['multiYear']);
|
|
71
72
|
ngAfterContentInit(): void;
|
|
72
73
|
/**
|
|
73
74
|
* Handle a calendarCell selected
|
|
@@ -77,11 +78,11 @@ export declare class OwlMultiYearViewComponent<T> implements AfterContentInit {
|
|
|
77
78
|
/**
|
|
78
79
|
* Generate the previous year list
|
|
79
80
|
*/
|
|
80
|
-
prevYearList(event:
|
|
81
|
+
prevYearList(event: MouseEvent): void;
|
|
81
82
|
/**
|
|
82
83
|
* Generate the next year list
|
|
83
84
|
*/
|
|
84
|
-
nextYearList(event:
|
|
85
|
+
nextYearList(event: MouseEvent): void;
|
|
85
86
|
generateYearList(): void;
|
|
86
87
|
/** Whether the previous period button is enabled. */
|
|
87
88
|
previousEnabled(): boolean;
|
|
@@ -154,7 +154,7 @@ export declare class OwlDateTimeInlineComponent implements ControlValueAccessor
|
|
|
154
154
|
private onModelChange;
|
|
155
155
|
private onModelTouched;
|
|
156
156
|
constructor();
|
|
157
|
-
writeValue(value: Date
|
|
157
|
+
writeValue(value: Date): void;
|
|
158
158
|
registerOnChange(fn: (v: Date | Array<Date>) => void): void;
|
|
159
159
|
registerOnTouched(fn: () => void): void;
|
|
160
160
|
setDisabledState(isDisabled: boolean): void;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export * from './lib/date-time/adapter/date-time-adapter.class';
|
|
2
2
|
export * from './lib/date-time/adapter/date-time-format.class';
|
|
3
3
|
export * from './lib/date-time/adapter/native-date-time-adapter.class';
|
|
4
|
+
export * from './lib/date-time/adapter/native-date-time.module';
|
|
4
5
|
export * from './lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-adapter.class';
|
|
5
6
|
export * from './lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-format.class';
|
|
6
|
-
export * from './lib/date-time/options-provider';
|
|
7
|
-
export * from './lib/date-time/adapter/native-date-time.module';
|
|
8
7
|
export * from './lib/date-time/date-time-picker-intl.service';
|
|
9
|
-
export * from './lib/date-time/
|
|
8
|
+
export * from './lib/date-time/options-provider';
|
|
10
9
|
export * from './lib/date-time/calendar-body.component';
|
|
11
10
|
export * from './lib/date-time/calendar-month-view.component';
|
|
12
11
|
export * from './lib/date-time/calendar-multi-year-view.component';
|
|
13
12
|
export * from './lib/date-time/calendar-year-view.component';
|
|
14
13
|
export * from './lib/date-time/calendar.component';
|
|
15
|
-
export * from './lib/date-time/date-time-inline.component';
|
|
16
14
|
export * from './lib/date-time/timer.component';
|
|
15
|
+
export * from './lib/date-time/date-time-inline.component';
|
|
16
|
+
export * from './lib/date-time/date-time.module';
|
|
17
17
|
export * from './lib/types';
|