@syncfusion/ej2-dropdowns 19.3.44 → 19.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.
Files changed (47) hide show
  1. package/.eslintrc.json +244 -0
  2. package/CHANGELOG.md +36 -0
  3. package/dist/ej2-dropdowns.umd.min.js +2 -2
  4. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-dropdowns.es2015.js +44 -27
  6. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  7. package/dist/es6/ej2-dropdowns.es5.js +44 -27
  8. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  9. package/dist/global/ej2-dropdowns.min.js +2 -2
  10. package/dist/global/ej2-dropdowns.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +11 -11
  13. package/src/combo-box/combo-box.js +1 -0
  14. package/src/drop-down-list/drop-down-list.d.ts +1 -0
  15. package/src/drop-down-list/drop-down-list.js +12 -0
  16. package/src/drop-down-tree/drop-down-tree.js +12 -9
  17. package/src/list-box/list-box.d.ts +4 -0
  18. package/src/list-box/list-box.js +3 -0
  19. package/src/multi-select/multi-select.js +16 -18
  20. package/styles/auto-complete/bootstrap4.css +5 -0
  21. package/styles/auto-complete/bootstrap5-dark.css +5 -0
  22. package/styles/auto-complete/bootstrap5.css +5 -0
  23. package/styles/bootstrap4.css +5 -0
  24. package/styles/bootstrap5-dark.css +5 -0
  25. package/styles/bootstrap5.css +5 -0
  26. package/styles/combo-box/bootstrap4.css +5 -0
  27. package/styles/combo-box/bootstrap5-dark.css +5 -0
  28. package/styles/combo-box/bootstrap5.css +5 -0
  29. package/styles/drop-down-list/_bootstrap4-definition.scss +6 -0
  30. package/styles/drop-down-list/_bootstrap5-definition.scss +6 -0
  31. package/styles/drop-down-list/bootstrap4.css +5 -0
  32. package/styles/drop-down-list/bootstrap5-dark.css +5 -0
  33. package/styles/drop-down-list/bootstrap5.css +5 -0
  34. package/styles/drop-down-tree/_layout.scss +461 -1
  35. package/styles/drop-down-tree/_material-dark-definition.scss +6 -1
  36. package/styles/drop-down-tree/_material-definition.scss +6 -1
  37. package/styles/drop-down-tree/_theme.scss +8 -0
  38. package/styles/drop-down-tree/material-dark.css +402 -1
  39. package/styles/drop-down-tree/material.css +402 -1
  40. package/styles/material-dark.css +496 -1
  41. package/styles/material.css +496 -1
  42. package/styles/multi-select/_layout.scss +116 -0
  43. package/styles/multi-select/_material-dark-definition.scss +22 -0
  44. package/styles/multi-select/_material-definition.scss +22 -0
  45. package/styles/multi-select/material-dark.css +94 -0
  46. package/styles/multi-select/material.css +94 -0
  47. package/tslint.json +111 -0
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.3.44
3
+ * version : 19.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@18.30.0",
3
+ "_id": "@syncfusion/ej2-dropdowns@19.3.47",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-HbSN59eHZPqqbgLc9V7BuGet6UvGMAugqPdluPOQHM8b24T5nW3LOo6eBUAgJBUlkCn5GNRgPfO7RzJ2uBBDtg==",
5
+ "_integrity": "sha512-80BHmVskObNOXm5mfDPntsER6/i+RQ6fpuov+/D4vOu/709QxiT//IUbVDa5THRYsb1PtL16Wyi+exLRsTdO0w==",
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-hotfix/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-18.30.0.tgz",
37
- "_shasum": "5ca64896701a7f48777b5cf629ed0038cf99a561",
36
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.3.47.tgz",
37
+ "_shasum": "695e0edaacca56306c171fb36cd82230e468ee67",
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": "~19.3.43",
46
- "@syncfusion/ej2-data": "~19.3.44",
47
- "@syncfusion/ej2-inputs": "~19.3.44",
48
- "@syncfusion/ej2-lists": "~19.3.44",
49
- "@syncfusion/ej2-navigations": "~19.3.44",
50
- "@syncfusion/ej2-popups": "~19.3.43"
45
+ "@syncfusion/ej2-base": "~19.3.47",
46
+ "@syncfusion/ej2-data": "~19.3.47",
47
+ "@syncfusion/ej2-inputs": "~19.3.48",
48
+ "@syncfusion/ej2-lists": "~19.3.48",
49
+ "@syncfusion/ej2-navigations": "~19.3.46",
50
+ "@syncfusion/ej2-popups": "~19.3.47"
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": "19.3.44",
75
+ "version": "19.3.48",
76
76
  "sideEffects": false
