@syncfusion/ej2-dropdowns 20.2.48 → 20.2.50

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 : 20.2.48
3
+ * version : 20.2.50
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@20.2.46",
3
+ "_id": "@syncfusion/ej2-dropdowns@20.2.48",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-H0MyOJ0tnDT7J6f6MGbkNMPeWogMSdAAAtMMh1MM4uD9WcKoyO4KgeY5EzPxaotUR/qwZbEzFCIsDCG9ryN/HA==",
5
+ "_integrity": "sha512-pC28blWr9V3M37JGaDVsRWLABah2p0qhXNrr7vt1PuFwrVv8NEhYQs1ogCfQn/q5P+J9l++FKVCFgZigDhwGRQ==",
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-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.2.46.tgz",
37
- "_shasum": "8b2a5885e1032e680776a7c6078f7cd3b6304933",
36
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.2.48.tgz",
37
+ "_shasum": "1469370e5706faae5edcb5fdbdc3651a2172298b",
38
38
  "_spec": "@syncfusion/ej2-dropdowns@*",
39
39
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
40
40
  "author": {
@@ -46,8 +46,8 @@
46
46
  "@syncfusion/ej2-data": "~20.2.45",
47
47
  "@syncfusion/ej2-inputs": "~20.2.48",
48
48
  "@syncfusion/ej2-lists": "~20.2.46",
49
- "@syncfusion/ej2-navigations": "~20.2.48",
50
- "@syncfusion/ej2-popups": "~20.2.45"
49
+ "@syncfusion/ej2-navigations": "~20.2.50",
50
+ "@syncfusion/ej2-popups": "~20.2.49"
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.2.48",
75
+ "version": "20.2.50",
76
76
  "sideEffects": false
77
77
  }
