@syncfusion/ej2-navigations 20.1.61 → 20.2.39
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 +49 -0
- package/dist/ej2-navigations.umd.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +75 -127
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +75 -133
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +2 -2
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/helpers/e2e/accordionHelper.js +70 -53
- package/helpers/e2e/contextmenuHelper.js +52 -35
- package/helpers/e2e/index.js +14 -12
- package/helpers/e2e/menuHelper.js +52 -35
- package/helpers/e2e/sidebarHelper.js +109 -92
- package/helpers/e2e/tabHelper.js +73 -56
- package/helpers/e2e/toolbarHelper.js +73 -56
- package/helpers/e2e/treeview.js +79 -61
- package/package.json +11 -11
- package/src/breadcrumb/breadcrumb.js +0 -6
- package/src/carousel/carousel-model.d.ts +15 -28
- package/src/carousel/carousel.d.ts +16 -23
- package/src/carousel/carousel.js +37 -45
- package/src/common/menu-base.js +3 -4
- package/src/sidebar/sidebar.d.ts +0 -1
- package/src/sidebar/sidebar.js +2 -6
- package/src/tab/tab-model.d.ts +1 -1
- package/src/tab/tab.d.ts +0 -4
- package/src/tab/tab.js +25 -73
- package/src/toolbar/toolbar.js +6 -0
- package/src/treeview/treeview.js +1 -0
- package/styles/accordion/_fusionnew-definition.scss +85 -0
- package/styles/accordion/_material3-definition.scss +85 -0
- package/styles/accordion/icons/_fusionnew.scss +18 -0
- package/styles/accordion/icons/_material3.scss +18 -0
- package/styles/bootstrap-dark.css +743 -14
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +744 -14
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +745 -14
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +789 -14
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +789 -14
- package/styles/bootstrap5.scss +1 -0
- package/styles/breadcrumb/_fluent-definition.scss +1 -1
- package/styles/breadcrumb/_fusionnew-definition.scss +59 -0
- package/styles/breadcrumb/_layout.scss +1 -1
- package/styles/breadcrumb/_material3-definition.scss +59 -0
- package/styles/breadcrumb/fluent-dark.css +5 -4
- package/styles/breadcrumb/fluent.css +5 -4
- package/styles/breadcrumb/icons/_fluent.scss +2 -2
- package/styles/breadcrumb/icons/_fusionnew.scss +25 -0
- package/styles/breadcrumb/icons/_material3.scss +25 -0
- package/styles/carousel/_fusionnew-definition.scss +22 -0
- package/styles/carousel/_layout.scss +54 -43
- package/styles/carousel/_material3-definition.scss +22 -0
- package/styles/carousel/bootstrap-dark.css +23 -14
- package/styles/carousel/bootstrap.css +23 -14
- package/styles/carousel/bootstrap4.css +23 -14
- package/styles/carousel/bootstrap5-dark.css +23 -14
- package/styles/carousel/bootstrap5.css +23 -14
- package/styles/carousel/fabric-dark.css +23 -14
- package/styles/carousel/fabric.css +23 -14
- package/styles/carousel/fluent-dark.css +28 -19
- package/styles/carousel/fluent.css +23 -14
- package/styles/carousel/highcontrast-light.css +23 -14
- package/styles/carousel/highcontrast.css +23 -14
- package/styles/carousel/icons/_fusionnew.scss +30 -0
- package/styles/carousel/icons/_material3.scss +30 -0
- package/styles/carousel/material-dark.css +23 -14
- package/styles/carousel/material.css +23 -14
- package/styles/carousel/tailwind-dark.css +23 -14
- package/styles/carousel/tailwind.css +23 -14
- package/styles/context-menu/_fusionnew-definition.scss +52 -0
- package/styles/context-menu/_layout.scss +26 -0
- package/styles/context-menu/_material3-definition.scss +52 -0
- package/styles/context-menu/_theme.scss +12 -0
- package/styles/context-menu/bootstrap-dark.css +33 -0
- package/styles/context-menu/bootstrap-dark.scss +3 -0
- package/styles/context-menu/bootstrap.css +34 -0
- package/styles/context-menu/bootstrap.scss +3 -0
- package/styles/context-menu/bootstrap4.css +34 -0
- package/styles/context-menu/bootstrap4.scss +3 -0
- package/styles/context-menu/bootstrap5-dark.css +44 -0
- package/styles/context-menu/bootstrap5-dark.scss +3 -0
- package/styles/context-menu/bootstrap5.css +44 -0
- package/styles/context-menu/bootstrap5.scss +3 -0
- package/styles/context-menu/fabric-dark.css +33 -0
- package/styles/context-menu/fabric-dark.scss +3 -0
- package/styles/context-menu/fabric.css +34 -0
- package/styles/context-menu/fabric.scss +3 -0
- package/styles/context-menu/fluent-dark.css +44 -0
- package/styles/context-menu/fluent-dark.scss +3 -0
- package/styles/context-menu/fluent.css +44 -0
- package/styles/context-menu/fluent.scss +3 -0
- package/styles/context-menu/highcontrast-light.css +33 -0
- package/styles/context-menu/highcontrast-light.scss +3 -0
- package/styles/context-menu/highcontrast.css +34 -0
- package/styles/context-menu/highcontrast.scss +3 -0
- package/styles/context-menu/icons/_fusionnew.scss +32 -0
- package/styles/context-menu/icons/_material3.scss +32 -0
- package/styles/context-menu/material-dark.css +51 -0
- package/styles/context-menu/material-dark.scss +3 -0
- package/styles/context-menu/material.css +53 -0
- package/styles/context-menu/material.scss +3 -0
- package/styles/context-menu/tailwind-dark.css +44 -0
- package/styles/context-menu/tailwind-dark.scss +3 -0
- package/styles/context-menu/tailwind.css +44 -0
- package/styles/context-menu/tailwind.scss +3 -0
- package/styles/fabric-dark.css +743 -14
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +744 -14
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +799 -56
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +762 -19
- package/styles/fluent.scss +1 -0
- package/styles/h-scroll/_fusionnew-definition.scss +78 -0
- package/styles/h-scroll/_material3-definition.scss +78 -0
- package/styles/h-scroll/icons/_fusionnew.scss +49 -0
- package/styles/h-scroll/icons/_material3.scss +49 -0
- package/styles/highcontrast-light.css +743 -14
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +744 -14
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +762 -15
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +763 -14
- package/styles/material.scss +1 -0
- package/styles/menu/_fusionnew-definition.scss +67 -0
- package/styles/menu/_material3-definition.scss +67 -0
- package/styles/menu/_theme.scss +3 -0
- package/styles/menu/bootstrap4.css +1 -0
- package/styles/menu/fluent-dark.css +1 -1
- package/styles/menu/fluent.css +1 -1
- package/styles/menu/icons/_fusionnew.scss +133 -0
- package/styles/menu/icons/_material3.scss +133 -0
- package/styles/pager/_all.scss +2 -0
- package/styles/pager/_bootstrap-dark-definition.scss +132 -0
- package/styles/pager/_bootstrap-definition.scss +132 -0
- package/styles/pager/_bootstrap4-definition.scss +131 -0
- package/styles/pager/_bootstrap5-dark-definition.scss +1 -0
- package/styles/pager/_bootstrap5-definition.scss +146 -0
- package/styles/pager/_fabric-dark-definition.scss +131 -0
- package/styles/pager/_fabric-definition.scss +130 -0
- package/styles/pager/_fluent-dark-definition.scss +1 -0
- package/styles/pager/_fluent-definition.scss +133 -0
- package/styles/pager/_fusionnew-definition.scss +146 -0
- package/styles/pager/_highcontrast-definition.scss +130 -0
- package/styles/pager/_highcontrast-light-definition.scss +130 -0
- package/styles/pager/_layout.scss +899 -0
- package/styles/pager/_material-dark-definition.scss +132 -0
- package/styles/pager/_material-definition.scss +131 -0
- package/styles/pager/_material3-definition.scss +146 -0
- package/styles/pager/_tailwind-dark-definition.scss +1 -0
- package/styles/pager/_tailwind-definition.scss +132 -0
- package/styles/pager/_theme.scss +153 -0
- package/styles/pager/bootstrap-dark.css +686 -0
- package/styles/pager/bootstrap-dark.scss +4 -0
- package/styles/pager/bootstrap.css +686 -0
- package/styles/pager/bootstrap.scss +4 -0
- package/styles/pager/bootstrap4.css +686 -0
- package/styles/pager/bootstrap4.scss +4 -0
- package/styles/pager/bootstrap5-dark.css +721 -0
- package/styles/pager/bootstrap5-dark.scss +4 -0
- package/styles/pager/bootstrap5.css +721 -0
- package/styles/pager/bootstrap5.scss +4 -0
- package/styles/pager/fabric-dark.css +686 -0
- package/styles/pager/fabric-dark.scss +4 -0
- package/styles/pager/fabric.css +686 -0
- package/styles/pager/fabric.scss +4 -0
- package/styles/pager/fluent-dark.css +688 -0
- package/styles/pager/fluent-dark.scss +4 -0
- package/styles/pager/fluent.css +688 -0
- package/styles/pager/fluent.scss +4 -0
- package/styles/pager/highcontrast-light.css +686 -0
- package/styles/pager/highcontrast-light.scss +4 -0
- package/styles/pager/highcontrast.css +686 -0
- package/styles/pager/highcontrast.scss +4 -0
- package/styles/pager/icons/_bootstrap-dark.scss +50 -0
- package/styles/pager/icons/_bootstrap.scss +49 -0
- package/styles/pager/icons/_bootstrap4.scss +49 -0
- package/styles/pager/icons/_bootstrap5-dark.scss +1 -0
- package/styles/pager/icons/_bootstrap5.scss +50 -0
- package/styles/pager/icons/_fabric-dark.scss +50 -0
- package/styles/pager/icons/_fabric.scss +50 -0
- package/styles/pager/icons/_fluent-dark.scss +1 -0
- package/styles/pager/icons/_fluent.scss +50 -0
- package/styles/pager/icons/_fusionnew.scss +50 -0
- package/styles/pager/icons/_highcontrast-light.scss +50 -0
- package/styles/pager/icons/_highcontrast.scss +41 -0
- package/styles/pager/icons/_material-dark.scss +50 -0
- package/styles/pager/icons/_material.scss +41 -0
- package/styles/pager/icons/_material3.scss +50 -0
- package/styles/pager/icons/_tailwind-dark.scss +1 -0
- package/styles/pager/icons/_tailwind.scss +50 -0
- package/styles/pager/material-dark.css +687 -0
- package/styles/pager/material-dark.scss +4 -0
- package/styles/pager/material.css +687 -0
- package/styles/pager/material.scss +4 -0
- package/styles/pager/tailwind-dark.css +813 -0
- package/styles/pager/tailwind-dark.scss +4 -0
- package/styles/pager/tailwind.css +813 -0
- package/styles/pager/tailwind.scss +4 -0
- package/styles/sidebar/_fusionnew-definition.scss +5 -0
- package/styles/sidebar/_material3-definition.scss +5 -0
- package/styles/tab/_fusionnew-definition.scss +401 -0
- package/styles/tab/_material-dark-definition.scss +1 -1
- package/styles/tab/_material3-definition.scss +401 -0
- package/styles/tab/fluent-dark.css +30 -30
- package/styles/tab/icons/_fusionnew.scss +141 -0
- package/styles/tab/icons/_material3.scss +141 -0
- package/styles/tab/material-dark.css +1 -1
- package/styles/tailwind-dark.css +882 -15
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +882 -15
- package/styles/tailwind.scss +1 -0
- package/styles/toolbar/_fusionnew-definition.scss +162 -0
- package/styles/toolbar/_material3-definition.scss +162 -0
- package/styles/toolbar/icons/_fusionnew.scss +17 -0
- package/styles/toolbar/icons/_material3.scss +17 -0
- package/styles/treeview/_fusionnew-definition.scss +120 -0
- package/styles/treeview/_material3-definition.scss +120 -0
- package/styles/treeview/fluent-dark.css +2 -2
- package/styles/treeview/icons/_fusionnew.scss +43 -0
- package/styles/treeview/icons/_material3.scss +43 -0
- package/styles/v-scroll/_fusionnew-definition.scss +49 -0
- package/styles/v-scroll/_material3-definition.scss +49 -0
- package/styles/v-scroll/icons/_fusionnew.scss +27 -0
- package/styles/v-scroll/icons/_material3.scss +27 -0
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.39
|
|
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,54 +1,71 @@
|
|
|
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 AccordionHelper = (function (_super) {
|
|
18
|
+
__extends(AccordionHelper, _super);
|
|
19
|
+
function AccordionHelper(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
|
-
}
|
|
54
|
-
exports.AccordionHelper = AccordionHelper;
|
|
27
|
+
AccordionHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
AccordionHelper.prototype.getElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
AccordionHelper.prototype.getItemElement = function () {
|
|
34
|
+
return this.selector('#' + this.id + ' .e-acrdn-item');
|
|
35
|
+
};
|
|
36
|
+
AccordionHelper.prototype.getHeaderElement = function () {
|
|
37
|
+
return this.selector('#' + this.id + ' .e-acrdn-item .e-acrdn-header');
|
|
38
|
+
};
|
|
39
|
+
AccordionHelper.prototype.getPanelElement = function () {
|
|
40
|
+
return this.selector('#' + this.id + ' .e-acrdn-item .e-acrdn-panel');
|
|
41
|
+
};
|
|
42
|
+
AccordionHelper.prototype.getActiveElement = function () {
|
|
43
|
+
return this.selector('#' + this.id + ' .e-acrdn-item.e-selected.e-active');
|
|
44
|
+
};
|
|
45
|
+
AccordionHelper.prototype.getExpandStateElement = function () {
|
|
46
|
+
return this.selector('#' + this.id + ' .e-acrdn-item.e-expand-state');
|
|
47
|
+
};
|
|
48
|
+
AccordionHelper.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
|
+
AccordionHelper.prototype.getModel = function (property) {
|
|
55
|
+
var cy;
|
|
56
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
57
|
+
return ele[0].ej2_instances[0][property];
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
AccordionHelper.prototype.invoke = function (functionName, args) {
|
|
61
|
+
if (args === void 0) { args = []; }
|
|
62
|
+
var cy;
|
|
63
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
64
|
+
var inst = ele[0].ej2_instances[0];
|
|
65
|
+
return inst[functionName].apply(inst, args);
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
return AccordionHelper;
|
|
69
|
+
}(e2e_1.TestHelper));
|
|
70
|
+
exports.AccordionHelper = AccordionHelper;
|
|
71
|
+
});
|
|
@@ -1,36 +1,53 @@
|
|
|
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 ContextMenuHelper = (function (_super) {
|
|
18
|
+
__extends(ContextMenuHelper, _super);
|
|
19
|
+
function ContextMenuHelper(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
|
-
exports.ContextMenuHelper = ContextMenuHelper;
|
|
27
|
+
ContextMenuHelper.prototype.getElement = function () {
|
|
28
|
+
return this.selector('#' + this.id);
|
|
29
|
+
};
|
|
30
|
+
ContextMenuHelper.prototype.setModel = function (property, value) {
|
|
31
|
+
var cy;
|
|
32
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
33
|
+
return ele[0].ej2_instances[0][property] = value;
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
ContextMenuHelper.prototype.getModel = function (property) {
|
|
37
|
+
var cy;
|
|
38
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
39
|
+
return ele[0].ej2_instances[0][property];
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
ContextMenuHelper.prototype.invoke = function (fName, args) {
|
|
43
|
+
if (args === void 0) { args = []; }
|
|
44
|
+
var cy;
|
|
45
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
46
|
+
var inst = ele[0].ej2_instances[0];
|
|
47
|
+
return inst[fName].apply(inst, args);
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
return ContextMenuHelper;
|
|
51
|
+
}(e2e_1.TestHelper));
|
|
52
|
+
exports.ContextMenuHelper = ContextMenuHelper;
|
|
53
|
+
});
|
package/helpers/e2e/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
__export(
|
|
8
|
-
__export(
|
|
9
|
-
__export(
|
|
10
|
-
__export(
|
|
11
|
-
__export(
|
|
12
|
-
__export(
|
|
1
|
+
define(["require", "exports", "./accordionHelper", "./sidebarHelper", "./tabHelper", "./toolbarHelper", "./contextmenuHelper", "./menuHelper", "./treeview"], function (require, exports, accordionHelper_1, sidebarHelper_1, tabHelper_1, toolbarHelper_1, contextmenuHelper_1, menuHelper_1, treeview_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(accordionHelper_1);
|
|
8
|
+
__export(sidebarHelper_1);
|
|
9
|
+
__export(tabHelper_1);
|
|
10
|
+
__export(toolbarHelper_1);
|
|
11
|
+
__export(contextmenuHelper_1);
|
|
12
|
+
__export(menuHelper_1);
|
|
13
|
+
__export(treeview_1);
|
|
14
|
+
});
|
|
@@ -1,36 +1,53 @@
|
|
|
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 MenuHelper = (function (_super) {
|
|
18
|
+
__extends(MenuHelper, _super);
|
|
19
|
+
function MenuHelper(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
|
-
exports.MenuHelper = MenuHelper;
|
|
27
|
+
MenuHelper.prototype.getElement = function () {
|
|
28
|
+
return this.selector('#' + this.id);
|
|
29
|
+
};
|
|
30
|
+
MenuHelper.prototype.setModel = function (property, value) {
|
|
31
|
+
var cy;
|
|
32
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
33
|
+
return ele[0].ej2_instances[0][property] = value;
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
MenuHelper.prototype.getModel = function (property) {
|
|
37
|
+
var cy;
|
|
38
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
39
|
+
return ele[0].ej2_instances[0][property];
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
MenuHelper.prototype.invoke = function (fName, args) {
|
|
43
|
+
if (args === void 0) { args = []; }
|
|
44
|
+
var cy;
|
|
45
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
46
|
+
var inst = ele[0].ej2_instances[0];
|
|
47
|
+
return inst[fName].apply(inst, args);
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
return MenuHelper;
|
|
51
|
+
}(e2e_1.TestHelper));
|
|
52
|
+
exports.MenuHelper = MenuHelper;
|
|
53
|
+
});
|
|
@@ -1,93 +1,110 @@
|
|
|
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 SideBarHelper = (function (_super) {
|
|
18
|
+
__extends(SideBarHelper, _super);
|
|
19
|
+
function SideBarHelper(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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
exports.SideBarHelper = SideBarHelper;
|
|
27
|
+
SideBarHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
SideBarHelper.prototype.getElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
SideBarHelper.prototype.getSidebar = function () {
|
|
34
|
+
return this.selector('.e-sidebar');
|
|
35
|
+
};
|
|
36
|
+
SideBarHelper.prototype.getLeftSideBar = function () {
|
|
37
|
+
return this.selector('.e-sidebar.e-left.e-open');
|
|
38
|
+
};
|
|
39
|
+
SideBarHelper.prototype.getLeft = function () {
|
|
40
|
+
return this.selector('.e-sidebar.e-left');
|
|
41
|
+
};
|
|
42
|
+
SideBarHelper.prototype.getRight = function () {
|
|
43
|
+
return this.selector('.e-sidebar.e-right');
|
|
44
|
+
};
|
|
45
|
+
SideBarHelper.prototype.getRightSideBar = function () {
|
|
46
|
+
return this.selector('.e-sidebar.e-right.e-open');
|
|
47
|
+
};
|
|
48
|
+
SideBarHelper.prototype.getDockSidebar = function () {
|
|
49
|
+
return this.selector('.e-sidebar.e-dock');
|
|
50
|
+
};
|
|
51
|
+
SideBarHelper.prototype.getExpandedDockSidebar = function () {
|
|
52
|
+
return this.selector('.e-selector.e-dock.e-open');
|
|
53
|
+
};
|
|
54
|
+
SideBarHelper.prototype.getCollapsedDockSidebar = function () {
|
|
55
|
+
return this.selector('.e-sidebar.e-dock.e-close');
|
|
56
|
+
};
|
|
57
|
+
SideBarHelper.prototype.getOverStateSidebar = function () {
|
|
58
|
+
return this.selector('.e-sidebar.e-over');
|
|
59
|
+
};
|
|
60
|
+
SideBarHelper.prototype.getExpandedOverStateSidebar = function () {
|
|
61
|
+
return this.selector('.e-sidebar.e-over.e-open');
|
|
62
|
+
};
|
|
63
|
+
SideBarHelper.prototype.getCollapsedOverStateSidebar = function () {
|
|
64
|
+
return this.selector('.e-sidebar.e-over.e-close');
|
|
65
|
+
};
|
|
66
|
+
SideBarHelper.prototype.getPushStateSidebar = function () {
|
|
67
|
+
return this.selector('.e-sidebar.e-push');
|
|
68
|
+
};
|
|
69
|
+
SideBarHelper.prototype.getExpandedPushStateSidebar = function () {
|
|
70
|
+
return this.selector('.e-sidebar.e-push.e-open');
|
|
71
|
+
};
|
|
72
|
+
SideBarHelper.prototype.getCollapsedPushStateSidebar = function () {
|
|
73
|
+
return this.selector('.e-sidebar.e-push.e-close');
|
|
74
|
+
};
|
|
75
|
+
SideBarHelper.prototype.getSlideStateSidebar = function () {
|
|
76
|
+
return this.selector('.e-sidebar.e-slide');
|
|
77
|
+
};
|
|
78
|
+
SideBarHelper.prototype.getExpandedSlideStateSidebar = function () {
|
|
79
|
+
return this.selector('.e-sidebar.e-slide.e-open');
|
|
80
|
+
};
|
|
81
|
+
SideBarHelper.prototype.getCollapsedSlideStateSidebar = function () {
|
|
82
|
+
return this.selector('.e-sidebar.e-slide.e-close');
|
|
83
|
+
};
|
|
84
|
+
SideBarHelper.prototype.getOverlayElement = function () {
|
|
85
|
+
return this.selector('.e-sidebar-overlay');
|
|
86
|
+
};
|
|
87
|
+
SideBarHelper.prototype.setModel = function (property, value) {
|
|
88
|
+
var cy;
|
|
89
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
90
|
+
return ele[0].ej2_instances[0][property] = value;
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
SideBarHelper.prototype.getModel = function (property) {
|
|
94
|
+
var cy;
|
|
95
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
96
|
+
return ele[0].ej2_instances[0][property];
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
SideBarHelper.prototype.invoke = function (fName, args) {
|
|
100
|
+
if (args === void 0) { args = []; }
|
|
101
|
+
var cy;
|
|
102
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
103
|
+
var inst = ele[0].ej2_instances[0];
|
|
104
|
+
return inst[fName].apply(inst, args);
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
return SideBarHelper;
|
|
108
|
+
}(e2e_1.TestHelper));
|
|
109
|
+
exports.SideBarHelper = SideBarHelper;
|
|
110
|
+
});
|