@grapecity/wijmo.input 5.20251.40 → 5.20252.44
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/es2015-commonjs.js +2 -2
- package/es2015-esm.js +2 -2
- package/es5-esm.js +2 -2
- package/index.d.ts +209 -51
- package/index.js +2 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.
|
|
3
|
+
* Wijmo Library 5.20252.44
|
|
4
4
|
* https://developer.mescius.com/wijmo
|
|
5
5
|
*
|
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
@@ -73,12 +73,14 @@ export declare const InputColorClsNames: {
|
|
|
73
73
|
export declare const InputDateClsNames: {
|
|
74
74
|
hostElement: string;
|
|
75
75
|
inputDateDropDown: string;
|
|
76
|
+
inputDateDropDownContainer: string;
|
|
76
77
|
};
|
|
77
78
|
export declare const InputDateRangeClsNames: {
|
|
78
79
|
hostElement: string;
|
|
79
80
|
};
|
|
80
81
|
export declare const InputDateTimeClsNames: {
|
|
81
82
|
hostElement: string;
|
|
83
|
+
showDropDownButton: string;
|
|
82
84
|
};
|
|
83
85
|
export declare const InputMaskClsNames: {
|
|
84
86
|
hostElement: string;
|
|
@@ -108,6 +110,7 @@ export declare const MultiAutoCompleteClsNames: {
|
|
|
108
110
|
tokenClose: string;
|
|
109
111
|
tokenHelper: string;
|
|
110
112
|
tokenLabel: string;
|
|
113
|
+
screenReaderOnly: string;
|
|
111
114
|
};
|
|
112
115
|
export declare const MultiSelectClsNames: {
|
|
113
116
|
hostElement: string;
|
|
@@ -338,9 +341,20 @@ export declare class InputNumber extends Control {
|
|
|
338
341
|
private _increment;
|
|
339
342
|
protected _updateBtn(): void;
|
|
340
343
|
_setText(text: string, truncate?: boolean, forceDelete?: boolean): void;
|
|
344
|
+
private _handleDecimalInput;
|
|
345
|
+
protected _beforeinput(e: any): void;
|
|
341
346
|
protected _keypress(e: KeyboardEvent): void;
|
|
347
|
+
private _handlePlusSign;
|
|
348
|
+
private _handleMinusSign;
|
|
342
349
|
protected _keydown(e: KeyboardEvent): void;
|
|
343
350
|
protected _input(): void;
|
|
351
|
+
/**
|
|
352
|
+
* Checks if the value represents a negative currency entered using parentheses.
|
|
353
|
+
* Scenario:
|
|
354
|
+
* 1. First input "(" → value changes to "-$0.00"
|
|
355
|
+
* 2. Then input a digit (e.g., "1") → value changes to "-$01.00"
|
|
356
|
+
*/
|
|
357
|
+
private _isNegativeCurrencyByParenthesis;
|
|
344
358
|
protected _clickSpinner(e: MouseEvent): void;
|
|
345
359
|
protected _updateAria(): void;
|
|
346
360
|
_updateInputAriaLabel(): void;
|
|
@@ -399,6 +413,8 @@ export declare class InputMask extends Control {
|
|
|
399
413
|
_msk: _MaskProvider;
|
|
400
414
|
_fullEdit: boolean;
|
|
401
415
|
static _ctrlTemplate: string;
|
|
416
|
+
_inputElementAriaLabel: string;
|
|
417
|
+
_ariaLabelledby: string;
|
|
402
418
|
/**
|
|
403
419
|
* Gets or sets the template used to instantiate {@link InputMask} controls.
|
|
404
420
|
*/
|
|
@@ -501,8 +517,22 @@ export declare class InputMask extends Control {
|
|
|
501
517
|
dispose(): void;
|
|
502
518
|
refresh(fullUpdate?: boolean): void;
|
|
503
519
|
onGotFocus(e: any): void;
|
|
520
|
+
/**
|
|
521
|
+
* Gets or sets the aria-labelledby attribute of input element.
|
|
522
|
+
*/
|
|
523
|
+
ariaLabelledBy: string;
|
|
524
|
+
_updateInputAriaLabel(): void;
|
|
504
525
|
getAriaLabelForScreenReader(): any;
|
|
505
526
|
}
|
|
527
|
+
/**
|
|
528
|
+
* Specifies constants that define the action to be performed when the TAB key is pressed.
|
|
529
|
+
*/
|
|
530
|
+
export declare enum ColorPickerTabKeyAction {
|
|
531
|
+
/** No special action (let the browser handle the key). */
|
|
532
|
+
None = 0,
|
|
533
|
+
/** All buttons in the color picker can be selected using the tab key. */
|
|
534
|
+
All = 1
|
|
535
|
+
}
|
|
506
536
|
/**
|
|
507
537
|
* The {@link ColorPicker} control allows users to select a color by clicking
|
|
508
538
|
* on panels to adjust color channels (hue, saturation, brightness, alpha).
|
|
@@ -527,7 +557,11 @@ export declare class ColorPicker extends Control {
|
|
|
527
557
|
_ePal: HTMLElement;
|
|
528
558
|
_ePreview: HTMLElement;
|
|
529
559
|
_eText: HTMLElement;
|
|
560
|
+
_ePalMainFirst: HTMLElement;
|
|
561
|
+
_ePalShadeFirst: HTMLElement;
|
|
530
562
|
_htDown: Element;
|
|
563
|
+
_ariaLabel: string;
|
|
564
|
+
private _keyActionTab;
|
|
531
565
|
static _ctrlTemplate: string;
|
|
532
566
|
/**
|
|
533
567
|
* Gets or sets the template used to instantiate {@link ColorPicker} controls.
|
|
@@ -584,6 +618,20 @@ export declare class ColorPicker extends Control {
|
|
|
584
618
|
* No exceptions are thrown in these cases.
|
|
585
619
|
*/
|
|
586
620
|
palette: string[];
|
|
621
|
+
/**
|
|
622
|
+
* Gets or sets the aria-label attribute of {@link ColorPicker} host element.
|
|
623
|
+
*
|
|
624
|
+
* The default value for this property is "Color Picker".
|
|
625
|
+
*/
|
|
626
|
+
ariaLabel: string;
|
|
627
|
+
/**
|
|
628
|
+
* Gets or sets the action to perform when the Tab key is pressed.
|
|
629
|
+
*
|
|
630
|
+
* The default setting for this property is {@link ColorPickerTabKeyAction.None},
|
|
631
|
+
* This means that pressing the tab key will have no effect and follow the browser's default behavior.
|
|
632
|
+
*/
|
|
633
|
+
keyActionTab: ColorPickerTabKeyAction;
|
|
634
|
+
_setTabOrder(value: number): void;
|
|
587
635
|
/**
|
|
588
636
|
* Occurs when the value of the {@link value} property changes, either
|
|
589
637
|
* as a result of user actions or by assignment in code.
|
|
@@ -600,7 +648,18 @@ export declare class ColorPicker extends Control {
|
|
|
600
648
|
private _updatePalette;
|
|
601
649
|
private _makePalEntry;
|
|
602
650
|
private _updatePanels;
|
|
651
|
+
private getColorsDiv;
|
|
603
652
|
private _getTargetPanel;
|
|
653
|
+
protected getActualTabIndex(): string;
|
|
654
|
+
private _updateTabIndex;
|
|
655
|
+
protected _setIsDisabled(value: boolean): void;
|
|
656
|
+
private _updateAriaValues;
|
|
657
|
+
private _keydown;
|
|
658
|
+
private _isInColorPalette;
|
|
659
|
+
private _handleColorNavigation;
|
|
660
|
+
private _handleHSBNavigation;
|
|
661
|
+
_refreshSelection(): void;
|
|
662
|
+
private _handleAlphaNavigation;
|
|
604
663
|
}
|
|
605
664
|
/**
|
|
606
665
|
* The {@link CollectionViewNavigator} control provides a UI for navigating
|
|
@@ -708,6 +767,7 @@ export declare class CollectionViewNavigator<T = any> extends Control {
|
|
|
708
767
|
protected _setTabOrder(value: number): void;
|
|
709
768
|
_keydown(e: KeyboardEvent): void;
|
|
710
769
|
protected _setIsDisabled(value: boolean): void;
|
|
770
|
+
_updateTabIndex(): void;
|
|
711
771
|
}
|
|
712
772
|
/**
|
|
713
773
|
* Represents a method that formats an item for display in a
|
|
@@ -796,6 +856,7 @@ export declare class ListBox<T = any> extends Control {
|
|
|
796
856
|
_ariaLabel: string;
|
|
797
857
|
static _DIDX_KEY: string;
|
|
798
858
|
static _VTHRESH: number;
|
|
859
|
+
_isNeedUpdateBnd: boolean;
|
|
799
860
|
/**
|
|
800
861
|
* Initializes a new instance of the {@link ListBox} class.
|
|
801
862
|
*
|
|
@@ -1145,8 +1206,17 @@ export declare class ListBox<T = any> extends Control {
|
|
|
1145
1206
|
_initFromSelect(hostElement: HTMLElement): void;
|
|
1146
1207
|
_setIsDisabled(value: boolean): void;
|
|
1147
1208
|
_setTabOrder(value: number): void;
|
|
1209
|
+
_isMenuItem(): boolean;
|
|
1148
1210
|
_updateTabIndex(): void;
|
|
1149
1211
|
private _selectRange;
|
|
1212
|
+
/**
|
|
1213
|
+
* Disposes of the control and all its resources.
|
|
1214
|
+
*
|
|
1215
|
+
* Calling the {@link dispose} method is important in applications that create
|
|
1216
|
+
* and remove controls dynamically. Failing to dispose of the controls may
|
|
1217
|
+
* cause memory leaks.
|
|
1218
|
+
*/
|
|
1219
|
+
dispose(): void;
|
|
1150
1220
|
}
|
|
1151
1221
|
/**
|
|
1152
1222
|
* Provides arguments for the {@link ListBox.formatItem} event.
|
|
@@ -1193,6 +1263,7 @@ export declare class MultiSelectListBox<T = any> extends Control {
|
|
|
1193
1263
|
_lbx: ListBox;
|
|
1194
1264
|
_cbSelectAll: HTMLInputElement;
|
|
1195
1265
|
_spSelectAll: HTMLSpanElement;
|
|
1266
|
+
_ariaLabel: string;
|
|
1196
1267
|
_selectAllLabel: string;
|
|
1197
1268
|
_filterPlaceholder: string;
|
|
1198
1269
|
_filterText: string;
|
|
@@ -1343,6 +1414,11 @@ export declare class MultiSelectListBox<T = any> extends Control {
|
|
|
1343
1414
|
* Gets or sets an array containing the items that are currently checked.
|
|
1344
1415
|
*/
|
|
1345
1416
|
checkedItems: any[];
|
|
1417
|
+
/**
|
|
1418
|
+
* Gets or sets the aria-labelledby attribute of {@link MultiSelectListBox} input element.
|
|
1419
|
+
*/
|
|
1420
|
+
ariaLabelledBy: string;
|
|
1421
|
+
_updateAriaLabel(): void;
|
|
1346
1422
|
/**
|
|
1347
1423
|
* Occurs when the value of the {@link checkedItems} property changes.
|
|
1348
1424
|
*/
|
|
@@ -1541,6 +1617,7 @@ export declare class Calendar extends Control {
|
|
|
1541
1617
|
private _keyActionTab;
|
|
1542
1618
|
private _ariaLabel;
|
|
1543
1619
|
private _showConfirmationButtons;
|
|
1620
|
+
private _isSpaceDownForSetValue;
|
|
1544
1621
|
private _tmYrHidden;
|
|
1545
1622
|
private _syncing;
|
|
1546
1623
|
private _cals;
|
|
@@ -1950,10 +2027,8 @@ export declare class Calendar extends Control {
|
|
|
1950
2027
|
*/
|
|
1951
2028
|
keyActionTab: CalendarTabKeyAction;
|
|
1952
2029
|
private _isButtonFocused;
|
|
1953
|
-
private _isSameDay;
|
|
1954
2030
|
private _isSameMonth;
|
|
1955
2031
|
private _dateViewContainsFocus;
|
|
1956
|
-
getFocusableElements(): HTMLElement[];
|
|
1957
2032
|
private _updateMonthButtonAria;
|
|
1958
2033
|
private _isDayValid;
|
|
1959
2034
|
readonly cancelButtonClicked: Event<Calendar, EventArgs>;
|
|
@@ -1971,7 +2046,16 @@ export declare class Calendar extends Control {
|
|
|
1971
2046
|
_onEnterKeyDownToSetValue(e?: EventArgs): void;
|
|
1972
2047
|
showConfirmationButtons: boolean;
|
|
1973
2048
|
protected _setIsDisabled(value: boolean): void;
|
|
2049
|
+
private updateCalendarsTabindex;
|
|
2050
|
+
private setFocusModeValue;
|
|
2051
|
+
private _getCalendarsHostElements;
|
|
2052
|
+
updateConfirmationButtons(hostElement: HTMLElement): void;
|
|
2053
|
+
setFocusValueToFirstOrLastCalendar(isFirst: boolean): void;
|
|
2054
|
+
isCalendarDateCell(element: HTMLElement): boolean;
|
|
2055
|
+
isThisMainCalendar(): boolean;
|
|
1974
2056
|
}
|
|
2057
|
+
export declare function softTouch(): any;
|
|
2058
|
+
export declare function getDragDropTouch(): any;
|
|
1975
2059
|
/**
|
|
1976
2060
|
* Specifies constants that define the action to perform when the
|
|
1977
2061
|
* user clicks the input element in the control.
|
|
@@ -2028,7 +2112,9 @@ export declare class DropDown extends Control {
|
|
|
2028
2112
|
_isInvalidInputCancelled: boolean;
|
|
2029
2113
|
_keyActionDownArrow: KeyAction;
|
|
2030
2114
|
_keyActionUpArrow: KeyAction;
|
|
2115
|
+
_keyActionTab: TabKeyAction;
|
|
2031
2116
|
static _ctrlTemplate: string;
|
|
2117
|
+
_touchMove: boolean;
|
|
2032
2118
|
/**
|
|
2033
2119
|
* Gets or sets the template used to instantiate {@link DropDown} controls.
|
|
2034
2120
|
*/
|
|
@@ -2040,6 +2126,7 @@ export declare class DropDown extends Control {
|
|
|
2040
2126
|
* @param options The JavaScript object containing initialization data for the control.
|
|
2041
2127
|
*/
|
|
2042
2128
|
constructor(element: any, options?: any);
|
|
2129
|
+
_isTouchMoved(): boolean;
|
|
2043
2130
|
/**
|
|
2044
2131
|
* Gets or sets the text shown on the control.
|
|
2045
2132
|
*/
|
|
@@ -2154,6 +2241,27 @@ export declare class DropDown extends Control {
|
|
|
2154
2241
|
* without changing the current selection.
|
|
2155
2242
|
*/
|
|
2156
2243
|
keyActionUpArrow: KeyAction;
|
|
2244
|
+
/**
|
|
2245
|
+
* Gets or sets the action to perform when the TAB key is pressed.
|
|
2246
|
+
*
|
|
2247
|
+
* The default setting for this property is {@link TabKeyAction.CloseAndMoveFocus},
|
|
2248
|
+
* which provides standard form navigation behavior by:
|
|
2249
|
+
* - Closing the dropdown (if open)
|
|
2250
|
+
* - Moving focus to the next focusable element
|
|
2251
|
+
*
|
|
2252
|
+
* For specialized cases, you can set this to {@link TabKeyAction.CloseAndKeepFocus}
|
|
2253
|
+
* to maintain focus on the control after closing the dropdown.
|
|
2254
|
+
*
|
|
2255
|
+
* This setting is particularly useful for controlling accessibility behavior
|
|
2256
|
+
* and keyboard navigation flow in form controls.
|
|
2257
|
+
*
|
|
2258
|
+
* Example:
|
|
2259
|
+
* ```typescript
|
|
2260
|
+
* // Change TAB key behavior
|
|
2261
|
+
* dropDown.keyActionTab = TabKeyAction.CloseAndMoveFocus;
|
|
2262
|
+
* ```
|
|
2263
|
+
*/
|
|
2264
|
+
keyActionTab: TabKeyAction;
|
|
2157
2265
|
/**
|
|
2158
2266
|
* Sets the focus to the control and selects all its content.
|
|
2159
2267
|
*/
|
|
@@ -2211,6 +2319,7 @@ export declare class DropDown extends Control {
|
|
|
2211
2319
|
protected _createDropDown(): void;
|
|
2212
2320
|
protected _commitText(noFocus?: boolean, shouldInvalid?: boolean): void;
|
|
2213
2321
|
_updateDropDown(): void;
|
|
2322
|
+
_shouldRaiseInvalidInput(shouldInvalid: boolean): boolean;
|
|
2214
2323
|
}
|
|
2215
2324
|
/**
|
|
2216
2325
|
* Specifies actions that trigger showing and hiding {@link Popup} controls.
|
|
@@ -2338,6 +2447,7 @@ export declare class Popup extends Control {
|
|
|
2338
2447
|
static _DRAG_THRESHOLD: number;
|
|
2339
2448
|
static _SZ_EDGE: number;
|
|
2340
2449
|
static _SZ_MIN: number;
|
|
2450
|
+
static _PopupInstanceCount: number;
|
|
2341
2451
|
static _evtHover: MouseEvent;
|
|
2342
2452
|
protected _owner: HTMLElement;
|
|
2343
2453
|
protected _ariaLabel: string;
|
|
@@ -2384,6 +2494,9 @@ export declare class Popup extends Control {
|
|
|
2384
2494
|
protected _lastShow: number;
|
|
2385
2495
|
protected _initialOwner: HTMLElement;
|
|
2386
2496
|
protected _activeEdge: _Edges;
|
|
2497
|
+
private _toHidePopupTimer;
|
|
2498
|
+
private _toGetFocusTimer;
|
|
2499
|
+
private _hideTimer;
|
|
2387
2500
|
/**
|
|
2388
2501
|
* Initializes a new instance of the {@link Popup} class.
|
|
2389
2502
|
*
|
|
@@ -2792,7 +2905,6 @@ export declare class Popup extends Control {
|
|
|
2792
2905
|
*/
|
|
2793
2906
|
onPositionChanged(e?: EventArgs): void;
|
|
2794
2907
|
onLostFocus(e?: EventArgs): void;
|
|
2795
|
-
dispose(): void;
|
|
2796
2908
|
refresh(fullUpdate?: boolean): void;
|
|
2797
2909
|
_clearTimeouts(): void;
|
|
2798
2910
|
protected _handleDragResize(on: boolean): void;
|
|
@@ -2813,6 +2925,14 @@ export declare class Popup extends Control {
|
|
|
2813
2925
|
protected _validateAndHide(result: any): void;
|
|
2814
2926
|
protected _updateAriaLabel(): void;
|
|
2815
2927
|
protected _updateAriaLabelImp(oldLabels: any): void;
|
|
2928
|
+
/**
|
|
2929
|
+
* Disposes of the control and all its resources.
|
|
2930
|
+
*
|
|
2931
|
+
* Calling the {@link dispose} method is important in applications that create
|
|
2932
|
+
* and remove controls dynamically. Failing to dispose of the controls may
|
|
2933
|
+
* cause memory leaks.
|
|
2934
|
+
*/
|
|
2935
|
+
dispose(): void;
|
|
2816
2936
|
}
|
|
2817
2937
|
/**
|
|
2818
2938
|
* Provides arguments for the {@link Popup} control's {@link sizeChanging} and
|
|
@@ -2901,7 +3021,6 @@ export declare class InputDate extends DropDown {
|
|
|
2901
3021
|
protected _currentInput: string;
|
|
2902
3022
|
static _ctrlTemplate: string;
|
|
2903
3023
|
_ariaLabelledby: string;
|
|
2904
|
-
_keyActionTab: TabKeyAction;
|
|
2905
3024
|
/**
|
|
2906
3025
|
* Gets or sets the template used to instantiate {@link InputDate} control.
|
|
2907
3026
|
*/
|
|
@@ -3282,6 +3401,7 @@ export declare class InputDate extends DropDown {
|
|
|
3282
3401
|
* Raises the {@link rangeChanged} event.
|
|
3283
3402
|
*/
|
|
3284
3403
|
onRangeChanged(e?: EventArgs): void;
|
|
3404
|
+
protected _getParsedValue(): Date;
|
|
3285
3405
|
refresh(fullUpdate?: boolean): void;
|
|
3286
3406
|
onIsDroppedDownChanging(e: CancelEventArgs): boolean;
|
|
3287
3407
|
onIsDroppedDownChanged(e?: EventArgs): void;
|
|
@@ -3318,28 +3438,6 @@ export declare class InputDate extends DropDown {
|
|
|
3318
3438
|
ariaLabelledBy: string;
|
|
3319
3439
|
protected _updateInputAriaLabel(): void;
|
|
3320
3440
|
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;
|
|
3343
3441
|
}
|
|
3344
3442
|
/**
|
|
3345
3443
|
* The {@link InputDateRange} control extends the {@link InputDate}
|
|
@@ -3387,6 +3485,8 @@ export declare class InputColor extends DropDown {
|
|
|
3387
3485
|
private _colorPicker;
|
|
3388
3486
|
private _value;
|
|
3389
3487
|
private _textInitialized;
|
|
3488
|
+
_ariaLabelledby: string;
|
|
3489
|
+
protected _inputAriaLabel: string;
|
|
3390
3490
|
static _ctrlTemplate: string;
|
|
3391
3491
|
/**
|
|
3392
3492
|
* Gets or sets the template used to instantiate {@link InputColor} control.
|
|
@@ -3447,6 +3547,14 @@ export declare class InputColor extends DropDown {
|
|
|
3447
3547
|
* Gets a reference to the {@link ColorPicker} control shown in the drop-down.
|
|
3448
3548
|
*/
|
|
3449
3549
|
readonly colorPicker: ColorPicker;
|
|
3550
|
+
/**
|
|
3551
|
+
* Gets or sets the aria-labelledby attribute of input color element.
|
|
3552
|
+
*/
|
|
3553
|
+
ariaLabelledBy: string;
|
|
3554
|
+
/**
|
|
3555
|
+
* Gets or sets the colorPicker's keyActionTab property.
|
|
3556
|
+
*/
|
|
3557
|
+
colorPickerKeyActionTab: ColorPickerTabKeyAction;
|
|
3450
3558
|
/**
|
|
3451
3559
|
* Occurs when the value of the {@link value} property changes, either
|
|
3452
3560
|
* as a result of user actions or by assignment in code.
|
|
@@ -3460,8 +3568,10 @@ export declare class InputColor extends DropDown {
|
|
|
3460
3568
|
protected _createDropDown(): void;
|
|
3461
3569
|
protected _keydown(e: KeyboardEvent): void;
|
|
3462
3570
|
protected _commitText(): void;
|
|
3571
|
+
protected _changeAllValue(): void;
|
|
3463
3572
|
protected _copy(key: string, value: any): boolean;
|
|
3464
3573
|
getAriaLabelForScreenReader(): any;
|
|
3574
|
+
protected _updateInputAriaLabel(): void;
|
|
3465
3575
|
}
|
|
3466
3576
|
/**
|
|
3467
3577
|
* The {@link ComboBox} control allows users to pick strings from lists.
|
|
@@ -3516,7 +3626,6 @@ export declare class ComboBox<T = any> extends DropDown {
|
|
|
3516
3626
|
_selItems: any;
|
|
3517
3627
|
_oldFilter: any;
|
|
3518
3628
|
static _ctrlTemplate: string;
|
|
3519
|
-
_keyActionTab: TabKeyAction;
|
|
3520
3629
|
_keyActionPrintCharacters: KeyAction;
|
|
3521
3630
|
_inputElementAriaLabel: string;
|
|
3522
3631
|
_ariaLabelledby: string;
|
|
@@ -3721,27 +3830,6 @@ export declare class ComboBox<T = any> extends DropDown {
|
|
|
3721
3830
|
* This is useful for quick selection in known-value scenarios.
|
|
3722
3831
|
*/
|
|
3723
3832
|
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
3833
|
/**
|
|
3746
3834
|
* Gets or sets the aria-labelledby attribute of input element.
|
|
3747
3835
|
*/
|
|
@@ -3805,7 +3893,6 @@ export declare class ComboBox<T = any> extends DropDown {
|
|
|
3805
3893
|
_afterOpenDropdownByDownArrow(): void;
|
|
3806
3894
|
_input(e: Event): void;
|
|
3807
3895
|
_handleDragTextState(): void;
|
|
3808
|
-
_handleComposingState(): void;
|
|
3809
3896
|
_shouldOpenDropdown(): boolean;
|
|
3810
3897
|
_handleIsEditableFalseInput(): void;
|
|
3811
3898
|
_updateSelection(index: number, editStart: number): void;
|
|
@@ -3818,6 +3905,7 @@ export declare class ComboBox<T = any> extends DropDown {
|
|
|
3818
3905
|
private _getSelEnd;
|
|
3819
3906
|
private _setSelRange;
|
|
3820
3907
|
getAriaLabelForScreenReader(): any;
|
|
3908
|
+
_updateDropDownWhenInput(): void;
|
|
3821
3909
|
}
|
|
3822
3910
|
/**
|
|
3823
3911
|
* Represents a method that returns a string used as a header for a
|
|
@@ -3994,6 +4082,8 @@ export declare class MultiSelect extends ComboBox {
|
|
|
3994
4082
|
onIsDroppedDownChanged(e?: EventArgs): void;
|
|
3995
4083
|
onLostFocus(): void;
|
|
3996
4084
|
protected _createDropDown(): void;
|
|
4085
|
+
_updateBtnAria(): void;
|
|
4086
|
+
_updateTbxAria(): void;
|
|
3997
4087
|
isReadOnly: boolean;
|
|
3998
4088
|
refresh(fullUpdate?: boolean): void;
|
|
3999
4089
|
protected _setText(text: string, fullMatch: boolean): void;
|
|
@@ -4063,6 +4153,7 @@ export declare class Menu extends ComboBox {
|
|
|
4063
4153
|
_defaultItem: any;
|
|
4064
4154
|
_owner: HTMLElement;
|
|
4065
4155
|
_isButton: boolean;
|
|
4156
|
+
_keepOpen: boolean;
|
|
4066
4157
|
_openOnHover: boolean;
|
|
4067
4158
|
_closeOnLeave: boolean;
|
|
4068
4159
|
_toHover: any;
|
|
@@ -4073,7 +4164,9 @@ export declare class Menu extends ComboBox {
|
|
|
4073
4164
|
_ariaLabel: string;
|
|
4074
4165
|
_aFEnabledItem: boolean;
|
|
4075
4166
|
static _evtHover: MouseEvent;
|
|
4167
|
+
static _MenuInstanceCount: number;
|
|
4076
4168
|
static _ctrlTemplate: string;
|
|
4169
|
+
_parentMenu: Menu;
|
|
4077
4170
|
/**
|
|
4078
4171
|
* Gets or sets the template used to instantiate {@link Menu} control.
|
|
4079
4172
|
*/
|
|
@@ -4085,6 +4178,9 @@ export declare class Menu extends ComboBox {
|
|
|
4085
4178
|
* @param options The JavaScript object containing initialization data for the control.
|
|
4086
4179
|
*/
|
|
4087
4180
|
constructor(element: any, options?: any);
|
|
4181
|
+
_updateBtnAria(): void;
|
|
4182
|
+
_updateHdrAria(): void;
|
|
4183
|
+
_updateLbxAria(): void;
|
|
4088
4184
|
/**
|
|
4089
4185
|
* Gets or sets the aria-label attribute of {@link Menu} element.
|
|
4090
4186
|
*
|
|
@@ -4211,6 +4307,22 @@ export declare class Menu extends ComboBox {
|
|
|
4211
4307
|
* ```
|
|
4212
4308
|
*/
|
|
4213
4309
|
isButton: boolean;
|
|
4310
|
+
/**
|
|
4311
|
+
* Gets or sets a value that indicates whether the menu should remain open
|
|
4312
|
+
* after the user selects an item.
|
|
4313
|
+
*
|
|
4314
|
+
* When this property is set to **true**, the menu remains open after an item
|
|
4315
|
+
* is clicked, allowing users to perform multiple selections or execute
|
|
4316
|
+
* consecutive commands without having to reopen the menu.
|
|
4317
|
+
*
|
|
4318
|
+
* When set to **false** (the default), the menu automatically closes as soon
|
|
4319
|
+
* as an item is selected, which aligns with the standard behavior of most
|
|
4320
|
+
* dropdown or context menus.
|
|
4321
|
+
*
|
|
4322
|
+
* This property is useful in scenarios where continuous user interaction with
|
|
4323
|
+
* the menu is required。
|
|
4324
|
+
*/
|
|
4325
|
+
keepOpen: boolean;
|
|
4214
4326
|
/**
|
|
4215
4327
|
* Gets or sets the element that owns this {@link Menu}.
|
|
4216
4328
|
*
|
|
@@ -4284,13 +4396,17 @@ export declare class Menu extends ComboBox {
|
|
|
4284
4396
|
onItemClicked(e?: EventArgs): void;
|
|
4285
4397
|
refresh(fullUpdate?: boolean): void;
|
|
4286
4398
|
onIsDroppedDownChanged(e?: EventArgs): void;
|
|
4399
|
+
private _restoreSelectedItem;
|
|
4287
4400
|
_updateHoverEvents(): void;
|
|
4288
4401
|
_getSubItems(item: any): any[];
|
|
4289
4402
|
_formatMenuItem(s: ListBox, e: FormatItemEventArgs): void;
|
|
4290
4403
|
protected _keydown(e: KeyboardEvent): void;
|
|
4404
|
+
_afterOpenDropdownByDownArrow(): void;
|
|
4291
4405
|
protected _dropDownClick(e: MouseEvent): void;
|
|
4406
|
+
private _closeSubMenuAndFocusOwner;
|
|
4292
4407
|
private _showSubMenu;
|
|
4293
4408
|
private _raiseCommand;
|
|
4409
|
+
private _focusMenuOwner;
|
|
4294
4410
|
private _getCommand;
|
|
4295
4411
|
private _getCommandParm;
|
|
4296
4412
|
private _executeCommand;
|
|
@@ -4303,6 +4419,15 @@ export declare class Menu extends ComboBox {
|
|
|
4303
4419
|
private _hoverLeave;
|
|
4304
4420
|
_setIsDisabled(value: boolean): void;
|
|
4305
4421
|
_setTabOrder(value: number): void;
|
|
4422
|
+
protected _getRtlStates(): boolean;
|
|
4423
|
+
/**
|
|
4424
|
+
* Disposes of the control and all its resources.
|
|
4425
|
+
*
|
|
4426
|
+
* Calling the {@link dispose} method is important in applications that create
|
|
4427
|
+
* and remove controls dynamically. Failing to dispose of the controls may
|
|
4428
|
+
* cause memory leaks.
|
|
4429
|
+
*/
|
|
4430
|
+
dispose(): void;
|
|
4306
4431
|
}
|
|
4307
4432
|
/**
|
|
4308
4433
|
* The {@link InputTime} control allows users to enter times using any format
|
|
@@ -4446,7 +4571,7 @@ export declare class InputTime extends ComboBox {
|
|
|
4446
4571
|
protected _keydown(e: KeyboardEvent): void;
|
|
4447
4572
|
protected _updateTimeValue(step: number, specialChars: any, actualFormat: string): void;
|
|
4448
4573
|
private _reselectText;
|
|
4449
|
-
protected _commitText(): void;
|
|
4574
|
+
protected _commitText(noFocus?: boolean, shouldInvalid?: boolean): void;
|
|
4450
4575
|
protected _copy(key: string, value: any): boolean;
|
|
4451
4576
|
getAriaLabelForScreenReader(): any;
|
|
4452
4577
|
_input(e: Event): void;
|
|
@@ -4546,6 +4671,31 @@ export declare class InputDateTime extends InputDate {
|
|
|
4546
4671
|
protected _keydown(e: KeyboardEvent): void;
|
|
4547
4672
|
protected _updateDateTimeValue(step: number, specialChars: any, actualFormat: string): void;
|
|
4548
4673
|
protected _commitText(noFocus?: boolean, shouldInvalid?: boolean): void;
|
|
4674
|
+
_updateTbxAria(): void;
|
|
4675
|
+
/**
|
|
4676
|
+
* Gets or sets the action to perform when the TAB key is pressed.
|
|
4677
|
+
*
|
|
4678
|
+
* The default setting for this property is {@link TabKeyAction.CloseAndMoveFocus},
|
|
4679
|
+
* which provides standard form navigation behavior by:
|
|
4680
|
+
* - Closing the dropdown (if open)
|
|
4681
|
+
* - Moving focus to the next focusable element
|
|
4682
|
+
*
|
|
4683
|
+
* For specialized cases, you can set this to {@link TabKeyAction.CloseAndKeepFocus}
|
|
4684
|
+
* to maintain focus on the control after closing the dropdown.
|
|
4685
|
+
*
|
|
4686
|
+
* This setting is particularly useful for controlling accessibility behavior
|
|
4687
|
+
* and keyboard navigation flow in form controls.
|
|
4688
|
+
*
|
|
4689
|
+
* Example:
|
|
4690
|
+
* ```typescript
|
|
4691
|
+
* // Change TAB key behavior
|
|
4692
|
+
* dropDown.keyActionTab = TabKeyAction.CloseAndMoveFocus;
|
|
4693
|
+
* ```
|
|
4694
|
+
*/
|
|
4695
|
+
keyActionTab: TabKeyAction;
|
|
4696
|
+
private _setDropDownByEvent;
|
|
4697
|
+
_updateBtnAria(): void;
|
|
4698
|
+
private inputDateTimeIsDroppedDownChanged;
|
|
4549
4699
|
}
|
|
4550
4700
|
/**
|
|
4551
4701
|
* Represents a method that returns data items asynchronously as the user types.
|
|
@@ -4740,6 +4890,7 @@ export declare class MultiAutoComplete extends AutoComplete {
|
|
|
4740
4890
|
private _wjTpl;
|
|
4741
4891
|
private _wjInput;
|
|
4742
4892
|
private _helperInput;
|
|
4893
|
+
private _screenReaderHelper;
|
|
4743
4894
|
private _maxSelItems;
|
|
4744
4895
|
private _lastInputValue;
|
|
4745
4896
|
private _selPath;
|
|
@@ -4747,6 +4898,8 @@ export declare class MultiAutoComplete extends AutoComplete {
|
|
|
4747
4898
|
static _clsActive: string;
|
|
4748
4899
|
static _ctrlTemplate: string;
|
|
4749
4900
|
_inputElementAriaLabel: string;
|
|
4901
|
+
_helperInputElementAriaLabel: string;
|
|
4902
|
+
_ariaLabelledby: string;
|
|
4750
4903
|
/**
|
|
4751
4904
|
* Gets or sets the template used to instantiate {@link MultiAutoComplete} control.
|
|
4752
4905
|
*/
|
|
@@ -4779,6 +4932,10 @@ export declare class MultiAutoComplete extends AutoComplete {
|
|
|
4779
4932
|
* selected.
|
|
4780
4933
|
*/
|
|
4781
4934
|
selectedItems: any[];
|
|
4935
|
+
/**
|
|
4936
|
+
* Gets or sets the aria-labelledby attribute of input element.
|
|
4937
|
+
*/
|
|
4938
|
+
ariaLabelledBy: string;
|
|
4782
4939
|
/**
|
|
4783
4940
|
* Occurs when the value of the {@link selectedItems} property changes.
|
|
4784
4941
|
*/
|
|
@@ -4793,6 +4950,7 @@ export declare class MultiAutoComplete extends AutoComplete {
|
|
|
4793
4950
|
protected _updateState(): void;
|
|
4794
4951
|
protected _keyup(e: KeyboardEvent): void;
|
|
4795
4952
|
private _addHelperInput;
|
|
4953
|
+
private _addScreenReaderHelper;
|
|
4796
4954
|
private _refreshHeader;
|
|
4797
4955
|
private _insertToken;
|
|
4798
4956
|
private _updateMaxItems;
|