@syncfusion/ej2-navigations 22.2.5 → 22.2.8-184993
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 +97 -5
- package/README.md +1 -1
- package/dist/ej2-navigations.min.js +1 -10
- package/dist/ej2-navigations.umd.min.js +1 -10
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +189 -96
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +191 -94
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +1 -10
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +165 -165
- package/src/accordion/accordion-model.d.ts +1 -1
- package/src/accordion/accordion.d.ts +3 -2
- package/src/accordion/accordion.js +34 -31
- 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 +24 -10
- package/src/menu/menu-model.d.ts +1 -1
- package/src/sidebar/sidebar.js +2 -2
- package/src/tab/tab-model.d.ts +10 -2
- package/src/tab/tab.d.ts +10 -0
- package/src/tab/tab.js +29 -16
- package/src/toolbar/toolbar-model.d.ts +2 -0
- package/src/toolbar/toolbar.d.ts +3 -0
- package/src/toolbar/toolbar.js +63 -29
- package/src/treeview/treeview-model.d.ts +2 -2
- package/src/treeview/treeview.d.ts +2 -2
- package/src/treeview/treeview.js +19 -5
- package/styles/accordion/_theme.scss +5 -0
- package/styles/accordion/bootstrap-dark.css +3 -0
- package/styles/accordion/bootstrap-dark.scss +1 -1
- package/styles/accordion/bootstrap.css +3 -0
- package/styles/accordion/bootstrap.scss +1 -1
- package/styles/accordion/bootstrap4.css +3 -0
- package/styles/accordion/bootstrap4.scss +1 -1
- package/styles/accordion/bootstrap5-dark.css +3 -0
- package/styles/accordion/bootstrap5-dark.scss +1 -1
- package/styles/accordion/bootstrap5.css +3 -0
- package/styles/accordion/bootstrap5.scss +1 -1
- package/styles/accordion/fabric-dark.css +3 -0
- package/styles/accordion/fabric-dark.scss +1 -1
- package/styles/accordion/fabric.css +3 -0
- package/styles/accordion/fabric.scss +1 -1
- package/styles/accordion/fluent-dark.css +3 -0
- package/styles/accordion/fluent-dark.scss +1 -1
- package/styles/accordion/fluent.css +3 -0
- package/styles/accordion/fluent.scss +1 -1
- package/styles/accordion/highcontrast-light.css +3 -0
- package/styles/accordion/highcontrast-light.scss +1 -1
- package/styles/accordion/highcontrast.css +3 -0
- package/styles/accordion/highcontrast.scss +1 -1
- package/styles/accordion/material-dark.css +3 -1
- package/styles/accordion/material-dark.scss +1 -1
- package/styles/accordion/material.css +3 -1
- package/styles/accordion/material.scss +1 -1
- package/styles/accordion/material3-dark.css +3 -1
- package/styles/accordion/material3-dark.scss +1 -1
- package/styles/accordion/material3.css +3 -1
- package/styles/accordion/material3.scss +1 -1
- package/styles/accordion/tailwind-dark.css +3 -1
- package/styles/accordion/tailwind-dark.scss +1 -1
- package/styles/accordion/tailwind.css +3 -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 +17 -9
- package/styles/bootstrap.css +17 -9
- package/styles/bootstrap4.css +25 -14
- package/styles/bootstrap5-dark.css +21 -13
- package/styles/bootstrap5.css +21 -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 +17 -9
- package/styles/fabric.css +17 -9
- package/styles/fluent-dark.css +17 -9
- package/styles/fluent.css +17 -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 +17 -9
- package/styles/highcontrast.css +17 -9
- package/styles/material-dark.css +17 -10
- package/styles/material.css +17 -10
- package/styles/material3-dark.css +19 -12
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +19 -12
- 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 +21 -26
- package/styles/tailwind.css +21 -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/_layout.scss +4 -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 +1 -2
- package/styles/treeview/material3-dark.scss +1 -1
- package/styles/treeview/material3.css +1 -2
- 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,12 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* filename: index.d.ts
|
|
3
|
-
* version : 22.2.5
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
|
-
* Use of this code is subject to the terms of our license.
|
|
6
|
-
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
-
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
-
* applicable laws.
|
|
9
|
-
*/
|
|
10
1
|
import * as _navigations from '@syncfusion/ej2-navigations';
|
|
11
2
|
|
|
12
3
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,166 +1,166 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
2
|
+
"_from": "@syncfusion/ej2-navigations@*",
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@22.2.7",
|
|
4
|
+
"_inBundle": false,
|
|
5
|
+
"_integrity": "sha512-7Uz9JOqY5jJxwhyzEm/75NlZPwU2FSgHGayMBKK7HD/fi4Xs7JZUrC51E6un9JZk8/QGRgqVtf5zSgLbBHAYHA==",
|
|
6
|
+
"_location": "/@syncfusion/ej2-navigations",
|
|
7
|
+
"_phantomChildren": {},
|
|
8
|
+
"_requested": {
|
|
9
|
+
"type": "range",
|
|
10
|
+
"registry": true,
|
|
11
|
+
"raw": "@syncfusion/ej2-navigations@*",
|
|
12
|
+
"name": "@syncfusion/ej2-navigations",
|
|
13
|
+
"escapedName": "@syncfusion%2fej2-navigations",
|
|
14
|
+
"scope": "@syncfusion",
|
|
15
|
+
"rawSpec": "*",
|
|
16
|
+
"saveSpec": null,
|
|
17
|
+
"fetchSpec": "*"
|
|
18
|
+
},
|
|
19
|
+
"_requiredBy": [
|
|
20
|
+
"/",
|
|
21
|
+
"/@syncfusion/ej2",
|
|
22
|
+
"/@syncfusion/ej2-angular-navigations",
|
|
23
|
+
"/@syncfusion/ej2-charts",
|
|
24
|
+
"/@syncfusion/ej2-diagrams",
|
|
25
|
+
"/@syncfusion/ej2-documenteditor",
|
|
26
|
+
"/@syncfusion/ej2-dropdowns",
|
|
27
|
+
"/@syncfusion/ej2-filemanager",
|
|
28
|
+
"/@syncfusion/ej2-gantt",
|
|
29
|
+
"/@syncfusion/ej2-grids",
|
|
30
|
+
"/@syncfusion/ej2-image-editor",
|
|
31
|
+
"/@syncfusion/ej2-inplace-editor",
|
|
32
|
+
"/@syncfusion/ej2-kanban",
|
|
33
|
+
"/@syncfusion/ej2-pdfviewer",
|
|
34
|
+
"/@syncfusion/ej2-pivotview",
|
|
35
|
+
"/@syncfusion/ej2-react-navigations",
|
|
36
|
+
"/@syncfusion/ej2-ribbon",
|
|
37
|
+
"/@syncfusion/ej2-richtexteditor",
|
|
38
|
+
"/@syncfusion/ej2-schedule",
|
|
39
|
+
"/@syncfusion/ej2-spreadsheet",
|
|
40
|
+
"/@syncfusion/ej2-vue-navigations"
|
|
41
|
+
],
|
|
42
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-22.2.7.tgz",
|
|
43
|
+
"_shasum": "5fcaed69c7a93538c2bb9312dde3fe7375060919",
|
|
44
|
+
"_spec": "@syncfusion/ej2-navigations@*",
|
|
45
|
+
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
46
|
+
"author": {
|
|
47
|
+
"name": "Syncfusion Inc."
|
|
48
|
+
},
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
|
|
51
|
+
},
|
|
52
|
+
"bundleDependencies": false,
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@syncfusion/ej2-base": "~22.2.5",
|
|
55
|
+
"@syncfusion/ej2-buttons": "~22.2.8",
|
|
56
|
+
"@syncfusion/ej2-data": "~22.2.5",
|
|
57
|
+
"@syncfusion/ej2-inputs": "~22.2.7",
|
|
58
|
+
"@syncfusion/ej2-lists": "~22.2.8",
|
|
59
|
+
"@syncfusion/ej2-popups": "~22.2.7"
|
|
60
|
+
},
|
|
61
|
+
"deprecated": false,
|
|
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",
|
|
63
|
+
"devDependencies": {},
|
|
64
|
+
"es2015": "./dist/es6/ej2-navigations.es5.js",
|
|
65
|
+
"homepage": "https://www.syncfusion.com/javascript-ui-controls",
|
|
66
|
+
"keywords": [
|
|
67
|
+
"ej2",
|
|
68
|
+
"syncfusion",
|
|
69
|
+
"web-components",
|
|
70
|
+
"javascript",
|
|
71
|
+
"typescript",
|
|
72
|
+
"model",
|
|
73
|
+
"toolbar",
|
|
74
|
+
"horizontal-scroll",
|
|
75
|
+
"ribbon",
|
|
76
|
+
"navbar",
|
|
77
|
+
"navigation-bar",
|
|
78
|
+
"toolbar-customization",
|
|
79
|
+
"scrollable-toolbar",
|
|
80
|
+
"toolbar-popup",
|
|
81
|
+
"multirow-toolbar",
|
|
82
|
+
"extended-toolbar",
|
|
83
|
+
"overflow",
|
|
84
|
+
"command-buttons",
|
|
85
|
+
"accordion",
|
|
86
|
+
"panelbar",
|
|
87
|
+
"ejTab",
|
|
88
|
+
"tab",
|
|
89
|
+
"tabStrip",
|
|
90
|
+
"scrollable-tab",
|
|
91
|
+
"popup-tab",
|
|
92
|
+
"multirow-tab",
|
|
93
|
+
"header-orientation",
|
|
94
|
+
"close-tab",
|
|
95
|
+
"tab-wizard",
|
|
96
|
+
"tab-with-menu",
|
|
97
|
+
"ejAccordion",
|
|
98
|
+
"accordion",
|
|
99
|
+
"accordion-wizard",
|
|
100
|
+
"multiple-open-panel-bar",
|
|
101
|
+
"multiple-open-accordion",
|
|
102
|
+
"panel-bar",
|
|
103
|
+
"collapsible-panel-bar",
|
|
104
|
+
"context-menu",
|
|
105
|
+
"context menu",
|
|
106
|
+
"contextmenu",
|
|
107
|
+
"ej2 contextmenu",
|
|
108
|
+
"treeview",
|
|
109
|
+
"tree",
|
|
110
|
+
"ej2-treeview",
|
|
111
|
+
"tree structure",
|
|
112
|
+
"hierarchical structure",
|
|
113
|
+
"tree navigation",
|
|
114
|
+
"treeview-checkbox",
|
|
115
|
+
"drag and drop",
|
|
116
|
+
"tree editing",
|
|
117
|
+
"load on demand",
|
|
118
|
+
"accordion tree",
|
|
119
|
+
"sidebar",
|
|
120
|
+
"dock size",
|
|
121
|
+
"showbackdrop",
|
|
122
|
+
"target",
|
|
123
|
+
"position",
|
|
124
|
+
"dock",
|
|
125
|
+
"gestures",
|
|
126
|
+
"sticky-sidebar",
|
|
127
|
+
"fixed",
|
|
128
|
+
"hamburger",
|
|
129
|
+
"sidenav",
|
|
130
|
+
"nav",
|
|
131
|
+
"hamburger-menu",
|
|
132
|
+
"side-menu",
|
|
133
|
+
"navigation-bar",
|
|
134
|
+
"sticky",
|
|
135
|
+
"drawer",
|
|
136
|
+
"slidebar",
|
|
137
|
+
"slide",
|
|
138
|
+
"slide-panel",
|
|
139
|
+
"multiple-sidebar",
|
|
140
|
+
"slide-navigation",
|
|
141
|
+
"navigation-drawer",
|
|
142
|
+
"breadcrumb",
|
|
143
|
+
"breadcrumb navigation",
|
|
144
|
+
"breadcrumb trail",
|
|
145
|
+
"ej2 breadcrumb",
|
|
146
|
+
"navigation links",
|
|
147
|
+
"navigational aid",
|
|
148
|
+
"previous page navigation",
|
|
149
|
+
"current page hierarchy",
|
|
150
|
+
"current page location",
|
|
151
|
+
"path of url",
|
|
152
|
+
"trace page location",
|
|
153
|
+
"list of breadcrumb links"
|
|
154
|
+
],
|
|
155
|
+
"license": "SEE LICENSE IN license",
|
|
156
|
+
"main": "./dist/ej2-navigations.umd.min.js",
|
|
157
|
+
"module": "./index.js",
|
|
158
|
+
"name": "@syncfusion/ej2-navigations",
|
|
159
|
+
"repository": {
|
|
160
|
+
"type": "git",
|
|
161
|
+
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
162
|
+
},
|
|
163
|
+
"typings": "index.d.ts",
|
|
164
|
+
"version": "22.2.8-184993",
|
|
165
|
+
"sideEffects": false
|
|
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 {
|
|
@@ -652,9 +651,11 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
652
651
|
if (typeof (value) === 'string') {
|
|
653
652
|
ele.innerHTML = SanitizeHtmlHelper.sanitize(value);
|
|
654
653
|
}
|
|
655
|
-
else if (
|
|
654
|
+
else if (value instanceof (HTMLElement)) {
|
|
656
655
|
ele.appendChild(value);
|
|
657
|
-
|
|
656
|
+
if (this.trgtEle) {
|
|
657
|
+
ele.firstElementChild.style.display = '';
|
|
658
|
+
}
|
|
658
659
|
}
|
|
659
660
|
else {
|
|
660
661
|
templateFn = templateCompiler(value);
|
|
@@ -718,7 +719,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
718
719
|
this.items[parseInt(index.toString(), 10)].content =
|
|
719
720
|
SanitizeHtmlHelper.sanitize(this.items[parseInt(index.toString(), 10)].content);
|
|
720
721
|
}
|
|
721
|
-
itemcnt.appendChild(this.fetchElement(ctn, this.items[parseInt(index.toString(), 10)].content, index
|
|
722
|
+
itemcnt.appendChild(this.fetchElement(ctn, this.items[parseInt(index.toString(), 10)].content, index));
|
|
722
723
|
}
|
|
723
724
|
return itemcnt;
|
|
724
725
|
};
|
|
@@ -752,7 +753,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
752
753
|
expandState.classList.remove(CLS_EXPANDSTATE);
|
|
753
754
|
}
|
|
754
755
|
trgtItemEle.classList.add(CLS_EXPANDSTATE);
|
|
755
|
-
if ((animation.name === 'None')) {
|
|
756
|
+
if ((animation.name === 'None' && animationMode !== 'Enable') || (animationMode === 'Disable')) {
|
|
756
757
|
_this.expandProgress('begin', icon, trgt, trgtItemEle, expandArgs);
|
|
757
758
|
_this.expandProgress('end', icon, trgt, trgtItemEle, expandArgs);
|
|
758
759
|
}
|
|
@@ -764,6 +765,10 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
764
765
|
};
|
|
765
766
|
Accordion.prototype.expandAnimation = function (ef, icn, trgt, trgtItemEle, animate, args) {
|
|
766
767
|
var _this = this;
|
|
768
|
+
if (ef === 'None' && animationMode === 'Enable') {
|
|
769
|
+
ef = 'SlideDown';
|
|
770
|
+
animate.name = 'SlideDown';
|
|
771
|
+
}
|
|
767
772
|
var height;
|
|
768
773
|
this.lastActiveItemId = trgtItemEle.id;
|
|
769
774
|
if (ef === 'SlideDown') {
|
|
@@ -858,7 +863,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
858
863
|
_this.expandedItemsPop(trgtItemEle);
|
|
859
864
|
trgtItemEle.classList.remove(CLS_EXPANDSTATE);
|
|
860
865
|
icon.classList.add(CLS_TOGANIMATE);
|
|
861
|
-
if ((animation.name === 'None')) {
|
|
866
|
+
if ((animation.name === 'None' && animationMode !== 'Enable') || (animationMode === 'Disable')) {
|
|
862
867
|
_this.collapseProgress('begin', icon, trgt, trgtItemEle, expandArgs);
|
|
863
868
|
_this.collapseProgress('end', icon, trgt, trgtItemEle, expandArgs);
|
|
864
869
|
}
|
|
@@ -870,6 +875,10 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
870
875
|
};
|
|
871
876
|
Accordion.prototype.collapseAnimation = function (ef, trgt, trgtItEl, icn, animate, args) {
|
|
872
877
|
var _this = this;
|
|
878
|
+
if (ef === 'None' && animationMode === 'Enable') {
|
|
879
|
+
ef = 'SlideUp';
|
|
880
|
+
animate.name = 'SlideUp';
|
|
881
|
+
}
|
|
873
882
|
var height;
|
|
874
883
|
var trgtHeight;
|
|
875
884
|
var itemHeight;
|
|
@@ -970,7 +979,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
970
979
|
EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'focus', _this.focusIn, _this);
|
|
971
980
|
EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'blur', _this.focusOut, _this);
|
|
972
981
|
_this.expandedIndices = [];
|
|
973
|
-
_this.expandedItemRefresh(
|
|
982
|
+
_this.expandedItemRefresh();
|
|
974
983
|
if (addItem && addItem.expanded) {
|
|
975
984
|
_this.expandItem(true, itemIndex);
|
|
976
985
|
}
|
|
@@ -980,8 +989,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
980
989
|
this.renderReactTemplates();
|
|
981
990
|
}
|
|
982
991
|
};
|
|
983
|
-
|
|
984
|
-
Accordion.prototype.expandedItemRefresh = function (ele) {
|
|
992
|
+
Accordion.prototype.expandedItemRefresh = function () {
|
|
985
993
|
var _this = this;
|
|
986
994
|
var itemEle = this.getItemElements();
|
|
987
995
|
[].slice.call(itemEle).forEach(function (el) {
|
|
@@ -997,8 +1005,12 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
997
1005
|
* @returns {void}.
|
|
998
1006
|
*/
|
|
999
1007
|
Accordion.prototype.removeItem = function (index) {
|
|
1000
|
-
if (this.isReact) {
|
|
1001
|
-
|
|
1008
|
+
if (this.isReact || this.isAngular) {
|
|
1009
|
+
var item = selectAll('.' + CLS_ITEM, this.element)[parseInt(index.toString(), 10)];
|
|
1010
|
+
var header = select('.' + CLS_HEADERCTN, item);
|
|
1011
|
+
var content = select('.' + CLS_CTENT, item);
|
|
1012
|
+
this.clearAccordionTemplate(header, this.dataSource.length > 0 ? 'headerTemplate' : 'header', CLS_HEADERCTN);
|
|
1013
|
+
this.clearAccordionTemplate(content, this.dataSource.length > 0 ? 'itemTemplate' : 'content', CLS_CTENT);
|
|
1002
1014
|
}
|
|
1003
1015
|
var itemEle = this.getItemElements();
|
|
1004
1016
|
var ele = itemEle[parseInt(index.toString(), 10)];
|
|
@@ -1010,7 +1022,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
1010
1022
|
detach(ele);
|
|
1011
1023
|
items.splice(index, 1);
|
|
1012
1024
|
this.expandedIndices = [];
|
|
1013
|
-
this.expandedItemRefresh(
|
|
1025
|
+
this.expandedItemRefresh();
|
|
1014
1026
|
};
|
|
1015
1027
|
/**
|
|
1016
1028
|
* Sets focus to the specified index item header in Accordion.
|
|
@@ -1187,28 +1199,18 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
1187
1199
|
}
|
|
1188
1200
|
};
|
|
1189
1201
|
Accordion.prototype.setTemplate = function (template, toElement, index) {
|
|
1190
|
-
toElement
|
|
1191
|
-
this.templateCompile(toElement, template, index);
|
|
1202
|
+
this.fetchElement(toElement, template, index);
|
|
1192
1203
|
if (this.isReact) {
|
|
1193
1204
|
this.renderReactTemplates();
|
|
1194
1205
|
}
|
|
1195
1206
|
};
|
|
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
1207
|
Accordion.prototype.clearAccordionTemplate = function (templateEle, templateName, className) {
|
|
1206
1208
|
if (this.registeredTemplate && this.registeredTemplate["" + templateName]) {
|
|
1207
1209
|
var registeredTemplates = this.registeredTemplate;
|
|
1208
1210
|
for (var index = 0; index < registeredTemplates["" + templateName].length; index++) {
|
|
1209
1211
|
var registeredItem = registeredTemplates["" + templateName][parseInt(index.toString(), 10)].rootNodes[0];
|
|
1210
|
-
var closestItem = closest(registeredItem
|
|
1211
|
-
if (!isNOU(closestItem) && closestItem === templateEle) {
|
|
1212
|
+
var closestItem = closest(registeredItem, '.' + className);
|
|
1213
|
+
if (!isNOU(closestItem) && closestItem === templateEle || isNOU(registeredItem.parentNode)) {
|
|
1212
1214
|
this.clearTemplate([templateName], [registeredTemplates["" + templateName][parseInt(index.toString(), 10)]]);
|
|
1213
1215
|
break;
|
|
1214
1216
|
}
|
|
@@ -1278,7 +1280,8 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
1278
1280
|
if (property[parseInt(k.toString(), 10)] === 'disabled' && !isNOU(item)) {
|
|
1279
1281
|
this.enableItem(index, !newVal);
|
|
1280
1282
|
}
|
|
1281
|
-
if (property[parseInt(k.toString(), 10)] === 'content'
|
|
1283
|
+
if (property.indexOf('header') < 0 && property[parseInt(k.toString(), 10)] === 'content'
|
|
1284
|
+
&& !isNOU(item) && item.children.length === 2) {
|
|
1282
1285
|
if (typeof newVal === 'function') {
|
|
1283
1286
|
if (this.isAngular || this.isReact) {
|
|
1284
1287
|
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
|
}
|