@syncfusion/ej2-inputs 33.2.12 → 33.2.15
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/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +1 -1
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +1 -1
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/helpers/e2e/colorpickerHelper.d.ts +23 -0
- package/helpers/e2e/colorpickerHelper.js +70 -0
- package/helpers/e2e/index.d.ts +5 -0
- package/helpers/e2e/index.js +12 -0
- package/helpers/e2e/maskedtextboxHelper.d.ts +14 -0
- package/helpers/e2e/maskedtextboxHelper.js +57 -0
- package/helpers/e2e/numerictextboxHelper.d.ts +14 -0
- package/helpers/e2e/numerictextboxHelper.js +54 -0
- package/helpers/e2e/slider.d.ts +44 -0
- package/helpers/e2e/slider.js +99 -0
- package/helpers/e2e/textboxHelper.d.ts +13 -0
- package/helpers/e2e/textboxHelper.js +54 -0
- package/helpers/e2e/uploaderHelper.d.ts +31 -0
- package/helpers/e2e/uploaderHelper.js +107 -0
- package/package.json +2 -2
- package/src/color-picker/color-picker.js +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 33.2.
|
|
3
|
+
* version : 33.2.15
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. 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
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
|
|
2
|
+
/**
|
|
3
|
+
* E2E test helpers for Colorpicker to easily interact and the test the component
|
|
4
|
+
*/
|
|
5
|
+
export declare class ColorpickerHelper extends TestHelper {
|
|
6
|
+
id: string;
|
|
7
|
+
wrapperFn: Function;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize the Colorpicker E2E helpers
|
|
10
|
+
* @param id Element id of the Colorpicker element
|
|
11
|
+
* @param wrapperFn Pass the wrapper function
|
|
12
|
+
*/
|
|
13
|
+
constructor(id: string, wrapperFn: Function);
|
|
14
|
+
/**
|
|
15
|
+
* Used to get root element of the Colorpicker component
|
|
16
|
+
*/
|
|
17
|
+
getElement(): any;
|
|
18
|
+
getSplitButtonElement(): any;
|
|
19
|
+
getSplitButtonPopupElement(): any;
|
|
20
|
+
setModel(property: any, value: any): any;
|
|
21
|
+
getModel(property: any): any;
|
|
22
|
+
invoke(fName: any, args?: any): any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
/**
|
|
18
|
+
* E2E test helpers for Colorpicker to easily interact and the test the component
|
|
19
|
+
*/
|
|
20
|
+
var ColorpickerHelper = /** @class */ (function (_super) {
|
|
21
|
+
__extends(ColorpickerHelper, _super);
|
|
22
|
+
/**
|
|
23
|
+
* Initialize the Colorpicker E2E helpers
|
|
24
|
+
* @param id Element id of the Colorpicker element
|
|
25
|
+
* @param wrapperFn Pass the wrapper function
|
|
26
|
+
*/
|
|
27
|
+
function ColorpickerHelper(id, wrapperFn) {
|
|
28
|
+
var _this = _super.call(this) || this;
|
|
29
|
+
_this.id = id;
|
|
30
|
+
if (wrapperFn !== undefined) {
|
|
31
|
+
_this.wrapperFn = wrapperFn;
|
|
32
|
+
}
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Used to get root element of the Colorpicker component
|
|
37
|
+
*/
|
|
38
|
+
ColorpickerHelper.prototype.getElement = function () {
|
|
39
|
+
return this.selector('#' + this.id);
|
|
40
|
+
};
|
|
41
|
+
ColorpickerHelper.prototype.getSplitButtonElement = function () {
|
|
42
|
+
return this.selector('#' + this.id + '_dropdownbtn');
|
|
43
|
+
};
|
|
44
|
+
ColorpickerHelper.prototype.getSplitButtonPopupElement = function () {
|
|
45
|
+
return this.selector('#' + this.id + '_dropdownbtn_popup');
|
|
46
|
+
};
|
|
47
|
+
ColorpickerHelper.prototype.setModel = function (property, value) {
|
|
48
|
+
var cy;
|
|
49
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
50
|
+
return ele[0].ej2_instances[0][property] = value;
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
ColorpickerHelper.prototype.getModel = function (property) {
|
|
54
|
+
var cy;
|
|
55
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
56
|
+
return ele[0].ej2_instances[0][property];
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
ColorpickerHelper.prototype.invoke = function (fName, args) {
|
|
60
|
+
if (args === void 0) { args = []; }
|
|
61
|
+
var cy;
|
|
62
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
63
|
+
var inst = ele[0].ej2_instances[0];
|
|
64
|
+
return inst[fName].apply(inst, args);
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
return ColorpickerHelper;
|
|
68
|
+
}(e2e_1.TestHelper));
|
|
69
|
+
exports.ColorpickerHelper = ColorpickerHelper;
|
|
70
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
define(["require", "exports", "./maskedtextboxHelper", "./numerictextboxHelper", "./textboxHelper", "./uploaderHelper", "./slider"], function (require, exports, maskedtextboxHelper_1, numerictextboxHelper_1, textboxHelper_1, uploaderHelper_1, slider_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(maskedtextboxHelper_1);
|
|
8
|
+
__export(numerictextboxHelper_1);
|
|
9
|
+
__export(textboxHelper_1);
|
|
10
|
+
__export(uploaderHelper_1);
|
|
11
|
+
__export(slider_1);
|
|
12
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
|
|
2
|
+
export declare class maskedtextboxHelper extends TestHelper {
|
|
3
|
+
id: string;
|
|
4
|
+
wrapperFn: Function;
|
|
5
|
+
constructor(id: string, wrapperFn: Function);
|
|
6
|
+
selector(arg: any): any;
|
|
7
|
+
getElement(): any;
|
|
8
|
+
getWrapperElement(): any;
|
|
9
|
+
getInputElement(): any;
|
|
10
|
+
getFocusElement(): any;
|
|
11
|
+
getClearIconElement(): any;
|
|
12
|
+
getFloatLabelElement(): any;
|
|
13
|
+
setModel(property: any, value: any): any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 maskedtextboxHelper = /** @class */ (function (_super) {
|
|
18
|
+
__extends(maskedtextboxHelper, _super);
|
|
19
|
+
function maskedtextboxHelper(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;
|
|
26
|
+
}
|
|
27
|
+
maskedtextboxHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
maskedtextboxHelper.prototype.getElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
maskedtextboxHelper.prototype.getWrapperElement = function () {
|
|
34
|
+
return this.selector('.e-control-wrapper.e-mask.e-input-group');
|
|
35
|
+
};
|
|
36
|
+
maskedtextboxHelper.prototype.getInputElement = function () {
|
|
37
|
+
return this.selector('.e-control-wrapper.e-mask.e-input-group .e-control.e-maskedtextbox.e-lib.e-input');
|
|
38
|
+
};
|
|
39
|
+
maskedtextboxHelper.prototype.getFocusElement = function () {
|
|
40
|
+
return this.selector('.e-control-wrapper.e-mask.e-input-group.e-input-focus');
|
|
41
|
+
};
|
|
42
|
+
maskedtextboxHelper.prototype.getClearIconElement = function () {
|
|
43
|
+
return this.selector('.e-control-wrapper.e-mask.e-input-group .e-clear-icon');
|
|
44
|
+
};
|
|
45
|
+
maskedtextboxHelper.prototype.getFloatLabelElement = function () {
|
|
46
|
+
return this.selector('#' + 'label_' + this.id);
|
|
47
|
+
};
|
|
48
|
+
maskedtextboxHelper.prototype.setModel = function (property, value) {
|
|
49
|
+
var cy;
|
|
50
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
51
|
+
return ele[0].ej2_instances[0][property] = value;
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
return maskedtextboxHelper;
|
|
55
|
+
}(e2e_1.TestHelper));
|
|
56
|
+
exports.maskedtextboxHelper = maskedtextboxHelper;
|
|
57
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
|
|
2
|
+
export declare class numerictextboxHelper extends TestHelper {
|
|
3
|
+
id: string;
|
|
4
|
+
wrapperFn: Function;
|
|
5
|
+
constructor(id: string, wrapperFn: Function);
|
|
6
|
+
selector(arg: any): any;
|
|
7
|
+
getWrapperElement(): any;
|
|
8
|
+
getInputElement(): any;
|
|
9
|
+
getUpIconElement(): any;
|
|
10
|
+
getDownIconElement(): any;
|
|
11
|
+
getFocusElement(): any;
|
|
12
|
+
getClearIconElement(): any;
|
|
13
|
+
getFloatLabelElement(): any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 numerictextboxHelper = /** @class */ (function (_super) {
|
|
18
|
+
__extends(numerictextboxHelper, _super);
|
|
19
|
+
function numerictextboxHelper(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;
|
|
26
|
+
}
|
|
27
|
+
numerictextboxHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
numerictextboxHelper.prototype.getWrapperElement = function () {
|
|
31
|
+
return this.selector('.e-control-wrapper.e-numeric.e-input-group');
|
|
32
|
+
};
|
|
33
|
+
numerictextboxHelper.prototype.getInputElement = function () {
|
|
34
|
+
return this.selector('.e-control-wrapper.e-numeric.e-input-group .e-numerictextbox');
|
|
35
|
+
};
|
|
36
|
+
numerictextboxHelper.prototype.getUpIconElement = function () {
|
|
37
|
+
return this.selector('.e-control-wrapper.e-numeric.e-input-group .e-input-group-icon.e-spin-up');
|
|
38
|
+
};
|
|
39
|
+
numerictextboxHelper.prototype.getDownIconElement = function () {
|
|
40
|
+
return this.selector('.e-control-wrapper.e-numeric.e-input-group .e-input-group-icon.e-spin-down');
|
|
41
|
+
};
|
|
42
|
+
numerictextboxHelper.prototype.getFocusElement = function () {
|
|
43
|
+
return this.selector('.e-control-wrapper.e-numeric.e-input-group.e-input-focus');
|
|
44
|
+
};
|
|
45
|
+
numerictextboxHelper.prototype.getClearIconElement = function () {
|
|
46
|
+
return this.selector('.e-control-wrapper.e-numeric.e-input-group .e-clear-icon');
|
|
47
|
+
};
|
|
48
|
+
numerictextboxHelper.prototype.getFloatLabelElement = function () {
|
|
49
|
+
return this.selector('#' + 'label_' + this.id);
|
|
50
|
+
};
|
|
51
|
+
return numerictextboxHelper;
|
|
52
|
+
}(e2e_1.TestHelper));
|
|
53
|
+
exports.numerictextboxHelper = numerictextboxHelper;
|
|
54
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
|
|
2
|
+
/**
|
|
3
|
+
* E2E test helpers for slider to easily interact and the test the component
|
|
4
|
+
*/
|
|
5
|
+
export declare class SliderHelper extends TestHelper {
|
|
6
|
+
id: string;
|
|
7
|
+
wrapperFn: Function;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize the Slider E2E helpers
|
|
10
|
+
* @param id Element id of the slider element
|
|
11
|
+
* @param wrapperFn Pass the wrapper function
|
|
12
|
+
*/
|
|
13
|
+
constructor(id: string, wrapperFn: Function);
|
|
14
|
+
/**
|
|
15
|
+
* Used get root element or id of the Slider component
|
|
16
|
+
*/
|
|
17
|
+
getElement(): any;
|
|
18
|
+
/**
|
|
19
|
+
* Used to get the tooltip element of slider component.
|
|
20
|
+
* @param tooltipCssClass cssClass for the slider tooltip element
|
|
21
|
+
* if assigned in the tooltip property of slider.
|
|
22
|
+
*
|
|
23
|
+
* Works only if the `tooltip` is used in the slider.
|
|
24
|
+
*/
|
|
25
|
+
getSliderTooltipElement(tooltipCssClass?: string): any;
|
|
26
|
+
/**
|
|
27
|
+
* Used to get the slider components ticks element.
|
|
28
|
+
*
|
|
29
|
+
* Works only if `ticks` is enabled for slider.
|
|
30
|
+
*/
|
|
31
|
+
getSliderTickElement(): any;
|
|
32
|
+
/**
|
|
33
|
+
* Used to get the first button element of the slider component.
|
|
34
|
+
*
|
|
35
|
+
* Works only if `showButtons` is enabled for slider.
|
|
36
|
+
*/
|
|
37
|
+
getFirstButtonElement(): any;
|
|
38
|
+
/**
|
|
39
|
+
* Used to get the second button element of the slider component.
|
|
40
|
+
*
|
|
41
|
+
* Works only if `showButtons` is enabled for slider.
|
|
42
|
+
*/
|
|
43
|
+
getSecondButtonElement(): any;
|
|
44
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
/**
|
|
18
|
+
* E2E test helpers for slider to easily interact and the test the component
|
|
19
|
+
*/
|
|
20
|
+
var SliderHelper = /** @class */ (function (_super) {
|
|
21
|
+
__extends(SliderHelper, _super);
|
|
22
|
+
/**
|
|
23
|
+
* Initialize the Slider E2E helpers
|
|
24
|
+
* @param id Element id of the slider element
|
|
25
|
+
* @param wrapperFn Pass the wrapper function
|
|
26
|
+
*/
|
|
27
|
+
function SliderHelper(id, wrapperFn) {
|
|
28
|
+
var _this = _super.call(this) || this;
|
|
29
|
+
_this.id = id;
|
|
30
|
+
if (wrapperFn !== undefined) {
|
|
31
|
+
_this.wrapperFn = wrapperFn;
|
|
32
|
+
}
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Used get root element or id of the Slider component
|
|
37
|
+
*/
|
|
38
|
+
SliderHelper.prototype.getElement = function () {
|
|
39
|
+
return this.selector('#' + this.id);
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Used to get the tooltip element of slider component.
|
|
43
|
+
* @param tooltipCssClass cssClass for the slider tooltip element
|
|
44
|
+
* if assigned in the tooltip property of slider.
|
|
45
|
+
*
|
|
46
|
+
* Works only if the `tooltip` is used in the slider.
|
|
47
|
+
*/
|
|
48
|
+
SliderHelper.prototype.getSliderTooltipElement = function (tooltipCssClass) {
|
|
49
|
+
var tooltipSelector = '.e-slider-tooltip[id^="tooltip_"]';
|
|
50
|
+
if (tooltipCssClass)
|
|
51
|
+
tooltipSelector += "." + tooltipCssClass;
|
|
52
|
+
return this.selector(tooltipSelector);
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Used to get the slider components ticks element.
|
|
56
|
+
*
|
|
57
|
+
* Works only if `ticks` is enabled for slider.
|
|
58
|
+
*/
|
|
59
|
+
SliderHelper.prototype.getSliderTickElement = function () {
|
|
60
|
+
return this.selector("#" + this.id + " > ul");
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Used to get the first button element of the slider component.
|
|
64
|
+
*
|
|
65
|
+
* Works only if `showButtons` is enabled for slider.
|
|
66
|
+
*/
|
|
67
|
+
SliderHelper.prototype.getFirstButtonElement = function () {
|
|
68
|
+
if (typeof cy !== 'undefined') {
|
|
69
|
+
return this.selector("#" + this.id)
|
|
70
|
+
.parent('.e-slider-container')
|
|
71
|
+
.get('.e-slider-button.e-first-button');
|
|
72
|
+
}
|
|
73
|
+
if (typeof browser !== 'undefined') {
|
|
74
|
+
return element(by.css("#" + this.id))
|
|
75
|
+
.element(by.xpath('..'))
|
|
76
|
+
.element(by.css('.e-slider-button.e-first-button'));
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Used to get the second button element of the slider component.
|
|
81
|
+
*
|
|
82
|
+
* Works only if `showButtons` is enabled for slider.
|
|
83
|
+
*/
|
|
84
|
+
SliderHelper.prototype.getSecondButtonElement = function () {
|
|
85
|
+
if (typeof cy !== 'undefined') {
|
|
86
|
+
return this.selector("#" + this.id)
|
|
87
|
+
.parent('.e-slider-container')
|
|
88
|
+
.get('.e-slider-button.e-second-button');
|
|
89
|
+
}
|
|
90
|
+
if (typeof browser !== 'undefined') {
|
|
91
|
+
return element(by.css("#" + this.id))
|
|
92
|
+
.element(by.xpath('..'))
|
|
93
|
+
.element(by.css('.e-slider-button.e-second-button'));
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
return SliderHelper;
|
|
97
|
+
}(e2e_1.TestHelper));
|
|
98
|
+
exports.SliderHelper = SliderHelper;
|
|
99
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
|
|
2
|
+
export declare class textboxHelper extends TestHelper {
|
|
3
|
+
id: string;
|
|
4
|
+
wrapperFn: Function;
|
|
5
|
+
constructor(id: string, wrapperFn: Function);
|
|
6
|
+
selector(arg: any): any;
|
|
7
|
+
getElement(): any;
|
|
8
|
+
getWrapperElement(): any;
|
|
9
|
+
getInputElement(): any;
|
|
10
|
+
getClearIconElement(): any;
|
|
11
|
+
getFloatLabelElement(): any;
|
|
12
|
+
setModel(property: any, value: any): any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 textboxHelper = /** @class */ (function (_super) {
|
|
18
|
+
__extends(textboxHelper, _super);
|
|
19
|
+
function textboxHelper(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;
|
|
26
|
+
}
|
|
27
|
+
textboxHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
textboxHelper.prototype.getElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
textboxHelper.prototype.getWrapperElement = function () {
|
|
34
|
+
return this.selector('.e-float-input.e-control-wrapper');
|
|
35
|
+
};
|
|
36
|
+
textboxHelper.prototype.getInputElement = function () {
|
|
37
|
+
return this.selector('.e-float-input.e-control-wrapper .e-control.e-textbox.e-lib');
|
|
38
|
+
};
|
|
39
|
+
textboxHelper.prototype.getClearIconElement = function () {
|
|
40
|
+
return this.selector('.e-float-input.e-control-wrapper .e-float-line .e-clear-icon');
|
|
41
|
+
};
|
|
42
|
+
textboxHelper.prototype.getFloatLabelElement = function () {
|
|
43
|
+
return this.selector('#' + 'label_' + this.id);
|
|
44
|
+
};
|
|
45
|
+
textboxHelper.prototype.setModel = function (property, value) {
|
|
46
|
+
var cy;
|
|
47
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
48
|
+
return ele[0].ej2_instances[0][property] = value;
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
return textboxHelper;
|
|
52
|
+
}(e2e_1.TestHelper));
|
|
53
|
+
exports.textboxHelper = textboxHelper;
|
|
54
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
|
|
2
|
+
export declare class uploaderHelper extends TestHelper {
|
|
3
|
+
id: string;
|
|
4
|
+
wrapperFn: Function;
|
|
5
|
+
constructor(id: string, wrapperFn: Function);
|
|
6
|
+
selector(arg: any): any;
|
|
7
|
+
getElement(): any;
|
|
8
|
+
getWrapperElement(): any;
|
|
9
|
+
getSelectWrapperElement(): any;
|
|
10
|
+
getButtonElement(): any;
|
|
11
|
+
getFileWrapperElement(): any;
|
|
12
|
+
getInputElement(): any;
|
|
13
|
+
getDropElement(): any;
|
|
14
|
+
getUploadedContainer(): any;
|
|
15
|
+
getUploadedSuccessElement(): any;
|
|
16
|
+
getFileContainerElement(): any;
|
|
17
|
+
getFileNameElement(): any;
|
|
18
|
+
getFileTypeElement(): any;
|
|
19
|
+
getFileSizeElement(): any;
|
|
20
|
+
getFileStatusElement(): any;
|
|
21
|
+
getDeleteIcon(): any;
|
|
22
|
+
getUploadFileElement(): any;
|
|
23
|
+
getFileRemoveIcon(): any;
|
|
24
|
+
getActionElements(): any;
|
|
25
|
+
getClearActionElement(): any;
|
|
26
|
+
getUploadActionElement(): any;
|
|
27
|
+
getPlayActionElement(): any;
|
|
28
|
+
getPauseActionElement(): any;
|
|
29
|
+
getFileAbortIcon(): any;
|
|
30
|
+
getFileReloadIcon(): any;
|
|
31
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 uploaderHelper = /** @class */ (function (_super) {
|
|
18
|
+
__extends(uploaderHelper, _super);
|
|
19
|
+
function uploaderHelper(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;
|
|
26
|
+
}
|
|
27
|
+
uploaderHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
uploaderHelper.prototype.getElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
uploaderHelper.prototype.getWrapperElement = function () {
|
|
34
|
+
return this.selector('.e-upload.e-lib');
|
|
35
|
+
};
|
|
36
|
+
uploaderHelper.prototype.getSelectWrapperElement = function () {
|
|
37
|
+
return this.selector('.e-upload.e-lib .e-file-select-wrap');
|
|
38
|
+
};
|
|
39
|
+
uploaderHelper.prototype.getButtonElement = function () {
|
|
40
|
+
return this.selector('.e-upload.e-lib .e-file-select-wrap .e-css.e-btn');
|
|
41
|
+
};
|
|
42
|
+
uploaderHelper.prototype.getFileWrapperElement = function () {
|
|
43
|
+
return this.selector('.e-upload.e-lib .e-file-select-wrap .e-file-select');
|
|
44
|
+
};
|
|
45
|
+
uploaderHelper.prototype.getInputElement = function () {
|
|
46
|
+
return this.selector('.e-upload.e-lib .e-file-select-wrap .e-file-select .e-control.e-uploader.e-lib');
|
|
47
|
+
};
|
|
48
|
+
uploaderHelper.prototype.getDropElement = function () {
|
|
49
|
+
return this.selector('.e-upload.e-lib .e-file-select-wrap .e-file-drop');
|
|
50
|
+
};
|
|
51
|
+
/* Auto upload*/
|
|
52
|
+
uploaderHelper.prototype.getUploadedContainer = function () {
|
|
53
|
+
return this.selector('.e-upload.e-lib .e-upload-files');
|
|
54
|
+
};
|
|
55
|
+
uploaderHelper.prototype.getUploadedSuccessElement = function () {
|
|
56
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list.e-upload-success');
|
|
57
|
+
};
|
|
58
|
+
uploaderHelper.prototype.getFileContainerElement = function () {
|
|
59
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list .e-file-container');
|
|
60
|
+
};
|
|
61
|
+
uploaderHelper.prototype.getFileNameElement = function () {
|
|
62
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list .e-file-container .e-file-name');
|
|
63
|
+
};
|
|
64
|
+
uploaderHelper.prototype.getFileTypeElement = function () {
|
|
65
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list .e-file-container .e-file-type');
|
|
66
|
+
};
|
|
67
|
+
uploaderHelper.prototype.getFileSizeElement = function () {
|
|
68
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list .e-file-container .e-file-size');
|
|
69
|
+
};
|
|
70
|
+
uploaderHelper.prototype.getFileStatusElement = function () {
|
|
71
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list .e-file-container .e-file-status');
|
|
72
|
+
};
|
|
73
|
+
uploaderHelper.prototype.getDeleteIcon = function () {
|
|
74
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list .e-icons.e-file-delete-btn');
|
|
75
|
+
};
|
|
76
|
+
/*sequence upload */
|
|
77
|
+
uploaderHelper.prototype.getUploadFileElement = function () {
|
|
78
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list');
|
|
79
|
+
};
|
|
80
|
+
uploaderHelper.prototype.getFileRemoveIcon = function () {
|
|
81
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list .e-icons.e-file-remove-btn');
|
|
82
|
+
};
|
|
83
|
+
uploaderHelper.prototype.getActionElements = function () {
|
|
84
|
+
return this.selector('.e-upload.e-lib .e-upload-actions');
|
|
85
|
+
};
|
|
86
|
+
uploaderHelper.prototype.getClearActionElement = function () {
|
|
87
|
+
return this.selector('.e-upload.e-lib .e-upload-actions .e-file-clear-btn');
|
|
88
|
+
};
|
|
89
|
+
uploaderHelper.prototype.getUploadActionElement = function () {
|
|
90
|
+
return this.selector('.e-upload.e-lib .e-upload-actions .e-file-upload-btn');
|
|
91
|
+
};
|
|
92
|
+
uploaderHelper.prototype.getPlayActionElement = function () {
|
|
93
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list .e-icons.e-file-play-btn');
|
|
94
|
+
};
|
|
95
|
+
uploaderHelper.prototype.getPauseActionElement = function () {
|
|
96
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list .e-icons.e-file-pause-btn');
|
|
97
|
+
};
|
|
98
|
+
uploaderHelper.prototype.getFileAbortIcon = function () {
|
|
99
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list .e-icons.e-file-abort-btn');
|
|
100
|
+
};
|
|
101
|
+
uploaderHelper.prototype.getFileReloadIcon = function () {
|
|
102
|
+
return this.selector('.e-upload.e-lib .e-upload-files .e-upload-file-list .e-icons.e-file-reload-btn');
|
|
103
|
+
};
|
|
104
|
+
return uploaderHelper;
|
|
105
|
+
}(e2e_1.TestHelper));
|
|
106
|
+
exports.uploaderHelper = uploaderHelper;
|
|
107
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-inputs",
|
|
3
|
-
"version": "33.2.
|
|
3
|
+
"version": "33.2.15",
|
|
4
4
|
"description": "A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"es2015": "./dist/es6/ej2-inputs.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@syncfusion/ej2-base": "~33.2.3",
|
|
12
|
-
"@syncfusion/ej2-buttons": "~33.2.
|
|
12
|
+
"@syncfusion/ej2-buttons": "~33.2.15",
|
|
13
13
|
"@syncfusion/ej2-popups": "~33.2.7",
|
|
14
14
|
"@syncfusion/ej2-splitbuttons": "~33.2.6"
|
|
15
15
|
},
|
|
@@ -989,7 +989,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
989
989
|
};
|
|
990
990
|
ColorPicker.prototype.enterKeyHandler = function (value) {
|
|
991
991
|
this.triggerChangeEvent(value);
|
|
992
|
-
if (!this.inline) {
|
|
992
|
+
if (!this.inline && this.splitBtn) {
|
|
993
993
|
this.splitBtn.element.focus();
|
|
994
994
|
}
|
|
995
995
|
};
|