@syncfusion/ej2-layouts 24.2.3 → 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.
Files changed (127) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/ej2-layouts.min.js +2 -2
  3. package/dist/ej2-layouts.umd.min.js +2 -2
  4. package/dist/ej2-layouts.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-layouts.es2015.js +388 -10
  6. package/dist/es6/ej2-layouts.es2015.js.map +1 -1
  7. package/dist/es6/ej2-layouts.es5.js +414 -10
  8. package/dist/es6/ej2-layouts.es5.js.map +1 -1
  9. package/dist/global/ej2-layouts.min.js +2 -2
  10. package/dist/global/ej2-layouts.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +7 -7
  13. package/src/dashboard-layout/dashboard-layout.js +14 -6
  14. package/src/index.d.ts +1 -0
  15. package/src/index.js +1 -0
  16. package/src/splitter/splitter.js +6 -2
  17. package/src/timeline/index.d.ts +3 -0
  18. package/src/timeline/index.js +2 -0
  19. package/src/timeline/timeline-model.d.ts +140 -0
  20. package/src/timeline/timeline.d.ts +236 -0
  21. package/src/timeline/timeline.js +392 -0
  22. package/styles/avatar/_bds-definition.scss +32 -0
  23. package/styles/bootstrap-dark.css +239 -0
  24. package/styles/bootstrap-dark.scss +1 -0
  25. package/styles/bootstrap.css +239 -0
  26. package/styles/bootstrap.scss +1 -0
  27. package/styles/bootstrap4.css +239 -0
  28. package/styles/bootstrap4.scss +1 -0
  29. package/styles/bootstrap5-dark.css +239 -0
  30. package/styles/bootstrap5-dark.scss +1 -0
  31. package/styles/bootstrap5.css +239 -0
  32. package/styles/bootstrap5.scss +1 -0
  33. package/styles/card/_bds-definition.scss +123 -0
  34. package/styles/card/_layout.scss +2 -2
  35. package/styles/card/_theme.scss +24 -4
  36. package/styles/card/fabric.css +2 -2
  37. package/styles/card/highcontrast.css +2 -2
  38. package/styles/card/material3-dark.css +4 -4
  39. package/styles/card/material3.css +4 -4
  40. package/styles/dashboard-layout/_bds-definition.scss +109 -0
  41. package/styles/dashboard-layout/icons/_bds.scss +80 -0
  42. package/styles/fabric-dark.css +239 -0
  43. package/styles/fabric-dark.scss +1 -0
  44. package/styles/fabric.css +241 -2
  45. package/styles/fabric.scss +1 -0
  46. package/styles/fluent-dark.css +239 -0
  47. package/styles/fluent-dark.scss +1 -0
  48. package/styles/fluent.css +239 -0
  49. package/styles/fluent.scss +1 -0
  50. package/styles/highcontrast-light.css +239 -0
  51. package/styles/highcontrast-light.scss +1 -0
  52. package/styles/highcontrast.css +241 -2
  53. package/styles/highcontrast.scss +1 -0
  54. package/styles/material-dark.css +239 -0
  55. package/styles/material-dark.scss +1 -0
  56. package/styles/material.css +239 -0
  57. package/styles/material.scss +1 -0
  58. package/styles/material3-dark.css +243 -4
  59. package/styles/material3-dark.scss +1 -0
  60. package/styles/material3.css +243 -4
  61. package/styles/material3.scss +1 -0
  62. package/styles/splitter/_bds-definition.scss +31 -0
  63. package/styles/splitter/icons/_bds.scss +39 -0
  64. package/styles/tailwind-dark.css +239 -0
  65. package/styles/tailwind-dark.scss +1 -0
  66. package/styles/tailwind.css +239 -0
  67. package/styles/tailwind.scss +1 -0
  68. package/styles/timeline/_all.scss +2 -0
  69. package/styles/timeline/_bds-definition.scss +18 -0
  70. package/styles/timeline/_bootstrap-dark-definition.scss +18 -0
  71. package/styles/timeline/_bootstrap-definition.scss +18 -0
  72. package/styles/timeline/_bootstrap4-definition.scss +18 -0
  73. package/styles/timeline/_bootstrap5-dark-definition.scss +1 -0
  74. package/styles/timeline/_bootstrap5-definition.scss +18 -0
  75. package/styles/timeline/_fabric-dark-definition.scss +18 -0
  76. package/styles/timeline/_fabric-definition.scss +18 -0
  77. package/styles/timeline/_fluent-dark-definition.scss +1 -0
  78. package/styles/timeline/_fluent-definition.scss +18 -0
  79. package/styles/timeline/_fusionnew-definition.scss +18 -0
  80. package/styles/timeline/_highcontrast-definition.scss +18 -0
  81. package/styles/timeline/_highcontrast-light-definition.scss +18 -0
  82. package/styles/timeline/_layout.scss +273 -0
  83. package/styles/timeline/_material-dark-definition.scss +18 -0
  84. package/styles/timeline/_material-definition.scss +18 -0
  85. package/styles/timeline/_material3-dark-definition.scss +1 -0
  86. package/styles/timeline/_material3-definition.scss +18 -0
  87. package/styles/timeline/_tailwind-dark-definition.scss +1 -0
  88. package/styles/timeline/_tailwind-definition.scss +18 -0
  89. package/styles/timeline/_theme.scss +31 -0
  90. package/styles/timeline/bootstrap-dark.css +238 -0
  91. package/styles/timeline/bootstrap-dark.scss +3 -0
  92. package/styles/timeline/bootstrap.css +238 -0
  93. package/styles/timeline/bootstrap.scss +3 -0
  94. package/styles/timeline/bootstrap4.css +238 -0
  95. package/styles/timeline/bootstrap4.scss +3 -0
  96. package/styles/timeline/bootstrap5-dark.css +238 -0
  97. package/styles/timeline/bootstrap5-dark.scss +3 -0
  98. package/styles/timeline/bootstrap5.css +238 -0
  99. package/styles/timeline/bootstrap5.scss +3 -0
  100. package/styles/timeline/fabric-dark.css +238 -0
  101. package/styles/timeline/fabric-dark.scss +3 -0
  102. package/styles/timeline/fabric.css +238 -0
  103. package/styles/timeline/fabric.scss +3 -0
  104. package/styles/timeline/fluent-dark.css +238 -0
  105. package/styles/timeline/fluent-dark.scss +3 -0
  106. package/styles/timeline/fluent.css +238 -0
  107. package/styles/timeline/fluent.scss +3 -0
  108. package/styles/timeline/highcontrast-light.css +238 -0
  109. package/styles/timeline/highcontrast-light.scss +3 -0
  110. package/styles/timeline/highcontrast.css +238 -0
  111. package/styles/timeline/highcontrast.scss +3 -0
  112. package/styles/timeline/material-dark.css +238 -0
  113. package/styles/timeline/material-dark.scss +3 -0
  114. package/styles/timeline/material.css +238 -0
  115. package/styles/timeline/material.scss +3 -0
  116. package/styles/timeline/material3-dark.css +293 -0
  117. package/styles/timeline/material3-dark.scss +4 -0
  118. package/styles/timeline/material3.css +349 -0
  119. package/styles/timeline/material3.scss +4 -0
  120. package/styles/timeline/tailwind-dark.css +238 -0
  121. package/styles/timeline/tailwind-dark.scss +3 -0
  122. package/styles/timeline/tailwind.css +238 -0
  123. package/styles/timeline/tailwind.scss +3 -0
  124. package/timeline.d.ts +4 -0
  125. package/timeline.js +4 -0
  126. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -41
  127. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -27