77
77
  }
@@ -583,6 +583,7 @@ var ComboBox = /** @class */ (function (_super) {
583
583
  EventHandler.add(this.inputElement, 'keyup', this.onFilterUp, this);
584
584
  EventHandler.add(this.inputElement, 'keydown', this.onFilterDown, this);
585
585
  }
586
+ this.setReadOnly();
586
587
  break;
587
588
  case 'allowFiltering':
588
589
  this.setSearchBox();
@@ -528,6 +528,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
528
528
  onPropertyChanged(newProp: DropDownListModel, oldProp: DropDownListModel): void;
529
529
  private checkValidLi;
530
530
  private setSelectionData;
531
+ protected setReadOnly(): void;
531
532
  private setCssClass;
532
533
  /**
533
534
  * Return the module name of this component.
@@ -2068,6 +2068,7 @@ var DropDownList = /** @class */ (function (_super) {
2068
2068
  });
2069
2069
  prepend([this.hiddenElement], this.inputWrapper.container);
2070
2070
  this.validationAttribute(this.element, this.hiddenElement);
2071
+ this.setReadOnly();
2071
2072
  this.setFields();
2072
2073
  this.inputWrapper.container.style.width = formatUnit(this.width);
2073
2074
  this.inputWrapper.container.classList.add('e-ddl');
@@ -2195,6 +2196,8 @@ var DropDownList = /** @class */ (function (_super) {
2195
2196
  this.actionData = this.actionCompleteData;
2196
2197
  }
2197
2198
  else if (this.allowFiltering && newProp.query && !isNullOrUndefined(Object.keys(newProp.query))) {
2199
+ this.actionCompleteData = this.getModuleName() === 'combobox' ?
2200
+ { ulElement: null, list: null, isUpdated: false } : this.actionCompleteData;
2198
2201
  this.actionData = this.actionCompleteData;
2199
2202
  }
2200
2203
  };
@@ -2262,6 +2265,7 @@ var DropDownList = /** @class */ (function (_super) {
2262
2265
  if (this.getModuleName() !== 'dropdownlist') {
2263
2266
  Input.setReadonly(newProp.readonly, this.inputElement);
2264
2267
  }
2268
+ this.setReadOnly();
2265
2269
  break;
2266
2270
  case 'cssClass':
2267
2271
  this.setCssClass(newProp.cssClass, oldProp.cssClass);
@@ -2421,6 +2425,14 @@ var DropDownList = /** @class */ (function (_super) {
2421
2425
  }
2422
2426
  };
2423
2427
  };
2428
+ DropDownList.prototype.setReadOnly = function () {
2429
+ if (this.readonly) {
2430
+ addClass([this.inputWrapper.container], ['e-readonly']);
2431
+ }
2432
+ else {
2433
+ removeClass([this.inputWrapper.container], ['e-readonly']);
2434
+ }
2435
+ };
2424
2436
  DropDownList.prototype.setCssClass = function (newClass, oldClass) {
2425
2437
  if (!isNullOrUndefined(oldClass)) {
2426
2438
  oldClass = (oldClass.replace(/\s+/g, ' ')).trim();
@@ -289,9 +289,9 @@ var DropDownTree = /** @class */ (function (_super) {
289
289
  this.createClearIcon();
290
290
  this.inputWrapper.classList.add(DROPDOWNTREE);
291
291
  this.setElementWidth(this.width);
292
- this.setAttributes();
293
292
  this.updateDataAttribute();
294
293
  this.setHTMLAttributes();
294
+ this.setAttributes();
295
295
  this.popupDiv = this.createElement('div', { className: CONTENT, attrs: { 'tabindex': '0' } });
296
296
  this.popupDiv.classList.add(DROPDOWN);
297
297
  this.tree = this.createElement('div', { id: this.element.id + '_tree' });
@@ -579,9 +579,6 @@ var DropDownTree = /** @class */ (function (_super) {
579
579
  this.isClearButtonClick = false;
580
580
  return;
581
581
  }
582
- if (!this.wrapText && e.target.classList.contains(CHIP_CLOSE)) {
583
- this.removeChip(e);
584
- }
585
582
  if (this.isPopupOpen) {
586
583
  this.hidePopup();
587
584
  }
@@ -652,7 +649,7 @@ var DropDownTree = /** @class */ (function (_super) {
652
649
  this.trigger('blur');
653
650
  };
654
651
  DropDownTree.prototype.updateView = function () {
655
- if ((!this.showCheckBox && !this.allowMultiSelection) || this.mode === 'Custom') {
652
+ if ((!this.showCheckBox && !this.allowMultiSelection) || this.mode === 'Custom' || this.inputFocus) {
656
653
  return;
657
654
  }
658
655
  if (this.mode !== 'Box') {
@@ -813,11 +810,18 @@ var DropDownTree = /** @class */ (function (_super) {
813
810
  switch (e.action) {
814
811
  case 'escape':
815
812
  case 'altUp':
813
+ if (_this.isPopupOpen) {
814
+ _this.hidePopup();
815
+ }
816
+ break;
816
817
  case 'shiftTab':
817
818
  case 'tab':
818
819
  if (_this.isPopupOpen) {
819
820
  _this.hidePopup();
820
821
  }
822
+ if (_this.inputFocus) {
823
+ _this.onFocusOut();
824
+ }
821
825
  break;
822
826
  case 'altDown':
823
827
  if (!_this.isPopupOpen) {
@@ -1087,10 +1091,10 @@ var DropDownTree = /** @class */ (function (_super) {
1087
1091
  this.inputWrapper.insertBefore(this.chipWrapper, this.hiddenElement);
1088
1092
  addClass([this.inputWrapper], SHOW_CHIP);
1089
1093
  var isValid = this.getValidMode();
1090
- if (isValid && this.value !== null) {
1094
+ if (isValid && this.value !== null && (this.value && this.value.length !== 0)) {
1091
1095
  addClass([this.inputEle], CHIP_INPUT);
1092
1096
  }
1093
- else if (this.value === null) {
1097
+ else if (this.value === null || (this.value && this.value.length === 0)) {
1094
1098
  addClass([this.chipWrapper], HIDEICON);
1095
1099
  }
1096
1100
  }
@@ -1188,7 +1192,7 @@ var DropDownTree = /** @class */ (function (_super) {
1188
1192
  }
1189
1193
  };
1190
1194
  DropDownTree.prototype.setAttributes = function () {
1191
- this.element.removeAttribute('tabindex');
1195
+ this.inputEle.setAttribute('tabindex', '-1');
1192
1196
  var id = this.element.getAttribute('id');
1193
1197
  this.hiddenElement.id = id + '_hidden';
1194
1198
  this.inputWrapper.setAttribute('tabindex', '0');
@@ -1364,7 +1368,6 @@ var DropDownTree = /** @class */ (function (_super) {
1364
1368
  else {
1365
1369
  if (this.showCheckBox) {
1366
1370
  this.treeObj.checkedNodes = this.value.slice();
1367
- setValue('selectedNodes', [], this.treeObj);
1368
1371
  this.treeObj.dataBind();
1369
1372
  this.setMultiSelect();
1370
1373
  }
@@ -678,6 +678,10 @@ export interface DropEventArgs {
678
678
  * Illustrates whether the current action needs to be prevented or not.
679
679
  */
680
680
  cancel?: boolean;
681
+ /**
682
+ * Illustrates whether the drag all action needs to be prevented or not.
683
+ */
684
+ isDragAll?: boolean | null;
681
685
  /**
682
686
  * Returns the selected list items.
683
687
  */
@@ -438,6 +438,9 @@ var ListBox = /** @class */ (function (_super) {
438
438
  args.items = this.getDataByValues([dragValue]);
439
439
  }
440
440
  this.trigger('beforeDrop', args);
441
+ if (args.isDragAll !== null) {
442
+ this.allowDragAll = args.isDragAll;
443
+ }
441
444
  };
442
445
  ListBox.prototype.dragEnd = function (args) {
443
446
  var _this = this;
@@ -2388,6 +2388,7 @@ var MultiSelect = /** @class */ (function (_super) {
2388
2388
  setValue(this.fields.value, value, newValue);
2389
2389
  var noDataEle = this.popupWrapper.querySelector('.' + dropDownBaseClasses.noData);
2390
2390
  this.addItem(newValue, indexItem);
2391
+ element = element ? element : this.findListElement(this.hideSelectedItem ? this.ulElement : this.list, 'li', 'data-value', value);
2391
2392
  if (this.popupWrapper.contains(noDataEle)) {
2392
2393
  this.list.setAttribute('style', noDataEle.getAttribute('style'));
2393
2394
  this.popupWrapper.replaceChild(this.list, noDataEle);
@@ -2436,6 +2437,10 @@ var MultiSelect = /** @class */ (function (_super) {
2436
2437
  this.popupObj = null;
2437
2438
  this.renderPopup();
2438
2439
  }
2440
+ else if (this.allowCustomValue) {
2441
+ this.list = list;
2442
+ this.mainList = this.ulElement = list.querySelector('ul');
2443
+ }
2439
2444
  };
2440
2445
  MultiSelect.prototype.updateDataList = function () {
2441
2446
  if (this.mainList && this.ulElement && this.mainList.childElementCount < this.ulElement.childElementCount) {
@@ -2916,16 +2921,12 @@ var MultiSelect = /** @class */ (function (_super) {
2916
2921
  l10n = new L10n('dropdowns', l10nLocale, this.locale);
2917
2922
  }
2918
2923
  var remainContent = l10n.getConstant('overflowCountTemplate');
2924
+ var totalContent = l10n.getConstant('totalCountTemplate');
2919
2925
  var raminElement = this.createElement('span', {
2920
2926
  className: REMAIN_WRAPPER
2921
2927
  });
2922
- var compiledString = compile(remainContent);
2923
- var totalCompiledString = compile(l10n.getConstant('totalCountTemplate'));
2924
- // eslint-disable-next-line
2925
- var remainCompildTemp = compiledString({ 'count': this.value.length }, this, 'overflowCountTemplate', null, !this.isStringTemplate, null, raminElement);
2926
- if (remainCompildTemp && remainCompildTemp.length > 0) {
2927
- raminElement.appendChild(remainCompildTemp[0]);
2928
- }
2928
+ var remainCompildTemp = remainContent.replace('${count}', this.value.length.toString());
2929
+ raminElement.innerText = remainCompildTemp;
2929
2930
  this.viewWrapper.appendChild(raminElement);
2930
2931
  this.renderReactTemplates();
2931
2932
  var remainSize = raminElement.offsetWidth;
@@ -2977,9 +2978,9 @@ var MultiSelect = /** @class */ (function (_super) {
2977
2978
  }
2978
2979
  if (remaining > 0) {
2979
2980
  var totalWidth = overAllContainer - downIconWidth - this.clearIconWidth;
2980
- this.viewWrapper.appendChild(this.updateRemainTemplate(raminElement, this.viewWrapper, remaining, compiledString, totalCompiledString, totalWidth));
2981
+ this.viewWrapper.appendChild(this.updateRemainTemplate(raminElement, this.viewWrapper, remaining, remainContent, totalContent, totalWidth));
2981
2982
  this.updateRemainWidth(this.viewWrapper, totalWidth);
2982
- this.updateRemainingText(raminElement, downIconWidth, remaining, compiledString, totalCompiledString);
2983
+ this.updateRemainingText(raminElement, downIconWidth, remaining, remainContent, totalContent);
2983
2984
  }
2984
2985
  }
2985
2986
  else {
@@ -2999,17 +3000,14 @@ var MultiSelect = /** @class */ (function (_super) {
2999
3000
  viewWrapper.style.width = totalWidth + 'px';
3000
3001
  }
3001
3002
  };
3002
- MultiSelect.prototype.updateRemainTemplate = function (raminElement, viewWrapper, remaining, compiledString, totalCompiledString, totalWidth) {
3003
+ MultiSelect.prototype.updateRemainTemplate = function (raminElement, viewWrapper, remaining, remainContent, totalContent, totalWidth) {
3003
3004
  if (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3 && viewWrapper.firstChild.nodeValue === '') {
3004
3005
  viewWrapper.removeChild(viewWrapper.firstChild);
3005
3006
  }
3006
3007
  raminElement.innerHTML = '';
3007
- // eslint-disable-next-line
3008
- var remainTemp = compiledString({ 'count': remaining }, this, 'overflowCountTemplate', null, !this.isStringTemplate, null, raminElement);
3009
- // eslint-disable-next-line
3010
- var totalTemp = totalCompiledString({ 'count': remaining }, this, 'totalCountTemplate', null, !this.isStringTemplate, null, raminElement);
3011
- raminElement.appendChild((viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) ?
3012
- remainTemp && remainTemp[0] : totalTemp && totalTemp[0]);
3008
+ var remainTemp = remainContent.replace('${count}', remaining.toString());
3009
+ var totalTemp = totalContent.replace('${count}', remaining.toString());
3010
+ raminElement.innerText = (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) ? remainTemp : totalTemp;
3013
3011
  if (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) {
3014
3012
  viewWrapper.classList.remove(TOTAL_COUNT_WRAPPER);
3015
3013
  }
@@ -3019,7 +3017,7 @@ var MultiSelect = /** @class */ (function (_super) {
3019
3017
  }
3020
3018
  return raminElement;
3021
3019
  };
3022
- MultiSelect.prototype.updateRemainingText = function (raminElement, downIconWidth, remaining, compiledString, totalCompiledString) {
3020
+ MultiSelect.prototype.updateRemainingText = function (raminElement, downIconWidth, remaining, remainContent, totalContent) {
3023
3021
  var overAllContainer = this.componentWrapper.offsetWidth -
3024
3022
  parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
3025
3023
  parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
@@ -3038,7 +3036,7 @@ var MultiSelect = /** @class */ (function (_super) {
3038
3036
  wrapperleng = this.viewWrapper.offsetWidth;
3039
3037
  }
3040
3038
  var totalWidth = overAllContainer - downIconWidth;
3041
- this.updateRemainTemplate(raminElement, this.viewWrapper, remaining, compiledString, totalCompiledString, totalWidth);
3039
+ this.updateRemainTemplate(raminElement, this.viewWrapper, remaining, remainContent, totalContent, totalWidth);
3042
3040
  }
3043
3041
  };
3044
3042
  MultiSelect.prototype.getOverflowVal = function (index) {
@@ -68,6 +68,11 @@
68
68
  background: transparent;
69
69
  }
70
70
 
71
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
72
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
73
+ background: #e9ecef;
74
+ }
75
+
71
76
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
72
77
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
73
78
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -64,6 +64,11 @@
64
64
  background: transparent;
65
65
  }
66
66
 
67
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
68
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
69
+ background: #343a40;
70
+ }
71
+
67
72
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
68
73
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
69
74
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -64,6 +64,11 @@
64
64
  background: transparent;
65
65
  }
66
66
 
67
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
68
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
69
+ background: #e9ecef;
70
+ }
71
+
67
72
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
68
73
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
69
74
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -449,6 +449,11 @@
449
449
  background: transparent;
450
450
  }
451
451
 
452
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
453
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
454
+ background: #e9ecef;
455
+ }
456
+
452
457
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
453
458
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
454
459
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -455,6 +455,11 @@
455
455
  background: transparent;
456
456
  }
457
457
 
458
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
459
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
460
+ background: #343a40;
461
+ }
462
+
458
463
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
459
464
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
460
465
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -455,6 +455,11 @@
455
455
  background: transparent;
456
456
  }
457
457
 
458
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
459
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
460
+ background: #e9ecef;
461
+ }
462
+
458
463
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
459
464
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
460
465
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -68,6 +68,11 @@
68
68
  background: transparent;
69
69
  }
70
70
 
71
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
72
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
73
+ background: #e9ecef;
74
+ }
75
+
71
76
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
72
77
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
73
78
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -64,6 +64,11 @@
64
64
  background: transparent;
65
65
  }
66
66
 
67
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
68
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
69
+ background: #343a40;
70
+ }
71
+
67
72
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
68
73
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
69
74
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -64,6 +64,11 @@
64
64
  background: transparent;
65
65
  }
66
66
 
67
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
68
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
69
+ background: #e9ecef;
70
+ }
71
+
67
72
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
68
73
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
69
74
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -23,6 +23,7 @@ $ddl-back-icon-margin: -2px 10px 0 -54px !default;
23
23
  $ddl-back-icon-padding: 0 !default;
24
24
  $ddl-icon-color: rgba($black, .5) !default;
25
25
  $ddl-icon-hover-color: rgba($black, .4) !default;
26
+ $ddl-readonly-bg-color: $gray-200 !default;
26
27
 
27
28
  // small size
28
29
  $ddl-small-list-font-size: 13px !default;
@@ -106,6 +107,11 @@ $ddl-bigger-small-list-font-size: 14px !default;
106
107
  background: transparent;
107
108
  }
108
109
 
110
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
111
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
112
+ background: $ddl-readonly-bg-color;
113
+ }
114
+
109
115
  .e-input-group:not(.e-disabled) .e-control#{&}.e-dropdownlist ~ .e-ddl-icon:active,
110
116
  .e-input-group:not(.e-disabled) .e-control#{&}.e-dropdownlist ~ .e-ddl-icon:hover,
111
117
  .e-control#{&}.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -15,6 +15,7 @@ $ddl-clear-icon-margin-right: 66px !default;
15
15
  $ddl-back-icon-margin: 0 10px 0 -52px !default;
16
16
  $ddl-back-icon-padding: 0 8px !default;
17
17
  $ddl-popup-shadow: $shadow-lg !default;
18
+ $ddl-readonly-bg-color: $content-bg-color-alt2 !default;
18
19
 
19
20
  // Small Size
20
21
  $ddl-small-list-font-size: $text-xs !default;
@@ -106,6 +107,11 @@ $ddl-filter-box-shadow: 0 1.5px 5px -2px $ddl-filter-box-shadow-color !default;
106
107
  background: transparent;
107
108
  }
108
109
 
110
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
111
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
112
+ background: $ddl-readonly-bg-color;
113
+ }
114
+
109
115
  .e-input-group:not(.e-disabled) .e-control#{&}.e-dropdownlist ~ .e-ddl-icon:active,
110
116
  .e-input-group:not(.e-disabled) .e-control#{&}.e-dropdownlist ~ .e-ddl-icon:hover,
111
117
  .e-control#{&}.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -117,6 +117,11 @@
117
117
  background: transparent;
118
118
  }
119
119
 
120
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
121
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
122
+ background: #e9ecef;
123
+ }
124
+
120
125
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
121
126
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
122
127
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -121,6 +121,11 @@
121
121
  background: transparent;
122
122
  }
123
123
 
124
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
125
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
126
+ background: #343a40;
127
+ }
128
+
124
129
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
125
130
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
126
131
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
@@ -121,6 +121,11 @@
121
121
  background: transparent;
122
122
  }
123
123
 
124
+ .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
125
+ .e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
126
+ background: #e9ecef;
127
+ }
128
+
124
129
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
125
130
  .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
126
131
  .e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,