@netwin/angular-datetime-picker 19.1.0 → 20.0.0-rc.1

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.
Files changed (41) hide show
  1. package/assets/style/picker.min.css +1 -1
  2. package/fesm2022/netwin-angular-datetime-picker.mjs +800 -3152
  3. package/fesm2022/netwin-angular-datetime-picker.mjs.map +1 -1
  4. package/index.d.ts +1474 -3
  5. package/package.json +4 -4
  6. package/lib/date-time/adapter/date-time-adapter.class.d.ts +0 -193
  7. package/lib/date-time/adapter/date-time-format.class.d.ts +0 -15
  8. package/lib/date-time/adapter/native-date-time-adapter.class.d.ts +0 -72
  9. package/lib/date-time/adapter/native-date-time-format.class.d.ts +0 -5
  10. package/lib/date-time/adapter/native-date-time.module.d.ts +0 -12
  11. package/lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-adapter.class.d.ts +0 -67
  12. package/lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-format.class.d.ts +0 -5
  13. package/lib/date-time/calendar-body.component.d.ts +0 -79
  14. package/lib/date-time/calendar-month-view.component.d.ts +0 -141
  15. package/lib/date-time/calendar-multi-year-view.component.d.ts +0 -107
  16. package/lib/date-time/calendar-year-view.component.d.ts +0 -120
  17. package/lib/date-time/calendar.component.d.ts +0 -169
  18. package/lib/date-time/date-time-inline.component.d.ts +0 -115
  19. package/lib/date-time/date-time-picker-container.component.d.ts +0 -131
  20. package/lib/date-time/date-time-picker-input.directive.d.ts +0 -172
  21. package/lib/date-time/date-time-picker-intl.service.d.ts +0 -53
  22. package/lib/date-time/date-time-picker-trigger.directive.d.ts +0 -23
  23. package/lib/date-time/date-time-picker.animations.d.ts +0 -8
  24. package/lib/date-time/date-time-picker.component.d.ts +0 -171
  25. package/lib/date-time/date-time.class.d.ts +0 -103
  26. package/lib/date-time/date-time.module.d.ts +0 -22
  27. package/lib/date-time/numberedFixLen.pipe.d.ts +0 -10
  28. package/lib/date-time/options-provider.d.ts +0 -23
  29. package/lib/date-time/timer-box.component.d.ts +0 -42
  30. package/lib/date-time/timer.component.d.ts +0 -131
  31. package/lib/dialog/dialog-config.class.d.ts +0 -169
  32. package/lib/dialog/dialog-container.component.d.ts +0 -69
  33. package/lib/dialog/dialog-ref.class.d.ts +0 -51
  34. package/lib/dialog/dialog.module.d.ts +0 -11
  35. package/lib/dialog/dialog.service.d.ts +0 -76
  36. package/lib/utils/array.utils.d.ts +0 -2
  37. package/lib/utils/constants.d.ts +0 -16
  38. package/lib/utils/date.utils.d.ts +0 -9
  39. package/lib/utils/index.d.ts +0 -4
  40. package/lib/utils/object.utils.d.ts +0 -8
  41. package/public_api.d.ts +0 -21
