@syncfusion/ej2-dropdowns 24.2.7 → 24.2.8
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/CHANGELOG.md +8 -0
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +46 -21
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +46 -21
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/mention/mention-model.d.ts +1 -1
- package/src/mention/mention.d.ts +1 -1
- package/src/mention/mention.js +47 -22
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.2.
|
|
3
|
+
* version : 24.2.8
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-dropdowns@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-dropdowns@24.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@24.2.7",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-cuO9ubsNievpbwKBvHyByYZ65QLkYTPCd+sectppRBcHHO92eiRpKI83AnRbcgb1NvLgni2Um1f5gsf5a6uK+Q==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"/@syncfusion/ej2-spreadsheet",
|
|
35
35
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
36
36
|
],
|
|
37
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.2.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.2.7.tgz",
|
|
38
|
+
"_shasum": "06363d306cbb179c9c3cf51f38d08098267f2b0c",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@syncfusion/ej2-base": "~24.2.7",
|
|
47
47
|
"@syncfusion/ej2-data": "~24.2.3",
|
|
48
48
|
"@syncfusion/ej2-inputs": "~24.2.7",
|
|
49
|
-
"@syncfusion/ej2-lists": "~24.2.
|
|
50
|
-
"@syncfusion/ej2-navigations": "~24.2.
|
|
49
|
+
"@syncfusion/ej2-lists": "~24.2.8",
|
|
50
|
+
"@syncfusion/ej2-navigations": "~24.2.8",
|
|
51
51
|
"@syncfusion/ej2-notifications": "~24.2.4",
|
|
52
|
-
"@syncfusion/ej2-popups": "~24.2.
|
|
52
|
+
"@syncfusion/ej2-popups": "~24.2.8"
|
|
53
53
|
},
|
|
54
54
|
"deprecated": false,
|
|
55
55
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"module": "./index.js",
|
|
75
75
|
"name": "@syncfusion/ej2-dropdowns",
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "24.2.
|
|
77
|
+
"version": "24.2.8",
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
80
80
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { compile, Property, EventHandler, Animation, AnimationModel, KeyboardEventArgs, formatUnit, append, attributes } from '@syncfusion/ej2-base';import { isNullOrUndefined, detach, Event, EmitType, Complex, addClass, removeClass, closest, isUndefined, getValue, NotifyPropertyChanges, Browser } from '@syncfusion/ej2-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { FieldSettings, FilteringEventArgs, FilterType } from '../drop-down-base/drop-down-base';import { DropDownBase, PopupEventArgs, SelectEventArgs, BeforeOpenEventArgs, dropDownBaseClasses } from '../drop-down-base/drop-down-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { SortOrder } from '@syncfusion/ej2-lists';import { Popup, isCollide, createSpinner, showSpinner, hideSpinner, getZindexPartial } from '@syncfusion/ej2-popups';import { highlightSearch, revertHighlightSearch } from '../common/highlight-search';
|
|
2
2
|
import {MentionChangeEventArgs} from "./mention";
|
|
3
3
|
|
|
4
4
|
/**
|
package/src/mention/mention.d.ts
CHANGED
|
@@ -41,7 +41,6 @@ export declare class Mention extends DropDownBase {
|
|
|
41
41
|
private previousSelectedLI;
|
|
42
42
|
private previousItemData;
|
|
43
43
|
private activeIndex;
|
|
44
|
-
private keyConfigure;
|
|
45
44
|
private isFiltered;
|
|
46
45
|
private beforePopupOpen;
|
|
47
46
|
private listHeight;
|
|
@@ -357,6 +356,7 @@ export declare class Mention extends DropDownBase {
|
|
|
357
356
|
* @returns {void}
|
|
358
357
|
*/
|
|
359
358
|
private showWaitingSpinner;
|
|
359
|
+
private keyDownHandler;
|
|
360
360
|
private keyActionHandler;
|
|
361
361
|
private updateUpDownAction;
|
|
362
362
|
private isSelectFocusItem;
|
package/src/mention/mention.js
CHANGED
|
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
17
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import {
|
|
20
|
+
import { compile, Property, EventHandler, Animation, formatUnit, append, attributes } from '@syncfusion/ej2-base';
|
|
21
21
|
import { isNullOrUndefined, detach, Event, Complex, addClass, removeClass, closest, isUndefined, getValue, NotifyPropertyChanges, Browser } from '@syncfusion/ej2-base';
|
|
22
22
|
import { FieldSettings } from '../drop-down-base/drop-down-base';
|
|
23
23
|
import { DropDownBase, dropDownBaseClasses } from '../drop-down-base/drop-down-base';
|
|
@@ -103,21 +103,6 @@ var Mention = /** @class */ (function (_super) {
|
|
|
103
103
|
this.isPopupOpen = false;
|
|
104
104
|
this.isCollided = false;
|
|
105
105
|
this.lineBreak = false;
|
|
106
|
-
this.keyConfigure = {
|
|
107
|
-
tab: 'tab',
|
|
108
|
-
enter: '13',
|
|
109
|
-
escape: '27',
|
|
110
|
-
end: '35',
|
|
111
|
-
home: '36',
|
|
112
|
-
down: '40',
|
|
113
|
-
up: '38',
|
|
114
|
-
pageUp: '33',
|
|
115
|
-
pageDown: '34',
|
|
116
|
-
open: 'alt+40',
|
|
117
|
-
close: 'shift+tab',
|
|
118
|
-
hide: 'alt+38',
|
|
119
|
-
space: '32'
|
|
120
|
-
};
|
|
121
106
|
};
|
|
122
107
|
/**
|
|
123
108
|
* Execute before render the list items
|
|
@@ -163,9 +148,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
163
148
|
};
|
|
164
149
|
Mention.prototype.bindCommonEvent = function () {
|
|
165
150
|
if (!Browser.isDevice) {
|
|
166
|
-
this.
|
|
167
|
-
keyAction: this.keyActionHandler.bind(this), keyConfigs: this.keyConfigure, eventName: 'keydown'
|
|
168
|
-
});
|
|
151
|
+
this.inputElement.addEventListener('keydown', this.keyDownHandler.bind(this), true);
|
|
169
152
|
}
|
|
170
153
|
};
|
|
171
154
|
/**
|
|
@@ -217,6 +200,47 @@ var Mention = /** @class */ (function (_super) {
|
|
|
217
200
|
}
|
|
218
201
|
}
|
|
219
202
|
};
|
|
203
|
+
Mention.prototype.keyDownHandler = function (e) {
|
|
204
|
+
var isKeyAction = true;
|
|
205
|
+
switch (e.keyCode) {
|
|
206
|
+
case 38:
|
|
207
|
+
e.action = e.altKey ? 'hide' : 'up';
|
|
208
|
+
break;
|
|
209
|
+
case 40:
|
|
210
|
+
e.action = e.altKey ? 'open' : 'down';
|
|
211
|
+
break;
|
|
212
|
+
case 33:
|
|
213
|
+
e.action = 'pageUp';
|
|
214
|
+
break;
|
|
215
|
+
case 34:
|
|
216
|
+
e.action = 'pageDown';
|
|
217
|
+
break;
|
|
218
|
+
case 36:
|
|
219
|
+
e.action = 'home';
|
|
220
|
+
break;
|
|
221
|
+
case 35:
|
|
222
|
+
e.action = 'end';
|
|
223
|
+
break;
|
|
224
|
+
case 9:
|
|
225
|
+
e.action = e.shiftKey ? 'close' : 'tab';
|
|
226
|
+
break;
|
|
227
|
+
case 27:
|
|
228
|
+
e.action = 'escape';
|
|
229
|
+
break;
|
|
230
|
+
case 32:
|
|
231
|
+
e.action = 'space';
|
|
232
|
+
break;
|
|
233
|
+
case 13:
|
|
234
|
+
e.action = 'enter';
|
|
235
|
+
break;
|
|
236
|
+
default:
|
|
237
|
+
isKeyAction = false;
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
if (isKeyAction) {
|
|
241
|
+
this.keyActionHandler(e);
|
|
242
|
+
}
|
|
243
|
+
};
|
|
220
244
|
Mention.prototype.keyActionHandler = function (e) {
|
|
221
245
|
var isNavigation = (e.action === 'down' || e.action === 'up' || e.action === 'pageUp' || e.action === 'pageDown'
|
|
222
246
|
|| e.action === 'home' || e.action === 'end');
|
|
@@ -295,7 +319,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
295
319
|
};
|
|
296
320
|
Mention.prototype.unBindCommonEvent = function () {
|
|
297
321
|
if (!Browser.isDevice) {
|
|
298
|
-
this.
|
|
322
|
+
this.inputElement.removeEventListener('keydown', this.keyDownHandler.bind(this), true);
|
|
299
323
|
}
|
|
300
324
|
};
|
|
301
325
|
Mention.prototype.onKeyUp = function (e) {
|
|
@@ -975,7 +999,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
975
999
|
* @returns {void}
|
|
976
1000
|
*/
|
|
977
1001
|
Mention.prototype.wireListEvents = function () {
|
|
978
|
-
EventHandler.add(this.list, '
|
|
1002
|
+
EventHandler.add(this.list, 'mousedown', this.onMouseClick, this);
|
|
979
1003
|
EventHandler.add(this.list, 'mouseover', this.onMouseOver, this);
|
|
980
1004
|
EventHandler.add(this.list, 'mouseout', this.onMouseLeave, this);
|
|
981
1005
|
};
|
|
@@ -985,7 +1009,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
985
1009
|
* @returns {void}
|
|
986
1010
|
*/
|
|
987
1011
|
Mention.prototype.unWireListEvents = function () {
|
|
988
|
-
EventHandler.remove(this.list, '
|
|
1012
|
+
EventHandler.remove(this.list, 'mousedown', this.onMouseClick);
|
|
989
1013
|
EventHandler.remove(this.list, 'mouseover', this.onMouseOver);
|
|
990
1014
|
EventHandler.remove(this.list, 'mouseout', this.onMouseLeave);
|
|
991
1015
|
};
|
|
@@ -1000,6 +1024,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
1000
1024
|
var delay = 100;
|
|
1001
1025
|
this.closePopup(delay, e);
|
|
1002
1026
|
this.inputElement.focus();
|
|
1027
|
+
e.preventDefault();
|
|
1003
1028
|
};
|
|
1004
1029
|
Mention.prototype.updateSelectedItem = function (li, e, preventSelect, isSelection) {
|
|
1005
1030
|
var _this = this;
|