@syncfusion/ej2-dropdowns 19.3.48 → 19.3.53

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.3.48
3
+ * version : 19.3.53
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@19.3.47",
3
+ "_id": "@syncfusion/ej2-dropdowns@19.3.48",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-80BHmVskObNOXm5mfDPntsER6/i+RQ6fpuov+/D4vOu/709QxiT//IUbVDa5THRYsb1PtL16Wyi+exLRsTdO0w==",
5
+ "_integrity": "sha512-NxeOgcb/22jSsGxrmHVqm6WkBYulM03S+ksty7ALTRECFZ5xmOXAQ27ZNee6YiJxNQF0pyuU5Kk1EHKnM1zQeA==",
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-19.3.47.tgz",
37
- "_shasum": "695e0edaacca56306c171fb36cd82230e468ee67",
36
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.3.48.tgz",
37
+ "_shasum": "aeed874acf3f663d023e4fc2ef52eec6e1d4f1a2",
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.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"
45
+ "@syncfusion/ej2-base": "~19.3.53",
46
+ "@syncfusion/ej2-data": "~19.3.53",
47
+ "@syncfusion/ej2-inputs": "~19.3.53",
48
+ "@syncfusion/ej2-lists": "~19.3.53",
49
+ "@syncfusion/ej2-navigations": "~19.3.53",
50
+ "@syncfusion/ej2-popups": "~19.3.53"
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.48",
75
+ "version": "19.3.53",
76
76
  "sideEffects": false
77
77
  }
@@ -282,6 +282,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
282
282
  private filterDelayTime;
283
283
  private nestedTableUpdate;
284
284
  private clearIconWidth;