@@ -1,172 +0,0 @@
1
- import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
- import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
3
- import { DateTimeAdapter } from './adapter/date-time-adapter.class';
4
- import { OwlDateTimeFormats } from './adapter/date-time-format.class';
5
- import { OwlDateTimeComponent } from './date-time-picker.component';
6
- import { SelectMode } from './date-time.class';
7
- import * as i0 from "@angular/core";
8
- export declare const OWL_DATETIME_VALUE_ACCESSOR: any;
9
- export declare const OWL_DATETIME_VALIDATORS: any;
10
- export declare class OwlDateTimeInputDirective<T> implements OnInit, AfterContentInit, OnDestroy, ControlValueAccessor, Validator {
11
- private elmRef;
12
- private renderer;
13
- private dateTimeAdapter;
14
- private dateTimeFormats;
15
- static ngAcceptInputType_disabled: boolean | '';
16
- /**
17
- * Required flag to be used for range of [null, null]
18
- */
19
- private _required;
20
- get required(): any;
21
- set required(value: any);
22
- /**
23
- * The date time picker that this input is associated with.
24
- */
25
- set owlDateTime(value: OwlDateTimeComponent<T>);
26
- /**
27
- * A function to filter date time
28
- */
29
- set owlDateTimeFilter(filter: (date: T | null) => boolean);
30
- private _dateTimeFilter;
31
- get dateTimeFilter(): (date: T | null) => boolean;
32
- /** Whether the date time picker's input is disabled. */
33
- private _disabled;
34
- get disabled(): boolean;
35
- set disabled(value: boolean);
36
- /** The minimum valid date. */
37
- private _min;
38
- get min(): T | null;
39
- set min(value: T | null);
40
- /** The maximum valid date. */
41
- private _max;
42
- get max(): T | null;
43
- set max(value: T | null);
44
- /**
45
- * The picker's select mode
46
- */
47
- private _selectMode;
48
- get selectMode(): SelectMode;
49
- set selectMode(mode: SelectMode);
50
- /**
51
- * The character to separate the 'from' and 'to' in input value
52
- */
53
- rangeSeparator: string;
54
- private _value;
55
- get value(): T | null;
56
- set value(value: T | null);
57
- private _values;
58
- get values(): Array<T>;
59
- set values(values: Array<T>);
60
- /**
61
- * Callback to invoke when `change` event is fired on this `<input>`
62
- */
63
- readonly dateTimeChange: import("@angular/core").OutputEmitterRef<{
64
- source: OwlDateTimeInputDirective<T>;
65
- value: T | Array<T | null> | null;
66
- input: HTMLInputElement;
67
- }>;
68
- /**
69
- * Callback to invoke when an `input` event is fired on this `<input>`.
70
- */
71
- readonly dateTimeInput: import("@angular/core").OutputEmitterRef<{
72
- source: OwlDateTimeInputDirective<T>;
73
- value: T | Array<T | null> | null;
74
- input: HTMLInputElement;
75
- }>;
76
- get elementRef(): ElementRef;
77
- get isInSingleMode(): boolean;
78
- get isInRangeMode(): boolean;
79
- /** The date-time-picker that this input is associated with. */
80
- dtPicker: OwlDateTimeComponent<T>;
81
- private dtPickerSub;
82
- private localeSub;
83
- private lastValueValid;
84
- private onModelChange;
85
- private onModelTouched;
86
- private validatorOnChange;
87
- /** The form control validator for whether the input parses. */
88
- private parseValidator;
89
- /** The form control validator for the min date. */
90
- private minValidator;
91
- /** The form control validator for the max date. */
92
- private maxValidator;
93
- /** The form control validator for the date filter. */
94
- private filterValidator;
95
- /**
96
- * The form control validator for the range.
97
- * Check whether the 'before' value is before the 'to' value
98
- */
99
- private rangeValidator;
100
- /**
101
- * The form control validator for the range when required.
102
- * Check whether the 'before' and 'to' values are present
103
- */
104
- private requiredRangeValidator;
105
- /** The combined form control validator for this input. */
106
- private validator;
107
- /** Emits when the value changes (either due to user input or programmatic change). */
108
- valueChange: EventEmitter<T | T[]>;
109
- /** Emits when the disabled state has changed */
110
- disabledChange: EventEmitter<boolean>;
111
- get owlDateTimeInputAriaHaspopup(): boolean;
112
- get owlDateTimeInputAriaOwns(): string;
113
- get minIso8601(): string;
114
- get maxIso8601(): string;
115
- get owlDateTimeInputDisabled(): boolean;
116
- constructor(elmRef: ElementRef, renderer: Renderer2, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
117
- ngOnInit(): void;
118
- ngAfterContentInit(): void;
119
- ngOnDestroy(): void;
120
- writeValue(value: any): void;
121
- registerOnChange(fn: any): void;
122
- registerOnTouched(fn: any): void;
123
- setDisabledState(isDisabled: boolean): void;
124
- validate(c: AbstractControl): {
125
- [key: string]: any;
126
- };
127
- registerOnValidatorChange(fn: () => void): void;
128
- /**
129
- * Open the picker when user hold alt + DOWN_ARROW
130
- */
131
- handleKeydownOnHost(event: KeyboardEvent): void;
132
- handleBlurOnHost(event: Event): void;
133
- handleInputOnHost(event: any): void;
134
- handleChangeOnHost(event: any): void;
135
- /**
136
- * Set the native input property 'value'
137
- */
138
- formatNativeInputValue(): void;
139
- /**
140
- * Register the relationship between this input and its picker component
141
- */
142
- private registerDateTimePicker;
143
- /**
144
- * Convert a given obj to a valid date object
145
- */
146
- private getValidDate;
147
- /**
148
- * Convert a time string to a date-time string
149
- * When pickerType is 'timer', the value in the picker's input is a time string.
150
- * The dateTimeAdapter parse fn could not parse a time string to a Date Object.
151
- * Therefore we need this fn to convert a time string to a date-time string.
152
- */
153
- private convertTimeStringToDateTimeString;
154
- /**
155
- * Handle input change in single mode
156
- */
157
- private changeInputInSingleMode;
158
- /**
159
- * Handle input change in rangeFrom or rangeTo mode
160
- */
161
- private changeInputInRangeFromToMode;
162
- /**
163
- * Handle input change in range mode
164
- */
165
- private changeInputInRangeMode;
166
- /**
167
- * Check if the two value is the same
168
- */
169
- private isSameValue;
170
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeInputDirective<any>, [null, null, { optional: true; }, { optional: true; }]>;
171
- static ɵdir: i0.ɵɵDirectiveDeclaration<OwlDateTimeInputDirective<any>, "input[owlDateTime]", ["owlDateTimeInput"], { "required": { "alias": "required"; "required": false; }; "owlDateTime": { "alias": "owlDateTime"; "required": false; }; "owlDateTimeFilter": { "alias": "owlDateTimeFilter"; "required": false; }; "_disabled": { "alias": "_disabled"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; "rangeSeparator": { "alias": "rangeSeparator"; "required": false; }; "value": { "alias": "value"; "required": false; }; "values": { "alias": "values"; "required": false; }; }, { "dateTimeChange": "dateTimeChange"; "dateTimeInput": "dateTimeInput"; }, never, never, false, never>;
172
- }
@@ -1,53 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class OwlDateTimeIntl {
4
- /**
5
- * Stream that emits whenever the labels here are changed. Use this to notify
6
- * components if the labels have changed after initialization.
7
- */
8
- readonly changes: Subject<void>;
9
- /** A label for the up second button (used by screen readers). */
10
- upSecondLabel: string;
11
- /** A label for the down second button (used by screen readers). */
12
- downSecondLabel: string;
13
- /** A label for the up minute button (used by screen readers). */
14
- upMinuteLabel: string;
15
- /** A label for the down minute button (used by screen readers). */
16
- downMinuteLabel: string;
17
- /** A label for the up hour button (used by screen readers). */
18
- upHourLabel: string;
19
- /** A label for the down hour button (used by screen readers). */
20
- downHourLabel: string;
21
- /** A label for the previous month button (used by screen readers). */
22
- prevMonthLabel: string;
23
- /** A label for the next month button (used by screen readers). */
24
- nextMonthLabel: string;
25
- /** A label for the previous year button (used by screen readers). */
26
- prevYearLabel: string;
27
- /** A label for the next year button (used by screen readers). */
28
- nextYearLabel: string;
29
- /** A label for the previous multi-year button (used by screen readers). */
30
- prevMultiYearLabel: string;
31
- /** A label for the next multi-year button (used by screen readers). */
32
- nextMultiYearLabel: string;
33
- /** A label for the 'switch to month view' button (used by screen readers). */
34
- switchToMonthViewLabel: string;
35
- /** A label for the 'switch to year view' button (used by screen readers). */
36
- switchToMultiYearViewLabel: string;
37
- /** A label for the cancel button */
38
- cancelBtnLabel: string;
39
- /** A label for the set button */
40
- setBtnLabel: string;
41
- /** A label for the range 'from' in picker info */
42
- rangeFromLabel: string;
43
- /** A label for the range 'to' in picker info */
44
- rangeToLabel: string;
45
- /** A label for the hour12 button (AM) */
46
- hour12AMLabel: string;
47
- /** A label for the hour12 button (PM) */
48
- hour12PMLabel: string;
49
- /** A label for the today button */
50
- todayButtonLabel: string;
51
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeIntl, never>;
52
- static ɵprov: i0.ɵɵInjectableDeclaration<OwlDateTimeIntl>;
53
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * date-time-picker-trigger.directive
3
- */
4
- import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
5
- import { OwlDateTimeComponent } from './date-time-picker.component';
6
- import * as i0 from "@angular/core";
7
- export declare class OwlDateTimeTriggerDirective<T> implements OnChanges, AfterContentInit, OnDestroy {
8
- protected changeDetector: ChangeDetectorRef;
9
- dtPicker: OwlDateTimeComponent<T>;
10
- private _disabled;
11
- get disabled(): boolean;
12
- set disabled(value: boolean);
13
- protected get owlDTTriggerDisabledClass(): boolean;
14
- private stateChanges;
15
- constructor(changeDetector: ChangeDetectorRef);
16
- ngOnChanges(changes: SimpleChanges): void;
17
- ngAfterContentInit(): void;
18
- ngOnDestroy(): void;
19
- handleClickOnHost(event: Event): void;
20
- private watchStateChanges;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeTriggerDirective<any>, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<OwlDateTimeTriggerDirective<any>, "[owlDateTimeTrigger]", never, { "dtPicker": { "alias": "owlDateTimeTrigger"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
23
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * date-time-picker.animations
3
- */
4
- import { AnimationTriggerMetadata } from '@angular/animations';
5
- export declare const owlDateTimePickerAnimations: {
6
- readonly transformPicker: AnimationTriggerMetadata;
7
- readonly fadeInPicker: AnimationTriggerMetadata;
8
- };
@@ -1,171 +0,0 @@
1
- import { BlockScrollStrategy, Overlay, ScrollStrategy } from '@angular/cdk/overlay';
2
- import { ChangeDetectorRef, EventEmitter, InjectionToken, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
3
- import { OwlDialogService } from '../dialog/dialog.service';
4
- import { DateTimeAdapter } from './adapter/date-time-adapter.class';
5
- import { OwlDateTimeFormats } from './adapter/date-time-format.class';
6
- import { OwlDateTimeInputDirective } from './date-time-picker-input.directive';
7
- import { OwlDateTime, PickerMode, PickerType, SelectMode } from './date-time.class';
8
- import * as i0 from "@angular/core";
9
- /** Injection token that determines the scroll handling while the dtPicker is open. */
10
- export declare const OWL_DTPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
11
- /** @docs-private */
12
- export declare function OWL_DTPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => BlockScrollStrategy;
13
- /** @docs-private */
14
- export declare const OWL_DTPICKER_SCROLL_STRATEGY_PROVIDER: {
15
- provide: InjectionToken<() => ScrollStrategy>;
16
- deps: (typeof Overlay)[];
17
- useFactory: typeof OWL_DTPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY;
18
- };
19
- export declare class OwlDateTimeComponent<T> extends OwlDateTime<T> implements OnDestroy {
20
- overlay: Overlay;
21
- private viewContainerRef;
22
- private dialogService;
23
- private ngZone;
24
- protected changeDetector: ChangeDetectorRef;
25
- protected dateTimeAdapter: DateTimeAdapter<T>;
26
- protected dateTimeFormats: OwlDateTimeFormats;
27
- private document;
28
- /** Custom class for the picker backdrop. */
29
- backdropClass: string | Array<string>;
30
- /** Custom class for the picker overlay pane. */
31
- panelClass: string | Array<string>;
32
- /** The date to open the calendar to initially. */
33
- private _startAt;
34
- get startAt(): T | null;
35
- set startAt(date: T | null);
36
- /** The end date to set for range calendar. */
37
- private _endAt;
38
- get endAt(): T | null;
39
- set endAt(date: T | null);
40
- /**
41
- * Set the type of the dateTime picker
42
- * 'both' -- show both calendar and timer
43
- * 'calendar' -- show only calendar
44
- * 'timer' -- show only timer
45
- */
46
- private _pickerType;
47
- get pickerType(): PickerType;
48
- set pickerType(val: PickerType);
49
- /**
50
- * Whether the picker open as a dialog
51
- */
52
- private _pickerMode;
53
- get pickerMode(): PickerMode;
54
- set pickerMode(mode: PickerMode);
55
- /** Whether the date time picker should be disabled. */
56
- private _disabled;
57
- get disabled(): boolean;
58
- set disabled(value: boolean);
59
- /** Whether the calendar is open. */
60
- private _opened;
61
- get opened(): boolean;
62
- set opened(val: boolean);
63
- /**
64
- * The scroll strategy when the picker is open
65
- * Learn more this from https://material.angular.io/cdk/overlay/overview#scroll-strategies
66
- */
67
- scrollStrategy: ScrollStrategy;
68
- /**
69
- * Callback when the picker is closed
70
- */
71
- readonly afterPickerClosed: import("@angular/core").OutputEmitterRef<T | T[]>;
72
- /**
73
- * Callback before the picker is open
74
- */
75
- readonly beforePickerOpen: import("@angular/core").OutputEmitterRef<void>;
76
- /**
77
- * Callback when the picker is open
78
- */
79
- readonly afterPickerOpen: import("@angular/core").OutputEmitterRef<void>;
80
- /**
81
- * Emits selected year in multi-year view
82
- * This doesn't imply a change on the selected date.
83
- */
84
- readonly yearSelected: import("@angular/core").OutputEmitterRef<T>;
85
- /**
86
- * Emits selected month in year view
87
- * This doesn't imply a change on the selected date.
88
- */
89
- readonly monthSelected: import("@angular/core").OutputEmitterRef<T>;
90
- /**
91
- * Emits selected date
92
- */
93
- readonly dateSelected: import("@angular/core").OutputEmitterRef<T>;
94
- /**
95
- * Emit when the selected value has been confirmed
96
- */
97
- confirmSelectedChange: EventEmitter<T | T[]>;
98
- /**
99
- * Emits when the date time picker is disabled.
100
- */
101
- disabledChange: EventEmitter<boolean>;
102
- private pickerContainerPortal;
103
- private pickerContainer;
104
- private popupRef;
105
- private dialogRef;
106
- private dtInputSub;
107
- private hidePickerStreamSub;
108
- private confirmSelectedStreamSub;
109
- private pickerOpenedStreamSub;
110
- private pickerBeforeOpenedStreamSub;
111
- private _dtInput;
112
- get dtInput(): OwlDateTimeInputDirective<T>;
113
- private _selected;
114
- get selected(): T | null;
115
- set selected(value: T | null);
116
- private _selecteds;
117
- get selecteds(): Array<T>;
118
- set selecteds(values: Array<T>);
119
- /** The minimum selectable date. */
120
- get minDateTime(): T | null;
121
- /** The maximum selectable date. */
122
- get maxDateTime(): T | null;
123
- get dateTimeFilter(): (date: T | null) => boolean;
124
- get selectMode(): SelectMode;
125
- get isInSingleMode(): boolean;
126
- get isInRangeMode(): boolean;
127
- private readonly defaultScrollStrategy;
128
- constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, dialogService: OwlDialogService, ngZone: NgZone, changeDetector: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, defaultScrollStrategy: any, dateTimeFormats: OwlDateTimeFormats, document: any);
129
- ngOnDestroy(): void;
130
- registerInput(input: OwlDateTimeInputDirective<T>): void;
131
- open(): void;
132
- /**
133
- * Selects the given date
134
- */
135
- select(date: Array<T> | T): void;
136
- /**
137
- * Emits the selected year in multi-year view
138
- */
139
- selectYear(normalizedYear: T): void;
140
- /**
141
- * Emits selected month in year view
142
- */
143
- selectMonth(normalizedMonth: T): void;
144
- /**
145
- * Emits the selected date
146
- */
147
- selectDate(normalizedDate: T): void;
148
- /**
149
- * Hide the picker
150
- */
151
- close(): void;
152
- /**
153
- * Confirm the selected value
154
- */
155
- confirmSelect(): void;
156
- /**
157
- * Open the picker as a dialog
158
- */
159
- private openAsDialog;
160
- /**
161
- * Open the picker as popup
162
- */
163
- private openAsPopup;
164
- private createPopup;
165
- /**
166
- * Create the popup PositionStrategy.
167
- */
168
- private createPopupPositionStrategy;
169
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeComponent<any>, [null, null, null, null, null, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
170
- static ɵcmp: i0.ɵɵComponentDeclaration<OwlDateTimeComponent<any>, "owl-date-time", ["owlDateTime"], { "backdropClass": { "alias": "backdropClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "endAt": { "alias": "endAt"; "required": false; }; "pickerType": { "alias": "pickerType"; "required": false; }; "pickerMode": { "alias": "pickerMode"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "scrollStrategy": { "alias": "scrollStrategy"; "required": false; }; }, { "afterPickerClosed": "afterPickerClosed"; "beforePickerOpen": "beforePickerOpen"; "afterPickerOpen": "afterPickerOpen"; "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "dateSelected": "dateSelected"; }, never, never, false, never>;
171
- }
@@ -1,103 +0,0 @@
1
- import { type OutputRef } from '@angular/core';
2
- import { DateTimeAdapter } from './adapter/date-time-adapter.class';
3
- import { OwlDateTimeFormats } from './adapter/date-time-format.class';
4
- import * as i0 from "@angular/core";
5
- export type PickerType = 'both' | 'calendar' | 'timer';
6
- export type PickerMode = 'popup' | 'dialog' | 'inline';
7
- export type SelectMode = 'single' | 'range' | 'rangeFrom' | 'rangeTo';
8
- export declare enum DateView {
9
- MONTH = "month",
10
- YEAR = "year",
11
- MULTI_YEARS = "multi-years"
12
- }
13
- export type DateViewType = DateView.MONTH | DateView.YEAR | DateView.MULTI_YEARS;
14
- export declare abstract class OwlDateTime<T> {
15
- protected dateTimeAdapter: DateTimeAdapter<T>;
16
- protected dateTimeFormats: OwlDateTimeFormats;
17
- /**
18
- * Whether to show the second's timer
19
- */
20
- private _showSecondsTimer;
21
- get showSecondsTimer(): boolean;
22
- set showSecondsTimer(val: boolean);
23
- /**
24
- * Whether the timer is in hour12 format
25
- */
26
- private _hour12Timer;
27
- get hour12Timer(): boolean;
28
- set hour12Timer(val: boolean);
29
- /**
30
- * The view that the calendar should start in.
31
- */
32
- startView: DateViewType;
33
- /**
34
- * Whether to should only the year and multi-year views.
35
- */
36
- yearOnly: boolean;
37
- /**
38
- * Whether to should only the multi-year view.
39
- */
40
- multiyearOnly: boolean;
41
- /**
42
- * Hours to change per step
43
- */
44
- private _stepHour;
45
- get stepHour(): number;
46
- set stepHour(val: number);
47
- /**
48
- * Minutes to change per step
49
- */
50
- private _stepMinute;
51
- get stepMinute(): number;
52
- set stepMinute(val: number);
53
- /**
54
- * Seconds to change per step
55
- */
56
- private _stepSecond;
57
- get stepSecond(): number;
58
- set stepSecond(val: number);
59
- /**
60
- * Set the first day of week
61
- */
62
- private _firstDayOfWeek;
63
- get firstDayOfWeek(): number;
64
- set firstDayOfWeek(value: number);
65
- /**
66
- * Whether to hide dates in other months at the start or end of the current month.
67
- */
68
- private _hideOtherMonths;
69
- get hideOtherMonths(): boolean;
70
- set hideOtherMonths(val: boolean);
71
- private readonly _id;
72
- get id(): string;
73
- abstract get selected(): T | null;
74
- abstract get selecteds(): Array<T> | null;
75
- abstract get dateTimeFilter(): (date: T | null) => boolean;
76
- abstract get maxDateTime(): T | null;
77
- abstract get minDateTime(): T | null;
78
- abstract get selectMode(): SelectMode;
79
- abstract get startAt(): T | null;
80
- abstract get endAt(): T | null;
81
- abstract get opened(): boolean;
82
- abstract get pickerMode(): PickerMode;
83
- abstract get pickerType(): PickerType;
84
- abstract get isInSingleMode(): boolean;
85
- abstract get isInRangeMode(): boolean;
86
- abstract select(date: T | Array<T>): void;
87
- abstract yearSelected: OutputRef<T>;
88
- abstract monthSelected: OutputRef<T>;
89
- abstract dateSelected: OutputRef<T>;
90
- abstract selectYear(normalizedYear: T): void;
91
- abstract selectMonth(normalizedMonth: T): void;
92
- abstract selectDate(normalizedDate: T): void;
93
- get formatString(): string;
94
- /**
95
- * Date Time Checker to check if the give dateTime is selectable
96
- */
97
- dateTimeChecker: (dateTime: T) => boolean;
98
- get disabled(): boolean;
99
- protected constructor(dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
100
- protected getValidDate(obj: any): T | null;
101
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTime<any>, [{ optional: true; }, { optional: true; }]>;
102
- static ɵdir: i0.ɵɵDirectiveDeclaration<OwlDateTime<any>, never, never, { "showSecondsTimer": { "alias": "showSecondsTimer"; "required": false; }; "hour12Timer": { "alias": "hour12Timer"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "yearOnly": { "alias": "yearOnly"; "required": false; }; "multiyearOnly": { "alias": "multiyearOnly"; "required": false; }; "stepHour": { "alias": "stepHour"; "required": false; }; "stepMinute": { "alias": "stepMinute"; "required": false; }; "stepSecond": { "alias": "stepSecond"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "hideOtherMonths": { "alias": "hideOtherMonths"; "required": false; }; }, {}, never, never, true, never>;
103
- }
@@ -1,22 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./date-time-picker-trigger.directive";
3
- import * as i2 from "./date-time-picker-input.directive";
4
- import * as i3 from "./date-time-picker.component";
5
- import * as i4 from "./date-time-picker-container.component";
6
- import * as i5 from "./calendar-multi-year-view.component";
7
- import * as i6 from "./calendar-year-view.component";
8
- import * as i7 from "./calendar-month-view.component";
9
- import * as i8 from "./timer.component";
10
- import * as i9 from "./timer-box.component";
11
- import * as i10 from "./calendar.component";
12
- import * as i11 from "./calendar-body.component";
13
- import * as i12 from "./numberedFixLen.pipe";
14
- import * as i13 from "./date-time-inline.component";
15
- import * as i14 from "@angular/cdk/overlay";
16
- import * as i15 from "../dialog/dialog.module";
17
- import * as i16 from "@angular/cdk/a11y";
18
- export declare class OwlDateTimeModule {
19
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<OwlDateTimeModule, [typeof i1.OwlDateTimeTriggerDirective, typeof i2.OwlDateTimeInputDirective, typeof i3.OwlDateTimeComponent, typeof i4.OwlDateTimeContainerComponent, typeof i5.OwlMultiYearViewComponent, typeof i6.OwlYearViewComponent, typeof i7.OwlMonthViewComponent, typeof i8.OwlTimerComponent, typeof i9.OwlTimerBoxComponent, typeof i10.OwlCalendarComponent, typeof i11.OwlCalendarBodyComponent, typeof i12.NumberFixedLenPipe, typeof i13.OwlDateTimeInlineComponent], [typeof i14.OverlayModule, typeof i15.OwlDialogModule, typeof i16.A11yModule], [typeof i10.OwlCalendarComponent, typeof i8.OwlTimerComponent, typeof i1.OwlDateTimeTriggerDirective, typeof i2.OwlDateTimeInputDirective, typeof i3.OwlDateTimeComponent, typeof i13.OwlDateTimeInlineComponent, typeof i5.OwlMultiYearViewComponent, typeof i6.OwlYearViewComponent, typeof i7.OwlMonthViewComponent]>;
21
- static ɵinj: i0.ɵɵInjectorDeclaration<OwlDateTimeModule>;
22
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * numberFixedLen.pipe
3
- */
4
- import { PipeTransform } from '@angular/core';
5
- import * as i0 from "@angular/core";
6
- export declare class NumberFixedLenPipe implements PipeTransform {
7
- transform(num: number, len: number): string | number;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<NumberFixedLenPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<NumberFixedLenPipe, "numberFixedLen", false>;
10
- }
@@ -1,23 +0,0 @@
1
- import { InjectionToken, Provider } from '@angular/core';
2
- export declare function defaultOptionsFactory(): Options;
3
- export declare function multiYearOptionsFactory(options: Options): {
4
- yearsPerRow: number;
5
- yearRows: number;
6
- };
7
- export interface Options {
8
- multiYear: {
9
- yearsPerRow: number;
10
- yearRows: number;
11
- };
12
- }
13
- export declare class DefaultOptions {
14
- static create(): Options;
15
- }
16
- export declare abstract class OptionsTokens {
17
- static all: InjectionToken<Options>;
18
- static multiYear: InjectionToken<{
19
- yearsPerRow: number;
20
- yearRows: number;
21
- }>;
22
- }
23
- export declare const optionsProviders: Array<Provider>;
@@ -1,42 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class OwlTimerBoxComponent implements OnInit, OnDestroy {
4
- showDivider: boolean;
5
- upBtnAriaLabel: string;
6
- upBtnDisabled: boolean;
7
- downBtnAriaLabel: string;
8
- downBtnDisabled: boolean;
9
- /**
10
- * Value would be displayed in the box
11
- * If it is null, the box would display [value]
12
- */
13
- boxValue: number;
14
- value: number;
15
- min: number;
16
- max: number;
17
- step: number;
18
- inputLabel: string;
19
- readonly valueChange: import("@angular/core").OutputEmitterRef<number>;
20
- readonly inputChange: import("@angular/core").OutputEmitterRef<number>;
21
- private inputStream;
22
- private inputStreamSub;
23
- private hasFocus;
24
- protected get displayValue(): string;
25
- protected readonly owlDTTimerBoxClass = true;
26
- private valueInput;
27
- private onValueInputMouseWheelBind;
28
- ngOnInit(): void;
29
- ngOnDestroy(): void;
30
- upBtnClicked(): void;
31
- downBtnClicked(): void;
32
- handleInputChange(val: string): void;
33
- focusIn(): void;
34
- focusOut(value: string): void;
35
- private updateValue;
36
- private updateValueViaInput;
37
- private onValueInputMouseWheel;
38
- private bindValueInputMouseWheel;
39
- private unbindValueInputMouseWheel;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlTimerBoxComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<OwlTimerBoxComponent, "owl-date-time-timer-box", ["owlDateTimeTimerBox"], { "showDivider": { "alias": "showDivider"; "required": false; }; "upBtnAriaLabel": { "alias": "upBtnAriaLabel"; "required": false; }; "upBtnDisabled": { "alias": "upBtnDisabled"; "required": false; }; "downBtnAriaLabel": { "alias": "downBtnAriaLabel"; "required": false; }; "downBtnDisabled": { "alias": "downBtnDisabled"; "required": false; }; "boxValue": { "alias": "boxValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "inputLabel": { "alias": "inputLabel"; "required": false; }; }, { "valueChange": "valueChange"; "inputChange": "inputChange"; }, never, never, false, never>;
42
- }