@syncfusion/ej2-dropdowns 20.4.54 → 21.1.36
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 +1 -78
- 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 +162 -56
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +158 -50
- 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 +23 -36
- package/src/combo-box/combo-box.js +2 -0
- package/src/common/highlight-search.js +1 -1
- package/src/common/incremental-search.d.ts +3 -0
- package/src/common/incremental-search.js +7 -0
- package/src/drop-down-list/drop-down-list-model.d.ts +6 -6
- package/src/drop-down-list/drop-down-list.js +46 -18
- package/src/drop-down-tree/drop-down-tree-model.d.ts +2 -2
- package/src/drop-down-tree/drop-down-tree.d.ts +62 -6
- package/src/drop-down-tree/drop-down-tree.js +11 -11
- package/src/list-box/list-box.d.ts +15 -3
- package/src/list-box/list-box.js +3 -3
- package/src/mention/mention.d.ts +4 -0
- package/src/mention/mention.js +88 -17
- package/styles/bootstrap-dark.css +2 -15
- package/styles/bootstrap.css +2 -5
- package/styles/bootstrap4.css +3 -14
- package/styles/bootstrap5-dark.css +5 -8
- package/styles/bootstrap5.css +5 -8
- package/styles/drop-down-base/_bootstrap4-definition.scss +0 -8
- package/styles/drop-down-base/_bootstrap5-definition.scss +2 -2
- package/styles/drop-down-base/_fluent-definition.scss +2 -2
- package/styles/drop-down-base/_tailwind-definition.scss +2 -2
- package/styles/drop-down-base/_theme.scss +63 -10
- package/styles/drop-down-base/bootstrap-dark.css +2 -2
- package/styles/drop-down-base/bootstrap.css +2 -2
- package/styles/drop-down-base/bootstrap4.css +2 -10
- package/styles/drop-down-base/bootstrap5-dark.css +2 -2
- package/styles/drop-down-base/bootstrap5.css +2 -2
- package/styles/drop-down-base/fabric-dark.css +2 -2
- package/styles/drop-down-base/fabric.css +2 -2
- package/styles/drop-down-base/fluent-dark.css +2 -2
- package/styles/drop-down-base/fluent.css +2 -2
- package/styles/drop-down-base/highcontrast-light.css +2 -2
- package/styles/drop-down-base/highcontrast.css +2 -2
- package/styles/drop-down-base/material-dark.css +2 -2
- package/styles/drop-down-base/material.css +2 -2
- package/styles/drop-down-base/tailwind-dark.css +2 -2
- package/styles/drop-down-base/tailwind.css +2 -2
- package/styles/drop-down-list/_bootstrap4-definition.scss +1 -1
- package/styles/drop-down-list/_bootstrap5-definition.scss +6 -6
- package/styles/drop-down-list/_fluent-definition.scss +5 -5
- package/styles/drop-down-list/_layout.scss +1 -4
- package/styles/drop-down-list/_tailwind-definition.scss +1 -1
- package/styles/drop-down-list/bootstrap-dark.css +0 -3
- package/styles/drop-down-list/bootstrap.css +0 -3
- package/styles/drop-down-list/bootstrap4.css +1 -12
- package/styles/drop-down-list/bootstrap5-dark.css +0 -3
- package/styles/drop-down-list/bootstrap5.css +0 -3
- package/styles/drop-down-list/fabric-dark.css +0 -3
- package/styles/drop-down-list/fabric.css +0 -3
- package/styles/drop-down-list/fluent-dark.css +0 -3
- package/styles/drop-down-list/fluent.css +0 -3
- package/styles/drop-down-list/highcontrast-light.css +0 -3
- package/styles/drop-down-list/highcontrast.css +0 -3
- package/styles/drop-down-list/icons/_material3.scss +1 -1
- package/styles/drop-down-list/material-dark.css +1 -3
- package/styles/drop-down-list/material.css +0 -3
- package/styles/drop-down-list/tailwind-dark.css +1 -4
- package/styles/drop-down-list/tailwind.css +1 -4
- package/styles/drop-down-tree/_layout.scss +34 -14
- package/styles/drop-down-tree/_tailwind-definition.scss +1 -1
- package/styles/drop-down-tree/_theme.scss +1 -1
- package/styles/drop-down-tree/bootstrap4.css +0 -8
- package/styles/drop-down-tree/material-dark.css +1 -0
- package/styles/fabric-dark.css +2 -15
- package/styles/fabric.css +2 -5
- package/styles/fluent-dark.css +6 -9
- package/styles/fluent.css +6 -9
- package/styles/highcontrast-light.css +9 -15
- package/styles/highcontrast.css +15 -11
- package/styles/list-box/_bootstrap-dark-definition.scss +0 -3
- package/styles/list-box/_bootstrap-definition.scss +0 -3
- package/styles/list-box/_bootstrap4-definition.scss +0 -3
- package/styles/list-box/_bootstrap5-definition.scss +0 -3
- package/styles/list-box/_fabric-dark-definition.scss +0 -3
- package/styles/list-box/_fabric-definition.scss +0 -3
- package/styles/list-box/_fluent-definition.scss +0 -3
- package/styles/list-box/_fusionnew-definition.scss +0 -3
- package/styles/list-box/_highcontrast-definition.scss +0 -3
- package/styles/list-box/_highcontrast-light-definition.scss +0 -3
- package/styles/list-box/_material-dark-definition.scss +0 -3
- package/styles/list-box/_material-definition.scss +0 -3
- package/styles/list-box/_tailwind-definition.scss +0 -3
- package/styles/list-box/bootstrap4.css +0 -8
- package/styles/material-dark.css +4 -15
- package/styles/material.css +2 -5
- package/styles/mention/bootstrap4.css +0 -8
- package/styles/multi-select/_bootstrap5-definition.scss +6 -6
- package/styles/multi-select/_fluent-definition.scss +7 -7
- package/styles/multi-select/_highcontrast-definition.scss +8 -6
- package/styles/multi-select/_highcontrast-light-definition.scss +2 -0
- package/styles/multi-select/_layout.scss +94 -77
- package/styles/multi-select/_tailwind-definition.scss +2 -2
- package/styles/multi-select/_theme.scss +110 -22
- package/styles/multi-select/bootstrap4.css +0 -8
- package/styles/multi-select/bootstrap5-dark.css +3 -3
- package/styles/multi-select/bootstrap5.css +3 -3
- package/styles/multi-select/fluent-dark.css +4 -4
- package/styles/multi-select/fluent.css +4 -4
- package/styles/multi-select/highcontrast-light.css +7 -0
- package/styles/multi-select/highcontrast.css +13 -6
- package/styles/multi-select/icons/_material3.scss +670 -3
- package/styles/multi-select/tailwind-dark.css +2 -1
- package/styles/multi-select/tailwind.css +2 -1
- package/styles/tailwind-dark.css +5 -7
- package/styles/tailwind.css +5 -7
- package/styles/auto-complete/_material3-definition.scss +0 -2
- package/styles/combo-box/_material3-definition.scss +0 -2
- package/styles/drop-down-base/_material3-definition.scss +0 -117
- package/styles/drop-down-list/_material3-definition.scss +0 -201
- package/styles/drop-down-tree/_material3-definition.scss +0 -60
- package/styles/list-box/_material3-definition.scss +0 -120
- package/styles/mention/_material3-definition.scss +0 -1
- package/styles/multi-select/_material3-definition.scss +0 -226
package/src/mention/mention.js
CHANGED
|
@@ -136,8 +136,11 @@ var Mention = /** @class */ (function (_super) {
|
|
|
136
136
|
* @returns {void}
|
|
137
137
|
*/
|
|
138
138
|
Mention.prototype.render = function () {
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
var isSelector = typeof this.target === 'string';
|
|
140
|
+
this.inputElement = !isNullOrUndefined(this.target) ?
|
|
141
|
+
this.checkAndUpdateInternalComponent(isSelector
|
|
142
|
+
? document.querySelector(this.target)
|
|
143
|
+
: this.target) : this.element;
|
|
141
144
|
if (this.isContentEditable(this.inputElement)) {
|
|
142
145
|
this.inputElement.setAttribute('contenteditable', 'true');
|
|
143
146
|
addClass([this.inputElement], ['e-mention']);
|
|
@@ -145,6 +148,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
145
148
|
addClass([this.inputElement], ['e-editable-element']);
|
|
146
149
|
}
|
|
147
150
|
}
|
|
151
|
+
this.inputElement.setAttribute('role', 'textbox');
|
|
148
152
|
this.queryString = this.elementValue();
|
|
149
153
|
this.wireEvent();
|
|
150
154
|
};
|
|
@@ -180,6 +184,18 @@ var Mention = /** @class */ (function (_super) {
|
|
|
180
184
|
detach(this.spinnerTemplateElement);
|
|
181
185
|
}
|
|
182
186
|
};
|
|
187
|
+
Mention.prototype.checkAndUpdateInternalComponent = function (targetElement) {
|
|
188
|
+
if (!this.isVue && targetElement.classList.contains('e-richtexteditor')) {
|
|
189
|
+
return targetElement.querySelector('.e-content');
|
|
190
|
+
}
|
|
191
|
+
if (this.isVue && targetElement.nodeName === 'TEXTAREA' && targetElement.classList.contains('e-rte-hidden')) {
|
|
192
|
+
var parentElement = targetElement.parentElement;
|
|
193
|
+
if (parentElement && parentElement.classList.contains('e-richtexteditor')) {
|
|
194
|
+
return parentElement.querySelector('.e-content');
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return targetElement;
|
|
198
|
+
};
|
|
183
199
|
/**
|
|
184
200
|
* Shows the spinner loader.
|
|
185
201
|
*
|
|
@@ -236,7 +252,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
236
252
|
if (this.isPopupOpen) {
|
|
237
253
|
e.preventDefault();
|
|
238
254
|
if (this.popupObj && this.popupObj.element.contains(this.selectedLI)) {
|
|
239
|
-
this.
|
|
255
|
+
this.updateSelectedItem(this.selectedLI, e, false, true);
|
|
240
256
|
}
|
|
241
257
|
}
|
|
242
258
|
break;
|
|
@@ -282,6 +298,10 @@ var Mention = /** @class */ (function (_super) {
|
|
|
282
298
|
};
|
|
283
299
|
Mention.prototype.onKeyUp = function (e) {
|
|
284
300
|
var rangetextContent;
|
|
301
|
+
this.isTyped = e.code !== 'Enter' && e.code !== 'Space' && e.code !== 'ArrowDown' && e.code !== 'ArrowUp' ? true : false;
|
|
302
|
+
if (document.activeElement != this.inputElement) {
|
|
303
|
+
this.inputElement.focus();
|
|
304
|
+
}
|
|
285
305
|
if (this.isContentEditable(this.inputElement)) {
|
|
286
306
|
this.range = this.getCurrentRange();
|
|
287
307
|
rangetextContent = this.range.startContainer.textContent.split('');
|
|
@@ -292,10 +312,6 @@ var Mention = /** @class */ (function (_super) {
|
|
|
292
312
|
var Regex = new RegExp(this.mentionChar, 'g');
|
|
293
313
|
var charRegex = new RegExp('[a-zA-Z]', 'g');
|
|
294
314
|
if (e.key === 'Shift' || e.keyCode === 37 || e.keyCode === 39) {
|
|
295
|
-
if ((e.keyCode === 37 || e.keyCode === 39) && !isNullOrUndefined(currentRange) &&
|
|
296
|
-
currentRange.indexOf(this.mentionChar) === -1 && this.isPopupOpen) {
|
|
297
|
-
this.hidePopup();
|
|
298
|
-
}
|
|
299
315
|
return;
|
|
300
316
|
}
|
|
301
317
|
if ((!currentRange || !lastWordRange) || e.code === 'Enter' || e.keyCode === 27 ||
|
|
@@ -310,7 +326,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
310
326
|
this.queryString = currentRange.substring(currentRange.lastIndexOf(this.mentionChar) + 1).replace('\u00a0', ' ');
|
|
311
327
|
this.searchLists(e);
|
|
312
328
|
}
|
|
313
|
-
else if (this.isPopupOpen && (!this.allowSpaces || !lastWordRange)) {
|
|
329
|
+
else if (this.isPopupOpen && (!this.allowSpaces || !lastWordRange) && (e.code !== 'ArrowDown' && e.code !== 'ArrowUp')) {
|
|
314
330
|
this.hidePopup();
|
|
315
331
|
this.lineBreak = true;
|
|
316
332
|
}
|
|
@@ -340,6 +356,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
340
356
|
this.initValue();
|
|
341
357
|
}
|
|
342
358
|
if (!this.isPopupOpen && e.keyCode !== 38 && e.keyCode !== 40) {
|
|
359
|
+
this.didPopupOpenByTypingInitialChar = true;
|
|
343
360
|
this.showPopup();
|
|
344
361
|
if (this.initRemoteRender && this.list.querySelectorAll('li').length === 0) {
|
|
345
362
|
this.showWaitingSpinner();
|
|
@@ -566,6 +583,17 @@ var Mention = /** @class */ (function (_super) {
|
|
|
566
583
|
*/
|
|
567
584
|
Mention.prototype.showPopup = function () {
|
|
568
585
|
this.beforePopupOpen = true;
|
|
586
|
+
if (document.activeElement != this.inputElement) {
|
|
587
|
+
this.inputElement.focus();
|
|
588
|
+
}
|
|
589
|
+
this.queryString = this.didPopupOpenByTypingInitialChar ? this.queryString : '';
|
|
590
|
+
this.didPopupOpenByTypingInitialChar = false;
|
|
591
|
+
if (this.isContentEditable(this.inputElement)) {
|
|
592
|
+
this.range = this.getCurrentRange();
|
|
593
|
+
}
|
|
594
|
+
if (!this.isTyped) {
|
|
595
|
+
this.resetList(this.dataSource, this.fields);
|
|
596
|
+
}
|
|
569
597
|
if (isNullOrUndefined(this.list)) {
|
|
570
598
|
this.initValue();
|
|
571
599
|
}
|
|
@@ -700,7 +728,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
700
728
|
});
|
|
701
729
|
};
|
|
702
730
|
Mention.prototype.setHeight = function (popupEle) {
|
|
703
|
-
if (this.popupHeight !== 'auto') {
|
|
731
|
+
if (this.popupHeight !== 'auto' && this.list) {
|
|
704
732
|
this.list.style.maxHeight = (parseInt(this.listHeight, 10) - 2).toString() + 'px'; // due to box-sizing property
|
|
705
733
|
popupEle.style.maxHeight = formatUnit(this.popupHeight);
|
|
706
734
|
}
|
|
@@ -729,7 +757,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
729
757
|
mostRecentTriggerCharPos = idx;
|
|
730
758
|
}
|
|
731
759
|
}
|
|
732
|
-
return mostRecentTriggerCharPos;
|
|
760
|
+
return mostRecentTriggerCharPos ? mostRecentTriggerCharPos : 0;
|
|
733
761
|
};
|
|
734
762
|
Mention.prototype.initializePopup = function (element, offsetValue, left) {
|
|
735
763
|
var _this = this;
|
|
@@ -807,14 +835,37 @@ var Mention = /** @class */ (function (_super) {
|
|
|
807
835
|
var selectedNodePosition = this.getTriggerCharPosition();
|
|
808
836
|
globalRange = this.range;
|
|
809
837
|
range = document.createRange();
|
|
810
|
-
|
|
811
|
-
|
|
838
|
+
if (this.getTextRange() && this.getTextRange().lastIndexOf(this.mentionChar) !== -1 && this.isTyped) {
|
|
839
|
+
range.setStart(globalRange.startContainer, selectedNodePosition);
|
|
840
|
+
range.setEnd(globalRange.startContainer, selectedNodePosition);
|
|
841
|
+
}
|
|
842
|
+
else {
|
|
843
|
+
range.setStart(globalRange.startContainer, globalRange.startOffset);
|
|
844
|
+
range.setEnd(globalRange.startContainer, globalRange.endOffset);
|
|
845
|
+
}
|
|
846
|
+
this.isTyped = false;
|
|
812
847
|
range.collapse(false);
|
|
813
|
-
rect = range.getBoundingClientRect();
|
|
848
|
+
rect = range.getBoundingClientRect().top === 0 ? range.startContainer.getClientRects()[0] : range.getBoundingClientRect();
|
|
814
849
|
}
|
|
815
850
|
var doc = document.documentElement;
|
|
816
851
|
var windowLeft = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
|
|
817
852
|
var windowTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
|
|
853
|
+
var width = 0;
|
|
854
|
+
if (!isNullOrUndefined(range) && range.getBoundingClientRect().top === 0) {
|
|
855
|
+
for (var i = 0; i < this.range.startContainer.childNodes.length; i++) {
|
|
856
|
+
if (this.range.startContainer.childNodes[i].nodeType !== Node.TEXT_NODE && this.range.startContainer.childNodes[i].textContent.trim() !== '') {
|
|
857
|
+
width += this.range.startContainer.childNodes[i].getClientRects()[0].width;
|
|
858
|
+
}
|
|
859
|
+
else if (this.range.startContainer.childNodes[i].textContent !== '') {
|
|
860
|
+
var span_1 = document.createElement("span");
|
|
861
|
+
span_1.innerHTML = this.range.startContainer.childNodes[i].nodeValue;
|
|
862
|
+
document.body.appendChild(span_1);
|
|
863
|
+
var textNodeWidth = span_1.offsetWidth;
|
|
864
|
+
document.body.removeChild(span_1);
|
|
865
|
+
width += textNodeWidth;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
818
869
|
if (!this.isContentEditable(this.inputElement)) {
|
|
819
870
|
coordinates = {
|
|
820
871
|
top: rect.top + windowTop + span.offsetTop + parseInt(computed.borderTopWidth, 10) +
|
|
@@ -826,7 +877,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
826
877
|
else {
|
|
827
878
|
coordinates = {
|
|
828
879
|
top: rect.top + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10) - (this.isCollided ? 10 : 0),
|
|
829
|
-
left: rect.left + windowLeft
|
|
880
|
+
left: rect.left + windowLeft + width
|
|
830
881
|
};
|
|
831
882
|
}
|
|
832
883
|
return coordinates;
|
|
@@ -877,6 +928,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
877
928
|
if (!this.isValidLI(li)) {
|
|
878
929
|
return;
|
|
879
930
|
}
|
|
931
|
+
this.isSelected = true;
|
|
880
932
|
this.setSelection(li, e);
|
|
881
933
|
var delay = 100;
|
|
882
934
|
this.closePopup(delay, e);
|
|
@@ -889,7 +941,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
889
941
|
this.removeHover();
|
|
890
942
|
var value = this.getFormattedValue(li.getAttribute('data-value'));
|
|
891
943
|
var selectedData = this.getDataByValue(value);
|
|
892
|
-
if (!preventSelect && !isNullOrUndefined(e)) {
|
|
944
|
+
if (!preventSelect && !isNullOrUndefined(e) && !(e.action === "down" || e.action === "up")) {
|
|
893
945
|
var items = this.detachChanges(selectedData);
|
|
894
946
|
this.isSelected = true;
|
|
895
947
|
var eventArgs = {
|
|
@@ -902,6 +954,8 @@ var Mention = /** @class */ (function (_super) {
|
|
|
902
954
|
this.trigger('select', eventArgs, function (eventArgs) {
|
|
903
955
|
if (eventArgs.cancel) {
|
|
904
956
|
li.classList.remove(dropDownBaseClasses.selected);
|
|
957
|
+
_this.isSelected = false;
|
|
958
|
+
_this.isSelectCancel = true;
|
|
905
959
|
}
|
|
906
960
|
else {
|
|
907
961
|
_this.selectEventCallback(li, selectedData, value);
|
|
@@ -1055,6 +1109,10 @@ var Mention = /** @class */ (function (_super) {
|
|
|
1055
1109
|
var selection = this.inputElement.ownerDocument.getSelection();
|
|
1056
1110
|
var startPos = this.getTriggerCharPosition();
|
|
1057
1111
|
textSuffix = typeof this.suffixText === 'string' ? this.suffixText : '';
|
|
1112
|
+
if (this.isSelectCancel) {
|
|
1113
|
+
this.isSelectCancel = false;
|
|
1114
|
+
return;
|
|
1115
|
+
}
|
|
1058
1116
|
if (dataItem.text !== null) {
|
|
1059
1117
|
value = this.mentionVal(dataItem.text);
|
|
1060
1118
|
}
|
|
@@ -1079,8 +1137,21 @@ var Mention = /** @class */ (function (_super) {
|
|
|
1079
1137
|
}
|
|
1080
1138
|
globalRange = this.range;
|
|
1081
1139
|
range = document.createRange();
|
|
1082
|
-
|
|
1083
|
-
|
|
1140
|
+
if (((this.getTextRange() && this.getTextRange().lastIndexOf(this.mentionChar) !== -1 && this.isTyped) || this.getTextRange() && this.getTextRange().trim() === '@')) {
|
|
1141
|
+
range.setStart(globalRange.startContainer, startPos);
|
|
1142
|
+
range.setEnd(globalRange.startContainer, endPos);
|
|
1143
|
+
}
|
|
1144
|
+
else {
|
|
1145
|
+
if (globalRange.commonAncestorContainer.textContent.trim() !== '' && !isNullOrUndefined(globalRange.commonAncestorContainer.textContent.trim()) && this.getTextRange() && this.getTextRange().lastIndexOf(this.mentionChar) !== -1) {
|
|
1146
|
+
range.setStart(globalRange.startContainer, globalRange.startOffset - 1);
|
|
1147
|
+
range.setEnd(globalRange.startContainer, globalRange.endOffset - 1);
|
|
1148
|
+
}
|
|
1149
|
+
else {
|
|
1150
|
+
range.setStart(globalRange.startContainer, globalRange.startOffset);
|
|
1151
|
+
range.setEnd(globalRange.startContainer, globalRange.endOffset);
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
this.isTyped = false;
|
|
1084
1155
|
range.deleteContents();
|
|
1085
1156
|
var element = this.createElement('div');
|
|
1086
1157
|
element.innerHTML = value;
|
|
@@ -190,7 +190,6 @@
|
|
|
190
190
|
.e-dropdownbase .e-list-item {
|
|
191
191
|
/* stylelint-disable property-no-vendor-prefix */
|
|
192
192
|
-webkit-tap-highlight-color: transparent;
|
|
193
|
-
background-color: #2a2a2a;
|
|
194
193
|
border-bottom: 1px;
|
|
195
194
|
border-color: #6e6e6e;
|
|
196
195
|
color: #f0f0f0;
|
|
@@ -200,11 +199,11 @@
|
|
|
200
199
|
min-height: 26px;
|
|
201
200
|
padding-right: 20px;
|
|
202
201
|
text-indent: 20px;
|
|
202
|
+
background-color: #2a2a2a;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
.e-dropdownbase .e-list-group-item,
|
|
206
206
|
.e-fixed-head {
|
|
207
|
-
background-color: #2a2a2a;
|
|
208
207
|
border-color: #6e6e6e;
|
|
209
208
|
color: #3e98ff;
|
|
210
209
|
font-family: inherit;
|
|
@@ -214,6 +213,7 @@
|
|
|
214
213
|
min-height: 26px;
|
|
215
214
|
padding-left: 20px;
|
|
216
215
|
padding-right: 20px;
|
|
216
|
+
background-color: #2a2a2a;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
.e-dropdownbase .e-list-item.e-active, .e-dropdownbase .e-list-item.e-active.e-hover {
|
|
@@ -547,9 +547,6 @@
|
|
|
547
547
|
.e-popup-full-page .e-popup-full-page.e-ddl.e-popup.e-ddl-device-filter {
|
|
548
548
|
margin: 0;
|
|
549
549
|
}
|
|
550
|
-
.e-popup-full-page .e-popup-full-page.e-ios {
|
|
551
|
-
position: fixed;
|
|
552
|
-
}
|
|
553
550
|
|
|
554
551
|
.e-ddl.e-control-wrapper .e-ddl-disable-icon {
|
|
555
552
|
position: relative;
|
|
@@ -2457,10 +2454,6 @@ ejs-multiselect {
|
|
|
2457
2454
|
.e-listbox-container * {
|
|
2458
2455
|
box-sizing: border-box;
|
|
2459
2456
|
}
|
|
2460
|
-
.e-listbox-wrapper.e-listboxtool-container .e-list-wrap,
|
|
2461
|
-
.e-listbox-container.e-listboxtool-container .e-list-wrap {
|
|
2462
|
-
width: 86% !important; /* stylelint-disable-line declaration-no-important */
|
|
2463
|
-
}
|
|
2464
2457
|
.e-listbox-wrapper:focus,
|
|
2465
2458
|
.e-listbox-container:focus {
|
|
2466
2459
|
outline: none;
|
|
@@ -2827,12 +2820,6 @@ ejs-listbox {
|
|
|
2827
2820
|
margin-left: 15px;
|
|
2828
2821
|
}
|
|
2829
2822
|
|
|
2830
|
-
.e-bigger .e-listbox-wrapper.e-listboxtool-container .e-list-wrap,
|
|
2831
|
-
.e-listbox-wrapper.e-bigger.e-listboxtool-container .e-list-wrap,
|
|
2832
|
-
.e-bigger .e-listbox-container.e-listboxtool-container .e-list-wrap,
|
|
2833
|
-
.e-listbox-container.e-bigger.e-listboxtool-container .e-list-wrap {
|
|
2834
|
-
width: 85% !important; /* stylelint-disable-line declaration-no-important */
|
|
2835
|
-
}
|
|
2836
2823
|
.e-bigger .e-listbox-wrapper .e-list-item,
|
|
2837
2824
|
.e-listbox-wrapper.e-bigger .e-list-item,
|
|
2838
2825
|
.e-bigger .e-listbox-container .e-list-item,
|
package/styles/bootstrap.css
CHANGED
|
@@ -190,7 +190,6 @@
|
|
|
190
190
|
.e-dropdownbase .e-list-item {
|
|
191
191
|
/* stylelint-disable property-no-vendor-prefix */
|
|
192
192
|
-webkit-tap-highlight-color: transparent;
|
|
193
|
-
background-color: #fff;
|
|
194
193
|
border-bottom: 1px;
|
|
195
194
|
border-color: #fff;
|
|
196
195
|
color: #333;
|
|
@@ -200,11 +199,11 @@
|
|
|
200
199
|
min-height: 26px;
|
|
201
200
|
padding-right: 20px;
|
|
202
201
|
text-indent: 20px;
|
|
202
|
+
background-color: #fff;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
.e-dropdownbase .e-list-group-item,
|
|
206
206
|
.e-fixed-head {
|
|
207
|
-
background-color: #fff;
|
|
208
207
|
border-color: #fff;
|
|
209
208
|
color: #777;
|
|
210
209
|
font-family: inherit;
|
|
@@ -214,6 +213,7 @@
|
|
|
214
213
|
min-height: 26px;
|
|
215
214
|
padding-left: 20px;
|
|
216
215
|
padding-right: 20px;
|
|
216
|
+
background-color: #fff;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
.e-dropdownbase .e-list-item.e-active, .e-dropdownbase .e-list-item.e-active.e-hover {
|
|
@@ -547,9 +547,6 @@
|
|
|
547
547
|
.e-popup-full-page .e-popup-full-page.e-ddl.e-popup.e-ddl-device-filter {
|
|
548
548
|
margin: 0;
|
|
549
549
|
}
|
|
550
|
-
.e-popup-full-page .e-popup-full-page.e-ios {
|
|
551
|
-
position: fixed;
|
|
552
|
-
}
|
|
553
550
|
|
|
554
551
|
.e-ddl.e-control-wrapper .e-ddl-disable-icon {
|
|
555
552
|
position: relative;
|
package/styles/bootstrap4.css
CHANGED
|
@@ -2,14 +2,6 @@
|
|
|
2
2
|
padding: 0 8px 0 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.e-bigger .e-content.e-dropdownbase {
|
|
6
|
-
padding: 8px 0;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.e-content.e-dropdownbase {
|
|
10
|
-
padding: 6px 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
5
|
.e-bigger .e-dropdownbase .e-list-item .e-list-icon {
|
|
14
6
|
font-size: 16px;
|
|
15
7
|
}
|
|
@@ -208,7 +200,6 @@
|
|
|
208
200
|
.e-dropdownbase .e-list-item {
|
|
209
201
|
/* stylelint-disable property-no-vendor-prefix */
|
|
210
202
|
-webkit-tap-highlight-color: transparent;
|
|
211
|
-
background-color: #fff;
|
|
212
203
|
border-bottom: 1px;
|
|
213
204
|
border-color: #fff;
|
|
214
205
|
color: #212529;
|
|
@@ -218,11 +209,11 @@
|
|
|
218
209
|
min-height: 26px;
|
|
219
210
|
padding-right: 24px;
|
|
220
211
|
text-indent: 20px;
|
|
212
|
+
background-color: #fff;
|
|
221
213
|
}
|
|
222
214
|
|
|
223
215
|
.e-dropdownbase .e-list-group-item,
|
|
224
216
|
.e-fixed-head {
|
|
225
|
-
background-color: #fff;
|
|
226
217
|
border-color: #fff;
|
|
227
218
|
color: #6c757d;
|
|
228
219
|
font-family: inherit;
|
|
@@ -232,6 +223,7 @@
|
|
|
232
223
|
min-height: 26px;
|
|
233
224
|
padding-left: 20px;
|
|
234
225
|
padding-right: 24px;
|
|
226
|
+
background-color: #fff;
|
|
235
227
|
}
|
|
236
228
|
|
|
237
229
|
.e-dropdownbase .e-list-item.e-active, .e-dropdownbase .e-list-item.e-active.e-hover {
|
|
@@ -591,9 +583,6 @@
|
|
|
591
583
|
.e-popup-full-page .e-popup-full-page.e-ddl.e-popup.e-ddl-device-filter {
|
|
592
584
|
margin: 0;
|
|
593
585
|
}
|
|
594
|
-
.e-popup-full-page .e-popup-full-page.e-ios {
|
|
595
|
-
position: fixed;
|
|
596
|
-
}
|
|
597
586
|
|
|
598
587
|
.e-ddl.e-control-wrapper .e-ddl-disable-icon {
|
|
599
588
|
position: relative;
|
|
@@ -622,7 +611,7 @@
|
|
|
622
611
|
border-top-width: 0;
|
|
623
612
|
box-shadow: none;
|
|
624
613
|
display: block;
|
|
625
|
-
padding:
|
|
614
|
+
padding: 6px;
|
|
626
615
|
}
|
|
627
616
|
|
|
628
617
|
.e-ddl.e-input-group:not(.e-disabled) {
|
|
@@ -217,7 +217,6 @@
|
|
|
217
217
|
.e-dropdownbase .e-list-item {
|
|
218
218
|
/* stylelint-disable property-no-vendor-prefix */
|
|
219
219
|
-webkit-tap-highlight-color: transparent;
|
|
220
|
-
background-color: #343a40;
|
|
221
220
|
border-bottom: 0;
|
|
222
221
|
border-color: #444c54;
|
|
223
222
|
color: #fff;
|
|
@@ -227,11 +226,11 @@
|
|
|
227
226
|
min-height: 30px;
|
|
228
227
|
padding-right: 16px;
|
|
229
228
|
text-indent: 12px;
|
|
229
|
+
background-color: #343a40;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.e-dropdownbase .e-list-group-item,
|
|
233
233
|
.e-fixed-head {
|
|
234
|
-
background-color: #343a40;
|
|
235
234
|
border-color: #444c54;
|
|
236
235
|
color: #7b848d;
|
|
237
236
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
@@ -241,6 +240,7 @@
|
|
|
241
240
|
min-height: 30px;
|
|
242
241
|
padding-left: 12px;
|
|
243
242
|
padding-right: 16px;
|
|
243
|
+
background-color: #343a40;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
.e-dropdownbase .e-list-item.e-active, .e-dropdownbase .e-list-item.e-active.e-hover {
|
|
@@ -613,9 +613,6 @@
|
|
|
613
613
|
.e-popup-full-page .e-popup-full-page.e-ddl.e-popup.e-ddl-device-filter {
|
|
614
614
|
margin: 0;
|
|
615
615
|
}
|
|
616
|
-
.e-popup-full-page .e-popup-full-page.e-ios {
|
|
617
|
-
position: fixed;
|
|
618
|
-
}
|
|
619
616
|
|
|
620
617
|
.e-ddl.e-control-wrapper .e-ddl-disable-icon {
|
|
621
618
|
position: relative;
|
|
@@ -1573,7 +1570,7 @@ ejs-dropdownlist {
|
|
|
1573
1570
|
.e-multi-select-wrapper .e-chips > .e-chipcontent {
|
|
1574
1571
|
max-width: 100%;
|
|
1575
1572
|
overflow: hidden;
|
|
1576
|
-
padding: 0 6px
|
|
1573
|
+
padding: 0 6px 1px 0;
|
|
1577
1574
|
text-indent: 0;
|
|
1578
1575
|
text-overflow: ellipsis;
|
|
1579
1576
|
white-space: nowrap;
|
|
@@ -2114,7 +2111,7 @@ ejs-multiselect {
|
|
|
2114
2111
|
}
|
|
2115
2112
|
|
|
2116
2113
|
.e-small.e-bigger .e-multi-select-wrapper .e-delim-values {
|
|
2117
|
-
font-size:
|
|
2114
|
+
font-size: 12px;
|
|
2118
2115
|
line-height: 28px;
|
|
2119
2116
|
}
|
|
2120
2117
|
|
|
@@ -2572,7 +2569,7 @@ ejs-multiselect {
|
|
|
2572
2569
|
}
|
|
2573
2570
|
|
|
2574
2571
|
.e-bigger.e-small .e-multi-select-wrapper .e-chips > .e-chipcontent {
|
|
2575
|
-
font-size:
|
|
2572
|
+
font-size: 12px;
|
|
2576
2573
|
}
|
|
2577
2574
|
|
|
2578
2575
|
.e-bigger.e-small .e-multi-select-wrapper .e-chips .e-chips-close::before {
|
package/styles/bootstrap5.css
CHANGED
|
@@ -217,7 +217,6 @@
|
|
|
217
217
|
.e-dropdownbase .e-list-item {
|
|
218
218
|
/* stylelint-disable property-no-vendor-prefix */
|
|
219
219
|
-webkit-tap-highlight-color: transparent;
|
|
220
|
-
background-color: #fff;
|
|
221
220
|
border-bottom: 0;
|
|
222
221
|
border-color: #dee2e6;
|
|
223
222
|
color: #212529;
|
|
@@ -227,11 +226,11 @@
|
|
|
227
226
|
min-height: 30px;
|
|
228
227
|
padding-right: 16px;
|
|
229
228
|
text-indent: 12px;
|
|
229
|
+
background-color: #fff;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.e-dropdownbase .e-list-group-item,
|
|
233
233
|
.e-fixed-head {
|
|
234
|
-
background-color: #fff;
|
|
235
234
|
border-color: #dee2e6;
|
|
236
235
|
color: #6c757d;
|
|
237
236
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
@@ -241,6 +240,7 @@
|
|
|
241
240
|
min-height: 30px;
|
|
242
241
|
padding-left: 12px;
|
|
243
242
|
padding-right: 16px;
|
|
243
|
+
background-color: #fff;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
.e-dropdownbase .e-list-item.e-active, .e-dropdownbase .e-list-item.e-active.e-hover {
|
|
@@ -613,9 +613,6 @@
|
|
|
613
613
|
.e-popup-full-page .e-popup-full-page.e-ddl.e-popup.e-ddl-device-filter {
|
|
614
614
|
margin: 0;
|
|
615
615
|
}
|
|
616
|
-
.e-popup-full-page .e-popup-full-page.e-ios {
|
|
617
|
-
position: fixed;
|
|
618
|
-
}
|
|
619
616
|
|
|
620
617
|
.e-ddl.e-control-wrapper .e-ddl-disable-icon {
|
|
621
618
|
position: relative;
|
|
@@ -1573,7 +1570,7 @@ ejs-dropdownlist {
|
|
|
1573
1570
|
.e-multi-select-wrapper .e-chips > .e-chipcontent {
|
|
1574
1571
|
max-width: 100%;
|
|
1575
1572
|
overflow: hidden;
|
|
1576
|
-
padding: 0 6px
|
|
1573
|
+
padding: 0 6px 1px 0;
|
|
1577
1574
|
text-indent: 0;
|
|
1578
1575
|
text-overflow: ellipsis;
|
|
1579
1576
|
white-space: nowrap;
|
|
@@ -2114,7 +2111,7 @@ ejs-multiselect {
|
|
|
2114
2111
|
}
|
|
2115
2112
|
|
|
2116
2113
|
.e-small.e-bigger .e-multi-select-wrapper .e-delim-values {
|
|
2117
|
-
font-size:
|
|
2114
|
+
font-size: 12px;
|
|
2118
2115
|
line-height: 28px;
|
|
2119
2116
|
}
|
|
2120
2117
|
|
|
@@ -2572,7 +2569,7 @@ ejs-multiselect {
|
|
|
2572
2569
|
}
|
|
2573
2570
|
|
|
2574
2571
|
.e-bigger.e-small .e-multi-select-wrapper .e-chips > .e-chipcontent {
|
|
2575
|
-
font-size:
|
|
2572
|
+
font-size: 12px;
|
|
2576
2573
|
}
|
|
2577
2574
|
|
|
2578
2575
|
.e-bigger.e-small .e-multi-select-wrapper .e-chips .e-chips-close::before {
|
|
@@ -69,14 +69,6 @@ $ddl-group-list-item-text-intent: 0 !default;
|
|
|
69
69
|
padding: 0 8px 0 0;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.e-bigger .e-content.e-dropdownbase {
|
|
73
|
-
padding: 8px 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.e-content.e-dropdownbase {
|
|
77
|
-
padding: 6px 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
72
|
.e-bigger .e-dropdownbase .e-list-item .e-list-icon {
|
|
81
73
|
font-size: 16px;
|
|
82
74
|
}
|
|
@@ -28,14 +28,14 @@ $ddl-list-header-font-size: $text-sm !default;
|
|
|
28
28
|
|
|
29
29
|
// Small Size
|
|
30
30
|
|
|
31
|
-
$ddl-small-icon-font-size:
|
|
31
|
+
$ddl-small-icon-font-size: $font-icon-14 !default;
|
|
32
32
|
$ddl-small-line-height: 26px !default;
|
|
33
33
|
$ddl-small-list-text-indent: 8px !default;
|
|
34
34
|
$ddl-small-list-header-font-size: $text-xxs !default;
|
|
35
35
|
|
|
36
36
|
// Touch Small
|
|
37
37
|
|
|
38
|
-
$ddl-bigger-small-icon-font-size:
|
|
38
|
+
$ddl-bigger-small-icon-font-size: $font-icon-18 !default;
|
|
39
39
|
$ddl-bigger-small-line-height: 30px !default;
|
|
40
40
|
$ddl-bigger-small-list-text-indent: 16px !default;
|
|
41
41
|
$ddl-bigger-text-indent: 16px !default;
|
|
@@ -31,14 +31,14 @@ $ddl-bigger-small-list-nodata-font-size: $text-sm;
|
|
|
31
31
|
|
|
32
32
|
// Small Size
|
|
33
33
|
|
|
34
|
-
$ddl-small-icon-font-size:
|
|
34
|
+
$ddl-small-icon-font-size: $font-icon-14 !default;
|
|
35
35
|
$ddl-small-line-height: 26px !default;
|
|
36
36
|
$ddl-small-list-text-indent: 8px !default;
|
|
37
37
|
$ddl-small-list-header-font-size: $text-xxs !default;
|
|
38
38
|
|
|
39
39
|
// Touch Small
|
|
40
40
|
|
|
41
|
-
$ddl-bigger-small-icon-font-size:
|
|
41
|
+
$ddl-bigger-small-icon-font-size: $font-icon-18 !default;
|
|
42
42
|
$ddl-bigger-small-line-height: 30px !default;
|
|
43
43
|
$ddl-bigger-small-list-text-indent: 8px !default;
|
|
44
44
|
$ddl-bigger-text-indent: 8px !default;
|
|
@@ -32,14 +32,14 @@ $ddl-bigger-small-list-nodata-font-size: $text-sm !default;
|
|
|
32
32
|
|
|
33
33
|
// Small Size
|
|
34
34
|
|
|
35
|
-
$ddl-small-icon-font-size:
|
|
35
|
+
$ddl-small-icon-font-size: $font-icon-14 !default;
|
|
36
36
|
$ddl-small-line-height: 24px !default;
|
|
37
37
|
$ddl-small-list-text-indent: 8px !default;
|
|
38
38
|
$ddl-small-list-header-font-size: $text-xxs !default;
|
|
39
39
|
|
|
40
40
|
// Touch Small
|
|
41
41
|
|
|
42
|
-
$ddl-bigger-small-icon-font-size:
|
|
42
|
+
$ddl-bigger-small-icon-font-size: $font-icon-18 !default;
|
|
43
43
|
$ddl-bigger-small-line-height: 32px !default;
|
|
44
44
|
$ddl-bigger-small-list-text-indent: 14px !default;
|
|
45
45
|
$ddl-bigger-small-list-header-font-size: $text-xs !default;
|