@syncfusion/ej2-dropdowns 18.2.44-4568 → 18.2.44-4570
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 +244 -0
- package/CHANGELOG.md +1524 -1524
- package/README.md +118 -118
- package/dist/ej2-dropdowns.umd.min.js +1 -1
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +99 -60
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +191 -151
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +1 -1
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/ts/auto-complete/auto-complete.ts +527 -0
- package/dist/ts/combo-box/combo-box.ts +957 -0
- package/dist/ts/common/highlight-search.ts +47 -0
- package/dist/ts/common/incremental-search.ts +81 -0
- package/dist/ts/drop-down-base/drop-down-base.ts +1572 -0
- package/dist/ts/drop-down-list/drop-down-list.ts +2993 -0
- package/dist/ts/drop-down-tree/drop-down-tree.ts +3066 -0
- package/dist/ts/list-box/list-box.ts +2317 -0
- package/dist/ts/multi-select/checkbox-selection.ts +528 -0
- package/dist/ts/multi-select/float-label.ts +155 -0
- package/dist/ts/multi-select/interface.ts +66 -0
- package/dist/ts/multi-select/multi-select.ts +4216 -0
- package/helpers/e2e/index.js +3 -3
- package/license +2 -2
- package/package.json +63 -77
- package/src/auto-complete/auto-complete-model.d.ts +179 -179
- package/src/auto-complete/auto-complete.js +19 -19
- package/src/combo-box/combo-box-model.d.ts +212 -212
- package/src/combo-box/combo-box.js +19 -19
- package/src/drop-down-base/drop-down-base-model.d.ts +191 -191
- package/src/drop-down-base/drop-down-base.js +19 -19
- package/src/drop-down-list/drop-down-list-model.d.ts +222 -222
- package/src/drop-down-list/drop-down-list.js +19 -19
- package/src/drop-down-tree/drop-down-tree-model.d.ts +344 -344
- package/src/drop-down-tree/drop-down-tree.js +19 -19
- package/src/list-box/list-box-model.d.ts +156 -156
- package/src/list-box/list-box.js +19 -19
- package/src/multi-select/checkbox-selection.js +3 -1
- package/src/multi-select/multi-select-model.d.ts +452 -452
- package/src/multi-select/multi-select.d.ts +2 -0
- package/src/multi-select/multi-select.js +58 -19
- package/styles/_all.scss +3 -3
- package/styles/auto-complete/_bootstrap-dark-definition.scss +3 -3
- package/styles/auto-complete/_bootstrap4-definition.scss +11 -11
- package/styles/auto-complete/_fabric-dark-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/bootstrap-dark.css +13 -16
- package/styles/bootstrap.css +12 -15
- package/styles/bootstrap4.css +6 -10
- package/styles/combo-box/_bootstrap-dark-definition.scss +2 -2
- package/styles/combo-box/_bootstrap4-definition.scss +11 -11
- package/styles/combo-box/_fabric-dark-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/drop-down-base/_all.scss +2 -2
- package/styles/drop-down-base/_bootstrap-dark-definition.scss +64 -64
- package/styles/drop-down-base/_bootstrap-definition.scss +64 -64
- package/styles/drop-down-base/_bootstrap4-definition.scss +78 -78
- package/styles/drop-down-base/_definition.scss +23 -23
- package/styles/drop-down-base/_fabric-dark-definition.scss +68 -68
- package/styles/drop-down-base/_fabric-definition.scss +66 -66
- package/styles/drop-down-base/_highcontrast-definition.scss +82 -82
- package/styles/drop-down-base/_highcontrast-light-definition.scss +81 -81
- package/styles/drop-down-base/_layout.scss +108 -108
- package/styles/drop-down-base/_material-dark-definition.scss +67 -67
- package/styles/drop-down-base/_material-definition.scss +65 -65
- package/styles/drop-down-base/_theme.scss +242 -242
- package/styles/drop-down-list/_all.scss +2 -2
- 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 +184 -184
- package/styles/drop-down-list/_fabric-dark-definition.scss +127 -127
- package/styles/drop-down-list/_fabric-definition.scss +122 -122
- package/styles/drop-down-list/_highcontrast-definition.scss +131 -131
- package/styles/drop-down-list/_highcontrast-light-definition.scss +133 -133
- package/styles/drop-down-list/_layout.scss +218 -218
- package/styles/drop-down-list/_material-dark-definition.scss +143 -143
- package/styles/drop-down-list/_material-definition.scss +166 -166
- 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/_fabric-dark.scss +14 -14
- package/styles/drop-down-list/icons/_fabric.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/material.css +9 -0
- package/styles/drop-down-tree/_all.scss +2 -2
- package/styles/drop-down-tree/_bootstrap-dark-definition.scss +61 -61
- package/styles/drop-down-tree/_bootstrap-definition.scss +61 -61
- package/styles/drop-down-tree/_bootstrap4-definition.scss +62 -62
- package/styles/drop-down-tree/_fabric-dark-definition.scss +62 -62
- package/styles/drop-down-tree/_fabric-definition.scss +62 -62
- package/styles/drop-down-tree/_highcontrast-definition.scss +62 -62
- package/styles/drop-down-tree/_highcontrast-light-definition.scss +62 -62
- package/styles/drop-down-tree/_layout.scss +437 -437
- package/styles/drop-down-tree/_material-dark-definition.scss +60 -60
- package/styles/drop-down-tree/_material-definition.scss +60 -60
- package/styles/drop-down-tree/_theme.scss +68 -68
- 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/_fabric-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_fabric.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/material.css +9 -0
- package/styles/fabric-dark.css +2 -5
- package/styles/fabric.css +1 -4
- package/styles/highcontrast-light.css +2 -5
- package/styles/highcontrast.css +2 -7
- package/styles/list-box/_all.scss +2 -2
- package/styles/list-box/_bootstrap-dark-definition.scss +118 -118
- package/styles/list-box/_bootstrap-definition.scss +112 -112
- package/styles/list-box/_bootstrap4-definition.scss +118 -118
- package/styles/list-box/_fabric-dark-definition.scss +118 -118
- package/styles/list-box/_fabric-definition.scss +112 -112
- package/styles/list-box/_highcontrast-definition.scss +112 -112
- package/styles/list-box/_highcontrast-light-definition.scss +118 -118
- package/styles/list-box/_layout.scss +458 -458
- package/styles/list-box/_material-dark-definition.scss +118 -118
- package/styles/list-box/_material-definition.scss +112 -112
- package/styles/list-box/_theme.scss +273 -273
- 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/_fabric-dark.scss +25 -25
- package/styles/list-box/icons/_fabric.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/material-dark.css +8 -11
- package/styles/material.css +34 -10
- package/styles/multi-select/_all.scss +2 -2
- package/styles/multi-select/_bootstrap-dark-definition.scss +171 -171
- package/styles/multi-select/_bootstrap-definition.scss +166 -166
- package/styles/multi-select/_bootstrap4-definition.scss +233 -233
- package/styles/multi-select/_fabric-dark-definition.scss +170 -170
- package/styles/multi-select/_fabric-definition.scss +167 -167
- package/styles/multi-select/_highcontrast-definition.scss +257 -259
- package/styles/multi-select/_highcontrast-light-definition.scss +258 -258
- package/styles/multi-select/_layout.scss +1153 -1153
- package/styles/multi-select/_material-dark-definition.scss +186 -186
- package/styles/multi-select/_material-definition.scss +191 -191
- package/styles/multi-select/_theme.scss +384 -389
- package/styles/multi-select/bootstrap-dark.css +13 -16
- package/styles/multi-select/bootstrap.css +12 -15
- package/styles/multi-select/bootstrap4.css +6 -10
- package/styles/multi-select/fabric-dark.css +2 -5
- package/styles/multi-select/fabric.css +1 -4
- package/styles/multi-select/highcontrast-light.css +2 -5
- package/styles/multi-select/highcontrast.css +2 -7
- 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/_fabric-dark.scss +26 -26
- package/styles/multi-select/icons/_fabric.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 +26 -26
- package/styles/multi-select/icons/_material.scss +324 -324
- package/styles/multi-select/material-dark.css +8 -11
- package/styles/multi-select/material.css +16 -10
|
@@ -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 } from '@syncfusion/ej2-base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Input, InputObject } from '@syncfusion/ej2-inputs';
|
|
1
|
+
import { Input, InputObject } from '@syncfusion/ej2-inputs';
|
|
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,30 +8,30 @@ 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
|
-
* @default 'Multiple'
|
|
15
|
-
*/
|
|
16
|
-
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
|
+
* @default 'Multiple'
|
|
15
|
+
*/
|
|
16
|
+
mode?: SelectionMode;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* If 'showCheckbox' is set to true, then 'checkbox' will be visualized in the list item.
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
showCheckbox?: boolean;
|
|
19
|
+
* If 'showCheckbox' is set to true, then 'checkbox' will be visualized in the list item.
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
showCheckbox?: boolean;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* Allows you to either show or hide the selectAll option on the component.
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
showSelectAll?: boolean;
|
|
25
|
+
* Allows you to either show or hide the selectAll option on the component.
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
showSelectAll?: boolean;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Set the position of the checkbox.
|
|
32
|
-
* @default 'Left'
|
|
33
|
-
*/
|
|
34
|
-
checkboxPosition?: CheckBoxPosition;
|
|
31
|
+
* Set the position of the checkbox.
|
|
32
|
+
* @default 'Left'
|
|
33
|
+
*/
|
|
34
|
+
checkboxPosition?: CheckBoxPosition;
|
|
35
35
|
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -41,20 +41,20 @@ export interface SelectionSettingsModel {
|
|
|
41
41
|
export interface ToolbarSettingsModel {
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* Specifies the list of tools for dual ListBox.
|
|
45
|
-
* The predefined tools are 'moveUp', 'moveDown', 'moveTo', 'moveFrom', 'moveAllTo', and 'moveAllFrom'.
|
|
46
|
-
* @default []
|
|
47
|
-
*/
|
|
48
|
-
items?: string[];
|
|
44
|
+
* Specifies the list of tools for dual ListBox.
|
|
45
|
+
* The predefined tools are 'moveUp', 'moveDown', 'moveTo', 'moveFrom', 'moveAllTo', and 'moveAllFrom'.
|
|
46
|
+
* @default []
|
|
47
|
+
*/
|
|
48
|
+
items?: string[];
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Positions the toolbar before/after the ListBox.
|
|
52
|
-
* The possible values are:
|
|
53
|
-
* * Left: The toolbar will be positioned to the left of the ListBox.
|
|
54
|
-
* * Right: The toolbar will be positioned to the right of the ListBox.
|
|
55
|
-
* @default 'Right'
|
|
56
|
-
*/
|
|
57
|
-
position?: ToolBarPosition;
|
|
51
|
+
* Positions the toolbar before/after the ListBox.
|
|
52
|
+
* The possible values are:
|
|
53
|
+
* * Left: The toolbar will be positioned to the left of the ListBox.
|
|
54
|
+
* * Right: The toolbar will be positioned to the right of the ListBox.
|
|
55
|
+
* @default 'Right'
|
|
56
|
+
*/
|
|
57
|
+
position?: ToolBarPosition;
|
|
58
58
|
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -64,178 +64,178 @@ export interface ToolbarSettingsModel {
|
|
|
64
64
|
export interface ListBoxModel extends DropDownBaseModel{
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
* Sets the CSS classes to root element of this component, which helps to customize the
|
|
68
|
-
* complete styles.
|
|
69
|
-
* @default ''
|
|
70
|
-
*/
|
|
71
|
-
cssClass?: string;
|
|
67
|
+
* Sets the CSS classes to root element of this component, which helps to customize the
|
|
68
|
+
* complete styles.
|
|
69
|
+
* @default ''
|
|
70
|
+
*/
|
|
71
|
+
cssClass?: string;
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* Sets the specified item to the selected state or gets the selected item in the ListBox.
|
|
75
|
-
* @default []
|
|
76
|
-
* @aspType object
|
|
77
|
-
* @isGenericType true
|
|
78
|
-
*/
|
|
79
|
-
value?: string[] | number[] | boolean[];
|
|
74
|
+
* Sets the specified item to the selected state or gets the selected item in the ListBox.
|
|
75
|
+
* @default []
|
|
76
|
+
* @aspType object
|
|
77
|
+
* @isGenericType true
|
|
78
|
+
*/
|
|
79
|
+
value?: string[] | number[] | boolean[];
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* Sets the height of the ListBox component.
|
|
83
|
-
* @default ''
|
|
84
|
-
*/
|
|
85
|
-
height?: number | string;
|
|
82
|
+
* Sets the height of the ListBox component.
|
|
83
|
+
* @default ''
|
|
84
|
+
*/
|
|
85
|
+
height?: number | string;
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* If 'allowDragAndDrop' is set to true, then you can perform drag and drop of the list item.
|
|
89
|
-
* ListBox contains same 'scope' property enables drag and drop between multiple ListBox.
|
|
90
|
-
* @default false
|
|
91
|
-
*/
|
|
92
|
-
allowDragAndDrop?: boolean;
|
|
88
|
+
* If 'allowDragAndDrop' is set to true, then you can perform drag and drop of the list item.
|
|
89
|
+
* ListBox contains same 'scope' property enables drag and drop between multiple ListBox.
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
allowDragAndDrop?: boolean;
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
|
-
* Sets limitation to the value selection.
|
|
96
|
-
* based on the limitation, list selection will be prevented.
|
|
97
|
-
* @default 1000
|
|
98
|
-
*/
|
|
99
|
-
maximumSelectionLength?: number;
|
|
95
|
+
* Sets limitation to the value selection.
|
|
96
|
+
* based on the limitation, list selection will be prevented.
|
|
97
|
+
* @default 1000
|
|
98
|
+
*/
|
|
99
|
+
maximumSelectionLength?: number;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* To enable the filtering option in this component.
|
|
103
|
-
* Filter action performs when type in search box and collect the matched item through `filtering` event.
|
|
104
|
-
* If searching character does not match, `noRecordsTemplate` property value will be shown.
|
|
105
|
-
* @default false
|
|
106
|
-
*/
|
|
107
|
-
allowFiltering?: boolean;
|
|
102
|
+
* To enable the filtering option in this component.
|
|
103
|
+
* Filter action performs when type in search box and collect the matched item through `filtering` event.
|
|
104
|
+
* If searching character does not match, `noRecordsTemplate` property value will be shown.
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
allowFiltering?: boolean;
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
|
-
* Defines the scope value to group sets of draggable and droppable ListBox.
|
|
111
|
-
* A draggable with the same scope value will be accepted by the droppable.
|
|
112
|
-
* @default ''
|
|
113
|
-
*/
|
|
114
|
-
scope?: string;
|
|
110
|
+
* Defines the scope value to group sets of draggable and droppable ListBox.
|
|
111
|
+
* A draggable with the same scope value will be accepted by the droppable.
|
|
112
|
+
* @default ''
|
|
113
|
+
*/
|
|
114
|
+
scope?: string;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
|
-
* When set to ‘false’, consider the `case-sensitive` on performing the search to find suggestions.
|
|
118
|
-
* By default consider the casing.
|
|
119
|
-
* @default true
|
|
120
|
-
* @private
|
|
121
|
-
*/
|
|
122
|
-
ignoreCase?: boolean;
|
|
117
|
+
* When set to ‘false’, consider the `case-sensitive` on performing the search to find suggestions.
|
|
118
|
+
* By default consider the casing.
|
|
119
|
+
* @default true
|
|
120
|
+
* @private
|
|
121
|
+
*/
|
|
122
|
+
ignoreCase?: boolean;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* Accepts the value to be displayed as a watermark text on the filter bar.
|
|
126
|
-
* @default null
|
|
127
|
-
*/
|
|
128
|
-
filterBarPlaceholder?: string;
|
|
125
|
+
* Accepts the value to be displayed as a watermark text on the filter bar.
|
|
126
|
+
* @default null
|
|
127
|
+
*/
|
|
128
|
+
filterBarPlaceholder?: string;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* Triggers while rendering each list item.
|
|
132
|
-
* @event
|
|
133
|
-
* @blazorProperty 'OnItemRender'
|
|
134
|
-
*/
|
|
135
|
-
beforeItemRender?: EmitType<BeforeItemRenderEventArgs>;
|
|
131
|
+
* Triggers while rendering each list item.
|
|
132
|
+
* @event
|
|
133
|
+
* @blazorProperty 'OnItemRender'
|
|
134
|
+
*/
|
|
135
|
+
beforeItemRender?: EmitType<BeforeItemRenderEventArgs>;
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
|
-
* Triggers on typing a character in the component.
|
|
139
|
-
* @event
|
|
140
|
-
* @blazorProperty 'ItemSelected'
|
|
141
|
-
*/
|
|
142
|
-
filtering?: EmitType<FilteringEventArgs>;
|
|
138
|
+
* Triggers on typing a character in the component.
|
|
139
|
+
* @event
|
|
140
|
+
* @blazorProperty 'ItemSelected'
|
|
141
|
+
*/
|
|
142
|
+
filtering?: EmitType<FilteringEventArgs>;
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
|
-
* Triggers when an item in the popup is selected by the user either with mouse/tap or with keyboard navigation.
|
|
146
|
-
* @event
|
|
147
|
-
* @private
|
|
148
|
-
*/
|
|
149
|
-
select?: EmitType<SelectEventArgs>;
|
|
145
|
+
* Triggers when an item in the popup is selected by the user either with mouse/tap or with keyboard navigation.
|
|
146
|
+
* @event
|
|
147
|
+
* @private
|
|
148
|
+
*/
|
|
149
|
+
select?: EmitType<SelectEventArgs>;
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
|
-
* Triggers while select / unselect the list item.
|
|
153
|
-
* @event
|
|
154
|
-
* @blazorProperty 'ValueChange'
|
|
155
|
-
*/
|
|
156
|
-
change?: EmitType<ListBoxChangeEventArgs>;
|
|
152
|
+
* Triggers while select / unselect the list item.
|
|
153
|
+
* @event
|
|
154
|
+
* @blazorProperty 'ValueChange'
|
|
155
|
+
*/
|
|
156
|
+
change?: EmitType<ListBoxChangeEventArgs>;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* Triggers before dropping the list item on another list item.
|
|
160
|
-
* @event
|
|
161
|
-
* @blazorProperty 'OnDrop'
|
|
162
|
-
*/
|
|
163
|
-
beforeDrop?: EmitType<DropEventArgs>;
|
|
159
|
+
* Triggers before dropping the list item on another list item.
|
|
160
|
+
* @event
|
|
161
|
+
* @blazorProperty 'OnDrop'
|
|
162
|
+
*/
|
|
163
|
+
beforeDrop?: EmitType<DropEventArgs>;
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
|
-
* Triggers after dragging the list item.
|
|
167
|
-
* @event
|
|
168
|
-
* @blazorProperty 'DragStart'
|
|
169
|
-
*/
|
|
170
|
-
dragStart?: EmitType<DragEventArgs>;
|
|
166
|
+
* Triggers after dragging the list item.
|
|
167
|
+
* @event
|
|
168
|
+
* @blazorProperty 'DragStart'
|
|
169
|
+
*/
|
|
170
|
+
dragStart?: EmitType<DragEventArgs>;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
|
-
* Triggers while dragging the list item.
|
|
174
|
-
* @event
|
|
175
|
-
* @blazorProperty 'Dragging'
|
|
176
|
-
*/
|
|
177
|
-
drag?: EmitType<DragEventArgs>;
|
|
173
|
+
* Triggers while dragging the list item.
|
|
174
|
+
* @event
|
|
175
|
+
* @blazorProperty 'Dragging'
|
|
176
|
+
*/
|
|
177
|
+
drag?: EmitType<DragEventArgs>;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* Triggers before dropping the list item on another list item.
|
|
181
|
-
* @event
|
|
182
|
-
* @blazorProperty 'Dropped'
|
|
183
|
-
*/
|
|
184
|
-
drop?: EmitType<DragEventArgs>;
|
|
180
|
+
* Triggers before dropping the list item on another list item.
|
|
181
|
+
* @event
|
|
182
|
+
* @blazorProperty 'Dropped'
|
|
183
|
+
*/
|
|
184
|
+
drop?: EmitType<DragEventArgs>;
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
|
-
* Triggers when data source is populated in the list.
|
|
188
|
-
* @event
|
|
189
|
-
* @private
|
|
190
|
-
*/
|
|
191
|
-
dataBound?: EmitType<Object>;
|
|
187
|
+
* Triggers when data source is populated in the list.
|
|
188
|
+
* @event
|
|
189
|
+
* @private
|
|
190
|
+
*/
|
|
191
|
+
dataBound?: EmitType<Object>;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
-
* Accepts the template design and assigns it to the group headers present in the list.
|
|
195
|
-
* @default null
|
|
196
|
-
* @private
|
|
197
|
-
*/
|
|
198
|
-
groupTemplate?: string;
|
|
194
|
+
* Accepts the template design and assigns it to the group headers present in the list.
|
|
195
|
+
* @default null
|
|
196
|
+
* @private
|
|
197
|
+
*/
|
|
198
|
+
groupTemplate?: string;
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
|
-
* Accepts the template design and assigns it to list of component
|
|
202
|
-
* when no data is available on the component.
|
|
203
|
-
* @default 'No records found'
|
|
204
|
-
* @private
|
|
205
|
-
*/
|
|
206
|
-
noRecordsTemplate?: string;
|
|
201
|
+
* Accepts the template design and assigns it to list of component
|
|
202
|
+
* when no data is available on the component.
|
|
203
|
+
* @default 'No records found'
|
|
204
|
+
* @private
|
|
205
|
+
*/
|
|
206
|
+
noRecordsTemplate?: string;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* Accepts the template and assigns it to the list content of the ListBox component
|
|
210
|
-
* when the data fetch request from the remote server fails.
|
|
211
|
-
* @default 'Request Failed'
|
|
212
|
-
* @private
|
|
213
|
-
*/
|
|
214
|
-
actionFailureTemplate?: string;
|
|
209
|
+
* Accepts the template and assigns it to the list content of the ListBox component
|
|
210
|
+
* when the data fetch request from the remote server fails.
|
|
211
|
+
* @default 'Request Failed'
|
|
212
|
+
* @private
|
|
213
|
+
*/
|
|
214
|
+
actionFailureTemplate?: string;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
* specifies the z-index value of the component popup element.
|
|
218
|
-
* @default 1000
|
|
219
|
-
* @private
|
|
220
|
-
*/
|
|
221
|
-
zIndex?: number;
|
|
217
|
+
* specifies the z-index value of the component popup element.
|
|
218
|
+
* @default 1000
|
|
219
|
+
* @private
|
|
220
|
+
*/
|
|
221
|
+
zIndex?: number;
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
|
-
* ignoreAccent set to true, then ignores the diacritic characters or accents when filtering.
|
|
225
|
-
* @private
|
|
226
|
-
*/
|
|
227
|
-
ignoreAccent?: boolean;
|
|
224
|
+
* ignoreAccent set to true, then ignores the diacritic characters or accents when filtering.
|
|
225
|
+
* @private
|
|
226
|
+
*/
|
|
227
|
+
ignoreAccent?: boolean;
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* Specifies the toolbar items and its position.
|
|
231
|
-
* @default { items: [], position: 'Right' }
|
|
232
|
-
*/
|
|
233
|
-
toolbarSettings?: ToolbarSettingsModel;
|
|
230
|
+
* Specifies the toolbar items and its position.
|
|
231
|
+
* @default { items: [], position: 'Right' }
|
|
232
|
+
*/
|
|
233
|
+
toolbarSettings?: ToolbarSettingsModel;
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
|
-
* Specifies the selection mode and its type.
|
|
237
|
-
* @default { mode: 'Multiple', type: 'Default' }
|
|
238
|
-
*/
|
|
239
|
-
selectionSettings?: SelectionSettingsModel;
|
|
236
|
+
* Specifies the selection mode and its type.
|
|
237
|
+
* @default { mode: 'Multiple', type: 'Default' }
|
|
238
|
+
*/
|
|
239
|
+
selectionSettings?: SelectionSettingsModel;
|
|
240
240
|
|
|
241
241
|
}
|
package/src/list-box/list-box.js
CHANGED
|
@@ -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
|
/// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
|
|
21
21
|
import { Input } from '@syncfusion/ej2-inputs';
|
|
22
22
|
import { DropDownBase, dropDownBaseClasses } from '../drop-down-base/drop-down-base';
|
|
@@ -401,7 +401,9 @@ var CheckBoxSelection = /** @class */ (function () {
|
|
|
401
401
|
if (this.parent.getLocaleName() !== 'listbox') {
|
|
402
402
|
var target = e.target;
|
|
403
403
|
if (!isNullOrUndefined(this.parent.popupObj) && closest(target, '#' + this.parent.popupObj.element.id)) {
|
|
404
|
-
|
|
404
|
+
if (!(this.filterInput && this.filterInput.value !== '')) {
|
|
405
|
+
e.preventDefault();
|
|
406
|
+
}
|
|
405
407
|
}
|
|
406
408
|
if (!(!isNullOrUndefined(this.parent.popupObj) && closest(target, '#' + this.parent.popupObj.element.id)) &&
|
|
407
409
|
!this.parent.overAllWrapper.contains(e.target)) {
|