@grapecity/wijmo.input 5.20252.42 → 5.20261.48

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.20252.42
3
+ * Wijmo Library 5.20261.48
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -341,7 +341,11 @@ export declare class InputNumber extends Control {
341
341
  private _increment;
342
342
  protected _updateBtn(): void;
343
343
  _setText(text: string, truncate?: boolean, forceDelete?: boolean): void;
344
+ private _handleDecimalInput;
345
+ protected _beforeinput(e: any): void;
344
346
  protected _keypress(e: KeyboardEvent): void;
347
+ private _handlePlusSign;
348
+ private _handleMinusSign;
345
349
  protected _keydown(e: KeyboardEvent): void;
346
350
  protected _input(): void;
347
351
  /**
@@ -639,7 +643,7 @@ export declare class ColorPicker extends Control {
639
643
  onValueChanged(e?: EventArgs): void;
640
644
  protected _mouseDown(e: MouseEvent): void;
641
645
  protected _mouseMove(e: MouseEvent): void;
642
- protected _mouseUp(e: MouseEvent): void;
646
+ protected _mouseUp(_e: MouseEvent): void;
643
647
  private _updateColor;
644
648
  private _updatePalette;
645
649
  private _makePalEntry;
@@ -748,11 +752,11 @@ export declare class CollectionViewNavigator<T = any> extends Control {
748
752
  * Gets or sets a value that determines whether the control is disabled.
749
753
  *
750
754
  * Disabled controls cannot get mouse or keyboard events.
751
- */
755
+ */
752
756
  isDisabled: boolean;
753
757
  /**
754
758
  * Sets the focus to this control.
755
- */
759
+ */
756
760
  focus(): void;
757
761
  _update(): void;
758
762
  _currentChanged(): void;
@@ -763,6 +767,7 @@ export declare class CollectionViewNavigator<T = any> extends Control {
763
767
  protected _setTabOrder(value: number): void;
764
768
  _keydown(e: KeyboardEvent): void;
765
769
  protected _setIsDisabled(value: boolean): void;
770
+ _updateTabIndex(): void;
766
771
  }
767
772
  /**
768
773
  * Represents a method that formats an item for display in a
@@ -1204,6 +1209,13 @@ export declare class ListBox<T = any> extends Control {
1204
1209
  _isMenuItem(): boolean;
1205
1210
  _updateTabIndex(): void;
1206
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
+ */
1207
1219
  dispose(): void;
1208
1220
  }
1209
1221
  /**
@@ -1618,6 +1630,7 @@ export declare class Calendar extends Control {
1618
1630
  private _fmtDayTitle;
1619
1631
  static _DATE_KEY: string;
1620
1632
  static _ctrlTemplate: string;
1633
+ _sholudPreventFocusScroll: boolean;
1621
1634
  /**
1622
1635
  * Gets or sets the template used to instantiate {@link Calendar} controls.
1623
1636
  */