@@ -332,6 +332,10 @@ var AutoComplete = /** @class */ (function (_super) {
332
332
  if (this.showPopupButton) {
333
333
  var button = Input.appendSpan(dropDownListClasses.icon, this.inputWrapper.container, this.createElement);
334
334
  this.inputWrapper.buttons[0] = button;
335
+ Input.calculateWidth(this.inputElement, this.inputWrapper.container);
336
+ if (!isNullOrUndefined(this.inputWrapper.buttons[0]) && !isNullOrUndefined(this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0]) && this.floatLabelType !== 'Never') {
337
+ this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
338
+ }
335
339
  if (this.inputWrapper && this.inputWrapper.buttons && this.inputWrapper.buttons[0]) {
336
340
  EventHandler.add(this.inputWrapper.buttons[0], 'click', this.dropDownClick, this);
337
341
  }
@@ -486,6 +486,7 @@ var ComboBox = /** @class */ (function (_super) {
486
486
  this.preventFocus = false;
487
487
  }
488
488
  this.onFocus(e);
489
+ Input.calculateWidth(this.inputElement, this.inputWrapper.container);
489
490
  };
490
491
  ComboBox.prototype.dropDownClick = function (e) {
491
492
  e.preventDefault();
@@ -1531,7 +1531,7 @@ var DropDownList = /** @class */ (function (_super) {
1531
1531
  && ((this.dataSource instanceof DataManager)
1532
1532
  || (!isNullOrUndefined(this.dataSource) && !isNullOrUndefined(this.dataSource.length) &&
1533
1533
  this.dataSource.length !== 0)))) {
1534
- if (this.itemTemplate && this.element.tagName === 'EJS-COMBOBOX' && this.allowFiltering) {
1534
+ if (this.itemTemplate && (this.element.tagName === 'EJS-COMBOBOX' || this.element.tagName === 'EJS-DROPDOWNLIST') && this.allowFiltering) {
1535
1535
  setTimeout(function () {
1536
1536
  _this.updateActionCompleteDataValues(ulElement, list);
1537
1537
  }, 0);
@@ -2089,6 +2089,10 @@ var DropDownList = /** @class */ (function (_super) {
2089
2089
  this.setFields();
2090
2090
  this.inputWrapper.container.style.width = formatUnit(this.width);
2091
2091
  this.inputWrapper.container.classList.add('e-ddl');
2092
+ Input.calculateWidth(this.inputElement, this.inputWrapper.container);
2093
+ if (!isNullOrUndefined(this.inputWrapper) && !isNullOrUndefined(this.inputWrapper.buttons[0]) && this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0] && this.floatLabelType !== 'Never') {
2094
+ this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
2095
+ }
2092
2096
  this.wireEvent();
2093
2097
  this.tabIndex = this.element.hasAttribute('tabindex') ? this.element.getAttribute('tabindex') : '0';
2094
2098
  this.element.removeAttribute('tabindex');
@@ -2282,6 +2286,7 @@ var DropDownList = /** @class */ (function (_super) {
2282
2286
  break;
2283
2287
  case 'width':
2284
2288
  this_1.setEleWidth(newProp.width);
2289
+ Input.calculateWidth(this_1.inputElement, this_1.inputWrapper.container);
2285
2290
  break;
2286
2291
  case 'placeholder':
2287
2292
  Input.setPlaceholder(newProp.placeholder, this_1.inputElement);
@@ -2299,6 +2304,7 @@ var DropDownList = /** @class */ (function (_super) {
2299
2304
  break;
2300
2305
  case 'cssClass':
2301
2306
  this_1.setCssClass(newProp.cssClass, oldProp.cssClass);
2307
+ Input.calculateWidth(this_1.inputElement, this_1.inputWrapper.container);
2302
2308
  break;
2303
2309
  case 'enableRtl':
2304
2310
  this_1.setEnableRtl();
@@ -2445,6 +2451,9 @@ var DropDownList = /** @class */ (function (_super) {
2445
2451
  case 'floatLabelType':
2446
2452
  Input.removeFloating(this_1.inputWrapper);
2447
2453
  Input.addFloating(this_1.inputElement, newProp.floatLabelType, this_1.placeholder, this_1.createElement);
2454
+ if (!isNullOrUndefined(this_1.inputWrapper.buttons[0]) && this_1.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0] && this_1.floatLabelType !== 'Never') {
2455
+ this_1.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
2456
+ }
2448
2457
  break;
2449
2458
  case 'showClearButton':
2450
2459
  Input.setClearButton(newProp.showClearButton, this_1.inputElement, this_1.inputWrapper, null, this_1.createElement);
@@ -2632,6 +2641,7 @@ var DropDownList = /** @class */ (function (_super) {
2632
2641
  }
2633
2642
  addClass([this.inputWrapper.container], [dropDownListClasses.inputFocus]);
2634
2643
  this.onFocus(e);
2644
+ Input.calculateWidth(this.inputElement, this.inputWrapper.container);
2635
2645
  };
2636
2646
  /**
2637
2647
  * Moves the focus from the component if the component is already focused.
@@ -2649,6 +2659,7 @@ var DropDownList = /** @class */ (function (_super) {
2649
2659
  this.targetElement().blur();
2650
2660
  }
2651
2661
  removeClass([this.inputWrapper.container], [dropDownListClasses.inputFocus]);
2662
+ Input.calculateWidth(this.inputElement, this.inputWrapper.container);
2652
2663
  };
2653
2664
  /**
2654
2665
  * Removes the component from the DOM and detaches all its related event handlers. Also it removes the attributes and classes.
@@ -1,4 +1,4 @@
1
- import { DropDownBase, SelectEventArgs, dropDownBaseClasses, PopupEventArgs, FilteringEventArgs } from '../drop-down-base/drop-down-base';import { FocusEventArgs, BeforeOpenEventArgs, FilterType, FieldSettings, ResultData } from '../drop-down-base/drop-down-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { Popup, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { IInput, FloatLabelType } from '@syncfusion/ej2-inputs';import { attributes, setValue, SanitizeHtmlHelper, getValue } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, extend } from '@syncfusion/ej2-base';import { EventHandler, Property, Event, compile, L10n, EmitType, KeyboardEventArgs } from '@syncfusion/ej2-base';import { Animation, AnimationModel, Browser, prepend, Complex } from '@syncfusion/ej2-base';import { Search } from '../common/incremental-search';import { append, addClass, removeClass, closest, detach, remove, select, selectAll } from '@syncfusion/ej2-base';import { getUniqueID, formatUnit, isNullOrUndefined, isUndefined, ModuleDeclaration } from '@syncfusion/ej2-base';import { DataManager, Query, Predicate } from '@syncfusion/ej2-data';import { SortOrder } from '@syncfusion/ej2-lists';import { createFloatLabel, removeFloating, floatLabelFocus, floatLabelBlur, encodePlaceholder } from './float-label';
1
+ import { DropDownBase, SelectEventArgs, dropDownBaseClasses, PopupEventArgs, FilteringEventArgs } from '../drop-down-base/drop-down-base';import { FocusEventArgs, BeforeOpenEventArgs, FilterType, FieldSettings, ResultData } from '../drop-down-base/drop-down-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { Popup, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { IInput, FloatLabelType, Input } from '@syncfusion/ej2-inputs';import { attributes, setValue, SanitizeHtmlHelper, getValue } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, extend } from '@syncfusion/ej2-base';import { EventHandler, Property, Event, compile, L10n, EmitType, KeyboardEventArgs } from '@syncfusion/ej2-base';import { Animation, AnimationModel, Browser, prepend, Complex } from '@syncfusion/ej2-base';import { Search } from '../common/incremental-search';import { append, addClass, removeClass, closest, detach, remove, select, selectAll } from '@syncfusion/ej2-base';import { getUniqueID, formatUnit, isNullOrUndefined, isUndefined, ModuleDeclaration } from '@syncfusion/ej2-base';import { DataManager, Query, Predicate } from '@syncfusion/ej2-data';import { SortOrder } from '@syncfusion/ej2-lists';import { createFloatLabel, removeFloating, floatLabelFocus, floatLabelBlur, encodePlaceholder } from './float-label';
2
2
  import {visualMode,MultiSelectChangeEventArgs,RemoveEventArgs,ISelectAllEventArgs,TaggingEventArgs,CustomValueEventArgs} from "./multi-select";
3
3
  import {DropDownBaseModel} from "../drop-down-base/drop-down-base-model";
4
4
 
@@ -22,6 +22,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
22
22
  import { DropDownBase, dropDownBaseClasses } from '../drop-down-base/drop-down-base';
23
23
  import { FieldSettings } from '../drop-down-base/drop-down-base';
24
24
  import { Popup, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
25
+ import { Input } from '@syncfusion/ej2-inputs';
25
26
  import { attributes, setValue, SanitizeHtmlHelper, getValue } from '@syncfusion/ej2-base';
26
27
  import { NotifyPropertyChanges, extend } from '@syncfusion/ej2-base';
27
28
  import { EventHandler, Property, Event, compile, L10n } from '@syncfusion/ej2-base';
@@ -861,6 +862,11 @@ var MultiSelect = /** @class */ (function (_super) {
861
862
  this.ulElement = this.mainList;
862
863
  }
863
864
  this.checkPlaceholderSize();
865
+ Input.createSpanElement(this.overAllWrapper, this.createElement);
866
+ Input.calculateWidth(this.inputElement, this.overAllWrapper);
867
+ if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
868
+ this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
869
+ }
864
870
  };
865
871
  MultiSelect.prototype.checkPlaceholderSize = function () {
866
872
  if (this.showDropDownIcon) {
@@ -991,6 +997,7 @@ var MultiSelect = /** @class */ (function (_super) {
991
997
  if (this.isPopupOpen()) {
992
998
  this.refreshPopup();
993
999
  }
1000
+ Input.calculateWidth(this.inputElement, this.overAllWrapper);
994
1001
  return true;
995
1002
  }
996
1003
  else {
@@ -3466,6 +3473,7 @@ var MultiSelect = /** @class */ (function (_super) {
3466
3473
  case 'cssClass':
3467
3474
  this.updateOldPropCssClass(oldProp.cssClass);
3468
3475
  this.updateCssClass();
3476
+ Input.calculateWidth(this.inputElement.parentElement.parentElement, this.overAllWrapper);
3469
3477
  break;
3470
3478
  case 'enableRtl':
3471
3479
  this.enableRTL(newProp.enableRtl);
@@ -3492,6 +3500,11 @@ var MultiSelect = /** @class */ (function (_super) {
3492
3500
  case 'floatLabelType':
3493
3501
  this.setFloatLabelType();
3494
3502
  this.addValidInputClass();
3503
+ Input.createSpanElement(this.overAllWrapper, this.createElement);
3504
+ Input.calculateWidth(this.inputElement.parentElement.parentElement, this.overAllWrapper);
3505
+ if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
3506
+ this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
3507
+ }
3495
3508
  break;
3496
3509
  case 'enableSelectionOrder':
3497
3510
  break;
@@ -3829,6 +3842,11 @@ var MultiSelect = /** @class */ (function (_super) {
3829
3842
  if (this.element.hasAttribute('data-val')) {
3830
3843
  this.element.setAttribute('data-val', 'false');
3831
3844
  }
3845
+ Input.createSpanElement(this.overAllWrapper, this.createElement);
3846
+ Input.calculateWidth(this.inputElement, this.overAllWrapper);
3847
+ if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
3848
+ this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
3849
+ }
3832
3850
  this.renderComplete();
3833
3851
  };
3834
3852
  MultiSelect.prototype.checkInitialValue = function () {