@mescius/wijmo.input 5.20251.41-nightly.d20250710.t180956 → 5.20251.41-nightly.d20250715.t181602
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 +73 -46
- 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.20251.41-nightly.
|
|
3
|
+
* Wijmo Library 5.20251.41-nightly.d20250715.t181602
|
|
4
4
|
* https://developer.mescius.com/wijmo
|
|
5
5
|
*
|
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
@@ -510,6 +510,15 @@ export declare class InputMask extends Control {
|
|
|
510
510
|
_updateInputAriaLabel(): void;
|
|
511
511
|
getAriaLabelForScreenReader(): any;
|
|
512
512
|
}
|
|
513
|
+
/**
|
|
514
|
+
* Specifies constants that define the action to be performed when the TAB key is pressed.
|
|
515
|
+
*/
|
|
516
|
+
export declare enum ColorPickerTabKeyAction {
|
|
517
|
+
/** No special action (let the browser handle the key). */
|
|
518
|
+
None = 0,
|
|
519
|
+
/** All buttons in the color picker can be selected using the tab key. */
|
|
520
|
+
All = 1
|
|
521
|
+
}
|
|
513
522
|
/**
|
|
514
523
|
* The {@link ColorPicker} control allows users to select a color by clicking
|
|
515
524
|
* on panels to adjust color channels (hue, saturation, brightness, alpha).
|
|
@@ -534,7 +543,11 @@ export declare class ColorPicker extends Control {
|
|
|
534
543
|
_ePal: HTMLElement;
|
|
535
544
|
_ePreview: HTMLElement;
|
|
536
545
|
_eText: HTMLElement;
|
|
546
|
+
_ePalMainFirst: HTMLElement;
|
|
547
|
+
_ePalShadeFirst: HTMLElement;
|
|
537
548
|
_htDown: Element;
|
|
549
|
+
_ariaLabel: string;
|
|
550
|
+
private _keyActionTab;
|
|
538
551
|
static _ctrlTemplate: string;
|
|
539
552
|
/**
|
|
540
553
|
* Gets or sets the template used to instantiate {@link ColorPicker} controls.
|
|
@@ -591,6 +604,20 @@ export declare class ColorPicker extends Control {
|
|
|
591
604
|
* No exceptions are thrown in these cases.
|
|
592
605
|
*/
|
|
593
606
|
palette: string[];
|
|
607
|
+
/**
|
|
608
|
+
* Gets or sets the aria-label attribute of {@link ColorPicker} host element.
|
|
609
|
+
*
|
|
610
|
+
* The default value for this property is "Color Picker".
|
|
611
|
+
*/
|
|
612
|
+
ariaLabel: string;
|
|
613
|
+
/**
|
|
614
|
+
* Gets or sets the action to perform when the Tab key is pressed.
|
|
615
|
+
*
|
|
616
|
+
* The default setting for this property is {@link ColorPickerTabKeyAction.None},
|
|
617
|
+
* This means that pressing the tab key will have no effect and follow the browser's default behavior.
|
|
618
|
+
*/
|
|
619
|
+
keyActionTab: ColorPickerTabKeyAction;
|
|
620
|
+
_setTabOrder(value: number): void;
|
|
594
621
|
/**
|
|
595
622
|
* Occurs when the value of the {@link value} property changes, either
|
|
596
623
|
* as a result of user actions or by assignment in code.
|
|
@@ -608,6 +635,16 @@ export declare class ColorPicker extends Control {
|
|
|
608
635
|
private _makePalEntry;
|
|
609
636
|
private _updatePanels;
|
|
610
637
|
private _getTargetPanel;
|
|
638
|
+
protected getActualTabIndex(): string;
|
|
639
|
+
private _updateTabIndex;
|
|
640
|
+
protected _setIsDisabled(value: boolean): void;
|
|
641
|
+
private _updateAriaValues;
|
|
642
|
+
private _keydown;
|
|
643
|
+
private _isInColorPalette;
|
|
644
|
+
private _handleColorNavigation;
|
|
645
|
+
private _handleHSBNavigation;
|
|
646
|
+
_refreshSelection(): void;
|
|
647
|
+
private _handleAlphaNavigation;
|
|
611
648
|
}
|
|
612
649
|
/**
|
|
613
650
|
* The {@link CollectionViewNavigator} control provides a UI for navigating
|
|
@@ -1960,7 +1997,6 @@ export declare class Calendar extends Control {
|
|
|
1960
1997
|
private _isSameDay;
|
|
1961
1998
|
private _isSameMonth;
|
|
1962
1999
|
private _dateViewContainsFocus;
|
|
1963
|
-
getFocusableElements(): HTMLElement[];
|
|
1964
2000
|
private _updateMonthButtonAria;
|
|
1965
2001
|
private _isDayValid;
|
|
1966
2002
|
readonly cancelButtonClicked: Event<Calendar, EventArgs>;
|
|
@@ -1980,6 +2016,7 @@ export declare class Calendar extends Control {
|
|
|
1980
2016
|
protected _setIsDisabled(value: boolean): void;
|
|
1981
2017
|
private updateCalendarsTabindex;
|
|
1982
2018
|
private setFocusModeValue;
|
|
2019
|
+
private _getCalendarsHostElements;
|
|
1983
2020
|
}
|
|
1984
2021
|
/**
|
|
1985
2022
|
* Specifies constants that define the action to perform when the
|
|
@@ -2037,6 +2074,7 @@ export declare class DropDown extends Control {
|
|
|
2037
2074
|
_isInvalidInputCancelled: boolean;
|
|
2038
2075
|
_keyActionDownArrow: KeyAction;
|
|
2039
2076
|
_keyActionUpArrow: KeyAction;
|
|
2077
|
+
_keyActionTab: TabKeyAction;
|
|
2040
2078
|
static _ctrlTemplate: string;
|
|
2041
2079
|
/**
|
|
2042
2080
|
* Gets or sets the template used to instantiate {@link DropDown} controls.
|
|
@@ -2163,6 +2201,27 @@ export declare class DropDown extends Control {
|
|
|
2163
2201
|
* without changing the current selection.
|
|
2164
2202
|
*/
|
|
2165
2203
|
keyActionUpArrow: KeyAction;
|
|
2204
|
+
/**
|
|
2205
|
+
* Gets or sets the action to perform when the TAB key is pressed.
|
|
2206
|
+
*
|
|
2207
|
+
* The default setting for this property is {@link TabKeyAction.CloseAndMoveFocus},
|
|
2208
|
+
* which provides standard form navigation behavior by:
|
|
2209
|
+
* - Closing the dropdown (if open)
|
|
2210
|
+
* - Moving focus to the next focusable element
|
|
2211
|
+
*
|
|
2212
|
+
* For specialized cases, you can set this to {@link TabKeyAction.CloseAndKeepFocus}
|
|
2213
|
+
* to maintain focus on the control after closing the dropdown.
|
|
2214
|
+
*
|
|
2215
|
+
* This setting is particularly useful for controlling accessibility behavior
|
|
2216
|
+
* and keyboard navigation flow in form controls.
|
|
2217
|
+
*
|
|
2218
|
+
* Example:
|
|
2219
|
+
* ```typescript
|
|
2220
|
+
* // Change TAB key behavior
|
|
2221
|
+
* dropDown.keyActionTab = TabKeyAction.CloseAndMoveFocus;
|
|
2222
|
+
* ```
|
|
2223
|
+
*/
|
|
2224
|
+
keyActionTab: TabKeyAction;
|
|
2166
2225
|
/**
|
|
2167
2226
|
* Sets the focus to the control and selects all its content.
|
|
2168
2227
|
*/
|
|
@@ -2910,7 +2969,6 @@ export declare class InputDate extends DropDown {
|
|
|
2910
2969
|
protected _currentInput: string;
|
|
2911
2970
|
static _ctrlTemplate: string;
|
|
2912
2971
|
_ariaLabelledby: string;
|
|
2913
|
-
_keyActionTab: TabKeyAction;
|
|
2914
2972
|
/**
|
|
2915
2973
|
* Gets or sets the template used to instantiate {@link InputDate} control.
|
|
2916
2974
|
*/
|
|
@@ -3327,27 +3385,6 @@ export declare class InputDate extends DropDown {
|
|
|
3327
3385
|
ariaLabelledBy: string;
|
|
3328
3386
|
protected _updateInputAriaLabel(): void;
|
|
3329
3387
|
getAriaLabelForScreenReader(): any;
|
|
3330
|
-
/**
|
|
3331
|
-
* Gets or sets the action to perform when the TAB key is pressed.
|
|
3332
|
-
*
|
|
3333
|
-
* The default setting for this property is {@link TabKeyAction.CloseAndMoveFocus},
|
|
3334
|
-
* which provides standard form navigation behavior by:
|
|
3335
|
-
* - Closing the dropdown (if open)
|
|
3336
|
-
* - Moving focus to the next focusable element
|
|
3337
|
-
*
|
|
3338
|
-
* For specialized cases, you can set this to {@link TabKeyAction.CloseAndKeepFocus}
|
|
3339
|
-
* to maintain focus on the control after closing the dropdown.
|
|
3340
|
-
*
|
|
3341
|
-
* This setting is particularly useful for controlling accessibility behavior
|
|
3342
|
-
* and keyboard navigation flow in form controls.
|
|
3343
|
-
*
|
|
3344
|
-
* Example:
|
|
3345
|
-
* ```typescript
|
|
3346
|
-
* // Change TAB key behavior
|
|
3347
|
-
* inputDate.keyActionTab = TabKeyAction.CloseAndMoveFocus;
|
|
3348
|
-
* ```
|
|
3349
|
-
*/
|
|
3350
|
-
keyActionTab: TabKeyAction;
|
|
3351
3388
|
_shouldRaiseInvalidInput(shouldInvalid: boolean): boolean;
|
|
3352
3389
|
}
|
|
3353
3390
|
/**
|
|
@@ -3396,6 +3433,8 @@ export declare class InputColor extends DropDown {
|
|
|
3396
3433
|
private _colorPicker;
|
|
3397
3434
|
private _value;
|
|
3398
3435
|
private _textInitialized;
|
|
3436
|
+
_ariaLabelledby: string;
|
|
3437
|
+
protected _inputAriaLabel: string;
|
|
3399
3438
|
static _ctrlTemplate: string;
|
|
3400
3439
|
/**
|
|
3401
3440
|
* Gets or sets the template used to instantiate {@link InputColor} control.
|
|
@@ -3456,6 +3495,14 @@ export declare class InputColor extends DropDown {
|
|
|
3456
3495
|
* Gets a reference to the {@link ColorPicker} control shown in the drop-down.
|
|
3457
3496
|
*/
|
|
3458
3497
|
readonly colorPicker: ColorPicker;
|
|
3498
|
+
/**
|
|
3499
|
+
* Gets or sets the aria-labelledby attribute of input color element.
|
|
3500
|
+
*/
|
|
3501
|
+
ariaLabelledBy: string;
|
|
3502
|
+
/**
|
|
3503
|
+
* Gets or sets the colorPicker's keyActionTab property.
|
|
3504
|
+
*/
|
|
3505
|
+
colorPickerKeyActionTab: ColorPickerTabKeyAction;
|
|
3459
3506
|
/**
|
|
3460
3507
|
* Occurs when the value of the {@link value} property changes, either
|
|
3461
3508
|
* as a result of user actions or by assignment in code.
|
|
@@ -3471,6 +3518,7 @@ export declare class InputColor extends DropDown {
|
|
|
3471
3518
|
protected _commitText(): void;
|
|
3472
3519
|
protected _copy(key: string, value: any): boolean;
|
|
3473
3520
|
getAriaLabelForScreenReader(): any;
|
|
3521
|
+
protected _updateInputAriaLabel(): void;
|
|
3474
3522
|
}
|
|
3475
3523
|
/**
|
|
3476
3524
|
* The {@link ComboBox} control allows users to pick strings from lists.
|
|
@@ -3525,7 +3573,6 @@ export declare class ComboBox<T = any> extends DropDown {
|
|
|
3525
3573
|
_selItems: any;
|
|
3526
3574
|
_oldFilter: any;
|
|
3527
3575
|
static _ctrlTemplate: string;
|
|
3528
|
-
_keyActionTab: TabKeyAction;
|
|
3529
3576
|
_keyActionPrintCharacters: KeyAction;
|
|
3530
3577
|
_inputElementAriaLabel: string;
|
|
3531
3578
|
_ariaLabelledby: string;
|
|
@@ -3730,27 +3777,6 @@ export declare class ComboBox<T = any> extends DropDown {
|
|
|
3730
3777
|
* This is useful for quick selection in known-value scenarios.
|
|
3731
3778
|
*/
|
|
3732
3779
|
keyActionPrintCharacters: KeyAction;
|
|
3733
|
-
/**
|
|
3734
|
-
* Gets or sets the action to perform when the TAB key is pressed.
|
|
3735
|
-
*
|
|
3736
|
-
* The default setting for this property is {@link TabKeyAction.CloseAndMoveFocus},
|
|
3737
|
-
* which provides standard form navigation behavior by:
|
|
3738
|
-
* - Closing the dropdown (if open)
|
|
3739
|
-
* - Moving focus to the next focusable element
|
|
3740
|
-
*
|
|
3741
|
-
* For specialized cases, you can set this to {@link TabKeyAction.CloseAndKeepFocus}
|
|
3742
|
-
* to maintain focus on the control after closing the dropdown.
|
|
3743
|
-
*
|
|
3744
|
-
* This setting is particularly useful for controlling accessibility behavior
|
|
3745
|
-
* and keyboard navigation flow in form controls.
|
|
3746
|
-
*
|
|
3747
|
-
* Example:
|
|
3748
|
-
* ```typescript
|
|
3749
|
-
* // Change TAB key behavior
|
|
3750
|
-
* comboBox.keyActionTab = TabKeyAction.CloseAndMoveFocus;
|
|
3751
|
-
* ```
|
|
3752
|
-
*/
|
|
3753
|
-
keyActionTab: TabKeyAction;
|
|
3754
3780
|
/**
|
|
3755
3781
|
* Gets or sets the aria-labelledby attribute of input element.
|
|
3756
3782
|
*/
|
|
@@ -3827,6 +3853,7 @@ export declare class ComboBox<T = any> extends DropDown {
|
|
|
3827
3853
|
private _getSelEnd;
|
|
3828
3854
|
private _setSelRange;
|
|
3829
3855
|
getAriaLabelForScreenReader(): any;
|
|
3856
|
+
_updateDropDownWhenInput(): void;
|
|
3830
3857
|
}
|
|
3831
3858
|
/**
|
|
3832
3859
|
* Represents a method that returns a string used as a header for a
|