@@ -1941,6 +1954,8 @@ export declare class Calendar extends Control {
1941
1954
  * Occurs after the {@link displayMonth} property changes.
1942
1955
  */
1943
1956
  readonly displayMonthChanged: Event<Calendar, EventArgs>;
1957
+ readonly displayMonthChanging: Event<Calendar, EventArgs>;
1958
+ onDisplayMonthChanging(e?: EventArgs): void;
1944
1959
  /**
1945
1960
  * Raises the {@link displayMonthChanged} event.
1946
1961
  */
@@ -2040,7 +2055,10 @@ export declare class Calendar extends Control {
2040
2055
  updateConfirmationButtons(hostElement: HTMLElement): void;
2041
2056
  setFocusValueToFirstOrLastCalendar(isFirst: boolean): void;
2042
2057
  isCalendarDateCell(element: HTMLElement): boolean;
2058
+ isThisMainCalendar(): boolean;
2043
2059
  }
2060
+ export declare function softTouch(): any;
2061
+ export declare function getDragDropTouch(): any;
2044
2062
  /**
2045
2063
  * Specifies constants that define the action to perform when the
2046
2064
  * user clicks the input element in the control.
@@ -2099,6 +2117,8 @@ export declare class DropDown extends Control {
2099
2117
  _keyActionUpArrow: KeyAction;
2100
2118
  _keyActionTab: TabKeyAction;
2101
2119
  static _ctrlTemplate: string;
2120
+ _touchMove: boolean;
2121
+ _dropdownCausedScrollbar: boolean;
2102
2122
  /**
2103
2123
  * Gets or sets the template used to instantiate {@link DropDown} controls.
2104
2124
  */
@@ -2110,6 +2130,7 @@ export declare class DropDown extends Control {
2110
2130
  * @param options The JavaScript object containing initialization data for the control.
2111
2131
  */
2112
2132
  constructor(element: any, options?: any);
2133
+ _isTouchMoved(): boolean;
2113
2134
  /**
2114
2135
  * Gets or sets the text shown on the control.
2115
2136
  */
@@ -2291,16 +2312,16 @@ export declare class DropDown extends Control {
2291
2312
  private isHostVisible;
2292
2313
  protected _isHiddenEditor(): boolean;
2293
2314
  protected _keypress(e: KeyboardEvent): void;
2294
- protected _input(e: Event): void;
2315
+ protected _input(_e: Event): void;
2295
2316
  protected _btnclick(e: MouseEvent): void;
2296
- protected _setText(text: string, fullMatch: boolean, forceRevertInvalid?: boolean, clearTbxVal?: boolean): void;
2317
+ protected _setText(text: string, _fullMatch: boolean, forceRevertInvalid?: boolean, clearTbxVal?: boolean): void;
2297
2318
  protected _updateBtn(): void;
2298
2319
  _updateBtnAria(): void;
2299
2320
  protected _updateTbx(): void;
2300
2321
  _updateTbxAria(): void;
2301
2322
  _updateTbxAriaHaspopup(): void;
2302
2323
  protected _createDropDown(): void;
2303
- protected _commitText(noFocus?: boolean, shouldInvalid?: boolean): void;
2324
+ protected _commitText(_noFocus?: boolean, _shouldInvalid?: boolean): void;
2304
2325
  _updateDropDown(): void;
2305
2326
  _shouldRaiseInvalidInput(shouldInvalid: boolean): boolean;
2306
2327
  }
@@ -2908,6 +2929,13 @@ export declare class Popup extends Control {
2908
2929
  protected _validateAndHide(result: any): void;
2909
2930
  protected _updateAriaLabel(): void;
2910
2931
  protected _updateAriaLabelImp(oldLabels: any): void;
2932
+ /**
2933
+ * Disposes of the control and all its resources.
2934
+ *
2935
+ * Calling the {@link dispose} method is important in applications that create
2936
+ * and remove controls dynamically. Failing to dispose of the controls may
2937
+ * cause memory leaks.
2938
+ */
2911
2939
  dispose(): void;
2912
2940
  }
2913
2941
  /**
@@ -3377,6 +3405,7 @@ export declare class InputDate extends DropDown {
3377
3405
  * Raises the {@link rangeChanged} event.
3378
3406
  */
3379
3407
  onRangeChanged(e?: EventArgs): void;
3408
+ protected _getParsedValue(): Date;
3380
3409
  refresh(fullUpdate?: boolean): void;
3381
3410
  onIsDroppedDownChanging(e: CancelEventArgs): boolean;
3382
3411
  onIsDroppedDownChanged(e?: EventArgs): void;
@@ -3543,6 +3572,7 @@ export declare class InputColor extends DropDown {
3543
3572
  protected _createDropDown(): void;
3544
3573
  protected _keydown(e: KeyboardEvent): void;
3545
3574
  protected _commitText(): void;
3575
+ protected _changeAllValue(): void;
3546
3576
  protected _copy(key: string, value: any): boolean;
3547
3577
  getAriaLabelForScreenReader(): any;
3548
3578
  protected _updateInputAriaLabel(): void;
@@ -3827,6 +3857,7 @@ export declare class ComboBox<T = any> extends DropDown {
3827
3857
  * @return The index of the item, or -1 if not found.
3828
3858
  */
3829
3859
  indexOf(search: string, fullMatch: boolean, dry?: boolean): number;
3860
+ tryToFindSelectIndexByText(text: string): number;
3830
3861
  /**
3831
3862
  * Gets the {@link ListBox} control shown in the drop-down.
3832
3863
  */
@@ -3865,9 +3896,8 @@ export declare class ComboBox<T = any> extends DropDown {
3865
3896
  _findNextWhenIsEditableFalse(search: string, step: number, start?: number): number;
3866
3897
  protected _keydown(e: KeyboardEvent): void;
3867
3898
  _afterOpenDropdownByDownArrow(): void;
3868
- _input(e: Event): void;
3899
+ _input(_e: Event): void;
3869
3900
  _handleDragTextState(): void;
3870
- _handleComposingState(): void;
3871
3901
  _shouldOpenDropdown(): boolean;
3872
3902
  _handleIsEditableFalseInput(): void;
3873
3903
  _updateSelection(index: number, editStart: number): void;
@@ -4061,7 +4091,7 @@ export declare class MultiSelect extends ComboBox {
4061
4091
  _updateTbxAria(): void;
4062
4092
  isReadOnly: boolean;
4063
4093
  refresh(fullUpdate?: boolean): void;
4064
- protected _setText(text: string, fullMatch: boolean): void;
4094
+ protected _setText(_text: string, _fullMatch: boolean): void;
4065
4095
  protected _keydown(e: KeyboardEvent): void;
4066
4096
  protected _hasItems(): boolean;
4067
4097
  private _updateHeader;
@@ -4128,6 +4158,7 @@ export declare class Menu extends ComboBox {
4128
4158
  _defaultItem: any;
4129
4159
  _owner: HTMLElement;
4130
4160
  _isButton: boolean;
4161
+ _keepOpen: boolean;
4131
4162
  _openOnHover: boolean;
4132
4163
  _closeOnLeave: boolean;
4133
4164
  _toHover: any;
@@ -4281,6 +4312,22 @@ export declare class Menu extends ComboBox {
4281
4312
  * ```
4282
4313
  */
4283
4314
  isButton: boolean;
4315
+ /**
4316
+ * Gets or sets a value that indicates whether the menu should remain open
4317
+ * after the user selects an item.
4318
+ *
4319
+ * When this property is set to **true**, the menu remains open after an item
4320
+ * is clicked, allowing users to perform multiple selections or execute
4321
+ * consecutive commands without having to reopen the menu.
4322
+ *
4323
+ * When set to **false** (the default), the menu automatically closes as soon
4324
+ * as an item is selected, which aligns with the standard behavior of most
4325
+ * dropdown or context menus.
4326
+ *
4327
+ * This property is useful in scenarios where continuous user interaction with
4328
+ * the menu is required。
4329
+ */
4330
+ keepOpen: boolean;
4284
4331
  /**
4285
4332
  * Gets or sets the element that owns this {@link Menu}.
4286
4333
  *
@@ -4357,10 +4404,11 @@ export declare class Menu extends ComboBox {
4357
4404
  private _restoreSelectedItem;
4358
4405
  _updateHoverEvents(): void;
4359
4406
  _getSubItems(item: any): any[];
4360
- _formatMenuItem(s: ListBox, e: FormatItemEventArgs): void;
4407
+ _formatMenuItem(_s: ListBox, e: FormatItemEventArgs): void;
4361
4408
  protected _keydown(e: KeyboardEvent): void;
4362
4409
  _afterOpenDropdownByDownArrow(): void;
4363
4410
  protected _dropDownClick(e: MouseEvent): void;
4411
+ private _closeSubMenuAndFocusOwner;
4364
4412
  private _showSubMenu;
4365
4413
  private _raiseCommand;
4366
4414
  private _focusMenuOwner;
@@ -4376,6 +4424,14 @@ export declare class Menu extends ComboBox {
4376
4424
  private _hoverLeave;
4377
4425
  _setIsDisabled(value: boolean): void;
4378
4426
  _setTabOrder(value: number): void;
4427
+ protected _getRtlStates(): boolean;
4428
+ /**
4429
+ * Disposes of the control and all its resources.
4430
+ *
4431
+ * Calling the {@link dispose} method is important in applications that create
4432
+ * and remove controls dynamically. Failing to dispose of the controls may
4433
+ * cause memory leaks.
4434
+ */
4379
4435
  dispose(): void;
4380
4436
  }
4381
4437
  /**
@@ -4520,10 +4576,10 @@ export declare class InputTime extends ComboBox {
4520
4576
  protected _keydown(e: KeyboardEvent): void;
4521
4577
  protected _updateTimeValue(step: number, specialChars: any, actualFormat: string): void;
4522
4578
  private _reselectText;
4523
- protected _commitText(noFocus?: boolean, shouldInvalid?: boolean): void;
4579
+ protected _commitText(_noFocus?: boolean, shouldInvalid?: boolean): void;
4524
4580
  protected _copy(key: string, value: any): boolean;
4525
4581
  getAriaLabelForScreenReader(): any;
4526
- _input(e: Event): void;
4582
+ _input(_e: Event): void;
4527
4583
  }
4528
4584
  /**
4529
4585
  * The {@link InputDateTime} control extends the {@link InputDate} control to allows users
@@ -4803,12 +4859,12 @@ export declare class AutoComplete extends ComboBox {
4803
4859
  */
4804
4860
  cssMatch: string;
4805
4861
  /**
4806
- * Raises the {@link selectedIndexChanged} event.
4807
- */
4862
+ * Raises the {@link selectedIndexChanged} event.
4863
+ */
4808
4864
  onSelectedIndexChanged(e?: EventArgs): void;
4809
4865
  _updateTbxAria(): void;
4810
4866
  _keydown(e: KeyboardEvent): void;
4811
- _input(e: Event): void;
4867
+ _input(_e: Event): void;
4812
4868
  private _isBlurInput;
4813
4869
  protected _commitText(noFocus?: boolean): void;
4814
4870
  _setText(text: string | null): void;
@@ -4820,7 +4876,7 @@ export declare class AutoComplete extends ComboBox {
4820
4876
  protected _updateItems(): void;
4821
4877
  protected _filter(item: any): boolean;
4822
4878
  protected _getItemText(item: any, header: boolean): string;
4823
- protected _formatListItem(sender: any, e: FormatItemEventArgs): void;
4879
+ protected _formatListItem(_sender: any, e: FormatItemEventArgs): void;
4824
4880
  private _enclosed;
4825
4881
  protected _wheel(e: WheelEvent): void;
4826
4882
  getAriaLabelForScreenReader(): any;