@grapecity/wijmo.input 5.20241.19 → 5.20242.30

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.19
3
+ * Wijmo Library 5.20242.30
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -20,6 +20,106 @@
20
20
  export declare var ___keepComment: any;
21
21
  import { Control, Event, EventArgs, CancelEventArgs, Binding, Rect, ICollectionView, CollectionViewGroup, _ClickRepeater, CollectionView, _MaskProvider, PopupPosition } from '@grapecity/wijmo';
22
22
  import * as selfModule from '@grapecity/wijmo.input';
23
+ export declare const AutoCompleteClsNames: {
24
+ hostElement: string;
25
+ };
26
+ export declare const CalendarClsNames: {
27
+ buttonsOutside: string;
28
+ calendarHeader: string;
29
+ calendarMonth: string;
30
+ calendarMultiMonth: string;
31
+ calendarOuter: string;
32
+ calendarYear: string;
33
+ dayOtherMonth: string;
34
+ dayToday: string;
35
+ dayWeekend: string;
36
+ header: string;
37
+ hostElement: string;
38
+ monthSelect: string;
39
+ weekAfter: string;
40
+ weekBefore: string;
41
+ yearPicker: string;
42
+ };
43
+ export declare const CollectionViewNavigatorClsNames: {
44
+ hostElement: string;
45
+ pager: string;
46
+ };
47
+ export declare const ColorPickerClsNames: {
48
+ colorBox: string;
49
+ hostElement: string;
50
+ };
51
+ export declare const ComboBoxClsNames: {
52
+ hostElement: string;
53
+ stateMatch: string;
54
+ };
55
+ export declare const DropDownClsNames: {
56
+ dropDownPanel: string;
57
+ hostElement: string;
58
+ };
59
+ export declare const InputClsNames: {
60
+ input: string;
61
+ inputBtnVisible: string;
62
+ inputGroup: string;
63
+ inputGroupBtn: string;
64
+ };
65
+ export declare const InputColorClsNames: {
66
+ hostElement: string;
67
+ inputColorBox: string;
68
+ };
69
+ export declare const InputDateClsNames: {
70
+ hostElement: string;
71
+ inputDateDropDown: string;
72
+ };
73
+ export declare const InputDateRangeClsNames: {
74
+ hostElement: string;
75
+ };
76
+ export declare const InputDateTimeClsNames: {
77
+ hostElement: string;
78
+ };
79
+ export declare const InputMaskClsNames: {
80
+ hostElement: string;
81
+ };
82
+ export declare const InputNumberClsNames: {
83
+ hostElement: string;
84
+ numeric: string;
85
+ showSpinner: string;
86
+ };
87
+ export declare const InputTimeClsNames: {
88
+ hostElement: string;
89
+ };
90
+ export declare const ListBoxClsNames: {
91
+ header: string;
92
+ hostElement: string;
93
+ listBoxItem: string;
94
+ };
95
+ export declare const MenuClsNames: {
96
+ hostElement: string;
97
+ menuItems: string;
98
+ subItems: string;
99
+ };
100
+ export declare const MultiAutoCompleteClsNames: {
101
+ hostElement: string;
102
+ token: string;
103
+ tokenActive: string;
104
+ tokenClose: string;
105
+ tokenHelper: string;
106
+ tokenLabel: string;
107
+ };
108
+ export declare const MultiSelectClsNames: {
109
+ hostElement: string;
110
+ };
111
+ export declare const MultiSelectListBoxClsNames: {
112
+ header: string;
113
+ hostElement: string;
114
+ selectAll: string;
115
+ };
116
+ export declare const PopupClsNames: {
117
+ dialogHeader: string;
118
+ hostElement: string;
119
+ popupBackDrop: string;
120
+ dialogBody: string;
121
+ dialogFooter: string;
122
+ };
23
123
  /**
24
124
  * The {@link InputNumber} control allows users to enter numbers.
25
125
  *
@@ -72,6 +172,7 @@ export declare class InputNumber extends Control {
72
172
  _rptUp: _ClickRepeater;
73
173
  _rptDn: _ClickRepeater;
74
174
  _fromKb: boolean;
175
+ static _ctrlTemplate: string;
75
176
  /**
76
177
  * Gets or sets the template used to instantiate {@link InputNumber} controls.
77
178
  */
