@syncfusion/ej2-navigations 22.2.8 → 23.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/ej2-navigations.min.js +2 -2
- 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 +96 -57
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +96 -55
- 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/package.json +12 -12
- package/src/accordion/accordion-model.d.ts +1 -1
- package/src/accordion/accordion.d.ts +3 -2
- package/src/accordion/accordion.js +30 -29
- package/src/appbar/appbar.js +1 -0
- package/src/breadcrumb/breadcrumb-model.d.ts +1 -1
- package/src/breadcrumb/breadcrumb.js +10 -2
- package/src/carousel/carousel.d.ts +1 -0
- package/src/carousel/carousel.js +12 -2
- package/src/common/menu-base.js +7 -6
- package/src/menu/menu-model.d.ts +1 -1
- package/src/tab/tab-model.d.ts +4 -2
- package/src/tab/tab.d.ts +5 -0
- package/src/tab/tab.js +19 -15
- package/src/toolbar/toolbar-model.d.ts +2 -0
- package/src/toolbar/toolbar.d.ts +2 -0
- package/src/toolbar/toolbar.js +6 -1
- package/src/treeview/treeview-model.d.ts +1 -1
- package/src/treeview/treeview.d.ts +1 -1
- package/src/treeview/treeview.js +14 -3
- package/styles/accordion/_theme.scss +1 -0
- package/styles/accordion/bootstrap-dark.scss +1 -1
- package/styles/accordion/bootstrap.scss +1 -1
- package/styles/accordion/bootstrap4.scss +1 -1
- package/styles/accordion/bootstrap5-dark.scss +1 -1
- package/styles/accordion/bootstrap5.scss +1 -1
- package/styles/accordion/fabric-dark.scss +1 -1
- package/styles/accordion/fabric.scss +1 -1
- package/styles/accordion/fluent-dark.scss +1 -1
- package/styles/accordion/fluent.scss +1 -1
- package/styles/accordion/highcontrast-light.scss +1 -1
- package/styles/accordion/highcontrast.scss +1 -1
- package/styles/accordion/material-dark.css +0 -1
- package/styles/accordion/material-dark.scss +1 -1
- package/styles/accordion/material.css +0 -1
- package/styles/accordion/material.scss +1 -1
- package/styles/accordion/material3-dark.css +0 -1
- package/styles/accordion/material3-dark.scss +1 -1
- package/styles/accordion/material3.css +0 -1
- package/styles/accordion/material3.scss +1 -1
- package/styles/accordion/tailwind-dark.css +0 -1
- package/styles/accordion/tailwind-dark.scss +1 -1
- package/styles/accordion/tailwind.css +0 -1
- package/styles/accordion/tailwind.scss +1 -1
- package/styles/appbar/bootstrap-dark.scss +1 -1
- package/styles/appbar/bootstrap.scss +1 -1
- package/styles/appbar/bootstrap4.scss +1 -1
- package/styles/appbar/bootstrap5-dark.scss +1 -1
- package/styles/appbar/bootstrap5.scss +1 -1
- package/styles/appbar/fabric-dark.scss +1 -1
- package/styles/appbar/fabric.scss +1 -1
- package/styles/appbar/fluent-dark.scss +1 -1
- package/styles/appbar/fluent.scss +1 -1
- package/styles/appbar/highcontrast-light.scss +1 -1
- package/styles/appbar/highcontrast.scss +1 -1
- package/styles/appbar/material-dark.css +0 -1
- package/styles/appbar/material-dark.scss +1 -1
- package/styles/appbar/material.css +0 -1
- package/styles/appbar/material.scss +1 -1
- package/styles/appbar/material3-dark.css +0 -1
- package/styles/appbar/material3-dark.scss +1 -1
- package/styles/appbar/material3.css +0 -1
- package/styles/appbar/material3.scss +1 -1
- package/styles/appbar/tailwind-dark.css +0 -1
- package/styles/appbar/tailwind-dark.scss +1 -1
- package/styles/appbar/tailwind.css +0 -1
- package/styles/appbar/tailwind.scss +1 -1
- package/styles/bootstrap-dark.css +14 -9
- package/styles/bootstrap.css +14 -9
- package/styles/bootstrap4.css +22 -14
- package/styles/bootstrap5-dark.css +18 -13
- package/styles/bootstrap5.css +18 -13
- package/styles/breadcrumb/bootstrap-dark.scss +1 -1
- package/styles/breadcrumb/bootstrap.scss +1 -1
- package/styles/breadcrumb/bootstrap4.scss +1 -1
- package/styles/breadcrumb/bootstrap5-dark.scss +1 -1
- package/styles/breadcrumb/bootstrap5.scss +1 -1
- package/styles/breadcrumb/fabric-dark.scss +1 -1
- package/styles/breadcrumb/fabric.scss +1 -1
- package/styles/breadcrumb/fluent-dark.scss +1 -1
- package/styles/breadcrumb/fluent.scss +1 -1
- package/styles/breadcrumb/highcontrast-light.scss +1 -1
- package/styles/breadcrumb/highcontrast.scss +1 -1
- package/styles/breadcrumb/material-dark.css +0 -1
- package/styles/breadcrumb/material-dark.scss +1 -1
- package/styles/breadcrumb/material.css +0 -1
- package/styles/breadcrumb/material.scss +1 -1
- package/styles/breadcrumb/material3-dark.css +0 -1
- package/styles/breadcrumb/material3-dark.scss +1 -1
- package/styles/breadcrumb/material3.css +0 -1
- package/styles/breadcrumb/material3.scss +1 -1
- package/styles/breadcrumb/tailwind-dark.css +0 -1
- package/styles/breadcrumb/tailwind-dark.scss +1 -1
- package/styles/breadcrumb/tailwind.css +0 -1
- package/styles/breadcrumb/tailwind.scss +1 -1
- package/styles/carousel/bootstrap-dark.scss +1 -1
- package/styles/carousel/bootstrap.scss +1 -1
- package/styles/carousel/bootstrap4.scss +1 -1
- package/styles/carousel/bootstrap5-dark.scss +1 -1
- package/styles/carousel/bootstrap5.scss +1 -1
- package/styles/carousel/fabric-dark.scss +1 -1
- package/styles/carousel/fabric.scss +1 -1
- package/styles/carousel/fluent-dark.scss +1 -1
- package/styles/carousel/fluent.scss +1 -1
- package/styles/carousel/highcontrast-light.scss +1 -1
- package/styles/carousel/highcontrast.scss +1 -1
- package/styles/carousel/material-dark.css +0 -1
- package/styles/carousel/material-dark.scss +1 -1
- package/styles/carousel/material.css +0 -1
- package/styles/carousel/material.scss +1 -1
- package/styles/carousel/material3-dark.css +0 -1
- package/styles/carousel/material3-dark.scss +1 -1
- package/styles/carousel/material3.css +0 -1
- package/styles/carousel/material3.scss +1 -1
- package/styles/carousel/tailwind-dark.css +0 -1
- package/styles/carousel/tailwind-dark.scss +1 -1
- package/styles/carousel/tailwind.css +0 -1
- package/styles/carousel/tailwind.scss +1 -1
- package/styles/context-menu/bootstrap-dark.scss +1 -1
- package/styles/context-menu/bootstrap.scss +1 -1
- package/styles/context-menu/bootstrap4.scss +1 -1
- package/styles/context-menu/bootstrap5-dark.scss +1 -1
- package/styles/context-menu/bootstrap5.scss +1 -1
- package/styles/context-menu/fabric-dark.scss +1 -1
- package/styles/context-menu/fabric.scss +1 -1
- package/styles/context-menu/fluent-dark.scss +1 -1
- package/styles/context-menu/fluent.scss +1 -1
- package/styles/context-menu/highcontrast-light.scss +1 -1
- package/styles/context-menu/highcontrast.scss +1 -1
- package/styles/context-menu/material-dark.css +0 -1
- package/styles/context-menu/material-dark.scss +1 -1
- package/styles/context-menu/material.css +0 -1
- package/styles/context-menu/material.scss +1 -1
- package/styles/context-menu/material3-dark.css +0 -1
- package/styles/context-menu/material3-dark.scss +1 -1
- package/styles/context-menu/material3.css +0 -1
- package/styles/context-menu/material3.scss +1 -1
- package/styles/context-menu/tailwind-dark.css +0 -1
- package/styles/context-menu/tailwind-dark.scss +1 -1
- package/styles/context-menu/tailwind.css +0 -1
- package/styles/context-menu/tailwind.scss +1 -1
- package/styles/fabric-dark.css +14 -9
- package/styles/fabric.css +14 -9
- package/styles/fluent-dark.css +14 -9
- package/styles/fluent.css +14 -9
- package/styles/h-scroll/bootstrap-dark.scss +1 -1
- package/styles/h-scroll/bootstrap.scss +1 -1
- package/styles/h-scroll/bootstrap4.scss +1 -1
- package/styles/h-scroll/bootstrap5-dark.scss +1 -1
- package/styles/h-scroll/bootstrap5.scss +1 -1
- package/styles/h-scroll/fabric-dark.scss +1 -1
- package/styles/h-scroll/fabric.scss +1 -1
- package/styles/h-scroll/fluent-dark.scss +1 -1
- package/styles/h-scroll/fluent.scss +1 -1
- package/styles/h-scroll/highcontrast-light.scss +1 -1
- package/styles/h-scroll/highcontrast.scss +1 -1
- package/styles/h-scroll/material-dark.css +0 -1
- package/styles/h-scroll/material-dark.scss +1 -1
- package/styles/h-scroll/material.css +0 -1
- package/styles/h-scroll/material.scss +1 -1
- package/styles/h-scroll/material3-dark.css +0 -1
- package/styles/h-scroll/material3-dark.scss +1 -1
- package/styles/h-scroll/material3.css +0 -1
- package/styles/h-scroll/material3.scss +1 -1
- package/styles/h-scroll/tailwind-dark.css +0 -1
- package/styles/h-scroll/tailwind-dark.scss +1 -1
- package/styles/h-scroll/tailwind.css +0 -1
- package/styles/h-scroll/tailwind.scss +1 -1
- package/styles/highcontrast-light.css +14 -9
- package/styles/highcontrast.css +14 -9
- package/styles/material-dark.css +14 -10
- package/styles/material.css +14 -10
- package/styles/material3-dark.css +15 -11
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +15 -11
- package/styles/material3.scss +1 -1
- package/styles/menu/_theme.scss +8 -3
- package/styles/menu/bootstrap-dark.css +14 -9
- package/styles/menu/bootstrap-dark.scss +1 -1
- package/styles/menu/bootstrap.css +14 -9
- package/styles/menu/bootstrap.scss +1 -1
- package/styles/menu/bootstrap4.css +22 -14
- package/styles/menu/bootstrap4.scss +1 -1
- package/styles/menu/bootstrap5-dark.css +14 -9
- package/styles/menu/bootstrap5-dark.scss +1 -1
- package/styles/menu/bootstrap5.css +14 -9
- package/styles/menu/bootstrap5.scss +1 -1
- package/styles/menu/fabric-dark.css +14 -9
- package/styles/menu/fabric-dark.scss +1 -1
- package/styles/menu/fabric.css +14 -9
- package/styles/menu/fabric.scss +1 -1
- package/styles/menu/fluent-dark.css +14 -9
- package/styles/menu/fluent-dark.scss +1 -1
- package/styles/menu/fluent.css +14 -9
- package/styles/menu/fluent.scss +1 -1
- package/styles/menu/highcontrast-light.css +14 -9
- package/styles/menu/highcontrast-light.scss +1 -1
- package/styles/menu/highcontrast.css +14 -9
- package/styles/menu/highcontrast.scss +1 -1
- package/styles/menu/material-dark.css +14 -10
- package/styles/menu/material-dark.scss +1 -1
- package/styles/menu/material.css +14 -10
- package/styles/menu/material.scss +1 -1
- package/styles/menu/material3-dark.css +14 -10
- package/styles/menu/material3-dark.scss +1 -1
- package/styles/menu/material3.css +14 -10
- package/styles/menu/material3.scss +1 -1
- package/styles/menu/tailwind-dark.css +14 -10
- package/styles/menu/tailwind-dark.scss +1 -1
- package/styles/menu/tailwind.css +14 -10
- package/styles/menu/tailwind.scss +1 -1
- package/styles/pager/bootstrap-dark.scss +1 -1
- package/styles/pager/bootstrap.scss +1 -1
- package/styles/pager/bootstrap4.scss +1 -1
- package/styles/pager/bootstrap5-dark.scss +1 -1
- package/styles/pager/bootstrap5.scss +1 -1
- package/styles/pager/fabric-dark.scss +1 -1
- package/styles/pager/fabric.scss +1 -1
- package/styles/pager/fluent-dark.scss +1 -1
- package/styles/pager/fluent.scss +1 -1
- package/styles/pager/highcontrast-light.scss +1 -1
- package/styles/pager/highcontrast.scss +1 -1
- package/styles/pager/material-dark.css +0 -1
- package/styles/pager/material-dark.scss +1 -1
- package/styles/pager/material.css +0 -1
- package/styles/pager/material.scss +1 -1
- package/styles/pager/material3-dark.css +0 -1
- package/styles/pager/material3-dark.scss +1 -1
- package/styles/pager/material3.css +0 -1
- package/styles/pager/material3.scss +1 -1
- package/styles/pager/tailwind-dark.css +0 -1
- package/styles/pager/tailwind-dark.scss +1 -1
- package/styles/pager/tailwind.css +0 -1
- package/styles/pager/tailwind.scss +1 -1
- package/styles/sidebar/bootstrap-dark.scss +1 -1
- package/styles/sidebar/bootstrap.scss +1 -1
- package/styles/sidebar/bootstrap4.scss +1 -1
- package/styles/sidebar/bootstrap5-dark.scss +1 -1
- package/styles/sidebar/bootstrap5.scss +1 -1
- package/styles/sidebar/fabric-dark.scss +1 -1
- package/styles/sidebar/fabric.scss +1 -1
- package/styles/sidebar/fluent-dark.scss +1 -1
- package/styles/sidebar/fluent.scss +1 -1
- package/styles/sidebar/highcontrast-light.scss +1 -1
- package/styles/sidebar/highcontrast.scss +1 -1
- package/styles/sidebar/material-dark.css +0 -1
- package/styles/sidebar/material-dark.scss +1 -1
- package/styles/sidebar/material.css +0 -1
- package/styles/sidebar/material.scss +1 -1
- package/styles/sidebar/material3-dark.css +0 -1
- package/styles/sidebar/material3-dark.scss +1 -1
- package/styles/sidebar/material3.css +0 -1
- package/styles/sidebar/material3.scss +1 -1
- package/styles/sidebar/tailwind-dark.css +0 -1
- package/styles/sidebar/tailwind-dark.scss +1 -1
- package/styles/sidebar/tailwind.css +0 -1
- package/styles/sidebar/tailwind.scss +1 -1
- package/styles/tab/_tailwind-definition.scss +2 -2
- package/styles/tab/bootstrap-dark.scss +1 -1
- package/styles/tab/bootstrap.scss +1 -1
- package/styles/tab/bootstrap4.scss +1 -1
- package/styles/tab/bootstrap5-dark.scss +1 -1
- package/styles/tab/bootstrap5.scss +1 -1
- package/styles/tab/fabric-dark.scss +1 -1
- package/styles/tab/fabric.scss +1 -1
- package/styles/tab/fluent-dark.scss +1 -1
- package/styles/tab/fluent.scss +1 -1
- package/styles/tab/highcontrast-light.scss +1 -1
- package/styles/tab/highcontrast.scss +1 -1
- package/styles/tab/material-dark.css +0 -1
- package/styles/tab/material-dark.scss +1 -1
- package/styles/tab/material.css +0 -1
- package/styles/tab/material.scss +1 -1
- package/styles/tab/material3-dark.css +0 -1
- package/styles/tab/material3-dark.scss +1 -1
- package/styles/tab/material3.css +0 -1
- package/styles/tab/material3.scss +1 -1
- package/styles/tab/tailwind-dark.css +2 -3
- package/styles/tab/tailwind-dark.scss +1 -1
- package/styles/tab/tailwind.css +2 -3
- package/styles/tab/tailwind.scss +1 -1
- package/styles/tailwind-dark.css +18 -26
- package/styles/tailwind.css +18 -26
- package/styles/toolbar/_bootstrap5-definition.scss +4 -4
- package/styles/toolbar/_material3-definition.scss +1 -1
- package/styles/toolbar/_tailwind-definition.scss +2 -2
- package/styles/toolbar/bootstrap-dark.scss +1 -1
- package/styles/toolbar/bootstrap.scss +1 -1
- package/styles/toolbar/bootstrap4.scss +1 -1
- package/styles/toolbar/bootstrap5-dark.css +4 -4
- package/styles/toolbar/bootstrap5-dark.scss +1 -1
- package/styles/toolbar/bootstrap5.css +4 -4
- package/styles/toolbar/bootstrap5.scss +1 -1
- package/styles/toolbar/fabric-dark.scss +1 -1
- package/styles/toolbar/fabric.scss +1 -1
- package/styles/toolbar/fluent-dark.scss +1 -1
- package/styles/toolbar/fluent.scss +1 -1
- package/styles/toolbar/highcontrast-light.scss +1 -1
- package/styles/toolbar/highcontrast.scss +1 -1
- package/styles/toolbar/material-dark.css +0 -1
- package/styles/toolbar/material-dark.scss +1 -1
- package/styles/toolbar/material.css +0 -1
- package/styles/toolbar/material.scss +1 -1
- package/styles/toolbar/material3-dark.css +1 -2
- package/styles/toolbar/material3-dark.scss +1 -1
- package/styles/toolbar/material3.css +1 -2
- package/styles/toolbar/material3.scss +1 -1
- package/styles/toolbar/tailwind-dark.css +2 -3
- package/styles/toolbar/tailwind-dark.scss +1 -1
- package/styles/toolbar/tailwind.css +2 -3
- package/styles/toolbar/tailwind.scss +1 -1
- package/styles/treeview/bootstrap-dark.scss +1 -1
- package/styles/treeview/bootstrap.scss +1 -1
- package/styles/treeview/bootstrap4.scss +1 -1
- package/styles/treeview/bootstrap5-dark.scss +1 -1
- package/styles/treeview/bootstrap5.scss +1 -1
- package/styles/treeview/fabric-dark.scss +1 -1
- package/styles/treeview/fabric.scss +1 -1
- package/styles/treeview/fluent-dark.scss +1 -1
- package/styles/treeview/fluent.scss +1 -1
- package/styles/treeview/highcontrast-light.scss +1 -1
- package/styles/treeview/highcontrast.scss +1 -1
- package/styles/treeview/material-dark.css +0 -1
- package/styles/treeview/material-dark.scss +1 -1
- package/styles/treeview/material.css +0 -1
- package/styles/treeview/material.scss +1 -1
- package/styles/treeview/material3-dark.css +0 -1
- package/styles/treeview/material3-dark.scss +1 -1
- package/styles/treeview/material3.css +0 -1
- package/styles/treeview/material3.scss +1 -1
- package/styles/treeview/tailwind-dark.css +0 -1
- package/styles/treeview/tailwind-dark.scss +1 -1
- package/styles/treeview/tailwind.css +0 -1
- package/styles/treeview/tailwind.scss +1 -1
- package/styles/v-scroll/bootstrap-dark.scss +1 -1
- package/styles/v-scroll/bootstrap.scss +1 -1
- package/styles/v-scroll/bootstrap4.scss +1 -1
- package/styles/v-scroll/bootstrap5-dark.scss +1 -1
- package/styles/v-scroll/bootstrap5.scss +1 -1
- package/styles/v-scroll/fabric-dark.scss +1 -1
- package/styles/v-scroll/fabric.scss +1 -1
- package/styles/v-scroll/fluent-dark.scss +1 -1
- package/styles/v-scroll/fluent.scss +1 -1
- package/styles/v-scroll/highcontrast-light.scss +1 -1
- package/styles/v-scroll/highcontrast.scss +1 -1
- package/styles/v-scroll/material-dark.css +0 -1
- package/styles/v-scroll/material-dark.scss +1 -1
- package/styles/v-scroll/material.css +0 -1
- package/styles/v-scroll/material.scss +1 -1
- package/styles/v-scroll/material3-dark.css +0 -1
- package/styles/v-scroll/material3-dark.scss +1 -1
- package/styles/v-scroll/material3.css +0 -1
- package/styles/v-scroll/material3.scss +1 -1
- package/styles/v-scroll/tailwind-dark.css +0 -1
- package/styles/v-scroll/tailwind-dark.scss +1 -1
- package/styles/v-scroll/tailwind.css +0 -1
- package/styles/v-scroll/tailwind.scss +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 23.1.36
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-navigations@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-navigations@22.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@22.21.0",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-ZFdWxo2R4Yqc8cQ36lXQgviT1E4xlJPtFDNf0J277vGN2vxxLcLbTe7wgr2wrFrX9R+QOixiN2gZbAFVWo8m7w==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"/@syncfusion/ej2-spreadsheet",
|
|
40
40
|
"/@syncfusion/ej2-vue-navigations"
|
|
41
41
|
],
|
|
42
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-
|
|
43
|
-
"_shasum": "
|
|
42
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-navigations/-/ej2-navigations-22.21.0.tgz",
|
|
43
|
+
"_shasum": "cf737ced5f81c1a3735e20e4a743a48dc093b8a2",
|
|
44
44
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
45
|
-
"_where": "/jenkins/workspace/elease-
|
|
45
|
+
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
|
|
46
46
|
"author": {
|
|
47
47
|
"name": "Syncfusion Inc."
|
|
48
48
|
},
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
},
|
|
52
52
|
"bundleDependencies": false,
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@syncfusion/ej2-base": "~
|
|
55
|
-
"@syncfusion/ej2-buttons": "~
|
|
56
|
-
"@syncfusion/ej2-data": "~
|
|
57
|
-
"@syncfusion/ej2-inputs": "~
|
|
58
|
-
"@syncfusion/ej2-lists": "~
|
|
59
|
-
"@syncfusion/ej2-popups": "~
|
|
54
|
+
"@syncfusion/ej2-base": "~23.1.36",
|
|
55
|
+
"@syncfusion/ej2-buttons": "~23.1.36",
|
|
56
|
+
"@syncfusion/ej2-data": "~23.1.36",
|
|
57
|
+
"@syncfusion/ej2-inputs": "~23.1.36",
|
|
58
|
+
"@syncfusion/ej2-lists": "~23.1.36",
|
|
59
|
+
"@syncfusion/ej2-popups": "~23.1.36"
|
|
60
60
|
},
|
|
61
61
|
"deprecated": false,
|
|
62
62
|
"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",
|
|
@@ -161,6 +161,6 @@
|
|
|
161
161
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
162
162
|
},
|
|
163
163
|
"typings": "index.d.ts",
|
|
164
|
-
"version": "
|
|
164
|
+
"version": "23.1.36",
|
|
165
165
|
"sideEffects": false
|
|
166
166
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, EventHandler, Property, Event, EmitType, AnimationModel, KeyboardEvents, rippleEffect } from '@syncfusion/ej2-base';import { KeyboardEventArgs, BaseEventArgs, Effect, getUniqueID, compile as templateCompiler } from '@syncfusion/ej2-base';import { isVisible, closest, attributes, detach, select, addClass, removeClass, append } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Collection, Animation } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, Complex } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, formatUnit, selectAll, SanitizeHtmlHelper, isRippleEnabled } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Component, EventHandler, Property, Event, EmitType, AnimationModel, KeyboardEvents, rippleEffect, animationMode } from '@syncfusion/ej2-base';import { KeyboardEventArgs, BaseEventArgs, Effect, getUniqueID, compile as templateCompiler } from '@syncfusion/ej2-base';import { isVisible, closest, attributes, detach, select, addClass, removeClass, append } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Collection, Animation } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, Complex } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, formatUnit, selectAll, SanitizeHtmlHelper, isRippleEnabled } from '@syncfusion/ej2-base';
|
|
2
2
|
import {ExpandMode,AccordionClickArgs,ExpandEventArgs,ExpandedEventArgs} from "./accordion";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -197,6 +197,8 @@ export declare class Accordion extends Component<HTMLElement> implements INotify
|
|
|
197
197
|
private isDestroy;
|
|
198
198
|
private templateEle;
|
|
199
199
|
private isAngular;
|
|
200
|
+
private isReact;
|
|
201
|
+
private isVue;
|
|
200
202
|
private headerTemplateFn;
|
|
201
203
|
private itemTemplateFn;
|
|
202
204
|
private removeRippleEffect;
|
|
@@ -340,7 +342,7 @@ export declare class Accordion extends Component<HTMLElement> implements INotify
|
|
|
340
342
|
private initialize;
|
|
341
343
|
private renderControl;
|
|
342
344
|
private wireFocusEvents;
|
|
343
|
-
private
|
|
345
|
+
private unWireEvents;
|
|
344
346
|
private wireEvents;
|
|
345
347
|
private templateParser;
|
|
346
348
|
private initializeHeaderTemplate;
|
|
@@ -437,7 +439,6 @@ export declare class Accordion extends Component<HTMLElement> implements INotify
|
|
|
437
439
|
private restoreContent;
|
|
438
440
|
private updateItem;
|
|
439
441
|
private setTemplate;
|
|
440
|
-
private templateCompile;
|
|
441
442
|
private clearAccordionTemplate;
|
|
442
443
|
protected getPersistData(): string;
|
|
443
444
|
/**
|
|
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
20
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
21
|
-
import { Component, EventHandler, Property, Event, KeyboardEvents, rippleEffect } from '@syncfusion/ej2-base';
|
|
21
|
+
import { Component, EventHandler, Property, Event, KeyboardEvents, rippleEffect, animationMode } from '@syncfusion/ej2-base';
|
|
22
22
|
import { getUniqueID, compile as templateCompiler } from '@syncfusion/ej2-base';
|
|
23
23
|
import { isVisible, closest, attributes, detach, select, addClass, removeClass, append } from '@syncfusion/ej2-base';
|
|
24
24
|
import { NotifyPropertyChanges, ChildProperty, Collection, Animation } from '@syncfusion/ej2-base';
|
|
@@ -164,7 +164,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
164
164
|
}
|
|
165
165
|
var ele = this.element;
|
|
166
166
|
_super.prototype.destroy.call(this);
|
|
167
|
-
this.
|
|
167
|
+
this.unWireEvents();
|
|
168
168
|
this.isDestroy = true;
|
|
169
169
|
this.restoreContent(null);
|
|
170
170
|
[].slice.call(ele.children).forEach(function (el) {
|
|
@@ -252,7 +252,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
Accordion.prototype.
|
|
255
|
+
Accordion.prototype.unWireEvents = function () {
|
|
256
256
|
EventHandler.remove(this.element, 'click', this.clickHandler);
|
|
257
257
|
if (!isNOU(this.keyModule)) {
|
|
258
258
|
this.keyModule.destroy();
|
|
@@ -571,7 +571,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
571
571
|
var ctnEle = this.headerEleGenerate();
|
|
572
572
|
var hdrEle = this.createElement('div', { className: CLS_HEADERCTN });
|
|
573
573
|
ctnEle.appendChild(hdrEle);
|
|
574
|
-
ctnEle.appendChild(this.fetchElement(hdrEle, item.header, index
|
|
574
|
+
ctnEle.appendChild(this.fetchElement(hdrEle, item.header, index));
|
|
575
575
|
innerEle.appendChild(ctnEle);
|
|
576
576
|
}
|
|
577
577
|
var hdr = select('.' + CLS_HEADER, innerEle);
|
|
@@ -633,8 +633,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
633
633
|
return true;
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
|
-
|
|
637
|
-
Accordion.prototype.fetchElement = function (ele, value, index, isHeader) {
|
|
636
|
+
Accordion.prototype.fetchElement = function (ele, value, index) {
|
|
638
637
|
var templateFn;
|
|
639
638
|
var temString;
|
|
640
639
|
try {
|
|
@@ -718,7 +717,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
718
717
|
this.items[parseInt(index.toString(), 10)].content =
|
|
719
718
|
SanitizeHtmlHelper.sanitize(this.items[parseInt(index.toString(), 10)].content);
|
|
720
719
|
}
|
|
721
|
-
itemcnt.appendChild(this.fetchElement(ctn, this.items[parseInt(index.toString(), 10)].content, index
|
|
720
|
+
itemcnt.appendChild(this.fetchElement(ctn, this.items[parseInt(index.toString(), 10)].content, index));
|
|
722
721
|
}
|
|
723
722
|
return itemcnt;
|
|
724
723
|
};
|
|
@@ -752,7 +751,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
752
751
|
expandState.classList.remove(CLS_EXPANDSTATE);
|
|
753
752
|
}
|
|
754
753
|
trgtItemEle.classList.add(CLS_EXPANDSTATE);
|
|
755
|
-
if ((animation.name === 'None')) {
|
|
754
|
+
if ((animation.name === 'None' && animationMode !== 'Enable') || (animationMode === 'Disable')) {
|
|
756
755
|
_this.expandProgress('begin', icon, trgt, trgtItemEle, expandArgs);
|
|
757
756
|
_this.expandProgress('end', icon, trgt, trgtItemEle, expandArgs);
|
|
758
757
|
}
|
|
@@ -764,6 +763,10 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
764
763
|
};
|
|
765
764
|
Accordion.prototype.expandAnimation = function (ef, icn, trgt, trgtItemEle, animate, args) {
|
|
766
765
|
var _this = this;
|
|
766
|
+
if (ef === 'None' && animationMode === 'Enable') {
|
|
767
|
+
ef = 'SlideDown';
|
|
768
|
+
animate.name = 'SlideDown';
|
|
769
|
+
}
|
|
767
770
|
var height;
|
|
768
771
|
this.lastActiveItemId = trgtItemEle.id;
|
|
769
772
|
if (ef === 'SlideDown') {
|
|
@@ -858,7 +861,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
858
861
|
_this.expandedItemsPop(trgtItemEle);
|
|
859
862
|
trgtItemEle.classList.remove(CLS_EXPANDSTATE);
|
|
860
863
|
icon.classList.add(CLS_TOGANIMATE);
|
|
861
|
-
if ((animation.name === 'None')) {
|
|
864
|
+
if ((animation.name === 'None' && animationMode !== 'Enable') || (animationMode === 'Disable')) {
|
|
862
865
|
_this.collapseProgress('begin', icon, trgt, trgtItemEle, expandArgs);
|
|
863
866
|
_this.collapseProgress('end', icon, trgt, trgtItemEle, expandArgs);
|
|
864
867
|
}
|
|
@@ -870,6 +873,10 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
870
873
|
};
|
|
871
874
|
Accordion.prototype.collapseAnimation = function (ef, trgt, trgtItEl, icn, animate, args) {
|
|
872
875
|
var _this = this;
|
|
876
|
+
if (ef === 'None' && animationMode === 'Enable') {
|
|
877
|
+
ef = 'SlideUp';
|
|
878
|
+
animate.name = 'SlideUp';
|
|
879
|
+
}
|
|
873
880
|
var height;
|
|
874
881
|
var trgtHeight;
|
|
875
882
|
var itemHeight;
|
|
@@ -970,7 +977,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
970
977
|
EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'focus', _this.focusIn, _this);
|
|
971
978
|
EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'blur', _this.focusOut, _this);
|
|
972
979
|
_this.expandedIndices = [];
|
|
973
|
-
_this.expandedItemRefresh(
|
|
980
|
+
_this.expandedItemRefresh();
|
|
974
981
|
if (addItem && addItem.expanded) {
|
|
975
982
|
_this.expandItem(true, itemIndex);
|
|
976
983
|
}
|
|
@@ -980,8 +987,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
980
987
|
this.renderReactTemplates();
|
|
981
988
|
}
|
|
982
989
|
};
|
|
983
|
-
|
|
984
|
-
Accordion.prototype.expandedItemRefresh = function (ele) {
|
|
990
|
+
Accordion.prototype.expandedItemRefresh = function () {
|
|
985
991
|
var _this = this;
|
|
986
992
|
var itemEle = this.getItemElements();
|
|
987
993
|
[].slice.call(itemEle).forEach(function (el) {
|
|
@@ -997,8 +1003,12 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
997
1003
|
* @returns {void}.
|
|
998
1004
|
*/
|
|
999
1005
|
Accordion.prototype.removeItem = function (index) {
|
|
1000
|
-
if (this.isReact) {
|
|
1001
|
-
|
|
1006
|
+
if (this.isReact || this.isAngular) {
|
|
1007
|
+
var item = selectAll('.' + CLS_ITEM, this.element)[parseInt(index.toString(), 10)];
|
|
1008
|
+
var header = select('.' + CLS_HEADERCTN, item);
|
|
1009
|
+
var content = select('.' + CLS_CTENT, item);
|
|
1010
|
+
this.clearAccordionTemplate(header, this.dataSource.length > 0 ? 'headerTemplate' : 'header', CLS_HEADERCTN);
|
|
1011
|
+
this.clearAccordionTemplate(content, this.dataSource.length > 0 ? 'itemTemplate' : 'content', CLS_CTENT);
|
|
1002
1012
|
}
|
|
1003
1013
|
var itemEle = this.getItemElements();
|
|
1004
1014
|
var ele = itemEle[parseInt(index.toString(), 10)];
|
|
@@ -1010,7 +1020,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
1010
1020
|
detach(ele);
|
|
1011
1021
|
items.splice(index, 1);
|
|
1012
1022
|
this.expandedIndices = [];
|
|
1013
|
-
this.expandedItemRefresh(
|
|
1023
|
+
this.expandedItemRefresh();
|
|
1014
1024
|
};
|
|
1015
1025
|
/**
|
|
1016
1026
|
* Sets focus to the specified index item header in Accordion.
|
|
@@ -1187,28 +1197,18 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
1187
1197
|
}
|
|
1188
1198
|
};
|
|
1189
1199
|
Accordion.prototype.setTemplate = function (template, toElement, index) {
|
|
1190
|
-
toElement
|
|
1191
|
-
this.templateCompile(toElement, template, index);
|
|
1200
|
+
this.fetchElement(toElement, template, index);
|
|
1192
1201
|
if (this.isReact) {
|
|
1193
1202
|
this.renderReactTemplates();
|
|
1194
1203
|
}
|
|
1195
1204
|
};
|
|
1196
|
-
Accordion.prototype.templateCompile = function (ele, cnt, index) {
|
|
1197
|
-
var tempEle = this.createElement('div');
|
|
1198
|
-
this.fetchElement(tempEle, cnt, index, false);
|
|
1199
|
-
if (tempEle.childNodes.length !== 0) {
|
|
1200
|
-
[].slice.call(tempEle.childNodes).forEach(function (childEle) {
|
|
1201
|
-
ele.appendChild(childEle);
|
|
1202
|
-
});
|
|
1203
|
-
}
|
|
1204
|
-
};
|
|
1205
1205
|
Accordion.prototype.clearAccordionTemplate = function (templateEle, templateName, className) {
|
|
1206
1206
|
if (this.registeredTemplate && this.registeredTemplate["" + templateName]) {
|
|
1207
1207
|
var registeredTemplates = this.registeredTemplate;
|
|
1208
1208
|
for (var index = 0; index < registeredTemplates["" + templateName].length; index++) {
|
|
1209
1209
|
var registeredItem = registeredTemplates["" + templateName][parseInt(index.toString(), 10)].rootNodes[0];
|
|
1210
|
-
var closestItem = closest(registeredItem
|
|
1211
|
-
if (!isNOU(closestItem) && closestItem === templateEle) {
|
|
1210
|
+
var closestItem = closest(registeredItem, '.' + className);
|
|
1211
|
+
if (!isNOU(closestItem) && closestItem === templateEle || isNOU(registeredItem.parentNode)) {
|
|
1212
1212
|
this.clearTemplate([templateName], [registeredTemplates["" + templateName][parseInt(index.toString(), 10)]]);
|
|
1213
1213
|
break;
|
|
1214
1214
|
}
|
|
@@ -1278,7 +1278,8 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
1278
1278
|
if (property[parseInt(k.toString(), 10)] === 'disabled' && !isNOU(item)) {
|
|
1279
1279
|
this.enableItem(index, !newVal);
|
|
1280
1280
|
}
|
|
1281
|
-
if (property[parseInt(k.toString(), 10)] === 'content'
|
|
1281
|
+
if (property.indexOf('header') < 0 && property[parseInt(k.toString(), 10)] === 'content'
|
|
1282
|
+
&& !isNOU(item) && item.children.length === 2) {
|
|
1282
1283
|
if (typeof newVal === 'function') {
|
|
1283
1284
|
if (this.isAngular || this.isReact) {
|
|
1284
1285
|
this.clearAccordionTemplate(content, property[parseInt(k.toString(), 10)], CLS_CTENT);
|
package/src/appbar/appbar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass, detach, remove } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { Popup } from '@syncfusion/ej2-popups';
|
|
1
|
+
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass, detach, remove, initializeCSPTemplate, isNullOrUndefined } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { Popup } from '@syncfusion/ej2-popups';
|
|
2
2
|
import {BreadcrumbOverflowMode,BreadcrumbBeforeItemRenderEventArgs,BreadcrumbClickEventArgs} from "./breadcrumb";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
17
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { Component, NotifyPropertyChanges, ChildProperty, Property, Collection, append, extend, Event, EventHandler, closest, addClass, removeClass, detach, remove } from '@syncfusion/ej2-base';
|
|
20
|
+
import { Component, NotifyPropertyChanges, ChildProperty, Property, Collection, append, extend, Event, EventHandler, closest, addClass, removeClass, detach, remove, initializeCSPTemplate, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
21
21
|
import { ListBase } from '@syncfusion/ej2-lists';
|
|
22
22
|
import { Popup } from '@syncfusion/ej2-popups';
|
|
23
23
|
var ICONRIGHT = 'e-icon-right';
|
|
@@ -293,7 +293,14 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
293
293
|
if (i % 2) {
|
|
294
294
|
// separator item
|
|
295
295
|
wrapDiv = this.createElement('div', { className: 'e-breadcrumb-item-wrapper' });
|
|
296
|
-
|
|
296
|
+
if ((this.separatorTemplate && this.separatorTemplate === '/') || isNullOrUndefined(this.separatorTemplate)) {
|
|
297
|
+
listBaseOptions.template = initializeCSPTemplate(function () {
|
|
298
|
+
return '/';
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
listBaseOptions.template = this.separatorTemplate;
|
|
303
|
+
}
|
|
297
304
|
listBaseOptions.itemClass = 'e-breadcrumb-separator';
|
|
298
305
|
isSingleLevel = false;
|
|
299
306
|
item = [{ previousItem: items[j_1], nextItem: items[j_1 + 1] }];
|
|
@@ -302,6 +309,7 @@ var Breadcrumb = /** @class */ (function (_super) {
|
|
|
302
309
|
// list item
|
|
303
310
|
listBaseOptions.itemClass = '';
|
|
304
311
|
if (this.itemTemplate) {
|
|
312
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
305
313
|
listBaseOptions.template = this.itemTemplate;
|
|
306
314
|
isSingleLevel = false;
|
|
307
315
|
}
|
package/src/carousel/carousel.js
CHANGED
|
@@ -297,6 +297,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
297
297
|
};
|
|
298
298
|
Carousel.prototype.initialize = function () {
|
|
299
299
|
var carouselClasses = [];
|
|
300
|
+
carouselClasses.push(CLS_CAROUSEL);
|
|
300
301
|
if (this.cssClass) {
|
|
301
302
|
carouselClasses.push(this.cssClass);
|
|
302
303
|
}
|
|
@@ -311,7 +312,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
311
312
|
}
|
|
312
313
|
addClass([this.element], carouselClasses);
|
|
313
314
|
setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
|
|
314
|
-
attributes(this.element, { 'tabindex': '0', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
|
|
315
|
+
attributes(this.element, { 'tabindex': '0', 'role': 'group', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
|
|
315
316
|
if (!isNullOrUndefined(this.htmlAttributes)) {
|
|
316
317
|
this.setHtmlAttributes(this.htmlAttributes, this.element);
|
|
317
318
|
}
|
|
@@ -385,7 +386,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
385
386
|
className: CLS_ITEM + " " + (item.cssClass ? item.cssClass : '') + " " + (this.selectedIndex === index && !isClone ? CLS_ACTIVE : ''),
|
|
386
387
|
attrs: {
|
|
387
388
|
'aria-hidden': this.selectedIndex === index && !isClone ? 'false' : 'true', 'data-index': index.toString(),
|
|
388
|
-
'
|
|
389
|
+
'role': 'group', 'aria-roledescription': 'slide'
|
|
389
390
|
}
|
|
390
391
|
});
|
|
391
392
|
if (isClone) {
|
|
@@ -1092,6 +1093,13 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1092
1093
|
EventHandler.add(this.itemsContainer, 'mouseup touchend', this.swipStop, this);
|
|
1093
1094
|
}
|
|
1094
1095
|
};
|
|
1096
|
+
Carousel.prototype.resizeHandler = function () {
|
|
1097
|
+
if (this.itemsContainer && this.itemsContainer.firstElementChild) {
|
|
1098
|
+
var numOfItems = this.getNumOfItems();
|
|
1099
|
+
var slideWidth = this.itemsContainer.firstElementChild.clientWidth;
|
|
1100
|
+
this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + numOfItems);
|
|
1101
|
+
}
|
|
1102
|
+
};
|
|
1095
1103
|
Carousel.prototype.wireEvents = function () {
|
|
1096
1104
|
if (!(this.animationEffect === 'Custom')) {
|
|
1097
1105
|
this.swipeModehandlers();
|
|
@@ -1100,6 +1108,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1100
1108
|
EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);
|
|
1101
1109
|
EventHandler.add(this.element.firstElementChild, 'animationend', this.onTransitionEnd, this);
|
|
1102
1110
|
EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);
|
|
1111
|
+
EventHandler.add(window, 'resize', this.resizeHandler, this);
|
|
1103
1112
|
};
|
|
1104
1113
|
Carousel.prototype.unWireEvents = function () {
|
|
1105
1114
|
var _this = this;
|
|
@@ -1119,6 +1128,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
1119
1128
|
EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
|
|
1120
1129
|
EventHandler.clearEvents(this.element);
|
|
1121
1130
|
EventHandler.clearEvents(this.itemsContainer);
|
|
1131
|
+
EventHandler.remove(window, 'resize', this.resizeHandler);
|
|
1122
1132
|
};
|
|
1123
1133
|
/**
|
|
1124
1134
|
* Method to transit from the current slide to the previous slide.
|
package/src/common/menu-base.js
CHANGED
|
@@ -302,10 +302,10 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
302
302
|
}
|
|
303
303
|
this.targetElement = target;
|
|
304
304
|
if (!this.isMenu) {
|
|
305
|
-
EventHandler.add(this.targetElement, '
|
|
305
|
+
EventHandler.add(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
|
|
306
306
|
for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
|
|
307
307
|
var parent_1 = _a[_i];
|
|
308
|
-
EventHandler.add(parent_1, '
|
|
308
|
+
EventHandler.add(parent_1, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
}
|
|
@@ -483,7 +483,7 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
483
483
|
var popups_1 = [];
|
|
484
484
|
var allPopup = selectAll('.' + POPUP);
|
|
485
485
|
allPopup.forEach(function (elem) {
|
|
486
|
-
if (_this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] +
|
|
486
|
+
if (_this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + '-' + elem.id.split('-')[3]) {
|
|
487
487
|
popups_1.push(elem);
|
|
488
488
|
}
|
|
489
489
|
});
|
|
@@ -851,7 +851,7 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
851
851
|
if (isNullOrUndefined(e)) {
|
|
852
852
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
853
853
|
var ev = document.createEvent('MouseEvents');
|
|
854
|
-
ev.initEvent(
|
|
854
|
+
ev.initEvent('click', true, false);
|
|
855
855
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
856
856
|
var targetEvent = this.copyObject(ev, {});
|
|
857
857
|
targetEvent.target = targetEvent.srcElement = target;
|
|
@@ -864,6 +864,7 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
};
|
|
867
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
867
868
|
MenuBase.prototype.copyObject = function (source, destination) {
|
|
868
869
|
for (var prop in source) {
|
|
869
870
|
destination["" + prop] = source["" + prop];
|
|
@@ -1831,10 +1832,10 @@ var MenuBase = /** @class */ (function (_super) {
|
|
|
1831
1832
|
}
|
|
1832
1833
|
}
|
|
1833
1834
|
if (!this.isMenu) {
|
|
1834
|
-
EventHandler.remove(this.targetElement, '
|
|
1835
|
+
EventHandler.remove(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler);
|
|
1835
1836
|
for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
|
|
1836
1837
|
var parent_2 = _a[_i];
|
|
1837
|
-
EventHandler.remove(parent_2, '
|
|
1838
|
+
EventHandler.remove(parent_2, 'mousewheel DOMMouseScroll', this.scrollHandler);
|
|
1838
1839
|
}
|
|
1839
1840
|
}
|
|
1840
1841
|
}
|
package/src/menu/menu-model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { attributes, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';import { Browser, Complex, getUniqueID, SanitizeHtmlHelper
|
|
1
|
+
import { attributes, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';import { Browser, Complex, getUniqueID, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { MenuBase, FieldSettings } from '../common/menu-base';import { MenuItemModel, FieldSettingsModel } from '../common/menu-base-model';
|
|
2
2
|
import {Orientation} from "./menu";
|
|
3
3
|
import {MenuBaseModel} from "../common/menu-base-model";
|
|
4
4
|
|
package/src/tab/tab-model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Property, Event, EmitType, closest, Collection, Complex, attributes, detach, Instance, isNullOrUndefined } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, MouseEventArgs, Effect, Browser, formatUnit, DomElements, L10n } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, isNullOrUndefined as isNOU, selectAll, addClass, removeClass, remove } from '@syncfusion/ej2-base';import { EventHandler, rippleEffect, Touch, SwipeEventArgs, compile, Animation, AnimationModel, BaseEventArgs } from '@syncfusion/ej2-base';import { getRandomId, SanitizeHtmlHelper, Draggable, DragEventArgs as DragArgs, DropEventArgs } from '@syncfusion/ej2-base';import { Base } from '@syncfusion/ej2-base';import { Popup, PopupModel } from '@syncfusion/ej2-popups';import { Toolbar, OverflowMode, ClickEventArgs } from '../toolbar/toolbar';
|
|
1
|
+
import { Component, Property, Event, EmitType, closest, Collection, Complex, attributes, detach, Instance, isNullOrUndefined, animationMode } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, MouseEventArgs, Effect, Browser, formatUnit, DomElements, L10n } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, isNullOrUndefined as isNOU, selectAll, addClass, removeClass, remove } from '@syncfusion/ej2-base';import { EventHandler, rippleEffect, Touch, SwipeEventArgs, compile, Animation, AnimationModel, BaseEventArgs } from '@syncfusion/ej2-base';import { getRandomId, SanitizeHtmlHelper, Draggable, DragEventArgs as DragArgs, DropEventArgs } from '@syncfusion/ej2-base';import { Base } from '@syncfusion/ej2-base';import { Popup, PopupModel } from '@syncfusion/ej2-popups';import { Toolbar, OverflowMode, ClickEventArgs } from '../toolbar/toolbar';
|
|
2
2
|
import {HeaderPosition,HeightStyles,ContentLoad,AddEventArgs,SelectingEventArgs,SelectEventArgs,RemoveEventArgs,DragEventArgs} from "./tab";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -304,13 +304,15 @@ export interface TabModel extends ComponentModel{
|
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
306
|
* Defines the area in which the draggable element movement will be occurring. Outside that area will be restricted
|
|
307
|
-
* for the draggable element movement. By default, the draggable element movement occurs in the toolbar.
|
|
307
|
+
* for the draggable element movement. By default, the draggable element movement occurs in the toolbar.
|
|
308
|
+
*
|
|
308
309
|
* @default null
|
|
309
310
|
*/
|
|
310
311
|
dragArea?: string;
|
|
311
312
|
|
|
312
313
|
/**
|
|
313
314
|
* Sets true to allow drag and drop the Tab items
|
|
315
|
+
*
|
|
314
316
|
* @default false
|
|
315
317
|
*/
|
|
316
318
|
allowDragAndDrop?: boolean;
|
package/src/tab/tab.d.ts
CHANGED
|
@@ -289,6 +289,9 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
289
289
|
private draggingItems;
|
|
290
290
|
private draggableItems;
|
|
291
291
|
private tbId;
|
|
292
|
+
private isAngular;
|
|
293
|
+
private isReact;
|
|
294
|
+
private isVue;
|
|
292
295
|
private resizeContext;
|
|
293
296
|
/**
|
|
294
297
|
* Contains the keyboard configuration of the Tab.
|
|
@@ -422,11 +425,13 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
422
425
|
/**
|
|
423
426
|
* Defines the area in which the draggable element movement will be occurring. Outside that area will be restricted
|
|
424
427
|
* for the draggable element movement. By default, the draggable element movement occurs in the toolbar.
|
|
428
|
+
*
|
|
425
429
|
* @default null
|
|
426
430
|
*/
|
|
427
431
|
dragArea: string;
|
|
428
432
|
/**
|
|
429
433
|
* Sets true to allow drag and drop the Tab items
|
|
434
|
+
*
|
|
430
435
|
* @default false
|
|
431
436
|
*/
|
|
432
437
|
allowDragAndDrop: boolean;
|
package/src/tab/tab.js
CHANGED
|
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
17
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
-
import { Component, Property, Event, closest, Collection, Complex, attributes, detach, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
20
|
+
import { Component, Property, Event, closest, Collection, Complex, attributes, detach, isNullOrUndefined, animationMode } from '@syncfusion/ej2-base';
|
|
21
21
|
import { NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base';
|
|
22
22
|
import { KeyboardEvents, Browser, formatUnit, L10n } from '@syncfusion/ej2-base';
|
|
23
23
|
import { setStyleAttribute as setStyle, isNullOrUndefined as isNOU, selectAll, addClass, removeClass, remove } from '@syncfusion/ej2-base';
|
|
@@ -316,6 +316,14 @@ var Tab = /** @class */ (function (_super) {
|
|
|
316
316
|
this.renderContainer();
|
|
317
317
|
this.wireEvents();
|
|
318
318
|
this.initRender = false;
|
|
319
|
+
if (this.isReact && this.portals && this.portals.length > 0) {
|
|
320
|
+
this.renderReactTemplates(function () {
|
|
321
|
+
if (!isNOU(this.tbObj)) {
|
|
322
|
+
this.tbObj.refreshOverflow();
|
|
323
|
+
}
|
|
324
|
+
this.refreshActiveBorder();
|
|
325
|
+
});
|
|
326
|
+
}
|
|
319
327
|
};
|
|
320
328
|
Tab.prototype.renderContainer = function () {
|
|
321
329
|
var ele = this.element;
|
|
@@ -529,10 +537,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
529
537
|
tCont.appendChild(_this.btnCls.cloneNode(true));
|
|
530
538
|
var wrap = _this.createElement('div', { className: CLS_WRAP, attrs: wrapAttrs });
|
|
531
539
|
wrap.appendChild(tCont);
|
|
532
|
-
if (_this.itemIndexArray
|
|
533
|
-
_this.itemIndexArray.push(CLS_ITEM + _this.tabId + '_' + _this.lastIndex);
|
|
534
|
-
}
|
|
535
|
-
else {
|
|
540
|
+
if (_this.itemIndexArray instanceof Array) {
|
|
536
541
|
_this.itemIndexArray.splice((index + i), 0, CLS_ITEM + _this.tabId + '_' + _this.lastIndex);
|
|
537
542
|
}
|
|
538
543
|
var attrObj = {
|
|
@@ -690,10 +695,9 @@ var Tab = /** @class */ (function (_super) {
|
|
|
690
695
|
if (!isNOU(newCnt)) {
|
|
691
696
|
this.prevActiveEle = newCnt.id;
|
|
692
697
|
}
|
|
693
|
-
var isPrevent = isNOU(this.animation) || this.animation.next
|
|
694
|
-
||
|
|
695
|
-
|
|
696
|
-
if (this.initRender || value === false || this.animation === {} || isPrevent) {
|
|
698
|
+
var isPrevent = isNOU(this.animation) || isNOU(this.animation.next.effect) || isNOU(this.animation.previous.effect)
|
|
699
|
+
|| this.animation.previous.effect === 'None' || this.animation.next.effect === 'None';
|
|
700
|
+
if (this.initRender || value === false || isPrevent) {
|
|
697
701
|
if (oldCnt && oldCnt !== newCnt) {
|
|
698
702
|
oldCnt.classList.remove(CLS_ACTIVE);
|
|
699
703
|
}
|
|
@@ -705,7 +709,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
705
709
|
var openEff = this.animation.previous.effect;
|
|
706
710
|
animateObj = {
|
|
707
711
|
name: ((openEff === 'None') ? '' : ((openEff !== 'SlideLeftIn') ? openEff : 'SlideLeftIn')),
|
|
708
|
-
duration: this.animation.previous.duration,
|
|
712
|
+
duration: (this.animation.previous.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.previous.duration,
|
|
709
713
|
timingFunction: this.animation.previous.easing
|
|
710
714
|
};
|
|
711
715
|
}
|
|
@@ -713,7 +717,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
713
717
|
var clsEff = this.animation.next.effect;
|
|
714
718
|
animateObj = {
|
|
715
719
|
name: ((clsEff === 'None') ? '' : ((clsEff !== 'SlideRightIn') ? clsEff : 'SlideRightIn')),
|
|
716
|
-
duration: this.animation.next.duration,
|
|
720
|
+
duration: (this.animation.next.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.next.duration,
|
|
717
721
|
timingFunction: this.animation.next.easing
|
|
718
722
|
};
|
|
719
723
|
}
|
|
@@ -823,7 +827,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
823
827
|
};
|
|
824
828
|
Tab.prototype.getContent = function (ele, cnt, callType, index) {
|
|
825
829
|
var eleStr;
|
|
826
|
-
cnt = isNOU(cnt) ?
|
|
830
|
+
cnt = isNOU(cnt) ? '' : cnt;
|
|
827
831
|
if (typeof cnt === 'string' || isNOU(cnt.innerHTML)) {
|
|
828
832
|
if (typeof cnt === 'string' && this.enableHtmlSanitizer) {
|
|
829
833
|
cnt = SanitizeHtmlHelper.sanitize(cnt);
|
|
@@ -1174,7 +1178,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1174
1178
|
};
|
|
1175
1179
|
Tab.prototype.showPopup = function (config) {
|
|
1176
1180
|
var tbPop = select('.e-popup.e-toolbar-pop', this.hdrEle);
|
|
1177
|
-
if (tbPop.classList.contains('e-popup-close')) {
|
|
1181
|
+
if (tbPop && tbPop.classList.contains('e-popup-close')) {
|
|
1178
1182
|
var tbPopObj = (tbPop && tbPop.ej2_instances[0]);
|
|
1179
1183
|
tbPopObj.position.X = (this.headerPlacement === 'Left') ? 'left' : 'right';
|
|
1180
1184
|
tbPopObj.dataBind();
|
|
@@ -1625,8 +1629,8 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1625
1629
|
clonedElement: this.cloneElement,
|
|
1626
1630
|
cancel: false
|
|
1627
1631
|
};
|
|
1628
|
-
this.trigger('onDragStart', dragArgs, function (
|
|
1629
|
-
if (
|
|
1632
|
+
this.trigger('onDragStart', dragArgs, function (tabItemDragArgs) {
|
|
1633
|
+
if (tabItemDragArgs.cancel) {
|
|
1630
1634
|
var dragObj = e.element.ej2_instances[0];
|
|
1631
1635
|
if (!isNullOrUndefined(dragObj)) {
|
|
1632
1636
|
dragObj.intDestroy(e.event);
|
|
@@ -235,6 +235,8 @@ export interface ToolbarModel extends ComponentModel{
|
|
|
235
235
|
* * Extended - Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
|
|
236
236
|
* * If the popup content overflows the height of the page, the rest of the elements will be hidden.
|
|
237
237
|
*
|
|
238
|
+
* {% codeBlock src='toolbar/scrollStep/index.md' %}{% endcodeBlock %}
|
|
239
|
+
*
|
|
238
240
|
* @default null
|
|
239
241
|
*/
|
|
240
242
|
scrollStep?: number;
|
package/src/toolbar/toolbar.d.ts
CHANGED
|
@@ -304,6 +304,8 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
|
|
|
304
304
|
* * Extended - Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
|
|
305
305
|
* * If the popup content overflows the height of the page, the rest of the elements will be hidden.
|
|
306
306
|
*
|
|
307
|
+
* {% codeBlock src='toolbar/scrollStep/index.md' %}{% endcodeBlock %}
|
|
308
|
+
*
|
|
307
309
|
* @default null
|
|
308
310
|
*/
|
|
309
311
|
scrollStep: number;
|
package/src/toolbar/toolbar.js
CHANGED
|
@@ -687,6 +687,11 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
687
687
|
this.renderControl();
|
|
688
688
|
this.wireEvents();
|
|
689
689
|
this.renderComplete();
|
|
690
|
+
if (this.isReact && this.portals && this.portals.length > 0) {
|
|
691
|
+
this.renderReactTemplates(function () {
|
|
692
|
+
this.refreshOverflow();
|
|
693
|
+
});
|
|
694
|
+
}
|
|
690
695
|
};
|
|
691
696
|
Toolbar.prototype.initialize = function () {
|
|
692
697
|
var width = formatUnit(this.width);
|
|
@@ -1863,7 +1868,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
1863
1868
|
var tempArray = void 0;
|
|
1864
1869
|
if (!isNOU(templateFn)) {
|
|
1865
1870
|
var toolbarTemplateID = this.element.id + index + '_template';
|
|
1866
|
-
tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate);
|
|
1871
|
+
tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate, undefined, undefined, this.root);
|
|
1867
1872
|
}
|
|
1868
1873
|
if (!isNOU(tempArray) && tempArray.length > 0) {
|
|
1869
1874
|
[].slice.call(tempArray).forEach(function (ele) {
|