285
+ private isClicked;
285
286
  /**
286
287
  * Specifies the template that renders to the popup list content of the
287
288
  * Dropdown Tree component when the data fetch request from the remote server fails.
@@ -164,6 +164,7 @@ var DropDownTree = /** @class */ (function (_super) {
164
164
  // eslint-disable-next-line
165
165
  _this.selectedData = [];
166
166
  _this.filterDelayTime = 300;
167
+ _this.isClicked = false;
167
168
  return _this;
168
169
  }
169
170
  /**
@@ -1135,8 +1136,10 @@ var DropDownTree = /** @class */ (function (_super) {
1135
1136
  }
1136
1137
  this.checkWrapper = closest(target, '.' + CHECKBOXWRAP);
1137
1138
  if (!isNOU(this.checkWrapper)) {
1139
+ this.isClicked = true;
1138
1140
  var checkElement = select('.' + CHECKBOXFRAME, this.checkWrapper);
1139
1141
  this.changeState(this.checkWrapper, checkElement.classList.contains(CHECK) ? 'uncheck' : 'check', e);
1142
+ this.isClicked = false;
1140
1143
  }
1141
1144
  e.preventDefault();
1142
1145
  };
@@ -1835,7 +1838,7 @@ var DropDownTree = /** @class */ (function (_super) {
1835
1838
  }
1836
1839
  var eventArgs = {
1837
1840
  action: this.showCheckBox ? state : args.action,
1838
- isInteracted: args.isInteracted,
1841
+ isInteracted: this.isClicked ? true : args.isInteracted,
1839
1842
  item: args.node,
1840
1843
  itemData: this.showCheckBox ? checkData[0] : selectData
1841
1844
  };
@@ -1906,6 +1909,7 @@ var DropDownTree = /** @class */ (function (_super) {
1906
1909
  }
1907
1910
  var target = args.event.target;
1908
1911
  if ((target.classList.contains('e-fullrow') || target.classList.contains('e-list-text')) && this.showCheckBox) {
1912
+ this.isClicked = true;
1909
1913
  // eslint-disable-next-line
1910
1914
  var getNodeDetails = this.treeObj.getNode(args.node);
1911
1915
  if (getNodeDetails.isChecked === 'true') {
@@ -1914,6 +1918,7 @@ var DropDownTree = /** @class */ (function (_super) {
1914
1918
  else {
1915
1919
  this.treeObj.checkAll([args.node]);
1916
1920
  }
1921
+ this.isClicked = false;
1917
1922
  this.setMultiSelect();
1918
1923
  this.ensurePlaceHolder();
1919
1924
  }
@@ -148,7 +148,7 @@ var CheckBoxSelection = /** @class */ (function () {
148
148
  }
149
149
  if (this.parent.list.classList.contains('e-nodata') || (this.parent.listData && this.parent.listData.length <= 1 &&
150
150
  !(this.parent.isDynamicDataChange)) || (this.parent.isDynamicDataChange &&
151
- !isNullOrUndefined(this.parent.value) && this.parent.value.length <= 1)) {
151
+ this.parent.listData && this.parent.listData.length <= 1)) {
152
152
  this.checkAllParent.style.display = 'none';
153
153
  }
154
154
  else {
@@ -443,6 +443,15 @@ export interface MultiSelectModel extends DropDownBaseModel{
443
443
  */
444
444
  openOnClick?: boolean;
445
445
 
446
+ /**
447
+ * By default, the typed value is converting into chip or update as value of the component when you press the enter key or select from the popup.
448
+ * If you want to convert the typed value into chip or update as value of the component while focusing out the component, then enable this property.
449
+ * If custom value is enabled, both custom value and value present in the list are converted into tag while focusing out the component; Otherwise, value present in the list is converted into tag while focusing out the component.
450
+ *
451
+ * @default false
452
+ */
453
+ addTagOnBlur?: boolean;
454
+
446
455
  /**
447
456
  * Fires each time when selection changes happened in list items after model and input value get affected.
448
457
  *
@@ -440,6 +440,14 @@ export declare class MultiSelect extends DropDownBase implements IInput {
440
440
  * @default true
441
441
  */
442
442
  openOnClick: boolean;
443
+ /**
444
+ * By default, the typed value is converting into chip or update as value of the component when you press the enter key or select from the popup.
445
+ * If you want to convert the typed value into chip or update as value of the component while focusing out the component, then enable this property.
446
+ * If custom value is enabled, both custom value and value present in the list are converted into tag while focusing out the component; Otherwise, value present in the list is converted into tag while focusing out the component.
447
+ *
448
+ * @default false
449
+ */
450
+ addTagOnBlur: boolean;
443
451
  /**
444
452
  * Fires each time when selection changes happened in list items after model and input value get affected.
445
453
  *
@@ -815,6 +815,18 @@ var MultiSelect = /** @class */ (function (_super) {
815
815
  }
816
816
  this.inputFocus = false;
817
817
  this.overAllWrapper.classList.remove(FOCUS);
818
+ if (this.addTagOnBlur) {
819
+ var dataChecks = this.getValueByText(this.inputElement.value, this.ignoreCase, this.ignoreAccent);
820
+ var listLiElement = this.findListElement(this.list, 'li', 'data-value', dataChecks);
821
+ var className = this.hideSelectedItem ? HIDE_LIST : dropDownBaseClasses.selected;
822
+ var allowChipAddition = (listLiElement && !listLiElement.classList.contains(className)) ? true : false;
823
+ if (allowChipAddition) {
824
+ this.updateListSelection(listLiElement, eve);
825
+ if (this.mode === 'Delimiter') {
826
+ this.updateDelimeter(this.delimiterChar);
827
+ }
828
+ }
829
+ }
818
830
  this.refreshListItems(null);
819
831
  if (this.mode !== 'Box' && this.mode !== 'CheckBox') {
820
832
  this.updateDelimView();
@@ -4042,6 +4054,9 @@ var MultiSelect = /** @class */ (function (_super) {
4042
4054
  __decorate([
4043
4055
  Property(true)
4044
4056
  ], MultiSelect.prototype, "openOnClick", void 0);
4057
+ __decorate([
4058
+ Property(false)
4059
+ ], MultiSelect.prototype, "addTagOnBlur", void 0);
4045
4060
  __decorate([
4046
4061
  Event()
4047
4062
  ], MultiSelect.prototype, "change", void 0);
@@ -62,6 +62,7 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
+ color: inherit;
65
66
  }
66
67
 
67
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -62,6 +62,7 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
+ color: inherit;
65
66
  }
66
67
 
67
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -453,6 +453,7 @@
453
453
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
454
454
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
455
455
  background: transparent;
456
+ color: inherit;
456
457
  }
457
458
 
458
459
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -453,6 +453,7 @@
453
453
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
454
454
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
455
455
  background: transparent;
456
+ color: inherit;
456
457
  }
457
458
 
458
459
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -62,6 +62,7 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
+ color: inherit;
65
66
  }
66
67
 
67
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -62,6 +62,7 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
+ color: inherit;
65
66
  }
66
67
 
67
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -105,6 +105,7 @@ $ddl-filter-box-shadow: 0 1.5px 5px -2px $ddl-filter-box-shadow-color !default;
105
105
  .e-input-group#{&}.e-control-wrapper.e-ddl .e-input[readonly],
106
106
  .e-float-input#{&}.e-control-wrapper.e-ddl input[readonly] {
107
107
  background: transparent;
108
+ color: inherit;
108
109
  }
109
110
 
110
111
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -119,6 +119,7 @@
119
119
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
120
120
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
121
121
  background: transparent;
122
+ color: inherit;
122
123
  }
123
124
 
124
125
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -119,6 +119,7 @@
119
119
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
120
120
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
121
121
  background: transparent;
122
+ color: inherit;
122
123
  }
123
124
 
124
125
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],