@syncfusion/ej2-navigations 20.4.52 → 21.1.35
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 +32 -4
- package/README.md +213 -143
- 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 +128 -34
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +127 -33
- 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 +13 -12
- package/src/accordion/accordion-model.d.ts +4 -4
- package/src/accordion/accordion.d.ts +8 -4
- package/src/appbar/appbar-model.d.ts +9 -9
- package/src/appbar/appbar.d.ts +24 -21
- package/src/breadcrumb/breadcrumb-model.d.ts +4 -2
- package/src/breadcrumb/breadcrumb.d.ts +32 -3
- package/src/breadcrumb/breadcrumb.js +32 -0
- package/src/carousel/carousel-model.d.ts +7 -7
- package/src/carousel/carousel.d.ts +24 -20
- package/src/carousel/carousel.js +25 -11
- package/src/common/menu-base.d.ts +13 -2
- package/src/menu/menu.d.ts +5 -1
- package/src/sidebar/sidebar.d.ts +26 -2
- package/src/sidebar/sidebar.js +1 -1
- package/src/tab/tab-model.d.ts +20 -20
- package/src/tab/tab.d.ts +38 -21
- package/src/tab/tab.js +32 -5
- package/src/toolbar/toolbar-model.d.ts +22 -16
- package/src/toolbar/toolbar.d.ts +48 -16
- package/src/toolbar/toolbar.js +10 -4
- package/src/treeview/treeview-model.d.ts +4 -4
- package/src/treeview/treeview.d.ts +32 -4
- package/src/treeview/treeview.js +26 -11
- package/styles/accordion/_bootstrap-dark-definition.scss +0 -1
- package/styles/accordion/_bootstrap-definition.scss +0 -1
- package/styles/accordion/_bootstrap4-definition.scss +0 -1
- package/styles/accordion/_bootstrap5-definition.scss +6 -7
- package/styles/accordion/_fabric-dark-definition.scss +0 -1
- package/styles/accordion/_fabric-definition.scss +0 -1
- package/styles/accordion/_fluent-definition.scss +5 -6
- package/styles/accordion/_fusionnew-definition.scss +0 -1
- package/styles/accordion/_highcontrast-definition.scss +0 -1
- package/styles/accordion/_highcontrast-light-definition.scss +0 -1
- package/styles/accordion/_layout.scss +0 -1
- package/styles/accordion/_material-dark-definition.scss +0 -1
- package/styles/accordion/_material-definition.scss +0 -1
- package/styles/accordion/_tailwind-definition.scss +5 -6
- package/styles/accordion/bootstrap-dark.css +0 -1
- package/styles/accordion/bootstrap.css +0 -1
- package/styles/accordion/bootstrap4.css +0 -1
- package/styles/accordion/bootstrap5-dark.css +3 -4
- package/styles/accordion/bootstrap5.css +3 -4
- package/styles/accordion/fabric-dark.css +0 -1
- package/styles/accordion/fabric.css +0 -1
- package/styles/accordion/fluent-dark.css +3 -4
- package/styles/accordion/fluent.css +3 -4
- package/styles/accordion/highcontrast-light.css +0 -1
- package/styles/accordion/highcontrast.css +0 -1
- package/styles/accordion/material-dark.css +0 -1
- package/styles/accordion/material.css +0 -1
- package/styles/accordion/tailwind-dark.css +3 -4
- package/styles/accordion/tailwind.css +3 -4
- package/styles/appbar/_bootstrap5-definition.scss +2 -2
- package/styles/appbar/_fluent-definition.scss +2 -2
- package/styles/appbar/_layout.scss +3 -0
- package/styles/appbar/_tailwind-definition.scss +2 -2
- package/styles/appbar/bootstrap-dark.css +3 -0
- package/styles/appbar/bootstrap.css +3 -0
- package/styles/appbar/bootstrap4.css +3 -0
- package/styles/appbar/bootstrap5-dark.css +3 -0
- package/styles/appbar/bootstrap5.css +3 -0
- package/styles/appbar/fabric-dark.css +3 -0
- package/styles/appbar/fabric.css +3 -0
- package/styles/appbar/fluent-dark.css +3 -0
- package/styles/appbar/fluent.css +3 -0
- package/styles/appbar/highcontrast-light.css +3 -0
- package/styles/appbar/highcontrast.css +3 -0
- package/styles/appbar/material-dark.css +3 -0
- package/styles/appbar/material.css +3 -0
- package/styles/appbar/tailwind-dark.css +3 -0
- package/styles/appbar/tailwind.css +3 -0
- package/styles/bootstrap-dark.css +669 -938
- package/styles/bootstrap.css +658 -927
- package/styles/bootstrap4.css +724 -993
- package/styles/bootstrap5-dark.css +685 -954
- package/styles/bootstrap5.css +686 -955
- package/styles/breadcrumb/_bootstrap5-definition.scss +2 -2
- package/styles/breadcrumb/_fluent-definition.scss +2 -2
- package/styles/breadcrumb/_layout.scss +2 -2
- package/styles/breadcrumb/_tailwind-definition.scss +2 -2
- package/styles/breadcrumb/_theme.scss +18 -2
- package/styles/carousel/_layout.scss +7 -0
- package/styles/carousel/bootstrap-dark.css +4 -0
- package/styles/carousel/bootstrap.css +4 -0
- package/styles/carousel/bootstrap4.css +4 -0
- package/styles/carousel/bootstrap5-dark.css +4 -0
- package/styles/carousel/bootstrap5.css +4 -0
- package/styles/carousel/fabric-dark.css +4 -0
- package/styles/carousel/fabric.css +4 -0
- package/styles/carousel/fluent-dark.css +4 -0
- package/styles/carousel/fluent.css +4 -0
- package/styles/carousel/highcontrast-light.css +4 -0
- package/styles/carousel/highcontrast.css +4 -0
- package/styles/carousel/material-dark.css +4 -0
- package/styles/carousel/material.css +4 -0
- package/styles/carousel/tailwind-dark.css +4 -0
- package/styles/carousel/tailwind.css +4 -0
- package/styles/context-menu/_bootstrap5-definition.scss +3 -3
- package/styles/context-menu/_fluent-definition.scss +2 -2
- package/styles/context-menu/_tailwind-definition.scss +3 -3
- package/styles/fabric-dark.css +669 -938
- package/styles/fabric.css +669 -938
- package/styles/fluent-dark.css +677 -946
- package/styles/fluent.css +677 -946
- package/styles/h-scroll/_bootstrap-dark-definition.scss +0 -1
- package/styles/h-scroll/_bootstrap-definition.scss +0 -1
- package/styles/h-scroll/_bootstrap4-definition.scss +0 -1
- package/styles/h-scroll/_bootstrap5-definition.scss +0 -1
- package/styles/h-scroll/_fabric-dark-definition.scss +0 -1
- package/styles/h-scroll/_fabric-definition.scss +0 -1
- package/styles/h-scroll/_fluent-definition.scss +0 -1
- package/styles/h-scroll/_fusionnew-definition.scss +0 -1
- package/styles/h-scroll/_highcontrast-definition.scss +0 -1
- package/styles/h-scroll/_highcontrast-light-definition.scss +0 -1
- package/styles/h-scroll/_layout.scss +1 -0
- package/styles/h-scroll/_material-dark-definition.scss +0 -1
- package/styles/h-scroll/_material-definition.scss +0 -1
- package/styles/h-scroll/_tailwind-definition.scss +0 -1
- package/styles/h-scroll/_theme.scss +0 -1
- package/styles/h-scroll/bootstrap-dark.css +1 -1
- package/styles/h-scroll/bootstrap.css +1 -1
- package/styles/h-scroll/bootstrap4.css +1 -1
- package/styles/h-scroll/bootstrap5-dark.css +1 -1
- package/styles/h-scroll/bootstrap5.css +1 -1
- package/styles/h-scroll/fabric-dark.css +1 -1
- package/styles/h-scroll/fabric.css +1 -1
- package/styles/h-scroll/fluent-dark.css +1 -1
- package/styles/h-scroll/fluent.css +1 -1
- package/styles/h-scroll/highcontrast-light.css +1 -1
- package/styles/h-scroll/highcontrast.css +1 -1
- package/styles/h-scroll/material-dark.css +1 -1
- package/styles/h-scroll/material.css +1 -1
- package/styles/h-scroll/tailwind-dark.css +1 -1
- package/styles/h-scroll/tailwind.css +1 -1
- package/styles/highcontrast-light.css +668 -937
- package/styles/highcontrast.css +675 -944
- package/styles/material-dark.css +669 -938
- package/styles/material.css +661 -930
- package/styles/menu/_bootstrap5-definition.scss +2 -2
- package/styles/menu/_layout.scss +1 -1
- package/styles/menu/_tailwind-definition.scss +2 -2
- package/styles/menu/_theme.scss +31 -15
- package/styles/menu/bootstrap-dark.css +7 -7
- package/styles/menu/bootstrap.css +7 -7
- package/styles/menu/bootstrap4.css +10 -10
- package/styles/menu/bootstrap5-dark.css +7 -7
- package/styles/menu/bootstrap5.css +7 -7
- package/styles/menu/fabric-dark.css +7 -7
- package/styles/menu/fabric.css +7 -7
- package/styles/menu/fluent-dark.css +7 -7
- package/styles/menu/fluent.css +7 -7
- package/styles/menu/highcontrast-light.css +7 -7
- package/styles/menu/highcontrast.css +7 -7
- package/styles/menu/icons/_material3.scss +12 -12
- package/styles/menu/material-dark.css +7 -7
- package/styles/menu/material.css +7 -7
- package/styles/menu/tailwind-dark.css +7 -7
- package/styles/menu/tailwind.css +7 -7
- package/styles/pager/_bootstrap5-definition.scss +1 -1
- package/styles/pager/_fusionnew-definition.scss +1 -1
- package/styles/sidebar/_theme.scss +1 -1
- package/styles/tab/_bootstrap-dark-definition.scss +0 -2
- package/styles/tab/_bootstrap-definition.scss +0 -2
- package/styles/tab/_bootstrap4-definition.scss +1 -3
- package/styles/tab/_bootstrap5-definition.scss +12 -14
- package/styles/tab/_fabric-dark-definition.scss +0 -2
- package/styles/tab/_fabric-definition.scss +0 -2
- package/styles/tab/_fluent-definition.scss +4 -6
- package/styles/tab/_fusionnew-definition.scss +2 -4
- package/styles/tab/_highcontrast-definition.scss +0 -2
- package/styles/tab/_highcontrast-light-definition.scss +0 -2
- package/styles/tab/_layout.scss +8 -6
- package/styles/tab/_material-dark-definition.scss +0 -2
- package/styles/tab/_material-definition.scss +0 -2
- package/styles/tab/_tailwind-definition.scss +3 -5
- package/styles/tab/_theme.scss +0 -1
- package/styles/tab/bootstrap-dark.css +5 -2
- package/styles/tab/bootstrap.css +5 -2
- package/styles/tab/bootstrap4.css +12 -9
- package/styles/tab/bootstrap5-dark.css +11 -8
- package/styles/tab/bootstrap5.css +11 -8
- package/styles/tab/fabric-dark.css +7 -4
- package/styles/tab/fabric.css +7 -4
- package/styles/tab/fluent-dark.css +8 -5
- package/styles/tab/fluent.css +8 -5
- package/styles/tab/highcontrast-light.css +10 -7
- package/styles/tab/highcontrast.css +10 -7
- package/styles/tab/material-dark.css +4 -1
- package/styles/tab/material.css +4 -1
- package/styles/tab/tailwind-dark.css +8 -5
- package/styles/tab/tailwind.css +8 -5
- package/styles/tailwind-dark.css +668 -937
- package/styles/tailwind.css +668 -937
- package/styles/toolbar/_bootstrap-dark-definition.scss +13 -41
- package/styles/toolbar/_bootstrap-definition.scss +13 -41
- package/styles/toolbar/_bootstrap4-definition.scss +15 -43
- package/styles/toolbar/_bootstrap5-definition.scss +21 -49
- package/styles/toolbar/_fabric-dark-definition.scss +14 -43
- package/styles/toolbar/_fabric-definition.scss +15 -43
- package/styles/toolbar/_fluent-definition.scss +22 -50
- package/styles/toolbar/_fusionnew-definition.scss +17 -45
- package/styles/toolbar/_highcontrast-definition.scss +15 -43
- package/styles/toolbar/_highcontrast-light-definition.scss +14 -43
- package/styles/toolbar/_layout.scss +684 -977
- package/styles/toolbar/_material-dark-definition.scss +19 -49
- package/styles/toolbar/_material-definition.scss +21 -49
- package/styles/toolbar/_tailwind-definition.scss +21 -49
- package/styles/toolbar/_theme.scss +205 -294
- package/styles/toolbar/bootstrap-dark.css +647 -925
- package/styles/toolbar/bootstrap.css +638 -916
- package/styles/toolbar/bootstrap4.css +657 -935
- package/styles/toolbar/bootstrap5-dark.css +658 -936
- package/styles/toolbar/bootstrap5.css +658 -936
- package/styles/toolbar/fabric-dark.css +645 -923
- package/styles/toolbar/fabric.css +651 -929
- package/styles/toolbar/fluent-dark.css +650 -928
- package/styles/toolbar/fluent.css +650 -928
- package/styles/toolbar/highcontrast-light.css +642 -920
- package/styles/toolbar/highcontrast.css +647 -925
- package/styles/toolbar/material-dark.css +649 -927
- package/styles/toolbar/material.css +646 -924
- package/styles/toolbar/tailwind-dark.css +647 -925
- package/styles/toolbar/tailwind.css +645 -923
- package/styles/treeview/_bootstrap5-definition.scss +5 -5
- package/styles/treeview/_fluent-definition.scss +5 -5
- package/styles/treeview/_layout.scss +8 -4
- package/styles/treeview/_tailwind-definition.scss +5 -5
- package/styles/treeview/_theme.scss +3 -0
- package/GitLeaksReport.json +0 -1
- package/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/styles/accordion/_material3-definition.scss +0 -181
- package/styles/appbar/_material3-definition.scss +0 -8
- package/styles/breadcrumb/_material3-definition.scss +0 -59
- package/styles/carousel/_material3-definition.scss +0 -22
- package/styles/context-menu/_material3-definition.scss +0 -52
- package/styles/h-scroll/_material3-definition.scss +0 -84
- package/styles/menu/_material3-definition.scss +0 -67
- package/styles/pager/_material3-definition.scss +0 -146
- package/styles/sidebar/_material3-definition.scss +0 -6
- package/styles/tab/_material3-definition.scss +0 -658
- package/styles/toolbar/_material3-definition.scss +0 -248
- package/styles/treeview/_material3-definition.scss +0 -120
- package/styles/v-scroll/_material3-definition.scss +0 -49
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 21.1.35
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@19.91.2",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-FnIM7kr9mqhNExCiXgyDSOrszPnGmx8fJN6Ont7C4v5Ct6NB0O3Jwm9X/t6jj8wzB/LIK6YlmNMluAXfBfdCjw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -33,15 +33,16 @@
|
|
|
33
33
|
"/@syncfusion/ej2-pdfviewer",
|
|
34
34
|
"/@syncfusion/ej2-pivotview",
|
|
35
35
|
"/@syncfusion/ej2-react-navigations",
|
|
36
|
+
"/@syncfusion/ej2-ribbon",
|
|
36
37
|
"/@syncfusion/ej2-richtexteditor",
|
|
37
38
|
"/@syncfusion/ej2-schedule",
|
|
38
39
|
"/@syncfusion/ej2-spreadsheet",
|
|
39
40
|
"/@syncfusion/ej2-vue-navigations"
|
|
40
41
|
],
|
|
41
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-
|
|
42
|
-
"_shasum": "
|
|
42
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-navigations/-/ej2-navigations-19.91.2.tgz",
|
|
43
|
+
"_shasum": "61437a55b10750960cf8764651ace17b20b694f3",
|
|
43
44
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
44
|
-
"_where": "/jenkins/workspace/
|
|
45
|
+
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
45
46
|
"author": {
|
|
46
47
|
"name": "Syncfusion Inc."
|
|
47
48
|
},
|
|
@@ -50,12 +51,12 @@
|
|
|
50
51
|
},
|
|
51
52
|
"bundleDependencies": false,
|
|
52
53
|
"dependencies": {
|
|
53
|
-
"@syncfusion/ej2-base": "~
|
|
54
|
-
"@syncfusion/ej2-buttons": "~
|
|
55
|
-
"@syncfusion/ej2-data": "~
|
|
56
|
-
"@syncfusion/ej2-inputs": "~
|
|
57
|
-
"@syncfusion/ej2-lists": "~
|
|
58
|
-
"@syncfusion/ej2-popups": "~
|
|
54
|
+
"@syncfusion/ej2-base": "~21.1.35",
|
|
55
|
+
"@syncfusion/ej2-buttons": "~21.1.35",
|
|
56
|
+
"@syncfusion/ej2-data": "~21.1.35",
|
|
57
|
+
"@syncfusion/ej2-inputs": "~21.1.35",
|
|
58
|
+
"@syncfusion/ej2-lists": "~21.1.35",
|
|
59
|
+
"@syncfusion/ej2-popups": "~21.1.35"
|
|
59
60
|
},
|
|
60
61
|
"deprecated": false,
|
|
61
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",
|
|
@@ -160,6 +161,6 @@
|
|
|
160
161
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
161
162
|
},
|
|
162
163
|
"typings": "index.d.ts",
|
|
163
|
-
"version": "
|
|
164
|
+
"version": "21.1.35",
|
|
164
165
|
"sideEffects": false
|
|
165
166
|
}
|
|
@@ -65,7 +65,7 @@ export interface AccordionItemModel {
|
|
|
65
65
|
* let accordionObj: Accordion = new Accordion( {
|
|
66
66
|
* items: [
|
|
67
67
|
* { header: 'Accordion Header', content: 'Accordion Content' },
|
|
68
|
-
* { header: '<div>Accordion Header</div>', content: '<div>Accordion Content</div' },
|
|
68
|
+
* { header: '<div>Accordion Header</div>', content: '<div>Accordion Content</div>' },
|
|
69
69
|
* { header: '#headerContent', content: '#panelContent' }]
|
|
70
70
|
* });
|
|
71
71
|
* accordionObj.appendTo('#accordion');
|
|
@@ -83,7 +83,7 @@ export interface AccordionItemModel {
|
|
|
83
83
|
* let accordionObj: Accordion = new Accordion( {
|
|
84
84
|
* items: [
|
|
85
85
|
* { header: 'Accordion Header', content: 'Accordion Content' },
|
|
86
|
-
* { header: '<div>Accordion Header</div>', content: '<div>Accordion Content</div' },
|
|
86
|
+
* { header: '<div>Accordion Header</div>', content: '<div>Accordion Content</div>' },
|
|
87
87
|
* { header: '#headerContent', content: '#panelContent' }]
|
|
88
88
|
* });
|
|
89
89
|
* accordionObj.appendTo('#accordion');
|
|
@@ -216,8 +216,8 @@ export interface AccordionModel extends ComponentModel{
|
|
|
216
216
|
/**
|
|
217
217
|
* Specifies the options to expand single or multiple panel at a time.
|
|
218
218
|
* The possible values are:
|
|
219
|
-
*
|
|
220
|
-
*
|
|
219
|
+
* * `Single`: Sets to expand only one Accordion item at a time.
|
|
220
|
+
* * `Multiple`: Sets to expand more than one Accordion item at a time.
|
|
221
221
|
*
|
|
222
222
|
* @default 'Multiple'
|
|
223
223
|
*/
|
|
@@ -4,6 +4,10 @@ import { INotifyPropertyChanged, ChildProperty } from '@syncfusion/ej2-base';
|
|
|
4
4
|
import { AccordionModel, AccordionItemModel, AccordionAnimationSettingsModel, AccordionActionSettingsModel } from './accordion-model';
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the option to expand single or multiple panel at a time.
|
|
7
|
+
* ```props
|
|
8
|
+
* Single :- Only one Accordion item can be expanded at a time.
|
|
9
|
+
* Multiple :- Multiple Accordion items can be expanded simultaneously.
|
|
10
|
+
* ```
|
|
7
11
|
*/
|
|
8
12
|
export declare type ExpandMode = 'Single' | 'Multiple';
|
|
9
13
|
/** An interface that holds options to control the accordion click action. */
|
|
@@ -96,7 +100,7 @@ export declare class AccordionItem extends ChildProperty<AccordionItem> {
|
|
|
96
100
|
* let accordionObj: Accordion = new Accordion( {
|
|
97
101
|
* items: [
|
|
98
102
|
* { header: 'Accordion Header', content: 'Accordion Content' },
|
|
99
|
-
* { header: '<div>Accordion Header</div>', content: '<div>Accordion Content</div' },
|
|
103
|
+
* { header: '<div>Accordion Header</div>', content: '<div>Accordion Content</div>' },
|
|
100
104
|
* { header: '#headerContent', content: '#panelContent' }]
|
|
101
105
|
* });
|
|
102
106
|
* accordionObj.appendTo('#accordion');
|
|
@@ -113,7 +117,7 @@ export declare class AccordionItem extends ChildProperty<AccordionItem> {
|
|
|
113
117
|
* let accordionObj: Accordion = new Accordion( {
|
|
114
118
|
* items: [
|
|
115
119
|
* { header: 'Accordion Header', content: 'Accordion Content' },
|
|
116
|
-
* { header: '<div>Accordion Header</div>', content: '<div>Accordion Content</div' },
|
|
120
|
+
* { header: '<div>Accordion Header</div>', content: '<div>Accordion Content</div>' },
|
|
117
121
|
* { header: '#headerContent', content: '#panelContent' }]
|
|
118
122
|
* });
|
|
119
123
|
* accordionObj.appendTo('#accordion');
|
|
@@ -253,8 +257,8 @@ export declare class Accordion extends Component<HTMLElement> implements INotify
|
|
|
253
257
|
/**
|
|
254
258
|
* Specifies the options to expand single or multiple panel at a time.
|
|
255
259
|
* The possible values are:
|
|
256
|
-
*
|
|
257
|
-
*
|
|
260
|
+
* * `Single`: Sets to expand only one Accordion item at a time.
|
|
261
|
+
* * `Multiple`: Sets to expand more than one Accordion item at a time.
|
|
258
262
|
*
|
|
259
263
|
* @default 'Multiple'
|
|
260
264
|
*/
|
|
@@ -9,9 +9,9 @@ export interface AppBarModel extends ComponentModel{
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Specifies the mode of the AppBar that defines the AppBar height. The possible values for this property are as follows:
|
|
12
|
-
* * Regular
|
|
13
|
-
* * Prominent
|
|
14
|
-
* * Dense
|
|
12
|
+
* * `Regular`: Specifies default height for the AppBar.
|
|
13
|
+
* * `Prominent`: Specifies longer height for the AppBar to show the longer titles and images, or to provide a stronger presence.
|
|
14
|
+
* * `Dense`: Specifies compressed (short) height for the AppBar to accommodate all the app bar content in a denser layout.
|
|
15
15
|
*
|
|
16
16
|
* @default 'Regular'
|
|
17
17
|
*/
|
|
@@ -19,8 +19,8 @@ export interface AppBarModel extends ComponentModel{
|
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Specifies the position of the AppBar. The possible values for this property are as follows:
|
|
22
|
-
* * Top
|
|
23
|
-
* * Bottom
|
|
22
|
+
* * `Top`: Position the AppBar at the top.
|
|
23
|
+
* * `Bottom`: Position the AppBar at the bottom.
|
|
24
24
|
*
|
|
25
25
|
* @default 'Top'
|
|
26
26
|
*/
|
|
@@ -50,10 +50,10 @@ export interface AppBarModel extends ComponentModel{
|
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* Specifies the color mode that defines the color of the AppBar component. The possible values for this property are as follows:
|
|
53
|
-
* * Light
|
|
54
|
-
* * Dark
|
|
55
|
-
* * Primary
|
|
56
|
-
* * Inherit
|
|
53
|
+
* * `Light`: Specifies the AppBar in light color.
|
|
54
|
+
* * `Dark`: Specifies the AppBar in dark color.
|
|
55
|
+
* * `Primary`: Specifies the AppBar in a primary color.
|
|
56
|
+
* * `Inherit`: Inherit color from parent for AppBar. AppBar background and colors are inherited from its parent element.
|
|
57
57
|
*
|
|
58
58
|
* @default 'Light'
|
|
59
59
|
*/
|
package/src/appbar/appbar.d.ts
CHANGED
|
@@ -2,26 +2,29 @@ import { Component, INotifyPropertyChanged, EmitType } from '@syncfusion/ej2-bas
|
|
|
2
2
|
import { AppBarModel } from './appbar-model';
|
|
3
3
|
/**
|
|
4
4
|
* Specifies the height mode of the AppBar component which defines the height of the AppBar.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* ```props
|
|
6
|
+
* Regular :- Specifies default height for the AppBar.
|
|
7
|
+
* Prominent :- Specifies longer height for the AppBar to show the longer titles and images, or to provide a stronger presence.
|
|
8
|
+
* Dense :- Specifies compressed (short) height for the AppBar to accommodate all the app bar content in a denser layout.
|
|
9
|
+
* ```
|
|
9
10
|
*/
|
|
10
11
|
export declare type AppBarMode = 'Regular' | 'Prominent' | 'Dense';
|
|
11
12
|
/**
|
|
12
13
|
* Specifies the position of the AppBar.
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* ```props
|
|
15
|
+
* Top :- Position the AppBar at the top.
|
|
16
|
+
* Bottom :- Position the AppBar at the bottom.
|
|
17
|
+
* ```
|
|
16
18
|
*/
|
|
17
19
|
export declare type AppBarPosition = 'Top' | 'Bottom';
|
|
18
20
|
/**
|
|
19
21
|
* Specifies the color of the AppBar component.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* ```props
|
|
23
|
+
* Light :- Specifies the AppBar in light color.
|
|
24
|
+
* Dark :- Specifies the AppBar in dark color.
|
|
25
|
+
* Primary :- Specifies the AppBar in a primary color.
|
|
26
|
+
* Inherit :- Inherit color from parent for AppBar. AppBar background and colors are inherited from its parent element.
|
|
27
|
+
* ```
|
|
25
28
|
*/
|
|
26
29
|
export declare type AppBarColor = 'Light' | 'Dark' | 'Primary' | 'Inherit';
|
|
27
30
|
/**
|
|
@@ -32,17 +35,17 @@ export declare type AppBarColor = 'Light' | 'Dark' | 'Primary' | 'Inherit';
|
|
|
32
35
|
export declare class AppBar extends Component<HTMLElement> implements INotifyPropertyChanged {
|
|
33
36
|
/**
|
|
34
37
|
* Specifies the mode of the AppBar that defines the AppBar height. The possible values for this property are as follows:
|
|
35
|
-
* * Regular
|
|
36
|
-
* * Prominent
|
|
37
|
-
* * Dense
|
|
38
|
+
* * `Regular`: Specifies default height for the AppBar.
|
|
39
|
+
* * `Prominent`: Specifies longer height for the AppBar to show the longer titles and images, or to provide a stronger presence.
|
|
40
|
+
* * `Dense`: Specifies compressed (short) height for the AppBar to accommodate all the app bar content in a denser layout.
|
|
38
41
|
*
|
|
39
42
|
* @default 'Regular'
|
|
40
43
|
*/
|
|
41
44
|
mode: AppBarMode;
|
|
42
45
|
/**
|
|
43
46
|
* Specifies the position of the AppBar. The possible values for this property are as follows:
|
|
44
|
-
* * Top
|
|
45
|
-
* * Bottom
|
|
47
|
+
* * `Top`: Position the AppBar at the top.
|
|
48
|
+
* * `Bottom`: Position the AppBar at the bottom.
|
|
46
49
|
*
|
|
47
50
|
* @default 'Top'
|
|
48
51
|
*/
|
|
@@ -68,10 +71,10 @@ export declare class AppBar extends Component<HTMLElement> implements INotifyPro
|
|
|
68
71
|
htmlAttributes: Record<string, string>;
|
|
69
72
|
/**
|
|
70
73
|
* Specifies the color mode that defines the color of the AppBar component. The possible values for this property are as follows:
|
|
71
|
-
* * Light
|
|
72
|
-
* * Dark
|
|
73
|
-
* * Primary
|
|
74
|
-
* * Inherit
|
|
74
|
+
* * `Light`: Specifies the AppBar in light color.
|
|
75
|
+
* * `Dark`: Specifies the AppBar in dark color.
|
|
76
|
+
* * `Primary`: Specifies the AppBar in a primary color.
|
|
77
|
+
* * `Inherit`: Inherit color from parent for AppBar. AppBar background and colors are inherited from its parent element.
|
|
75
78
|
*
|
|
76
79
|
* @default 'Light'
|
|
77
80
|
*/
|
|
@@ -80,9 +80,11 @@ export interface BreadcrumbModel extends ComponentModel{
|
|
|
80
80
|
* - Scroll: Shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
|
|
81
81
|
* - None: Shows all the items on a single line.
|
|
82
82
|
*
|
|
83
|
-
* @
|
|
83
|
+
* @isenumeration true
|
|
84
|
+
* @default BreadcrumbOverflowMode.Menu
|
|
85
|
+
* @asptype BreadcrumbOverflowMode
|
|
84
86
|
*/
|
|
85
|
-
overflowMode?: BreadcrumbOverflowMode;
|
|
87
|
+
overflowMode?: string | BreadcrumbOverflowMode;
|
|
86
88
|
|
|
87
89
|
/**
|
|
88
90
|
* Defines class/multiple classes separated by a space in the Breadcrumb element.
|
|
@@ -3,7 +3,34 @@ import { BreadcrumbModel, BreadcrumbItemModel } from './breadcrumb-model';
|
|
|
3
3
|
/**
|
|
4
4
|
* Defines the Breadcrumb overflow modes.
|
|
5
5
|
*/
|
|
6
|
-
export declare
|
|
6
|
+
export declare enum BreadcrumbOverflowMode {
|
|
7
|
+
/**
|
|
8
|
+
* Hidden mode shows the maximum number of items possible in the container space and hides the remaining items.
|
|
9
|
+
* Clicking on a previous item will make the hidden item visible.
|
|
10
|
+
*/
|
|
11
|
+
Hidden = "Hidden",
|
|
12
|
+
/**
|
|
13
|
+
* Collapsed mode shows the first and last Breadcrumb items and hides the remaining items with a collapsed icon.
|
|
14
|
+
* When the collapsed icon is clicked, all items become visible and navigable.
|
|
15
|
+
*/
|
|
16
|
+
Collapsed = "Collapsed",
|
|
17
|
+
/**
|
|
18
|
+
* Menu mode shows the number of Breadcrumb items that can be accommodated within the container space and creates a submenu with the remaining items.
|
|
19
|
+
*/
|
|
20
|
+
Menu = "Menu",
|
|
21
|
+
/**
|
|
22
|
+
* Wrap mode wraps the items to multiple lines when the Breadcrumb’s width exceeds the container space.
|
|
23
|
+
*/
|
|
24
|
+
Wrap = "Wrap",
|
|
25
|
+
/**
|
|
26
|
+
* Scroll mode shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
|
|
27
|
+
*/
|
|
28
|
+
Scroll = "Scroll",
|
|
29
|
+
/**
|
|
30
|
+
* None mode shows all the items in a single line.
|
|
31
|
+
*/
|
|
32
|
+
None = "None"
|
|
33
|
+
}
|
|
7
34
|
export declare class BreadcrumbItem extends ChildProperty<BreadcrumbItem> {
|
|
8
35
|
/**
|
|
9
36
|
* Specifies the text content of the Breadcrumb item.
|
|
@@ -120,9 +147,11 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
|
|
|
120
147
|
* - Scroll: Shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
|
|
121
148
|
* - None: Shows all the items on a single line.
|
|
122
149
|
*
|
|
123
|
-
* @
|
|
150
|
+
* @isenumeration true
|
|
151
|
+
* @default BreadcrumbOverflowMode.Menu
|
|
152
|
+
* @asptype BreadcrumbOverflowMode
|
|
124
153
|
*/
|
|
125
|
-
overflowMode: BreadcrumbOverflowMode;
|
|
154
|
+
overflowMode: string | BreadcrumbOverflowMode;
|
|
126
155
|
/**
|
|
127
156
|
* Defines class/multiple classes separated by a space in the Breadcrumb element.
|
|
128
157
|
*
|
|
@@ -32,6 +32,38 @@ var TABINDEX = 'tabindex';
|
|
|
32
32
|
var DISABLEDCLASS = 'e-disabled';
|
|
33
33
|
var ARIADISABLED = 'aria-disabled';
|
|
34
34
|
var DOT = '.';
|
|
35
|
+
/**
|
|
36
|
+
* Defines the Breadcrumb overflow modes.
|
|
37
|
+
*/
|
|
38
|
+
export var BreadcrumbOverflowMode;
|
|
39
|
+
(function (BreadcrumbOverflowMode) {
|
|
40
|
+
/**
|
|
41
|
+
* Hidden mode shows the maximum number of items possible in the container space and hides the remaining items.
|
|
42
|
+
* Clicking on a previous item will make the hidden item visible.
|
|
43
|
+
*/
|
|
44
|
+
BreadcrumbOverflowMode["Hidden"] = "Hidden";
|
|
45
|
+
/**
|
|
46
|
+
* Collapsed mode shows the first and last Breadcrumb items and hides the remaining items with a collapsed icon.
|
|
47
|
+
* When the collapsed icon is clicked, all items become visible and navigable.
|
|
48
|
+
*/
|
|
49
|
+
BreadcrumbOverflowMode["Collapsed"] = "Collapsed";
|
|
50
|
+
/**
|
|
51
|
+
* Menu mode shows the number of Breadcrumb items that can be accommodated within the container space and creates a submenu with the remaining items.
|
|
52
|
+
*/
|
|
53
|
+
BreadcrumbOverflowMode["Menu"] = "Menu";
|
|
54
|
+
/**
|
|
55
|
+
* Wrap mode wraps the items to multiple lines when the Breadcrumb’s width exceeds the container space.
|
|
56
|
+
*/
|
|
57
|
+
BreadcrumbOverflowMode["Wrap"] = "Wrap";
|
|
58
|
+
/**
|
|
59
|
+
* Scroll mode shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
|
|
60
|
+
*/
|
|
61
|
+
BreadcrumbOverflowMode["Scroll"] = "Scroll";
|
|
62
|
+
/**
|
|
63
|
+
* None mode shows all the items in a single line.
|
|
64
|
+
*/
|
|
65
|
+
BreadcrumbOverflowMode["None"] = "None";
|
|
66
|
+
})(BreadcrumbOverflowMode || (BreadcrumbOverflowMode = {}));
|
|
35
67
|
var BreadcrumbItem = /** @class */ (function (_super) {
|
|
36
68
|
__extends(BreadcrumbItem, _super);
|
|
37
69
|
function BreadcrumbItem() {
|
|
@@ -51,10 +51,10 @@ export interface CarouselModel extends ComponentModel{
|
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* Specifies the type of animation effects. The possible values for this property as follows
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
* * `None`: The carousel item transition happens without animation.
|
|
55
|
+
* * `Slide`: The carousel item transition happens with slide animation.
|
|
56
|
+
* * `Fade`: The Carousel item transition happens with fade animation.
|
|
57
|
+
* * `Custom`: The Carousel item transition happens with custom animation.
|
|
58
58
|
*
|
|
59
59
|
* @default 'Slide'
|
|
60
60
|
*/
|
|
@@ -182,9 +182,9 @@ export interface CarouselModel extends ComponentModel{
|
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* Defines how to show the previous, next and play pause buttons visibility. The possible values for this property as follows
|
|
185
|
-
* * Hidden
|
|
186
|
-
* * Visible
|
|
187
|
-
* * VisibleOnHover
|
|
185
|
+
* * `Hidden`: Navigation buttons are hidden.
|
|
186
|
+
* * `Visible`: Navigation buttons are visible.
|
|
187
|
+
* * `VisibleOnHover`: Navigation buttons are visible only when we hover the carousel.
|
|
188
188
|
*
|
|
189
189
|
* @default 'Visible'
|
|
190
190
|
*/
|
|
@@ -4,28 +4,31 @@ import { BaseEventArgs } from '@syncfusion/ej2-base';
|
|
|
4
4
|
import { CarouselModel, CarouselItemModel } from './carousel-model';
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the direction of previous/next button navigations in carousel.
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* ```props
|
|
8
|
+
* Previous :- To determine the previous direction of carousel item transition.
|
|
9
|
+
* Next :- To determine the next direction of carousel item transition.
|
|
10
|
+
* ```
|
|
10
11
|
*/
|
|
11
12
|
export declare type CarouselSlideDirection = 'Previous' | 'Next';
|
|
12
13
|
/**
|
|
13
14
|
* Specifies the state of navigation buttons displayed in carousel.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* ```props
|
|
16
|
+
* Hidden :- Navigation buttons are hidden.
|
|
17
|
+
* Visible :- Navigation buttons are visible.
|
|
18
|
+
* VisibleOnHover :- Navigation buttons are visible only when we hover the carousel.
|
|
19
|
+
* ```
|
|
18
20
|
*/
|
|
19
21
|
export declare type CarouselButtonVisibility = 'Hidden' | 'Visible' | 'VisibleOnHover';
|
|
20
22
|
/**
|
|
21
23
|
* Specifies the animation effects of carousel slide.
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* ```props
|
|
25
|
+
* None :- The carousel item transition happens without animation.
|
|
26
|
+
* Slide :- The carousel item transition happens with slide animation.
|
|
27
|
+
* Fade :- The Carousel item transition happens with fade animation.
|
|
28
|
+
* Custom :- The Carousel item transition happens with custom animation.
|
|
29
|
+
* ```
|
|
27
30
|
*/
|
|
28
|
-
export declare type CarouselAnimationEffect = 'None' | '
|
|
31
|
+
export declare type CarouselAnimationEffect = 'None' | 'Slide' | 'Fade' | 'Custom';
|
|
29
32
|
/** An interface that holds details when changing the slide. */
|
|
30
33
|
export interface SlideChangingEventArgs extends BaseEventArgs {
|
|
31
34
|
/** Specifies the index of current slide. */
|
|
@@ -101,10 +104,10 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
101
104
|
items: CarouselItemModel[];
|
|
102
105
|
/**
|
|
103
106
|
* Specifies the type of animation effects. The possible values for this property as follows
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
* * `None`: The carousel item transition happens without animation.
|
|
108
|
+
* * `Slide`: The carousel item transition happens with slide animation.
|
|
109
|
+
* * `Fade`: The Carousel item transition happens with fade animation.
|
|
110
|
+
* * `Custom`: The Carousel item transition happens with custom animation.
|
|
108
111
|
*
|
|
109
112
|
* @default 'Slide'
|
|
110
113
|
*/
|
|
@@ -214,9 +217,9 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
214
217
|
showIndicators: boolean;
|
|
215
218
|
/**
|
|
216
219
|
* Defines how to show the previous, next and play pause buttons visibility. The possible values for this property as follows
|
|
217
|
-
* * Hidden
|
|
218
|
-
* * Visible
|
|
219
|
-
* * VisibleOnHover
|
|
220
|
+
* * `Hidden`: Navigation buttons are hidden.
|
|
221
|
+
* * `Visible`: Navigation buttons are visible.
|
|
222
|
+
* * `VisibleOnHover`: Navigation buttons are visible only when we hover the carousel.
|
|
220
223
|
*
|
|
221
224
|
* @default 'Visible'
|
|
222
225
|
*/
|
|
@@ -262,6 +265,7 @@ export declare class Carousel extends Component<HTMLElement> implements INotifyP
|
|
|
262
265
|
private reRenderSlides;
|
|
263
266
|
private initialize;
|
|
264
267
|
private renderSlides;
|
|
268
|
+
private getTranslateX;
|
|
265
269
|
private renderSlide;
|
|
266
270
|
private renderNavigators;
|
|
267
271
|
private renderNavigatorButton;
|
package/src/carousel/carousel.js
CHANGED
|
@@ -130,6 +130,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
130
130
|
};
|
|
131
131
|
Carousel.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
132
132
|
var target;
|
|
133
|
+
var rtlElement;
|
|
133
134
|
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
134
135
|
var prop = _a[_i];
|
|
135
136
|
switch (prop) {
|
|
@@ -166,11 +167,19 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
166
167
|
}
|
|
167
168
|
break;
|
|
168
169
|
case 'enableRtl':
|
|
170
|
+
rtlElement = [].slice.call(this.element.querySelectorAll("." + CLS_PREV_BUTTON + ",\n ." + CLS_NEXT_BUTTON + ", ." + CLS_PLAY_BUTTON));
|
|
171
|
+
rtlElement.push(this.element);
|
|
169
172
|
if (this.enableRtl) {
|
|
170
|
-
addClass(
|
|
173
|
+
addClass(rtlElement, CLS_RTL);
|
|
171
174
|
}
|
|
172
175
|
else {
|
|
173
|
-
removeClass(
|
|
176
|
+
removeClass(rtlElement, CLS_RTL);
|
|
177
|
+
}
|
|
178
|
+
if (this.partialVisible) {
|
|
179
|
+
var itemsContainer = this.element.querySelector("." + CLS_ITEMS);
|
|
180
|
+
var cloneCount = this.loop ? 2 : 0;
|
|
181
|
+
var slideWidth = itemsContainer.firstElementChild.clientWidth;
|
|
182
|
+
itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
|
|
174
183
|
}
|
|
175
184
|
break;
|
|
176
185
|
case 'buttonsVisibility':
|
|
@@ -318,12 +327,17 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
318
327
|
var slideWidth = itemsContainer.firstElementChild.clientWidth;
|
|
319
328
|
var cloneCount = this.loop ? 2 : 0;
|
|
320
329
|
itemsContainer.style.transitionProperty = 'none';
|
|
321
|
-
itemsContainer.style.transform =
|
|
330
|
+
itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
|
|
322
331
|
}
|
|
323
332
|
this.autoSlide();
|
|
324
333
|
this.renderTouchActions();
|
|
325
334
|
this.renderKeyboardActions();
|
|
326
335
|
};
|
|
336
|
+
Carousel.prototype.getTranslateX = function (slideWidth, count) {
|
|
337
|
+
if (count === void 0) { count = 1; }
|
|
338
|
+
return this.enableRtl ? "translateX(" + (slideWidth) * (count) + "px)" :
|
|
339
|
+
"translateX(" + -(slideWidth) * (count) + "px)";
|
|
340
|
+
};
|
|
327
341
|
Carousel.prototype.renderSlide = function (item, itemTemplate, index, container, isClone) {
|
|
328
342
|
if (isClone === void 0) { isClone = false; }
|
|
329
343
|
var itemEle = this.createElement('div', {
|
|
@@ -376,7 +390,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
376
390
|
}
|
|
377
391
|
else {
|
|
378
392
|
var button = this.createElement('button', {
|
|
379
|
-
attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide') }
|
|
393
|
+
attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide'), 'type': 'button' }
|
|
380
394
|
});
|
|
381
395
|
var buttonObj = new Button({
|
|
382
396
|
cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + (direction === 'Previous' ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON),
|
|
@@ -405,7 +419,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
405
419
|
}
|
|
406
420
|
else {
|
|
407
421
|
var playButton = this.createElement('button', {
|
|
408
|
-
attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition') }
|
|
422
|
+
attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'), 'type': 'button' }
|
|
409
423
|
});
|
|
410
424
|
var isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;
|
|
411
425
|
var buttonObj = new Button({
|
|
@@ -449,7 +463,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
449
463
|
append(template, indicatorBar);
|
|
450
464
|
}
|
|
451
465
|
else {
|
|
452
|
-
var indicator = _this.createElement('button', { className: CLS_INDICATOR });
|
|
466
|
+
var indicator = _this.createElement('button', { className: CLS_INDICATOR, attrs: { 'type': 'button' } });
|
|
453
467
|
indicatorBar.appendChild(indicator);
|
|
454
468
|
indicator.appendChild(_this.createElement('div', {
|
|
455
469
|
attrs: {
|
|
@@ -603,17 +617,17 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
603
617
|
container.style.transitionProperty = 'transform';
|
|
604
618
|
if (_this.loop) {
|
|
605
619
|
if (_this.slideChangedEventArgs.currentIndex === 0 && _this.slideChangedEventArgs.slideDirection === 'Next') {
|
|
606
|
-
container.style.transform =
|
|
620
|
+
container.style.transform = _this.getTranslateX(slideWidth, allSlides.length + 2);
|
|
607
621
|
}
|
|
608
622
|
else if (_this.slideChangedEventArgs.currentIndex === _this.slideItems.length - 1 && _this.slideChangedEventArgs.slideDirection === 'Previous') {
|
|
609
|
-
container.style.transform =
|
|
623
|
+
container.style.transform = _this.getTranslateX(slideWidth);
|
|
610
624
|
}
|
|
611
625
|
else {
|
|
612
|
-
container.style.transform =
|
|
626
|
+
container.style.transform = _this.getTranslateX(slideWidth, currentIndex + 2);
|
|
613
627
|
}
|
|
614
628
|
}
|
|
615
629
|
else {
|
|
616
|
-
container.style.transform =
|
|
630
|
+
container.style.transform = _this.getTranslateX(slideWidth, currentIndex);
|
|
617
631
|
}
|
|
618
632
|
}
|
|
619
633
|
if (_this.animationEffect === 'Slide') {
|
|
@@ -656,7 +670,7 @@ var Carousel = /** @class */ (function (_super) {
|
|
|
656
670
|
var container = this.element.querySelector('.' + CLS_ITEMS);
|
|
657
671
|
var slideWidth = this.slideChangedEventArgs.currentSlide.clientWidth;
|
|
658
672
|
container.style.transitionProperty = 'none';
|
|
659
|
-
container.style.transform =
|
|
673
|
+
container.style.transform = this.getTranslateX(slideWidth, this.slideChangedEventArgs.currentIndex + 2);
|
|
660
674
|
}
|
|
661
675
|
addClass([this.slideChangedEventArgs.currentSlide], CLS_ACTIVE);
|
|
662
676
|
removeClass([this.slideChangedEventArgs.previousSlide], CLS_ACTIVE);
|
|
@@ -2,11 +2,22 @@ import { Component, ChildProperty, INotifyPropertyChanged } from '@syncfusion/ej
|
|
|
2
2
|
import { EmitType, BaseEventArgs } from '@syncfusion/ej2-base';
|
|
3
3
|
import { MenuItemModel, MenuBaseModel, FieldSettingsModel, MenuAnimationSettingsModel } from './menu-base-model';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Defines the different types of options available for opening a submenu.
|
|
6
|
+
* ```props
|
|
7
|
+
* Auto - The submenu opens automatically when clicked or hovered over, depending on the 'showItemOnClick' property.
|
|
8
|
+
* Click - The submenu opens when clicked the menu item.
|
|
9
|
+
* Hover - The submenu opens when the user hovers over the menu item with the mouse cursor.
|
|
10
|
+
* ```
|
|
6
11
|
*/
|
|
7
12
|
export declare type MenuOpenType = 'Auto' | 'Click' | 'Hover';
|
|
8
13
|
/**
|
|
9
|
-
*
|
|
14
|
+
* Defines the different types of animation effects available for opening the sub menu.
|
|
15
|
+
* ```props
|
|
16
|
+
* None - The sub menu is opened / closed without any animation effect.
|
|
17
|
+
* SlideDown - The submenu is opened / closed with a slide down effect.
|
|
18
|
+
* ZoomIn - The submenu is opened / closed with a zoom in effect.
|
|
19
|
+
* FadeIn - The sub menu is opened / closed with a fade in effect.
|
|
20
|
+
* ```
|
|
10
21
|
*/
|
|
11
22
|
export declare type MenuEffect = 'None' | 'SlideDown' | 'ZoomIn' | 'FadeIn';
|
|
12
23
|
/**
|
package/src/menu/menu.d.ts
CHANGED
|
@@ -4,7 +4,11 @@ import { MenuBase } from '../common/menu-base';
|
|
|
4
4
|
import { FieldSettingsModel } from '../common/menu-base-model';
|
|
5
5
|
import { MenuModel } from './menu-model';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Defines the different types of orientation option available in the Menu.
|
|
8
|
+
* ```props
|
|
9
|
+
* Horizontal - It renders the menu in a horizontal orientation mode.
|
|
10
|
+
* Vertical - It renders the menu in a vertical orientation mode.
|
|
11
|
+
* ```
|
|
8
12
|
*/
|
|
9
13
|
export declare type Orientation = 'Horizontal' | 'Vertical';
|
|
10
14
|
/**
|