@@ -0,0 +1,392 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
+ import { Component, ChildProperty, Collection, Event, NotifyPropertyChanges, Property, getUniqueID, attributes, select, compile, remove, removeClass, append } from '@syncfusion/ej2-base';
21
+ var ITEMLISTCONTAINER = 'e-timeline-items';
22
+ var ITEMCONTAINER = 'e-timeline-item';
23
+ var OPPOSITECONTENT = 'e-opposite-content';
24
+ var DOTCONTAINER = 'e-dot-item';
25
+ var DOTCONTENT = 'e-dot';
26
+ var CONTENT = 'e-content';
27
+ var ITEMCONNECTOR = 'e-connector';
28
+ var VERTICAL = 'e-vertical';
29
+ var HORIZONTAL = 'e-horizontal';
30
+ var TIMELINEREVERSE = 'e-timeline-reverse';
31
+ var RTL = 'e-rtl';
32
+ var DISABLED = 'e-item-disabled';
33
+ var TEMPLATE = 'e-item-template';
34
+ /**
35
+ * Defines the orientation type of the Timeline.
36
+ */
37
+ export var TimelineOrientation;
38
+ (function (TimelineOrientation) {
39
+ /**
40
+ * Items are displayed horizontally.
41
+ */
42
+ TimelineOrientation["Horizontal"] = "Horizontal";
43
+ /**
44
+ * Items are displayed vertically.
45
+ */
46
+ TimelineOrientation["Vertical"] = "Vertical";
47
+ })(TimelineOrientation || (TimelineOrientation = {}));
48
+ /**
49
+ * Specifies the alignment of item content within the Timeline.
50
+ */
51
+ export var TimelineAlign;
52
+ (function (TimelineAlign) {
53
+ /**
54
+ * 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.
55
+ */
56
+ TimelineAlign["Before"] = "Before";
57
+ /**
58
+ * 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.
59
+ */
60
+ TimelineAlign["After"] = "After";
61
+ /**
62
+ * Aligns item content alternatively, regardless of the Timeline's orientation.
63
+ */
64
+ TimelineAlign["Alternate"] = "Alternate";
65
+ /**
66
+ * Aligns item content in alternate reverse, regardless of the Timeline's orientation.
67
+ */
68
+ TimelineAlign["AlternateReverse"] = "AlternateReverse";
69
+ })(TimelineAlign || (TimelineAlign = {}));
70
+ /**
71
+ * Specifies the items of the Timeline.
72
+ */
73
+ var TimelineItem = /** @class */ (function (_super) {
74
+ __extends(TimelineItem, _super);
75
+ function TimelineItem() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ __decorate([
79
+ Property('')
80
+ ], TimelineItem.prototype, "dotCss", void 0);
81
+ __decorate([
82
+ Property('')
83
+ ], TimelineItem.prototype, "content", void 0);
84
+ __decorate([
85
+ Property('')
86
+ ], TimelineItem.prototype, "oppositeContent", void 0);
87
+ __decorate([
88
+ Property(false)
89
+ ], TimelineItem.prototype, "disabled", void 0);
90
+ __decorate([
91
+ Property('')
92
+ ], TimelineItem.prototype, "cssClass", void 0);
93
+ return TimelineItem;
94
+ }(ChildProperty));
95
+ export { TimelineItem };
96
+ /**
97
+ * The Timeline component presents a series of events or activities in chronological order, allowing users to track the progression of time.
98
+ *
99
+ * ```html
100
+ * <div id="timeline"></div>
101
+ * ```
102
+ * ```typescript
103
+ * <script>
104
+ * let timelineObj: Timeline = new Timeline({items : [{}, {}, {}, {}, {}]});
105
+ * timelineObj.appendTo('#timeline');
106
+ * </script>
107
+ * ```
108
+ */
109
+ var Timeline = /** @class */ (function (_super) {
110
+ __extends(Timeline, _super);
111
+ /**
112
+ * * Constructor for creating the Timeline component.
113
+ *
114
+ * @param {TimelineModel} options - Specifies the Timeline model.
115
+ * @param {string | HTMLElement} element - Specifies the element to render as component.
116
+ * @private
117
+ */
118
+ function Timeline(options, element) {
119
+ return _super.call(this, options, element) || this;
120
+ }
121
+ Timeline.prototype.preRender = function () {
122
+ if (!this.element.id) {
123
+ this.element.id = getUniqueID('e-' + this.getModuleName());
124
+ }
125
+ };
126
+ /**
127
+ * To get component name.
128
+ *
129
+ * @returns {string} - Module Name
130
+ * @private
131
+ */
132
+ Timeline.prototype.getModuleName = function () {
133
+ return 'timeline';
134
+ };
135
+ /**
136
+ * This method is abstract member of the Component<HTMLElement>.
137
+ *
138
+ * @private
139
+ * @returns {string}
140
+ */
141
+ Timeline.prototype.getPersistData = function () {
142
+ return this.addOnPersist([]);
143
+ };
144
+ Timeline.prototype.render = function () {
145
+ attributes(this.element, { 'role': 'navigation', 'aria-label': this.element.id });
146
+ this.timelineListEle = this.createElement('ol', { className: ITEMLISTCONTAINER });
147
+ this.updateOrientation();
148
+ this.updateCssClass(this.cssClass);
149
+ this.updateAlign();
150
+ this.updateReverse();
151
+ this.updateRtl();
152
+ this.updateTemplateFunction();
153
+ this.renderItems();
154
+ this.element.appendChild(this.timelineListEle);
155
+ };
156
+ Timeline.prototype.updateOrientation = function () {
157
+ var orientation = this.orientation.toLowerCase();
158
+ if (orientation === 'horizontal' || orientation === 'vertical') {
159
+ this.element.classList.remove(HORIZONTAL, VERTICAL);
160
+ this.element.classList.add('e-' + orientation);
161
+ }
162
+ };
163
+ Timeline.prototype.updateCssClass = function (addCss, removeCss) {
164
+ if (removeCss === void 0) { removeCss = ""; }
165
+ var _a, _b;
166
+ var cssClasses;
167
+ if (removeCss) {
168
+ cssClasses = removeCss.trim().split(' ');
169
+ (_a = this.element.classList).remove.apply(_a, cssClasses);
170
+ }
171
+ if (addCss) {
172
+ cssClasses = addCss.trim().split(' ');
173
+ (_b = this.element.classList).add.apply(_b, cssClasses);
174
+ }
175
+ };
176
+ Timeline.prototype.updateRtl = function () {
177
+ this.element.classList[this.enableRtl ? 'add' : 'remove'](RTL);
178
+ };
179
+ Timeline.prototype.updateAlign = function () {
180
+ var align = this.align.toLowerCase();
181
+ if (align === 'before' || align === 'after' || align === 'alternate' || align === 'alternatereverse') {
182
+ this.element.classList.remove('e-align-before', 'e-align-after', 'e-align-alternate', 'e-align-alternatereverse');
183
+ this.element.classList.add('e-align-' + align);
184
+ }
185
+ };
186
+ Timeline.prototype.updateReverse = function () {
187
+ this.element.classList[this.reverse ? 'add' : 'remove'](TIMELINEREVERSE);
188
+ };
189
+ Timeline.prototype.renderItems = function () {
190
+ var _this = this;
191
+ var _a;
192
+ for (var index = 0; index < this.items.length; index++) {
193
+ var item = this.items[parseInt(index.toString(), 10)];
194
+ var timelineItem = this.createElement('li', { className: ITEMCONTAINER + ' ' + ITEMCONNECTOR });
195
+ if (!this.template) {
196
+ var oppositeTextEle = this.createElement('div', { className: OPPOSITECONTENT });
197
+ if (item.oppositeContent) {
198
+ var oppositeCtn = this.getTemplateFunction(item.oppositeContent);
199
+ if (typeof oppositeCtn === 'string') {
200
+ oppositeTextEle.innerText = oppositeCtn;
201
+ }
202
+ else {
203
+ append(oppositeCtn({ item: item, itemIndex: index }), oppositeTextEle);
204
+ }
205
+ }
206
+ timelineItem.appendChild(oppositeTextEle);
207
+ var dotContainer = this.createElement('div', { className: DOTCONTAINER });
208
+ var dotEleCss = item.dotCss ? DOTCONTENT + ' ' + item.dotCss.trim() : DOTCONTENT;
209
+ var dotEle = this.createElement('div', { className: dotEleCss });
210
+ dotContainer.appendChild(dotEle);
211
+ timelineItem.appendChild(dotContainer);
212
+ var contentEle = this.createElement('div', { className: CONTENT });
213
+ if (item.content) {
214
+ var ctn = this.getTemplateFunction(item.content);
215
+ if (typeof ctn === 'string') {
216
+ contentEle.innerText = ctn;
217
+ }
218
+ else {
219
+ append(ctn({ item: item, itemIndex: index }), contentEle);
220
+ }
221
+ }
222
+ timelineItem.appendChild(contentEle);
223
+ if (item.cssClass) {
224
+ (_a = timelineItem.classList).add.apply(_a, item.cssClass.trim().split(' '));
225
+ }
226
+ if (item.disabled) {
227
+ timelineItem.classList.add(DISABLED);
228
+ }
229
+ }
230
+ else {
231
+ this.renderItemContent(index, false, timelineItem);
232
+ }
233
+ var eventArgs = { element: timelineItem, index: index };
234
+ this.trigger('beforeItemRender', eventArgs, function (args) { _this.timelineListEle.appendChild(args.element); });
235
+ }
236
+ };
237
+ Timeline.prototype.updateTemplateFunction = function () {
238
+ this.templateFunction = this.template ? this.getTemplateFunction(this.template, false) : null;
239
+ };
240
+ Timeline.prototype.renderItemContent = function (index, isrerender, timelineItem) {
241
+ var listItems = this.timelineListEle.querySelectorAll('li');
242
+ if (isrerender) {
243
+ this.removeItemContent(listItems[parseInt((index).toString(), 10)]);
244
+ }
245
+ if (this.template) {
246
+ isrerender ? listItems[parseInt((index).toString(), 10)].classList.add(TEMPLATE) :
247
+ timelineItem.classList.add(TEMPLATE);
248
+ var item = this.items[parseInt(index.toString(), 10)];
249
+ append(this.templateFunction({ item: item, itemIndex: index }, this, 'timelineTemplate', (this.element.id + '_timelineTemplate'), this.isStringTemplate), isrerender ? listItems[parseInt((index).toString(), 10)] : timelineItem);
250
+ }
251
+ this.renderReactTemplates();
252
+ };
253
+ Timeline.prototype.removeItemContent = function (ele) {
254
+ ele.classList.remove(TEMPLATE);
255
+ var firstChild = ele.firstElementChild;
256
+ for (var i = 0; i < ele.childElementCount; i++) {
257
+ firstChild.remove();
258
+ }
259
+ };
260
+ /**
261
+ * Gets template content based on the template property value.
262
+ *
263
+ * @param {string | Function} template - Template property value.
264
+ * @returns {Function} - Return template function.
265
+ * @hidden
266
+ */
267
+ Timeline.prototype.getTemplateFunction = function (template, notCompile) {
268
+ if (notCompile === void 0) { notCompile = true; }
269
+ if (typeof template === 'string') {
270
+ var content = '';
271
+ try {
272
+ var tempEle = select(template);
273
+ if (tempEle) {
274
+ //Return innerHTML incase of jsrenderer script else outerHTML
275
+ content = tempEle.tagName === 'SCRIPT' ? tempEle.innerHTML : tempEle.outerHTML;
276
+ notCompile = false;
277
+ }
278
+ else {
279
+ content = template;
280
+ }
281
+ }
282
+ catch (e) {
283
+ content = template;
284
+ }
285
+ return notCompile ? content : compile(content);
286
+ }
287
+ else {
288
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
289
+ return compile(template);
290
+ }
291
+ };
292
+ Timeline.prototype.removeItemElements = function () {
293
+ var listItems = this.timelineListEle.querySelectorAll('li');
294
+ for (var i = 0; i < listItems.length; i++) {
295
+ remove(listItems[parseInt(i.toString(), 10)]);
296
+ }
297
+ };
298
+ Timeline.prototype.updateElementClassArray = function () {
299
+ var classArray = [RTL, 'e-align-before', 'e-align-after', 'e-outline', 'e-fill', 'e-align-alternate',
300
+ 'e-align-alternatereverse', TIMELINEREVERSE, HORIZONTAL, VERTICAL];
301
+ removeClass([this.element], classArray);
302
+ };
303
+ Timeline.prototype.updateContent = function () {
304
+ if (this.isReact) {
305
+ this.clearTemplate(['timelineTemplate']);
306
+ }
307
+ for (var i = 0; i < this.items.length; i++) {
308
+ this.renderItemContent(i, true);
309
+ }
310
+ };
311
+ Timeline.prototype.destroy = function () {
312
+ _super.prototype.destroy.call(this);
313
+ // unwires the events and detach the li elements
314
+ this.removeItemElements();
315
+ this.element.removeAttribute("role");
316
+ this.element.removeAttribute("aria-label");
317
+ this.clearTemplate();
318
+ if (this.timelineListEle) {
319
+ remove(this.timelineListEle);
320
+ }
321
+ this.timelineListEle = null;
322
+ this.updateElementClassArray();
323
+ };
324
+ /**
325
+ * Called internally if any of the property value changed.
326
+ *
327
+ * @param {TimelineModel} newProp - Specifies new properties
328
+ * @param {TimelineModel} oldProp - Specifies old properties
329
+ * @returns {void}
330
+ * @private
331
+ */
332
+ Timeline.prototype.onPropertyChanged = function (newProp, oldProp) {
333
+ for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
334
+ var prop = _a[_i];
335
+ switch (prop) {
336
+ case 'items': {
337
+ this.removeItemElements();
338
+ this.renderItems();
339
+ break;
340
+ }
341
+ case 'orientation':
342
+ this.updateOrientation();
343
+ break;
344
+ case 'align':
345
+ this.updateAlign();
346
+ break;
347
+ case 'enableRtl':
348
+ this.updateRtl();
349
+ break;
350
+ case 'cssClass':
351
+ this.updateCssClass(newProp.cssClass, oldProp.cssClass);
352
+ break;
353
+ case 'reverse':
354
+ this.element.classList[this.reverse ? 'add' : 'remove'](TIMELINEREVERSE);
355
+ break;
356
+ case 'template':
357
+ this.updateTemplateFunction();
358
+ this.updateContent();
359
+ break;
360
+ }
361
+ }
362
+ };
363
+ __decorate([
364
+ Property(TimelineOrientation.Vertical)
365
+ ], Timeline.prototype, "orientation", void 0);
366
+ __decorate([
367
+ Property(TimelineAlign.After)
368
+ ], Timeline.prototype, "align", void 0);
369
+ __decorate([
370
+ Collection([], TimelineItem)
371
+ ], Timeline.prototype, "items", void 0);
372
+ __decorate([
373
+ Property('')
374
+ ], Timeline.prototype, "cssClass", void 0);
375
+ __decorate([
376
+ Property(false)
377
+ ], Timeline.prototype, "reverse", void 0);
378
+ __decorate([
379
+ Property('')
380
+ ], Timeline.prototype, "template", void 0);
381
+ __decorate([
382
+ Event()
383
+ ], Timeline.prototype, "created", void 0);
384
+ __decorate([
385
+ Event()
386
+ ], Timeline.prototype, "beforeItemRender", void 0);
387
+ Timeline = __decorate([
388
+ NotifyPropertyChanges
389
+ ], Timeline);
390
+ return Timeline;
391
+ }(Component));
392
+ export { Timeline };
@@ -0,0 +1,32 @@
1
+ // Avatar Base
2
+ $avatar-base-border-radius: 8px !default;
3
+ $avatar-base-background-color: $content-bg-color-alt3 !default;
4
+ $avatar-base-font-size: $text-sm !default;
5
+ $avatar-base-width: 40px !default;
6
+ $avatar-base-height: 40px !default;
7
+ $avatar-base-line-height: 22px !default;
8
+ $avatar-base-text-color: $content-text-color-alt2 !default;
9
+ $avatar-base-font-weight: $font-weight-medium !default;
10
+ $avatar-base-img-height: 100% !default;
11
+
12
+ // Circle Avatar
13
+ $avatar-circle-border-radius: 50% !default;
14
+
15
+ // Avatar size
16
+ $avatar-xsmall-font-size: $text-xxs !default;
17
+ $avatar-small-font-size: $text-xs !default;
18
+ $avatar-large-font-size: $text-lg !default;
19
+ $avatar-xlarge-font-size: $text-xl !default;
20
+
21
+ // Avatar Line Height
22
+ $avatar-base-xsmall-line-height: 16px !default;
23
+ $avatar-base-small-line-height: 18px !default;
24
+ $avatar-base-large-line-height: 28px !default;
25
+ $avatar-base-xlarge-line-height: 28px !default;
26
+
27
+ //border
28
+ $avatar-border: $avatar-border-color !default;
29
+
30
+ .e-avatar {
31
+ border: 1px solid $avatar-border;
32
+ }
@@ -1348,4 +1348,243 @@
1348
1348
  }
