@syncfusion/ej2-navigations 21.2.9 → 22.1.34
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/.eslintrc.json +1 -0
- package/CHANGELOG.md +9 -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 +288 -93
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +292 -94
- 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 +11 -11
- package/src/accordion/accordion-model.d.ts +4 -2
- package/src/accordion/accordion.d.ts +4 -2
- package/src/accordion/accordion.js +1 -1
- package/src/breadcrumb/breadcrumb-model.d.ts +4 -2
- package/src/breadcrumb/breadcrumb.d.ts +4 -2
- package/src/carousel/carousel-model.d.ts +37 -8
- package/src/carousel/carousel.d.ts +69 -6
- package/src/carousel/carousel.js +287 -89
- package/src/common/menu-base-model.d.ts +2 -1
- package/src/common/menu-base.d.ts +2 -1
- package/src/common/menu-base.js +2 -2
- package/src/menu/menu-model.d.ts +3 -2
- package/src/menu/menu.d.ts +2 -1
- package/src/menu/menu.js +1 -1
- package/src/sidebar/sidebar.d.ts +12 -26
- package/src/tab/tab-model.d.ts +3 -2
- package/src/tab/tab.d.ts +3 -2
- package/src/toolbar/toolbar-model.d.ts +3 -1
- package/src/toolbar/toolbar.d.ts +3 -1
- package/src/treeview/treeview-model.d.ts +4 -1
- package/src/treeview/treeview.d.ts +17 -31
- package/src/treeview/treeview.js +1 -1
- package/styles/accordion/_bootstrap-dark-definition.scss +3 -1
- package/styles/accordion/_bootstrap-definition.scss +3 -1
- package/styles/accordion/_bootstrap4-definition.scss +2 -0
- package/styles/accordion/_bootstrap5-definition.scss +3 -1
- package/styles/accordion/_fabric-dark-definition.scss +2 -0
- package/styles/accordion/_fabric-definition.scss +2 -0
- package/styles/accordion/_fluent-definition.scss +2 -0
- package/styles/accordion/_fusionnew-definition.scss +2 -0
- package/styles/accordion/_highcontrast-definition.scss +2 -0
- package/styles/accordion/_highcontrast-light-definition.scss +2 -0
- package/styles/accordion/_layout.scss +9 -0
- package/styles/accordion/_material-dark-definition.scss +2 -0
- package/styles/accordion/_material-definition.scss +2 -0
- package/styles/accordion/_material3-dark-definition.scss +1 -0
- package/styles/accordion/_material3-definition.scss +182 -0
- package/styles/accordion/_tailwind-definition.scss +2 -0
- package/styles/accordion/_theme.scss +9 -0
- package/styles/accordion/bootstrap-dark.css +11 -1
- package/styles/accordion/bootstrap.css +11 -1
- package/styles/accordion/bootstrap4.css +10 -0
- package/styles/accordion/bootstrap5-dark.css +11 -1
- package/styles/accordion/bootstrap5.css +11 -1
- package/styles/accordion/fabric-dark.css +10 -0
- package/styles/accordion/fabric.css +10 -0
- package/styles/accordion/fluent-dark.css +10 -0
- package/styles/accordion/fluent.css +10 -0
- package/styles/accordion/highcontrast-light.css +10 -0
- package/styles/accordion/highcontrast.css +10 -0
- package/styles/accordion/icons/_material3-dark.scss +1 -0
- package/styles/accordion/material-dark.css +10 -0
- package/styles/accordion/material.css +10 -0
- package/styles/accordion/material3-dark.css +596 -0
- package/styles/accordion/material3-dark.scss +5 -0
- package/styles/accordion/material3.css +652 -0
- package/styles/accordion/material3.scss +5 -0
- package/styles/accordion/tailwind-dark.css +10 -0
- package/styles/accordion/tailwind.css +10 -0
- package/styles/appbar/_layout.scss +6 -1
- package/styles/appbar/_material3-dark-definition.scss +1 -0
- package/styles/appbar/_material3-definition.scss +8 -0
- package/styles/appbar/_theme.scss +12 -2
- package/styles/appbar/bootstrap-dark.css +7 -3
- package/styles/appbar/bootstrap.css +7 -3
- package/styles/appbar/bootstrap4.css +7 -3
- package/styles/appbar/bootstrap5-dark.css +7 -3
- package/styles/appbar/bootstrap5.css +7 -3
- package/styles/appbar/fabric-dark.css +7 -3
- package/styles/appbar/fabric.css +7 -3
- package/styles/appbar/fluent-dark.css +7 -3
- package/styles/appbar/fluent.css +7 -3
- package/styles/appbar/highcontrast-light.css +7 -3
- package/styles/appbar/highcontrast.css +7 -3
- package/styles/appbar/material-dark.css +7 -3
- package/styles/appbar/material.css +7 -3
- package/styles/appbar/material3-dark.css +307 -0
- package/styles/appbar/material3-dark.scss +4 -0
- package/styles/appbar/material3.css +363 -0
- package/styles/appbar/material3.scss +4 -0
- package/styles/appbar/tailwind-dark.css +7 -3
- package/styles/appbar/tailwind.css +7 -3
- package/styles/bootstrap-dark.css +185 -126
- package/styles/bootstrap.css +185 -126
- package/styles/bootstrap4.css +183 -124
- package/styles/bootstrap5-dark.css +179 -120
- package/styles/bootstrap5.css +179 -120
- package/styles/breadcrumb/_material3-dark-definition.scss +1 -0
- package/styles/breadcrumb/_material3-definition.scss +60 -0
- package/styles/breadcrumb/_theme.scss +13 -11
- package/styles/breadcrumb/bootstrap-dark.css +9 -9
- package/styles/breadcrumb/bootstrap.css +9 -9
- package/styles/breadcrumb/bootstrap4.css +9 -9
- package/styles/breadcrumb/bootstrap5-dark.css +8 -8
- package/styles/breadcrumb/bootstrap5.css +8 -8
- package/styles/breadcrumb/fabric-dark.css +7 -7
- package/styles/breadcrumb/fabric.css +7 -7
- package/styles/breadcrumb/fluent-dark.css +5 -5
- package/styles/breadcrumb/fluent.css +5 -5
- package/styles/breadcrumb/highcontrast-light.css +7 -7
- package/styles/breadcrumb/highcontrast.css +7 -7
- package/styles/breadcrumb/icons/_material3-dark.scss +1 -0
- package/styles/breadcrumb/icons/_material3.scss +0 -11
- package/styles/breadcrumb/material-dark.css +9 -9
- package/styles/breadcrumb/material.css +9 -9
- package/styles/breadcrumb/material3-dark.css +424 -0
- package/styles/breadcrumb/material3-dark.scss +5 -0
- package/styles/breadcrumb/material3.css +480 -0
- package/styles/breadcrumb/material3.scss +5 -0
- package/styles/breadcrumb/tailwind-dark.css +8 -8
- package/styles/breadcrumb/tailwind.css +8 -8
- package/styles/carousel/_bootstrap-dark-definition.scss +5 -0
- package/styles/carousel/_bootstrap-definition.scss +5 -0
- package/styles/carousel/_bootstrap4-definition.scss +5 -0
- package/styles/carousel/_bootstrap5-definition.scss +5 -0
- package/styles/carousel/_fabric-dark-definition.scss +5 -0
- package/styles/carousel/_fabric-definition.scss +5 -0
- package/styles/carousel/_fluent-definition.scss +5 -0
- package/styles/carousel/_fusionnew-definition.scss +5 -0
- package/styles/carousel/_highcontrast-definition.scss +5 -0
- package/styles/carousel/_highcontrast-light-definition.scss +5 -0
- package/styles/carousel/_layout.scss +96 -67
- package/styles/carousel/_material-dark-definition.scss +5 -0
- package/styles/carousel/_material-definition.scss +5 -0
- package/styles/carousel/_material3-dark-definition.scss +1 -0
- package/styles/carousel/_material3-definition.scss +28 -0
- package/styles/carousel/_tailwind-definition.scss +5 -0
- package/styles/carousel/_theme.scss +49 -20
- package/styles/carousel/bootstrap-dark.css +101 -62
- package/styles/carousel/bootstrap.css +101 -62
- package/styles/carousel/bootstrap4.css +101 -62
- package/styles/carousel/bootstrap5-dark.css +101 -62
- package/styles/carousel/bootstrap5.css +101 -62
- package/styles/carousel/fabric-dark.css +101 -62
- package/styles/carousel/fabric.css +101 -62
- package/styles/carousel/fluent-dark.css +101 -62
- package/styles/carousel/fluent.css +101 -62
- package/styles/carousel/highcontrast-light.css +101 -62
- package/styles/carousel/highcontrast.css +101 -62
- package/styles/carousel/icons/_material3-dark.scss +1 -0
- package/styles/carousel/material-dark.css +101 -62
- package/styles/carousel/material.css +101 -62
- package/styles/carousel/material3-dark.css +359 -0
- package/styles/carousel/material3-dark.scss +6 -0
- package/styles/carousel/material3.css +415 -0
- package/styles/carousel/material3.scss +6 -0
- package/styles/carousel/tailwind-dark.css +101 -62
- package/styles/carousel/tailwind.css +101 -62
- package/styles/context-menu/_layout.scss +2 -2
- package/styles/context-menu/_material3-dark-definition.scss +1 -0
- package/styles/context-menu/_material3-definition.scss +52 -0
- package/styles/context-menu/_theme.scss +6 -1
- package/styles/context-menu/icons/_material3-dark.scss +1 -0
- package/styles/context-menu/material3-dark.css +435 -0
- package/styles/context-menu/material3-dark.scss +8 -0
- package/styles/context-menu/material3.css +491 -0
- package/styles/context-menu/material3.scss +8 -0
- package/styles/fabric-dark.css +186 -127
- package/styles/fabric.css +185 -126
- package/styles/fluent-dark.css +179 -120
- package/styles/fluent.css +179 -120
- package/styles/h-scroll/_material3-dark-definition.scss +1 -0
- package/styles/h-scroll/_material3-definition.scss +83 -0
- package/styles/h-scroll/icons/_material3-dark.scss +1 -0
- package/styles/h-scroll/material3-dark.css +336 -0
- package/styles/h-scroll/material3-dark.scss +5 -0
- package/styles/h-scroll/material3.css +392 -0
- package/styles/h-scroll/material3.scss +5 -0
- package/styles/highcontrast-light.css +178 -119
- package/styles/highcontrast.css +182 -123
- package/styles/material-dark.css +189 -130
- package/styles/material.css +188 -129
- package/styles/material3-dark.css +10343 -0
- package/styles/material3-dark.scss +15 -0
- package/styles/material3.css +10399 -0
- package/styles/material3.scss +15 -0
- package/styles/menu/_layout.scss +7 -0
- package/styles/menu/_material3-dark-definition.scss +1 -0
- package/styles/menu/_material3-definition.scss +67 -0
- package/styles/menu/_theme.scss +5 -2
- package/styles/menu/bootstrap-dark.css +4 -0
- package/styles/menu/bootstrap.css +4 -0
- package/styles/menu/bootstrap4.css +4 -0
- package/styles/menu/bootstrap5-dark.css +4 -0
- package/styles/menu/bootstrap5.css +4 -0
- package/styles/menu/fabric-dark.css +4 -0
- package/styles/menu/fabric.css +4 -0
- package/styles/menu/fluent-dark.css +4 -0
- package/styles/menu/fluent.css +4 -0
- package/styles/menu/highcontrast-light.css +4 -0
- package/styles/menu/highcontrast.css +4 -0
- package/styles/menu/icons/_material3-dark.scss +1 -0
- package/styles/menu/material-dark.css +4 -0
- package/styles/menu/material.css +4 -0
- package/styles/menu/material3-dark.css +1162 -0
- package/styles/menu/material3-dark.scss +9 -0
- package/styles/menu/material3.css +1218 -0
- package/styles/menu/material3.scss +9 -0
- package/styles/menu/tailwind-dark.css +4 -0
- package/styles/menu/tailwind.css +4 -0
- package/styles/pager/_bootstrap-dark-definition.scss +9 -5
- package/styles/pager/_bootstrap-definition.scss +9 -5
- package/styles/pager/_bootstrap4-definition.scss +8 -4
- package/styles/pager/_bootstrap5-definition.scss +4 -0
- package/styles/pager/_fabric-dark-definition.scss +10 -6
- package/styles/pager/_fabric-definition.scss +10 -6
- package/styles/pager/_fluent-definition.scss +8 -4
- package/styles/pager/_fusionnew-definition.scss +4 -0
- package/styles/pager/_highcontrast-definition.scss +8 -4
- package/styles/pager/_highcontrast-light-definition.scss +4 -0
- package/styles/pager/_layout.scss +63 -48
- package/styles/pager/_material-dark-definition.scss +12 -8
- package/styles/pager/_material-definition.scss +11 -7
- package/styles/pager/_material3-dark-definition.scss +1 -0
- package/styles/pager/_material3-definition.scss +150 -0
- package/styles/pager/_tailwind-definition.scss +9 -5
- package/styles/pager/_theme.scss +12 -5
- package/styles/pager/bootstrap-dark.css +15 -43
- package/styles/pager/bootstrap.css +15 -43
- package/styles/pager/bootstrap4.css +14 -42
- package/styles/pager/bootstrap5-dark.css +10 -38
- package/styles/pager/bootstrap5.css +10 -38
- package/styles/pager/fabric-dark.css +17 -45
- package/styles/pager/fabric.css +16 -44
- package/styles/pager/fluent-dark.css +14 -42
- package/styles/pager/fluent.css +14 -42
- package/styles/pager/highcontrast-light.css +10 -38
- package/styles/pager/highcontrast.css +14 -42
- package/styles/pager/icons/_material3-dark.scss +1 -0
- package/styles/pager/icons/_material3.scss +4 -4
- package/styles/pager/material-dark.css +18 -46
- package/styles/pager/material.css +17 -45
- package/styles/pager/material3-dark.css +765 -0
- package/styles/pager/material3-dark.scss +5 -0
- package/styles/pager/material3.css +821 -0
- package/styles/pager/material3.scss +5 -0
- package/styles/pager/tailwind-dark.css +15 -43
- package/styles/pager/tailwind.css +15 -43
- package/styles/sidebar/_material3-dark-definition.scss +1 -0
- package/styles/sidebar/_material3-definition.scss +7 -0
- package/styles/sidebar/material3-dark.css +204 -0
- package/styles/sidebar/material3-dark.scss +4 -0
- package/styles/sidebar/material3.css +260 -0
- package/styles/sidebar/material3.scss +4 -0
- package/styles/tab/_bootstrap-dark-definition.scss +4 -0
- package/styles/tab/_bootstrap-definition.scss +4 -0
- package/styles/tab/_bootstrap4-definition.scss +4 -0
- package/styles/tab/_bootstrap5-definition.scss +4 -0
- package/styles/tab/_fabric-dark-definition.scss +4 -0
- package/styles/tab/_fabric-definition.scss +4 -0
- package/styles/tab/_fluent-definition.scss +4 -0
- package/styles/tab/_fusionnew-definition.scss +4 -0
- package/styles/tab/_highcontrast-definition.scss +4 -0
- package/styles/tab/_highcontrast-light-definition.scss +4 -0
- package/styles/tab/_layout.scss +37 -13
- package/styles/tab/_material-dark-definition.scss +4 -0
- package/styles/tab/_material-definition.scss +4 -0
- package/styles/tab/_material3-dark-definition.scss +1 -0
- package/styles/tab/_material3-definition.scss +661 -0
- package/styles/tab/_tailwind-definition.scss +4 -0
- package/styles/tab/_theme.scss +44 -1
- package/styles/tab/bootstrap-dark.css +30 -7
- package/styles/tab/bootstrap.css +30 -7
- package/styles/tab/bootstrap4.css +30 -7
- package/styles/tab/bootstrap5-dark.css +30 -7
- package/styles/tab/bootstrap5.css +30 -7
- package/styles/tab/fabric-dark.css +30 -7
- package/styles/tab/fabric.css +30 -7
- package/styles/tab/fluent-dark.css +30 -7
- package/styles/tab/fluent.css +30 -7
- package/styles/tab/highcontrast-light.css +30 -7
- package/styles/tab/highcontrast.css +30 -7
- package/styles/tab/icons/_material3-dark.scss +1 -0
- package/styles/tab/material-dark.css +30 -7
- package/styles/tab/material.css +30 -7
- package/styles/tab/material3-dark.css +4109 -0
- package/styles/tab/material3-dark.scss +6 -0
- package/styles/tab/material3.css +4165 -0
- package/styles/tab/material3.scss +6 -0
- package/styles/tab/tailwind-dark.css +29 -6
- package/styles/tab/tailwind.css +29 -6
- package/styles/tailwind-dark.css +185 -126
- package/styles/tailwind.css +185 -126
- package/styles/toolbar/_fabric-dark-definition.scss +3 -3
- package/styles/toolbar/_fabric-definition.scss +3 -3
- package/styles/toolbar/_highcontrast-definition.scss +1 -1
- package/styles/toolbar/_highcontrast-light-definition.scss +1 -1
- package/styles/toolbar/_layout.scss +8 -0
- package/styles/toolbar/_material-dark-definition.scss +3 -3
- package/styles/toolbar/_material-definition.scss +3 -3
- package/styles/toolbar/_material3-dark-definition.scss +1 -0
- package/styles/toolbar/_material3-definition.scss +220 -0
- package/styles/toolbar/_tailwind-definition.scss +3 -3
- package/styles/toolbar/_theme.scss +2 -1
- package/styles/toolbar/bootstrap-dark.css +8 -1
- package/styles/toolbar/bootstrap.css +8 -1
- package/styles/toolbar/bootstrap4.css +8 -1
- package/styles/toolbar/bootstrap5-dark.css +8 -1
- package/styles/toolbar/bootstrap5.css +8 -1
- package/styles/toolbar/fabric-dark.css +10 -3
- package/styles/toolbar/fabric.css +10 -3
- package/styles/toolbar/fluent-dark.css +8 -1
- package/styles/toolbar/fluent.css +8 -1
- package/styles/toolbar/highcontrast-light.css +9 -2
- package/styles/toolbar/highcontrast.css +9 -2
- package/styles/toolbar/icons/_material3-dark.scss +1 -0
- package/styles/toolbar/material-dark.css +10 -3
- package/styles/toolbar/material.css +10 -3
- package/styles/toolbar/material3-dark.css +1145 -0
- package/styles/toolbar/material3-dark.scss +9 -0
- package/styles/toolbar/material3.css +1201 -0
- package/styles/toolbar/material3.scss +9 -0
- package/styles/toolbar/tailwind-dark.css +11 -4
- package/styles/toolbar/tailwind.css +11 -4
- package/styles/treeview/_layout.scss +15 -2
- package/styles/treeview/_material3-dark-definition.scss +1 -0
- package/styles/treeview/_material3-definition.scss +121 -0
- package/styles/treeview/icons/_material3-dark.scss +1 -0
- package/styles/treeview/icons/_material3.scss +1 -1
- package/styles/treeview/material3-dark.css +903 -0
- package/styles/treeview/material3-dark.scss +7 -0
- package/styles/treeview/material3.css +959 -0
- package/styles/treeview/material3.scss +7 -0
- package/styles/v-scroll/_material3-dark-definition.scss +1 -0
- package/styles/v-scroll/_material3-definition.scss +49 -0
- package/styles/v-scroll/icons/_material3-dark.scss +1 -0
- package/styles/v-scroll/material3-dark.css +258 -0
- package/styles/v-scroll/material3-dark.scss +5 -0
- package/styles/v-scroll/material3.css +314 -0
- package/styles/v-scroll/material3.scss +5 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 22.1.34
|
|
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@21.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@21.7.1",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-cpzwfo5GZ5nlKHW65GtUPLJ1t0vVB1/KEmyReuxNoORS3MrcW57dau+1HXdw7sXgjVKOpYj0BZ27LA46SjtKDQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -39,8 +39,8 @@
|
|
|
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-21.7.1.tgz",
|
|
43
|
+
"_shasum": "2a48594a03e3fa8a48b589fa313f46df08298186",
|
|
44
44
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
45
45
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
46
46
|
"author": {
|
|
@@ -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": "~22.1.34",
|
|
55
|
+
"@syncfusion/ej2-buttons": "~22.1.34",
|
|
56
|
+
"@syncfusion/ej2-data": "~22.1.34",
|
|
57
|
+
"@syncfusion/ej2-inputs": "~22.1.34",
|
|
58
|
+
"@syncfusion/ej2-lists": "~22.1.34",
|
|
59
|
+
"@syncfusion/ej2-popups": "~22.1.34"
|
|
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": "22.1.34",
|
|
165
165
|
"sideEffects": false
|
|
166
166
|
}
|
|
@@ -182,15 +182,17 @@ export interface AccordionModel extends ComponentModel{
|
|
|
182
182
|
* Specifies the template option for accordion items.
|
|
183
183
|
*
|
|
184
184
|
* @default null
|
|
185
|
+
* @aspType string
|
|
185
186
|
*/
|
|
186
|
-
itemTemplate?: string;
|
|
187
|
+
itemTemplate?: string | Function;
|
|
187
188
|
|
|
188
189
|
/**
|
|
189
190
|
* Specifies the header title template option for accordion items.
|
|
190
191
|
*
|
|
191
192
|
* @default null
|
|
193
|
+
* @aspType string
|
|
192
194
|
*/
|
|
193
|
-
headerTemplate?: string;
|
|
195
|
+
headerTemplate?: string | Function;
|
|
194
196
|
|
|
195
197
|
/**
|
|
196
198
|
* Specifies the width of the Accordion in pixels/number/percentage. Number value is considered as pixels.
|
|
@@ -228,14 +228,16 @@ export declare class Accordion extends Component<HTMLElement> implements INotify
|
|
|
228
228
|
* Specifies the template option for accordion items.
|
|
229
229
|
*
|
|
230
230
|
* @default null
|
|
231
|
+
* @aspType string
|
|
231
232
|
*/
|
|
232
|
-
itemTemplate: string;
|
|
233
|
+
itemTemplate: string | Function;
|
|
233
234
|
/**
|
|
234
235
|
* Specifies the header title template option for accordion items.
|
|
235
236
|
*
|
|
236
237
|
* @default null
|
|
238
|
+
* @aspType string
|
|
237
239
|
*/
|
|
238
|
-
headerTemplate: string;
|
|
240
|
+
headerTemplate: string | Function;
|
|
239
241
|
/**
|
|
240
242
|
* Specifies the width of the Accordion in pixels/number/percentage. Number value is considered as pixels.
|
|
241
243
|
*
|
|
@@ -274,7 +274,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
274
274
|
Accordion.prototype.templateParser = function (template) {
|
|
275
275
|
if (template) {
|
|
276
276
|
try {
|
|
277
|
-
if (document.querySelectorAll(template).length) {
|
|
277
|
+
if (typeof template !== 'function' && document.querySelectorAll(template).length) {
|
|
278
278
|
return templateCompiler(document.querySelector(template).innerHTML.trim());
|
|
279
279
|
}
|
|
280
280
|
else {
|
|
@@ -97,15 +97,17 @@ export interface BreadcrumbModel extends ComponentModel{
|
|
|
97
97
|
* Specifies the template for Breadcrumb item.
|
|
98
98
|
*
|
|
99
99
|
* @default null
|
|
100
|
+
* @aspType string
|
|
100
101
|
*/
|
|
101
|
-
itemTemplate?: string;
|
|
102
|
+
itemTemplate?: string | Function;
|
|
102
103
|
|
|
103
104
|
/**
|
|
104
105
|
* Specifies the separator template for Breadcrumb.
|
|
105
106
|
*
|
|
106
107
|
* @default '/'
|
|
108
|
+
* @aspType string
|
|
107
109
|
*/
|
|
108
|
-
separatorTemplate?: string;
|
|
110
|
+
separatorTemplate?: string | Function;
|
|
109
111
|
|
|
110
112
|
/**
|
|
111
113
|
* Enable or disable the item's navigation, when set to false, each item navigation will be prevented.
|
|
@@ -162,14 +162,16 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
|
|
|
162
162
|
* Specifies the template for Breadcrumb item.
|
|
163
163
|
*
|
|
164
164
|
* @default null
|
|
165
|
+
* @aspType string
|
|
165
166
|
*/
|
|
166
|
-
itemTemplate: string;
|
|
167
|
+
itemTemplate: string | Function;
|
|
167
168
|
/**
|
|
168
169
|
* Specifies the separator template for Breadcrumb.
|
|
169
170
|
*
|
|
170
171
|
* @default '/'
|
|
172
|
+
* @aspType string
|
|
171
173
|
*/
|
|
172
|
-
separatorTemplate: string;
|
|
174
|
+
separatorTemplate: string | Function;
|
|
173
175
|
/**
|
|
174
176
|
* Enable or disable the item's navigation, when set to false, each item navigation will be prevented.
|
|
175
177
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component, EventHandler, Collection, Property, Event, EmitType, formatUnit, INotifyPropertyChanged, NotifyPropertyChanges } from '@syncfusion/ej2-base';import { ChildProperty, addClass, removeClass, setStyleAttribute, attributes, getUniqueID, compile, getInstance, L10n } from '@syncfusion/ej2-base';import { append, closest, isNullOrUndefined, remove, classList, Touch, SwipeEventArgs, KeyboardEvents, KeyboardEventArgs, BaseEventArgs } from '@syncfusion/ej2-base';import { Button } from '@syncfusion/ej2-buttons';
|
|
2
|
-
import {CarouselAnimationEffect,CarouselButtonVisibility,SlideChangingEventArgs,SlideChangedEventArgs} from "./carousel";
|
|
1
|
+
import { Component, EventHandler, Collection, Property, Event, EmitType, formatUnit, INotifyPropertyChanged, NotifyPropertyChanges, Browser } from '@syncfusion/ej2-base';import { ChildProperty, addClass, removeClass, setStyleAttribute, attributes, getUniqueID, compile, getInstance, L10n } from '@syncfusion/ej2-base';import { append, closest, isNullOrUndefined, remove, classList, Touch, SwipeEventArgs, KeyboardEvents, KeyboardEventArgs, BaseEventArgs } from '@syncfusion/ej2-base';import { Button } from '@syncfusion/ej2-buttons';
|
|
2
|
+
import {CarouselAnimationEffect,CarouselIndicatorsType,CarouselButtonVisibility,CarouselSwipeMode,SlideChangingEventArgs,SlideChangedEventArgs} from "./carousel";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -25,8 +25,9 @@ export interface CarouselItemModel {
|
|
|
25
25
|
* Accepts the template for individual carousel item.
|
|
26
26
|
*
|
|
27
27
|
* @default null
|
|
28
|
+
* @aspType string
|
|
28
29
|
*/
|
|
29
|
-
template?: string;
|
|
30
|
+
template?: string | Function;
|
|
30
31
|
|
|
31
32
|
/**
|
|
32
33
|
* Accepts HTML attributes/custom attributes to add in individual carousel item.
|
|
@@ -64,29 +65,33 @@ export interface CarouselModel extends ComponentModel{
|
|
|
64
65
|
* Accepts the template for previous navigation button.
|
|
65
66
|
*
|
|
66
67
|
* @default null
|
|
68
|
+
* @aspType string
|
|
67
69
|
*/
|
|
68
|
-
previousButtonTemplate?: string;
|
|
70
|
+
previousButtonTemplate?: string | Function;
|
|
69
71
|
|
|
70
72
|
/**
|
|
71
73
|
* Accepts the template for next navigation button.
|
|
72
74
|
*
|
|
73
75
|
* @default null
|
|
76
|
+
* @aspType string
|
|
74
77
|
*/
|
|
75
|
-
nextButtonTemplate?: string;
|
|
78
|
+
nextButtonTemplate?: string | Function;
|
|
76
79
|
|
|
77
80
|
/**
|
|
78
81
|
* Accepts the template for indicator buttons.
|
|
79
82
|
*
|
|
80
83
|
* @default null
|
|
84
|
+
* @aspType string
|
|
81
85
|
*/
|
|
82
|
-
indicatorsTemplate?: string;
|
|
86
|
+
indicatorsTemplate?: string | Function;
|
|
83
87
|
|
|
84
88
|
/**
|
|
85
89
|
* Accepts the template for play/pause button.
|
|
86
90
|
*
|
|
87
91
|
* @default null
|
|
92
|
+
* @aspType string
|
|
88
93
|
*/
|
|
89
|
-
playButtonTemplate?: string;
|
|
94
|
+
playButtonTemplate?: string | Function;
|
|
90
95
|
|
|
91
96
|
/**
|
|
92
97
|
* Accepts single/multiple classes (separated by a space) to be used for carousel customization.
|
|
@@ -107,8 +112,9 @@ export interface CarouselModel extends ComponentModel{
|
|
|
107
112
|
* Specifies the template option for carousel items.
|
|
108
113
|
*
|
|
109
114
|
* @default null
|
|
115
|
+
* @aspType string
|
|
110
116
|
*/
|
|
111
|
-
itemTemplate?: string;
|
|
117
|
+
itemTemplate?: string | Function;
|
|
112
118
|
|
|
113
119
|
/**
|
|
114
120
|
* Specifies index of the current carousel item.
|
|
@@ -180,6 +186,18 @@ export interface CarouselModel extends ComponentModel{
|
|
|
180
186
|
*/
|
|
181
187
|
showIndicators?: boolean;
|
|
182
188
|
|
|
189
|
+
/**
|
|
190
|
+
* Specifies the type of indicators. The available values for this property are:
|
|
191
|
+
*
|
|
192
|
+
* * `Default`: Displays the indicators with a bullet design.
|
|
193
|
+
* * `Dynamic`: Applies a dynamic animation design to the indicators.
|
|
194
|
+
* * `Fraction`: Displays the slides numerically as indicators.
|
|
195
|
+
* * `Progress`: Represents the slides using a progress bar design.
|
|
196
|
+
*
|
|
197
|
+
* @default 'Default'
|
|
198
|
+
*/
|
|
199
|
+
indicatorsType?: CarouselIndicatorsType;
|
|
200
|
+
|
|
183
201
|
/**
|
|
184
202
|
* Defines how to show the previous, next and play pause buttons visibility. The possible values for this property as follows
|
|
185
203
|
* * `Hidden`: Navigation buttons are hidden.
|
|
@@ -199,6 +217,17 @@ export interface CarouselModel extends ComponentModel{
|
|
|
199
217
|
*/
|
|
200
218
|
partialVisible?: boolean;
|
|
201
219
|
|
|
220
|
+
/**
|
|
221
|
+
* Specifies whether the slide transition should occur while performing swiping via touch/mouse.
|
|
222
|
+
* The slide swiping is enabled or disabled using bitwise operators. The swiping is disabled using ‘~’ bitwise operator.
|
|
223
|
+
* * Touch - Enables or disables the swiping action in touch interaction.
|
|
224
|
+
* * Mouse - Enables or disables the swiping action in mouse interaction.
|
|
225
|
+
*
|
|
226
|
+
* @default 'Touch'
|
|
227
|
+
* @aspNumberEnum
|
|
228
|
+
*/
|
|
229
|
+
swipeMode?: CarouselSwipeMode;
|
|
230
|
+
|
|
202
231
|
/**
|
|
203
232
|
* Accepts HTML attributes/custom attributes to add in individual carousel item.
|
|
204
233
|
*
|
|
@@ -29,6 +29,28 @@ export declare type CarouselButtonVisibility = 'Hidden' | 'Visible' | 'VisibleOn
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
export declare type CarouselAnimationEffect = 'None' | 'Slide' | 'Fade' | 'Custom';
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the type of indicators.
|
|
34
|
+
* ```props
|
|
35
|
+
* Default: - Displays the indicators with a bullet design.
|
|
36
|
+
* Dynamic: - Applies a dynamic animation design to the indicators.
|
|
37
|
+
* Fraction: - Displays the slides numerically as indicators.
|
|
38
|
+
* Progress: - Represents the slides using a progress bar design.
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare type CarouselIndicatorsType = 'Default' | 'Dynamic' | 'Fraction' | 'Progress';
|
|
42
|
+
/**
|
|
43
|
+
* Specifies the action (touch & mouse) which enables the slide swiping action in carousel.
|
|
44
|
+
* * Touch - Enables or disables the swiping action in touch interaction.
|
|
45
|
+
* * Mouse - Enables or disables the swiping action in mouse interaction.
|
|
46
|
+
* @aspNumberEnum
|
|
47
|
+
*/
|
|
48
|
+
export declare enum CarouselSwipeMode {
|
|
49
|
+
/** Enables or disables the swiping action in touch interaction. */
|
|
50
|
+
Touch = 1,
|
|
51
|
+
/** Enables or disables the swiping action in mouse interaction. */
|
|
52
|
+
Mouse = 2
|
|
53
|
+
}
|
|
32
54
|
/** An interface that holds details when changing the slide. */
|
|
33
55
|
export interface SlideChangingEventArgs extends BaseEventArgs {
|
|
34
56
|
/** Specifies the index of current slide. */
|
|
@@ -79,8 +101,9 @@ export declare class CarouselItem extends ChildProperty<CarouselItem> {
|
|
|
79
101
|
* Accepts the template for individual carousel item.
|
|
80
102
|
*
|
|
81
103
|
* @default null
|
|
104
|
+
* @aspType string
|
|
82
105
|
*/
|
|
83
|
-
template: string;
|
|
106
|
+
template: string | Function;
|
|
84
107
|
/**
|
|
85
108
|
* Accepts HTML attributes/custom attributes to add in individual carousel item.
|
|
86
109
|
*
|
|
@@ -96,6 +119,11 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
96
119
|
private keyConfigs;
|
|
97
120
|
private slideChangedEventArgs;
|
|
98
121
|
private localeObj;
|
|
122
|
+
private prevPageX;
|
|
123
|
+
private initialTranslate;
|
|
124
|
+
private itemsContainer;
|
|
125
|
+
private isSwipe;
|
|
126
|
+
private timeStampStart;
|
|
99
127
|
/**
|
|
100
128
|
* Allows defining the collection of carousel item to be displayed on the Carousel.
|
|
101
129
|
*
|
|
@@ -116,26 +144,30 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
116
144
|
* Accepts the template for previous navigation button.
|
|
117
145
|
*
|
|
118
146
|
* @default null
|
|
147
|
+
* @aspType string
|
|
119
148
|
*/
|
|
120
|
-
previousButtonTemplate: string;
|
|
149
|
+
previousButtonTemplate: string | Function;
|
|
121
150
|
/**
|
|
122
151
|
* Accepts the template for next navigation button.
|
|
123
152
|
*
|
|
124
153
|
* @default null
|
|
154
|
+
* @aspType string
|
|
125
155
|
*/
|
|
126
|
-
nextButtonTemplate: string;
|
|
156
|
+
nextButtonTemplate: string | Function;
|
|
127
157
|
/**
|
|
128
158
|
* Accepts the template for indicator buttons.
|
|
129
159
|
*
|
|
130
160
|
* @default null
|
|
161
|
+
* @aspType string
|
|
131
162
|
*/
|
|
132
|
-
indicatorsTemplate: string;
|
|
163
|
+
indicatorsTemplate: string | Function;
|
|
133
164
|
/**
|
|
134
165
|
* Accepts the template for play/pause button.
|
|
135
166
|
*
|
|
136
167
|
* @default null
|
|
168
|
+
* @aspType string
|
|
137
169
|
*/
|
|
138
|
-
playButtonTemplate: string;
|
|
170
|
+
playButtonTemplate: string | Function;
|
|
139
171
|
/**
|
|
140
172
|
* Accepts single/multiple classes (separated by a space) to be used for carousel customization.
|
|
141
173
|
*
|
|
@@ -153,8 +185,9 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
153
185
|
* Specifies the template option for carousel items.
|
|
154
186
|
*
|
|
155
187
|
* @default null
|
|
188
|
+
* @aspType string
|
|
156
189
|
*/
|
|
157
|
-
itemTemplate: string;
|
|
190
|
+
itemTemplate: string | Function;
|
|
158
191
|
/**
|
|
159
192
|
* Specifies index of the current carousel item.
|
|
160
193
|
*
|
|
@@ -215,6 +248,17 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
215
248
|
* @default true
|
|
216
249
|
*/
|
|
217
250
|
showIndicators: boolean;
|
|
251
|
+
/**
|
|
252
|
+
* Specifies the type of indicators. The available values for this property are:
|
|
253
|
+
*
|
|
254
|
+
* * `Default`: Displays the indicators with a bullet design.
|
|
255
|
+
* * `Dynamic`: Applies a dynamic animation design to the indicators.
|
|
256
|
+
* * `Fraction`: Displays the slides numerically as indicators.
|
|
257
|
+
* * `Progress`: Represents the slides using a progress bar design.
|
|
258
|
+
*
|
|
259
|
+
* @default 'Default'
|
|
260
|
+
*/
|
|
261
|
+
indicatorsType: CarouselIndicatorsType;
|
|
218
262
|
/**
|
|
219
263
|
* Defines how to show the previous, next and play pause buttons visibility. The possible values for this property as follows
|
|
220
264
|
* * `Hidden`: Navigation buttons are hidden.
|
|
@@ -232,6 +276,16 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
232
276
|
* @default false
|
|
233
277
|
*/
|
|
234
278
|
partialVisible: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* Specifies whether the slide transition should occur while performing swiping via touch/mouse.
|
|
281
|
+
* The slide swiping is enabled or disabled using bitwise operators. The swiping is disabled using ‘~’ bitwise operator.
|
|
282
|
+
* * Touch - Enables or disables the swiping action in touch interaction.
|
|
283
|
+
* * Mouse - Enables or disables the swiping action in mouse interaction.
|
|
284
|
+
*
|
|
285
|
+
* @default 'Touch'
|
|
286
|
+
* @aspNumberEnum
|
|
287
|
+
*/
|
|
288
|
+
swipeMode: CarouselSwipeMode;
|
|
235
289
|
/**
|
|
236
290
|
* Accepts HTML attributes/custom attributes to add in individual carousel item.
|
|
237
291
|
*
|
|
@@ -271,6 +325,7 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
271
325
|
private renderNavigatorButton;
|
|
272
326
|
private renderPlayButton;
|
|
273
327
|
private renderIndicators;
|
|
328
|
+
private renderIndicatorTemplate;
|
|
274
329
|
private renderKeyboardActions;
|
|
275
330
|
private renderTouchActions;
|
|
276
331
|
private applyAnimation;
|
|
@@ -281,6 +336,7 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
281
336
|
private getSlideIndex;
|
|
282
337
|
private setActiveSlide;
|
|
283
338
|
private onTransitionEnd;
|
|
339
|
+
private refreshIndicators;
|
|
284
340
|
private setHtmlAttributes;
|
|
285
341
|
private templateParser;
|
|
286
342
|
private getNavigatorState;
|
|
@@ -294,6 +350,13 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
294
350
|
private onHoverActions;
|
|
295
351
|
private onFocusActions;
|
|
296
352
|
private destroyButtons;
|
|
353
|
+
private getNumOfItems;
|
|
354
|
+
private getTranslateValue;
|
|
355
|
+
private swipeStart;
|
|
356
|
+
private swiping;
|
|
357
|
+
private swipStop;
|
|
358
|
+
private swipeNavigation;
|
|
359
|
+
private swipeModehandlers;
|
|
297
360
|
private wireEvents;
|
|
298
361
|
private unWireEvents;
|
|
299
362
|
/**
|