@syncfusion/ej2-layouts 24.2.4 → 25.1.35-579988
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 +13 -3
- package/dist/ej2-layouts.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js.map +1 -1
- package/dist/es6/ej2-layouts.es2015.js +374 -4
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +400 -4
- package/dist/es6/ej2-layouts.es5.js.map +1 -1
- package/dist/global/ej2-layouts.min.js +2 -2
- package/dist/global/ej2-layouts.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/splitter/splitter.js +6 -2
- package/src/timeline/index.d.ts +3 -0
- package/src/timeline/index.js +2 -0
- package/src/timeline/timeline-model.d.ts +140 -0
- package/src/timeline/timeline.d.ts +236 -0
- package/src/timeline/timeline.js +392 -0
- package/styles/avatar/_bds-definition.scss +32 -0
- package/styles/bootstrap-dark.css +239 -0
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +239 -0
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +239 -0
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +239 -0
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +239 -0
- package/styles/bootstrap5.scss +1 -0
- package/styles/card/_bds-definition.scss +123 -0
- package/styles/card/_layout.scss +2 -2
- package/styles/card/_theme.scss +24 -4
- package/styles/card/fabric.css +2 -2
- package/styles/card/highcontrast.css +2 -2
- package/styles/card/material3-dark.css +4 -4
- package/styles/card/material3.css +4 -4
- package/styles/dashboard-layout/_bds-definition.scss +109 -0
- package/styles/dashboard-layout/icons/_bds.scss +80 -0
- package/styles/fabric-dark.css +239 -0
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +241 -2
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +239 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +239 -0
- package/styles/fluent.scss +1 -0
- package/styles/highcontrast-light.css +239 -0
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +241 -2
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.css +239 -0
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +239 -0
- package/styles/material.scss +1 -0
- package/styles/material3-dark.css +243 -4
- package/styles/material3-dark.scss +1 -0
- package/styles/material3.css +243 -4
- package/styles/material3.scss +1 -0
- package/styles/splitter/_bds-definition.scss +31 -0
- package/styles/splitter/icons/_bds.scss +39 -0
- package/styles/tailwind-dark.css +239 -0
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +239 -0
- package/styles/tailwind.scss +1 -0
- package/styles/timeline/_all.scss +2 -0
- package/styles/timeline/_bds-definition.scss +18 -0
- package/styles/timeline/_bootstrap-dark-definition.scss +18 -0
- package/styles/timeline/_bootstrap-definition.scss +18 -0
- package/styles/timeline/_bootstrap4-definition.scss +18 -0
- package/styles/timeline/_bootstrap5-dark-definition.scss +1 -0
- package/styles/timeline/_bootstrap5-definition.scss +18 -0
- package/styles/timeline/_fabric-dark-definition.scss +18 -0
- package/styles/timeline/_fabric-definition.scss +18 -0
- package/styles/timeline/_fluent-dark-definition.scss +1 -0
- package/styles/timeline/_fluent-definition.scss +18 -0
- package/styles/timeline/_fusionnew-definition.scss +18 -0
- package/styles/timeline/_highcontrast-definition.scss +18 -0
- package/styles/timeline/_highcontrast-light-definition.scss +18 -0
- package/styles/timeline/_layout.scss +273 -0
- package/styles/timeline/_material-dark-definition.scss +18 -0
- package/styles/timeline/_material-definition.scss +18 -0
- package/styles/timeline/_material3-dark-definition.scss +1 -0
- package/styles/timeline/_material3-definition.scss +18 -0
- package/styles/timeline/_tailwind-dark-definition.scss +1 -0
- package/styles/timeline/_tailwind-definition.scss +18 -0
- package/styles/timeline/_theme.scss +31 -0
- package/styles/timeline/bootstrap-dark.css +238 -0
- package/styles/timeline/bootstrap-dark.scss +3 -0
- package/styles/timeline/bootstrap.css +238 -0
- package/styles/timeline/bootstrap.scss +3 -0
- package/styles/timeline/bootstrap4.css +238 -0
- package/styles/timeline/bootstrap4.scss +3 -0
- package/styles/timeline/bootstrap5-dark.css +238 -0
- package/styles/timeline/bootstrap5-dark.scss +3 -0
- package/styles/timeline/bootstrap5.css +238 -0
- package/styles/timeline/bootstrap5.scss +3 -0
- package/styles/timeline/fabric-dark.css +238 -0
- package/styles/timeline/fabric-dark.scss +3 -0
- package/styles/timeline/fabric.css +238 -0
- package/styles/timeline/fabric.scss +3 -0
- package/styles/timeline/fluent-dark.css +238 -0
- package/styles/timeline/fluent-dark.scss +3 -0
- package/styles/timeline/fluent.css +238 -0
- package/styles/timeline/fluent.scss +3 -0
- package/styles/timeline/highcontrast-light.css +238 -0
- package/styles/timeline/highcontrast-light.scss +3 -0
- package/styles/timeline/highcontrast.css +238 -0
- package/styles/timeline/highcontrast.scss +3 -0
- package/styles/timeline/material-dark.css +238 -0
- package/styles/timeline/material-dark.scss +3 -0
- package/styles/timeline/material.css +238 -0
- package/styles/timeline/material.scss +3 -0
- package/styles/timeline/material3-dark.css +293 -0
- package/styles/timeline/material3-dark.scss +4 -0
- package/styles/timeline/material3.css +349 -0
- package/styles/timeline/material3.scss +4 -0
- package/styles/timeline/tailwind-dark.css +238 -0
- package/styles/timeline/tailwind-dark.scss +3 -0
- package/styles/timeline/tailwind.css +238 -0
- package/styles/timeline/tailwind.scss +3 -0
- package/timeline.d.ts +4 -0
- package/timeline.js +4 -0
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -41
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -27
package/dist/global/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* filename: index.d.ts
|
3
|
-
* version :
|
3
|
+
* version : 25.1.35
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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-layouts@*",
|
3
|
-
"_id": "@syncfusion/ej2-layouts@
|
3
|
+
"_id": "@syncfusion/ej2-layouts@21.4.6",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-96UV5ZhohGA36l2mxHRcY2OsQmP3DYDyiMfIHcs5cCuviwtEJ2vGBLR2zQ3JZymru9R+8/0kQP0Fgl8HroudNA==",
|
6
6
|
"_location": "/@syncfusion/ej2-layouts",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -26,16 +26,16 @@
|
|
26
26
|
"/@syncfusion/ej2-react-layouts",
|
27
27
|
"/@syncfusion/ej2-vue-layouts"
|
28
28
|
],
|
29
|
-
"_resolved": "https://nexus.
|
30
|
-
"_shasum": "
|
29
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-layouts/-/ej2-layouts-21.4.6.tgz",
|
30
|
+
"_shasum": "740c89495ed2a49c88748c6cb6f1e14f56ebae8c",
|
31
31
|
"_spec": "@syncfusion/ej2-layouts@*",
|
32
|
-
"_where": "/jenkins/workspace/elease-
|
32
|
+
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
33
33
|
"author": {
|
34
34
|
"name": "Syncfusion Inc."
|
35
35
|
},
|
36
36
|
"bundleDependencies": false,
|
37
37
|
"dependencies": {
|
38
|
-
"@syncfusion/ej2-base": "
|
38
|
+
"@syncfusion/ej2-base": "25.1.35-579988"
|
39
39
|
},
|
40
40
|
"deprecated": false,
|
41
41
|
"description": "A package of Essential JS 2 layout pure CSS components such as card and avatar. The card is used as small container to show content in specific structure, whereas the avatars are icons, initials or figures representing particular person.",
|
@@ -75,7 +75,7 @@
|
|
75
75
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/layouts"
|
76
76
|
},
|
77
77
|
"typings": "index.d.ts",
|
78
|
-
"version": "
|
78
|
+
"version": "25.1.35-579988",
|
79
79
|
"sideEffects": false,
|
80
80
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
81
81
|
}
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
package/src/splitter/splitter.js
CHANGED
@@ -254,7 +254,9 @@ var Splitter = /** @class */ (function (_super) {
|
|
254
254
|
- staticPaneWidth - (this.border * 2);
|
255
255
|
var avgDiffWidth = flexPaneWidth / flexPaneIndexes.length;
|
256
256
|
for (var j = 0; j < flexPaneIndexes.length; j++) {
|
257
|
-
this.allPanes[flexPaneIndexes[j]].style.flexBasis
|
257
|
+
if (this.allPanes[flexPaneIndexes[j]].style.flexBasis !== '') {
|
258
|
+
this.allPanes[flexPaneIndexes[j]].style.flexBasis = avgDiffWidth + 'px';
|
259
|
+
}
|
258
260
|
}
|
259
261
|
this.allPanes[index].classList.add(STATIC_PANE);
|
260
262
|
};
|
@@ -1028,7 +1030,9 @@ var Splitter = /** @class */ (function (_super) {
|
|
1028
1030
|
if (paneCount - 1 === i) {
|
1029
1031
|
var staticPaneCount = this.element.querySelectorAll('.' + STATIC_PANE).length;
|
1030
1032
|
if (staticPaneCount === paneCount) {
|
1031
|
-
|
1033
|
+
if (this.allPanes[i].style.flexBasis === '') {
|
1034
|
+
removeClass([this.allPanes[i]], STATIC_PANE);
|
1035
|
+
}
|
1032
1036
|
}
|
1033
1037
|
}
|
1034
1038
|
}
|
@@ -0,0 +1,140 @@
|
|
1
|
+
import { Component, INotifyPropertyChanged, ChildProperty, Collection, BaseEventArgs, Event, EmitType, NotifyPropertyChanges, Property, getUniqueID, addClass, attributes, isNullOrUndefined, select, compile, remove, removeClass, append } from '@syncfusion/ej2-base';
|
2
|
+
import {TimelineOrientation,TimelineAlign,TimelineRenderingEventArgs} from "./timeline";
|
3
|
+
import {ComponentModel} from '@syncfusion/ej2-base';
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Interface for a class TimelineItem
|
7
|
+
*/
|
8
|
+
export interface TimelineItemModel {
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Defines one or more CSS classes to include an icon or image in the Timeline item.
|
12
|
+
*
|
13
|
+
* @default ''
|
14
|
+
*/
|
15
|
+
dotCss?: string;
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Defines the text content or template for the Timeline item. The current itemIndex passed as context to build the content.
|
19
|
+
*
|
20
|
+
* @default ''
|
21
|
+
* @angularType string | object
|
22
|
+
* @reactType string | function | JSX.Element
|
23
|
+
* @vueType string | function
|
24
|
+
* @aspType string
|
25
|
+
*/
|
26
|
+
content?: string | Function;
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Defines the additional text content or template to be displayed opposite side of the item. The current itemIndex passed as context to build the content.
|
30
|
+
*
|
31
|
+
* @default ''
|
32
|
+
* @angularType string | object
|
33
|
+
* @reactType string | function | JSX.Element
|
34
|
+
* @vueType string | function
|
35
|
+
* @aspType string
|
36
|
+
*/
|
37
|
+
oppositeContent?: string | Function;
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Defines whether to enable or disable the timeline item.
|
41
|
+
*
|
42
|
+
* @default false
|
43
|
+
*/
|
44
|
+
disabled?: boolean;
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Defines the CSS class to customize the Timeline item appearance.
|
48
|
+
*
|
49
|
+
* @default ''
|
50
|
+
*/
|
51
|
+
cssClass?: string;
|
52
|
+
|
53
|
+
}
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Interface for a class Timeline
|
57
|
+
*/
|
58
|
+
export interface TimelineModel extends ComponentModel{
|
59
|
+
|
60
|
+
/**
|
61
|
+
* Defines the orientation type of the Timeline.
|
62
|
+
*
|
63
|
+
* The possible values are:
|
64
|
+
* * Horizontal
|
65
|
+
* * vertical
|
66
|
+
*
|
67
|
+
* {% codeBlock src='timeline/orientation/index.md' %}{% endcodeBlock %}
|
68
|
+
*
|
69
|
+
* @isenumeration true
|
70
|
+
* @default TimelineOrientation.Vertical
|
71
|
+
* @asptype TimelineOrientation
|
72
|
+
*/
|
73
|
+
orientation?: string | TimelineOrientation;
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Defines the alignment of item content within the Timeline.
|
77
|
+
*
|
78
|
+
* The possible values are:
|
79
|
+
* * Before
|
80
|
+
* * After
|
81
|
+
* * Alternate
|
82
|
+
* * AlternateReverse
|
83
|
+
*
|
84
|
+
* {% codeBlock src='timeline/align/index.md' %}{% endcodeBlock %}
|
85
|
+
*
|
86
|
+
* @isenumeration true
|
87
|
+
* @default TimelineAlign.After
|
88
|
+
* @asptype TimelineAlign
|
89
|
+
*/
|
90
|
+
align?: string | TimelineAlign;
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Defines the list of items.
|
94
|
+
*
|
95
|
+
* @default []
|
96
|
+
*/
|
97
|
+
items?: TimelineItemModel[];
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Defines the CSS class to customize the Timeline appearance.
|
101
|
+
*
|
102
|
+
* @default ''
|
103
|
+
*/
|
104
|
+
cssClass?: string;
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Defines whether to show the timeline items in reverse order or not.
|
108
|
+
*
|
109
|
+
* @default false
|
110
|
+
*/
|
111
|
+
reverse?: boolean;
|
112
|
+
|
113
|
+
/**
|
114
|
+
* Defines the template content for each timeline item. The template context will contain the item model.
|
115
|
+
*
|
116
|
+
* {% codeBlock src='timeline/template/index.md' %}{% endcodeBlock %}
|
117
|
+
*
|
118
|
+
* @default ''
|
119
|
+
* @angularType string | object
|
120
|
+
* @reactType string | function | JSX.Element
|
121
|
+
* @vueType string | function
|
122
|
+
* @aspType string
|
123
|
+
*/
|
124
|
+
template?: string | Function;
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Event callback that is raised after rendering the timeline.
|
128
|
+
*
|
129
|
+
* @event created
|
130
|
+
*/
|
131
|
+
created?: EmitType<Event>;
|
132
|
+
|
133
|
+
/**
|
134
|
+
* Event triggers before rendering each item.
|
135
|
+
*
|
136
|
+
* @event beforeItemRender
|
137
|
+
*/
|
138
|
+
beforeItemRender?: EmitType<TimelineRenderingEventArgs>;
|
139
|
+
|
140
|
+
}
|
@@ -0,0 +1,236 @@
|
|
1
|
+
import { Component, INotifyPropertyChanged, ChildProperty, BaseEventArgs, EmitType } from '@syncfusion/ej2-base';
|
2
|
+
import { TimelineModel, TimelineItemModel } from '../timeline';
|
3
|
+
/**
|
4
|
+
* Defines the orientation type of the Timeline.
|
5
|
+
*/
|
6
|
+
export declare enum TimelineOrientation {
|
7
|
+
/**
|
8
|
+
* Items are displayed horizontally.
|
9
|
+
*/
|
10
|
+
Horizontal = "Horizontal",
|
11
|
+
/**
|
12
|
+
* Items are displayed vertically.
|
13
|
+
*/
|
14
|
+
Vertical = "Vertical"
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* Specifies the alignment of item content within the Timeline.
|
18
|
+
*/
|
19
|
+
export declare enum TimelineAlign {
|
20
|
+
/**
|
21
|
+
* Aligns item content to the top and opposite content to the bottom when the Timeline is in a horizontal orientation, or the content to the left and opposite content to the right when the Timeline is in a vertical orientation.
|
22
|
+
*/
|
23
|
+
Before = "Before",
|
24
|
+
/**
|
25
|
+
* Aligns item content to the bottom and opposite content to the top when the Timeline is in a horizontal orientation, or the content to the right and opposite content to the left when the Timeline is in a vertical orientation.
|
26
|
+
*/
|
27
|
+
After = "After",
|
28
|
+
/**
|
29
|
+
* Aligns item content alternatively, regardless of the Timeline's orientation.
|
30
|
+
*/
|
31
|
+
Alternate = "Alternate",
|
32
|
+
/**
|
33
|
+
* Aligns item content in alternate reverse, regardless of the Timeline's orientation.
|
34
|
+
*/
|
35
|
+
AlternateReverse = "AlternateReverse"
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* Specifies the items of the Timeline.
|
39
|
+
*/
|
40
|
+
export declare class TimelineItem extends ChildProperty<TimelineItem> {
|
41
|
+
/**
|
42
|
+
* Defines one or more CSS classes to include an icon or image in the Timeline item.
|
43
|
+
*
|
44
|
+
* @default ''
|
45
|
+
*/
|
46
|
+
dotCss: string;
|
47
|
+
/**
|
48
|
+
* Defines the text content or template for the Timeline item. The current itemIndex passed as context to build the content.
|
49
|
+
*
|
50
|
+
* @default ''
|
51
|
+
* @angularType string | object
|
52
|
+
* @reactType string | function | JSX.Element
|
53
|
+
* @vueType string | function
|
54
|
+
* @aspType string
|
55
|
+
*/
|
56
|
+
content: string | Function;
|
57
|
+
/**
|
58
|
+
* Defines the additional text content or template to be displayed opposite side of the item. The current itemIndex passed as context to build the content.
|
59
|
+
*
|
60
|
+
* @default ''
|
61
|
+
* @angularType string | object
|
62
|
+
* @reactType string | function | JSX.Element
|
63
|
+
* @vueType string | function
|
64
|
+
* @aspType string
|
65
|
+
*/
|
66
|
+
oppositeContent: string | Function;
|
67
|
+
/**
|
68
|
+
* Defines whether to enable or disable the timeline item.
|
69
|
+
*
|
70
|
+
* @default false
|
71
|
+
*/
|
72
|
+
disabled: boolean;
|
73
|
+
/**
|
74
|
+
* Defines the CSS class to customize the Timeline item appearance.
|
75
|
+
*
|
76
|
+
* @default ''
|
77
|
+
*/
|
78
|
+
cssClass: string;
|
79
|
+
}
|
80
|
+
/**
|
81
|
+
* Provides information about beforeItemRender event callback.
|
82
|
+
*/
|
83
|
+
export interface TimelineRenderingEventArgs extends BaseEventArgs {
|
84
|
+
/**
|
85
|
+
* Provides the timeline element.
|
86
|
+
*/
|
87
|
+
element: HTMLElement;
|
88
|
+
/**
|
89
|
+
* Provides the index of the current item.
|
90
|
+
*/
|
91
|
+
index: number;
|
92
|
+
}
|
93
|
+
/**
|
94
|
+
* The Timeline component presents a series of events or activities in chronological order, allowing users to track the progression of time.
|
95
|
+
*
|
96
|
+
* ```html
|
97
|
+
* <div id="timeline"></div>
|
98
|
+
* ```
|
99
|
+
* ```typescript
|
100
|
+
* <script>
|
101
|
+
* let timelineObj: Timeline = new Timeline({items : [{}, {}, {}, {}, {}]});
|
102
|
+
* timelineObj.appendTo('#timeline');
|
103
|
+
* </script>
|
104
|
+
* ```
|
105
|
+
*/
|
106
|
+
export declare class Timeline extends Component<HTMLElement> implements INotifyPropertyChanged {
|
107
|
+
/**
|
108
|
+
* Defines the orientation type of the Timeline.
|
109
|
+
*
|
110
|
+
* The possible values are:
|
111
|
+
* * Horizontal
|
112
|
+
* * vertical
|
113
|
+
*
|
114
|
+
* {% codeBlock src='timeline/orientation/index.md' %}{% endcodeBlock %}
|
115
|
+
*
|
116
|
+
* @isenumeration true
|
117
|
+
* @default TimelineOrientation.Vertical
|
118
|
+
* @asptype TimelineOrientation
|
119
|
+
*/
|
120
|
+
orientation: string | TimelineOrientation;
|
121
|
+
/**
|
122
|
+
* Defines the alignment of item content within the Timeline.
|
123
|
+
*
|
124
|
+
* The possible values are:
|
125
|
+
* * Before
|
126
|
+
* * After
|
127
|
+
* * Alternate
|
128
|
+
* * AlternateReverse
|
129
|
+
*
|
130
|
+
* {% codeBlock src='timeline/align/index.md' %}{% endcodeBlock %}
|
131
|
+
*
|
132
|
+
* @isenumeration true
|
133
|
+
* @default TimelineAlign.After
|
134
|
+
* @asptype TimelineAlign
|
135
|
+
*/
|
136
|
+
align: string | TimelineAlign;
|
137
|
+
/**
|
138
|
+
* Defines the list of items.
|
139
|
+
*
|
140
|
+
* @default []
|
141
|
+
*/
|
142
|
+
items: TimelineItemModel[];
|
143
|
+
/**
|
144
|
+
* Defines the CSS class to customize the Timeline appearance.
|
145
|
+
*
|
146
|
+
* @default ''
|
147
|
+
*/
|
148
|
+
cssClass: string;
|
149
|
+
/**
|
150
|
+
* Defines whether to show the timeline items in reverse order or not.
|
151
|
+
*
|
152
|
+
* @default false
|
153
|
+
*/
|
154
|
+
reverse: boolean;
|
155
|
+
/**
|
156
|
+
* Defines the template content for each timeline item. The template context will contain the item model.
|
157
|
+
*
|
158
|
+
* {% codeBlock src='timeline/template/index.md' %}{% endcodeBlock %}
|
159
|
+
*
|
160
|
+
* @default ''
|
161
|
+
* @angularType string | object
|
162
|
+
* @reactType string | function | JSX.Element
|
163
|
+
* @vueType string | function
|
164
|
+
* @aspType string
|
165
|
+
*/
|
166
|
+
template: string | Function;
|
167
|
+
/**
|
168
|
+
* Event callback that is raised after rendering the timeline.
|
169
|
+
*
|
170
|
+
* @event created
|
171
|
+
*/
|
172
|
+
created: EmitType<Event>;
|
173
|
+
/**
|
174
|
+
* Event triggers before rendering each item.
|
175
|
+
*
|
176
|
+
* @event beforeItemRender
|
177
|
+
*/
|
178
|
+
beforeItemRender: EmitType<TimelineRenderingEventArgs>;
|
179
|
+
private timelineListEle;
|
180
|
+
private templateFunction;
|
181
|
+
private isReact?;
|
182
|
+
/**
|
183
|
+
* * Constructor for creating the Timeline component.
|
184
|
+
*
|
185
|
+
* @param {TimelineModel} options - Specifies the Timeline model.
|
186
|
+
* @param {string | HTMLElement} element - Specifies the element to render as component.
|
187
|
+
* @private
|
188
|
+
*/
|
189
|
+
constructor(options?: TimelineModel, element?: string | HTMLElement);
|
190
|
+
protected preRender(): void;
|
191
|
+
/**
|
192
|
+
* To get component name.
|
193
|
+
*
|
194
|
+
* @returns {string} - Module Name
|
195
|
+
* @private
|
196
|
+
*/
|
197
|
+
getModuleName(): string;
|
198
|
+
/**
|
199
|
+
* This method is abstract member of the Component<HTMLElement>.
|
200
|
+
*
|
201
|
+
* @private
|
202
|
+
* @returns {string}
|
203
|
+
*/
|
204
|
+
protected getPersistData(): string;
|
205
|
+
protected render(): void;
|
206
|
+
protected updateOrientation(): void;
|
207
|
+
protected updateCssClass(addCss: string, removeCss?: string): void;
|
208
|
+
protected updateRtl(): void;
|
209
|
+
protected updateAlign(): void;
|
210
|
+
protected updateReverse(): void;
|
211
|
+
private renderItems;
|
212
|
+
private updateTemplateFunction;
|
213
|
+
private renderItemContent;
|
214
|
+
private removeItemContent;
|
215
|
+
/**
|
216
|
+
* Gets template content based on the template property value.
|
217
|
+
*
|
218
|
+
* @param {string | Function} template - Template property value.
|
219
|
+
* @returns {Function} - Return template function.
|
220
|
+
* @hidden
|
221
|
+
*/
|
222
|
+
private getTemplateFunction;
|
223
|
+
private removeItemElements;
|
224
|
+
private updateElementClassArray;
|
225
|
+
private updateContent;
|
226
|
+
destroy(): void;
|
227
|
+
/**
|
228
|
+
* Called internally if any of the property value changed.
|
229
|
+
*
|
230
|
+
* @param {TimelineModel} newProp - Specifies new properties
|
231
|
+
* @param {TimelineModel} oldProp - Specifies old properties
|
232
|
+
* @returns {void}
|
233
|
+
* @private
|
234
|
+
*/
|
235
|
+
onPropertyChanged(newProp: TimelineModel, oldProp?: TimelineModel): void;
|
236
|
+
}
|