1349
1349
  .e-dashboardlayout.e-control .e-panel.e-bigger .e-panel-header {
1350
1350
  color: #acacac;
1351
+ }
1352
+
1353
+ .e-timeline {
1354
+ --dot-size: 16px;
1355
+ --dot-outer-space: 0;
1356
+ --dot-border: 1px;
1357
+ --connector-size: 1px;
1358
+ --dot-radius: 50%;
1359
+ height: inherit;
1360
+ width: 100%;
1361
+ }
1362
+ .e-timeline [class^="e-dot "]::before,
1363
+ .e-timeline .e-dot-item,
1364
+ .e-timeline .e-dot {
1365
+ display: -ms-flexbox;
1366
+ display: flex;
1367
+ -ms-flex-align: center;
1368
+ align-items: center;
1369
+ -ms-flex-pack: center;
1370
+ justify-content: center;
1371
+ }
1372
+ .e-timeline [class^="e-dot "]::before {
1373
+ min-width: 32px;
1374
+ min-height: 32px;
1375
+ border-radius: var(--dot-radius);
1376
+ }
1377
+ .e-timeline .e-timeline-items {
1378
+ display: -ms-inline-flexbox;
1379
+ display: inline-flex;
1380
+ -ms-flex-direction: column;
1381
+ flex-direction: column;
1382
+ list-style: none;
1383
+ -ms-flex-wrap: nowrap;
1384
+ flex-wrap: nowrap;
1385
+ padding: 0;
1386
+ width: inherit;
1387
+ height: inherit;
1388
+ }
1389
+ .e-timeline .e-timeline-item {
1390
+ display: -ms-flexbox;
1391
+ display: flex;
1392
+ -ms-flex-direction: row;
1393
+ flex-direction: row;
1394
+ position: relative;
1395
+ -ms-flex-align: start;
1396
+ align-items: flex-start;
1397
+ width: inherit;
1398
+ height: inherit;
1399
+ }
1400
+ .e-timeline .e-timeline-item.e-connector::after {
1401
+ top: 0;
1402
+ bottom: 0;
1403
+ left: calc(50% - var(--connector-size));
1404
+ right: auto;
1405
+ content: "";
1406
+ position: absolute;
1407
+ z-index: 999;
1408
+ border-width: var(--connector-size);
1409
+ border-style: solid;
1410
+ }
1411
+ .e-timeline .e-timeline-item.e-connector.e-item-template::after {
1412
+ content: unset;
1413
+ }
1414
+ .e-timeline .e-dot-item {
1415
+ position: relative;
1416
+ -ms-flex: 0 1 calc(var(--dot-size) * 3);
1417
+ flex: 0 1 calc(var(--dot-size) * 3);
1418
+ z-index: 1000;
1419
+ }
1420
+ .e-timeline .e-dot {
1421
+ min-width: var(--dot-size);
1422
+ min-height: var(--dot-size);
1423
+ border-radius: var(--dot-radius);
1424
+ outline: var(--dot-outer-space) solid;
1425
+ border: var(--dot-border) solid;
1426
+ font-size: 16px;
1427
+ background-size: cover;
1428
+ background-position: center;
1429
+ background-repeat: no-repeat;
1430
+ }
1431
+ .e-timeline .e-opposite-content,
1432
+ .e-timeline .e-content {
1433
+ -ms-flex: 1 1 50%;
1434
+ flex: 1 1 50%;
1435
+ }
1436
+ .e-timeline .e-opposite-content {
1437
+ font-size: 12px;
1438
+ text-align: right;
1439
+ }
1440
+ .e-timeline .e-content {
1441
+ text-align: left;
1442
+ font-size: 14px;
1443
+ font-weight: 500;
1444
+ }
1445
+ .e-timeline .e-timeline-item:first-child::after {
1446
+ top: 0;
1447
+ }
1448
+ .e-timeline .e-timeline-item:last-child::after {
1449
+ bottom: calc(var(--dot-size) * 2);
1450
+ }
1451
+ .e-timeline.e-vertical.e-align-before .e-timeline-item, .e-timeline.e-vertical.e-align-alternate .e-timeline-item:nth-of-type(even), .e-timeline.e-vertical.e-align-alternatereverse .e-timeline-item:nth-of-type(odd) {
1452
+ -ms-flex-direction: row-reverse;
1453
+ flex-direction: row-reverse;
1454
+ }
1455
+ .e-timeline.e-vertical.e-timeline-reverse .e-timeline-items {
1456
+ -ms-flex-direction: column-reverse;
1457
+ flex-direction: column-reverse;
1458
+ }
1459
+ .e-timeline.e-vertical.e-align-before .e-timeline-items .e-opposite-content, .e-timeline.e-vertical.e-align-after .e-timeline-items .e-content {
1460
+ text-align: left;
1461
+ }
1462
+ .e-timeline.e-vertical .e-timeline-item.e-connector:last-child::after {
1463
+ content: unset;
1464
+ }
1465
+ .e-timeline.e-vertical.e-timeline-reverse .e-timeline-item.e-connector:first-child::after {
1466
+ content: unset;
1467
+ }
1468
+ .e-timeline.e-vertical.e-timeline-reverse .e-timeline-item.e-connector:last-child::after {
1469
+ content: "";
1470
+ bottom: 0;
1471
+ }
1472
+ .e-timeline.e-vertical.e-align-after .e-opposite-content, .e-timeline.e-vertical.e-align-before .e-content, .e-timeline.e-vertical.e-rtl.e-align-after .e-content, .e-timeline.e-vertical.e-rtl.e-align-alternate .e-timeline-item:nth-of-type(odd) .e-content, .e-timeline.e-vertical.e-rtl.e-align-alternatereverse .e-timeline-item:nth-of-type(even) .e-content, .e-timeline.e-vertical.e-align-alternate .e-timeline-item:nth-of-type(even) .e-content, .e-timeline.e-vertical.e-align-alternatereverse .e-timeline-item:nth-of-type(odd) .e-content, .e-timeline.e-vertical.e-rtl.e-align-alternate .e-timeline-item:nth-of-type(even) .e-opposite-content, .e-timeline.e-vertical.e-rtl.e-align-alternatereverse .e-timeline-item:nth-of-type(odd) .e-opposite-content, .e-timeline.e-vertical.e-rtl.e-align-before .e-opposite-content, .e-timeline.e-vertical.e-align-alternate .e-opposite-content, .e-timeline.e-vertical.e-align-alternatereverse .e-opposite-content {
1473
+ text-align: right;
1474
+ }
1475
+ .e-timeline.e-vertical.e-align-before .e-opposite-content, .e-timeline.e-vertical.e-align-after .e-content, .e-timeline.e-vertical.e-rtl.e-align-after .e-opposite-content, .e-timeline.e-vertical.e-align-alternate .e-timeline-item:nth-of-type(odd) .e-content, .e-timeline.e-vertical.e-align-alternatereverse .e-timeline-item:nth-of-type(even) .e-content, .e-timeline.e-vertical.e-align-alternate .e-timeline-item:nth-of-type(even) .e-opposite-content, .e-timeline.e-vertical.e-align-alternatereverse .e-timeline-item:nth-of-type(odd) .e-opposite-content, .e-timeline.e-vertical.e-rtl.e-align-alternate .e-timeline-item:nth-of-type(even) .e-content, .e-timeline.e-vertical.e-rtl.e-align-alternatereverse .e-timeline-item:nth-of-type(odd) .e-content, .e-timeline.e-vertical.e-rtl.e-align-before .e-content, .e-timeline.e-vertical.e-rtl.e-align-alternate .e-opposite-content, .e-timeline.e-vertical.e-rtl.e-align-alternatereverse .e-opposite-content {
1476
+ text-align: left;
1477
+ }
1478
+ .e-timeline.e-vertical .e-dot-item {
1479
+ width: calc(var(--dot-size) * 2);
1480
+ }
1481
+ .e-timeline.e-horizontal .e-timeline-items {
1482
+ display: -ms-inline-flexbox;
1483
+ display: inline-flex;
1484
+ -ms-flex-direction: row;
1485
+ flex-direction: row;
1486
+ }
1487
+ .e-timeline.e-horizontal .e-timeline-item {
1488
+ height: auto;
1489
+ }
1490
+ .e-timeline.e-horizontal.e-rtl .e-timeline-item.e-connector::after, .e-timeline.e-horizontal.e-timeline-reverse .e-timeline-item.e-connector::after {
1491
+ right: calc(50% - var(--connector-size));
1492
+ left: auto;
1493
+ }
1494
+ .e-timeline.e-horizontal .e-dot-item {
1495
+ margin: calc(var(--dot-size) * 2 / 2) 0;
1496
+ }
1497
+ .e-timeline.e-horizontal .e-timeline-item {
1498
+ -ms-flex-direction: column;
1499
+ flex-direction: column;
1500
+ -ms-flex-align: center;
1501
+ align-items: center;
1502
+ }
1503
+ .e-timeline.e-horizontal .e-opposite-content,
1504
+ .e-timeline.e-horizontal .e-content {
1505
+ display: -ms-flexbox;
1506
+ display: flex;
1507
+ }
1508
+ .e-timeline.e-horizontal.e-align-alternate .e-timeline-item:nth-of-type(even) .e-content, .e-timeline.e-horizontal.e-align-alternate .e-timeline-item:nth-of-type(odd) .e-opposite-content, .e-timeline.e-horizontal.e-align-alternatereverse .e-timeline-item:nth-of-type(odd) .e-content, .e-timeline.e-horizontal.e-align-alternatereverse .e-timeline-item:nth-of-type(even) .e-opposite-content, .e-timeline.e-horizontal.e-align-before .e-content {
1509
+ -ms-flex-align: end;
1510
+ align-items: flex-end;
1511
+ }
1512
+ .e-timeline.e-horizontal.e-align-alternate .e-timeline-item:nth-of-type(odd) .e-content, .e-timeline.e-horizontal.e-align-alternate .e-timeline-item:nth-of-type(even) .e-opposite-content, .e-timeline.e-horizontal.e-align-alternatereverse .e-timeline-item:nth-of-type(even) .e-content, .e-timeline.e-horizontal.e-align-alternatereverse .e-timeline-item:nth-of-type(odd) .e-opposite-content, .e-timeline.e-horizontal.e-align-before .e-opposite-content {
1513
+ -ms-flex-align: start;
1514
+ align-items: flex-start;
1515
+ }
1516
+ .e-timeline.e-horizontal.e-align-before .e-timeline-item, .e-timeline.e-horizontal.e-align-alternate .e-timeline-item:nth-of-type(even), .e-timeline.e-horizontal.e-align-alternatereverse .e-timeline-item:nth-of-type(odd) {
1517
+ -ms-flex-direction: column-reverse;
1518
+ flex-direction: column-reverse;
1519
+ }
1520
+ .e-timeline.e-horizontal.e-timeline-reverse .e-timeline-items {
1521
+ -ms-flex-direction: row-reverse;
1522
+ flex-direction: row-reverse;
1523
+ }
1524
+ .e-timeline.e-horizontal .e-timeline-item::after {
1525
+ width: 100%;
1526
+ height: 0;
1527
+ top: calc(50% - var(--connector-size));
1528
+ }
1529
+ .e-timeline.e-horizontal .e-opposite-content {
1530
+ display: -ms-flexbox;
1531
+ display: flex;
1532
+ -ms-flex-align: end;
1533
+ align-items: flex-end;
1534
+ text-align: left;
1535
+ padding: 0;
1536
+ }
1537
+ .e-timeline.e-horizontal .e-content {
1538
+ padding: 0;
1539
+ }
1540
+ .e-timeline.e-horizontal .e-timeline-item:last-child::after {
1541
+ width: auto;
1542
+ }
1543
+
1544
+ .e-bigger.e-timeline [class^="e-dot "]::before,
1545
+ .e-bigger .e-timeline [class^="e-dot "]::before {
1546
+ min-width: 40px;
1547
+ min-height: 40px;
1548
+ font-size: 18px;
1549
+ }
1550
+ .e-bigger.e-timeline .e-dot-item,
1551
+ .e-bigger .e-timeline .e-dot-item {
1552
+ -ms-flex: 0 1 calc(var(--dot-size) * 4);
1553
+ flex: 0 1 calc(var(--dot-size) * 4);
1554
+ }
1555
+ .e-bigger.e-timeline .e-dot,
1556
+ .e-bigger .e-timeline .e-dot {
1557
+ min-width: 20px;
1558
+ min-height: 20px;
1559
+ }
1560
+ .e-bigger.e-timeline .e-opposite-content,
1561
+ .e-bigger .e-timeline .e-opposite-content {
1562
+ font-size: 14px;
1563
+ }
1564
+ .e-bigger.e-timeline .e-content,
1565
+ .e-bigger .e-timeline .e-content {
1566
+ font-size: 16px;
1567
+ }
1568
+
1569
+ .e-timeline .e-dot {
1570
+ background-color: #676767;
1571
+ border-color: #676767;
1572
+ color: #f0f0f0;
1573
+ outline-color: #393939;
1574
+ }
1575
+ .e-timeline.e-outline .e-dot {
1576
+ background-color: #393939;
1577
+ }
1578
+ .e-timeline .e-timeline-item.e-connector::after {
1579
+ border-color: #676767;
1580
+ }
1581
+ .e-timeline .e-content {
1582
+ color: #f0f0f0;
1583
+ }
1584
+ .e-timeline .e-opposite-content {
1585
+ color: #f0f0f0;
1586
+ }
1587
+ .e-timeline .e-item-disabled .e-content,
1588
+ .e-timeline .e-item-disabled .e-opposite-content {
1589
+ color: #767676;
1351
1590
  }
@@ -2,3 +2,4 @@
2
2
  @import 'card/bootstrap-dark.scss';
3
3
  @import 'splitter/bootstrap-dark.scss';
4
4
  @import 'dashboard-layout/bootstrap-dark.scss';
5
+ @import 'timeline/bootstrap-dark.scss';