@syncfusion/ej2-multicolumn-combobox 26.2.8 → 26.2.9

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.
@@ -187,6 +187,12 @@ var GridSettings = /** @__PURE__ @class */ (function (_super) {
187
187
  __decorate([
188
188
  Property('Default')
189
189
  ], GridSettings.prototype, "gridLines", void 0);
190
+ __decorate([
191
+ Property(false)
192
+ ], GridSettings.prototype, "allowTextWrap", void 0);
193
+ __decorate([
194
+ Property(WrapMode.Both)
195
+ ], GridSettings.prototype, "textWrapMode", void 0);
190
196
  return GridSettings;
191
197
  }(ChildProperty));
192
198
  /**
@@ -295,7 +301,8 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
295
301
  enableRtl: this.enableRtl,
296
302
  editSettings: { allowAdding: false },
297
303
  query: this.query,
298
- allowTextWrap: this.allowTextWrap,
304
+ allowTextWrap: this.gridSettings.allowTextWrap,
305
+ textWrapSettings: { wrapMode: this.gridSettings.textWrapMode },
299
306
  height: this.popupHeight,
300
307
  allowMultiSorting: this.sortType.toString().toLowerCase() === 'multiplecolumns' && this.allowSorting,
301
308
  rowTemplate: this.itemTemplate,
@@ -340,7 +347,6 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
340
347
  this.gridObj.sortSettings = { columns: [{ field: this.fields.text, direction: sortOrder === 'ascending' ?
341
348
  SortOrder.Ascending : SortOrder.Descending }] };
342
349
  }
343
- this.gridObj.textWrapSettings.wrapMode = this.textWrapMode;
344
350
  this.gridObj.appendTo(this.gridEle);
345
351
  };
346
352
  // eslint-disable @typescript-eslint/no-explicit-any
@@ -1580,6 +1586,12 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
1580
1586
  this.gridObj.gridLines = newProp.gridSettings.gridLines;
1581
1587
  this.gridObj.rowHeight = newProp.gridSettings.rowHeight;
1582
1588
  this.gridObj.enableAltRow = newProp.gridSettings.enableAltRow;
1589
+ if (!(isNullOrUndefined(newProp.gridSettings.allowTextWrap))) {
1590
+ this.gridObj.allowTextWrap = newProp.gridSettings.allowTextWrap;
1591
+ }
1592
+ if (!(isNullOrUndefined(newProp.gridSettings.textWrapMode))) {
1593
+ this.gridObj.textWrapSettings.wrapMode = newProp.gridSettings.textWrapMode;
1594
+ }
1583
1595
  }
1584
1596
  break;
1585
1597
  case 'fields':
@@ -1605,20 +1617,6 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
1605
1617
  this.allowSorting = this.gridObj.allowSorting = newProp.allowSorting;
1606
1618
  }
1607
1619
  break;
1608
- case 'allowTextWrap':
1609
- if (this.gridObj) {
1610
- if (!(isNullOrUndefined(newProp.allowTextWrap))) {
1611
- this.gridObj.allowTextWrap = newProp.allowTextWrap;
1612
- }
1613
- }
1614
- break;
1615
- case 'textWrapMode':
1616
- if (this.gridObj) {
1617
- if (!(isNullOrUndefined(newProp.textWrapMode))) {
1618
- this.gridObj.textWrapSettings.wrapMode = newProp.textWrapMode;
1619
- }
1620
- }
1621
- break;
1622
1620
  case 'columns':
1623
1621
  if (this.gridObj) {
1624
1622
  gridColumns = this.getGridColumns();
@@ -1700,12 +1698,6 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
1700
1698
  __decorate([
1701
1699
  Property()
1702
1700
  ], MultiColumnComboBox.prototype, "query", void 0);
1703
- __decorate([
1704
- Property(false)
1705
- ], MultiColumnComboBox.prototype, "allowTextWrap", void 0);
1706
- __decorate([
1707
- Property(WrapMode.Both)
1708
- ], MultiColumnComboBox.prototype, "textWrapMode", void 0);
1709
1701
  __decorate([
1710
1702
  Property(null)
1711
1703
  ], MultiColumnComboBox.prototype, "itemTemplate", void 0);