@syncfusion/ej2-dropdowns 20.3.47 → 20.3.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/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 +18 -2
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +18 -2
- 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/drop-down-base/drop-down-base.js +2 -1
- package/src/mention/mention-model.d.ts +1 -1
- package/src/mention/mention.d.ts +1 -0
- package/src/mention/mention.js +15 -1
- package/src/multi-select/multi-select.js +2 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.3.
|
|
3
|
+
* version : 20.3.48
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@20.3.47",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-qPiUQ/MULcgK0jSrA3mVYmadOYYd6i3JDnynVCR0RoRkofhK02OhFRwkKbKLXzts2es0dk31hrFriW0BuguJkA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"/@syncfusion/ej2-spreadsheet",
|
|
34
34
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
35
35
|
],
|
|
36
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-
|
|
37
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.3.47.tgz",
|
|
37
|
+
"_shasum": "95e215e550eebf1af76eb923af3e537f9f61a800",
|
|
38
38
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
39
39
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
40
40
|
"author": {
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
},
|
|
43
43
|
"bundleDependencies": false,
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@syncfusion/ej2-base": "~20.3.
|
|
45
|
+
"@syncfusion/ej2-base": "~20.3.48",
|
|
46
46
|
"@syncfusion/ej2-data": "~20.3.47",
|
|
47
47
|
"@syncfusion/ej2-inputs": "~20.3.47",
|
|
48
48
|
"@syncfusion/ej2-lists": "~20.3.47",
|
|
49
|
-
"@syncfusion/ej2-navigations": "~20.3.
|
|
50
|
-
"@syncfusion/ej2-popups": "~20.3.
|
|
49
|
+
"@syncfusion/ej2-navigations": "~20.3.48",
|
|
50
|
+
"@syncfusion/ej2-popups": "~20.3.48"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
"module": "./index.js",
|
|
73
73
|
"name": "@syncfusion/ej2-dropdowns",
|
|
74
74
|
"typings": "index.d.ts",
|
|
75
|
-
"version": "20.3.
|
|
75
|
+
"version": "20.3.48",
|
|
76
76
|
"sideEffects": false
|
|
77
77
|
}
|
|
@@ -260,7 +260,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
260
260
|
this.l10n = componentLocale;
|
|
261
261
|
}
|
|
262
262
|
else {
|
|
263
|
-
this.l10n = new L10n(this.getModuleName() === 'listbox' ? 'listbox' :
|
|
263
|
+
this.l10n = new L10n(this.getModuleName() === 'listbox' ? 'listbox' :
|
|
264
|
+
this.getModuleName() === 'mention' ? 'mention' : 'dropdowns', l10nLocale, this.locale);
|
|
264
265
|
}
|
|
265
266
|
var content = actionFailure ?
|
|
266
267
|
this.l10n.getConstant('actionFailureTemplate') : this.l10n.getConstant('noRecordsTemplate');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyboardEvents, compile, Property, EventHandler, Animation, AnimationModel, KeyboardEventArgs, formatUnit, append } 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 } from '@syncfusion/ej2-popups';import { highlightSearch, revertHighlightSearch } from '../common/highlight-search';
|
|
1
|
+
import { KeyboardEvents, 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 } 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
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 { KeyboardEvents, compile, Property, EventHandler, Animation, formatUnit, append } from '@syncfusion/ej2-base';
|
|
20
|
+
import { KeyboardEvents, 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';
|
|
@@ -414,6 +414,9 @@ var Mention = /** @class */ (function (_super) {
|
|
|
414
414
|
Mention.prototype.onActionComplete = function (ulElement, list, e, isUpdated) {
|
|
415
415
|
_super.prototype.onActionComplete.call(this, ulElement, list, e);
|
|
416
416
|
if (this.isActive) {
|
|
417
|
+
if (!isNullOrUndefined(ulElement)) {
|
|
418
|
+
attributes(ulElement, { 'id': this.inputElement.id + '_options', 'role': 'listbox', 'aria-hidden': 'false' });
|
|
419
|
+
}
|
|
417
420
|
var focusItem = ulElement.querySelector('.' + dropDownBaseClasses.li);
|
|
418
421
|
if (focusItem) {
|
|
419
422
|
focusItem.classList.add(dropDownBaseClasses.selected);
|
|
@@ -548,6 +551,10 @@ var Mention = /** @class */ (function (_super) {
|
|
|
548
551
|
*/
|
|
549
552
|
Mention.prototype.showPopup = function () {
|
|
550
553
|
this.renderPopup();
|
|
554
|
+
attributes(this.inputElement, { 'aria-activedescendant': this.selectedElementID });
|
|
555
|
+
if (this.selectedElementID == null) {
|
|
556
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
557
|
+
}
|
|
551
558
|
};
|
|
552
559
|
/* eslint-disable valid-jsdoc, jsdoc/require-param */
|
|
553
560
|
/**
|
|
@@ -565,6 +572,8 @@ var Mention = /** @class */ (function (_super) {
|
|
|
565
572
|
return;
|
|
566
573
|
}
|
|
567
574
|
EventHandler.remove(document, 'mousedown', this.onDocumentClick);
|
|
575
|
+
this.inputElement.removeAttribute('aria-owns');
|
|
576
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
568
577
|
this.beforePopupOpen = false;
|
|
569
578
|
var animModel = {
|
|
570
579
|
name: 'FadeOut',
|
|
@@ -627,6 +636,11 @@ var Mention = /** @class */ (function (_super) {
|
|
|
627
636
|
_this.unWireListEvents();
|
|
628
637
|
_this.wireListEvents();
|
|
629
638
|
}
|
|
639
|
+
_this.selectedElementID = _this.selectedLI ? _this.selectedLI.id : null;
|
|
640
|
+
attributes(_this.inputElement, { 'aria-owns': _this.inputElement.id + '_options', 'aria-activedescendant': _this.selectedElementID });
|
|
641
|
+
if (_this.selectedElementID == null) {
|
|
642
|
+
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
643
|
+
}
|
|
630
644
|
var animModel = { name: 'FadeIn', duration: 100 };
|
|
631
645
|
_this.beforePopupOpen = true;
|
|
632
646
|
var popupInstance = _this.popupObj;
|
|
@@ -721,7 +721,8 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
721
721
|
this.resetList(tempData, field, query);
|
|
722
722
|
}
|
|
723
723
|
else {
|
|
724
|
-
var tempData =
|
|
724
|
+
var tempData = JSON.parse(JSON.stringify(this.listData));
|
|
725
|
+
tempData.splice(0, 0, this.inputElement.value);
|
|
725
726
|
tempData[0] = (typeof customData === 'number' && !isNaN(parseFloat(tempData[0]))) ?
|
|
726
727
|
parseFloat(tempData[0]) : tempData[0];
|
|
727
728
|
tempData[0] = (typeof customData === 'boolean') ?
|