@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/helpers/e2e/tabHelper.js
CHANGED
|
@@ -1,57 +1,74 @@
|
|
|
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 TabHelper = (function (_super) {
|
|
18
|
+
__extends(TabHelper, _super);
|
|
19
|
+
function TabHelper(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
|
-
exports.TabHelper = TabHelper;
|
|
27
|
+
TabHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
TabHelper.prototype.getElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
TabHelper.prototype.getLeftScrollNavigationElement = function () {
|
|
34
|
+
return this.selector('#' + this.id + ' .e-tab-header .e-toolbar-items.e-hscroll .e-scroll-nav.e-scroll-left-nav');
|
|
35
|
+
};
|
|
36
|
+
TabHelper.prototype.getRightScrollNavigationElement = function () {
|
|
37
|
+
return this.selector('#' + this.id + ' .e-tab-header .e-toolbar-items.e-hscroll .e-scroll-nav.e-scroll-right-nav');
|
|
38
|
+
};
|
|
39
|
+
TabHelper.prototype.getOverflowNavigationElement = function () {
|
|
40
|
+
return this.selector('#' + this.id + ' .e-tab-header .e-_nav.e-hor-nav');
|
|
41
|
+
};
|
|
42
|
+
TabHelper.prototype.getHeader = function () {
|
|
43
|
+
return this.selector('#' + this.id + ' .e-tab-header');
|
|
44
|
+
};
|
|
45
|
+
TabHelper.prototype.getContent = function () {
|
|
46
|
+
return this.selector('#' + this.id + ' .e-content');
|
|
47
|
+
};
|
|
48
|
+
TabHelper.prototype.getOverflowItemElement = function () {
|
|
49
|
+
return this.selector('#' + this.id + ' .e-tab-header .e-toolbar-pop.e-popup .e-toolbar-item');
|
|
50
|
+
};
|
|
51
|
+
TabHelper.prototype.setModel = function (property, value) {
|
|
52
|
+
var cy;
|
|
53
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
54
|
+
return ele[0].ej2_instances[0][property] = value;
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
TabHelper.prototype.getModel = function (property) {
|
|
58
|
+
var cy;
|
|
59
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
60
|
+
return ele[0].ej2_instances[0][property];
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
TabHelper.prototype.invoke = function (fName, args) {
|
|
64
|
+
if (args === void 0) { args = []; }
|
|
65
|
+
var cy;
|
|
66
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
67
|
+
var inst = ele[0].ej2_instances[0];
|
|
68
|
+
return inst[fName].apply(inst, args);
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
return TabHelper;
|
|
72
|
+
}(e2e_1.TestHelper));
|
|
73
|
+
exports.TabHelper = TabHelper;
|
|
74
|
+
});
|
|
@@ -1,57 +1,74 @@
|
|
|
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 ToolbarHelper = (function (_super) {
|
|
18
|
+
__extends(ToolbarHelper, _super);
|
|
19
|
+
function ToolbarHelper(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
|
-
exports.ToolbarHelper = ToolbarHelper;
|
|
27
|
+
ToolbarHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
ToolbarHelper.prototype.getElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
ToolbarHelper.prototype.getLeftScrollNavigationElement = function () {
|
|
34
|
+
return this.selector('#' + this.id + ' .e-toolbar-items.e-hscroll .e-scroll-nav.e-scroll-left-nav');
|
|
35
|
+
};
|
|
36
|
+
ToolbarHelper.prototype.getRightScrollNavigationElement = function () {
|
|
37
|
+
return this.selector('#' + this.id + ' .e-toolbar-items.e-hscroll .e-scroll-nav.e-scroll-right-nav');
|
|
38
|
+
};
|
|
39
|
+
ToolbarHelper.prototype.getOverflowNavigationElement = function () {
|
|
40
|
+
return this.selector('#' + this.id + ' .e-toolbar_pop_nav.e-hor-nav');
|
|
41
|
+
};
|
|
42
|
+
ToolbarHelper.prototype.getItems = function () {
|
|
43
|
+
return this.selector('#' + this.id + ' .e-toolbar-items');
|
|
44
|
+
};
|
|
45
|
+
ToolbarHelper.prototype.getItemElement = function () {
|
|
46
|
+
return this.selector('#' + this.id + ' .e-toolbar-items .e-toolbar-item');
|
|
47
|
+
};
|
|
48
|
+
ToolbarHelper.prototype.getOverflowItemElement = function () {
|
|
49
|
+
return this.selector('#' + this.id + ' .e-toolbar-pop.e-popup .e-toolbar-item');
|
|
50
|
+
};
|
|
51
|
+
ToolbarHelper.prototype.setModel = function (property, value) {
|
|
52
|
+
var cy;
|
|
53
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
54
|
+
return ele[0].ej2_instances[0][property] = value;
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
ToolbarHelper.prototype.getModel = function (property) {
|
|
58
|
+
var cy;
|
|
59
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
60
|
+
return ele[0].ej2_instances[0][property];
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
ToolbarHelper.prototype.invoke = function (fName, args) {
|
|
64
|
+
if (args === void 0) { args = []; }
|
|
65
|
+
var cy;
|
|
66
|
+
return cy.get('#' + this.id).then(function (ele) {
|
|
67
|
+
var inst = ele[0].ej2_instances[0];
|
|
68
|
+
return inst[fName].apply(inst, args);
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
return ToolbarHelper;
|
|
72
|
+
}(e2e_1.TestHelper));
|
|
73
|
+
exports.ToolbarHelper = ToolbarHelper;
|
|
74
|
+
});
|
package/helpers/e2e/treeview.js
CHANGED
|
@@ -1,62 +1,80 @@
|
|
|
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 TreeViewHelper = (function (_super) {
|
|
18
|
+
__extends(TreeViewHelper, _super);
|
|
19
|
+
function TreeViewHelper(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
|
-
|
|
27
|
+
TreeViewHelper.prototype.selector = function (arg) {
|
|
28
|
+
return (this.wrapperFn ? this.wrapperFn(arg) : arg);
|
|
29
|
+
};
|
|
30
|
+
TreeViewHelper.prototype.getElement = function () {
|
|
31
|
+
return this.selector('#' + this.id);
|
|
32
|
+
};
|
|
33
|
+
TreeViewHelper.prototype.getCollapsedStateElement = function () {
|
|
34
|
+
return this.selector('.e-list-item.e-level-1.e-node-collapsed');
|
|
35
|
+
};
|
|
36
|
+
TreeViewHelper.prototype.getExpandedStateElement = function () {
|
|
37
|
+
return this.selector('.e-list-item.e-level-1');
|
|
38
|
+
};
|
|
39
|
+
TreeViewHelper.prototype.getTreeViewInstance = function () {
|
|
40
|
+
return this.getElement().then(function (ele) {
|
|
41
|
+
return ele[0].ej2_instances[0];
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
TreeViewHelper.prototype.setTreeViewProperty = function (propertyName, args) {
|
|
45
|
+
if (args === void 0) { args = null; }
|
|
46
|
+
return this.getTreeViewInstance().then(function (ej2_instance) {
|
|
47
|
+
return (ej2_instance[propertyName] = args);
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
TreeViewHelper.prototype.callTreeviewMethods = function (methodName, args) {
|
|
51
|
+
if (args === void 0) { args = null; }
|
|
52
|
+
return this.getTreeViewInstance().then(function (ej2_instance) {
|
|
53
|
+
return ej2_instance[methodName].call(ej2_instance, args);
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
TreeViewHelper.prototype.getSelectedNodes = function (id) {
|
|
57
|
+
return this.setTreeViewProperty('selectedNodes', id);
|
|
58
|
+
};
|
|
59
|
+
TreeViewHelper.prototype.getDisableNode = function (id) {
|
|
60
|
+
return this.callTreeviewMethods('disableNodes', id);
|
|
61
|
+
};
|
|
62
|
+
TreeViewHelper.prototype.getActiveElement = function (id) {
|
|
63
|
+
this.getSelectedNodes(id);
|
|
64
|
+
return this.selector('.e-list-item.e-level-1.e-active.e-node-focus');
|
|
65
|
+
};
|
|
66
|
+
TreeViewHelper.prototype.getDisabledNodes = function (id) {
|
|
67
|
+
this.getDisableNode(id);
|
|
68
|
+
return this.selector('.e-list-item.e-level-1.e-disable');
|
|
69
|
+
};
|
|
70
|
+
TreeViewHelper.prototype.getNodeEdit = function (id) {
|
|
71
|
+
return this.callTreeviewMethods('beginEdit', id);
|
|
72
|
+
};
|
|
73
|
+
TreeViewHelper.prototype.getEditableNode = function (id) {
|
|
74
|
+
this.getNodeEdit(id);
|
|
75
|
+
return this.selector('.e-text-content.e-icon-wrapper .e-input-group.e-control-wrapper');
|
|
76
|
+
};
|
|
77
|
+
return TreeViewHelper;
|
|
78
|
+
}(e2e_1.TestHelper));
|
|
79
|
+
exports.TreeViewHelper = TreeViewHelper;
|
|
80
|
+
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-navigations@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-navigations@20.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@20.2.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-U81Ci6DM4KUXUvptNYu4SlcGpJgAxJYgVKsRXSivQU8TUltjFTcuOCDW7FZZxBKrIjzd1vYzNE9iyX23GyiYWw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"/@syncfusion/ej2-spreadsheet",
|
|
38
38
|
"/@syncfusion/ej2-vue-navigations"
|
|
39
39
|
],
|
|
40
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.
|
|
41
|
-
"_shasum": "
|
|
40
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.2.38.tgz",
|
|
41
|
+
"_shasum": "1c0d785266e22abc634c0494b7f28dc2d1f9e499",
|
|
42
42
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
43
43
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
44
44
|
"author": {
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
},
|
|
50
50
|
"bundleDependencies": false,
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@syncfusion/ej2-base": "~20.
|
|
53
|
-
"@syncfusion/ej2-buttons": "~20.
|
|
54
|
-
"@syncfusion/ej2-data": "~20.
|
|
55
|
-
"@syncfusion/ej2-inputs": "~20.
|
|
56
|
-
"@syncfusion/ej2-lists": "~20.
|
|
57
|
-
"@syncfusion/ej2-popups": "~20.
|
|
52
|
+
"@syncfusion/ej2-base": "~20.2.38",
|
|
53
|
+
"@syncfusion/ej2-buttons": "~20.2.38",
|
|
54
|
+
"@syncfusion/ej2-data": "~20.2.38",
|
|
55
|
+
"@syncfusion/ej2-inputs": "~20.2.38",
|
|
56
|
+
"@syncfusion/ej2-lists": "~20.2.39",
|
|
57
|
+
"@syncfusion/ej2-popups": "~20.2.39"
|
|
58
58
|
},
|
|
59
59
|
"deprecated": false,
|
|
60
60
|
"description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
|
|
@@ -159,6 +159,6 @@
|
|
|
159
159
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
160
160
|
},
|
|
161
161
|
"typings": "index.d.ts",
|
|
162
|
-
"version": "20.
|
|
162
|
+
"version": "20.2.39",
|
|
163
163
|
"sideEffects": false
|
|
164
164
|
}
|
|
@@ -379,12 +379,6 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
379
379
|
}
|
|
380
380
|
if (!(this.overflowMode === 'Menu' && liElems[i].classList.contains(MENUCLASS))) {
|
|
381
381
|
liWidth += liElems[i].offsetWidth;
|
|
382
|
-
if (liWidth > width) {
|
|
383
|
-
maxItems = Math.ceil((i) / 2) + (this.overflowMode === 'Menu' && i <= 2 ? 0 : 1);
|
|
384
|
-
this._maxItems = maxItems;
|
|
385
|
-
this.initPvtProps();
|
|
386
|
-
return this.reRenderItems();
|
|
387
|
-
}
|
|
388
382
|
}
|
|
389
383
|
}
|
|
390
384
|
}
|
|
@@ -37,30 +37,6 @@ export interface CarouselItemModel {
|
|
|
37
37
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
/**
|
|
41
|
-
* Interface for a class CarouselAnimationSettings
|
|
42
|
-
*/
|
|
43
|
-
export interface CarouselAnimationSettingsModel {
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Specifies the type of animation. The possible values for this property as follows
|
|
47
|
-
* * None
|
|
48
|
-
* * Slide
|
|
49
|
-
* * Fade
|
|
50
|
-
*
|
|
51
|
-
* @default 'Slide'
|
|
52
|
-
*/
|
|
53
|
-
effect?: CarouselAnimationEffect;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Specifies the custom animation effect.
|
|
57
|
-
*
|
|
58
|
-
* @default null
|
|
59
|
-
*/
|
|
60
|
-
customEffect?: string;
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
40
|
/**
|
|
65
41
|
* Interface for a class Carousel
|
|
66
42
|
*/
|
|
@@ -74,11 +50,15 @@ export interface CarouselModel extends ComponentModel{
|
|
|
74
50
|
items?: CarouselItemModel[];
|
|
75
51
|
|
|
76
52
|
/**
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
53
|
+
* Specifies the type of animation effects. The possible values for this property as follows
|
|
54
|
+
* * None
|
|
55
|
+
* * Slide
|
|
56
|
+
* * Fade
|
|
57
|
+
* * Custom
|
|
58
|
+
*
|
|
59
|
+
* @default 'Slide'
|
|
80
60
|
*/
|
|
81
|
-
|
|
61
|
+
animationEffect?: CarouselAnimationEffect;
|
|
82
62
|
|
|
83
63
|
/**
|
|
84
64
|
* Accepts the template for previous navigation button.
|
|
@@ -165,6 +145,13 @@ export interface CarouselModel extends ComponentModel{
|
|
|
165
145
|
*/
|
|
166
146
|
autoPlay?: boolean;
|
|
167
147
|
|
|
148
|
+
/**
|
|
149
|
+
* Defines whether the slide transition gets pause on hover or not.
|
|
150
|
+
*
|
|
151
|
+
* @default true
|
|
152
|
+
*/
|
|
153
|
+
pauseOnHover?: boolean;
|
|
154
|
+
|
|
168
155
|
/**
|
|
169
156
|
* Defines whether the slide transitions loop end or not. When set to false, the transition stops at last slide.
|
|
170
157
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component, EmitType, INotifyPropertyChanged } from '@syncfusion/ej2-base';
|
|
2
2
|
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
3
3
|
import { BaseEventArgs } from '@syncfusion/ej2-base';
|
|
4
|
-
import { CarouselModel, CarouselItemModel
|
|
4
|
+
import { CarouselModel, CarouselItemModel } from './carousel-model';
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the direction of previous/next button navigations in carousel.
|
|
7
7
|
*
|
|
@@ -23,8 +23,9 @@ export declare type CarouselButtonVisibility = 'Hidden' | 'Visible' | 'VisibleOn
|
|
|
23
23
|
* * `None` - The carousel item transition happens without animation.
|
|
24
24
|
* * `Slide` - The carousel item transition happens with slide animation.
|
|
25
25
|
* * `Fade` - The Carousel item transition happens with fade animation.
|
|
26
|
+
* * `Custom` - The Carousel item transition happens with custom animation.
|
|
26
27
|
*/
|
|
27
|
-
export declare type CarouselAnimationEffect = 'None' | 'Fade' | 'Slide';
|
|
28
|
+
export declare type CarouselAnimationEffect = 'None' | 'Fade' | 'Slide' | 'Custom';
|
|
28
29
|
/** An interface that holds details when changing the slide. */
|
|
29
30
|
export interface SlideChangingEventArgs extends BaseEventArgs {
|
|
30
31
|
/** Specifies the index of current slide. */
|
|
@@ -84,24 +85,6 @@ export declare class CarouselItem extends ChildProperty<CarouselItem> {
|
|
|
84
85
|
*/
|
|
85
86
|
htmlAttributes: Record<string, string>;
|
|
86
87
|
}
|
|
87
|
-
/** Specifies the animation configuration for carousel items. */
|
|
88
|
-
export declare class CarouselAnimationSettings extends ChildProperty<CarouselAnimationSettings> {
|
|
89
|
-
/**
|
|
90
|
-
* Specifies the type of animation. The possible values for this property as follows
|
|
91
|
-
* * None
|
|
92
|
-
* * Slide
|
|
93
|
-
* * Fade
|
|
94
|
-
*
|
|
95
|
-
* @default 'Slide'
|
|
96
|
-
*/
|
|
97
|
-
effect: CarouselAnimationEffect;
|
|
98
|
-
/**
|
|
99
|
-
* Specifies the custom animation effect.
|
|
100
|
-
*
|
|
101
|
-
* @default null
|
|
102
|
-
*/
|
|
103
|
-
customEffect: string;
|
|
104
|
-
}
|
|
105
88
|
export declare class Carousel extends Component<HTMLElement> implements INotifyPropertyChanged {
|
|
106
89
|
private autoSlideInterval;
|
|
107
90
|
private slideItems;
|
|
@@ -117,11 +100,15 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
117
100
|
*/
|
|
118
101
|
items: CarouselItemModel[];
|
|
119
102
|
/**
|
|
120
|
-
*
|
|
103
|
+
* Specifies the type of animation effects. The possible values for this property as follows
|
|
104
|
+
* * None
|
|
105
|
+
* * Slide
|
|
106
|
+
* * Fade
|
|
107
|
+
* * Custom
|
|
121
108
|
*
|
|
122
|
-
*
|
|
109
|
+
* @default 'Slide'
|
|
123
110
|
*/
|
|
124
|
-
|
|
111
|
+
animationEffect: CarouselAnimationEffect;
|
|
125
112
|
/**
|
|
126
113
|
* Accepts the template for previous navigation button.
|
|
127
114
|
*
|
|
@@ -195,6 +182,12 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
195
182
|
* @default true
|
|
196
183
|
*/
|
|
197
184
|
autoPlay: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Defines whether the slide transition gets pause on hover or not.
|
|
187
|
+
*
|
|
188
|
+
* @default true
|
|
189
|
+
*/
|
|
190
|
+
pauseOnHover: boolean;
|
|
198
191
|
/**
|
|
199
192
|
* Defines whether the slide transitions loop end or not. When set to false, the transition stops at last slide.
|
|
200
193
|
*
|