@syncfusion/ej2-dropdowns 26.2.9 → 26.2.11
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/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 +76 -14
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +77 -14
- 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 +12 -12
- package/src/drop-down-tree/drop-down-tree.d.ts +1 -0
- package/src/drop-down-tree/drop-down-tree.js +42 -6
- package/src/mention/mention.js +7 -1
- package/src/multi-select/checkbox-selection.js +10 -2
- package/src/multi-select/interface.d.ts +1 -0
- package/src/multi-select/multi-select.js +18 -5
- package/styles/material-dark.css +5 -0
- package/styles/material.css +6 -1
- package/styles/multi-select/_material-dark-definition.scss +5 -0
- package/styles/multi-select/_material-definition.scss +6 -1
- package/styles/multi-select/material-dark.css +5 -0
- package/styles/multi-select/material.css +6 -1
- package/hotfix/26.1.35_Vol2.txt +0 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 26.2.
|
|
3
|
+
* version : 26.2.11
|
|
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@26.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@26.2.10",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-14jiYqzl2M0NG+afPYF4mhXof66StAa1zjidN3QWBbba2fnDyolDAgdNe7B5W2I+dEcMLcnWvlcmQCljPIWz9A==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"/@syncfusion/ej2-spreadsheet",
|
|
36
36
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
37
37
|
],
|
|
38
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.2.
|
|
39
|
-
"_shasum": "
|
|
38
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.2.10.tgz",
|
|
39
|
+
"_shasum": "97b5397734005a6a40c4c702f609f48dc17c52f2",
|
|
40
40
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
41
41
|
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
42
42
|
"author": {
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
},
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~26.2.
|
|
48
|
-
"@syncfusion/ej2-data": "~26.2.
|
|
49
|
-
"@syncfusion/ej2-inputs": "~26.2.
|
|
50
|
-
"@syncfusion/ej2-lists": "~26.2.
|
|
51
|
-
"@syncfusion/ej2-navigations": "~26.2.
|
|
52
|
-
"@syncfusion/ej2-notifications": "~26.2.
|
|
53
|
-
"@syncfusion/ej2-popups": "~26.2.
|
|
47
|
+
"@syncfusion/ej2-base": "~26.2.10",
|
|
48
|
+
"@syncfusion/ej2-data": "~26.2.10",
|
|
49
|
+
"@syncfusion/ej2-inputs": "~26.2.11",
|
|
50
|
+
"@syncfusion/ej2-lists": "~26.2.11",
|
|
51
|
+
"@syncfusion/ej2-navigations": "~26.2.11",
|
|
52
|
+
"@syncfusion/ej2-notifications": "~26.2.10",
|
|
53
|
+
"@syncfusion/ej2-popups": "~26.2.11"
|
|
54
54
|
},
|
|
55
55
|
"deprecated": false,
|
|
56
56
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"module": "./index.js",
|
|
76
76
|
"name": "@syncfusion/ej2-dropdowns",
|
|
77
77
|
"typings": "index.d.ts",
|
|
78
|
-
"version": "26.2.
|
|
78
|
+
"version": "26.2.11",
|
|
79
79
|
"sideEffects": false,
|
|
80
80
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
81
81
|
}
|
|
@@ -745,6 +745,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
745
745
|
render(): void;
|
|
746
746
|
private hideCheckAll;
|
|
747
747
|
private renderFilter;
|
|
748
|
+
private filterKeyAction;
|
|
748
749
|
private filterChangeHandler;
|
|
749
750
|
private isChildObject;
|
|
750
751
|
private filterHandler;
|
|
@@ -378,6 +378,40 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
378
378
|
input: this.filterChangeHandler.bind(this)
|
|
379
379
|
});
|
|
380
380
|
this.filterObj.appendTo('#' + this.element.id + '_filter');
|
|
381
|
+
this.keyboardModule = new KeyboardEvents(this.filterObj.element, {
|
|
382
|
+
keyAction: this.filterKeyAction.bind(this),
|
|
383
|
+
keyConfigs: this.keyConfigs,
|
|
384
|
+
eventName: 'keydown'
|
|
385
|
+
});
|
|
386
|
+
};
|
|
387
|
+
DropDownTree.prototype.filterKeyAction = function (e) {
|
|
388
|
+
var _this = this;
|
|
389
|
+
var eventArgs = {
|
|
390
|
+
cancel: false,
|
|
391
|
+
event: e
|
|
392
|
+
};
|
|
393
|
+
this.trigger('keyPress', eventArgs, function (observedArgs) {
|
|
394
|
+
if (!observedArgs.cancel) {
|
|
395
|
+
switch (e.action) {
|
|
396
|
+
case 'altUp':
|
|
397
|
+
if (_this.isPopupOpen) {
|
|
398
|
+
_this.hidePopup();
|
|
399
|
+
}
|
|
400
|
+
break;
|
|
401
|
+
case 'shiftTab':
|
|
402
|
+
addClass([_this.inputWrapper], [INPUTFOCUS]);
|
|
403
|
+
break;
|
|
404
|
+
case 'moveDown':
|
|
405
|
+
e.preventDefault();
|
|
406
|
+
_this.filterObj.element.blur();
|
|
407
|
+
var focusedElement = _this.treeObj.element.querySelector('li');
|
|
408
|
+
if (focusedElement) {
|
|
409
|
+
focusedElement.focus();
|
|
410
|
+
}
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
});
|
|
381
415
|
};
|
|
382
416
|
DropDownTree.prototype.filterChangeHandler = function (args) {
|
|
383
417
|
var _this = this;
|
|
@@ -896,7 +930,6 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
896
930
|
}
|
|
897
931
|
break;
|
|
898
932
|
case 'shiftTab':
|
|
899
|
-
case 'tab':
|
|
900
933
|
if (_this.isPopupOpen) {
|
|
901
934
|
_this.hidePopup();
|
|
902
935
|
}
|
|
@@ -1441,10 +1474,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1441
1474
|
}
|
|
1442
1475
|
else {
|
|
1443
1476
|
if (this.showCheckBox) {
|
|
1444
|
-
var difference = this.value.filter(function (e) {
|
|
1477
|
+
var difference = this.value.length !== this.treeObj.checkedNodes.length || this.value.filter(function (e) {
|
|
1445
1478
|
return _this.treeObj.checkedNodes.indexOf(e) === -1;
|
|
1446
|
-
});
|
|
1447
|
-
if (difference
|
|
1479
|
+
}).length > 0;
|
|
1480
|
+
if (difference || this.treeSettings.autoCheck) {
|
|
1448
1481
|
this.treeObj.checkedNodes = this.value.slice();
|
|
1449
1482
|
this.treeObj.dataBind();
|
|
1450
1483
|
this.setMultiSelect();
|
|
@@ -1615,13 +1648,16 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1615
1648
|
}
|
|
1616
1649
|
else {
|
|
1617
1650
|
var oldFocussedNode = _this.treeObj.element.querySelector('.e-node-focus');
|
|
1618
|
-
focusedElement = _this.treeObj.element.querySelector('li:not(.e-disable):not(.e-prevent)')
|
|
1651
|
+
focusedElement = _this.treeObj.element.querySelector('li[tabindex="0"]:not(.e-disable):not(.e-prevent)') ||
|
|
1652
|
+
_this.treeObj.element.querySelector('li:not(.e-disable):not(.e-prevent)');
|
|
1619
1653
|
if (oldFocussedNode && oldFocussedNode !== focusedElement) {
|
|
1620
1654
|
oldFocussedNode.setAttribute('tabindex', '-1');
|
|
1621
1655
|
removeClass([oldFocussedNode], 'e-node-focus');
|
|
1622
1656
|
}
|
|
1623
1657
|
}
|
|
1624
|
-
|
|
1658
|
+
if (!_this.allowFiltering) {
|
|
1659
|
+
focusedElement.focus();
|
|
1660
|
+
}
|
|
1625
1661
|
addClass([focusedElement], ['e-node-focus']);
|
|
1626
1662
|
}
|
|
1627
1663
|
if (_this.treeObj.checkedNodes.length > 0) {
|
package/src/mention/mention.js
CHANGED
|
@@ -1284,7 +1284,13 @@ var Mention = /** @class */ (function (_super) {
|
|
|
1284
1284
|
range.insertNode(frag);
|
|
1285
1285
|
if (lastNode) {
|
|
1286
1286
|
range = range.cloneRange();
|
|
1287
|
-
|
|
1287
|
+
if (this.isRTE) {
|
|
1288
|
+
range.setStart(lastNode, 0);
|
|
1289
|
+
range.setEnd(lastNode, lastNode.textContent.length);
|
|
1290
|
+
}
|
|
1291
|
+
else {
|
|
1292
|
+
range.setStartAfter(lastNode);
|
|
1293
|
+
}
|
|
1288
1294
|
range.collapse(true);
|
|
1289
1295
|
selection.removeAllRanges();
|
|
1290
1296
|
selection.addRange(range);
|
|
@@ -341,13 +341,21 @@ var CheckBoxSelection = /** @class */ (function () {
|
|
|
341
341
|
CheckBoxSelection.prototype.setSearchBoxPosition = function () {
|
|
342
342
|
var searchBoxHeight = this.filterInput.parentElement.getBoundingClientRect().height;
|
|
343
343
|
var selectAllHeight = 0;
|
|
344
|
+
var footerHeight = 0;
|
|
345
|
+
var headerHeight = 0;
|
|
344
346
|
if (this.checkAllParent) {
|
|
345
347
|
selectAllHeight = this.checkAllParent.getBoundingClientRect().height;
|
|
346
348
|
}
|
|
349
|
+
if (this.parent.header) {
|
|
350
|
+
headerHeight = this.parent.header.getBoundingClientRect().height;
|
|
351
|
+
}
|
|
352
|
+
if (this.parent.footer) {
|
|
353
|
+
footerHeight = this.parent.footer.getBoundingClientRect().height;
|
|
354
|
+
}
|
|
347
355
|
this.parent.popupObj.element.style.maxHeight = '100%';
|
|
348
356
|
this.parent.popupObj.element.style.width = '100%';
|
|
349
|
-
this.parent.list.style.maxHeight = (window.innerHeight - searchBoxHeight - selectAllHeight) + 'px';
|
|
350
|
-
this.parent.list.style.height = (window.innerHeight - searchBoxHeight - selectAllHeight) + 'px';
|
|
357
|
+
this.parent.list.style.maxHeight = (window.innerHeight - searchBoxHeight - selectAllHeight - headerHeight - footerHeight) + 'px';
|
|
358
|
+
this.parent.list.style.height = (window.innerHeight - searchBoxHeight - selectAllHeight - headerHeight - footerHeight) + 'px';
|
|
351
359
|
var clearElement = this.filterInput.parentElement.querySelector('.' + clearIcon);
|
|
352
360
|
detach(this.filterInput);
|
|
353
361
|
clearElement.parentElement.insertBefore(this.filterInput, clearElement);
|
|
@@ -45,6 +45,7 @@ export interface IMulitSelect extends Component<HTMLElement> {
|
|
|
45
45
|
headerTemplate?: string;
|
|
46
46
|
mobFilter?: boolean;
|
|
47
47
|
header?: HTMLElement;
|
|
48
|
+
footer?: HTMLElement;
|
|
48
49
|
updateDelimView?(): void;
|
|
49
50
|
updateValueState?(event?: KeyboardEventArgs | MouseEvent, newVal?: [string | number], oldVal?: [string | number]): void;
|
|
50
51
|
tempValues?: [number | string];
|
|
@@ -3023,6 +3023,12 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3023
3023
|
if (this.enabled && !this.readonly) {
|
|
3024
3024
|
var temp = void 0;
|
|
3025
3025
|
if (this.value && this.value.length > 0) {
|
|
3026
|
+
if (this.allowFiltering) {
|
|
3027
|
+
this.refreshListItems(null);
|
|
3028
|
+
if (this.mode === 'CheckBox' && this.targetInputElement) {
|
|
3029
|
+
this.targetInputElement.value = '';
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3026
3032
|
var liElement = this.list && this.list.querySelectorAll('li.e-list-item');
|
|
3027
3033
|
if (liElement && liElement.length > 0) {
|
|
3028
3034
|
this.selectAllItems(false, e);
|
|
@@ -3040,6 +3046,11 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3040
3046
|
this.clearAllCallback(e);
|
|
3041
3047
|
}
|
|
3042
3048
|
this.checkAndResetCache();
|
|
3049
|
+
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
3050
|
+
this.calculateWidth();
|
|
3051
|
+
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
3052
|
+
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
3053
|
+
}
|
|
3043
3054
|
if (this.enableVirtualization) {
|
|
3044
3055
|
this.updateInitialData();
|
|
3045
3056
|
if (this.chipCollectionWrapper) {
|
|
@@ -3108,11 +3119,13 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3108
3119
|
}
|
|
3109
3120
|
};
|
|
3110
3121
|
MultiSelect.prototype.resetValueHandler = function (e) {
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3122
|
+
if (!isNullOrUndefined(this.inputElement)) {
|
|
3123
|
+
var formElement = closest(this.inputElement, 'form');
|
|
3124
|
+
if (formElement && e.target === formElement) {
|
|
3125
|
+
var textVal = (this.element.tagName === this.getNgDirective()) ?
|
|
3126
|
+
null : this.element.getAttribute('data-initial-value');
|
|
3127
|
+
this.text = textVal;
|
|
3128
|
+
}
|
|
3116
3129
|
}
|
|
3117
3130
|
};
|
|
3118
3131
|
MultiSelect.prototype.wireEvent = function () {
|
package/styles/material-dark.css
CHANGED
|
@@ -1552,6 +1552,11 @@ ejs-dropdownlist {
|
|
|
1552
1552
|
padding: 0;
|
|
1553
1553
|
}
|
|
1554
1554
|
|
|
1555
|
+
.e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type=text],
|
|
1556
|
+
.e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type=text] {
|
|
1557
|
+
padding: 0;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1555
1560
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
|
1556
1561
|
content: "\e969";
|
|
1557
1562
|
font-family: "e-icons";
|
package/styles/material.css
CHANGED
|
@@ -1600,6 +1600,11 @@ ejs-dropdownlist {
|
|
|
1600
1600
|
padding: 0;
|
|
1601
1601
|
}
|
|
1602
1602
|
|
|
1603
|
+
.e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type=text],
|
|
1604
|
+
.e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type=text] {
|
|
1605
|
+
padding: 0;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1603
1608
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
|
1604
1609
|
content: "\e969";
|
|
1605
1610
|
font-family: "e-icons";
|
|
@@ -2488,7 +2493,7 @@ ejs-dropdownlist {
|
|
|
2488
2493
|
height: 28px;
|
|
2489
2494
|
min-height: 28px;
|
|
2490
2495
|
outline: none;
|
|
2491
|
-
padding: 0;
|
|
2496
|
+
padding: 4px 0 4px 0;
|
|
2492
2497
|
text-indent: 0;
|
|
2493
2498
|
}
|
|
2494
2499
|
|
|
@@ -238,4 +238,9 @@ $filled-multiselect-chip-hover-bg-color: $grey-700 !default;
|
|
|
238
238
|
.e-small.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type = 'text'] {
|
|
239
239
|
padding: 0;
|
|
240
240
|
}
|
|
241
|
+
|
|
242
|
+
.e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type = 'text'],
|
|
243
|
+
.e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type = 'text'] {
|
|
244
|
+
padding: 0;
|
|
245
|
+
}
|
|
241
246
|
}
|
|
@@ -88,7 +88,7 @@ $ddl-sel-chip-close-mobile-left: 12px !default;
|
|
|
88
88
|
$ddl-chip-sel-mobile-close-height: 40px !default;
|
|
89
89
|
$ddl-chip-sel-mobile-close-margin: 0 0 0 0 !default;
|
|
90
90
|
$ddl-input-text-indent: 0 !default;
|
|
91
|
-
$ddl-input-placeholder-padding: 0 !default;
|
|
91
|
+
$ddl-input-placeholder-padding: 4px 0 4px 0 !default;
|
|
92
92
|
$ddl-rtl-chip-sel-close-left: -12px !default;
|
|
93
93
|
$ddl-popup-active-focus-bg-color: $grey-300 !default;
|
|
94
94
|
$ddl-popup-active-focus-font-color: $accent !default;
|
|
@@ -231,4 +231,9 @@ $filled-multiselect-chip-hover-bg-color: darken($grey-300, 7%) !default;
|
|
|
231
231
|
.e-small.e-multiselect.e-input-group.e-checkbox .e-multi-select-wrapper input[type = 'text'] {
|
|
232
232
|
padding: 0;
|
|
233
233
|
}
|
|
234
|
+
|
|
235
|
+
.e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type = 'text'],
|
|
236
|
+
.e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type = 'text'] {
|
|
237
|
+
padding: 0;
|
|
238
|
+
}
|
|
234
239
|
}
|
|
@@ -75,6 +75,11 @@
|
|
|
75
75
|
padding: 0;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
.e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type=text],
|
|
79
|
+
.e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type=text] {
|
|
80
|
+
padding: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
78
83
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
|
79
84
|
content: "\e969";
|
|
80
85
|
font-family: "e-icons";
|
|
@@ -95,6 +95,11 @@
|
|
|
95
95
|
padding: 0;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
.e-multiselect.e-input-group .e-multi-select-wrapper .e-multiselect-box input[type=text],
|
|
99
|
+
.e-multiselect.e-input-group.e-input-focus .e-multi-select-wrapper .e-searcher:not(.e-zero-size) input[type=text] {
|
|
100
|
+
padding: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
98
103
|
.e-multiselect.e-input-group .e-ddl-icon::before {
|
|
99
104
|
content: "\e969";
|
|
100
105
|
font-family: "e-icons";
|
|
@@ -983,7 +988,7 @@
|
|
|
983
988
|
height: 28px;
|
|
984
989
|
min-height: 28px;
|
|
985
990
|
outline: none;
|
|
986
|
-
padding: 0;
|
|
991
|
+
padding: 4px 0 4px 0;
|
|
987
992
|
text-indent: 0;
|
|
988
993
|
}
|
|
989
994
|
|
package/hotfix/26.1.35_Vol2.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hotfix/26.1.35_Vol2
|