@grapecity/wijmo.input 5.20241.9 → 5.20242.21

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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20241.9
3
+ * Wijmo Library 5.20242.21
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -1072,7 +1072,7 @@ export declare class MultiSelectListBox<T = any> extends Control {
1072
1072
  * The default value for this property is a very big number, meaning virtualization is
1073
1073
  * disabled. To enable virtualization, set its value to 0 or a positive number.
1074
1074
  *
1075
- * For more detals, please see the {@link ListBox.virtializationThreshold}
1075
+ * For more detals, please see the {@link ListBox.virtualizationThreshold}
1076
1076
  * property.
1077
1077
  */
1078
1078
  virtualizationThreshold: number;
@@ -2554,6 +2554,23 @@ export declare class PopupBoundsChangingEventArgs extends CancelEventArgs {
2554
2554
  */
2555
2555
  readonly bounds: Rect;
2556
2556
  }
2557
+ /**
2558
+ * Provides arguments for {@link InputDate}'s invalidInput event.
2559
+ */
2560
+ export declare class InputDateEventArgs extends CancelEventArgs {
2561
+ _isUserInput: boolean;
2562
+ /**
2563
+ * Initializes a new instance of the {@link InputDateEventArgs} class.
2564
+ *
2565
+ * @param isUserInput boolean value to distinguish user input from value set in code
2566
+ */
2567
+ constructor(isUserInput: boolean);
2568
+ /**
2569
+ * Gets a value that determines whether invalid value was
2570
+ * provided by user or set in code
2571
+ */
2572
+ readonly isUserInput: boolean;
2573
+ }
2557
2574
  /**
2558
2575
  * The {@link InputDate} control allows users to type in dates using any format
2559
2576
  * supported by the {@link Globalize} class, or to pick dates from a drop-down
@@ -2601,6 +2618,9 @@ export declare class InputDate extends DropDown {
2601
2618
  private _clicked;
2602
2619
  private _rangeChanged;
2603
2620
  private _textInitialized;
2621
+ private _previousText;
2622
+ private _keepInvalidText;
2623
+ protected _currentInput: string;
2604
2624
  /**
2605
2625
  * Initializes a new instance of the {@link InputDate} class.
2606
2626
  *
@@ -2608,6 +2628,7 @@ export declare class InputDate extends DropDown {
2608
2628
  * @param options The JavaScript object containing initialization data for the control.
2609
2629
  */
2610
2630
  constructor(element: any, options?: any);
2631
+ protected _mouseWheel(e: WheelEvent): void;
2611
2632
  /**
2612
2633
  * Gets or sets the currently selected date.
2613
2634
  *
@@ -2644,6 +2665,16 @@ export declare class InputDate extends DropDown {
2644
2665
  * there is no maximum value for range lengths.
2645
2666
  */
2646
2667
  rangeMax: number;
2668
+ /**
2669
+ * Gets or sets whether to allow invalid text
2670
+ *
2671
+ * This property is used only when invalid text is set through
2672
+ * {@link text} property in code and does not affect the behavior
2673
+ * when invalid value is set by the end user
2674
+ *
2675
+ * The default value for this property is false.
2676
+ */
2677
+ keepInvalidText: boolean;
2647
2678
  /**
2648
2679
  * Gets or sets the text shown on the control.
2649
2680
  */
@@ -2963,8 +2994,11 @@ export declare class InputDate extends DropDown {
2963
2994
  onIsDroppedDownChanging(e: CancelEventArgs): boolean;
2964
2995
  onIsDroppedDownChanged(e?: EventArgs): void;
2965
2996
  _updateDropDown(): void;
2997
+ onGotFocus(e?: EventArgs): void;
2966
2998
  protected _keydown(e: KeyboardEvent): void;
2967
2999
  protected _expandSelection(): void;
3000
+ protected _updateDateTimeValue(step: number, specialChars: any, actualFormat: string): void;
3001
+ protected _reselectText(specialChars: string[], currentPos: number): void;
2968
3002
  _refreshText(): void;
2969
3003
  protected _selectAll(): void;
2970
3004
  _closeOnChange(): void;
@@ -2972,8 +3006,10 @@ export declare class InputDate extends DropDown {
2972
3006
  _clamp(value: Date): Date;
2973
3007
  protected _getText(): string;
2974
3008
  protected _commitText(noFocus?: boolean): void;
3009
+ protected _triggerInvalidInputEvent(cancelEvtArgs: InputDateEventArgs, val: Date, rangeEnd?: Date): void;
3010
+ protected _nullValueInvalidInput(cancelEvtArgs: InputDateEventArgs): void;
2975
3011
  protected _fromDateTime(value: Date): Date;
2976
- private _canChangeValue;
3012
+ protected _canChangeValue(): boolean;
2977
3013
  protected _isValidDate(value: Date): boolean;
2978
3014
  private _getRanges;
2979
3015
  private _updateRangeSelection;
@@ -3001,6 +3037,9 @@ export declare class InputDateRange extends InputDate {
3001
3037
  */
3002
3038
  constructor(element: any, options?: any);
3003
3039
  selectionMode: DateSelectionMode;
3040
+ protected _mouseWheel(e: WheelEvent): void;
3041
+ onGotFocus(e?: EventArgs): void;
3042
+ protected _keydown(e: KeyboardEvent): void;
3004
3043
  }
3005
3044
  /**
3006
3045
  * The {@link InputColor} control allows users to select colors by typing in
@@ -3037,6 +3076,14 @@ export declare class InputColor extends DropDown {
3037
3076
  * Gets or sets the text shown on the control.
3038
3077
  */
3039
3078
  text: string;
3079
+ /**
3080
+ * Gets or sets the "type" attribute of the HTML input element hosted
3081
+ * by the control.
3082
+ *
3083
+ * Use this property to change the default setting if the default does not work well
3084
+ * for the current culture, device, or application. In those cases, try changing
3085
+ * the value to "tel" or "text"
3086
+ */
3040
3087
  inputType: string;
3041
3088
  /**
3042
3089
  * Gets or sets a value indicating whether the {@link ColorPicker}
@@ -3119,6 +3166,7 @@ export declare class ComboBox<T = any> extends DropDown {
3119
3166
  _delKey: number;
3120
3167
  _draggingText: boolean;
3121
3168
  _composing: boolean;
3169
+ _textIsComposing: string;
3122
3170
  _settingText: boolean;
3123
3171
  _pathHdr: Binding;
3124
3172
  _bsCollapse: boolean;
@@ -3160,7 +3208,7 @@ export declare class ComboBox<T = any> extends DropDown {
3160
3208
  * The default value for this property is a very big number, meaning virtualization is
3161
3209
  * disabled. To enable virtualization, set its value to 0 or a positive number.
3162
3210
  *
3163
- * For more detals, please see the {@link ListBox.virtializationThreshold}
3211
+ * For more detals, please see the {@link ListBox.virtualizationThreshold}
3164
3212
  * property.
3165
3213
  */
3166
3214
  virtualizationThreshold: number;
@@ -3360,7 +3408,7 @@ export declare class ComboBox<T = any> extends DropDown {
3360
3408
  protected _createDropDown(): void;
3361
3409
  protected _wheel(e: WheelEvent): void;
3362
3410
  protected _dropDownClick(e: MouseEvent): void;
3363
- protected _setText(text: string, fullMatch: boolean): void;
3411
+ protected _setText(text: string, fullMatch: boolean, isDateTime?: boolean): void;
3364
3412
  protected _findNext(search: string, step: number, start?: number): number;
3365
3413
  protected _keydown(e: KeyboardEvent): void;
3366
3414
  protected _input(e: Event): void;
@@ -3550,7 +3598,7 @@ export declare class MultiSelect extends ComboBox {
3550
3598
  *
3551
3599
  * For details, please see the {@link Menu.command} property.
3552
3600
  */
3553
- interface ICommand {
3601
+ export interface ICommand {
3554
3602
  /**
3555
3603
  * Executes the command with a given parameter.
3556
3604
  *
@@ -3613,6 +3661,8 @@ export declare class Menu extends ComboBox {
3613
3661
  _hoverEnterBnd: any;
3614
3662
  _hoverLeaveBnd: any;
3615
3663
  _hoverOverBnd: any;
3664
+ _ariaLabel: string;
3665
+ _aFEnabledItem: boolean;
3616
3666
  static _evtHover: MouseEvent;
3617
3667
  /**
3618
3668
  * Initializes a new instance of the {@link Menu} class.
@@ -3621,6 +3671,19 @@ export declare class Menu extends ComboBox {
3621
3671
  * @param options The JavaScript object containing initialization data for the control.
3622
3672
  */
3623
3673
  constructor(element: any, options?: any);
3674
+ /**
3675
+ * Gets or sets the aria-label attribute of {@link Menu} element.
3676
+ *
3677
+ * The default value for this property is "Menu".
3678
+ */
3679
+ ariaLabel: string;
3680
+ /**
3681
+ * Gets or sets a value that determines whether the first enabled item is automatically focused/selected in the {@link dropDown}.
3682
+ * Used to add provide appropriate navigation when accessibility tools are used.
3683
+ *
3684
+ * The default value for this property is false.
3685
+ */
3686
+ autoSelectOnFocus: boolean;
3624
3687
  /**
3625
3688
  * Gets or sets the HTML text shown in the {@link Menu} element.
3626
3689
  *
@@ -3957,7 +4020,12 @@ export declare class InputTime extends ComboBox {
3957
4020
  protected _updateInputSelection(start: number): void;
3958
4021
  protected _updateItems(): void;
3959
4022
  private _getTime;
4023
+ protected _getText(): string;
4024
+ protected _canChangeValue(): boolean;
4025
+ protected getSeconds(val: Date): number;
3960
4026
  protected _keydown(e: KeyboardEvent): void;
4027
+ protected _updateTimeValue(step: number, specialChars: any, actualFormat: string): void;
4028
+ private _reselectText;
3961
4029
  protected _commitText(): void;
3962
4030
  protected _copy(key: string, value: any): boolean;
3963
4031
  }
@@ -4050,6 +4118,10 @@ export declare class InputDateTime extends InputDate {
4050
4118
  protected _updateBtn(): void;
4051
4119
  protected _setDropdown(e: HTMLElement): boolean;
4052
4120
  _updateDropDown(): void;
4121
+ protected _mouseWheel(e: WheelEvent): void;
4122
+ protected _keydown(e: KeyboardEvent): void;
4123
+ protected _updateDateTimeValue(step: number, specialChars: any, actualFormat: string): void;
4124
+ protected _commitText(): void;
4053
4125
  }
4054
4126
  /**
4055
4127
  * Represents a method that returns data items asynchronously as the user types.
@@ -4095,6 +4167,7 @@ export declare class AutoComplete extends ComboBox {
4095
4167
  private _itemCount;
4096
4168
  private _beginsWith;
4097
4169
  private _delay;
4170
+ _selItems: any;
4098
4171
  private _toSearch;
4099
4172
  private _query;
4100
4173
  private _rxSrch;
@@ -4102,6 +4175,7 @@ export declare class AutoComplete extends ComboBox {
4102
4175
  private _inCallback;
4103
4176
  private _srchProps;
4104
4177
  private _oldSelectedIndex;
4178
+ _pendingSearchFn: any;
4105
4179
  /**
4106
4180
  * Initializes a new instance of the {@link AutoComplete} class.
4107
4181
  *
@@ -4204,8 +4278,13 @@ export declare class AutoComplete extends ComboBox {
4204
4278
  */
4205
4279
  onSelectedIndexChanged(e?: EventArgs): void;
4206
4280
  _keydown(e: KeyboardEvent): void;
4281
+ private _isBlurInput;
4282
+ protected _commitText(noFocus?: boolean): void;
4207
4283
  _setText(text: string | null): void;
4208
4284
  onLostFocus(e?: EventArgs): void;
4285
+ private _ctrlReset;
4286
+ onGotFocus(e?: EventArgs): void;
4287
+ reset(): void;
4209
4288
  _itemSourceFunctionCallback(result: any[]): void;
4210
4289
  onIsDroppedDownChanged(e?: EventArgs): void;
4211
4290
  protected _updateItems(): void;
@@ -4228,7 +4307,6 @@ export declare class MultiAutoComplete extends AutoComplete {
4228
4307
  private _wjTpl;
4229
4308
  private _wjInput;
4230
4309
  private _helperInput;
4231
- private _selItems;
4232
4310
  private _maxSelItems;
4233
4311
  private _lastInputValue;
4234
4312
  private _selPath;