@syncfusion/ej2-dropdowns 20.1.61 → 20.2.36
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/CHANGELOG.md +0 -82
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +88 -89
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +51 -52
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/helpers/e2e/autocomplete.js +59 -43
- package/helpers/e2e/combobox.js +62 -46
- package/helpers/e2e/dropdownlist.js +71 -55
- package/helpers/e2e/index.js +11 -9
- package/helpers/e2e/listboxHelper.js +55 -38
- package/helpers/e2e/multiselect.js +104 -88
- package/package.json +11 -11
- package/src/common/incremental-search.js +1 -1
- package/src/drop-down-base/drop-down-base-model.d.ts +1 -1
- package/src/drop-down-base/drop-down-base.d.ts +5 -1
- package/src/drop-down-base/drop-down-base.js +3 -5
- package/src/drop-down-list/drop-down-list.js +7 -7
- package/src/drop-down-tree/drop-down-tree-model.d.ts +2 -2
- package/src/drop-down-tree/drop-down-tree.js +5 -5
- package/src/list-box/list-box.js +10 -11
- package/src/multi-select/multi-select-model.d.ts +1 -1
- package/src/multi-select/multi-select.d.ts +2 -1
- package/src/multi-select/multi-select.js +25 -23
- package/styles/auto-complete/_fusionnew-definition.scss +2 -0
- package/styles/auto-complete/_material3-definition.scss +2 -0
- package/styles/bootstrap-dark.css +38 -2
- package/styles/bootstrap.css +38 -2
- package/styles/bootstrap4.css +38 -2
- package/styles/bootstrap5-dark.css +38 -2
- package/styles/bootstrap5.css +38 -2
- package/styles/combo-box/_fusionnew-definition.scss +2 -0
- package/styles/combo-box/_material3-definition.scss +2 -0
- package/styles/drop-down-base/_fusionnew-definition.scss +111 -0
- package/styles/drop-down-base/_material3-definition.scss +111 -0
- package/styles/drop-down-list/_fusionnew-definition.scss +201 -0
- package/styles/drop-down-list/_material3-definition.scss +201 -0
- package/styles/drop-down-list/icons/_fusionnew.scss +14 -0
- package/styles/drop-down-list/icons/_material3.scss +14 -0
- package/styles/drop-down-tree/_fusionnew-definition.scss +60 -0
- package/styles/drop-down-tree/_material3-definition.scss +60 -0
- package/styles/drop-down-tree/icons/_fusionnew.scss +11 -0
- package/styles/drop-down-tree/icons/_material3.scss +11 -0
- package/styles/fabric-dark.css +38 -2
- package/styles/fabric.css +38 -2
- package/styles/fluent-dark.css +38 -2
- package/styles/fluent.css +38 -2
- package/styles/highcontrast-light.css +38 -2
- package/styles/highcontrast.css +38 -2
- package/styles/list-box/_bootstrap-dark-definition.scss +5 -1
- package/styles/list-box/_bootstrap-definition.scss +5 -1
- package/styles/list-box/_bootstrap4-definition.scss +5 -1
- package/styles/list-box/_bootstrap5-definition.scss +7 -0
- package/styles/list-box/_fabric-dark-definition.scss +5 -1
- package/styles/list-box/_fabric-definition.scss +5 -1
- package/styles/list-box/_fluent-definition.scss +7 -0
- package/styles/list-box/_fusionnew-definition.scss +113 -0
- package/styles/list-box/_highcontrast-definition.scss +5 -1
- package/styles/list-box/_highcontrast-light-definition.scss +5 -1
- package/styles/list-box/_layout.scss +36 -1
- package/styles/list-box/_material-dark-definition.scss +6 -2
- package/styles/list-box/_material-definition.scss +6 -2
- package/styles/list-box/_material3-definition.scss +119 -0
- package/styles/list-box/_tailwind-definition.scss +6 -0
- package/styles/list-box/_theme.scss +19 -0
- package/styles/list-box/bootstrap-dark.css +28 -2
- package/styles/list-box/bootstrap.css +38 -2
- package/styles/list-box/bootstrap4.css +38 -2
- package/styles/list-box/bootstrap5-dark.css +38 -2
- package/styles/list-box/bootstrap5.css +38 -2
- package/styles/list-box/fabric-dark.css +28 -2
- package/styles/list-box/fabric.css +38 -2
- package/styles/list-box/fluent-dark.css +38 -2
- package/styles/list-box/fluent.css +38 -2
- package/styles/list-box/highcontrast-light.css +28 -2
- package/styles/list-box/highcontrast.css +38 -2
- package/styles/list-box/icons/_fusionnew.scss +25 -0
- package/styles/list-box/icons/_material3.scss +25 -0
- package/styles/list-box/material-dark.css +30 -4
- package/styles/list-box/material.css +40 -4
- package/styles/list-box/tailwind-dark.css +38 -2
- package/styles/list-box/tailwind.css +38 -2
- package/styles/material-dark.css +40 -4
- package/styles/material.css +40 -4
- package/styles/multi-select/_fusionnew-definition.scss +219 -0
- package/styles/multi-select/_material3-definition.scss +219 -0
- package/styles/multi-select/icons/_fusionnew.scss +27 -0
- package/styles/multi-select/icons/_material3.scss +27 -0
- package/styles/tailwind-dark.css +38 -2
- package/styles/tailwind.css +38 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.
|
|
3
|
+
* version : 20.2.36
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
@@ -1,44 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
|
|
15
|
+
"use strict";
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var AutoCompleteHelper = (function (_super) {
|
|
18
|
+
__extends(AutoCompleteHelper, _super);
|
|
19
|
+
function AutoCompleteHelper(id, wrapperFn) {
|
|
20
|
+
var _this = _super.call(this) || this;
|
|
21
|
+
_this.id = id;
|
|
22
|
+
if (wrapperFn !== undefined) {
|
|
23
|
+
_this.wrapperFn = wrapperFn;
|
|
24
|
+
}
|
|
25
|
+
return _this;
|
|
10
26
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
27
|
+
AutoCompleteHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
AutoCompleteHelper.prototype.getInputElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
AutoCompleteHelper.prototype.getPopupElement = function () {
|
|
34
|
+
return this.selector('#' + this.id + '_popup');
|
|
35
|
+
};
|
|
36
|
+
AutoCompleteHelper.prototype.getListItemElement = function () {
|
|
37
|
+
return this.selector('.e-popup .e-content .e-list-parent .e-list-item');
|
|
38
|
+
};
|
|
39
|
+
AutoCompleteHelper.prototype.getListGroupingElemnt = function () {
|
|
40
|
+
return this.selector('.e-popup .e-content .e-list-parent .e-list-group-item');
|
|
41
|
+
};
|
|
42
|
+
AutoCompleteHelper.prototype.getValueElement = function () {
|
|
43
|
+
return this.selector('#' + this.id + '_hidden');
|
|
44
|
+
};
|
|
45
|
+
AutoCompleteHelper.prototype.getWrapperElement = function () {
|
|
46
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl');
|
|
47
|
+
};
|
|
48
|
+
AutoCompleteHelper.prototype.getClearIconElement = function () {
|
|
49
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl .e-clear-icon');
|
|
50
|
+
};
|
|
51
|
+
AutoCompleteHelper.prototype.getSpinnerElement = function () {
|
|
52
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl .e-clear-icon .e-spinner-pane');
|
|
53
|
+
};
|
|
54
|
+
AutoCompleteHelper.prototype.getSpinnerInnerElement = function () {
|
|
55
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl .e-clear-icon .e-spinner-pane .e-spinner-inner');
|
|
56
|
+
};
|
|
57
|
+
return AutoCompleteHelper;
|
|
58
|
+
}(e2e_1.TestHelper));
|
|
59
|
+
exports.AutoCompleteHelper = AutoCompleteHelper;
|
|
60
|
+
});
|
package/helpers/e2e/combobox.js
CHANGED
|
@@ -1,47 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
|
|
15
|
+
"use strict";
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var ComboBoxHelper = (function (_super) {
|
|
18
|
+
__extends(ComboBoxHelper, _super);
|
|
19
|
+
function ComboBoxHelper(id, wrapperFn) {
|
|
20
|
+
var _this = _super.call(this) || this;
|
|
21
|
+
_this.id = id;
|
|
22
|
+
if (wrapperFn !== undefined) {
|
|
23
|
+
_this.wrapperFn = wrapperFn;
|
|
24
|
+
}
|
|
25
|
+
return _this;
|
|
10
26
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
27
|
+
ComboBoxHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
ComboBoxHelper.prototype.getInputElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
ComboBoxHelper.prototype.getPopupElement = function () {
|
|
34
|
+
return this.selector('#' + this.id + '_popup');
|
|
35
|
+
};
|
|
36
|
+
ComboBoxHelper.prototype.getValueElement = function () {
|
|
37
|
+
return this.selector('#' + this.id + '_hidden');
|
|
38
|
+
};
|
|
39
|
+
ComboBoxHelper.prototype.getListItemElement = function () {
|
|
40
|
+
return this.selector('.e-popup .e-content .e-list-parent .e-list-item');
|
|
41
|
+
};
|
|
42
|
+
ComboBoxHelper.prototype.getListGroupingElemnt = function () {
|
|
43
|
+
return this.selector('.e-popup .e-content .e-list-parent .e-list-group-item');
|
|
44
|
+
};
|
|
45
|
+
ComboBoxHelper.prototype.getWrapperElement = function () {
|
|
46
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl');
|
|
47
|
+
};
|
|
48
|
+
ComboBoxHelper.prototype.getClearIconElement = function () {
|
|
49
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl .e-clear-icon');
|
|
50
|
+
};
|
|
51
|
+
ComboBoxHelper.prototype.getInputGroupIconElement = function () {
|
|
52
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl .e-input-group-icon.e-ddl-icon.e-search-icon');
|
|
53
|
+
};
|
|
54
|
+
ComboBoxHelper.prototype.getSpinnerElement = function () {
|
|
55
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl .e-input-group-icon .e-spinner-pane');
|
|
56
|
+
};
|
|
57
|
+
ComboBoxHelper.prototype.getSpinnerInnerElement = function () {
|
|
58
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl .e-input-group-icon .e-spinner-pane .e-spinner-inner');
|
|
59
|
+
};
|
|
60
|
+
return ComboBoxHelper;
|
|
61
|
+
}(e2e_1.TestHelper));
|
|
62
|
+
exports.ComboBoxHelper = ComboBoxHelper;
|
|
63
|
+
});
|
|
@@ -1,56 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
|
|
15
|
+
"use strict";
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var DropDownListHelper = (function (_super) {
|
|
18
|
+
__extends(DropDownListHelper, _super);
|
|
19
|
+
function DropDownListHelper(id, wrapperFn) {
|
|
20
|
+
var _this = _super.call(this) || this;
|
|
21
|
+
_this.id = id;
|
|
22
|
+
if (wrapperFn !== undefined) {
|
|
23
|
+
_this.wrapperFn = wrapperFn;
|
|
24
|
+
}
|
|
25
|
+
return _this;
|
|
10
26
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
27
|
+
DropDownListHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
DropDownListHelper.prototype.getInputElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
DropDownListHelper.prototype.getPopupElement = function () {
|
|
34
|
+
return this.selector('#' + this.id + '_popup');
|
|
35
|
+
};
|
|
36
|
+
DropDownListHelper.prototype.getValueElement = function () {
|
|
37
|
+
return this.selector('#' + this.id + '_hidden');
|
|
38
|
+
};
|
|
39
|
+
DropDownListHelper.prototype.getListItemElement = function () {
|
|
40
|
+
return this.selector('.e-popup .e-content .e-list-parent .e-list-item');
|
|
41
|
+
};
|
|
42
|
+
DropDownListHelper.prototype.getListGroupingElemnt = function () {
|
|
43
|
+
return this.selector('.e-popup .e-content .e-list-parent .e-list-group-item');
|
|
44
|
+
};
|
|
45
|
+
DropDownListHelper.prototype.getWrapperElement = function () {
|
|
46
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl.e-lib.e-keyboard');
|
|
47
|
+
};
|
|
48
|
+
DropDownListHelper.prototype.getInputGroupIconElement = function () {
|
|
49
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl.e-lib.e-keyboard .e-input-group-icon');
|
|
50
|
+
};
|
|
51
|
+
DropDownListHelper.prototype.getSpinnerElement = function () {
|
|
52
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl.e-lib.e-keyboard .e-input-group-icon .e-spinner-pane');
|
|
53
|
+
};
|
|
54
|
+
DropDownListHelper.prototype.getSpinnerInnerElement = function () {
|
|
55
|
+
return this.selector('.e-input-group.e-control-wrapper.e-ddl.e-lib.e-keyboard .e-input-group-icon .e-spinner-pane .e-spinner-inner');
|
|
56
|
+
};
|
|
57
|
+
DropDownListHelper.prototype.getFilterParentElement = function () {
|
|
58
|
+
return this.selector('.e-popup .e-filter-parent');
|
|
59
|
+
};
|
|
60
|
+
DropDownListHelper.prototype.getfilterInputGroupElement = function () {
|
|
61
|
+
return this.selector('.e-popup .e-filter-parent .e-input-group');
|
|
62
|
+
};
|
|
63
|
+
DropDownListHelper.prototype.getFilterInputElement = function () {
|
|
64
|
+
return this.selector('.e-popup .e-filter-parent .e-input-group .e-input-filter');
|
|
65
|
+
};
|
|
66
|
+
DropDownListHelper.prototype.getFilterClearIconElement = function () {
|
|
67
|
+
return this.selector('.e-popup .e-filter-parent .e-input-group .e-clear-icon');
|
|
68
|
+
};
|
|
69
|
+
return DropDownListHelper;
|
|
70
|
+
}(e2e_1.TestHelper));
|
|
71
|
+
exports.DropDownListHelper = DropDownListHelper;
|
|
72
|
+
});
|
package/helpers/e2e/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
__export(
|
|
8
|
-
__export(
|
|
9
|
-
__export(
|
|
1
|
+
define(["require", "exports", "./autocomplete", "./combobox", "./dropdownlist", "./multiselect"], function (require, exports, autocomplete_1, combobox_1, dropdownlist_1, multiselect_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
function __export(m) {
|
|
4
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
__export(autocomplete_1);
|
|
8
|
+
__export(combobox_1);
|
|
9
|
+
__export(dropdownlist_1);
|
|
10
|
+
__export(multiselect_1);
|
|
11
|
+
});
|
|
@@ -1,39 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
|
|
15
|
+
"use strict";
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var listboxHelper = (function (_super) {
|
|
18
|
+
__extends(listboxHelper, _super);
|
|
19
|
+
function listboxHelper(id, wrapperFn) {
|
|
20
|
+
var _this = _super.call(this) || this;
|
|
21
|
+
_this.id = id;
|
|
22
|
+
if (wrapperFn !== undefined) {
|
|
23
|
+
_this.wrapperFn = wrapperFn;
|
|
24
|
+
}
|
|
25
|
+
return _this;
|
|
10
26
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
exports.listboxHelper = listboxHelper;
|
|
27
|
+
listboxHelper.prototype.getElement = function () {
|
|
28
|
+
return this.selector('#' + this.id);
|
|
29
|
+
};
|
|
30
|
+
listboxHelper.prototype.selectElement = function (element_id) {
|
|
31
|
+
document.getElementById(element_id).click();
|
|
32
|
+
};
|
|
33
|
+
listboxHelper.prototype.setModel = function (property, value) {
|
|
34
|
+
var cy;
|
|
35
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
36
|
+
return ele[0].ej2_instances[0][property] = value;
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
listboxHelper.prototype.getModel = function (property) {
|
|
40
|
+
var cy;
|
|
41
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
42
|
+
return ele[0].ej2_instances[0][property];
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
listboxHelper.prototype.invoke = function (fName, args) {
|
|
46
|
+
if (args === void 0) { args = []; }
|
|
47
|
+
var cy;
|
|
48
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
49
|
+
var inst = ele[0].ej2_instances[0];
|
|
50
|
+
return inst[fName].apply(inst, args);
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
return listboxHelper;
|
|
54
|
+
}(e2e_1.TestHelper));
|
|
55
|
+
exports.listboxHelper = listboxHelper;
|
|
56
|
+
});
|