Skip to content

Commit 06eaf87

Browse files
committed
chore: add missing d ts files
1 parent 55594cd commit 06eaf87

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Both `DatePickerField` and `TimePickerField` extend `TextField`, so each `TextFi
7878
7979
- Picker Texts
8080
81-
When one of the fields is tapped, a popup is opened. The popup has an OK and Cancel buttons and an optional title. Their text values are controlled respectively by the properties `pickerOkText`, `pickerCancelText` and `pickerTitle`. By default, the texts of the buttons OK and Cancel are `OK` and `Cancel` on iOS, and a localized version of OK and Cancel, dependent on the current setting of the device on Android. The `pickerTitle` is undefined. Changing these values is demonstrated in the [demo](https://github.com/NativeScript/nativescript-datetimepicker/blob/master/demo/app/home/home-page.xml#L35), [demo-angular](https://github.com/NativeScript/nativescript-datetimepicker/blob/master/demo-angular/src/app/home/home.component.html#L32) and [demo-vue](https://github.com/NativeScript/nativescript-datetimepicker/blob/master/demo-vue/app/components/Home.vue#L10) applications.
81+
When one of the fields is tapped, a popup is opened. The popup has an OK and Cancel buttons and an optional title. Their text values are controlled respectively by the properties `pickerOkText`, `pickerCancelText` and `pickerTitle`. By default, the texts of the buttons OK and Cancel are `OK` and `Cancel` on iOS, and a localized version of OK and Cancel, dependent on the current setting of the device on Android. The `pickerTitle` is undefined. Changing these values is demonstrated in the [demo](https://github.com/NativeScript/nativescript-datetimepicker/blob/master/demo/app/home/home-page.xml#L35), [demo-angular](https://github.com/NativeScript/nativescript-datetimepicker/blob/master/demo-angular/src/app/home/home.component.html#L32) and [demo-vue](https://github.com/NativeScript/nativescript-datetimepicker/blob/master/demo-vue/app/components/Home.vue#L32) applications.
8282
8383
- Localization
8484
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { ElementRef } from "@angular/core";
2+
import { BaseValueAccessor } from "nativescript-angular/forms/value-accessors";
3+
import { DatePickerField } from "../ui/date-picker-field";
4+
import { TimePickerField } from "../ui/time-picker-field";
5+
export declare class DatePickerValueAccessor extends BaseValueAccessor<DatePickerField> {
6+
constructor(elementRef: ElementRef);
7+
writeValue(value: any): void;
8+
}
9+
export declare class TimePickerValueAccessor extends BaseValueAccessor<TimePickerField> {
10+
constructor(elementRef: ElementRef);
11+
writeValue(value: any): void;
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { DatePickerValueAccessor, TimePickerValueAccessor } from "./nativescript-datetimepicker.accessors";
2+
export declare class DatePickerFieldDirective {
3+
}
4+
export declare class TimePickerFieldDirective {
5+
}
6+
export declare const DIRECTIVES: (typeof DatePickerFieldDirective | typeof DatePickerValueAccessor | typeof TimePickerValueAccessor)[];
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export declare class NativeScriptDateTimePickerModule {
2+
}

0 commit comments

Comments
 (0)