@netwin/angular-datetime-picker 19.0.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 +813 -3150
  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 -168
  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,131 +0,0 @@
1
- /**
2
- * timer.component
3
- */
4
- import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
5
- import { DateTimeAdapter } from './adapter/date-time-adapter.class';
6
- import { OwlDateTimeIntl } from './date-time-picker-intl.service';
7
- import * as i0 from "@angular/core";
8
- export declare class OwlTimerComponent<T> {
9
- private ngZone;
10
- private elmRef;
11
- private pickerIntl;
12
- private cdRef;
13
- private dateTimeAdapter;
14
- /** The current picker moment */
15
- private _pickerMoment;
16
- get pickerMoment(): T;
17
- set pickerMoment(value: T);
18
- /** The minimum selectable date time. */
19
- private _minDateTime;
20
- get minDateTime(): T | null;
21
- set minDateTime(value: T | null);
22
- /** The maximum selectable date time. */
23
- private _maxDateTime;
24
- get maxDateTime(): T | null;
25
- set maxDateTime(value: T | null);
26
- private isPM;
27
- /**
28
- * Whether to show the second's timer
29
- */
30
- showSecondsTimer: boolean;
31
- /**
32
- * Whether the timer is in hour12 format
33
- */
34
- hour12Timer: boolean;
35
- /**
36
- * Hours to change per step
37
- */
38
- stepHour: number;
39
- /**
40
- * Minutes to change per step
41
- */
42
- stepMinute: number;
43
- /**
44
- * Seconds to change per step
45
- */
46
- stepSecond: number;
47
- readonly selectedChange: import("@angular/core").OutputEmitterRef<T>;
48
- protected get hourValue(): number;
49
- /**
50
- * The value would be displayed in hourBox.
51
- * We need this because the value displayed in hourBox it not
52
- * the same as the hourValue when the timer is in hour12Timer mode.
53
- */
54
- protected get hourBoxValue(): number;
55
- protected get minuteValue(): number;
56
- protected get secondValue(): number;
57
- protected get upHourButtonLabel(): string;
58
- protected get downHourButtonLabel(): string;
59
- protected get upMinuteButtonLabel(): string;
60
- protected get downMinuteButtonLabel(): string;
61
- protected get upSecondButtonLabel(): string;
62
- protected get downSecondButtonLabel(): string;
63
- protected get hour12ButtonLabel(): string;
64
- protected get owlDTTimerClass(): boolean;
65
- protected get owlDTTimeTabIndex(): number;
66
- constructor(ngZone: NgZone, elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>);
67
- /**
68
- * Focus to the host element
69
- */
70
- focus(): void;
71
- /**
72
- * Set the hour value via typing into timer box input
73
- * We need this to handle the hour value when the timer is in hour12 mode
74
- */
75
- setHourValueViaInput(hours: number): void;
76
- setHourValue(hours: number): void;
77
- setMinuteValue(minutes: number): void;
78
- setSecondValue(seconds: number): void;
79
- setMeridiem(event: Event): void;
80
- /**
81
- * Check if the up hour button is enabled
82
- */
83
- upHourEnabled(): boolean;
84
- /**
85
- * Check if the down hour button is enabled
86
- */
87
- downHourEnabled(): boolean;
88
- /**
89
- * Check if the up minute button is enabled
90
- */
91
- upMinuteEnabled(): boolean;
92
- /**
93
- * Check if the down minute button is enabled
94
- */
95
- downMinuteEnabled(): boolean;
96
- /**
97
- * Check if the up second button is enabled
98
- */
99
- upSecondEnabled(): boolean;
100
- /**
101
- * Check if the down second button is enabled
102
- */
103
- downSecondEnabled(): boolean;
104
- /**
105
- * PickerMoment's hour value +/- certain amount and compare it to the give date
106
- * 1 is after the comparedDate
107
- * -1 is before the comparedDate
108
- * 0 is equal the comparedDate
109
- */
110
- private compareHours;
111
- /**
112
- * PickerMoment's minute value +/- certain amount and compare it to the give date
113
- * 1 is after the comparedDate
114
- * -1 is before the comparedDate
115
- * 0 is equal the comparedDate
116
- */
117
- private compareMinutes;
118
- /**
119
- * PickerMoment's second value +/- certain amount and compare it to the give date
120
- * 1 is after the comparedDate
121
- * -1 is before the comparedDate
122
- * 0 is equal the comparedDate
123
- */
124
- private compareSeconds;
125
- /**
126
- * Get a valid date object
127
- */
128
- private getValidDate;
129
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlTimerComponent<any>, [null, null, null, null, { optional: true; }]>;
130
- static ɵcmp: i0.ɵɵComponentDeclaration<OwlTimerComponent<any>, "owl-date-time-timer", ["owlDateTimeTimer"], { "pickerMoment": { "alias": "pickerMoment"; "required": false; }; "minDateTime": { "alias": "minDateTime"; "required": false; }; "maxDateTime": { "alias": "maxDateTime"; "required": false; }; "showSecondsTimer": { "alias": "showSecondsTimer"; "required": false; }; "hour12Timer": { "alias": "hour12Timer"; "required": false; }; "stepHour": { "alias": "stepHour"; "required": false; }; "stepMinute": { "alias": "stepMinute"; "required": false; }; "stepSecond": { "alias": "stepSecond"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, false, never>;
131
- }
@@ -1,169 +0,0 @@
1
- /**
2
- * dialog-config.class
3
- */
4
- import { ScrollStrategy } from '@angular/cdk/overlay';
5
- import { ViewContainerRef } from '@angular/core';
6
- /** Possible overrides for a dialog's position. */
7
- export interface DialogPosition {
8
- /** Override for the dialog's top position. */
9
- top?: string;
10
- /** Override for the dialog's bottom position. */
11
- bottom?: string;
12
- /** Override for the dialog's left position. */
13
- left?: string;
14
- /** Override for the dialog's right position. */
15
- right?: string;
16
- }
17
- export interface OwlDialogConfigInterface {
18
- /**
19
- * ID of the element that describes the dialog.
20
- */
21
- ariaDescribedBy?: string | null;
22
- /**
23
- * Whether to focus the dialog when the dialog is opened
24
- */
25
- autoFocus?: boolean;
26
- /** Whether the dialog has a backdrop. */
27
- hasBackdrop?: boolean;
28
- /**
29
- * Custom style for the backdrop
30
- */
31
- backdropStyle?: any;
32
- /** Data being injected into the child component. */
33
- data?: any;
34
- /** Whether the user can use escape or clicking outside to close a modal. */
35
- disableClose?: boolean;
36
- /**
37
- * ID for the modal. If omitted, a unique one will be generated.
38
- */
39
- id?: string;
40
- /**
41
- * The ARIA role of the dialog element.
42
- */
43
- role?: 'dialog' | 'alertdialog';
44
- /**
45
- * Custom class for the pane
46
- */
47
- paneClass?: string | Array<string>;
48
- /**
49
- * Mouse Event
50
- */
51
- event?: MouseEvent;
52
- /**
53
- * Custom class for the backdrop
54
- */
55
- backdropClass?: string | Array<string>;
56
- /**
57
- * Whether the dialog should close when the user goes backwards/forwards in history.
58
- */
59
- closeOnNavigation?: boolean;
60
- /** Width of the dialog. */
61
- width?: string;
62
- /** Height of the dialog. */
63
- height?: string;
64
- /**
65
- * The min-width of the overlay panel.
66
- * If a number is provided, pixel units are assumed.
67
- */
68
- minWidth?: number | string;
69
- /**
70
- * The min-height of the overlay panel.
71
- * If a number is provided, pixel units are assumed.
72
- */
73
- minHeight?: number | string;
74
- /**
75
- * The max-width of the overlay panel.
76
- * If a number is provided, pixel units are assumed.
77
- */
78
- maxWidth?: number | string;
79
- /**
80
- * The max-height of the overlay panel.
81
- * If a number is provided, pixel units are assumed.
82
- */
83
- maxHeight?: number | string;
84
- /** Position overrides. */
85
- position?: DialogPosition;
86
- /**
87
- * The scroll strategy when the dialog is open
88
- * Learn more this from https://material.angular.io/cdk/overlay/overview#scroll-strategies
89
- */
90
- scrollStrategy?: ScrollStrategy;
91
- viewContainerRef?: ViewContainerRef;
92
- }
93
- export declare class OwlDialogConfig implements OwlDialogConfigInterface {
94
- /**
95
- * ID of the element that describes the dialog.
96
- */
97
- ariaDescribedBy: string | null;
98
- /**
99
- * Whether to focus the dialog when the dialog is opened
100
- */
101
- autoFocus: boolean;
102
- /** Whether the dialog has a backdrop. */
103
- hasBackdrop: boolean;
104
- /**
105
- * Custom style for the backdrop
106
- */
107
- backdropStyle: any;
108
- /** Data being injected into the child component. */
109
- data: any;
110
- /** Whether the user can use escape or clicking outside to close a modal. */
111
- disableClose: boolean;
112
- /**
113
- * ID for the modal. If omitted, a unique one will be generated.
114
- */
115
- id: string;
116
- /**
117
- * The ARIA role of the dialog element.
118
- */
119
- role: 'dialog' | 'alertdialog';
120
- /**
121
- * Custom class for the pane
122
- */
123
- paneClass: string | Array<string>;
124
- /**
125
- * Mouse Event
126
- */
127
- event: MouseEvent;
128
- /**
129
- * Custom class for the backdrop
130
- */
131
- backdropClass: string | Array<string>;
132
- /**
133
- * Whether the dialog should close when the user goes backwards/forwards in history.
134
- */
135
- closeOnNavigation: boolean;
136
- /** Width of the dialog. */
137
- width: string;
138
- /** Height of the dialog. */
139
- height: string;
140
- /**
141
- * The min-width of the overlay panel.
142
- * If a number is provided, pixel units are assumed.
143
- */
144
- minWidth: number | string;
145
- /**
146
- * The min-height of the overlay panel.
147
- * If a number is provided, pixel units are assumed.
148
- */
149
- minHeight: number | string;
150
- /**
151
- * The max-width of the overlay panel.
152
- * If a number is provided, pixel units are assumed.
153
- */
154
- maxWidth: number | string;
155
- /**
156
- * The max-height of the overlay panel.
157
- * If a number is provided, pixel units are assumed.
158
- */
159
- maxHeight: number | string;
160
- /** Position overrides. */
161
- position: DialogPosition;
162
- /**
163
- * The scroll strategy when the dialog is open
164
- * Learn more this from https://material.angular.io/cdk/overlay/overview#scroll-strategies
165
- */
166
- scrollStrategy: ScrollStrategy;
167
- viewContainerRef: ViewContainerRef;
168
- constructor();
169
- }
@@ -1,69 +0,0 @@
1
- /**
2
- * dialog-container.component
3
- */
4
- import { AnimationEvent } from '@angular/animations';
5
- import { FocusTrapFactory } from '@angular/cdk/a11y';
6
- import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal } from '@angular/cdk/portal';
7
- import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter } from '@angular/core';
8
- import { OwlDialogConfigInterface } from './dialog-config.class';
9
- import * as i0 from "@angular/core";
10
- type AnimationParams = {
11
- x: string;
12
- y: string;
13
- ox: string;
14
- oy: string;
15
- scale: number;
16
- };
17
- export declare class OwlDialogContainerComponent extends BasePortalOutlet {
18
- private changeDetector;
19
- private elementRef;
20
- private focusTrapFactory;
21
- private document;
22
- portalOutlet: CdkPortalOutlet | null;
23
- /** The class that traps and manages focus within the dialog. */
24
- private focusTrap;
25
- /** ID of the element that should be considered as the dialog's label. */
26
- ariaLabelledBy: string | null;
27
- /** Emits when an animation state changes. */
28
- animationStateChanged: EventEmitter<AnimationEvent>;
29
- isAnimating: boolean;
30
- private _config;
31
- get config(): OwlDialogConfigInterface;
32
- private state;
33
- private params;
34
- private elementFocusedBeforeDialogWasOpened;
35
- protected readonly owlDialogContainerClass = true;
36
- protected get owlDialogContainerTabIndex(): number;
37
- protected get owlDialogContainerId(): string;
38
- protected get owlDialogContainerRole(): string;
39
- protected get owlDialogContainerAriaLabelledby(): string;
40
- protected get owlDialogContainerAriaDescribedby(): string;
41
- protected get owlDialogContainerAnimation(): {
42
- value: string;
43
- params: AnimationParams;
44
- };
45
- constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, document: Document);
46
- /**
47
- * Attach a ComponentPortal as content to this dialog container.
48
- */
49
- attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
50
- attachTemplatePortal<C>(): EmbeddedViewRef<C>;
51
- setConfig(config: OwlDialogConfigInterface): void;
52
- onAnimationStart(event: AnimationEvent): void;
53
- onAnimationDone(event: AnimationEvent): void;
54
- startExitAnimation(): void;
55
- /**
56
- * Calculate origin used in the `zoomFadeInFrom()`
57
- * for animation purpose
58
- */
59
- private calculateZoomOrigin;
60
- /**
61
- * Save the focused element before dialog was open
62
- */
63
- private savePreviouslyFocusedElement;
64
- private trapFocus;
65
- private restoreFocus;
66
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlDialogContainerComponent, [null, null, null, { optional: true; }]>;
67
- static ɵcmp: i0.ɵɵComponentDeclaration<OwlDialogContainerComponent, "owl-dialog-container", never, {}, {}, never, never, false, never>;
68
- }
69
- export {};
@@ -1,51 +0,0 @@
1
- import { OverlayRef } from '@angular/cdk/overlay';
2
- import { Location } from '@angular/common';
3
- import { Observable } from 'rxjs';
4
- import { DialogPosition } from './dialog-config.class';
5
- import { OwlDialogContainerComponent } from './dialog-container.component';
6
- export declare class OwlDialogRef<T> {
7
- private overlayRef;
8
- private container;
9
- readonly id: string;
10
- private result;
11
- private _beforeClose$;
12
- private _beforeOpen$;
13
- private _afterOpen$;
14
- private _afterClosed$;
15
- /** Subscription to changes in the user's location. */
16
- private locationChanged;
17
- /**
18
- * The instance of component opened into modal
19
- */
20
- componentInstance: T;
21
- /** Whether the user is allowed to close the dialog. */
22
- disableClose: boolean;
23
- constructor(overlayRef: OverlayRef, container: OwlDialogContainerComponent, id: string, location?: Location);
24
- close(dialogResult?: any): void;
25
- /**
26
- * Gets an observable that emits when the overlay's backdrop has been clicked.
27
- */
28
- backdropClick(): Observable<any>;
29
- /**
30
- * Gets an observable that emits when keydown events are targeted on the overlay.
31
- */
32
- keydownEvents(): Observable<KeyboardEvent>;
33
- /**
34
- * Updates the dialog's position.
35
- * @param position New dialog position.
36
- */
37
- updatePosition(position?: DialogPosition): this;
38
- /**
39
- * Updates the dialog's width and height.
40
- * @param width New width of the dialog.
41
- * @param height New height of the dialog.
42
- */
43
- updateSize(width?: string, height?: string): this;
44
- isAnimating(): boolean;
45
- beforeOpen(): Observable<any>;
46
- afterOpen(): Observable<any>;
47
- beforeClose(): Observable<any>;
48
- afterClosed(): Observable<any>;
49
- /** Fetches the position strategy object from the overlay ref. */
50
- private getPositionStrategy;
51
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./dialog-container.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/cdk/a11y";
5
- import * as i4 from "@angular/cdk/overlay";
6
- import * as i5 from "@angular/cdk/portal";
7
- export declare class OwlDialogModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlDialogModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<OwlDialogModule, [typeof i1.OwlDialogContainerComponent], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.OverlayModule, typeof i5.PortalModule], never>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<OwlDialogModule>;
11
- }
@@ -1,76 +0,0 @@
1
- /**
2
- * dialog.service
3
- */
4
- import { Overlay, OverlayContainer, ScrollStrategy } from '@angular/cdk/overlay';
5
- import { ComponentType } from '@angular/cdk/portal';
6
- import { Location } from '@angular/common';
7
- import { InjectionToken, Injector, TemplateRef } from '@angular/core';
8
- import { Observable, Subject } from 'rxjs';
9
- import { OwlDialogConfig, OwlDialogConfigInterface } from './dialog-config.class';
10
- import { OwlDialogRef } from './dialog-ref.class';
11
- import * as i0 from "@angular/core";
12
- export declare const OWL_DIALOG_DATA: InjectionToken<any>;
13
- /**
14
- * Injection token that determines the scroll handling while the dialog is open.
15
- */
16
- export declare const OWL_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
17
- export declare function OWL_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
18
- /** @docs-private */
19
- export declare const OWL_DIALOG_SCROLL_STRATEGY_PROVIDER: {
20
- provide: InjectionToken<() => ScrollStrategy>;
21
- deps: (typeof Overlay)[];
22
- useFactory: typeof OWL_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
23
- };
24
- /**
25
- * Injection token that can be used to specify default dialog options.
26
- */
27
- export declare const OWL_DIALOG_DEFAULT_OPTIONS: InjectionToken<OwlDialogConfig>;
28
- export declare class OwlDialogService {
29
- #private;
30
- private overlay;
31
- private injector;
32
- private location;
33
- private defaultOptions;
34
- private parentDialog;
35
- private overlayContainer;
36
- private ariaHiddenElements;
37
- private _openDialogsAtThisLevel;
38
- private _beforeOpenAtThisLevel;
39
- private _afterOpenAtThisLevel;
40
- private _afterAllClosedAtThisLevel;
41
- /** Keeps track of the currently-open dialogs. */
42
- get openDialogs(): Array<OwlDialogRef<any>>;
43
- /** Stream that emits when a dialog has been opened. */
44
- get beforeOpen(): Subject<OwlDialogRef<any>>;
45
- /** Stream that emits when a dialog has been opened. */
46
- get afterOpen(): Subject<OwlDialogRef<any>>;
47
- /**
48
- * Stream that emits when all open dialog have finished closing.
49
- * Will emit on subscribe if there are no open dialogs to begin with.
50
- */
51
- afterAllClosed: Observable<void>;
52
- private readonly scrollStrategy;
53
- constructor(overlay: Overlay, injector: Injector, location: Location, scrollStrategy: any, defaultOptions: OwlDialogConfigInterface, parentDialog: OwlDialogService, overlayContainer: OverlayContainer);
54
- open<T>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: OwlDialogConfigInterface): OwlDialogRef<any>;
55
- /**
56
- * Closes all of the currently-open dialogs.
57
- */
58
- closeAll(): void;
59
- /**
60
- * Finds an open dialog by its id.
61
- * @param id ID to use when looking up the dialog.
62
- */
63
- getDialogById(id: string): OwlDialogRef<any> | undefined;
64
- private attachDialogContent;
65
- private createInjector;
66
- private createOverlay;
67
- private attachDialogContainer;
68
- private getOverlayConfig;
69
- private removeOpenDialog;
70
- /**
71
- * Hides all of the content that isn't an overlay from assistive technology.
72
- */
73
- private hideNonDialogContentFromAssistiveTechnology;
74
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlDialogService, [null, null, { optional: true; }, null, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
75
- static ɵprov: i0.ɵɵInjectableDeclaration<OwlDialogService>;
76
- }
@@ -1,2 +0,0 @@
1
- /** Creates an array and fills it with values. */
2
- export declare function range<T>(length: number, valueFunction: (index: number) => T): Array<T>;
@@ -1,16 +0,0 @@
1
- /** Whether the browser supports the Intl API. */
2
- export declare const SUPPORTS_INTL_API: boolean;
3
- /** The default month names to use if Intl API is not available. */
4
- export declare const DEFAULT_MONTH_NAMES: {
5
- long: string[];
6
- short: string[];
7
- narrow: string[];
8
- };
9
- /** The default day of the week names to use if Intl API is not available. */
10
- export declare const DEFAULT_DAY_OF_WEEK_NAMES: {
11
- long: string[];
12
- short: string[];
13
- narrow: string[];
14
- };
15
- /** The default date names to use if Intl API is not available. */
16
- export declare const DEFAULT_DATE_NAMES: string[];
@@ -1,9 +0,0 @@
1
- /**
2
- * Creates a date with the given year, month, date, hour, minute and second. Does not allow over/under-flow of the
3
- * month and date.
4
- */
5
- export declare function createDate(year: number, month: number, date: number, hours?: number, minutes?: number, seconds?: number): Date;
6
- /**
7
- * Gets the number of days in the month of the given date.
8
- */
9
- export declare function getNumDaysInMonth(date: Date): number;
@@ -1,4 +0,0 @@
1
- export * from './array.utils';
2
- export * from './constants';
3
- export * from './date.utils';
4
- export * from './object.utils';
@@ -1,8 +0,0 @@
1
- /**
2
- * Extends an object with the *enumerable* and *own* properties of one or more source objects,
3
- * similar to Object.assign.
4
- *
5
- * @param dest The object which will have properties copied to it.
6
- * @param sources The source objects from which properties will be copied.
7
- */
8
- export declare function extendObject<T extends object>(dest: T, ...sources: Array<object>): T;
package/public_api.d.ts DELETED
@@ -1,21 +0,0 @@
1
- export { OwlDateTimeModule } from './lib/date-time/date-time.module';
2
- export { OwlDateTimeIntl } from './lib/date-time/date-time-picker-intl.service';
3
- export { OwlNativeDateTimeModule } from './lib/date-time/adapter/native-date-time.module';
4
- export { DateTimeAdapter, OWL_DATE_TIME_LOCALE, OWL_DATE_TIME_LOCALE_PROVIDER } from './lib/date-time/adapter/date-time-adapter.class';
5
- export { OWL_DATE_TIME_FORMATS, type OwlDateTimeFormats } from './lib/date-time/adapter/date-time-format.class';
6
- export { UnixTimestampDateTimeAdapter } from './lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-adapter.class';
7
- export { OWL_UNIX_TIMESTAMP_DATE_TIME_FORMATS } from './lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-format.class';
8
- export { OwlDateTimeInlineComponent } from './lib/date-time/date-time-inline.component';
9
- export { OwlDateTimeComponent } from './lib/date-time/date-time-picker.component';
10
- export * from './lib/date-time/calendar-body.component';
11
- export * from './lib/date-time/timer.component';
12
- export * from './lib/date-time/date-time-picker-trigger.directive';
13
- export * from './lib/date-time/date-time-picker-input.directive';
14
- export * from './lib/date-time/calendar-multi-year-view.component';
15
- export * from './lib/date-time/calendar-year-view.component';
16
- export * from './lib/date-time/calendar-month-view.component';
17
- export * from './lib/date-time/calendar.component';
18
- export * from './lib/date-time/timer.component';
19
- export { NativeDateTimeAdapter } from './lib/date-time/adapter/native-date-time-adapter.class';
20
- export * from './lib/date-time/options-provider';
21
- export { DateView, type DateViewType, type PickerMode, type PickerType, type SelectMode } from './lib/date-time/date-time.class';