@syncfusion/ej2-multicolumn-combobox 27.2.5 → 28.1.33
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/README.md +2 -2
- package/dist/ej2-multicolumn-combobox.umd.min.js +3 -3
- package/dist/ej2-multicolumn-combobox.umd.min.js.map +1 -1
- package/dist/es6/ej2-multicolumn-combobox.es2015.js +210 -177
- package/dist/es6/ej2-multicolumn-combobox.es2015.js.map +1 -1
- package/dist/es6/ej2-multicolumn-combobox.es5.js +251 -178
- package/dist/es6/ej2-multicolumn-combobox.es5.js.map +1 -1
- package/dist/global/ej2-multicolumn-combobox.min.js +3 -3
- package/dist/global/ej2-multicolumn-combobox.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +8 -8
- package/src/global.js +0 -2
- package/src/multicolumn-combobox/index.d.ts +0 -1
- package/src/multicolumn-combobox/index.js +0 -1
- package/src/multicolumn-combobox/multi-column-combo-box-model.d.ts +1 -1
- package/src/multicolumn-combobox/multi-column-combo-box.d.ts +5 -0
- package/src/multicolumn-combobox/multi-column-combo-box.js +253 -179
- package/styles/bds-lite.css +416 -0
- package/styles/bds-lite.scss +10 -0
- package/styles/bds.css +467 -0
- package/styles/bds.scss +11 -0
- package/styles/bootstrap-dark-lite.css +3 -0
- package/styles/bootstrap-dark.css +3 -0
- package/styles/bootstrap-lite.css +3 -0
- package/styles/bootstrap.css +3 -0
- package/styles/bootstrap4-lite.css +3 -0
- package/styles/bootstrap4.css +3 -0
- package/styles/bootstrap5-dark-lite.css +3 -0
- package/styles/bootstrap5-dark.css +3 -0
- package/styles/bootstrap5-lite.css +3 -0
- package/styles/bootstrap5.3-lite.css +3 -0
- package/styles/bootstrap5.3.css +3 -0
- package/styles/bootstrap5.css +3 -0
- package/styles/fabric-dark-lite.css +3 -0
- package/styles/fabric-dark.css +3 -0
- package/styles/fabric-lite.css +3 -0
- package/styles/fabric.css +3 -0
- package/styles/fluent-dark-lite.css +3 -0
- package/styles/fluent-dark.css +3 -0
- package/styles/fluent-lite.css +3 -0
- package/styles/fluent.css +3 -0
- package/styles/fluent2-lite.css +3 -0
- package/styles/fluent2.css +3 -0
- package/styles/highcontrast-light-lite.css +3 -0
- package/styles/highcontrast-light.css +3 -0
- package/styles/highcontrast-lite.css +4 -1
- package/styles/highcontrast.css +4 -1
- package/styles/material-dark-lite.css +3 -0
- package/styles/material-dark.css +3 -0
- package/styles/material-lite.css +3 -0
- package/styles/material.css +3 -0
- package/styles/material3-dark-lite.css +3 -0
- package/styles/material3-dark.css +3 -0
- package/styles/material3-lite.css +3 -0
- package/styles/material3.css +3 -0
- package/styles/multicolumn-combobox/_layout.scss +3 -0
- package/styles/multicolumn-combobox/_tailwind3-definition.scss +32 -0
- package/styles/multicolumn-combobox/bds.css +467 -0
- package/styles/multicolumn-combobox/bds.scss +11 -0
- package/styles/multicolumn-combobox/bootstrap-dark.css +3 -0
- package/styles/multicolumn-combobox/bootstrap.css +3 -0
- package/styles/multicolumn-combobox/bootstrap4.css +3 -0
- package/styles/multicolumn-combobox/bootstrap5-dark.css +3 -0
- package/styles/multicolumn-combobox/bootstrap5.3.css +3 -0
- package/styles/multicolumn-combobox/bootstrap5.css +3 -0
- package/styles/multicolumn-combobox/fabric-dark.css +3 -0
- package/styles/multicolumn-combobox/fabric.css +3 -0
- package/styles/multicolumn-combobox/fluent-dark.css +3 -0
- package/styles/multicolumn-combobox/fluent.css +3 -0
- package/styles/multicolumn-combobox/fluent2.css +3 -0
- package/styles/multicolumn-combobox/highcontrast-light.css +3 -0
- package/styles/multicolumn-combobox/highcontrast.css +4 -1
- package/styles/multicolumn-combobox/icons/_tailwind3.scss +6 -0
- package/styles/multicolumn-combobox/material-dark.css +3 -0
- package/styles/multicolumn-combobox/material.css +3 -0
- package/styles/multicolumn-combobox/material3-dark.css +3 -0
- package/styles/multicolumn-combobox/material3.css +3 -0
- package/styles/multicolumn-combobox/tailwind-dark.css +3 -0
- package/styles/multicolumn-combobox/tailwind.css +3 -0
- package/styles/multicolumn-combobox/tailwind3.css +375 -0
- package/styles/multicolumn-combobox/tailwind3.scss +11 -0
- package/styles/tailwind-dark-lite.css +3 -0
- package/styles/tailwind-dark.css +3 -0
- package/styles/tailwind-lite.css +3 -0
- package/styles/tailwind.css +3 -0
- package/styles/tailwind3-lite.css +324 -0
- package/styles/tailwind3-lite.scss +10 -0
- package/styles/tailwind3.css +375 -0
- package/styles/tailwind3.scss +11 -0
|
@@ -3,7 +3,6 @@ import { Input } from '@syncfusion/ej2-inputs';
|
|
|
3
3
|
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
4
4
|
import { Popup } from '@syncfusion/ej2-popups';
|
|
5
5
|
import { Grid, VirtualScroll, Group, Edit, Sort, Resize } from '@syncfusion/ej2-grids';
|
|
6
|
-
export { Edit, Group, Sort, VirtualScroll } from '@syncfusion/ej2-grids';
|
|
7
6
|
|
|
8
7
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
9
8
|
var extendStatics = function (d, b) {
|
|
@@ -24,6 +23,41 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
24
23
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
25
24
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26
25
|
};
|
|
26
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
35
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
|
+
function step(op) {
|
|
39
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
+
while (_) try {
|
|
41
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
|
+
switch (op[0]) {
|
|
44
|
+
case 0: case 1: t = op; break;
|
|
45
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
46
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
47
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
48
|
+
default:
|
|
49
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
50
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
51
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
52
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
53
|
+
if (t[2]) _.ops.pop();
|
|
54
|
+
_.trys.pop(); continue;
|
|
55
|
+
}
|
|
56
|
+
op = body.call(thisArg, _);
|
|
57
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
58
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
|
+
}
|
|
60
|
+
};
|
|
27
61
|
var DROPDOWNICON = 'e-input-group-icon e-multicolumn-list-icon e-icons';
|
|
28
62
|
var CONTENT = 'e-popup-content';
|
|
29
63
|
var ICONANIMATION = 'e-icon-anim';
|
|
@@ -256,7 +290,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
256
290
|
moveDown: 'downarrow',
|
|
257
291
|
moveUp: 'uparrow'
|
|
258
292
|
};
|
|
259
|
-
this.matchedRowEle = this.matchedContent = null;
|
|
293
|
+
this.matchedRowEle = this.matchedContent = this.exactMatchedContent = null;
|
|
260
294
|
this.persistData();
|
|
261
295
|
};
|
|
262
296
|
MultiColumnComboBox.prototype.getDirective = function () {
|
|
@@ -282,7 +316,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
282
316
|
};
|
|
283
317
|
MultiColumnComboBox.prototype.persistData = function () {
|
|
284
318
|
if (this.enablePersistence) {
|
|
285
|
-
this.element.id
|
|
319
|
+
this.element.id += '_wrapper';
|
|
286
320
|
var data = window.localStorage.getItem(this.getModuleName() + this.element.id);
|
|
287
321
|
if (!(isNullOrUndefined(data) || (data === ''))) {
|
|
288
322
|
this.setProperties(JSON.parse(data), true);
|
|
@@ -301,6 +335,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
301
335
|
MultiColumnComboBox.prototype.renderGrid = function () {
|
|
302
336
|
var _this = this;
|
|
303
337
|
var gridColumns = this.getGridColumns();
|
|
338
|
+
var sortOrder = this.sortOrder.toString().toLowerCase();
|
|
304
339
|
this.gridObj = new Grid({
|
|
305
340
|
dataSource: this.dataSource,
|
|
306
341
|
columns: gridColumns,
|
|
@@ -323,22 +358,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
323
358
|
actionFailure: function (args) { _this.onActionFailure(args); },
|
|
324
359
|
actionBegin: function (args) { _this.trigger('actionBegin', args); },
|
|
325
360
|
actionComplete: this.handleActionComplete.bind(this),
|
|
326
|
-
keyPressed:
|
|
327
|
-
if (args.key === 'Enter') {
|
|
328
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
329
|
-
args.cancel = true;
|
|
330
|
-
if (_this.isPopupOpen) {
|
|
331
|
-
_this.selectedGridRow(_this.gridObj.getRows()[_this.gridObj.selectedRowIndex], args, true);
|
|
332
|
-
_this.hidePopup(args);
|
|
333
|
-
_this.focusIn(args);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
if (_this.fields.groupBy) {
|
|
337
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
338
|
-
args.cancel = true;
|
|
339
|
-
_this.gridKeyActionHandler(args, true);
|
|
340
|
-
}
|
|
341
|
-
},
|
|
361
|
+
keyPressed: this.handleKeyPressed.bind(this),
|
|
342
362
|
resizing: function (args) {
|
|
343
363
|
if (_this.gridSettings.resizing) {
|
|
344
364
|
_this.gridSettings.resizing.call(_this, args);
|
|
@@ -357,7 +377,6 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
357
377
|
});
|
|
358
378
|
this.gridEle = this.createElement('div', { id: getUniqueID('grid'), className: MULTICOLUMNGRID });
|
|
359
379
|
this.updateGroupByField();
|
|
360
|
-
var sortOrder = this.sortOrder.toString().toLowerCase();
|
|
361
380
|
if (gridColumns.length > 0) {
|
|
362
381
|
// Set first column as primary key to avoid PRIMARY KEY MISSING warning.
|
|
363
382
|
this.gridObj.columns[0].isPrimaryKey = true;
|
|
@@ -376,25 +395,39 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
376
395
|
this.popupObj.refreshPosition();
|
|
377
396
|
this.gridObj.element.querySelector('.e-content').scrollTop = 0;
|
|
378
397
|
};
|
|
398
|
+
MultiColumnComboBox.prototype.handleKeyPressed = function (args) {
|
|
399
|
+
if (args.key === 'Enter') {
|
|
400
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
401
|
+
args.cancel = true;
|
|
402
|
+
if (this.isPopupOpen) {
|
|
403
|
+
this.selectedGridRow(this.gridObj.getRows()[this.gridObj.selectedRowIndex], args, true);
|
|
404
|
+
this.hidePopup(args);
|
|
405
|
+
this.focusIn(args);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
if (this.fields.groupBy) {
|
|
409
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
410
|
+
args.cancel = true;
|
|
411
|
+
this.gridKeyActionHandler(args, true);
|
|
412
|
+
}
|
|
413
|
+
};
|
|
379
414
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
380
415
|
MultiColumnComboBox.prototype.isRowMatching = function (data, selectedValue, selectedText) {
|
|
381
416
|
var values = Object.values(data).map(String);
|
|
382
|
-
|
|
383
|
-
return isRowPresent;
|
|
417
|
+
return values.includes(selectedValue) && values.includes(selectedText);
|
|
384
418
|
};
|
|
385
419
|
MultiColumnComboBox.prototype.updateRowSelection = function (args) {
|
|
386
420
|
var _this = this;
|
|
387
421
|
if (args) {
|
|
388
422
|
var dataRows = args.rows;
|
|
389
423
|
dataRows.forEach(function (row) {
|
|
390
|
-
|
|
391
|
-
var index = row.index;
|
|
392
|
-
_this.selectDataRow(data, index);
|
|
424
|
+
_this.selectDataRow(row.data, row.index);
|
|
393
425
|
});
|
|
394
426
|
}
|
|
395
427
|
};
|
|
396
428
|
MultiColumnComboBox.prototype.selectDataRow = function (data, index) {
|
|
397
|
-
var isPresent = this.isRowMatching(data, this.value ?
|
|
429
|
+
var isPresent = this.isRowMatching(data, this.value ?
|
|
430
|
+
this.value.toString() : '', this.text ? this.text.toString() : '');
|
|
398
431
|
if (isPresent) {
|
|
399
432
|
this.gridObj.selectRow(index);
|
|
400
433
|
var prevOnChange = this.isProtectedOnChange;
|
|
@@ -410,30 +443,28 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
410
443
|
return Object.keys(obj).every(function (key) { return item[key] === obj[key]; });
|
|
411
444
|
});
|
|
412
445
|
};
|
|
413
|
-
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
414
446
|
MultiColumnComboBox.prototype.getGridColumns = function () {
|
|
415
447
|
var _this = this;
|
|
416
|
-
return this.columns.map(function (
|
|
417
|
-
var
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
customAttributes: column.customAttributes,
|
|
431
|
-
type: changeType
|
|
432
|
-
};
|
|
448
|
+
return this.columns.map(function (_a) {
|
|
449
|
+
var field = _a.field, header = _a.header, width = _a.width, textAlign = _a.textAlign, format = _a.format, displayAsCheckBox = _a.displayAsCheckBox, template = _a.template, headerTemplate = _a.headerTemplate, customAttributes = _a.customAttributes;
|
|
450
|
+
return ({
|
|
451
|
+
field: field,
|
|
452
|
+
headerText: header,
|
|
453
|
+
width: width,
|
|
454
|
+
textAlign: textAlign.toString() === '' && _this.enableRtl ? 'Right' : textAlign,
|
|
455
|
+
format: format,
|
|
456
|
+
displayAsCheckBox: displayAsCheckBox,
|
|
457
|
+
template: template,
|
|
458
|
+
headerTemplate: headerTemplate,
|
|
459
|
+
customAttributes: customAttributes,
|
|
460
|
+
type: displayAsCheckBox && !format ? 'boolean' : undefined
|
|
461
|
+
});
|
|
433
462
|
});
|
|
434
463
|
};
|
|
435
464
|
MultiColumnComboBox.prototype.updateGroupByField = function () {
|
|
436
|
-
|
|
465
|
+
var groupByField = this.fields.groupBy;
|
|
466
|
+
var isGroupByValid = groupByField !== '' && !isNullOrUndefined(groupByField);
|
|
467
|
+
if (isGroupByValid) {
|
|
437
468
|
if (this.sortType.toString().toLowerCase() !== 'multiplecolumns') {
|
|
438
469
|
this.gridEle.classList.add('e-multicolumn-group');
|
|
439
470
|
}
|
|
@@ -442,10 +473,11 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
442
473
|
this.gridObj.allowGrouping = true;
|
|
443
474
|
this.gridObj.groupSettings = {
|
|
444
475
|
showDropArea: false,
|
|
445
|
-
columns: [
|
|
446
|
-
captionTemplate: (this.groupTemplate && this.fields.groupBy !== '' && !isNullOrUndefined(this.fields.groupBy))
|
|
447
|
-
? this.groupTemplate : '${key}'
|
|
476
|
+
columns: [groupByField]
|
|
448
477
|
};
|
|
478
|
+
if (this.groupTemplate && isGroupByValid) {
|
|
479
|
+
this.gridObj.groupSettings.captionTemplate = this.groupTemplate;
|
|
480
|
+
}
|
|
449
481
|
if (this.isVue) {
|
|
450
482
|
this.gridObj.isVue = this.isVue;
|
|
451
483
|
}
|
|
@@ -455,12 +487,13 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
455
487
|
MultiColumnComboBox.prototype.onDataBound = function () {
|
|
456
488
|
var dataCount = this.dataSource.length;
|
|
457
489
|
var popupChild = this.popupDiv.querySelector('.' + MULTICOLUMNGRID);
|
|
490
|
+
var hasNoDataClass = this.popupDiv.classList.contains(NODATA);
|
|
458
491
|
if (dataCount <= 0 && popupChild) {
|
|
459
492
|
this.l10nUpdate();
|
|
460
493
|
this.popupDiv.removeChild(this.gridEle);
|
|
461
494
|
addClass([this.popupDiv], [NODATA]);
|
|
462
495
|
}
|
|
463
|
-
else if (
|
|
496
|
+
else if (hasNoDataClass && dataCount >= 1) {
|
|
464
497
|
removeClass([this.popupDiv], [NODATA]);
|
|
465
498
|
var noRecordEle = this.popupDiv.querySelector('.e-no-records');
|
|
466
499
|
if (noRecordEle) {
|
|
@@ -468,8 +501,9 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
468
501
|
}
|
|
469
502
|
}
|
|
470
503
|
if (this.isInitialRender) {
|
|
471
|
-
var
|
|
472
|
-
|
|
504
|
+
var gridContentRow = this.popupDiv.querySelector('.e-gridcontent tr');
|
|
505
|
+
var rowHeight = !hasNoDataClass ? gridContentRow ?
|
|
506
|
+
gridContentRow.getBoundingClientRect().height : 0 :
|
|
473
507
|
this.popupDiv.getBoundingClientRect().height;
|
|
474
508
|
this.popupRowHeight = rowHeight;
|
|
475
509
|
this.popupObj.hide();
|
|
@@ -488,6 +522,16 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
488
522
|
addClass([this.popupDiv], [NODATA]);
|
|
489
523
|
};
|
|
490
524
|
MultiColumnComboBox.prototype.renderInput = function () {
|
|
525
|
+
var allowedAttributes = ['aria-expanded', 'aria-readOnly', 'aria-disabled', 'autocomplete',
|
|
526
|
+
'autocapitalize', 'spellcheck', 'tabindex'];
|
|
527
|
+
var setAttributes = function (element, attributes) {
|
|
528
|
+
for (var key in attributes) {
|
|
529
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
530
|
+
if (attributes.hasOwnProperty(key) && allowedAttributes.indexOf(key) !== -1 && isNullOrUndefined(element.getAttribute(key))) {
|
|
531
|
+
element.setAttribute(key, attributes[key]);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
};
|
|
491
535
|
if (this.element.tagName === 'INPUT') {
|
|
492
536
|
this.inputEle = this.element;
|
|
493
537
|
if (isNullOrUndefined(this.inputEle.getAttribute('role'))) {
|
|
@@ -496,13 +540,15 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
496
540
|
if (isNullOrUndefined(this.inputEle.getAttribute('type'))) {
|
|
497
541
|
this.inputEle.setAttribute('type', 'text');
|
|
498
542
|
}
|
|
499
|
-
this.inputEle
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
543
|
+
setAttributes(this.inputEle, {
|
|
544
|
+
'aria-expanded': 'false',
|
|
545
|
+
'aria-readOnly': this.readonly.toString(),
|
|
546
|
+
'aria-disabled': this.disabled.toString(),
|
|
547
|
+
autocomplete: 'off',
|
|
548
|
+
autocapitalize: 'off',
|
|
549
|
+
spellcheck: 'false',
|
|
550
|
+
tabindex: '0'
|
|
551
|
+
});
|
|
506
552
|
}
|
|
507
553
|
else {
|
|
508
554
|
this.inputEle = this.createElement('input', { attrs: { role: 'textbox', type: 'text' } });
|
|
@@ -532,49 +578,53 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
532
578
|
this.initValue(null, null, true);
|
|
533
579
|
}
|
|
534
580
|
};
|
|
535
|
-
/* To calculate the width when change via set model */
|
|
536
581
|
MultiColumnComboBox.prototype.setElementWidth = function (inputWidth) {
|
|
582
|
+
if (isNullOrUndefined(inputWidth)) {
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
537
585
|
var ddElement = this.inputWrapper;
|
|
538
|
-
if (
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
ddElement.style.width = (inputWidth.match(/px|%|em/)) ? (inputWidth) : (formatUnit(inputWidth));
|
|
544
|
-
}
|
|
586
|
+
if (typeof inputWidth === 'number') {
|
|
587
|
+
ddElement.style.width = formatUnit(inputWidth);
|
|
588
|
+
}
|
|
589
|
+
else if (typeof inputWidth === 'string') {
|
|
590
|
+
ddElement.style.width = inputWidth.match(/px|%|em/) ? inputWidth : formatUnit(inputWidth);
|
|
545
591
|
}
|
|
546
592
|
};
|
|
547
593
|
MultiColumnComboBox.prototype.setHTMLAttributes = function () {
|
|
548
|
-
|
|
549
|
-
|
|
594
|
+
var htmlAttributes = this.htmlAttributes;
|
|
595
|
+
var inputEle = this.inputEle;
|
|
596
|
+
if (Object.keys(htmlAttributes).length) {
|
|
597
|
+
for (var _i = 0, _a = Object.keys(htmlAttributes); _i < _a.length; _i++) {
|
|
550
598
|
var htmlAttr = _a[_i];
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
'role', 'autocomplete', 'autocapitalize', 'spellcheck', 'minlength', 'maxlength'];
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
599
|
+
switch (htmlAttr) {
|
|
600
|
+
case 'class':
|
|
601
|
+
this.inputWrapper.classList.add(htmlAttributes[htmlAttr]);
|
|
602
|
+
break;
|
|
603
|
+
case 'disabled':
|
|
604
|
+
this.setProperties({ enabled: false }, true);
|
|
605
|
+
this.setEnable();
|
|
606
|
+
break;
|
|
607
|
+
case 'readonly':
|
|
608
|
+
this.setProperties({ readonly: true }, true);
|
|
609
|
+
this.dataBind();
|
|
610
|
+
break;
|
|
611
|
+
case 'style':
|
|
612
|
+
this.inputWrapper.setAttribute('style', htmlAttributes[htmlAttr]);
|
|
613
|
+
break;
|
|
614
|
+
default: {
|
|
615
|
+
var defaultAttr = ['title', 'id', 'placeholder', 'role', 'autocomplete', 'autocapitalize', 'spellcheck', 'minlength', 'maxlength'];
|
|
616
|
+
if (defaultAttr.indexOf(htmlAttr) > -1) {
|
|
617
|
+
if (htmlAttr === 'placeholder') {
|
|
618
|
+
Input.setPlaceholder(htmlAttributes[htmlAttr], inputEle);
|
|
619
|
+
}
|
|
620
|
+
else {
|
|
621
|
+
inputEle.setAttribute(htmlAttr, htmlAttributes[htmlAttr]);
|
|
622
|
+
}
|
|
571
623
|
}
|
|
572
624
|
else {
|
|
573
|
-
|
|
625
|
+
inputEle.setAttribute(htmlAttr, htmlAttributes[htmlAttr]);
|
|
574
626
|
}
|
|
575
|
-
|
|
576
|
-
else {
|
|
577
|
-
this.inputEle.setAttribute(htmlAttr, this.htmlAttributes["" + htmlAttr]);
|
|
627
|
+
break;
|
|
578
628
|
}
|
|
579
629
|
}
|
|
580
630
|
}
|
|
@@ -585,8 +635,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
585
635
|
Input.setEnabled(!this.disabled, this.inputEle);
|
|
586
636
|
if (!this.disabled) {
|
|
587
637
|
removeClass([this.inputWrapper], DISABLED);
|
|
588
|
-
this.
|
|
589
|
-
this.inputWrapper.setAttribute('aria-disabled', 'false');
|
|
638
|
+
this.setAriaDisabled('false');
|
|
590
639
|
}
|
|
591
640
|
else {
|
|
592
641
|
if (this.isPopupOpen) {
|
|
@@ -596,10 +645,13 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
596
645
|
if (this.inputWrapper && this.inputWrapper.classList.contains(INPUTFOCUS)) {
|
|
597
646
|
removeClass([this.inputWrapper], [INPUTFOCUS]);
|
|
598
647
|
}
|
|
599
|
-
this.
|
|
600
|
-
this.inputWrapper.setAttribute('aria-disabled', 'true');
|
|
648
|
+
this.setAriaDisabled('true');
|
|
601
649
|
}
|
|
602
650
|
};
|
|
651
|
+
MultiColumnComboBox.prototype.setAriaDisabled = function (value) {
|
|
652
|
+
this.inputEle.setAttribute('aria-disabled', value);
|
|
653
|
+
this.inputWrapper.setAttribute('aria-disabled', value);
|
|
654
|
+
};
|
|
603
655
|
MultiColumnComboBox.prototype.initValue = function (isRerender, isValue, isInitial) {
|
|
604
656
|
var _this = this;
|
|
605
657
|
var prevItemData = this.gridObj.getSelectedRecords()[0];
|
|
@@ -861,7 +913,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
861
913
|
MultiColumnComboBox.prototype.getSize = function (ispopupWidth) {
|
|
862
914
|
var currentDimension = ispopupWidth ? this.popupWidth : this.popupHeight;
|
|
863
915
|
var size = formatUnit(currentDimension);
|
|
864
|
-
if (size.
|
|
916
|
+
if (size.includes('%')) {
|
|
865
917
|
var dimensionValue = ispopupWidth ? this.inputWrapper.offsetWidth : document.documentElement.clientHeight;
|
|
866
918
|
size = (dimensionValue * parseFloat(size) / 100).toString() + 'px';
|
|
867
919
|
}
|
|
@@ -913,8 +965,8 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
913
965
|
this.previousItemElement = eventArgs.itemElement;
|
|
914
966
|
var prevOnChange = this.isProtectedOnChange;
|
|
915
967
|
this.isProtectedOnChange = true;
|
|
916
|
-
this.text = text
|
|
917
|
-
this.value = value
|
|
968
|
+
this.text = text || this.text;
|
|
969
|
+
this.value = value || this.value;
|
|
918
970
|
this.index = !isNullOrUndefined(index) ? index : this.index;
|
|
919
971
|
this.isProtectedOnChange = prevOnChange;
|
|
920
972
|
if (!isInitial) {
|
|
@@ -957,44 +1009,56 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
957
1009
|
this.updateInputValue(e.target.value);
|
|
958
1010
|
};
|
|
959
1011
|
MultiColumnComboBox.prototype.updateInputValue = function (inputValue) {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1012
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1013
|
+
var _a, _b, data, exactData, query, result, totaldata;
|
|
1014
|
+
return __generator(this, function (_c) {
|
|
1015
|
+
switch (_c.label) {
|
|
1016
|
+
case 0:
|
|
1017
|
+
if (!(this.dataSource instanceof DataManager)) return [3 /*break*/, 2];
|
|
1018
|
+
query = new Query();
|
|
1019
|
+
return [4 /*yield*/, this.dataSource.executeQuery(query)];
|
|
1020
|
+
case 1:
|
|
1021
|
+
result = _c.sent();
|
|
1022
|
+
totaldata = result.result;
|
|
1023
|
+
(_a = this.filterDatas(totaldata, inputValue), data = _a.data, exactData = _a.exactData);
|
|
1024
|
+
return [3 /*break*/, 3];
|
|
1025
|
+
case 2:
|
|
1026
|
+
if (Array.isArray(this.dataSource)) {
|
|
1027
|
+
(_b = this.filterDatas(this.dataSource, inputValue), data = _b.data, exactData = _b.exactData);
|
|
1028
|
+
}
|
|
1029
|
+
_c.label = 3;
|
|
1030
|
+
case 3:
|
|
1031
|
+
this.selectFilteredRows(data, exactData);
|
|
1032
|
+
return [2 /*return*/];
|
|
1033
|
+
}
|
|
976
1034
|
});
|
|
977
|
-
|
|
978
|
-
}
|
|
1035
|
+
});
|
|
979
1036
|
};
|
|
980
|
-
MultiColumnComboBox.prototype.
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
this.matchedRowEle = null;
|
|
1037
|
+
MultiColumnComboBox.prototype.filterDatas = function (dataSource, inputValue) {
|
|
1038
|
+
var _this = this;
|
|
1039
|
+
var data = dataSource.filter(function (item) {
|
|
1040
|
+
return item[_this.fields.text].toString().toLowerCase().startsWith(inputValue.toLowerCase());
|
|
1041
|
+
});
|
|
1042
|
+
var exactData = dataSource.filter(function (item) {
|
|
1043
|
+
return item[_this.fields.text].toString() === inputValue;
|
|
1044
|
+
});
|
|
1045
|
+
return { data: data, exactData: exactData };
|
|
1046
|
+
};
|
|
1047
|
+
MultiColumnComboBox.prototype.selectFilteredRows = function (data, exactData) {
|
|
1048
|
+
if (data.length <= 0) {
|
|
1049
|
+
this.matchedRowEle = this.matchedContent = this.exactMatchedContent = null;
|
|
1050
|
+
return;
|
|
993
1051
|
}
|
|
1052
|
+
this.matchedContent = data[0];
|
|
1053
|
+
this.exactMatchedContent = exactData[0];
|
|
1054
|
+
var selectedIndex = this.findIndex(this.gridObj.currentViewData, this.matchedContent);
|
|
1055
|
+
this.matchedRowEle = this.gridObj.getRowByIndex(selectedIndex);
|
|
994
1056
|
};
|
|
995
1057
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
996
1058
|
MultiColumnComboBox.prototype.filterAction = function (dataSource, inputValue, query, fields) {
|
|
997
1059
|
var _this = this;
|
|
1060
|
+
var isQuery = query || new Query();
|
|
1061
|
+
var filterType = this.filterType.toString().toLowerCase();
|
|
998
1062
|
if (isNullOrUndefined(query) && isNullOrUndefined(fields)) {
|
|
999
1063
|
this.updateGridDataSource(dataSource);
|
|
1000
1064
|
}
|
|
@@ -1011,14 +1075,12 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1011
1075
|
}
|
|
1012
1076
|
}
|
|
1013
1077
|
else {
|
|
1014
|
-
var isQuery = query || new Query();
|
|
1015
1078
|
if (dataSource instanceof DataManager) {
|
|
1016
1079
|
this.filteringHandler(dataSource, inputValue, isQuery, fields);
|
|
1017
1080
|
}
|
|
1018
1081
|
else if (Array.isArray(dataSource)) {
|
|
1019
|
-
var filterType_1 = this.filterType.toString().toLowerCase();
|
|
1020
1082
|
var filteredData = dataSource.filter(function (item) {
|
|
1021
|
-
return _this.filterData(item,
|
|
1083
|
+
return _this.filterData(item, filterType, inputValue, fields);
|
|
1022
1084
|
});
|
|
1023
1085
|
this.updateGridDataSource(filteredData);
|
|
1024
1086
|
}
|
|
@@ -1145,28 +1207,36 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1145
1207
|
}
|
|
1146
1208
|
};
|
|
1147
1209
|
MultiColumnComboBox.prototype.onDocumentClick = function (e) {
|
|
1210
|
+
var target = e.target;
|
|
1148
1211
|
if (this.disabled || this.readonly || !this.isPopupOpen) {
|
|
1149
|
-
if (!
|
|
1212
|
+
if (!target.closest('.e-multicolumn-list')) {
|
|
1150
1213
|
this.focusOut();
|
|
1151
1214
|
}
|
|
1152
1215
|
return;
|
|
1153
1216
|
}
|
|
1154
|
-
var target = e.target;
|
|
1155
1217
|
if ((target.classList.contains('e-multicolumn-list-icon') || closest(target, '.e-popup'))) {
|
|
1156
1218
|
e.preventDefault();
|
|
1157
1219
|
}
|
|
1158
1220
|
else {
|
|
1159
1221
|
if (!target.classList.contains('e-multicolumncombobox') && !target.classList.contains('e-clear-icon')) {
|
|
1222
|
+
if (!isNullOrUndefined(this.text)) {
|
|
1223
|
+
this.updateInputValue(this.text);
|
|
1224
|
+
}
|
|
1160
1225
|
this.updateValuesOnInput(e);
|
|
1161
1226
|
}
|
|
1162
1227
|
}
|
|
1163
1228
|
};
|
|
1164
|
-
MultiColumnComboBox.prototype.updateValuesOnInput = function (mouseEvent, keyEvent, isClearValues) {
|
|
1229
|
+
MultiColumnComboBox.prototype.updateValuesOnInput = function (mouseEvent, keyEvent, isClearValues, isKeyDown) {
|
|
1165
1230
|
var _this = this;
|
|
1166
1231
|
if (isClearValues === void 0) { isClearValues = false; }
|
|
1232
|
+
if (isKeyDown === void 0) { isKeyDown = false; }
|
|
1167
1233
|
var e = mouseEvent ? mouseEvent : keyEvent;
|
|
1234
|
+
var val = isKeyDown ? this.matchedContent : this.exactMatchedContent;
|
|
1235
|
+
if (!val) {
|
|
1236
|
+
this.inputEle.value = this.value = this.index = this.text = null;
|
|
1237
|
+
}
|
|
1168
1238
|
this.hidePopup(e);
|
|
1169
|
-
if (this.matchedRowEle && !isClearValues) {
|
|
1239
|
+
if (this.matchedRowEle && !isClearValues && val) {
|
|
1170
1240
|
var prevOnChange = this.isProtectedOnChange;
|
|
1171
1241
|
this.isProtectedOnChange = true;
|
|
1172
1242
|
setTimeout(function () {
|
|
@@ -1250,7 +1320,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1250
1320
|
this.updateSelectedItem(e, true, true);
|
|
1251
1321
|
break;
|
|
1252
1322
|
case 'enter':
|
|
1253
|
-
this.updateValuesOnInput(null, e);
|
|
1323
|
+
this.updateValuesOnInput(null, e, false, true);
|
|
1254
1324
|
this.focusIn(e);
|
|
1255
1325
|
break;
|
|
1256
1326
|
case 'home':
|
|
@@ -1260,31 +1330,19 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1260
1330
|
}
|
|
1261
1331
|
};
|
|
1262
1332
|
MultiColumnComboBox.prototype.gridKeyActionHandler = function (e, isGroup) {
|
|
1333
|
+
var keyActionMap = {
|
|
1334
|
+
'ArrowDown': 'moveDown',
|
|
1335
|
+
'ArrowUp': 'moveUp',
|
|
1336
|
+
'End': 'end',
|
|
1337
|
+
'Home': 'home',
|
|
1338
|
+
'Tab': 'tab',
|
|
1339
|
+
'Escape': 'escape',
|
|
1340
|
+
'Shift+Tab': 'shiftTab',
|
|
1341
|
+
'Alt+ArrowUp': 'altUp'
|
|
1342
|
+
};
|
|
1263
1343
|
if (isGroup) {
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
}
|
|
1267
|
-
else if (e.key === 'ArrowUp') {
|
|
1268
|
-
e.action = 'moveUp';
|
|
1269
|
-
}
|
|
1270
|
-
else if (e.key === 'End') {
|
|
1271
|
-
e.action = 'end';
|
|
1272
|
-
}
|
|
1273
|
-
else if (e.key === 'Home') {
|
|
1274
|
-
e.action = 'home';
|
|
1275
|
-
}
|
|
1276
|
-
else if (e.key === 'Tab') {
|
|
1277
|
-
e.action = 'tab';
|
|
1278
|
-
}
|
|
1279
|
-
else if (e.key === 'Escape') {
|
|
1280
|
-
e.action = 'escape';
|
|
1281
|
-
}
|
|
1282
|
-
if (e.shiftKey && e.key === 'Tab') {
|
|
1283
|
-
e.action = 'shiftTab';
|
|
1284
|
-
}
|
|
1285
|
-
if (e.altKey && e.key === 'ArrowUp') {
|
|
1286
|
-
e.action = 'altUp';
|
|
1287
|
-
}
|
|
1344
|
+
var key = "" + (e.altKey ? 'Alt+' : '') + (e.shiftKey ? 'Shift+' : '') + e.key;
|
|
1345
|
+
e.action = keyActionMap[key] || e.action;
|
|
1288
1346
|
}
|
|
1289
1347
|
switch (e.action) {
|
|
1290
1348
|
case 'escape':
|
|
@@ -1352,6 +1410,25 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1352
1410
|
clearIconEle.style.display = this.inputEle.value === '' ? 'none' : 'flex';
|
|
1353
1411
|
}
|
|
1354
1412
|
};
|
|
1413
|
+
MultiColumnComboBox.prototype.updateDynamicDataSource = function (newDataSource, oldDataSource) {
|
|
1414
|
+
if (this.gridObj) {
|
|
1415
|
+
var dataLength_1;
|
|
1416
|
+
this.gridObj.dataSource = newDataSource;
|
|
1417
|
+
var isRemoteData = oldDataSource instanceof DataManager;
|
|
1418
|
+
if (isRemoteData) {
|
|
1419
|
+
oldDataSource.executeQuery(new Query()).then(function (e) {
|
|
1420
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1421
|
+
dataLength_1 = e.result.length;
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
else {
|
|
1425
|
+
dataLength_1 = oldDataSource.length;
|
|
1426
|
+
}
|
|
1427
|
+
if (dataLength_1 === 0) {
|
|
1428
|
+
this.popupDiv.appendChild(this.gridEle);
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
};
|
|
1355
1432
|
/**
|
|
1356
1433
|
* Sets the focus to the component for interaction.component for interaction.
|
|
1357
1434
|
*
|
|
@@ -1433,11 +1510,12 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1433
1510
|
var contentEle = _this.gridObj.getContent();
|
|
1434
1511
|
if (contentEle) {
|
|
1435
1512
|
var activeRow = contentEle.querySelector('.e-rowcell.e-active');
|
|
1513
|
+
var firstRow = contentEle.querySelector('.e-row');
|
|
1436
1514
|
if (activeRow) {
|
|
1437
1515
|
_this.inputEle.setAttribute('aria-activedescendant', activeRow.parentElement.getAttribute('data-uid'));
|
|
1438
1516
|
}
|
|
1439
|
-
else if (
|
|
1440
|
-
_this.inputEle.setAttribute('aria-activedescendant',
|
|
1517
|
+
else if (firstRow) {
|
|
1518
|
+
_this.inputEle.setAttribute('aria-activedescendant', firstRow.getAttribute('data-uid'));
|
|
1441
1519
|
}
|
|
1442
1520
|
}
|
|
1443
1521
|
if (!isNullOrUndefined(_this.dataSource) && _this.dataSource instanceof DataManager) {
|
|
@@ -1460,24 +1538,21 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1460
1538
|
var _this = this;
|
|
1461
1539
|
var animModel = { name: 'FadeOut', duration: 100 };
|
|
1462
1540
|
var eventArgs = { popup: this.popupObj, event: e || null, cancel: false, animation: animModel };
|
|
1541
|
+
var target = e ? e.target : null;
|
|
1463
1542
|
this.trigger('close', eventArgs, function (eventArgs) {
|
|
1464
1543
|
if (!eventArgs.cancel) {
|
|
1465
1544
|
_this.isPopupOpen = false;
|
|
1466
1545
|
removeClass([_this.inputWrapper], [ICONANIMATION]);
|
|
1467
1546
|
attributes(_this.inputEle, { 'aria-expanded': 'false' });
|
|
1468
1547
|
_this.popupObj.hide(new Animation(eventArgs.animation));
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
if (target && (target.classList.contains('e-multicolumn-list-icon') || target.classList.contains('e-rowcell'))) {
|
|
1473
|
-
if (!_this.value) {
|
|
1474
|
-
_this.gridObj.refreshColumns();
|
|
1475
|
-
}
|
|
1476
|
-
setTimeout(function () { _this.focusIn(e); });
|
|
1477
|
-
}
|
|
1478
|
-
else {
|
|
1479
|
-
_this.focusOut();
|
|
1548
|
+
if (target && (target.classList.contains('e-multicolumn-list-icon') || target.classList.contains('e-rowcell'))) {
|
|
1549
|
+
if (!_this.value) {
|
|
1550
|
+
_this.gridObj.refreshColumns();
|
|
1480
1551
|
}
|
|
1552
|
+
setTimeout(function () { _this.focusIn(e); });
|
|
1553
|
+
}
|
|
1554
|
+
else {
|
|
1555
|
+
_this.focusOut();
|
|
1481
1556
|
}
|
|
1482
1557
|
_this.inputEle.removeAttribute('aria-owns');
|
|
1483
1558
|
_this.inputEle.removeAttribute('aria-activedescendant');
|
|
@@ -1685,9 +1760,7 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1685
1760
|
}
|
|
1686
1761
|
break;
|
|
1687
1762
|
case 'dataSource':
|
|
1688
|
-
|
|
1689
|
-
this.gridObj.dataSource = newProp.dataSource;
|
|
1690
|
-
}
|
|
1763
|
+
this.updateDynamicDataSource(newProp.dataSource, oldProp.dataSource);
|
|
1691
1764
|
break;
|
|
1692
1765
|
case 'query':
|
|
1693
1766
|
if (this.gridObj) {
|