@@ -285,6 +386,7 @@ export declare class InputMask extends Control {
285
386
  _value: string;
286
387
  _msk: _MaskProvider;
287
388
  _fullEdit: boolean;
389
+ static _ctrlTemplate: string;
288
390
  /**
289
391
  * Gets or sets the template used to instantiate {@link InputMask} controls.
290
392
  */
@@ -386,7 +488,6 @@ export declare class InputMask extends Control {
386
488
  _commitText(): void;
387
489
  dispose(): void;
388
490
  refresh(fullUpdate?: boolean): void;
389
- _isGridImeEnabled(): boolean;
390
491
  onGotFocus(e: any): void;
391
492
  }
392
493
  /**
@@ -414,6 +515,7 @@ export declare class ColorPicker extends Control {
414
515
  _ePreview: HTMLElement;
415
516
  _eText: HTMLElement;
416
517
  _htDown: Element;
518
+ static _ctrlTemplate: string;
417
519
  /**
418
520
  * Gets or sets the template used to instantiate {@link ColorPicker} controls.
419
521
  */
@@ -513,6 +615,7 @@ export declare class CollectionViewNavigator<T = any> extends Control {
513
615
  private _rptNext;
514
616
  private _rptPrev;
515
617
  private _fmt;
618
+ static _ctrlTemplate: string;
516
619
  /**
517
620
  * Gets or sets the template used to instantiate {@link CollectionViewNavigator} controls.
518
621
  */
@@ -1045,6 +1148,7 @@ export declare class MultiSelectListBox<T = any> extends Control {
1045
1148
  _delay: number;
1046
1149
  _toSearch: any;
1047
1150
  static _DEF_CHECKED_PATH: string;
1151
+ static _ctrlTemplate: string;
1048
1152
  /**
1049
1153
  * Gets or sets the template used to instantiate {@link MultiSelectListBox} controls.
1050
1154
  */
@@ -1072,7 +1176,7 @@ export declare class MultiSelectListBox<T = any> extends Control {
1072
1176
  * The default value for this property is a very big number, meaning virtualization is
1073
1177
  * disabled. To enable virtualization, set its value to 0 or a positive number.
1074
1178
  *
1075
- * For more detals, please see the {@link ListBox.virtializationThreshold}
1179
+ * For more detals, please see the {@link ListBox.virtualizationThreshold}
1076
1180
  * property.
1077
1181
  */
1078
1182
  virtualizationThreshold: number;
@@ -1377,6 +1481,7 @@ export declare class Calendar extends Control {
1377
1481
  private _fmtDay;
1378
1482
  private _fmtMonths;
1379
1483
  static _DATE_KEY: string;
1484
+ static _ctrlTemplate: string;
1380
1485
  /**
1381
1486
  * Gets or sets the template used to instantiate {@link Calendar} controls.
1382
1487
  */
@@ -1794,6 +1899,8 @@ export declare class DropDown extends Control {
1794
1899
  _oldText: string;
1795
1900
  _minWidthDropdown: string;
1796
1901
  _escapeIE: boolean;
1902
+ _isInvalidInputCancelled: boolean;
1903
+ static _ctrlTemplate: string;
1797
1904
  /**
1798
1905
  * Gets or sets the template used to instantiate {@link DropDown} controls.
1799
1906
  */
@@ -1862,7 +1969,7 @@ export declare class DropDown extends Control {
1862
1969
  * The default value for this property is **false**.
1863
1970
  */
1864
1971
  isDroppedDown: boolean;
1865
- _toogleDropDown(isDroppedDown: boolean): void;
1972
+ _toggleDropDown(isDroppedDown: boolean): void;
1866
1973
  /**
1867
1974
  * Gets the drop down element shown when the {@link isDroppedDown}
1868
1975
  * property is set to true.
@@ -1934,7 +2041,7 @@ export declare class DropDown extends Control {
1934
2041
  _handleResize(): void;
1935
2042
  protected _dropDownClick(e: MouseEvent): void;
1936
2043
  protected _expandSelection(): void;
1937
- protected _getCharType(text: string, pos: number): 1 | -1 | 0;
2044
+ protected _getCharType(text: string, pos: number): 0 | 1 | -1;
1938
2045
  protected _keydown(e: KeyboardEvent): void;
1939
2046
  protected _isHiddenEditor(): boolean;
1940
2047
  protected _keypress(e: KeyboardEvent): void;
@@ -2554,6 +2661,23 @@ export declare class PopupBoundsChangingEventArgs extends CancelEventArgs {
2554
2661
  */
2555
2662
  readonly bounds: Rect;
2556
2663
  }
2664
+ /**
2665
+ * Provides arguments for {@link InputDate}'s invalidInput event.
2666
+ */
2667
+ export declare class InputDateEventArgs extends CancelEventArgs {
2668
+ _isUserInput: boolean;
2669
+ /**
2670
+ * Initializes a new instance of the {@link InputDateEventArgs} class.
2671
+ *
2672
+ * @param isUserInput boolean value to distinguish user input from value set in code
2673
+ */
2674
+ constructor(isUserInput: boolean);
2675
+ /**
2676
+ * Gets a value that determines whether invalid value was
2677
+ * provided by user or set in code
2678
+ */
2679
+ readonly isUserInput: boolean;
2680
+ }
2557
2681
  /**
2558
2682
  * The {@link InputDate} control allows users to type in dates using any format
2559
2683
  * supported by the {@link Globalize} class, or to pick dates from a drop-down
@@ -2598,9 +2722,13 @@ export declare class InputDate extends DropDown {
2598
2722
  private _showCal;
2599
2723
  private _clsOnSel;
2600
2724
  private _handleWheel;
2725
+ private _preserveCalendarNavigation;
2601
2726
  private _clicked;
2602
2727
  private _rangeChanged;
2603
2728
  private _textInitialized;
2729
+ private _previousText;
2730
+ private _keepInvalidText;
2731
+ protected _currentInput: string;
2604
2732
  /**
2605
2733
  * Initializes a new instance of the {@link InputDate} class.
2606
2734
  *
@@ -2645,6 +2773,16 @@ export declare class InputDate extends DropDown {
2645
2773
  * there is no maximum value for range lengths.
2646
2774
  */
2647
2775
  rangeMax: number;
2776
+ /**
2777
+ * Gets or sets whether to allow invalid text
2778
+ *
2779
+ * This property is used only when invalid text is set through
2780
+ * {@link text} property in code and does not affect the behavior
2781
+ * when invalid value is set by the end user
2782
+ *
2783
+ * The default value for this property is false.
2784
+ */
2785
+ keepInvalidText: boolean;
2648
2786
  /**
2649
2787
  * Gets or sets the text shown on the control.
2650
2788
  */
@@ -2895,6 +3033,13 @@ export declare class InputDate extends DropDown {
2895
3033
  * the value to "tel" or "text"
2896
3034
  */
2897
3035
  inputType: string;
3036
+ /**
3037
+ * Gets or sets a value that determines whether to preserve the month
3038
+ * when user navigates to a different month than the selected date.
3039
+ *
3040
+ * The default value for this property is **true**.
3041
+ */
3042
+ preserveCalendarNavigation: boolean;
2898
3043
  /**
2899
3044
  * Gets or sets a validator function to determine whether dates are valid for selection.
2900
3045
  *
@@ -2976,6 +3121,8 @@ export declare class InputDate extends DropDown {
2976
3121
  _clamp(value: Date): Date;
2977
3122
  protected _getText(): string;
2978
3123
  protected _commitText(noFocus?: boolean): void;
3124
+ protected _triggerInvalidInputEvent(cancelEvtArgs: InputDateEventArgs, val: Date, rangeEnd?: Date): void;
3125
+ protected _nullValueInvalidInput(cancelEvtArgs: InputDateEventArgs): void;
2979
3126
  protected _fromDateTime(value: Date): Date;
2980
3127
  protected _canChangeValue(): boolean;
2981
3128
  protected _isValidDate(value: Date): boolean;
@@ -3143,6 +3290,7 @@ export declare class ComboBox<T = any> extends DropDown {
3143
3290
  _oldIndexToBeRestoredOnBlur: null | number;
3144
3291
  _restoreComboboxTbxVal: boolean;
3145
3292
  _isWheel: boolean;
3293
+ _selItems: any;
3146
3294
  /**
3147
3295
  * Initializes a new instance of the {@link ComboBox} class.
3148
3296
  *
@@ -3176,7 +3324,7 @@ export declare class ComboBox<T = any> extends DropDown {
3176
3324
  * The default value for this property is a very big number, meaning virtualization is
3177
3325
  * disabled. To enable virtualization, set its value to 0 or a positive number.
3178
3326
  *
3179
- * For more detals, please see the {@link ListBox.virtializationThreshold}
3327
+ * For more detals, please see the {@link ListBox.virtualizationThreshold}
3180
3328
  * property.
3181
3329
  */
3182
3330
  virtualizationThreshold: number;
@@ -4022,6 +4170,7 @@ export declare class InputDateTime extends InputDate {
4022
4170
  private _inputTime;
4023
4171
  private _ddDate;
4024
4172
  private _ddTime;
4173
+ static _ctrlTemplate: string;
4025
4174
  /**
4026
4175
  * Gets or sets the template used to instantiate {@link InputDateTime} controls.
4027
4176
  */
@@ -4089,6 +4238,7 @@ export declare class InputDateTime extends InputDate {
4089
4238
  protected _mouseWheel(e: WheelEvent): void;
4090
4239
  protected _keydown(e: KeyboardEvent): void;
4091
4240
  protected _updateDateTimeValue(step: number, specialChars: any, actualFormat: string): void;
4241
+ protected _commitText(): void;
4092
4242
  }
4093
4243
  /**
4094
4244
  * Represents a method that returns data items asynchronously as the user types.
@@ -4134,6 +4284,7 @@ export declare class AutoComplete extends ComboBox {
4134
4284
  private _itemCount;
4135
4285
  private _beginsWith;
4136
4286
  private _delay;
4287
+ _selItems: any;
4137
4288
  private _toSearch;
4138
4289
  private _query;
4139
4290
  private _rxSrch;
@@ -4244,8 +4395,12 @@ export declare class AutoComplete extends ComboBox {
4244
4395
  */
4245
4396
  onSelectedIndexChanged(e?: EventArgs): void;
4246
4397
  _keydown(e: KeyboardEvent): void;
4398
+ private _isBlurInput;
4399
+ protected _commitText(noFocus?: boolean): void;
4247
4400
  _setText(text: string | null): void;
4248
4401
  onLostFocus(e?: EventArgs): void;
4402
+ onGotFocus(e?: EventArgs): void;
4403
+ reset(): void;
4249
4404
  _itemSourceFunctionCallback(result: any[]): void;
4250
4405
  onIsDroppedDownChanged(e?: EventArgs): void;
4251
4406
  protected _updateItems(): void;
@@ -4268,7 +4423,6 @@ export declare class MultiAutoComplete extends AutoComplete {
4268
4423
  private _wjTpl;
4269
4424
  private _wjInput;
4270
4425
  private _helperInput;
4271
- private _selItems;
4272
4426
  private _maxSelItems;
4273
4427
  private _lastInputValue;
4274
4428
  private _selPath;