@dhutaryan/ngx-mat-timepicker 16.2.2 → 16.3.0
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/adapter/index.mjs +20 -12
- package/esm2022/lib/adapter/native-date-time-adapter.mjs +17 -10
- package/esm2022/lib/adapter/time-adapter.mjs +15 -4
- package/fesm2022/dhutaryan-ngx-mat-timepicker.mjs +48 -22
- package/fesm2022/dhutaryan-ngx-mat-timepicker.mjs.map +1 -1
- package/lib/adapter/index.d.ts +8 -1
- package/lib/adapter/native-date-time-adapter.d.ts +4 -2
- package/lib/adapter/time-adapter.d.ts +7 -1
- package/package.json +1 -1
package/lib/adapter/index.d.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
import * as i1 from "@angular/cdk/platform";
|
|
3
4
|
export * from './time-adapter';
|
|
4
5
|
export * from './native-date-time-adapter';
|
|
6
|
+
export declare class NativeDateTimeModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NativeDateTimeModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NativeDateTimeModule, never, [typeof i1.PlatformModule], never>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NativeDateTimeModule>;
|
|
10
|
+
}
|
|
5
11
|
export declare class MatNativeDateTimeModule {
|
|
6
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatNativeDateTimeModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatNativeDateTimeModule, never,
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatNativeDateTimeModule, never, never, never>;
|
|
8
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatNativeDateTimeModule>;
|
|
9
15
|
}
|
|
16
|
+
export declare function provideNativeDateTimeAdapter(): Provider;
|
|
@@ -3,12 +3,14 @@ import { MatTimePeriodType } from '../time-period';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/** Adapts the native JS Date for components that work with time. */
|
|
5
5
|
export declare class NativeDateTimeAdapter extends TimeAdapter<Date> {
|
|
6
|
+
private readonly _matTimeLocale;
|
|
6
7
|
constructor(matTimeLocale: string);
|
|
7
8
|
now(): Date;
|
|
8
9
|
parse(value: any, parseFormat?: any): Date | null;
|
|
9
10
|
parseTime(value: string): {
|
|
10
|
-
hour:
|
|
11
|
-
minute:
|
|
11
|
+
hour: number;
|
|
12
|
+
minute: number;
|
|
13
|
+
meridiem?: 'am' | 'pm';
|
|
12
14
|
};
|
|
13
15
|
getHour(date: Date): number;
|
|
14
16
|
getMinute(date: Date): number;
|
|
@@ -2,7 +2,13 @@ import { InjectionToken } from '@angular/core';
|
|
|
2
2
|
import { MatTimePeriodType } from '../time-period';
|
|
3
3
|
/** InjectionToken for timepicker that can be used to override default locale code. */
|
|
4
4
|
export declare const MAT_TIME_LOCALE: InjectionToken<string>;
|
|
5
|
-
|
|
5
|
+
export declare function MAT_DATE_TIME_LOCALE_FACTORY(): string;
|
|
6
|
+
/**
|
|
7
|
+
* No longer needed since MAT_TIME_LOCALE has been changed to a scoped injectable.
|
|
8
|
+
* If you are importing and providing this in your code you can simply remove it.
|
|
9
|
+
* @deprecated
|
|
10
|
+
* @breaking-change 18.0.0
|
|
11
|
+
*/
|
|
6
12
|
export declare const MAT_TIME_LOCALE_PROVIDER: {
|
|
7
13
|
provide: InjectionToken<string>;
|
|
8
14
|
useExisting: InjectionToken<string>;
|
package/package.json
CHANGED