@kteneyck/cesium-timeline-angular 0.1.0 → 0.3.0
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.
|
@@ -13,6 +13,8 @@ class TimelineControlsComponent {
|
|
|
13
13
|
isLive = false;
|
|
14
14
|
hasStartTime = false;
|
|
15
15
|
hasEndTime = false;
|
|
16
|
+
showJumpToStart;
|
|
17
|
+
showJumpToEnd;
|
|
16
18
|
theme;
|
|
17
19
|
swimLanesVisible;
|
|
18
20
|
dateTimeClick = new EventEmitter();
|
|
@@ -49,7 +51,7 @@ class TimelineControlsComponent {
|
|
|
49
51
|
this.ro?.disconnect();
|
|
50
52
|
}
|
|
51
53
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: TimelineControlsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
52
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: TimelineControlsComponent, isStandalone: true, selector: "ct-timeline-controls", inputs: { currentTime: "currentTime", isPlaying: "isPlaying", multiplier: "multiplier", dateTimeFormat: "dateTimeFormat", isLive: "isLive", hasStartTime: "hasStartTime", hasEndTime: "hasEndTime", theme: "theme", swimLanesVisible: "swimLanesVisible" }, outputs: { dateTimeClick: "dateTimeClick", playPause: "playPause", jumpToStart: "jumpToStart", rewind: "rewind", fastForward: "fastForward", jumpToEnd: "jumpToEnd", jumpToLive: "jumpToLive", resetSpeed: "resetSpeed", toggleSwimLanes: "toggleSwimLanes" }, viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: `
|
|
54
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: TimelineControlsComponent, isStandalone: true, selector: "ct-timeline-controls", inputs: { currentTime: "currentTime", isPlaying: "isPlaying", multiplier: "multiplier", dateTimeFormat: "dateTimeFormat", isLive: "isLive", hasStartTime: "hasStartTime", hasEndTime: "hasEndTime", showJumpToStart: "showJumpToStart", showJumpToEnd: "showJumpToEnd", theme: "theme", swimLanesVisible: "swimLanesVisible" }, outputs: { dateTimeClick: "dateTimeClick", playPause: "playPause", jumpToStart: "jumpToStart", rewind: "rewind", fastForward: "fastForward", jumpToEnd: "jumpToEnd", jumpToLive: "jumpToLive", resetSpeed: "resetSpeed", toggleSwimLanes: "toggleSwimLanes" }, viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: `
|
|
53
55
|
<div
|
|
54
56
|
#container
|
|
55
57
|
[style.display]="isNarrow ? 'flex' : 'grid'"
|
|
@@ -118,12 +120,15 @@ class TimelineControlsComponent {
|
|
|
118
120
|
[style.flex]="isNarrow ? '1' : undefined"
|
|
119
121
|
[style.justify-content]="isNarrow ? 'center' : undefined"
|
|
120
122
|
>
|
|
121
|
-
@if (
|
|
123
|
+
@if (showJumpToStart !== false) {
|
|
122
124
|
<button
|
|
123
|
-
(click)="jumpToStart.emit()"
|
|
125
|
+
(click)="hasStartTime && jumpToStart.emit()"
|
|
126
|
+
[disabled]="!hasStartTime"
|
|
124
127
|
[style.color]="theme.buttonColor"
|
|
128
|
+
[style.opacity]="hasStartTime ? 1 : 0.3"
|
|
129
|
+
[style.cursor]="hasStartTime ? 'pointer' : 'default'"
|
|
125
130
|
class="ct-btn"
|
|
126
|
-
title="Jump to start"
|
|
131
|
+
[title]="hasStartTime ? 'Jump to start' : 'No start time set'"
|
|
127
132
|
>⏮</button>
|
|
128
133
|
}
|
|
129
134
|
|
|
@@ -173,12 +178,15 @@ class TimelineControlsComponent {
|
|
|
173
178
|
}
|
|
174
179
|
</button>
|
|
175
180
|
|
|
176
|
-
@if (
|
|
181
|
+
@if (showJumpToEnd !== false) {
|
|
177
182
|
<button
|
|
178
|
-
(click)="jumpToEnd.emit()"
|
|
183
|
+
(click)="hasEndTime && jumpToEnd.emit()"
|
|
184
|
+
[disabled]="!hasEndTime"
|
|
179
185
|
[style.color]="theme.buttonColor"
|
|
186
|
+
[style.opacity]="hasEndTime ? 1 : 0.3"
|
|
187
|
+
[style.cursor]="hasEndTime ? 'pointer' : 'default'"
|
|
180
188
|
class="ct-btn"
|
|
181
|
-
title="Jump to end"
|
|
189
|
+
[title]="hasEndTime ? 'Jump to end' : 'No end time set'"
|
|
182
190
|
>⏭</button>
|
|
183
191
|
}
|
|
184
192
|
</div>
|
|
@@ -298,12 +306,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
298
306
|
[style.flex]="isNarrow ? '1' : undefined"
|
|
299
307
|
[style.justify-content]="isNarrow ? 'center' : undefined"
|
|
300
308
|
>
|
|
301
|
-
@if (
|
|
309
|
+
@if (showJumpToStart !== false) {
|
|
302
310
|
<button
|
|
303
|
-
(click)="jumpToStart.emit()"
|
|
311
|
+
(click)="hasStartTime && jumpToStart.emit()"
|
|
312
|
+
[disabled]="!hasStartTime"
|
|
304
313
|
[style.color]="theme.buttonColor"
|
|
314
|
+
[style.opacity]="hasStartTime ? 1 : 0.3"
|
|
315
|
+
[style.cursor]="hasStartTime ? 'pointer' : 'default'"
|
|
305
316
|
class="ct-btn"
|
|
306
|
-
title="Jump to start"
|
|
317
|
+
[title]="hasStartTime ? 'Jump to start' : 'No start time set'"
|
|
307
318
|
>⏮</button>
|
|
308
319
|
}
|
|
309
320
|
|
|
@@ -353,12 +364,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
353
364
|
}
|
|
354
365
|
</button>
|
|
355
366
|
|
|
356
|
-
@if (
|
|
367
|
+
@if (showJumpToEnd !== false) {
|
|
357
368
|
<button
|
|
358
|
-
(click)="jumpToEnd.emit()"
|
|
369
|
+
(click)="hasEndTime && jumpToEnd.emit()"
|
|
370
|
+
[disabled]="!hasEndTime"
|
|
359
371
|
[style.color]="theme.buttonColor"
|
|
372
|
+
[style.opacity]="hasEndTime ? 1 : 0.3"
|
|
373
|
+
[style.cursor]="hasEndTime ? 'pointer' : 'default'"
|
|
360
374
|
class="ct-btn"
|
|
361
|
-
title="Jump to end"
|
|
375
|
+
[title]="hasEndTime ? 'Jump to end' : 'No end time set'"
|
|
362
376
|
>⏭</button>
|
|
363
377
|
}
|
|
364
378
|
</div>
|
|
@@ -420,6 +434,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
420
434
|
type: Input
|
|
421
435
|
}], hasEndTime: [{
|
|
422
436
|
type: Input
|
|
437
|
+
}], showJumpToStart: [{
|
|
438
|
+
type: Input
|
|
439
|
+
}], showJumpToEnd: [{
|
|
440
|
+
type: Input
|
|
423
441
|
}], theme: [{
|
|
424
442
|
type: Input
|
|
425
443
|
}], swimLanesVisible: [{
|
|
@@ -1137,6 +1155,8 @@ class TimelineComponent {
|
|
|
1137
1155
|
clock;
|
|
1138
1156
|
height;
|
|
1139
1157
|
showControls = true;
|
|
1158
|
+
showJumpToStart;
|
|
1159
|
+
showJumpToEnd;
|
|
1140
1160
|
enableDrag = true;
|
|
1141
1161
|
dateTimeFormat;
|
|
1142
1162
|
jumpToTime;
|
|
@@ -1384,7 +1404,7 @@ class TimelineComponent {
|
|
|
1384
1404
|
this.cdr.markForCheck();
|
|
1385
1405
|
}
|
|
1386
1406
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: TimelineComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1387
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: TimelineComponent, isStandalone: true, selector: "ct-timeline", inputs: { startTime: "startTime", endTime: "endTime", currentTime: "currentTime", clock: "clock", height: "height", showControls: "showControls", enableDrag: "enableDrag", dateTimeFormat: "dateTimeFormat", jumpToTime: "jumpToTime", maxTicks: "maxTicks", ffSpeeds: "ffSpeeds", rwSpeeds: "rwSpeeds", theme: "theme", cssClass: "cssClass", swimLanes: "swimLanes", showSwimLanes: "showSwimLanes", swimLaneTransition: "swimLaneTransition" }, outputs: { timeChange: "timeChange", playPause: "playPause", multiplierChange: "multiplierChange", dateTimeClick: "dateTimeClick", showSwimLanesChange: "showSwimLanesChange", swimLaneItemClick: "swimLaneItemClick", swimLaneItemHover: "swimLaneItemHover", swimLaneItemDoubleClick: "swimLaneItemDoubleClick", swimLaneItemContextMenu: "swimLaneItemContextMenu", swimLaneReorder: "swimLaneReorder" }, viewQueries: [{ propertyName: "canvasComp", first: true, predicate: TimelineCanvasComponent, descendants: true }, { propertyName: "controlsRef", first: true, predicate: ["controlsEl"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
1407
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: TimelineComponent, isStandalone: true, selector: "ct-timeline", inputs: { startTime: "startTime", endTime: "endTime", currentTime: "currentTime", clock: "clock", height: "height", showControls: "showControls", showJumpToStart: "showJumpToStart", showJumpToEnd: "showJumpToEnd", enableDrag: "enableDrag", dateTimeFormat: "dateTimeFormat", jumpToTime: "jumpToTime", maxTicks: "maxTicks", ffSpeeds: "ffSpeeds", rwSpeeds: "rwSpeeds", theme: "theme", cssClass: "cssClass", swimLanes: "swimLanes", showSwimLanes: "showSwimLanes", swimLaneTransition: "swimLaneTransition" }, outputs: { timeChange: "timeChange", playPause: "playPause", multiplierChange: "multiplierChange", dateTimeClick: "dateTimeClick", showSwimLanesChange: "showSwimLanesChange", swimLaneItemClick: "swimLaneItemClick", swimLaneItemHover: "swimLaneItemHover", swimLaneItemDoubleClick: "swimLaneItemDoubleClick", swimLaneItemContextMenu: "swimLaneItemContextMenu", swimLaneReorder: "swimLaneReorder" }, viewQueries: [{ propertyName: "canvasComp", first: true, predicate: TimelineCanvasComponent, descendants: true }, { propertyName: "controlsRef", first: true, predicate: ["controlsEl"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
1388
1408
|
<div
|
|
1389
1409
|
[class]="cssClass"
|
|
1390
1410
|
[style.width]="'100%'"
|
|
@@ -1404,6 +1424,8 @@ class TimelineComponent {
|
|
|
1404
1424
|
[isLive]="isLive"
|
|
1405
1425
|
[hasStartTime]="startTime != null"
|
|
1406
1426
|
[hasEndTime]="endTime != null"
|
|
1427
|
+
[showJumpToStart]="showJumpToStart"
|
|
1428
|
+
[showJumpToEnd]="showJumpToEnd"
|
|
1407
1429
|
[dateTimeFormat]="dateTimeFormat"
|
|
1408
1430
|
[theme]="finalTheme"
|
|
1409
1431
|
[swimLanesVisible]="hasSwimLanes ? swimLanesExpanded : undefined"
|
|
@@ -1440,7 +1462,7 @@ class TimelineComponent {
|
|
|
1440
1462
|
/>
|
|
1441
1463
|
}
|
|
1442
1464
|
</div>
|
|
1443
|
-
`, isInline: true, styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: TimelineControlsComponent, selector: "ct-timeline-controls", inputs: ["currentTime", "isPlaying", "multiplier", "dateTimeFormat", "isLive", "hasStartTime", "hasEndTime", "theme", "swimLanesVisible"], outputs: ["dateTimeClick", "playPause", "jumpToStart", "rewind", "fastForward", "jumpToEnd", "jumpToLive", "resetSpeed", "toggleSwimLanes"] }, { kind: "component", type: TimelineCanvasComponent, selector: "ct-timeline-canvas", inputs: ["currentTime", "defaultStartMs", "defaultEndMs", "theme", "maxTicks", "swimLanes", "showSwimLanes"], outputs: ["timeChange", "dragStart", "dragEnd", "swimLaneItemClick", "swimLaneItemHover", "swimLaneItemDoubleClick", "swimLaneItemContextMenu", "swimLaneReorder"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1465
|
+
`, isInline: true, styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: TimelineControlsComponent, selector: "ct-timeline-controls", inputs: ["currentTime", "isPlaying", "multiplier", "dateTimeFormat", "isLive", "hasStartTime", "hasEndTime", "showJumpToStart", "showJumpToEnd", "theme", "swimLanesVisible"], outputs: ["dateTimeClick", "playPause", "jumpToStart", "rewind", "fastForward", "jumpToEnd", "jumpToLive", "resetSpeed", "toggleSwimLanes"] }, { kind: "component", type: TimelineCanvasComponent, selector: "ct-timeline-canvas", inputs: ["currentTime", "defaultStartMs", "defaultEndMs", "theme", "maxTicks", "swimLanes", "showSwimLanes"], outputs: ["timeChange", "dragStart", "dragEnd", "swimLaneItemClick", "swimLaneItemHover", "swimLaneItemDoubleClick", "swimLaneItemContextMenu", "swimLaneReorder"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1444
1466
|
}
|
|
1445
1467
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: TimelineComponent, decorators: [{
|
|
1446
1468
|
type: Component,
|
|
@@ -1464,6 +1486,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
1464
1486
|
[isLive]="isLive"
|
|
1465
1487
|
[hasStartTime]="startTime != null"
|
|
1466
1488
|
[hasEndTime]="endTime != null"
|
|
1489
|
+
[showJumpToStart]="showJumpToStart"
|
|
1490
|
+
[showJumpToEnd]="showJumpToEnd"
|
|
1467
1491
|
[dateTimeFormat]="dateTimeFormat"
|
|
1468
1492
|
[theme]="finalTheme"
|
|
1469
1493
|
[swimLanesVisible]="hasSwimLanes ? swimLanesExpanded : undefined"
|
|
@@ -1513,6 +1537,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
|
|
|
1513
1537
|
type: Input
|
|
1514
1538
|
}], showControls: [{
|
|
1515
1539
|
type: Input
|
|
1540
|
+
}], showJumpToStart: [{
|
|
1541
|
+
type: Input
|
|
1542
|
+
}], showJumpToEnd: [{
|
|
1543
|
+
type: Input
|
|
1516
1544
|
}], enableDrag: [{
|
|
1517
1545
|
type: Input
|
|
1518
1546
|
}], dateTimeFormat: [{
|