@grapecity/wijmo.input 5.20251.34 → 5.20251.40
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/COMMERCIAL-LICENSE.pdf +0 -0
- package/es2015-commonjs.js +2 -2
- package/es2015-esm.js +2 -2
- package/es5-esm.js +2 -2
- package/index.d.ts +268 -15
- package/index.js +2 -2
- package/package.json +2 -2
- package/COMMERCIAL-LICENSE.html +0 -471
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20251.
|
|
3
|
+
* Wijmo Library 5.20251.40
|
|
4
4
|
* https://developer.mescius.com/wijmo
|
|
5
5
|
*
|
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
@@ -39,6 +39,10 @@ export declare const CalendarClsNames: {
|
|
|
39
39
|
weekAfter: string;
|
|
40
40
|
weekBefore: string;
|
|
41
41
|
yearPicker: string;
|
|
42
|
+
focused: string;
|
|
43
|
+
selectedYear: string;
|
|
44
|
+
confirmationButtonContainer: string;
|
|
45
|
+
button: string;
|
|
42
46
|
};
|
|
43
47
|
export declare const CollectionViewNavigatorClsNames: {
|
|
44
48
|
hostElement: string;
|
|
@@ -173,6 +177,8 @@ export declare class InputNumber extends Control {
|
|
|
173
177
|
_rptDn: _ClickRepeater;
|
|
174
178
|
_fromKb: boolean;
|
|
175
179
|
static _ctrlTemplate: string;
|
|
180
|
+
_inputElementAriaLabel: string;
|
|
181
|
+
_ariaLabelledby: string;
|
|
176
182
|
/**
|
|
177
183
|
* Gets or sets the template used to instantiate {@link InputNumber} controls.
|
|
178
184
|
*/
|
|
@@ -286,6 +292,10 @@ export declare class InputNumber extends Control {
|
|
|
286
292
|
* The default value for this property is **true**.
|
|
287
293
|
*/
|
|
288
294
|
repeatButtons: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Gets or sets the aria-labelledby attribute of input element.
|
|
297
|
+
*/
|
|
298
|
+
ariaLabelledBy: string;
|
|
289
299
|
/**
|
|
290
300
|
* Sets the focus to the control and selects all its content.
|
|
291
301
|
*/
|
|
@@ -333,6 +343,8 @@ export declare class InputNumber extends Control {
|
|
|
333
343
|
protected _input(): void;
|
|
334
344
|
protected _clickSpinner(e: MouseEvent): void;
|
|
335
345
|
protected _updateAria(): void;
|
|
346
|
+
_updateInputAriaLabel(): void;
|
|
347
|
+
getAriaLabelForScreenReader(): any;
|
|
336
348
|
}
|
|
337
349
|
/**
|
|
338
350
|
* The {@link InputMask} control provides a way to govern what a user is allowed
|
|
@@ -489,6 +501,7 @@ export declare class InputMask extends Control {
|
|
|
489
501
|
dispose(): void;
|
|
490
502
|
refresh(fullUpdate?: boolean): void;
|
|
491
503
|
onGotFocus(e: any): void;
|
|
504
|
+
getAriaLabelForScreenReader(): any;
|
|
492
505
|
}
|
|
493
506
|
/**
|
|
494
507
|
* The {@link ColorPicker} control allows users to select a color by clicking
|
|
@@ -757,9 +770,13 @@ export declare class ListBox<T = any> extends Control {
|
|
|
757
770
|
_itemRole: string;
|
|
758
771
|
_caseSensitive: boolean;
|
|
759
772
|
_addMode: boolean;
|
|
773
|
+
private _isShiftDown;
|
|
774
|
+
private _shouldClearOnShift;
|
|
760
775
|
_vThreshold: number;
|
|
761
776
|
_isVirtual: boolean;
|
|
762
777
|
_children: HTMLElement[];
|
|
778
|
+
_ignoreItemFormatterTextArray: string[];
|
|
779
|
+
_itemFormatterHelper: HTMLDivElement;
|
|
763
780
|
_clientHeight: number;
|
|
764
781
|
_itemHeight: number;
|
|
765
782
|
_itemsAbove: number;
|
|
@@ -776,6 +793,7 @@ export declare class ListBox<T = any> extends Control {
|
|
|
776
793
|
_oldSel: HTMLElement | null;
|
|
777
794
|
_container: HTMLElement | null;
|
|
778
795
|
_oldSelectedIndex: number;
|
|
796
|
+
_ariaLabel: string;
|
|
779
797
|
static _DIDX_KEY: string;
|
|
780
798
|
static _VTHRESH: number;
|
|
781
799
|
/**
|
|
@@ -785,6 +803,10 @@ export declare class ListBox<T = any> extends Control {
|
|
|
785
803
|
* @param options The JavaScript object containing initialization data for the control.
|
|
786
804
|
*/
|
|
787
805
|
constructor(element: any, options?: any);
|
|
806
|
+
/**
|
|
807
|
+
* Gets or sets the aria-labelledby attribute of {@link ListBox} input element.
|
|
808
|
+
*/
|
|
809
|
+
ariaLabelledBy: string;
|
|
788
810
|
/**
|
|
789
811
|
* Gets or sets the array or {@link ICollectionView} object that contains
|
|
790
812
|
* the list items.
|
|
@@ -903,13 +925,14 @@ export declare class ListBox<T = any> extends Control {
|
|
|
903
925
|
*
|
|
904
926
|
* @param index The index of the item in the {@link itemsSource}.
|
|
905
927
|
*/
|
|
906
|
-
getDisplayValue(index: number): string;
|
|
928
|
+
getDisplayValue(index: number, ignoreItemFormatter?: boolean): string;
|
|
907
929
|
/**
|
|
908
930
|
* Gets the text displayed for the item at a given index (as plain text).
|
|
909
931
|
*
|
|
910
932
|
* @param index The index of the item in the {@link itemsSource}.
|
|
911
933
|
*/
|
|
912
934
|
getDisplayText(index: number): string;
|
|
935
|
+
_getDisplayText(index: number, notGetByList?: boolean): string;
|
|
913
936
|
/**
|
|
914
937
|
* Gets a value that determines whether the item at a given index is enabled.
|
|
915
938
|
*
|
|
@@ -1079,6 +1102,7 @@ export declare class ListBox<T = any> extends Control {
|
|
|
1079
1102
|
* @param fullUpdate Whether to update the control layout as well as the content.
|
|
1080
1103
|
*/
|
|
1081
1104
|
refresh(fullUpdate?: boolean): void;
|
|
1105
|
+
_updateAriaLabel(): void;
|
|
1082
1106
|
_updateCheckedList(arr: any[]): void;
|
|
1083
1107
|
_getBoundingClientRect(e: HTMLElement): Rect;
|
|
1084
1108
|
_updateItemAttributes(e: HTMLElement | null, selected: boolean): void;
|
|
@@ -1099,24 +1123,30 @@ export declare class ListBox<T = any> extends Control {
|
|
|
1099
1123
|
_updateViewRange(): boolean;
|
|
1100
1124
|
_getSelectedElement(visible: boolean): HTMLElement | null;
|
|
1101
1125
|
_handleResize(): void;
|
|
1102
|
-
_createItem(i: number): string;
|
|
1126
|
+
_createItem(i: number, groupIndex?: number): string;
|
|
1103
1127
|
_getAriaSelected(isSelected: boolean, isChecked: boolean | null): boolean;
|
|
1104
|
-
_createHeaderItem(group: CollectionViewGroup): string;
|
|
1128
|
+
_createHeaderItem(group: CollectionViewGroup, groupIndex: number): string;
|
|
1105
1129
|
private _click;
|
|
1106
1130
|
private _keydown;
|
|
1131
|
+
private _handleKeyUp;
|
|
1132
|
+
private _getCheckboxState;
|
|
1133
|
+
private _setCheckboxState;
|
|
1134
|
+
private _getCheckbox;
|
|
1107
1135
|
private _keypress;
|
|
1108
|
-
_selectNext
|
|
1109
|
-
_selectPrev
|
|
1136
|
+
private _selectNext;
|
|
1137
|
+
private _selectPrev;
|
|
1138
|
+
private _findNextEnabled;
|
|
1139
|
+
private _findPrevEnabled;
|
|
1110
1140
|
_selectFirst(): boolean;
|
|
1111
1141
|
_selectLast(): boolean;
|
|
1112
1142
|
_selectNextPage(): boolean;
|
|
1113
1143
|
_selectPrevPage(): boolean;
|
|
1114
1144
|
private _findNext;
|
|
1115
|
-
private _getCheckbox;
|
|
1116
1145
|
_initFromSelect(hostElement: HTMLElement): void;
|
|
1117
1146
|
_setIsDisabled(value: boolean): void;
|
|
1118
1147
|
_setTabOrder(value: number): void;
|
|
1119
1148
|
_updateTabIndex(): void;
|
|
1149
|
+
private _selectRange;
|
|
1120
1150
|
}
|
|
1121
1151
|
/**
|
|
1122
1152
|
* Provides arguments for the {@link ListBox.formatItem} event.
|
|
@@ -1422,6 +1452,15 @@ export interface IDateValidator {
|
|
|
1422
1452
|
*/
|
|
1423
1453
|
(date: Date): boolean;
|
|
1424
1454
|
}
|
|
1455
|
+
/**
|
|
1456
|
+
* Specifies constants that define the action to be performed when the TAB key is pressed.
|
|
1457
|
+
*/
|
|
1458
|
+
export declare enum CalendarTabKeyAction {
|
|
1459
|
+
/** No special action (let the browser handle the key). */
|
|
1460
|
+
None = 0,
|
|
1461
|
+
/** All buttons in the calendar can be selected using the tab key. */
|
|
1462
|
+
All = 1
|
|
1463
|
+
}
|
|
1425
1464
|
/**
|
|
1426
1465
|
* The {@link Calendar} control displays a table with one or more months
|
|
1427
1466
|
* and allows users to view and select dates.
|
|
@@ -1473,6 +1512,9 @@ export declare class Calendar extends Control {
|
|
|
1473
1512
|
private _btnPrv;
|
|
1474
1513
|
private _btnTdy;
|
|
1475
1514
|
private _btnNxt;
|
|
1515
|
+
private _confirmationButtonContainer;
|
|
1516
|
+
private _btnOK;
|
|
1517
|
+
private _btnCancel;
|
|
1476
1518
|
private _lbYears;
|
|
1477
1519
|
private _rptUp;
|
|
1478
1520
|
private _rptDn;
|
|
@@ -1493,6 +1535,12 @@ export declare class Calendar extends Control {
|
|
|
1493
1535
|
private _selMode;
|
|
1494
1536
|
private _itemFormatter;
|
|
1495
1537
|
private _itemValidator;
|
|
1538
|
+
private _showYearListBoxButton;
|
|
1539
|
+
private _focusMode;
|
|
1540
|
+
private _focusValue;
|
|
1541
|
+
private _keyActionTab;
|
|
1542
|
+
private _ariaLabel;
|
|
1543
|
+
private _showConfirmationButtons;
|
|
1496
1544
|
private _tmYrHidden;
|
|
1497
1545
|
private _syncing;
|
|
1498
1546
|
private _cals;
|
|
@@ -1502,6 +1550,7 @@ export declare class Calendar extends Control {
|
|
|
1502
1550
|
private _fmtDayHdr;
|
|
1503
1551
|
private _fmtDay;
|
|
1504
1552
|
private _fmtMonths;
|
|
1553
|
+
private _fmtDayTitle;
|
|
1505
1554
|
static _DATE_KEY: string;
|
|
1506
1555
|
static _ctrlTemplate: string;
|
|
1507
1556
|
/**
|
|
@@ -1541,6 +1590,7 @@ export declare class Calendar extends Control {
|
|
|
1541
1590
|
* cal.value = start; // rangeEnd == null
|
|
1542
1591
|
*/
|
|
1543
1592
|
value: Date;
|
|
1593
|
+
focusValue: Date;
|
|
1544
1594
|
/**
|
|
1545
1595
|
* Gets or sets the last selected date in a range selection.
|
|
1546
1596
|
*
|
|
@@ -1866,6 +1916,8 @@ export declare class Calendar extends Control {
|
|
|
1866
1916
|
private _syncProp;
|
|
1867
1917
|
private _updateContent;
|
|
1868
1918
|
private _updateSelection;
|
|
1919
|
+
private _updateFocusInAccessibilityMode;
|
|
1920
|
+
private _updateCellFocus;
|
|
1869
1921
|
private _addWeek;
|
|
1870
1922
|
private _customizeCell;
|
|
1871
1923
|
private _canChangeValue;
|
|
@@ -1885,6 +1937,40 @@ export declare class Calendar extends Control {
|
|
|
1885
1937
|
_rngMode(): boolean;
|
|
1886
1938
|
private _navigate;
|
|
1887
1939
|
_setTabOrder(value: number): void;
|
|
1940
|
+
private _showYearPickerAction;
|
|
1941
|
+
/**
|
|
1942
|
+
* Gets or sets the focusMode enabled to support wcag related functions of {@link Calendar} element.
|
|
1943
|
+
*/
|
|
1944
|
+
focusMode: boolean;
|
|
1945
|
+
/**
|
|
1946
|
+
* Gets or sets the action to perform when the Tab key is pressed.
|
|
1947
|
+
*
|
|
1948
|
+
* The default setting for this property is {@link CalendarTabKeyAction.None},
|
|
1949
|
+
* This means that pressing the tab key will have no effect and follow the browser's default behavior.
|
|
1950
|
+
*/
|
|
1951
|
+
keyActionTab: CalendarTabKeyAction;
|
|
1952
|
+
private _isButtonFocused;
|
|
1953
|
+
private _isSameDay;
|
|
1954
|
+
private _isSameMonth;
|
|
1955
|
+
private _dateViewContainsFocus;
|
|
1956
|
+
getFocusableElements(): HTMLElement[];
|
|
1957
|
+
private _updateMonthButtonAria;
|
|
1958
|
+
private _isDayValid;
|
|
1959
|
+
readonly cancelButtonClicked: Event<Calendar, EventArgs>;
|
|
1960
|
+
cancelButtonClick(e?: EventArgs): void;
|
|
1961
|
+
oneCancelButtonClick(e: any): void;
|
|
1962
|
+
readonly OKButtonClicked: Event<Calendar, EventArgs>;
|
|
1963
|
+
OKButtonClick(e?: EventArgs): void;
|
|
1964
|
+
onOkButtonClick(e: any): void;
|
|
1965
|
+
/**
|
|
1966
|
+
* Gets or sets the aria-label attribute of {@link Calendar} element.
|
|
1967
|
+
*/
|
|
1968
|
+
ariaLabel: string;
|
|
1969
|
+
private _updateButtonTabIndex;
|
|
1970
|
+
readonly _enterKeyDownToSetValue: Event<Calendar, EventArgs>;
|
|
1971
|
+
_onEnterKeyDownToSetValue(e?: EventArgs): void;
|
|
1972
|
+
showConfirmationButtons: boolean;
|
|
1973
|
+
protected _setIsDisabled(value: boolean): void;
|
|
1888
1974
|
}
|
|
1889
1975
|
/**
|
|
1890
1976
|
* Specifies constants that define the action to perform when the
|
|
@@ -1898,6 +1984,24 @@ export declare enum ClickAction {
|
|
|
1898
1984
|
/** Toggle the drop-down. */
|
|
1899
1985
|
Toggle = 2
|
|
1900
1986
|
}
|
|
1987
|
+
/**
|
|
1988
|
+
* Defines the behavior when keys are pressed in the control.
|
|
1989
|
+
*/
|
|
1990
|
+
export declare enum KeyAction {
|
|
1991
|
+
/** Changes the selection without opening the dropdown. */
|
|
1992
|
+
ChangeSelectionOnly = 0,
|
|
1993
|
+
/** Opens the dropdown without changing selection. */
|
|
1994
|
+
OpenDropdown = 1
|
|
1995
|
+
}
|
|
1996
|
+
/**
|
|
1997
|
+
* Defines the behavior when the TAB key is pressed in the control.
|
|
1998
|
+
*/
|
|
1999
|
+
export declare enum TabKeyAction {
|
|
2000
|
+
/** Closes the dropdown while maintaining focus on the control */
|
|
2001
|
+
CloseAndKeepFocus = 0,
|
|
2002
|
+
/** Closes the dropdown and moves focus to the next tabbable element. */
|
|
2003
|
+
CloseAndMoveFocus = 1
|
|
2004
|
+
}
|
|
1901
2005
|
/**
|
|
1902
2006
|
* DropDown control (abstract).
|
|
1903
2007
|
*
|
|
@@ -1922,6 +2026,8 @@ export declare class DropDown extends Control {
|
|
|
1922
2026
|
_minWidthDropdown: string;
|
|
1923
2027
|
_escapeIE: boolean;
|
|
1924
2028
|
_isInvalidInputCancelled: boolean;
|
|
2029
|
+
_keyActionDownArrow: KeyAction;
|
|
2030
|
+
_keyActionUpArrow: KeyAction;
|
|
1925
2031
|
static _ctrlTemplate: string;
|
|
1926
2032
|
/**
|
|
1927
2033
|
* Gets or sets the template used to instantiate {@link DropDown} controls.
|
|
@@ -2028,6 +2134,26 @@ export declare class DropDown extends Control {
|
|
|
2028
2134
|
* The default value for this property is **false**.
|
|
2029
2135
|
*/
|
|
2030
2136
|
isAnimated: boolean;
|
|
2137
|
+
/**
|
|
2138
|
+
* Gets or sets the action to perform when the DOWN ARROW key is pressed.
|
|
2139
|
+
*
|
|
2140
|
+
* The default setting for this property is {@link KeyAction.ChangeSelectionOnly},
|
|
2141
|
+
* which causes the control to change the selection item while keeping the listbox closed.
|
|
2142
|
+
*
|
|
2143
|
+
* Alternatively, you can set this to {@link KeyAction.OpenDropdown} to open the listbox
|
|
2144
|
+
* without changing the current selection.
|
|
2145
|
+
*/
|
|
2146
|
+
keyActionDownArrow: KeyAction;
|
|
2147
|
+
/**
|
|
2148
|
+
* Gets or sets the action to perform when the UP ARROW key is pressed.
|
|
2149
|
+
*
|
|
2150
|
+
* The default setting for this property is {@link KeyAction.ChangeSelectionOnly},
|
|
2151
|
+
* which causes the control to change the selection item while keeping the listbox closed.
|
|
2152
|
+
*
|
|
2153
|
+
* Alternatively, you can set this to {@link KeyAction.OpenDropdown} to open the listbox
|
|
2154
|
+
* without changing the current selection.
|
|
2155
|
+
*/
|
|
2156
|
+
keyActionUpArrow: KeyAction;
|
|
2031
2157
|
/**
|
|
2032
2158
|
* Sets the focus to the control and selects all its content.
|
|
2033
2159
|
*/
|
|
@@ -2066,14 +2192,24 @@ export declare class DropDown extends Control {
|
|
|
2066
2192
|
protected _expandSelection(): void;
|
|
2067
2193
|
protected _getCharType(text: string, pos: number): 0 | 1 | -1;
|
|
2068
2194
|
protected _keydown(e: KeyboardEvent): void;
|
|
2195
|
+
private toggleDropDown;
|
|
2196
|
+
private handleUpArrowKey;
|
|
2197
|
+
private handleDownArrowKey;
|
|
2198
|
+
_afterOpenDropdownByDownArrow(): void;
|
|
2199
|
+
private openDropDown;
|
|
2200
|
+
private isHostVisible;
|
|
2069
2201
|
protected _isHiddenEditor(): boolean;
|
|
2070
2202
|
protected _keypress(e: KeyboardEvent): void;
|
|
2071
2203
|
protected _input(e: Event): void;
|
|
2072
2204
|
protected _btnclick(e: MouseEvent): void;
|
|
2073
2205
|
protected _setText(text: string, fullMatch: boolean, forceRevertInvalid?: boolean, clearTbxVal?: boolean): void;
|
|
2074
2206
|
protected _updateBtn(): void;
|
|
2207
|
+
_updateBtnAria(): void;
|
|
2208
|
+
protected _updateTbx(): void;
|
|
2209
|
+
_updateTbxAria(): void;
|
|
2210
|
+
_updateTbxAriaHaspopup(): void;
|
|
2075
2211
|
protected _createDropDown(): void;
|
|
2076
|
-
protected _commitText(noFocus?: boolean): void;
|
|
2212
|
+
protected _commitText(noFocus?: boolean, shouldInvalid?: boolean): void;
|
|
2077
2213
|
_updateDropDown(): void;
|
|
2078
2214
|
}
|
|
2079
2215
|
/**
|
|
@@ -2204,6 +2340,7 @@ export declare class Popup extends Control {
|
|
|
2204
2340
|
static _SZ_MIN: number;
|
|
2205
2341
|
static _evtHover: MouseEvent;
|
|
2206
2342
|
protected _owner: HTMLElement;
|
|
2343
|
+
protected _ariaLabel: string;
|
|
2207
2344
|
protected _modal: boolean;
|
|
2208
2345
|
protected _position: PopupPosition;
|
|
2209
2346
|
protected _showTrigger: PopupTrigger;
|
|
@@ -2246,6 +2383,7 @@ export declare class Popup extends Control {
|
|
|
2246
2383
|
protected _myFocus: HTMLElement;
|
|
2247
2384
|
protected _lastShow: number;
|
|
2248
2385
|
protected _initialOwner: HTMLElement;
|
|
2386
|
+
protected _activeEdge: _Edges;
|
|
2249
2387
|
/**
|
|
2250
2388
|
* Initializes a new instance of the {@link Popup} class.
|
|
2251
2389
|
*
|
|
@@ -2253,6 +2391,10 @@ export declare class Popup extends Control {
|
|
|
2253
2391
|
* @param options JavaScript object containing initialization data for the control.
|
|
2254
2392
|
*/
|
|
2255
2393
|
constructor(element: any, options?: any);
|
|
2394
|
+
/**
|
|
2395
|
+
* Gets or sets the aria-labelledby attribute of {@link Popup} input element.
|
|
2396
|
+
*/
|
|
2397
|
+
ariaLabelledBy: string;
|
|
2256
2398
|
/**
|
|
2257
2399
|
* Gets or sets the element that owns this {@link Popup}.
|
|
2258
2400
|
*
|
|
@@ -2669,6 +2811,8 @@ export declare class Popup extends Control {
|
|
|
2669
2811
|
private _getClosestHeader;
|
|
2670
2812
|
private _showBackdrop;
|
|
2671
2813
|
protected _validateAndHide(result: any): void;
|
|
2814
|
+
protected _updateAriaLabel(): void;
|
|
2815
|
+
protected _updateAriaLabelImp(oldLabels: any): void;
|
|
2672
2816
|
}
|
|
2673
2817
|
/**
|
|
2674
2818
|
* Provides arguments for the {@link Popup} control's {@link sizeChanging} and
|
|
@@ -2747,13 +2891,17 @@ export declare class InputDate extends DropDown {
|
|
|
2747
2891
|
private _clsOnSel;
|
|
2748
2892
|
private _handleWheel;
|
|
2749
2893
|
private _preserveCalendarNavigation;
|
|
2750
|
-
private
|
|
2894
|
+
private _isTriggered;
|
|
2751
2895
|
private _rangeChanged;
|
|
2752
2896
|
private _textInitialized;
|
|
2753
2897
|
private _previousText;
|
|
2754
2898
|
private _keepInvalidText;
|
|
2899
|
+
private _showConfirmationButtons;
|
|
2900
|
+
protected _inputAriaLabel: any;
|
|
2755
2901
|
protected _currentInput: string;
|
|
2756
2902
|
static _ctrlTemplate: string;
|
|
2903
|
+
_ariaLabelledby: string;
|
|
2904
|
+
_keyActionTab: TabKeyAction;
|
|
2757
2905
|
/**
|
|
2758
2906
|
* Gets or sets the template used to instantiate {@link InputDate} control.
|
|
2759
2907
|
*/
|
|
@@ -3149,15 +3297,49 @@ export declare class InputDate extends DropDown {
|
|
|
3149
3297
|
private _tryFocus;
|
|
3150
3298
|
_clamp(value: Date): Date;
|
|
3151
3299
|
protected _getText(): string;
|
|
3152
|
-
protected _commitText(noFocus?: boolean): void;
|
|
3153
|
-
protected _triggerInvalidInputEvent(cancelEvtArgs: InputDateEventArgs, val: Date, rangeEnd?: Date): void;
|
|
3154
|
-
protected _nullValueInvalidInput(cancelEvtArgs: InputDateEventArgs): void;
|
|
3300
|
+
protected _commitText(noFocus?: boolean, shouldInvalid?: boolean): void;
|
|
3301
|
+
protected _triggerInvalidInputEvent(cancelEvtArgs: InputDateEventArgs, val: Date, rangeEnd?: Date, shouldInvalid?: boolean): void;
|
|
3302
|
+
protected _nullValueInvalidInput(cancelEvtArgs: InputDateEventArgs, shouldInvalid?: boolean): void;
|
|
3155
3303
|
protected _fromDateTime(value: Date): Date;
|
|
3156
3304
|
protected _canChangeValue(): boolean;
|
|
3157
3305
|
protected _isValidDate(value: Date): boolean;
|
|
3158
3306
|
private _getRanges;
|
|
3159
3307
|
private _updateRangeSelection;
|
|
3160
3308
|
protected _copy(key: string, value: any): boolean;
|
|
3309
|
+
/**
|
|
3310
|
+
* Gets or sets whether to display the confirmation buttons in Calendar.
|
|
3311
|
+
* When this property is set to true, using the arrow keys will only change the focus.
|
|
3312
|
+
* And "OK" and "Cancel" buttons will be displayed below the dropdown.
|
|
3313
|
+
*/
|
|
3314
|
+
showConfirmationButtons: boolean;
|
|
3315
|
+
/**
|
|
3316
|
+
* Gets or sets the aria-labelledby attribute of input element.
|
|
3317
|
+
*/
|
|
3318
|
+
ariaLabelledBy: string;
|
|
3319
|
+
protected _updateInputAriaLabel(): void;
|
|
3320
|
+
getAriaLabelForScreenReader(): any;
|
|
3321
|
+
/**
|
|
3322
|
+
* Gets or sets the action to perform when the TAB key is pressed.
|
|
3323
|
+
*
|
|
3324
|
+
* The default setting for this property is {@link TabKeyAction.CloseAndMoveFocus},
|
|
3325
|
+
* which provides standard form navigation behavior by:
|
|
3326
|
+
* - Closing the dropdown (if open)
|
|
3327
|
+
* - Moving focus to the next focusable element
|
|
3328
|
+
*
|
|
3329
|
+
* For specialized cases, you can set this to {@link TabKeyAction.CloseAndKeepFocus}
|
|
3330
|
+
* to maintain focus on the control after closing the dropdown.
|
|
3331
|
+
*
|
|
3332
|
+
* This setting is particularly useful for controlling accessibility behavior
|
|
3333
|
+
* and keyboard navigation flow in form controls.
|
|
3334
|
+
*
|
|
3335
|
+
* Example:
|
|
3336
|
+
* ```typescript
|
|
3337
|
+
* // Change TAB key behavior
|
|
3338
|
+
* inputDate.keyActionTab = TabKeyAction.CloseAndMoveFocus;
|
|
3339
|
+
* ```
|
|
3340
|
+
*/
|
|
3341
|
+
keyActionTab: TabKeyAction;
|
|
3342
|
+
_shouldRaiseInvalidInput(shouldInvalid: boolean): boolean;
|
|
3161
3343
|
}
|
|
3162
3344
|
/**
|
|
3163
3345
|
* The {@link InputDateRange} control extends the {@link InputDate}
|
|
@@ -3174,6 +3356,7 @@ export declare class InputDate extends DropDown {
|
|
|
3174
3356
|
*/
|
|
3175
3357
|
export declare class InputDateRange extends InputDate {
|
|
3176
3358
|
static _ctrlTemplate: string;
|
|
3359
|
+
protected _inputAriaLabel: any;
|
|
3177
3360
|
/**
|
|
3178
3361
|
* Gets or sets the template used to instantiate {@link InputDateRange} control.
|
|
3179
3362
|
*/
|
|
@@ -3278,6 +3461,7 @@ export declare class InputColor extends DropDown {
|
|
|
3278
3461
|
protected _keydown(e: KeyboardEvent): void;
|
|
3279
3462
|
protected _commitText(): void;
|
|
3280
3463
|
protected _copy(key: string, value: any): boolean;
|
|
3464
|
+
getAriaLabelForScreenReader(): any;
|
|
3281
3465
|
}
|
|
3282
3466
|
/**
|
|
3283
3467
|
* The {@link ComboBox} control allows users to pick strings from lists.
|
|
@@ -3332,6 +3516,10 @@ export declare class ComboBox<T = any> extends DropDown {
|
|
|
3332
3516
|
_selItems: any;
|
|
3333
3517
|
_oldFilter: any;
|
|
3334
3518
|
static _ctrlTemplate: string;
|
|
3519
|
+
_keyActionTab: TabKeyAction;
|
|
3520
|
+
_keyActionPrintCharacters: KeyAction;
|
|
3521
|
+
_inputElementAriaLabel: string;
|
|
3522
|
+
_ariaLabelledby: string;
|
|
3335
3523
|
/**
|
|
3336
3524
|
* Gets or sets the template used to instantiate {@link ComboBox} control.
|
|
3337
3525
|
*/
|
|
@@ -3521,6 +3709,44 @@ export declare class ComboBox<T = any> extends DropDown {
|
|
|
3521
3709
|
* means the drop-down has no maximum width limit.
|
|
3522
3710
|
*/
|
|
3523
3711
|
maxDropDownWidth: number;
|
|
3712
|
+
/**
|
|
3713
|
+
* Gets or sets the action to perform when printable character keys are pressed (letters, numbers, symbols).
|
|
3714
|
+
*
|
|
3715
|
+
* The default setting for this property is {@link KeyAction.OpenDropdown},
|
|
3716
|
+
* which opens the listbox and filters options as the user types.
|
|
3717
|
+
* This allows users to see matching options before making a selection.
|
|
3718
|
+
*
|
|
3719
|
+
* Alternatively, you can set this to {@link KeyAction.ChangeSelectionOnly}
|
|
3720
|
+
* to immediately change the selection to match the typed characters while keeping the listbox closed.
|
|
3721
|
+
* This is useful for quick selection in known-value scenarios.
|
|
3722
|
+
*/
|
|
3723
|
+
keyActionPrintCharacters: KeyAction;
|
|
3724
|
+
/**
|
|
3725
|
+
* Gets or sets the action to perform when the TAB key is pressed.
|
|
3726
|
+
*
|
|
3727
|
+
* The default setting for this property is {@link TabKeyAction.CloseAndMoveFocus},
|
|
3728
|
+
* which provides standard form navigation behavior by:
|
|
3729
|
+
* - Closing the dropdown (if open)
|
|
3730
|
+
* - Moving focus to the next focusable element
|
|
3731
|
+
*
|
|
3732
|
+
* For specialized cases, you can set this to {@link TabKeyAction.CloseAndKeepFocus}
|
|
3733
|
+
* to maintain focus on the control after closing the dropdown.
|
|
3734
|
+
*
|
|
3735
|
+
* This setting is particularly useful for controlling accessibility behavior
|
|
3736
|
+
* and keyboard navigation flow in form controls.
|
|
3737
|
+
*
|
|
3738
|
+
* Example:
|
|
3739
|
+
* ```typescript
|
|
3740
|
+
* // Change TAB key behavior
|
|
3741
|
+
* comboBox.keyActionTab = TabKeyAction.CloseAndMoveFocus;
|
|
3742
|
+
* ```
|
|
3743
|
+
*/
|
|
3744
|
+
keyActionTab: TabKeyAction;
|
|
3745
|
+
/**
|
|
3746
|
+
* Gets or sets the aria-labelledby attribute of input element.
|
|
3747
|
+
*/
|
|
3748
|
+
ariaLabelledBy: string;
|
|
3749
|
+
_updateInputAndListBoxAriaLabel(): void;
|
|
3524
3750
|
/**
|
|
3525
3751
|
* Gets the string displayed in the input element for the item at a
|
|
3526
3752
|
* given index (always plain text).
|
|
@@ -3529,6 +3755,8 @@ export declare class ComboBox<T = any> extends DropDown {
|
|
|
3529
3755
|
* @param trimText Optionally override the value of the {@link trimText} property.
|
|
3530
3756
|
*/
|
|
3531
3757
|
getDisplayText(index?: number, trimText?: boolean): string;
|
|
3758
|
+
_getDisplayText(index?: number, trimText?: boolean, ignoreItemFormatter?: boolean): string;
|
|
3759
|
+
_hasCustomFormatItem(): boolean;
|
|
3532
3760
|
/**
|
|
3533
3761
|
* Gets the index of the first item that matches a given string.
|
|
3534
3762
|
*
|
|
@@ -3565,18 +3793,31 @@ export declare class ComboBox<T = any> extends DropDown {
|
|
|
3565
3793
|
protected _setIsDisabled(value: boolean): void;
|
|
3566
3794
|
protected _updateBtn(): void;
|
|
3567
3795
|
protected _hasItems(): boolean;
|
|
3568
|
-
|
|
3796
|
+
_updateTbxAria(): void;
|
|
3797
|
+
_updateInputAriaLabel(): void;
|
|
3569
3798
|
protected _createDropDown(): void;
|
|
3570
3799
|
protected _wheel(e: WheelEvent): void;
|
|
3571
3800
|
protected _dropDownClick(e: MouseEvent): void;
|
|
3572
3801
|
protected _setText(text: string, fullMatch: boolean, isDateTime?: boolean): void;
|
|
3573
3802
|
protected _findNext(search: string, step: number, start?: number): number;
|
|
3803
|
+
_findNextWhenIsEditableFalse(search: string, step: number, start?: number): number;
|
|
3574
3804
|
protected _keydown(e: KeyboardEvent): void;
|
|
3575
|
-
|
|
3805
|
+
_afterOpenDropdownByDownArrow(): void;
|
|
3806
|
+
_input(e: Event): void;
|
|
3807
|
+
_handleDragTextState(): void;
|
|
3808
|
+
_handleComposingState(): void;
|
|
3809
|
+
_shouldOpenDropdown(): boolean;
|
|
3810
|
+
_handleIsEditableFalseInput(): void;
|
|
3811
|
+
_updateSelection(index: number, editStart: number): void;
|
|
3812
|
+
_updateComponentText(): void;
|
|
3813
|
+
_updateEmptyValueFlag(): void;
|
|
3814
|
+
_controlDropdownVisibility(): void;
|
|
3815
|
+
_resetDragState(): void;
|
|
3576
3816
|
protected _updateInputSelection(start: number): void;
|
|
3577
3817
|
private _getSelStart;
|
|
3578
3818
|
private _getSelEnd;
|
|
3579
3819
|
private _setSelRange;
|
|
3820
|
+
getAriaLabelForScreenReader(): any;
|
|
3580
3821
|
}
|
|
3581
3822
|
/**
|
|
3582
3823
|
* Represents a method that returns a string used as a header for a
|
|
@@ -3626,6 +3867,7 @@ export declare class MultiSelect extends ComboBox {
|
|
|
3626
3867
|
private _msLbx;
|
|
3627
3868
|
static _DEF_CHECKED_PATH: string;
|
|
3628
3869
|
static _ctrlTemplate: string;
|
|
3870
|
+
_inputElementAriaLabel: string;
|
|
3629
3871
|
/**
|
|
3630
3872
|
* Gets or sets the template used to instantiate {@link MultiSelect} control.
|
|
3631
3873
|
*/
|
|
@@ -3758,6 +4000,7 @@ export declare class MultiSelect extends ComboBox {
|
|
|
3758
4000
|
protected _keydown(e: KeyboardEvent): void;
|
|
3759
4001
|
protected _hasItems(): boolean;
|
|
3760
4002
|
private _updateHeader;
|
|
4003
|
+
getAriaLabelForScreenReader(): any;
|
|
3761
4004
|
}
|
|
3762
4005
|
/**
|
|
3763
4006
|
* Interface implemented by command objects.
|
|
@@ -4091,6 +4334,7 @@ export declare class InputTime extends ComboBox {
|
|
|
4091
4334
|
_msk: _MaskProvider;
|
|
4092
4335
|
_hasCustomItems: boolean;
|
|
4093
4336
|
static _ctrlTemplate: string;
|
|
4337
|
+
_inputElementAriaLabel: string;
|
|
4094
4338
|
/**
|
|
4095
4339
|
* Gets or sets the template used to instantiate {@link InputTime} control.
|
|
4096
4340
|
*/
|
|
@@ -4204,6 +4448,8 @@ export declare class InputTime extends ComboBox {
|
|
|
4204
4448
|
private _reselectText;
|
|
4205
4449
|
protected _commitText(): void;
|
|
4206
4450
|
protected _copy(key: string, value: any): boolean;
|
|
4451
|
+
getAriaLabelForScreenReader(): any;
|
|
4452
|
+
_input(e: Event): void;
|
|
4207
4453
|
}
|
|
4208
4454
|
/**
|
|
4209
4455
|
* The {@link InputDateTime} control extends the {@link InputDate} control to allows users
|
|
@@ -4231,6 +4477,7 @@ export declare class InputDateTime extends InputDate {
|
|
|
4231
4477
|
private _ddDate;
|
|
4232
4478
|
private _ddTime;
|
|
4233
4479
|
static _ctrlTemplate: string;
|
|
4480
|
+
protected _inputAriaLabel: any;
|
|
4234
4481
|
/**
|
|
4235
4482
|
* Gets or sets the template used to instantiate {@link InputDateTime} controls.
|
|
4236
4483
|
*/
|
|
@@ -4298,7 +4545,7 @@ export declare class InputDateTime extends InputDate {
|
|
|
4298
4545
|
protected _mouseWheel(e: WheelEvent): void;
|
|
4299
4546
|
protected _keydown(e: KeyboardEvent): void;
|
|
4300
4547
|
protected _updateDateTimeValue(step: number, specialChars: any, actualFormat: string): void;
|
|
4301
|
-
protected _commitText(): void;
|
|
4548
|
+
protected _commitText(noFocus?: boolean, shouldInvalid?: boolean): void;
|
|
4302
4549
|
}
|
|
4303
4550
|
/**
|
|
4304
4551
|
* Represents a method that returns data items asynchronously as the user types.
|
|
@@ -4354,6 +4601,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
4354
4601
|
private _oldSelectedIndex;
|
|
4355
4602
|
_pendingSearchFn: any;
|
|
4356
4603
|
static _ctrlTemplate: string;
|
|
4604
|
+
_inputElementAriaLabel: string;
|
|
4357
4605
|
/**
|
|
4358
4606
|
* Gets or sets the template used to instantiate {@link AutoComplete} control.
|
|
4359
4607
|
*/
|
|
@@ -4459,7 +4707,9 @@ export declare class AutoComplete extends ComboBox {
|
|
|
4459
4707
|
* Raises the {@link selectedIndexChanged} event.
|
|
4460
4708
|
*/
|
|
4461
4709
|
onSelectedIndexChanged(e?: EventArgs): void;
|
|
4710
|
+
_updateTbxAria(): void;
|
|
4462
4711
|
_keydown(e: KeyboardEvent): void;
|
|
4712
|
+
_input(e: Event): void;
|
|
4463
4713
|
private _isBlurInput;
|
|
4464
4714
|
protected _commitText(noFocus?: boolean): void;
|
|
4465
4715
|
_setText(text: string | null): void;
|
|
@@ -4474,6 +4724,8 @@ export declare class AutoComplete extends ComboBox {
|
|
|
4474
4724
|
protected _formatListItem(sender: any, e: FormatItemEventArgs): void;
|
|
4475
4725
|
private _enclosed;
|
|
4476
4726
|
protected _wheel(e: WheelEvent): void;
|
|
4727
|
+
getAriaLabelForScreenReader(): any;
|
|
4728
|
+
_hasCustomFormatItem(): boolean;
|
|
4477
4729
|
}
|
|
4478
4730
|
/**
|
|
4479
4731
|
* The {@link MultiAutoComplete} control allows users to pick items from lists
|
|
@@ -4494,6 +4746,7 @@ export declare class MultiAutoComplete extends AutoComplete {
|
|
|
4494
4746
|
private _notAddItm;
|
|
4495
4747
|
static _clsActive: string;
|
|
4496
4748
|
static _ctrlTemplate: string;
|
|
4749
|
+
_inputElementAriaLabel: string;
|
|
4497
4750
|
/**
|
|
4498
4751
|
* Gets or sets the template used to instantiate {@link MultiAutoComplete} control.
|
|
4499
4752
|
*/
|