@syncfusion/ej2-dropdowns 24.1.45-12082 → 24.1.46
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/.eslintrc.json +260 -0
- package/CHANGELOG.md +2107 -2101
- package/{ReadMe.md → README.md} +217 -217
- package/dist/ej2-dropdowns.min.js +10 -1
- package/dist/ej2-dropdowns.umd.min.js +10 -1
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +127 -61
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +274 -203
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +10 -1
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/helpers/e2e/autocomplete.js +13 -13
- package/helpers/e2e/combobox.js +13 -13
- package/helpers/e2e/dropdownlist.js +13 -13
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/listboxHelper.js +13 -13
- package/helpers/e2e/multiselect.js +13 -13
- package/license +2 -2
- package/package.json +80 -80
- package/src/auto-complete/auto-complete-model.d.ts +188 -188
- package/src/auto-complete/auto-complete.d.ts +12 -12
- package/src/auto-complete/auto-complete.js +21 -21
- package/src/combo-box/combo-box-model.d.ts +224 -224
- package/src/combo-box/combo-box.d.ts +27 -27
- package/src/combo-box/combo-box.js +29 -29
- package/src/common/virtual-scroll.js +46 -46
- package/src/drop-down-base/drop-down-base-model.d.ts +200 -200
- package/src/drop-down-base/drop-down-base.d.ts +16 -16
- package/src/drop-down-base/drop-down-base.js +20 -20
- package/src/drop-down-list/drop-down-list-model.d.ts +202 -202
- package/src/drop-down-list/drop-down-list.d.ts +4 -4
- package/src/drop-down-list/drop-down-list.js +20 -20
- package/src/drop-down-tree/drop-down-tree-model.d.ts +468 -468
- package/src/drop-down-tree/drop-down-tree.d.ts +3 -0
- package/src/drop-down-tree/drop-down-tree.js +95 -24
- package/src/list-box/list-box-model.d.ts +193 -193
- package/src/list-box/list-box.d.ts +2 -2
- package/src/list-box/list-box.js +19 -19
- package/src/mention/mention-model.d.ts +261 -261
- package/src/mention/mention.js +19 -19
- package/src/multi-select/multi-select-model.d.ts +512 -512
- package/src/multi-select/multi-select.js +19 -19
- package/styles/auto-complete/_all.scss +1 -1
- package/styles/auto-complete/_bootstrap-dark-definition.scss +3 -3
- package/styles/auto-complete/_bootstrap-definition.scss +2 -2
- package/styles/auto-complete/_bootstrap4-definition.scss +11 -11
- package/styles/auto-complete/_bootstrap5-definition.scss +2 -2
- package/styles/auto-complete/_fabric-dark-definition.scss +2 -2
- package/styles/auto-complete/_fabric-definition.scss +2 -2
- package/styles/auto-complete/_fluent-definition.scss +2 -2
- package/styles/auto-complete/_fusionnew-definition.scss +2 -2
- package/styles/auto-complete/_highcontrast-definition.scss +2 -2
- package/styles/auto-complete/_highcontrast-light-definition.scss +2 -2
- package/styles/auto-complete/_material-dark-definition.scss +2 -2
- package/styles/auto-complete/_material-definition.scss +2 -2
- package/styles/auto-complete/_material3-definition.scss +2 -2
- package/styles/auto-complete/_tailwind-definition.scss +2 -2
- package/styles/auto-complete/material3-dark.scss +1 -1
- package/styles/auto-complete/material3.scss +1 -1
- package/styles/combo-box/_all.scss +1 -1
- package/styles/combo-box/_bootstrap-dark-definition.scss +2 -2
- package/styles/combo-box/_bootstrap-definition.scss +2 -2
- package/styles/combo-box/_bootstrap4-definition.scss +11 -11
- package/styles/combo-box/_bootstrap5-definition.scss +2 -2
- package/styles/combo-box/_fabric-dark-definition.scss +2 -2
- package/styles/combo-box/_fabric-definition.scss +2 -2
- package/styles/combo-box/_fluent-definition.scss +2 -2
- package/styles/combo-box/_fusionnew-definition.scss +2 -2
- package/styles/combo-box/_highcontrast-definition.scss +2 -2
- package/styles/combo-box/_highcontrast-light-definition.scss +3 -3
- package/styles/combo-box/_material-dark-definition.scss +2 -2
- package/styles/combo-box/_material-definition.scss +2 -2
- package/styles/combo-box/_material3-definition.scss +2 -2
- package/styles/combo-box/_tailwind-definition.scss +2 -2
- package/styles/combo-box/material3-dark.scss +1 -1
- package/styles/combo-box/material3.scss +1 -1
- package/styles/drop-down-base/_all.scss +2 -2
- package/styles/drop-down-base/_bootstrap-dark-definition.scss +83 -83
- package/styles/drop-down-base/_bootstrap-definition.scss +83 -83
- package/styles/drop-down-base/_bootstrap4-definition.scss +90 -90
- package/styles/drop-down-base/_bootstrap5-definition.scss +117 -117
- package/styles/drop-down-base/_definition.scss +23 -23
- package/styles/drop-down-base/_fabric-dark-definition.scss +86 -86
- package/styles/drop-down-base/_fabric-definition.scss +84 -84
- package/styles/drop-down-base/_fluent-definition.scss +121 -121
- package/styles/drop-down-base/_fusionnew-definition.scss +117 -117
- package/styles/drop-down-base/_highcontrast-definition.scss +105 -105
- package/styles/drop-down-base/_highcontrast-light-definition.scss +105 -105
- package/styles/drop-down-base/_layout.scss +192 -192
- package/styles/drop-down-base/_material-dark-definition.scss +86 -86
- package/styles/drop-down-base/_material-definition.scss +85 -85
- package/styles/drop-down-base/_material3-definition.scss +87 -87
- package/styles/drop-down-base/_tailwind-definition.scss +129 -129
- package/styles/drop-down-base/_theme.scss +391 -391
- package/styles/drop-down-base/material3-dark.scss +1 -1
- package/styles/drop-down-base/material3.scss +1 -1
- package/styles/drop-down-list/_all.scss +3 -3
- package/styles/drop-down-list/_bootstrap-dark-definition.scss +157 -157
- package/styles/drop-down-list/_bootstrap-definition.scss +156 -156
- package/styles/drop-down-list/_bootstrap4-definition.scss +202 -202
- package/styles/drop-down-list/_bootstrap5-definition.scss +201 -201
- package/styles/drop-down-list/_fabric-dark-definition.scss +128 -128
- package/styles/drop-down-list/_fabric-definition.scss +124 -124
- package/styles/drop-down-list/_fluent-definition.scss +185 -185
- package/styles/drop-down-list/_fusionnew-definition.scss +201 -201
- package/styles/drop-down-list/_highcontrast-definition.scss +142 -142
- package/styles/drop-down-list/_highcontrast-light-definition.scss +144 -144
- package/styles/drop-down-list/_layout.scss +315 -315
- package/styles/drop-down-list/_material-dark-definition.scss +143 -143
- package/styles/drop-down-list/_material-definition.scss +167 -167
- package/styles/drop-down-list/_material3-definition.scss +180 -180
- package/styles/drop-down-list/_tailwind-definition.scss +134 -134
- package/styles/drop-down-list/_theme.scss +10 -10
- package/styles/drop-down-list/icons/_bootstrap-dark.scss +14 -14
- package/styles/drop-down-list/icons/_bootstrap.scss +14 -14
- package/styles/drop-down-list/icons/_bootstrap4.scss +14 -14
- package/styles/drop-down-list/icons/_bootstrap5.scss +14 -14
- package/styles/drop-down-list/icons/_fabric-dark.scss +14 -14
- package/styles/drop-down-list/icons/_fabric.scss +14 -14
- package/styles/drop-down-list/icons/_fluent.scss +14 -14
- package/styles/drop-down-list/icons/_fusionnew.scss +14 -14
- package/styles/drop-down-list/icons/_highcontrast-light.scss +14 -14
- package/styles/drop-down-list/icons/_highcontrast.scss +14 -14
- package/styles/drop-down-list/icons/_material-dark.scss +14 -14
- package/styles/drop-down-list/icons/_material.scss +14 -14
- package/styles/drop-down-list/icons/_material3.scss +14 -14
- package/styles/drop-down-list/icons/_tailwind.scss +14 -14
- package/styles/drop-down-list/material3-dark.scss +1 -1
- package/styles/drop-down-list/material3.scss +1 -1
- package/styles/drop-down-tree/_all.scss +2 -2
- package/styles/drop-down-tree/_bootstrap-dark-definition.scss +71 -71
- package/styles/drop-down-tree/_bootstrap-definition.scss +70 -70
- package/styles/drop-down-tree/_bootstrap4-definition.scss +71 -71
- package/styles/drop-down-tree/_bootstrap5-definition.scss +59 -59
- package/styles/drop-down-tree/_fabric-dark-definition.scss +71 -71
- package/styles/drop-down-tree/_fabric-definition.scss +71 -71
- package/styles/drop-down-tree/_fluent-definition.scss +65 -65
- package/styles/drop-down-tree/_fusionnew-definition.scss +59 -59
- package/styles/drop-down-tree/_highcontrast-definition.scss +71 -71
- package/styles/drop-down-tree/_highcontrast-light-definition.scss +71 -71
- package/styles/drop-down-tree/_layout.scss +1423 -1423
- package/styles/drop-down-tree/_material-dark-definition.scss +72 -72
- package/styles/drop-down-tree/_material-definition.scss +72 -72
- package/styles/drop-down-tree/_material3-definition.scss +76 -76
- package/styles/drop-down-tree/_tailwind-definition.scss +61 -61
- package/styles/drop-down-tree/_theme.scss +132 -132
- package/styles/drop-down-tree/icons/_bootstrap-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_bootstrap.scss +11 -11
- package/styles/drop-down-tree/icons/_bootstrap4.scss +11 -11
- package/styles/drop-down-tree/icons/_bootstrap5.scss +11 -11
- package/styles/drop-down-tree/icons/_fabric-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_fabric.scss +11 -11
- package/styles/drop-down-tree/icons/_fluent.scss +11 -11
- package/styles/drop-down-tree/icons/_fusionnew.scss +11 -11
- package/styles/drop-down-tree/icons/_highcontrast-light.scss +11 -11
- package/styles/drop-down-tree/icons/_highcontrast.scss +11 -11
- package/styles/drop-down-tree/icons/_material-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_material.scss +11 -11
- package/styles/drop-down-tree/icons/_material3.scss +11 -11
- package/styles/drop-down-tree/icons/_tailwind-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_tailwind.scss +11 -11
- package/styles/drop-down-tree/material3-dark.scss +1 -1
- package/styles/drop-down-tree/material3.scss +1 -1
- package/styles/list-box/_all.scss +2 -2
- package/styles/list-box/_bootstrap-dark-definition.scss +126 -126
- package/styles/list-box/_bootstrap-definition.scss +119 -119
- package/styles/list-box/_bootstrap4-definition.scss +124 -124
- package/styles/list-box/_bootstrap5-definition.scss +120 -120
- package/styles/list-box/_fabric-dark-definition.scss +126 -126
- package/styles/list-box/_fabric-definition.scss +119 -119
- package/styles/list-box/_fluent-definition.scss +120 -120
- package/styles/list-box/_fusionnew-definition.scss +111 -111
- package/styles/list-box/_highcontrast-definition.scss +119 -119
- package/styles/list-box/_highcontrast-light-definition.scss +126 -126
- package/styles/list-box/_layout.scss +542 -542
- package/styles/list-box/_material-dark-definition.scss +126 -126
- package/styles/list-box/_material-definition.scss +119 -119
- package/styles/list-box/_material3-definition.scss +119 -119
- package/styles/list-box/_tailwind-definition.scss +119 -119
- package/styles/list-box/_theme.scss +382 -382
- package/styles/list-box/icons/_bootstrap-dark.scss +25 -25
- package/styles/list-box/icons/_bootstrap.scss +25 -25
- package/styles/list-box/icons/_bootstrap4.scss +25 -25
- package/styles/list-box/icons/_bootstrap5.scss +25 -25
- package/styles/list-box/icons/_fabric-dark.scss +25 -25
- package/styles/list-box/icons/_fabric.scss +25 -25
- package/styles/list-box/icons/_fluent.scss +25 -25
- package/styles/list-box/icons/_fusionnew.scss +25 -25
- package/styles/list-box/icons/_highcontrast-light.scss +25 -25
- package/styles/list-box/icons/_highcontrast.scss +25 -25
- package/styles/list-box/icons/_material-dark.scss +25 -25
- package/styles/list-box/icons/_material.scss +25 -25
- package/styles/list-box/icons/_material3.scss +25 -25
- package/styles/list-box/icons/_tailwind-dark.scss +25 -25
- package/styles/list-box/icons/_tailwind.scss +25 -25
- package/styles/list-box/material3-dark.scss +1 -1
- package/styles/list-box/material3.scss +1 -1
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/mention/_all.scss +1 -1
- package/styles/mention/_bootstrap-dark-definition.scss +3 -3
- package/styles/mention/_bootstrap-definition.scss +3 -3
- package/styles/mention/_bootstrap4-definition.scss +3 -3
- package/styles/mention/_bootstrap5-definition.scss +1 -1
- package/styles/mention/_fabric-dark-definition.scss +2 -2
- package/styles/mention/_fabric-definition.scss +3 -3
- package/styles/mention/_fluent-definition.scss +1 -1
- package/styles/mention/_fusionnew-definition.scss +1 -1
- package/styles/mention/_highcontrast-definition.scss +3 -3
- package/styles/mention/_highcontrast-light-definition.scss +3 -3
- package/styles/mention/_layout.scss +6 -6
- package/styles/mention/_material-dark-definition.scss +3 -3
- package/styles/mention/_material-definition.scss +3 -3
- package/styles/mention/_material3-definition.scss +1 -1
- package/styles/mention/_tailwind-definition.scss +1 -1
- package/styles/mention/material3-dark.scss +1 -1
- package/styles/mention/material3.scss +1 -1
- package/styles/multi-select/_all.scss +2 -2
- package/styles/multi-select/_bootstrap-dark-definition.scss +203 -203
- package/styles/multi-select/_bootstrap-definition.scss +192 -192
- package/styles/multi-select/_bootstrap4-definition.scss +278 -278
- package/styles/multi-select/_bootstrap5-definition.scss +230 -230
- package/styles/multi-select/_fabric-dark-definition.scss +192 -192
- package/styles/multi-select/_fabric-definition.scss +183 -183
- package/styles/multi-select/_fluent-definition.scss +241 -241
- package/styles/multi-select/_fusionnew-definition.scss +227 -227
- package/styles/multi-select/_highcontrast-definition.scss +303 -303
- package/styles/multi-select/_highcontrast-light-definition.scss +297 -297
- package/styles/multi-select/_layout.scss +2199 -2199
- package/styles/multi-select/_material-dark-definition.scss +230 -230
- package/styles/multi-select/_material-definition.scss +223 -223
- package/styles/multi-select/_material3-definition.scss +246 -246
- package/styles/multi-select/_tailwind-definition.scss +235 -235
- package/styles/multi-select/_theme.scss +586 -586
- package/styles/multi-select/icons/_bootstrap-dark.scss +26 -26
- package/styles/multi-select/icons/_bootstrap.scss +26 -26
- package/styles/multi-select/icons/_bootstrap4.scss +37 -37
- package/styles/multi-select/icons/_bootstrap5.scss +26 -26
- package/styles/multi-select/icons/_fabric-dark.scss +26 -26
- package/styles/multi-select/icons/_fabric.scss +26 -26
- package/styles/multi-select/icons/_fluent.scss +55 -55
- package/styles/multi-select/icons/_fusionnew.scss +26 -26
- package/styles/multi-select/icons/_highcontrast-light.scss +26 -26
- package/styles/multi-select/icons/_highcontrast.scss +26 -26
- package/styles/multi-select/icons/_material-dark.scss +693 -693
- package/styles/multi-select/icons/_material.scss +693 -693
- package/styles/multi-select/icons/_material3.scss +692 -692
- package/styles/multi-select/icons/_tailwind.scss +26 -26
- package/styles/multi-select/material3-dark.scss +1 -1
- package/styles/multi-select/material3.scss +1 -1
- package/tslint.json +111 -0
- package/dist/ts/auto-complete/auto-complete.ts +0 -623
- package/dist/ts/combo-box/combo-box.ts +0 -1099
- package/dist/ts/common/highlight-search.ts +0 -57
- package/dist/ts/common/incremental-search.ts +0 -172
- package/dist/ts/common/interface.ts +0 -74
- package/dist/ts/common/virtual-scroll.ts +0 -388
- package/dist/ts/drop-down-base/drop-down-base.ts +0 -1986
- package/dist/ts/drop-down-list/drop-down-list.ts +0 -4261
- package/dist/ts/drop-down-tree/drop-down-tree.ts +0 -3747
- package/dist/ts/list-box/list-box.ts +0 -2772
- package/dist/ts/mention/mention.ts +0 -1875
- package/dist/ts/multi-select/checkbox-selection.ts +0 -550
- package/dist/ts/multi-select/float-label.ts +0 -176
- package/dist/ts/multi-select/interface.ts +0 -70
- package/dist/ts/multi-select/multi-select.ts +0 -4882
- package/styles/auto-complete/_bds-definition.scss +0 -2
- package/styles/combo-box/_bds-definition.scss +0 -2
- package/styles/drop-down-base/_bds-definition.scss +0 -129
- package/styles/drop-down-list/_bds-definition.scss +0 -134
- package/styles/drop-down-tree/_bds-definition.scss +0 -61
- package/styles/list-box/_bds-definition.scss +0 -119
- package/styles/mention/_bds-definition.scss +0 -1
- package/styles/multi-select/_bds-definition.scss +0 -235
|
@@ -734,7 +734,10 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
734
734
|
private hideCheckAll;
|
|
735
735
|
private renderFilter;
|
|
736
736
|
private filterChangeHandler;
|
|
737
|
+
private isChildObject;
|
|
737
738
|
private filterHandler;
|
|
739
|
+
private remoteDataFilter;
|
|
740
|
+
private remoteChildFilter;
|
|
738
741
|
private nestedFilter;
|
|
739
742
|
private nestedChildFilter;
|
|
740
743
|
private selfReferencefilter;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
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;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
import { Input, TextBox } from '@syncfusion/ej2-inputs';
|
|
21
21
|
import { createCheckBox } from '@syncfusion/ej2-buttons';
|
|
22
22
|
import { NotifyPropertyChanges, Property, Event, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
|
|
@@ -379,10 +379,21 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
379
379
|
this.filterTimer = window.setTimeout(function () { _this.filterHandler(args.value, args.event); }, this.filterDelayTime);
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
|
+
DropDownTree.prototype.isChildObject = function () {
|
|
383
|
+
if (typeof this.treeObj.fields.child === 'object') {
|
|
384
|
+
return true;
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
return false;
|
|
388
|
+
}
|
|
389
|
+
};
|
|
382
390
|
DropDownTree.prototype.filterHandler = function (value, event) {
|
|
383
391
|
var _this = this;
|
|
384
392
|
this.isFromFilterChange = true;
|
|
385
393
|
if (!this.isFilteredData) {
|
|
394
|
+
if (this.isRemoteData) {
|
|
395
|
+
this.treeObj.expandedNodes = [];
|
|
396
|
+
}
|
|
386
397
|
this.treeData = this.treeObj.getTreeData();
|
|
387
398
|
}
|
|
388
399
|
var filterFields = this.cloneFields(this.fields);
|
|
@@ -412,6 +423,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
412
423
|
}
|
|
413
424
|
else {
|
|
414
425
|
if (_this.fields.dataSource instanceof DataManager) {
|
|
426
|
+
fields = _this.remoteDataFilter(value, args.fields);
|
|
427
|
+
fields.child = _this.fields.child;
|
|
428
|
+
_this.treeObj.fields = _this.getTreeFields(args.fields);
|
|
429
|
+
_this.treeObj.dataBind();
|
|
415
430
|
flag = true;
|
|
416
431
|
}
|
|
417
432
|
else {
|
|
@@ -423,6 +438,14 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
423
438
|
if (flag) {
|
|
424
439
|
return;
|
|
425
440
|
}
|
|
441
|
+
if (_this.isRemoteData) {
|
|
442
|
+
if (_this.isChildObject()) {
|
|
443
|
+
fields.child = _this.fields.child;
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
fields = args.fields;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
426
449
|
_this.treeObj.fields = _this.getTreeFields(fields);
|
|
427
450
|
_this.treeObj.dataBind();
|
|
428
451
|
if (_this.hasTemplate && _this.portals && _this.treeObj.portals) {
|
|
@@ -438,6 +461,38 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
438
461
|
}
|
|
439
462
|
});
|
|
440
463
|
};
|
|
464
|
+
DropDownTree.prototype.remoteDataFilter = function (value, filteredFields) {
|
|
465
|
+
var _this = this;
|
|
466
|
+
filteredFields.dataSource = this.treeData.map(function (item) {
|
|
467
|
+
return _this.remoteChildFilter(value, item);
|
|
468
|
+
}).filter(function (filteredChild) {
|
|
469
|
+
return !isNOU(filteredChild);
|
|
470
|
+
});
|
|
471
|
+
return filteredFields;
|
|
472
|
+
};
|
|
473
|
+
DropDownTree.prototype.remoteChildFilter = function (value, node, isChild, isChildFiltering) {
|
|
474
|
+
var children = this.isChildObject() ? node['child'] : node[this.fields.child];
|
|
475
|
+
if (isNOU(children)) {
|
|
476
|
+
return (this.isMatchedNode(value, node, isChild, isChildFiltering)) ? node : null;
|
|
477
|
+
}
|
|
478
|
+
var matchedChildren = [];
|
|
479
|
+
for (var i = 0; i < children.length; i++) {
|
|
480
|
+
var filteredChild = this.remoteChildFilter(value, children[i], true, true);
|
|
481
|
+
if (!isNOU(filteredChild)) {
|
|
482
|
+
matchedChildren.push(filteredChild);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
var filteredItems = Object.assign({}, node);
|
|
486
|
+
isChildFiltering = false;
|
|
487
|
+
if (matchedChildren.length !== 0) {
|
|
488
|
+
filteredItems.child = matchedChildren;
|
|
489
|
+
}
|
|
490
|
+
else {
|
|
491
|
+
filteredItems.child = null;
|
|
492
|
+
filteredItems = (this.isMatchedNode(value, filteredItems)) ? filteredItems : null;
|
|
493
|
+
}
|
|
494
|
+
return filteredItems;
|
|
495
|
+
};
|
|
441
496
|
DropDownTree.prototype.nestedFilter = function (value, filteredFields) {
|
|
442
497
|
// eslint-disable-next-line
|
|
443
498
|
var matchedDataSource = [];
|
|
@@ -519,8 +574,17 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
519
574
|
return filteredFields;
|
|
520
575
|
};
|
|
521
576
|
// eslint-disable-next-line
|
|
522
|
-
DropDownTree.prototype.isMatchedNode = function (value, node) {
|
|
523
|
-
var checkValue
|
|
577
|
+
DropDownTree.prototype.isMatchedNode = function (value, node, isChild, isChildFiltering) {
|
|
578
|
+
var checkValue;
|
|
579
|
+
var isObjectValue = isChild && isChildFiltering && this.isChildObject();
|
|
580
|
+
checkValue = isObjectValue ? node[this.fields.child.text] : node[this.fields.text];
|
|
581
|
+
if (!checkValue) {
|
|
582
|
+
var tempChild = this.fields.child;
|
|
583
|
+
while (!node[tempChild.text]) {
|
|
584
|
+
tempChild = tempChild.child;
|
|
585
|
+
}
|
|
586
|
+
checkValue = node[tempChild.text];
|
|
587
|
+
}
|
|
524
588
|
if (this.ignoreCase) {
|
|
525
589
|
checkValue = checkValue.toLowerCase();
|
|
526
590
|
value = value.toLowerCase();
|
|
@@ -1482,8 +1546,6 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1482
1546
|
if (this.isFilteredData) {
|
|
1483
1547
|
this.filterObj.value = '';
|
|
1484
1548
|
this.treeObj.fields = this.getTreeFields(this.fields);
|
|
1485
|
-
if (this.isReact)
|
|
1486
|
-
this.refresh();
|
|
1487
1549
|
this.isFilterRestore = true;
|
|
1488
1550
|
this.isFilteredData = false;
|
|
1489
1551
|
this.hideCheckAll(false);
|
|
@@ -1504,12 +1566,18 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1504
1566
|
}
|
|
1505
1567
|
else {
|
|
1506
1568
|
_this.popupEle = _this.popupObj.element;
|
|
1569
|
+
if (_this.isReact && _this.isFilterRestore) {
|
|
1570
|
+
_this.treeObj.refresh();
|
|
1571
|
+
_this.isFilteredData = true;
|
|
1572
|
+
_this.popupEle.removeChild(_this.filterContainer);
|
|
1573
|
+
}
|
|
1507
1574
|
}
|
|
1508
1575
|
}
|
|
1509
1576
|
else {
|
|
1510
1577
|
isCancelled = true;
|
|
1511
1578
|
}
|
|
1512
|
-
if (_this.isFirstRender && !isCancelled) {
|
|
1579
|
+
if (_this.isFirstRender && !isCancelled || _this.isFilteredData) {
|
|
1580
|
+
_this.isFilteredData = false;
|
|
1513
1581
|
prepend([_this.popupDiv], _this.popupEle);
|
|
1514
1582
|
removeClass([_this.popupDiv], DDTHIDEICON);
|
|
1515
1583
|
if (_this.allowFiltering) {
|
|
@@ -1876,6 +1944,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1876
1944
|
if (this.value === null) {
|
|
1877
1945
|
this.setProperties({ value: [] }, true);
|
|
1878
1946
|
}
|
|
1947
|
+
if (args.node.classList.contains("e-active")) {
|
|
1948
|
+
this.hidePopup();
|
|
1949
|
+
}
|
|
1879
1950
|
}
|
|
1880
1951
|
};
|
|
1881
1952
|
DropDownTree.prototype.updateHiddenValue = function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Input, InputObject } from '@syncfusion/ej2-inputs';
|
|
1
|
+
import { Input, InputObject } from '@syncfusion/ej2-inputs';import { DropDownBase, dropDownBaseClasses, FilteringEventArgs, SelectEventArgs } from '../drop-down-base/drop-down-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { EventHandler, closest, removeClass, addClass, Complex, Property, ChildProperty, BaseEventArgs, L10n } from '@syncfusion/ej2-base';import { ModuleDeclaration, NotifyPropertyChanges, getComponent, EmitType, Event, extend, detach, attributes } from '@syncfusion/ej2-base';import { getUniqueID, Browser, formatUnit, isNullOrUndefined, getValue } from '@syncfusion/ej2-base';import { prepend, append } from '@syncfusion/ej2-base';import { cssClass, Sortable, moveTo } from '@syncfusion/ej2-lists';import { Button } from '@syncfusion/ej2-buttons';import { createSpinner, showSpinner, hideSpinner, getZindexPartial } from '@syncfusion/ej2-popups';import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
2
2
|
import {SelectionMode,CheckBoxPosition,ToolBarPosition,BeforeItemRenderEventArgs,ListBoxChangeEventArgs,DropEventArgs,DragEventArgs} from "./list-box";
|
|
3
3
|
import {DropDownBaseModel} from "../drop-down-base/drop-down-base-model";
|
|
4
4
|
|
|
@@ -8,34 +8,34 @@ import {DropDownBaseModel} from "../drop-down-base/drop-down-base-model";
|
|
|
8
8
|
export interface SelectionSettingsModel {
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Specifies the selection modes. The possible values are
|
|
12
|
-
* * `Single`: Allows you to select a single item in the ListBox.
|
|
13
|
-
* * `Multiple`: Allows you to select more than one item in the ListBox.
|
|
14
|
-
*
|
|
15
|
-
* @default 'Multiple'
|
|
16
|
-
*/
|
|
17
|
-
mode?: SelectionMode;
|
|
11
|
+
* Specifies the selection modes. The possible values are
|
|
12
|
+
* * `Single`: Allows you to select a single item in the ListBox.
|
|
13
|
+
* * `Multiple`: Allows you to select more than one item in the ListBox.
|
|
14
|
+
*
|
|
15
|
+
* @default 'Multiple'
|
|
16
|
+
*/
|
|
17
|
+
mode?: SelectionMode;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* If 'showCheckbox' is set to true, then 'checkbox' will be visualized in the list item.
|
|
21
|
-
*
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
showCheckbox?: boolean;
|
|
20
|
+
* If 'showCheckbox' is set to true, then 'checkbox' will be visualized in the list item.
|
|
21
|
+
*
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
showCheckbox?: boolean;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Allows you to either show or hide the selectAll option on the component.
|
|
28
|
-
*
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
showSelectAll?: boolean;
|
|
27
|
+
* Allows you to either show or hide the selectAll option on the component.
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
showSelectAll?: boolean;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* Set the position of the checkbox.
|
|
35
|
-
*
|
|
36
|
-
* @default 'Left'
|
|
37
|
-
*/
|
|
38
|
-
checkboxPosition?: CheckBoxPosition;
|
|
34
|
+
* Set the position of the checkbox.
|
|
35
|
+
*
|
|
36
|
+
* @default 'Left'
|
|
37
|
+
*/
|
|
38
|
+
checkboxPosition?: CheckBoxPosition;
|
|
39
39
|
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -45,22 +45,22 @@ export interface SelectionSettingsModel {
|
|
|
45
45
|
export interface ToolbarSettingsModel {
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Specifies the list of tools for dual ListBox.
|
|
49
|
-
* The predefined tools are 'moveUp', 'moveDown', 'moveTo', 'moveFrom', 'moveAllTo', and 'moveAllFrom'.
|
|
50
|
-
*
|
|
51
|
-
* @default []
|
|
52
|
-
*/
|
|
53
|
-
items?: string[];
|
|
48
|
+
* Specifies the list of tools for dual ListBox.
|
|
49
|
+
* The predefined tools are 'moveUp', 'moveDown', 'moveTo', 'moveFrom', 'moveAllTo', and 'moveAllFrom'.
|
|
50
|
+
*
|
|
51
|
+
* @default []
|
|
52
|
+
*/
|
|
53
|
+
items?: string[];
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* Positions the toolbar before/after the ListBox.
|
|
57
|
-
* The possible values are:
|
|
58
|
-
* * Left: The toolbar will be positioned to the left of the ListBox.
|
|
59
|
-
* * Right: The toolbar will be positioned to the right of the ListBox.
|
|
60
|
-
*
|
|
61
|
-
* @default 'Right'
|
|
62
|
-
*/
|
|
63
|
-
position?: ToolBarPosition;
|
|
56
|
+
* Positions the toolbar before/after the ListBox.
|
|
57
|
+
* The possible values are:
|
|
58
|
+
* * Left: The toolbar will be positioned to the left of the ListBox.
|
|
59
|
+
* * Right: The toolbar will be positioned to the right of the ListBox.
|
|
60
|
+
*
|
|
61
|
+
* @default 'Right'
|
|
62
|
+
*/
|
|
63
|
+
position?: ToolBarPosition;
|
|
64
64
|
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -70,211 +70,211 @@ export interface ToolbarSettingsModel {
|
|
|
70
70
|
export interface ListBoxModel extends DropDownBaseModel{
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
* Sets the CSS classes to root element of this component, which helps to customize the
|
|
74
|
-
* complete styles.
|
|
75
|
-
*
|
|
76
|
-
* @default ''
|
|
77
|
-
*/
|
|
78
|
-
cssClass?: string;
|
|
73
|
+
* Sets the CSS classes to root element of this component, which helps to customize the
|
|
74
|
+
* complete styles.
|
|
75
|
+
*
|
|
76
|
+
* @default ''
|
|
77
|
+
*/
|
|
78
|
+
cssClass?: string;
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* Sets the specified item to the selected state or gets the selected item in the ListBox.
|
|
82
|
-
*
|
|
83
|
-
* @default []
|
|
84
|
-
* @aspType object
|
|
85
|
-
* @isGenericType true
|
|
86
|
-
*/
|
|
87
|
-
value?: string[] | number[] | boolean[];
|
|
81
|
+
* Sets the specified item to the selected state or gets the selected item in the ListBox.
|
|
82
|
+
*
|
|
83
|
+
* @default []
|
|
84
|
+
* @aspType object
|
|
85
|
+
* @isGenericType true
|
|
86
|
+
*/
|
|
87
|
+
value?: string[] | number[] | boolean[];
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
* Sets the height of the ListBox component.
|
|
91
|
-
*
|
|
92
|
-
* @default ''
|
|
93
|
-
*/
|
|
94
|
-
height?: number | string;
|
|
90
|
+
* Sets the height of the ListBox component.
|
|
91
|
+
*
|
|
92
|
+
* @default ''
|
|
93
|
+
*/
|
|
94
|
+
height?: number | string;
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* Specifies a value that indicates whether the component is enabled or not.
|
|
98
|
-
*
|
|
99
|
-
* @default true
|
|
100
|
-
|
|
101
|
-
*/
|
|
102
|
-
enabled?: boolean;
|
|
97
|
+
* Specifies a value that indicates whether the component is enabled or not.
|
|
98
|
+
*
|
|
99
|
+
* @default true
|
|
100
|
+
|
|
101
|
+
*/
|
|
102
|
+
enabled?: boolean;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* Enable or disable persisting component's state between page reloads.
|
|
106
|
-
* If enabled, following list of states will be persisted.
|
|
107
|
-
* 1. value
|
|
108
|
-
*
|
|
109
|
-
* @default false
|
|
110
|
-
|
|
111
|
-
*/
|
|
112
|
-
enablePersistence?: boolean;
|
|
105
|
+
* Enable or disable persisting component's state between page reloads.
|
|
106
|
+
* If enabled, following list of states will be persisted.
|
|
107
|
+
* 1. value
|
|
108
|
+
*
|
|
109
|
+
* @default false
|
|
110
|
+
|
|
111
|
+
*/
|
|
112
|
+
enablePersistence?: boolean;
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* If 'allowDragAndDrop' is set to true, then you can perform drag and drop of the list item.
|
|
116
|
-
* ListBox contains same 'scope' property enables drag and drop between multiple ListBox.
|
|
117
|
-
*
|
|
118
|
-
* @default false
|
|
119
|
-
*/
|
|
120
|
-
allowDragAndDrop?: boolean;
|
|
115
|
+
* If 'allowDragAndDrop' is set to true, then you can perform drag and drop of the list item.
|
|
116
|
+
* ListBox contains same 'scope' property enables drag and drop between multiple ListBox.
|
|
117
|
+
*
|
|
118
|
+
* @default false
|
|
119
|
+
*/
|
|
120
|
+
allowDragAndDrop?: boolean;
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* Sets limitation to the value selection.
|
|
124
|
-
* based on the limitation, list selection will be prevented.
|
|
125
|
-
*
|
|
126
|
-
* @default 1000
|
|
127
|
-
*/
|
|
128
|
-
maximumSelectionLength?: number;
|
|
123
|
+
* Sets limitation to the value selection.
|
|
124
|
+
* based on the limitation, list selection will be prevented.
|
|
125
|
+
*
|
|
126
|
+
* @default 1000
|
|
127
|
+
*/
|
|
128
|
+
maximumSelectionLength?: number;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* To enable the filtering option in this component.
|
|
132
|
-
* Filter action performs when type in search box and collect the matched item through `filtering` event.
|
|
133
|
-
* If searching character does not match, `noRecordsTemplate` property value will be shown.
|
|
134
|
-
*
|
|
135
|
-
* @default false
|
|
136
|
-
*/
|
|
137
|
-
allowFiltering?: boolean;
|
|
131
|
+
* To enable the filtering option in this component.
|
|
132
|
+
* Filter action performs when type in search box and collect the matched item through `filtering` event.
|
|
133
|
+
* If searching character does not match, `noRecordsTemplate` property value will be shown.
|
|
134
|
+
*
|
|
135
|
+
* @default false
|
|
136
|
+
*/
|
|
137
|
+
allowFiltering?: boolean;
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
|
-
* Defines the scope value to group sets of draggable and droppable ListBox.
|
|
141
|
-
* A draggable with the same scope value will be accepted by the droppable.
|
|
142
|
-
*
|
|
143
|
-
* @default ''
|
|
144
|
-
*/
|
|
145
|
-
scope?: string;
|
|
140
|
+
* Defines the scope value to group sets of draggable and droppable ListBox.
|
|
141
|
+
* A draggable with the same scope value will be accepted by the droppable.
|
|
142
|
+
*
|
|
143
|
+
* @default ''
|
|
144
|
+
*/
|
|
145
|
+
scope?: string;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* When set to ‘false’, consider the `case-sensitive` on performing the search to find suggestions.
|
|
149
|
-
* By default consider the casing.
|
|
150
|
-
*
|
|
151
|
-
* @default true
|
|
152
|
-
* @private
|
|
153
|
-
*/
|
|
154
|
-
ignoreCase?: boolean;
|
|
148
|
+
* When set to ‘false’, consider the `case-sensitive` on performing the search to find suggestions.
|
|
149
|
+
* By default consider the casing.
|
|
150
|
+
*
|
|
151
|
+
* @default true
|
|
152
|
+
* @private
|
|
153
|
+
*/
|
|
154
|
+
ignoreCase?: boolean;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
|
-
* Accepts the value to be displayed as a watermark text on the filter bar.
|
|
158
|
-
*
|
|
159
|
-
* @default null
|
|
160
|
-
*/
|
|
161
|
-
filterBarPlaceholder?: string;
|
|
157
|
+
* Accepts the value to be displayed as a watermark text on the filter bar.
|
|
158
|
+
*
|
|
159
|
+
* @default null
|
|
160
|
+
*/
|
|
161
|
+
filterBarPlaceholder?: string;
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
|
-
* Triggers while rendering each list item.
|
|
165
|
-
*
|
|
166
|
-
* @event beforeItemRender
|
|
167
|
-
* @blazorProperty 'OnItemRender'
|
|
168
|
-
*/
|
|
169
|
-
beforeItemRender?: EmitType<BeforeItemRenderEventArgs>;
|
|
164
|
+
* Triggers while rendering each list item.
|
|
165
|
+
*
|
|
166
|
+
* @event beforeItemRender
|
|
167
|
+
* @blazorProperty 'OnItemRender'
|
|
168
|
+
*/
|
|
169
|
+
beforeItemRender?: EmitType<BeforeItemRenderEventArgs>;
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
|
-
* Triggers on typing a character in the component.
|
|
173
|
-
*
|
|
174
|
-
* @event filtering
|
|
175
|
-
* @blazorProperty 'ItemSelected'
|
|
176
|
-
*/
|
|
177
|
-
filtering?: EmitType<FilteringEventArgs>;
|
|
172
|
+
* Triggers on typing a character in the component.
|
|
173
|
+
*
|
|
174
|
+
* @event filtering
|
|
175
|
+
* @blazorProperty 'ItemSelected'
|
|
176
|
+
*/
|
|
177
|
+
filtering?: EmitType<FilteringEventArgs>;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* Triggers when an item in the popup is selected by the user either with mouse/tap or with keyboard navigation.
|
|
181
|
-
*
|
|
182
|
-
* @event select
|
|
183
|
-
* @private
|
|
184
|
-
*/
|
|
185
|
-
select?: EmitType<SelectEventArgs>;
|
|
180
|
+
* Triggers when an item in the popup is selected by the user either with mouse/tap or with keyboard navigation.
|
|
181
|
+
*
|
|
182
|
+
* @event select
|
|
183
|
+
* @private
|
|
184
|
+
*/
|
|
185
|
+
select?: EmitType<SelectEventArgs>;
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
|
-
* Triggers while select / unselect the list item.
|
|
189
|
-
*
|
|
190
|
-
* @event change
|
|
191
|
-
* @blazorProperty 'ValueChange'
|
|
192
|
-
*/
|
|
193
|
-
change?: EmitType<ListBoxChangeEventArgs>;
|
|
188
|
+
* Triggers while select / unselect the list item.
|
|
189
|
+
*
|
|
190
|
+
* @event change
|
|
191
|
+
* @blazorProperty 'ValueChange'
|
|
192
|
+
*/
|
|
193
|
+
change?: EmitType<ListBoxChangeEventArgs>;
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
* Triggers before dropping the list item on another list item.
|
|
197
|
-
*
|
|
198
|
-
* @event beforeDrop
|
|
199
|
-
* @blazorProperty 'OnDrop'
|
|
200
|
-
*/
|
|
201
|
-
beforeDrop?: EmitType<DropEventArgs>;
|
|
196
|
+
* Triggers before dropping the list item on another list item.
|
|
197
|
+
*
|
|
198
|
+
* @event beforeDrop
|
|
199
|
+
* @blazorProperty 'OnDrop'
|
|
200
|
+
*/
|
|
201
|
+
beforeDrop?: EmitType<DropEventArgs>;
|
|
202
202
|
|
|
203
203
|
/**
|
|
204
|
-
* Triggers after dragging the list item.
|
|
205
|
-
*
|
|
206
|
-
* @event dragStart
|
|
207
|
-
* @blazorProperty 'DragStart'
|
|
208
|
-
*/
|
|
209
|
-
dragStart?: EmitType<DragEventArgs>;
|
|
204
|
+
* Triggers after dragging the list item.
|
|
205
|
+
*
|
|
206
|
+
* @event dragStart
|
|
207
|
+
* @blazorProperty 'DragStart'
|
|
208
|
+
*/
|
|
209
|
+
dragStart?: EmitType<DragEventArgs>;
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
|
-
* Triggers while dragging the list item.
|
|
213
|
-
*
|
|
214
|
-
* @event drag
|
|
215
|
-
* @blazorProperty 'Dragging'
|
|
216
|
-
*/
|
|
217
|
-
drag?: EmitType<DragEventArgs>;
|
|
212
|
+
* Triggers while dragging the list item.
|
|
213
|
+
*
|
|
214
|
+
* @event drag
|
|
215
|
+
* @blazorProperty 'Dragging'
|
|
216
|
+
*/
|
|
217
|
+
drag?: EmitType<DragEventArgs>;
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
|
-
* Triggers before dropping the list item on another list item.
|
|
221
|
-
*
|
|
222
|
-
* @event drop
|
|
223
|
-
* @blazorProperty 'Dropped'
|
|
224
|
-
*/
|
|
225
|
-
drop?: EmitType<DragEventArgs>;
|
|
220
|
+
* Triggers before dropping the list item on another list item.
|
|
221
|
+
*
|
|
222
|
+
* @event drop
|
|
223
|
+
* @blazorProperty 'Dropped'
|
|
224
|
+
*/
|
|
225
|
+
drop?: EmitType<DragEventArgs>;
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
|
-
* Triggers when data source is populated in the list.
|
|
229
|
-
*
|
|
230
|
-
* @event dataBound
|
|
231
|
-
*/
|
|
232
|
-
dataBound?: EmitType<Object>;
|
|
228
|
+
* Triggers when data source is populated in the list.
|
|
229
|
+
*
|
|
230
|
+
* @event dataBound
|
|
231
|
+
*/
|
|
232
|
+
dataBound?: EmitType<Object>;
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
|
-
* Accepts the template design and assigns it to the group headers present in the list.
|
|
236
|
-
*
|
|
237
|
-
* @default null
|
|
238
|
-
* @private
|
|
239
|
-
*/
|
|
240
|
-
groupTemplate?: string;
|
|
235
|
+
* Accepts the template design and assigns it to the group headers present in the list.
|
|
236
|
+
*
|
|
237
|
+
* @default null
|
|
238
|
+
* @private
|
|
239
|
+
*/
|
|
240
|
+
groupTemplate?: string;
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
|
-
* Accepts the template and assigns it to the list content of the ListBox component
|
|
244
|
-
* when the data fetch request from the remote server fails.
|
|
245
|
-
*
|
|
246
|
-
* @default 'Request Failed'
|
|
247
|
-
* @private
|
|
248
|
-
*/
|
|
249
|
-
actionFailureTemplate?: string;
|
|
243
|
+
* Accepts the template and assigns it to the list content of the ListBox component
|
|
244
|
+
* when the data fetch request from the remote server fails.
|
|
245
|
+
*
|
|
246
|
+
* @default 'Request Failed'
|
|
247
|
+
* @private
|
|
248
|
+
*/
|
|
249
|
+
actionFailureTemplate?: string;
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
|
-
* specifies the z-index value of the component popup element.
|
|
253
|
-
*
|
|
254
|
-
* @default 1000
|
|
255
|
-
* @private
|
|
256
|
-
*/
|
|
257
|
-
zIndex?: number;
|
|
252
|
+
* specifies the z-index value of the component popup element.
|
|
253
|
+
*
|
|
254
|
+
* @default 1000
|
|
255
|
+
* @private
|
|
256
|
+
*/
|
|
257
|
+
zIndex?: number;
|
|
258
258
|
|
|
259
259
|
/**
|
|
260
|
-
* ignoreAccent set to true, then ignores the diacritic characters or accents when filtering.
|
|
261
|
-
*
|
|
262
|
-
* @private
|
|
263
|
-
*/
|
|
264
|
-
ignoreAccent?: boolean;
|
|
260
|
+
* ignoreAccent set to true, then ignores the diacritic characters or accents when filtering.
|
|
261
|
+
*
|
|
262
|
+
* @private
|
|
263
|
+
*/
|
|
264
|
+
ignoreAccent?: boolean;
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
|
-
* Specifies the toolbar items and its position.
|
|
268
|
-
*
|
|
269
|
-
* @default { items: [], position: 'Right' }
|
|
270
|
-
*/
|
|
271
|
-
toolbarSettings?: ToolbarSettingsModel;
|
|
267
|
+
* Specifies the toolbar items and its position.
|
|
268
|
+
*
|
|
269
|
+
* @default { items: [], position: 'Right' }
|
|
270
|
+
*/
|
|
271
|
+
toolbarSettings?: ToolbarSettingsModel;
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
|
-
* Specifies the selection mode and its type.
|
|
275
|
-
*
|
|
276
|
-
* @default { mode: 'Multiple', type: 'Default' }
|
|
277
|
-
*/
|
|
278
|
-
selectionSettings?: SelectionSettingsModel;
|
|
274
|
+
* Specifies the selection mode and its type.
|
|
275
|
+
*
|
|
276
|
+
* @default { mode: 'Multiple', type: 'Default' }
|
|
277
|
+
*/
|
|
278
|
+
selectionSettings?: SelectionSettingsModel;
|
|
279
279
|
|
|
280
280
|
}
|
|
@@ -160,7 +160,7 @@ export declare class ListBox extends DropDownBase {
|
|
|
160
160
|
* Specifies a value that indicates whether the component is enabled or not.
|
|
161
161
|
*
|
|
162
162
|
* @default true
|
|
163
|
-
|
|
163
|
+
|
|
164
164
|
*/
|
|
165
165
|
enabled: boolean;
|
|
166
166
|
/**
|
|
@@ -169,7 +169,7 @@ export declare class ListBox extends DropDownBase {
|
|
|
169
169
|
* 1. value
|
|
170
170
|
*
|
|
171
171
|
* @default false
|
|
172
|
-
|
|
172
|
+
|
|
173
173
|
*/
|
|
174
174
|
enablePersistence: boolean;
|
|
175
175
|
/**
|