@syncfusion/ej2-navigations 17.3.9-beta → 17.3.14-96615
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 +244 -0
- package/CHANGELOG.md +898 -800
- package/README.md +163 -163
- 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 +325 -170
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +455 -300
- 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/dist/ts/accordion/accordion.ts +1312 -0
- package/dist/ts/common/h-scroll.ts +459 -0
- package/dist/ts/common/menu-base.ts +2131 -0
- package/dist/ts/common/v-scroll.ts +430 -0
- package/dist/ts/context-menu/context-menu.ts +119 -0
- package/dist/ts/menu/menu.ts +270 -0
- package/dist/ts/sidebar/sidebar.ts +817 -0
- package/dist/ts/tab/tab.ts +1761 -0
- package/dist/ts/toolbar/toolbar.ts +2076 -0
- package/dist/ts/treeview/treeview.ts +5050 -0
- package/helpers/e2e/index.js +3 -3
- package/license +10 -10
- package/package.json +135 -149
- package/src/accordion/accordion-model.d.ts +156 -156
- package/src/accordion/accordion.d.ts +1 -0
- package/src/accordion/accordion.js +40 -41
- package/src/common/h-scroll-model.d.ts +5 -5
- package/src/common/h-scroll.js +19 -20
- package/src/common/menu-base-model.d.ts +157 -157
- package/src/common/menu-base.d.ts +19 -0
- package/src/common/menu-base.js +94 -24
- package/src/common/v-scroll-model.d.ts +5 -5
- package/src/common/v-scroll.js +19 -19
- package/src/context-menu/context-menu-model.d.ts +15 -15
- package/src/context-menu/context-menu.js +19 -19
- package/src/menu/menu-model.d.ts +30 -30
- package/src/menu/menu.js +19 -19
- package/src/sidebar/sidebar-model.d.ts +136 -136
- package/src/sidebar/sidebar.js +19 -19
- package/src/tab/tab-model.d.ts +215 -215
- package/src/tab/tab.d.ts +3 -0
- package/src/tab/tab.js +117 -82
- package/src/toolbar/toolbar-model.d.ts +175 -175
- package/src/toolbar/toolbar.d.ts +1 -0
- package/src/toolbar/toolbar.js +30 -24
- package/src/treeview/treeview-model.d.ts +323 -323
- package/src/treeview/treeview.js +79 -33
- package/styles/accordion/_all.scss +2 -2
- package/styles/accordion/_bootstrap-dark-definition.scss +69 -69
- package/styles/accordion/_bootstrap-definition.scss +76 -76
- package/styles/accordion/_bootstrap4-definition.scss +82 -82
- package/styles/accordion/_fabric-dark-definition.scss +74 -74
- package/styles/accordion/_fabric-definition.scss +78 -78
- package/styles/accordion/_highcontrast-definition.scss +106 -106
- package/styles/accordion/_highcontrast-light-definition.scss +104 -104
- package/styles/accordion/_layout.scss +447 -447
- package/styles/accordion/_material-dark-definition.scss +75 -75
- package/styles/accordion/_material-definition.scss +72 -72
- package/styles/accordion/_theme.scss +479 -479
- package/styles/accordion/icons/_bootstrap-dark.scss +17 -17
- package/styles/accordion/icons/_bootstrap.scss +17 -17
- package/styles/accordion/icons/_bootstrap4.scss +17 -17
- package/styles/accordion/icons/_fabric-dark.scss +17 -17
- package/styles/accordion/icons/_fabric.scss +17 -17
- package/styles/accordion/icons/_highcontrast-light.scss +17 -17
- package/styles/accordion/icons/_highcontrast.scss +17 -17
- package/styles/accordion/icons/_material-dark.scss +17 -17
- package/styles/accordion/icons/_material.scss +17 -17
- package/styles/bootstrap-dark.css +7 -9
- package/styles/bootstrap.css +7 -9
- package/styles/bootstrap4.css +7 -9
- package/styles/bootstrap5-dark.css +0 -0
- package/styles/bootstrap5-dark.scss +0 -0
- package/styles/bootstrap5.css +0 -0
- package/styles/bootstrap5.scss +0 -0
- package/styles/context-menu/_all.scss +2 -2
- package/styles/context-menu/_bootstrap-dark-definition.scss +54 -54
- package/styles/context-menu/_bootstrap-definition.scss +52 -52
- package/styles/context-menu/_bootstrap4-definition.scss +52 -52
- package/styles/context-menu/_fabric-dark-definition.scss +54 -54
- package/styles/context-menu/_fabric-definition.scss +52 -52
- package/styles/context-menu/_highcontrast-definition.scss +52 -52
- package/styles/context-menu/_highcontrast-light-definition.scss +54 -54
- package/styles/context-menu/_layout-mixin.scss +175 -175
- package/styles/context-menu/_layout.scss +70 -70
- package/styles/context-menu/_material-dark-definition.scss +54 -54
- package/styles/context-menu/_material-definition.scss +52 -52
- package/styles/context-menu/_theme-mixin.scss +59 -59
- package/styles/context-menu/_theme.scss +36 -36
- package/styles/context-menu/bootstrap-dark.css +0 -1
- package/styles/context-menu/bootstrap.css +0 -1
- package/styles/context-menu/bootstrap4.css +0 -1
- package/styles/context-menu/fabric-dark.css +0 -1
- package/styles/context-menu/fabric.css +0 -1
- package/styles/context-menu/highcontrast-light.css +0 -1
- package/styles/context-menu/highcontrast.css +0 -1
- package/styles/context-menu/icons/_bootstrap-dark.scss +30 -30
- package/styles/context-menu/icons/_bootstrap.scss +30 -30
- package/styles/context-menu/icons/_bootstrap4.scss +30 -30
- package/styles/context-menu/icons/_fabric-dark.scss +30 -30
- package/styles/context-menu/icons/_fabric.scss +30 -30
- package/styles/context-menu/icons/_highcontrast-light.scss +30 -30
- package/styles/context-menu/icons/_highcontrast.scss +30 -30
- package/styles/context-menu/icons/_material-dark.scss +30 -30
- package/styles/context-menu/icons/_material.scss +30 -30
- package/styles/context-menu/material-dark.css +0 -1
- package/styles/context-menu/material.css +3 -4
- package/styles/fabric-dark.css +7 -9
- package/styles/fabric.css +7 -9
- package/styles/h-scroll/_all.scss +2 -2
- package/styles/h-scroll/_bootstrap-dark-definition.scss +49 -49
- package/styles/h-scroll/_bootstrap-definition.scss +50 -50
- package/styles/h-scroll/_bootstrap4-definition.scss +49 -49
- package/styles/h-scroll/_fabric-dark-definition.scss +50 -50
- package/styles/h-scroll/_fabric-definition.scss +48 -48
- package/styles/h-scroll/_highcontrast-definition.scss +52 -52
- package/styles/h-scroll/_highcontrast-light-definition.scss +54 -54
- package/styles/h-scroll/_layout.scss +198 -198
- package/styles/h-scroll/_material-dark-definition.scss +77 -77
- package/styles/h-scroll/_material-definition.scss +77 -77
- package/styles/h-scroll/_theme.scss +157 -157
- package/styles/h-scroll/icons/_bootstrap-dark.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap4.scss +49 -49
- package/styles/h-scroll/icons/_fabric-dark.scss +49 -49
- package/styles/h-scroll/icons/_fabric.scss +49 -49
- package/styles/h-scroll/icons/_highcontrast-light.scss +49 -49
- package/styles/h-scroll/icons/_highcontrast.scss +49 -49
- package/styles/h-scroll/icons/_material-dark.scss +49 -49
- package/styles/h-scroll/icons/_material.scss +49 -49
- package/styles/highcontrast-light.css +7 -9
- package/styles/highcontrast.css +7 -9
- package/styles/material-dark.css +7 -9
- package/styles/material.css +21 -14
- package/styles/menu/_all.scss +2 -2
- package/styles/menu/_bootstrap-dark-definition.scss +63 -63
- package/styles/menu/_bootstrap-definition.scss +65 -65
- package/styles/menu/_bootstrap4-definition.scss +64 -64
- package/styles/menu/_fabric-dark-definition.scss +63 -63
- package/styles/menu/_fabric-definition.scss +64 -64
- package/styles/menu/_highcontrast-definition.scss +65 -65
- package/styles/menu/_highcontrast-light-definition.scss +61 -61
- package/styles/menu/_layout.scss +638 -638
- package/styles/menu/_material-dark-definition.scss +63 -63
- package/styles/menu/_material-definition.scss +64 -64
- package/styles/menu/_theme.scss +243 -243
- package/styles/menu/bootstrap-dark.css +0 -1
- package/styles/menu/bootstrap.css +0 -1
- package/styles/menu/bootstrap.scss +1 -0
- package/styles/menu/bootstrap4.css +0 -1
- package/styles/menu/fabric-dark.css +0 -1
- package/styles/menu/fabric.css +0 -1
- package/styles/menu/fabric.scss +1 -0
- package/styles/menu/highcontrast-light.css +0 -1
- package/styles/menu/highcontrast.css +0 -1
- package/styles/menu/highcontrast.scss +1 -0
- package/styles/menu/icons/_bootstrap-dark.scss +127 -127
- package/styles/menu/icons/_bootstrap.scss +127 -127
- package/styles/menu/icons/_bootstrap4.scss +127 -127
- package/styles/menu/icons/_fabric-dark.scss +127 -127
- package/styles/menu/icons/_fabric.scss +127 -127
- package/styles/menu/icons/_highcontrast-light.scss +127 -127
- package/styles/menu/icons/_highcontrast.scss +127 -127
- package/styles/menu/icons/_material-dark.scss +127 -127
- package/styles/menu/icons/_material.scss +127 -127
- package/styles/menu/material-dark.css +0 -1
- package/styles/menu/material.css +2 -3
- package/styles/menu/material.scss +1 -0
- package/styles/sidebar/_all.scss +3 -3
- package/styles/sidebar/_bootstrap-dark-definition.scss +4 -4
- package/styles/sidebar/_bootstrap-definition.scss +4 -4
- package/styles/sidebar/_bootstrap4-definition.scss +4 -4
- package/styles/sidebar/_fabric-dark-definition.scss +4 -4
- package/styles/sidebar/_fabric-definition.scss +6 -6
- package/styles/sidebar/_highcontrast-definition.scss +4 -4
- package/styles/sidebar/_highcontrast-light-definition.scss +4 -4
- package/styles/sidebar/_icons.scss +1 -1
- package/styles/sidebar/_material-dark-definition.scss +4 -4
- package/styles/sidebar/_material-definition.scss +6 -6
- package/styles/sidebar/_theme.scss +168 -168
- package/styles/sidebar/bootstrap-dark.css +0 -1
- package/styles/sidebar/bootstrap.css +0 -1
- package/styles/sidebar/bootstrap4.css +0 -1
- package/styles/sidebar/fabric-dark.css +0 -1
- package/styles/sidebar/fabric.css +0 -1
- package/styles/sidebar/highcontrast-light.css +0 -1
- package/styles/sidebar/highcontrast.css +0 -1
- package/styles/sidebar/material-dark.css +0 -1
- package/styles/sidebar/material.css +0 -1
- package/styles/tab/_all.scss +2 -2
- package/styles/tab/_bootstrap-dark-definition.scss +386 -386
- package/styles/tab/_bootstrap-definition.scss +396 -396
- package/styles/tab/_bootstrap4-definition.scss +401 -401
- package/styles/tab/_fabric-dark-definition.scss +394 -394
- package/styles/tab/_fabric-definition.scss +410 -410
- package/styles/tab/_highcontrast-definition.scss +434 -434
- package/styles/tab/_highcontrast-light-definition.scss +423 -423
- package/styles/tab/_icons.scss +43 -43
- package/styles/tab/_layout.scss +3528 -3521
- package/styles/tab/_material-dark-definition.scss +407 -407
- package/styles/tab/_material-definition.scss +416 -416
- package/styles/tab/_theme.scss +1751 -1751
- package/styles/tab/bootstrap-dark.css +7 -2
- package/styles/tab/bootstrap.css +7 -2
- package/styles/tab/bootstrap4.css +7 -2
- package/styles/tab/fabric-dark.css +7 -2
- package/styles/tab/fabric.css +7 -2
- package/styles/tab/highcontrast-light.css +7 -2
- package/styles/tab/highcontrast.css +7 -2
- package/styles/tab/icons/_bootstrap-dark.scss +132 -132
- package/styles/tab/icons/_bootstrap.scss +132 -132
- package/styles/tab/icons/_bootstrap4.scss +132 -132
- package/styles/tab/icons/_fabric-dark.scss +132 -132
- package/styles/tab/icons/_fabric.scss +132 -132
- package/styles/tab/icons/_highcontrast-light.scss +132 -132
- package/styles/tab/icons/_highcontrast.scss +132 -132
- package/styles/tab/icons/_material-dark.scss +132 -132
- package/styles/tab/icons/_material.scss +132 -132
- package/styles/tab/material-dark.css +7 -2
- package/styles/tab/material.css +7 -2
- package/styles/tailwind-dark.css +0 -0
- package/styles/tailwind-dark.scss +0 -0
- package/styles/tailwind.css +0 -0
- package/styles/tailwind.scss +0 -0
- package/styles/toolbar/_all.scss +2 -2
- package/styles/toolbar/_bootstrap-dark-definition.scss +135 -135
- package/styles/toolbar/_bootstrap-definition.scss +134 -134
- package/styles/toolbar/_bootstrap4-definition.scss +139 -139
- package/styles/toolbar/_fabric-dark-definition.scss +155 -155
- package/styles/toolbar/_fabric-definition.scss +139 -139
- package/styles/toolbar/_highcontrast-definition.scss +149 -149
- package/styles/toolbar/_highcontrast-light-definition.scss +164 -164
- package/styles/toolbar/_layout.scss +1460 -1460
- package/styles/toolbar/_material-dark-definition.scss +180 -180
- package/styles/toolbar/_material-definition.scss +164 -164
- package/styles/toolbar/_theme.scss +451 -451
- package/styles/toolbar/bootstrap-dark.css +0 -1
- package/styles/toolbar/bootstrap.css +0 -1
- package/styles/toolbar/bootstrap.scss +1 -0
- package/styles/toolbar/bootstrap4.css +0 -1
- package/styles/toolbar/fabric-dark.css +0 -1
- package/styles/toolbar/fabric.css +0 -1
- package/styles/toolbar/fabric.scss +1 -0
- package/styles/toolbar/highcontrast-light.css +0 -1
- package/styles/toolbar/highcontrast.css +0 -1
- package/styles/toolbar/highcontrast.scss +1 -0
- package/styles/toolbar/icons/_bootstrap-dark.scss +16 -16
- package/styles/toolbar/icons/_bootstrap.scss +16 -16
- package/styles/toolbar/icons/_bootstrap4.scss +16 -16
- package/styles/toolbar/icons/_fabric-dark.scss +16 -16
- package/styles/toolbar/icons/_fabric.scss +16 -16
- package/styles/toolbar/icons/_highcontrast-light.scss +16 -16
- package/styles/toolbar/icons/_highcontrast.scss +16 -16
- package/styles/toolbar/icons/_material-dark.scss +16 -16
- package/styles/toolbar/icons/_material.scss +16 -16
- package/styles/toolbar/material-dark.css +0 -1
- package/styles/toolbar/material.css +0 -1
- package/styles/toolbar/material.scss +1 -0
- package/styles/treeview/_all.scss +2 -2
- package/styles/treeview/_bootstrap-dark-definition.scss +131 -131
- package/styles/treeview/_bootstrap-definition.scss +127 -127
- package/styles/treeview/_bootstrap4-definition.scss +153 -153
- package/styles/treeview/_fabric-dark-definition.scss +130 -130
- package/styles/treeview/_fabric-definition.scss +126 -126
- package/styles/treeview/_highcontrast-definition.scss +132 -132
- package/styles/treeview/_highcontrast-light-definition.scss +137 -137
- package/styles/treeview/_layout.scss +551 -551
- package/styles/treeview/_material-dark-definition.scss +126 -126
- package/styles/treeview/_material-definition.scss +126 -126
- package/styles/treeview/_theme.scss +331 -331
- package/styles/treeview/bootstrap-dark.css +0 -3
- package/styles/treeview/bootstrap.css +0 -3
- package/styles/treeview/bootstrap4.css +0 -3
- package/styles/treeview/fabric-dark.css +0 -3
- package/styles/treeview/fabric.css +0 -3
- package/styles/treeview/highcontrast-light.css +0 -3
- package/styles/treeview/highcontrast.css +0 -3
- package/styles/treeview/icons/_bootstrap-dark.scss +39 -39
- package/styles/treeview/icons/_bootstrap.scss +39 -39
- package/styles/treeview/icons/_bootstrap4.scss +39 -39
- package/styles/treeview/icons/_fabric-dark.scss +43 -43
- package/styles/treeview/icons/_fabric.scss +43 -43
- package/styles/treeview/icons/_highcontrast-light.scss +43 -43
- package/styles/treeview/icons/_highcontrast.scss +43 -43
- package/styles/treeview/icons/_material-dark.scss +43 -43
- package/styles/treeview/icons/_material.scss +43 -43
- package/styles/treeview/material-dark.css +0 -3
- package/styles/treeview/material.css +9 -3
- package/styles/v-scroll/_all.scss +2 -2
- package/styles/v-scroll/_bootstrap-dark-definition.scss +50 -50
- package/styles/v-scroll/_bootstrap-definition.scss +49 -49
- package/styles/v-scroll/_bootstrap4-definition.scss +49 -49
- package/styles/v-scroll/_fabric-dark-definition.scss +51 -51
- package/styles/v-scroll/_fabric-definition.scss +50 -50
- package/styles/v-scroll/_highcontrast-definition.scss +51 -51
- package/styles/v-scroll/_highcontrast-light-definition.scss +52 -52
- package/styles/v-scroll/_layout.scss +162 -162
- package/styles/v-scroll/_material-dark-definition.scss +78 -78
- package/styles/v-scroll/_material-definition.scss +77 -77
- package/styles/v-scroll/_theme.scss +133 -133
- package/styles/v-scroll/icons/_bootstrap-dark.scss +26 -26
- package/styles/v-scroll/icons/_bootstrap.scss +26 -26
- package/styles/v-scroll/icons/_bootstrap4.scss +26 -26
- package/styles/v-scroll/icons/_fabric-dark.scss +26 -26
- package/styles/v-scroll/icons/_fabric.scss +26 -26
- package/styles/v-scroll/icons/_highcontrast-light.scss +26 -26
- package/styles/v-scroll/icons/_highcontrast.scss +26 -26
- package/styles/v-scroll/icons/_material-dark.scss +26 -26
- package/styles/v-scroll/icons/_material.scss +26 -26
- package/tslint.json +111 -0
- package/.gitlab/merge_request_templates/Bug.md +0 -63
- package/.gitlab/merge_request_templates/feature.md +0 -39
package/src/tab/tab-model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Property, Event, EmitType, closest, Collection, Complex, attributes, detach, Instance } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Component, Property, Event, EmitType, closest, Collection, Complex, attributes, detach, Instance } from '@syncfusion/ej2-base';
|
|
2
2
|
import {HeaderPosition,HeightStyles,AddEventArgs,SelectingEventArgs,SelectEventArgs,RemoveEventArgs} from "./tab";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -8,24 +8,24 @@ import {ComponentModel} from '@syncfusion/ej2-base';
|
|
|
8
8
|
export interface TabActionSettingsModel {
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Specifies the animation effect for displaying Tab content.
|
|
12
|
-
* @default 'SlideLeftIn'
|
|
13
|
-
* @aspType string
|
|
14
|
-
* @blazorType string
|
|
15
|
-
*/
|
|
16
|
-
effect?: 'None' | Effect;
|
|
11
|
+
* Specifies the animation effect for displaying Tab content.
|
|
12
|
+
* @default 'SlideLeftIn'
|
|
13
|
+
* @aspType string
|
|
14
|
+
* @blazorType string
|
|
15
|
+
*/
|
|
16
|
+
effect?: 'None' | Effect;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* Specifies the time duration to transform content.
|
|
20
|
-
* @default 600
|
|
21
|
-
*/
|
|
22
|
-
duration?: number;
|
|
19
|
+
* Specifies the time duration to transform content.
|
|
20
|
+
* @default 600
|
|
21
|
+
*/
|
|
22
|
+
duration?: number;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* Specifies easing effect applied while transforming content.
|
|
26
|
-
* @default 'ease'
|
|
27
|
-
*/
|
|
28
|
-
easing?: string;
|
|
25
|
+
* Specifies easing effect applied while transforming content.
|
|
26
|
+
* @default 'ease'
|
|
27
|
+
*/
|
|
28
|
+
easing?: string;
|
|
29
29
|
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -35,16 +35,16 @@ export interface TabActionSettingsModel {
|
|
|
35
35
|
export interface TabAnimationSettingsModel {
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* Specifies the animation to appear while moving to previous Tab content.
|
|
39
|
-
* @default { effect: 'SlideLeftIn', duration: 600, easing: 'ease' }
|
|
40
|
-
*/
|
|
41
|
-
previous?: TabActionSettingsModel;
|
|
38
|
+
* Specifies the animation to appear while moving to previous Tab content.
|
|
39
|
+
* @default { effect: 'SlideLeftIn', duration: 600, easing: 'ease' }
|
|
40
|
+
*/
|
|
41
|
+
previous?: TabActionSettingsModel;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* Specifies the animation to appear while moving to next Tab content.
|
|
45
|
-
* @default { effect: 'SlideRightIn', duration: 600, easing: 'ease' }
|
|
46
|
-
*/
|
|
47
|
-
next?: TabActionSettingsModel;
|
|
44
|
+
* Specifies the animation to appear while moving to next Tab content.
|
|
45
|
+
* @default { effect: 'SlideRightIn', duration: 600, easing: 'ease' }
|
|
46
|
+
*/
|
|
47
|
+
next?: TabActionSettingsModel;
|
|
48
48
|
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -54,27 +54,27 @@ export interface TabAnimationSettingsModel {
|
|
|
54
54
|
export interface HeaderModel {
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* Specifies the display text of the Tab item header.
|
|
58
|
-
* @default ''
|
|
59
|
-
*/
|
|
60
|
-
text?: string | HTMLElement;
|
|
57
|
+
* Specifies the display text of the Tab item header.
|
|
58
|
+
* @default ''
|
|
59
|
+
*/
|
|
60
|
+
text?: string | HTMLElement;
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
* Specifies the icon class that is used to render an icon in the Tab header.
|
|
64
|
-
* @default ''
|
|
65
|
-
*/
|
|
66
|
-
iconCss?: string;
|
|
63
|
+
* Specifies the icon class that is used to render an icon in the Tab header.
|
|
64
|
+
* @default ''
|
|
65
|
+
*/
|
|
66
|
+
iconCss?: string;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Options for positioning the icon in the Tab item header. This property depends on `iconCss` property.
|
|
70
|
-
* The possible values are:
|
|
71
|
-
* - Left: Places the icon to the `left` of the item.
|
|
72
|
-
* - Top: Places the icon on the `top` of the item.
|
|
73
|
-
* - Right: Places the icon to the `right` end of the item.
|
|
74
|
-
* - Bottom: Places the icon at the `bottom` of the item.
|
|
75
|
-
* @default 'left'
|
|
76
|
-
*/
|
|
77
|
-
iconPosition?: string;
|
|
69
|
+
* Options for positioning the icon in the Tab item header. This property depends on `iconCss` property.
|
|
70
|
+
* The possible values are:
|
|
71
|
+
* - Left: Places the icon to the `left` of the item.
|
|
72
|
+
* - Top: Places the icon on the `top` of the item.
|
|
73
|
+
* - Right: Places the icon to the `right` end of the item.
|
|
74
|
+
* - Bottom: Places the icon at the `bottom` of the item.
|
|
75
|
+
* @default 'left'
|
|
76
|
+
*/
|
|
77
|
+
iconPosition?: string;
|
|
78
78
|
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -84,34 +84,34 @@ export interface HeaderModel {
|
|
|
84
84
|
export interface TabItemModel {
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
* The object used for configuring the Tab item header properties.
|
|
88
|
-
* @default {}
|
|
89
|
-
*/
|
|
90
|
-
header?: HeaderModel;
|
|
87
|
+
* The object used for configuring the Tab item header properties.
|
|
88
|
+
* @default {}
|
|
89
|
+
*/
|
|
90
|
+
header?: HeaderModel;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
* Specifies the header text of Tab item.
|
|
94
|
-
* @default null
|
|
95
|
-
*/
|
|
96
|
-
headerTemplate?: string;
|
|
93
|
+
* Specifies the header text of Tab item.
|
|
94
|
+
* @default null
|
|
95
|
+
*/
|
|
96
|
+
headerTemplate?: string;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* Specifies the content of Tab item, that is displayed when concern item header is selected.
|
|
100
|
-
* @default ''
|
|
101
|
-
*/
|
|
102
|
-
content?: string | HTMLElement;
|
|
99
|
+
* Specifies the content of Tab item, that is displayed when concern item header is selected.
|
|
100
|
+
* @default ''
|
|
101
|
+
*/
|
|
102
|
+
content?: string | HTMLElement;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* Sets the CSS classes to the Tab item to customize its styles.
|
|
106
|
-
* @default ''
|
|
107
|
-
*/
|
|
108
|
-
cssClass?: string;
|
|
105
|
+
* Sets the CSS classes to the Tab item to customize its styles.
|
|
106
|
+
* @default ''
|
|
107
|
+
*/
|
|
108
|
+
cssClass?: string;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
* Sets true to disable user interactions of the Tab item.
|
|
112
|
-
* @default false
|
|
113
|
-
*/
|
|
114
|
-
disabled?: boolean;
|
|
111
|
+
* Sets true to disable user interactions of the Tab item.
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
disabled?: boolean;
|
|
115
115
|
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -121,169 +121,169 @@ export interface TabItemModel {
|
|
|
121
121
|
export interface TabModel extends ComponentModel{
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
* An array of object that is used to configure the Tab component.
|
|
125
|
-
* ```typescript
|
|
126
|
-
* let tabObj: Tab = new Tab( {
|
|
127
|
-
* items: [
|
|
128
|
-
* { header: { text: 'TabItem1' }, content: 'Tab Item1 Content' },
|
|
129
|
-
* { header: { text: 'TabItem2' }, content: 'Tab Item2 Content' }
|
|
130
|
-
* ]
|
|
131
|
-
* });
|
|
132
|
-
* tabObj.appendTo('#tab');
|
|
133
|
-
* ```
|
|
134
|
-
* @default []
|
|
135
|
-
*/
|
|
136
|
-
items?: TabItemModel[];
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Specifies the width of the Tab component. Default, Tab width sets based on the width of its parent.
|
|
140
|
-
* @default '100%'
|
|
141
|
-
*/
|
|
142
|
-
width?: string | number;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Specifies the height of the Tab component. By default, Tab height is set based on the height of its parent.
|
|
146
|
-
* To use height property, heightAdjustMode must be set to 'None'.
|
|
147
|
-
* @default 'auto'
|
|
148
|
-
*/
|
|
149
|
-
height?: string | number;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Sets the CSS classes to root element of the Tab that helps to customize component styles.
|
|
153
|
-
* @default ''
|
|
154
|
-
*/
|
|
155
|
-
cssClass?: string;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Specifies the index for activating the current Tab item.
|
|
159
|
-
* ```typescript
|
|
160
|
-
* let tabObj: Tab = new Tab( {
|
|
161
|
-
* selectedItem: 1,
|
|
162
|
-
* items: [
|
|
163
|
-
* { header: { text: 'TabItem1' }, content: 'Tab Item1 Content' },
|
|
164
|
-
* { header: { text: 'TabItem2' }, content: 'Tab Item2 Content' }
|
|
165
|
-
* ]
|
|
166
|
-
* });
|
|
167
|
-
* tabObj.appendTo('#tab');
|
|
168
|
-
* ```
|
|
169
|
-
* @default 0
|
|
170
|
-
*/
|
|
171
|
-
selectedItem?: number;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Specifies the orientation of Tab header.
|
|
175
|
-
* The possible values are:
|
|
176
|
-
* - Top: Places the Tab header on the top.
|
|
177
|
-
* - Bottom: Places the Tab header at the bottom.
|
|
178
|
-
* - Left: Places the Tab header on the left.
|
|
179
|
-
* - Right: Places the Tab header at the right.
|
|
180
|
-
* @default 'Top'
|
|
181
|
-
*/
|
|
182
|
-
headerPlacement?: HeaderPosition;
|
|
124
|
+
* An array of object that is used to configure the Tab component.
|
|
125
|
+
* ```typescript
|
|
126
|
+
* let tabObj: Tab = new Tab( {
|
|
127
|
+
* items: [
|
|
128
|
+
* { header: { text: 'TabItem1' }, content: 'Tab Item1 Content' },
|
|
129
|
+
* { header: { text: 'TabItem2' }, content: 'Tab Item2 Content' }
|
|
130
|
+
* ]
|
|
131
|
+
* });
|
|
132
|
+
* tabObj.appendTo('#tab');
|
|
133
|
+
* ```
|
|
134
|
+
* @default []
|
|
135
|
+
*/
|
|
136
|
+
items?: TabItemModel[];
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Specifies the width of the Tab component. Default, Tab width sets based on the width of its parent.
|
|
140
|
+
* @default '100%'
|
|
141
|
+
*/
|
|
142
|
+
width?: string | number;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Specifies the height of the Tab component. By default, Tab height is set based on the height of its parent.
|
|
146
|
+
* To use height property, heightAdjustMode must be set to 'None'.
|
|
147
|
+
* @default 'auto'
|
|
148
|
+
*/
|
|
149
|
+
height?: string | number;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Sets the CSS classes to root element of the Tab that helps to customize component styles.
|
|
153
|
+
* @default ''
|
|
154
|
+
*/
|
|
155
|
+
cssClass?: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Specifies the index for activating the current Tab item.
|
|
159
|
+
* ```typescript
|
|
160
|
+
* let tabObj: Tab = new Tab( {
|
|
161
|
+
* selectedItem: 1,
|
|
162
|
+
* items: [
|
|
163
|
+
* { header: { text: 'TabItem1' }, content: 'Tab Item1 Content' },
|
|
164
|
+
* { header: { text: 'TabItem2' }, content: 'Tab Item2 Content' }
|
|
165
|
+
* ]
|
|
166
|
+
* });
|
|
167
|
+
* tabObj.appendTo('#tab');
|
|
168
|
+
* ```
|
|
169
|
+
* @default 0
|
|
170
|
+
*/
|
|
171
|
+
selectedItem?: number;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Specifies the orientation of Tab header.
|
|
175
|
+
* The possible values are:
|
|
176
|
+
* - Top: Places the Tab header on the top.
|
|
177
|
+
* - Bottom: Places the Tab header at the bottom.
|
|
178
|
+
* - Left: Places the Tab header on the left.
|
|
179
|
+
* - Right: Places the Tab header at the right.
|
|
180
|
+
* @default 'Top'
|
|
181
|
+
*/
|
|
182
|
+
headerPlacement?: HeaderPosition;
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
|
-
* Specifies the height style for Tab content.
|
|
186
|
-
* The possible values are:
|
|
187
|
-
* - None: Based on the given height property, the content panel height is set.
|
|
188
|
-
* - Auto: Tallest panel height of a given Tab content is set to all the other panels.
|
|
189
|
-
* - Content: Based on the corresponding content height, the content panel height is set.
|
|
190
|
-
* - Fill: Based on the parent height, the content panel height is set.
|
|
191
|
-
* @default 'Content'
|
|
192
|
-
*/
|
|
193
|
-
heightAdjustMode?: HeightStyles;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Specifies the Tab display mode when Tab content exceeds the viewing area.
|
|
197
|
-
* The possible modes are:
|
|
198
|
-
* - Scrollable: All the elements are displayed in a single line with horizontal scrolling enabled.
|
|
199
|
-
* - Popup: Tab container holds the items that can be placed within the available space and rest of the items are moved to the popup.
|
|
200
|
-
* If the popup content overflows the height of the page, the rest of the elements can be viewed by scrolling the popup.
|
|
201
|
-
* @default 'Scrollable'
|
|
202
|
-
*/
|
|
203
|
-
overflowMode?: OverflowMode;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Enable or disable persisting component's state between page reloads.
|
|
207
|
-
* If enabled, following list of states will be persisted.
|
|
208
|
-
* 1. selectedItem
|
|
209
|
-
* @default false
|
|
210
|
-
*/
|
|
211
|
-
enablePersistence?: boolean;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Specifies whether to show the close button for header items to remove the item from the Tab.
|
|
215
|
-
* @default false
|
|
216
|
-
*/
|
|
217
|
-
showCloseButton?: boolean;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Specifies the scrolling distance in scroller.
|
|
221
|
-
* @default null
|
|
222
|
-
*/
|
|
223
|
-
scrollStep?: number;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Specifies the animation configuration settings while showing the content of the Tab.
|
|
227
|
-
* @default
|
|
228
|
-
* { previous: { effect: 'SlideLeftIn', duration: 600, easing: 'ease' },
|
|
229
|
-
* next: { effect: 'SlideRightIn', duration: 600, easing: 'ease' } }
|
|
230
|
-
*/
|
|
231
|
-
animation?: TabAnimationSettingsModel;
|
|
232
|
-
|
|
185
|
+
* Specifies the height style for Tab content.
|
|
186
|
+
* The possible values are:
|
|
187
|
+
* - None: Based on the given height property, the content panel height is set.
|
|
188
|
+
* - Auto: Tallest panel height of a given Tab content is set to all the other panels.
|
|
189
|
+
* - Content: Based on the corresponding content height, the content panel height is set.
|
|
190
|
+
* - Fill: Based on the parent height, the content panel height is set.
|
|
191
|
+
* @default 'Content'
|
|
192
|
+
*/
|
|
193
|
+
heightAdjustMode?: HeightStyles;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Specifies the Tab display mode when Tab content exceeds the viewing area.
|
|
197
|
+
* The possible modes are:
|
|
198
|
+
* - Scrollable: All the elements are displayed in a single line with horizontal scrolling enabled.
|
|
199
|
+
* - Popup: Tab container holds the items that can be placed within the available space and rest of the items are moved to the popup.
|
|
200
|
+
* If the popup content overflows the height of the page, the rest of the elements can be viewed by scrolling the popup.
|
|
201
|
+
* @default 'Scrollable'
|
|
202
|
+
*/
|
|
203
|
+
overflowMode?: OverflowMode;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Enable or disable persisting component's state between page reloads.
|
|
207
|
+
* If enabled, following list of states will be persisted.
|
|
208
|
+
* 1. selectedItem
|
|
209
|
+
* @default false
|
|
210
|
+
*/
|
|
211
|
+
enablePersistence?: boolean;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Specifies whether to show the close button for header items to remove the item from the Tab.
|
|
215
|
+
* @default false
|
|
216
|
+
*/
|
|
217
|
+
showCloseButton?: boolean;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Specifies the scrolling distance in scroller.
|
|
221
|
+
* @default null
|
|
222
|
+
*/
|
|
223
|
+
scrollStep?: number;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Specifies the animation configuration settings while showing the content of the Tab.
|
|
227
|
+
* @default
|
|
228
|
+
* { previous: { effect: 'SlideLeftIn', duration: 600, easing: 'ease' },
|
|
229
|
+
* next: { effect: 'SlideRightIn', duration: 600, easing: 'ease' } }
|
|
230
|
+
*/
|
|
231
|
+
animation?: TabAnimationSettingsModel;
|
|
232
|
+
|
|
233
233
|
/**
|
|
234
|
-
* The event will be fired once the component rendering is completed.
|
|
235
|
-
* @event
|
|
236
|
-
* @blazorProperty 'Created'
|
|
237
|
-
*/
|
|
238
|
-
created?: EmitType<Event>;
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* The event will be fired before adding the item to the Tab.
|
|
242
|
-
* @event
|
|
243
|
-
* @blazorProperty 'Adding'
|
|
244
|
-
*/
|
|
245
|
-
adding?: EmitType<AddEventArgs>;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* The event will be fired after adding the item to the Tab.
|
|
249
|
-
* @event
|
|
250
|
-
* @blazorProperty 'Added'
|
|
251
|
-
*/
|
|
252
|
-
added?: EmitType<AddEventArgs>;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* The event will be fired before the item gets selected.
|
|
256
|
-
* @event
|
|
257
|
-
* @blazorProperty 'Selecting'
|
|
258
|
-
*/
|
|
259
|
-
selecting?: EmitType<SelectingEventArgs>;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* The event will be fired after the item gets selected.
|
|
263
|
-
* @event
|
|
264
|
-
* @blazorProperty 'Selected'
|
|
265
|
-
*/
|
|
266
|
-
selected?: EmitType<SelectEventArgs>;
|
|
234
|
+
* The event will be fired once the component rendering is completed.
|
|
235
|
+
* @event
|
|
236
|
+
* @blazorProperty 'Created'
|
|
237
|
+
*/
|
|
238
|
+
created?: EmitType<Event>;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The event will be fired before adding the item to the Tab.
|
|
242
|
+
* @event
|
|
243
|
+
* @blazorProperty 'Adding'
|
|
244
|
+
*/
|
|
245
|
+
adding?: EmitType<AddEventArgs>;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The event will be fired after adding the item to the Tab.
|
|
249
|
+
* @event
|
|
250
|
+
* @blazorProperty 'Added'
|
|
251
|
+
*/
|
|
252
|
+
added?: EmitType<AddEventArgs>;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The event will be fired before the item gets selected.
|
|
256
|
+
* @event
|
|
257
|
+
* @blazorProperty 'Selecting'
|
|
258
|
+
*/
|
|
259
|
+
selecting?: EmitType<SelectingEventArgs>;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* The event will be fired after the item gets selected.
|
|
263
|
+
* @event
|
|
264
|
+
* @blazorProperty 'Selected'
|
|
265
|
+
*/
|
|
266
|
+
selected?: EmitType<SelectEventArgs>;
|
|
267
267
|
|
|
268
268
|
/**
|
|
269
|
-
* The event will be fired before removing the item from the Tab.
|
|
270
|
-
* @event
|
|
271
|
-
* @blazorProperty 'Removing'
|
|
272
|
-
*/
|
|
273
|
-
removing?: EmitType<RemoveEventArgs>;
|
|
269
|
+
* The event will be fired before removing the item from the Tab.
|
|
270
|
+
* @event
|
|
271
|
+
* @blazorProperty 'Removing'
|
|
272
|
+
*/
|
|
273
|
+
removing?: EmitType<RemoveEventArgs>;
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
|
-
* The event will be fired after removing the item from the Tab.
|
|
277
|
-
* @event
|
|
278
|
-
* @blazorProperty 'Removed'
|
|
279
|
-
*/
|
|
280
|
-
removed?: EmitType<RemoveEventArgs>;
|
|
276
|
+
* The event will be fired after removing the item from the Tab.
|
|
277
|
+
* @event
|
|
278
|
+
* @blazorProperty 'Removed'
|
|
279
|
+
*/
|
|
280
|
+
removed?: EmitType<RemoveEventArgs>;
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
|
-
* The event will be fired when the component gets destroyed.
|
|
284
|
-
* @event
|
|
285
|
-
* @blazorProperty 'Destroyed'
|
|
286
|
-
*/
|
|
287
|
-
destroyed?: EmitType<Event>;
|
|
283
|
+
* The event will be fired when the component gets destroyed.
|
|
284
|
+
* @event
|
|
285
|
+
* @blazorProperty 'Destroyed'
|
|
286
|
+
*/
|
|
287
|
+
destroyed?: EmitType<Event>;
|
|
288
288
|
|
|
289
289
|
}
|
package/src/tab/tab.d.ts
CHANGED
|
@@ -152,6 +152,7 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
152
152
|
private hdrEle;
|
|
153
153
|
private cntEle;
|
|
154
154
|
private tbObj;
|
|
155
|
+
tabId: string;
|
|
155
156
|
private tbItems;
|
|
156
157
|
private tbItem;
|
|
157
158
|
private tbPop;
|
|
@@ -375,6 +376,7 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
375
376
|
private triggerPrevAnimation;
|
|
376
377
|
private triggerAnimation;
|
|
377
378
|
private keyPressed;
|
|
379
|
+
private getTabHeader;
|
|
378
380
|
private getEleIndex;
|
|
379
381
|
private extIndex;
|
|
380
382
|
private expTemplateContent;
|
|
@@ -408,6 +410,7 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
408
410
|
private refreshItemVisibility;
|
|
409
411
|
private hoverHandler;
|
|
410
412
|
private evalOnPropertyChangeItems;
|
|
413
|
+
private resetBlazorTemplates;
|
|
411
414
|
/**
|
|
412
415
|
* Enables or disables the specified Tab item. On passing value as `false`, the item will be disabled.
|
|
413
416
|
* @param {number} index - Index value of target Tab item.
|