-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsmart.dateinput.d.ts
114 lines (114 loc) · 7.97 KB
/
smart.dateinput.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import { DateInput } from './../index';
import { DropDownButtonPosition } from './../index';
import { AfterViewInit, ElementRef, OnInit, OnChanges, OnDestroy, SimpleChanges, EventEmitter } from '@angular/core';
import { BaseElement } from './smart.element';
export { DropDownButtonPosition, ElementRenderMode } from './../index';
export { Smart } from './smart.element';
export { DateInput } from './../index';
import { ControlValueAccessor } from '@angular/forms';
export declare class DateInputComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor {
constructor(ref: ElementRef<DateInput>);
private eventHandlers;
nativeElement: DateInput;
/** @description Creates the component on demand.
* @param properties An optional object of properties, which will be added to the template binded ones.
*/
createComponent(properties?: {}): any;
/**
* @description
* The registered callback function called when a change event occurs on the form elements.
*/
_onChange: (value: any) => void;
/**
* @description
* The registered callback function called when a blur event occurs on the form elements.
*/
_onTouched: () => any;
/** @description Determines whether the calendar button pop-up will be closed automatically when date or time is selected through it. */
autoClose: boolean;
/** @description Determines the delay before the calendar pop-up is automatically closed. Applicable only when autoClose is set to true. */
autoCloseDelay: number;
/** @description Determines the format of the dates displayed in the input. Accepts valid ECMAScript Internationalization API format. Intl.DateTimeFormat is used to format date strings in JavaScript. By default the date format is 'numeric'. The default value is: { day: 'numeric', month: 'numeric', year: 'numeric' } */
dateTimeFormat: any;
/** @description Enables or disables the element. */
disabled: boolean;
/** @description Determines the position of the drop down button. */
dropDownButtonPosition: DropDownButtonPosition | string;
/** @description Sets the height of the drop down. By default it's set to 'auto'. */
dropDownHeight: string | number;
/** @description Sets the width of the drop down. By default it's set to an empty string. In this case the width of the drop down is controlled by a CSS variable. */
dropDownWidth: string | number;
/** @description Sets the format string. When this property is set, the dateTimeFormat property will be disabled and the formatting will use the value of the formatString. Built-in Date formats:// short date pattern'd' - 'M/d/yyyy',// long date pattern'D' - 'dddd, MMMM dd, yyyy',// short time pattern't' - 'h:mm tt',// long time pattern'T' - 'h:mm:ss tt',// long date, short time pattern'f' - 'dddd, MMMM dd, yyyy h:mm tt',// long date, long time pattern'F' - 'dddd, MMMM dd, yyyy h:mm:ss tt',// month/day pattern'M' - 'MMMM dd',// month/year pattern'Y' - 'yyyy MMMM',// S is a sortable format that does not vary by culture'S' - 'yyyy'-'MM'-'dd'T'HH':'mm':'ss'Date format strings:'d'-the day of the month;'dd'-the day of the month'ddd'-the abbreviated name of the day of the week'dddd'- the full name of the day of the week'h'-the hour, using a 12-hour clock from 1 to 12'hh'-the hour, using a 12-hour clock from 01 to 12'H'-the hour, using a 24-hour clock from 0 to 23'HH'- the hour, using a 24-hour clock from 00 to 23'm'-the minute, from 0 through 59'mm'-the minutes,from 00 though59'M'- the month, from 1 through 12'MM'- the month, from 01 through 12'MMM'-the abbreviated name of the month'MMMM'-the full name of the month's'-the second, from 0 through 59'ss'-the second, from 00 through 59't'- the first character of the AM/PM designator'tt'-the AM/PM designator'y'- the year, from 0 to 99'yy'- the year, from 00 to 99'yyy'-the year, with a minimum of three digits'yyyy'-the year as a four-digit number;'yyyyy'-the year as a four-digit number. */
formatString: string;
/** @description Sets the purpose of the input and what, if any, permission the user agent has to provide automated assistance in filling out the element's input when in a form, as well as guidance to the browser as to the type of information expected in the element. This value corresponds to the standard HTML autocomplete attribute and can be set to values such as 'on', 'name', 'organization', 'street-address', etc. */
inputPurpose: string;
/** @description Sets or gets the language. Used in conjunction with the property messages. */
locale: string;
/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */
localizeFormatFunction: any;
/** @description Determines the max date for the Calendar displayed inside the popup. */
max: any;
/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */
messages: any;
/** @description Determines the min date for the Calendar displayed inside the popup. */
min: any;
/** @description Sets or gets the name attribute for the element. Name is used when submiting data inside an HTML form. */
name: string;
/** @description Determines whether the drop down is opened or not. */
opened: boolean;
/** @description Determines the placeholder of the input. */
placeholder: string;
/** @description Determines whether ot not the user can enter text inside the input. if dropDownButtonPosition is set to 'left' or 'right' then readonly determines whether the element acts as a ComboBox or a DropDownList if a dataSource is provided. */
readonly: boolean;
/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
rightToLeft: boolean;
/** @description Determines the theme for the element. Themes define the look of the elements. */
theme: string;
/** @description If is set to true, the element cannot be focused. */
unfocusable: boolean;
/** @description Sets or gets the value of the element. Expected value is: Date string, Date object or null. */
value: any;
/** @description This event is triggered when the selection is changed.
* @param event. The custom event. Custom event was created with: event.detail( label, oldLabel, oldValue, value)
* label - The label of the new selected item.
* oldLabel - The label of the item that was previously selected before the event was triggered.
* oldValue - The value of the item that was previously selected before the event was triggered.
* value - The value of the new selected item.
*/
onChange: EventEmitter<CustomEvent>;
/** @description Closes the drop down.
*/
close(): void;
/** @description Opens the drop down.
*/
open(): void;
/** @description Selects the text inside the input or if it is readonly then the element is focused.
*/
select(): void;
/** @description Returns the value in the desired format.
* @param {string | Date} value. The value to be formatted by the method.
* @param {any} format?. The object that contains the formatting properties. The argument should contain Intl.DateTimeFormat valid properties.
*/
getFormattedValue(value: string | Date, format?: any): void;
/** @description Returns the date of the input.
*/
getValue(): void;
/** @description Sets the date of the input.
* @param {string | Date} value. The value to be set.
*/
setValue(value: string | Date): void;
readonly isRendered: boolean;
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
_initialChange: boolean;
ngValue: any;
writeValue(value: any): void;
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
ngOnChanges(changes: SimpleChanges): void;
/** @description Add event listeners. */
private listen;
/** @description Remove event listeners. */
private unlisten;
}