awesome-timeline-react 0.7.0 → 0.8.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.
- package/README.md +6 -6
- package/dist/_tsup-dts-rollup.d.mts +43 -30
- package/dist/_tsup-dts-rollup.d.ts +43 -30
- package/dist/index.css +6 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +43 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -52
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -186,17 +186,17 @@ summarizes the **child events** that point at it via `props.parentEventId`:
|
|
|
186
186
|
|
|
187
187
|
```tsx
|
|
188
188
|
const rows = [
|
|
189
|
-
{ id: "
|
|
190
|
-
{ id: "
|
|
191
|
-
{ id: "
|
|
189
|
+
{ id: "group", name: "Group #1001" }, // parent row
|
|
190
|
+
{ id: "s1", name: "Step 1", parentId: "group" }, // child rows
|
|
191
|
+
{ id: "s2", name: "Step 2", parentId: "group" },
|
|
192
192
|
];
|
|
193
193
|
|
|
194
194
|
const events = [
|
|
195
195
|
// the parent's startTime/endTime are derived — supplied values are just a
|
|
196
196
|
// fallback shown until it has children
|
|
197
|
-
{ id: "P", rowId: "
|
|
198
|
-
{ id: "
|
|
199
|
-
{ id: "
|
|
197
|
+
{ id: "P", rowId: "group", startTime: 0, endTime: 0, props: { isGroupParent: true, label: "Group #1001" } },
|
|
198
|
+
{ id: "a", rowId: "s1", startTime: t1, endTime: t2, props: { parentEventId: "P" } },
|
|
199
|
+
{ id: "b", rowId: "s2", startTime: t3, endTime: t4, props: { parentEventId: "P" } },
|
|
200
200
|
];
|
|
201
201
|
```
|
|
202
202
|
|
|
@@ -13,15 +13,15 @@ export declare type AnimationConfig = boolean | {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Assigns a vertical lane (stacking order) to
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* Assigns a vertical lane (stacking order) to every event of a single row:
|
|
17
|
+
* interval partitioning, so a row opens exactly as many lanes as its peak
|
|
18
|
+
* concurrency and NO event is ever laid over another.
|
|
19
19
|
*
|
|
20
20
|
* Each event takes the lowest lane whose last event has already ended; if every
|
|
21
21
|
* lane is still busy it opens a new one. Semantics:
|
|
22
22
|
*
|
|
23
|
-
* -
|
|
24
|
-
*
|
|
23
|
+
* - Every event counts, visible or not, so an event keeps its lane while the
|
|
24
|
+
* window pans.
|
|
25
25
|
* - Touching events (prev.endTime === next.startTime) do not overlap, so they
|
|
26
26
|
* share a lane.
|
|
27
27
|
* - Lowest-free-lane means the assignment is deterministic, and a row with N
|
|
@@ -36,7 +36,7 @@ export declare type AnimationConfig = boolean | {
|
|
|
36
36
|
* `rowEvents` must already be filtered to one row and sorted with
|
|
37
37
|
* helpers/sort-events (startTime asc, endTime asc).
|
|
38
38
|
*/
|
|
39
|
-
export declare const assignLanes: (rowEvents: EventType[]
|
|
39
|
+
export declare const assignLanes: (rowEvents: EventType[]) => LaneResult;
|
|
40
40
|
|
|
41
41
|
/** Eligibility: same expression as the legacy Event component's render guard.
|
|
42
42
|
* A group-parent (summary) event is never resizable — its span is derived from
|
|
@@ -680,8 +680,8 @@ export { RowType as RowType_alias_1 }
|
|
|
680
680
|
* frame — React never reconciles individual event motion.
|
|
681
681
|
*
|
|
682
682
|
* Lane assignment (and therefore row height) is computed lazily per row, only
|
|
683
|
-
* when that row is queried
|
|
684
|
-
*
|
|
683
|
+
* when that row is queried. Bursts of patches against off-screen rows cost
|
|
684
|
+
* nothing beyond an index update.
|
|
685
685
|
*/
|
|
686
686
|
export declare class SceneStore {
|
|
687
687
|
private rowIndexes;
|
|
@@ -739,7 +739,10 @@ export declare class SceneStore {
|
|
|
739
739
|
getRow(rowId: string): RowType | undefined;
|
|
740
740
|
getRowEvents(rowId: string): EventType[];
|
|
741
741
|
getRowStaticEvents(rowId: string): EventType[];
|
|
742
|
-
|
|
742
|
+
/** Lanes over ALL the row's events, not just those in view: a lane assignment that followed the
|
|
743
|
+
* window re-packed the row on every pan frame, so bars jumped between lanes as others scrolled in
|
|
744
|
+
* and out. The row is as tall as its peak overlap anywhere. */
|
|
745
|
+
getLanes(rowId: string): LaneResult;
|
|
743
746
|
/**
|
|
744
747
|
* Report the per-row label heights measured against the live DOM header
|
|
745
748
|
* (key: rowId, value: the minimum row height the wrapped label needs,
|
|
@@ -748,15 +751,15 @@ export declare class SceneStore {
|
|
|
748
751
|
* labels is a no-op and can't feed back into an infinite render loop.
|
|
749
752
|
*/
|
|
750
753
|
setLabelMinHeights(heights: Map<string, number>): void;
|
|
751
|
-
getRowHeight(rowId: string
|
|
754
|
+
getRowHeight(rowId: string): number;
|
|
752
755
|
/** Extra top offset for a row's lanes: when a tall label grows the row past what its lanes need,
|
|
753
756
|
* the lanes sit centred in it rather than hugging the top with the surplus all below. */
|
|
754
|
-
getLaneInset(rowId: string
|
|
757
|
+
getLaneInset(rowId: string): number;
|
|
755
758
|
/**
|
|
756
759
|
* y offset of each row's top edge (content coordinates, before scroll) plus
|
|
757
760
|
* the total content height — drives both drawing and the scroll spacer.
|
|
758
761
|
*/
|
|
759
|
-
getRowOffsets(
|
|
762
|
+
getRowOffsets(): {
|
|
760
763
|
offsetOf: Map<string, number>;
|
|
761
764
|
totalHeight: number;
|
|
762
765
|
};
|
|
@@ -883,11 +886,19 @@ export { Timeline as Timeline_alias_1 }
|
|
|
883
886
|
|
|
884
887
|
export declare const TimelineCanvas: () => React_2.JSX.Element;
|
|
885
888
|
|
|
889
|
+
/**
|
|
890
|
+
* Configurable time-bar rows: a day row over 8-hour blocks instead of hours.
|
|
891
|
+
* The bottom row uses `{ stepSeconds: 8 * 3600 }` with a custom `format`. Grid
|
|
892
|
+
* lines and drop snapping stay on the hour grid, independent of the time-bar
|
|
893
|
+
* rows.
|
|
894
|
+
*/
|
|
895
|
+
export declare const TimelineCustomTimeBar: () => React_2.JSX.Element;
|
|
896
|
+
|
|
886
897
|
/**
|
|
887
898
|
* Per-event drop-target restriction (`props.droppableRowIds`). The blue event
|
|
888
|
-
* can only be dropped onto
|
|
899
|
+
* can only be dropped onto Track A/C (drag it elsewhere → not-allowed cursor,
|
|
889
900
|
* snaps back). The green event is unrestricted. The red event is *misconfigured*
|
|
890
|
-
* — it sits on
|
|
901
|
+
* — it sits on Track D but its droppableRowIds doesn't include Track D, so the
|
|
891
902
|
* library records `metadata.droppableError`; click "Inspect" to see it.
|
|
892
903
|
*/
|
|
893
904
|
export declare const TimelineDroppableRows: () => React_2.JSX.Element;
|
|
@@ -983,6 +994,8 @@ export declare const TimelinePrimary: () => React_2.JSX.Element;
|
|
|
983
994
|
declare type TimelineProps = {
|
|
984
995
|
rows: RowType[];
|
|
985
996
|
events: EventType[];
|
|
997
|
+
/** background bands, drawn under the events at full row height in `theme.staticEventFill`, or in
|
|
998
|
+
* the band's own `props.style.fill` */
|
|
986
999
|
staticEvents?: EventType[];
|
|
987
1000
|
startDate: Date;
|
|
988
1001
|
endDate: Date;
|
|
@@ -1023,9 +1036,9 @@ declare type TimelineProps = {
|
|
|
1023
1036
|
showRTIndicator?: boolean;
|
|
1024
1037
|
eventsResize?: boolean;
|
|
1025
1038
|
/** draw 45° diagonal stripes on the slice of an event bar that overlaps a
|
|
1026
|
-
* static event (e.g.
|
|
1039
|
+
* static event (e.g. a band of unavailable time) on the same row. This gives
|
|
1027
1040
|
* a visible cause for a bar that looks "too wide" because it spans
|
|
1028
|
-
*
|
|
1041
|
+
* that band. Stripe color is `theme.overlapStripeColor`. Default
|
|
1029
1042
|
* false (no striping). */
|
|
1030
1043
|
stripeOverlap?: boolean;
|
|
1031
1044
|
showEventPrompt?: boolean;
|
|
@@ -1033,6 +1046,9 @@ declare type TimelineProps = {
|
|
|
1033
1046
|
panZoom?: PanZoomConfig;
|
|
1034
1047
|
/** configure each row's unit/label in the two-row time bar */
|
|
1035
1048
|
timeBar?: TimeBarConfig;
|
|
1049
|
+
/** draw the two-row time bar above the rows (default true). Off, the timeline is just its rows —
|
|
1050
|
+
* e.g. a secondary strip kept in step with a main timeline through `onWindowChange`/`setWindow`. */
|
|
1051
|
+
showTimeBar?: boolean;
|
|
1036
1052
|
/** layout animations: true (default), false to disable, or durations */
|
|
1037
1053
|
animations?: AnimationConfig;
|
|
1038
1054
|
};
|
|
@@ -1080,6 +1096,11 @@ export declare class TimelineRenderer {
|
|
|
1080
1096
|
*/
|
|
1081
1097
|
export declare const TimelineRowHeaderSlot: () => React_2.JSX.Element;
|
|
1082
1098
|
|
|
1099
|
+
/** A second, headerless timeline under the main one, kept on the same window both ways: a shared
|
|
1100
|
+
* pool (who holds each unit, stacked into lanes) and a level row whose coloured background bands
|
|
1101
|
+
* are per-event static fills, with drops drawn as triangles. */
|
|
1102
|
+
export declare const TimelineSecondaryStrip: () => React_2.JSX.Element;
|
|
1103
|
+
|
|
1083
1104
|
/**
|
|
1084
1105
|
* Selection: `selectable` turns on click selection. A plain click selects one
|
|
1085
1106
|
* event (it lifts with a shadow while every other event dims); Cmd/Ctrl+click
|
|
@@ -1090,14 +1111,6 @@ export declare const TimelineRowHeaderSlot: () => React_2.JSX.Element;
|
|
|
1090
1111
|
*/
|
|
1091
1112
|
export declare const TimelineSelectable: () => React_2.JSX.Element;
|
|
1092
1113
|
|
|
1093
|
-
/**
|
|
1094
|
-
* Configurable time-bar rows: a day row over 8-hour "shift" blocks instead of
|
|
1095
|
-
* hours. The bottom row uses `{ stepSeconds: 8 * 3600 }` with a custom
|
|
1096
|
-
* `format`. Grid lines and drop snapping stay on the hour grid, independent of
|
|
1097
|
-
* the time-bar rows.
|
|
1098
|
-
*/
|
|
1099
|
-
export declare const TimelineShiftBar: () => React_2.JSX.Element;
|
|
1100
|
-
|
|
1101
1114
|
/**
|
|
1102
1115
|
* 10k events across 500 rows with a fake websocket pushing 200 random
|
|
1103
1116
|
* event moves every 100ms through the imperative handle — zero React
|
|
@@ -1106,12 +1119,12 @@ export declare const TimelineShiftBar: () => React_2.JSX.Element;
|
|
|
1106
1119
|
export declare const TimelineStreaming10k: () => React_2.JSX.Element;
|
|
1107
1120
|
|
|
1108
1121
|
/**
|
|
1109
|
-
* `stripeOverlap`: where an event bar overlaps a static event (
|
|
1110
|
-
*
|
|
1111
|
-
* stripes so an over-wide bar has a visible cause
|
|
1112
|
-
*
|
|
1113
|
-
* the
|
|
1114
|
-
*
|
|
1122
|
+
* `stripeOverlap`: where an event bar overlaps a static event (a band of
|
|
1123
|
+
* unavailable time) on the same row, its overlapping slice is hatched with 45°
|
|
1124
|
+
* stripes so an over-wide bar has a visible cause. Toggle it to compare. Row 1's
|
|
1125
|
+
* task straddles the band (striped over the band only); row 2's task starts at
|
|
1126
|
+
* the band's end (no overlap → no stripes), the shape of a task that may not be
|
|
1127
|
+
* split and so moved past the band whole. Stripe color is
|
|
1115
1128
|
* `theme.overlapStripeColor`.
|
|
1116
1129
|
*/
|
|
1117
1130
|
export declare const TimelineStripedOverlap: () => React_2.JSX.Element;
|
|
@@ -13,15 +13,15 @@ export declare type AnimationConfig = boolean | {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Assigns a vertical lane (stacking order) to
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* Assigns a vertical lane (stacking order) to every event of a single row:
|
|
17
|
+
* interval partitioning, so a row opens exactly as many lanes as its peak
|
|
18
|
+
* concurrency and NO event is ever laid over another.
|
|
19
19
|
*
|
|
20
20
|
* Each event takes the lowest lane whose last event has already ended; if every
|
|
21
21
|
* lane is still busy it opens a new one. Semantics:
|
|
22
22
|
*
|
|
23
|
-
* -
|
|
24
|
-
*
|
|
23
|
+
* - Every event counts, visible or not, so an event keeps its lane while the
|
|
24
|
+
* window pans.
|
|
25
25
|
* - Touching events (prev.endTime === next.startTime) do not overlap, so they
|
|
26
26
|
* share a lane.
|
|
27
27
|
* - Lowest-free-lane means the assignment is deterministic, and a row with N
|
|
@@ -36,7 +36,7 @@ export declare type AnimationConfig = boolean | {
|
|
|
36
36
|
* `rowEvents` must already be filtered to one row and sorted with
|
|
37
37
|
* helpers/sort-events (startTime asc, endTime asc).
|
|
38
38
|
*/
|
|
39
|
-
export declare const assignLanes: (rowEvents: EventType[]
|
|
39
|
+
export declare const assignLanes: (rowEvents: EventType[]) => LaneResult;
|
|
40
40
|
|
|
41
41
|
/** Eligibility: same expression as the legacy Event component's render guard.
|
|
42
42
|
* A group-parent (summary) event is never resizable — its span is derived from
|
|
@@ -680,8 +680,8 @@ export { RowType as RowType_alias_1 }
|
|
|
680
680
|
* frame — React never reconciles individual event motion.
|
|
681
681
|
*
|
|
682
682
|
* Lane assignment (and therefore row height) is computed lazily per row, only
|
|
683
|
-
* when that row is queried
|
|
684
|
-
*
|
|
683
|
+
* when that row is queried. Bursts of patches against off-screen rows cost
|
|
684
|
+
* nothing beyond an index update.
|
|
685
685
|
*/
|
|
686
686
|
export declare class SceneStore {
|
|
687
687
|
private rowIndexes;
|
|
@@ -739,7 +739,10 @@ export declare class SceneStore {
|
|
|
739
739
|
getRow(rowId: string): RowType | undefined;
|
|
740
740
|
getRowEvents(rowId: string): EventType[];
|
|
741
741
|
getRowStaticEvents(rowId: string): EventType[];
|
|
742
|
-
|
|
742
|
+
/** Lanes over ALL the row's events, not just those in view: a lane assignment that followed the
|
|
743
|
+
* window re-packed the row on every pan frame, so bars jumped between lanes as others scrolled in
|
|
744
|
+
* and out. The row is as tall as its peak overlap anywhere. */
|
|
745
|
+
getLanes(rowId: string): LaneResult;
|
|
743
746
|
/**
|
|
744
747
|
* Report the per-row label heights measured against the live DOM header
|
|
745
748
|
* (key: rowId, value: the minimum row height the wrapped label needs,
|
|
@@ -748,15 +751,15 @@ export declare class SceneStore {
|
|
|
748
751
|
* labels is a no-op and can't feed back into an infinite render loop.
|
|
749
752
|
*/
|
|
750
753
|
setLabelMinHeights(heights: Map<string, number>): void;
|
|
751
|
-
getRowHeight(rowId: string
|
|
754
|
+
getRowHeight(rowId: string): number;
|
|
752
755
|
/** Extra top offset for a row's lanes: when a tall label grows the row past what its lanes need,
|
|
753
756
|
* the lanes sit centred in it rather than hugging the top with the surplus all below. */
|
|
754
|
-
getLaneInset(rowId: string
|
|
757
|
+
getLaneInset(rowId: string): number;
|
|
755
758
|
/**
|
|
756
759
|
* y offset of each row's top edge (content coordinates, before scroll) plus
|
|
757
760
|
* the total content height — drives both drawing and the scroll spacer.
|
|
758
761
|
*/
|
|
759
|
-
getRowOffsets(
|
|
762
|
+
getRowOffsets(): {
|
|
760
763
|
offsetOf: Map<string, number>;
|
|
761
764
|
totalHeight: number;
|
|
762
765
|
};
|
|
@@ -883,11 +886,19 @@ export { Timeline as Timeline_alias_1 }
|
|
|
883
886
|
|
|
884
887
|
export declare const TimelineCanvas: () => React_2.JSX.Element;
|
|
885
888
|
|
|
889
|
+
/**
|
|
890
|
+
* Configurable time-bar rows: a day row over 8-hour blocks instead of hours.
|
|
891
|
+
* The bottom row uses `{ stepSeconds: 8 * 3600 }` with a custom `format`. Grid
|
|
892
|
+
* lines and drop snapping stay on the hour grid, independent of the time-bar
|
|
893
|
+
* rows.
|
|
894
|
+
*/
|
|
895
|
+
export declare const TimelineCustomTimeBar: () => React_2.JSX.Element;
|
|
896
|
+
|
|
886
897
|
/**
|
|
887
898
|
* Per-event drop-target restriction (`props.droppableRowIds`). The blue event
|
|
888
|
-
* can only be dropped onto
|
|
899
|
+
* can only be dropped onto Track A/C (drag it elsewhere → not-allowed cursor,
|
|
889
900
|
* snaps back). The green event is unrestricted. The red event is *misconfigured*
|
|
890
|
-
* — it sits on
|
|
901
|
+
* — it sits on Track D but its droppableRowIds doesn't include Track D, so the
|
|
891
902
|
* library records `metadata.droppableError`; click "Inspect" to see it.
|
|
892
903
|
*/
|
|
893
904
|
export declare const TimelineDroppableRows: () => React_2.JSX.Element;
|
|
@@ -983,6 +994,8 @@ export declare const TimelinePrimary: () => React_2.JSX.Element;
|
|
|
983
994
|
declare type TimelineProps = {
|
|
984
995
|
rows: RowType[];
|
|
985
996
|
events: EventType[];
|
|
997
|
+
/** background bands, drawn under the events at full row height in `theme.staticEventFill`, or in
|
|
998
|
+
* the band's own `props.style.fill` */
|
|
986
999
|
staticEvents?: EventType[];
|
|
987
1000
|
startDate: Date;
|
|
988
1001
|
endDate: Date;
|
|
@@ -1023,9 +1036,9 @@ declare type TimelineProps = {
|
|
|
1023
1036
|
showRTIndicator?: boolean;
|
|
1024
1037
|
eventsResize?: boolean;
|
|
1025
1038
|
/** draw 45° diagonal stripes on the slice of an event bar that overlaps a
|
|
1026
|
-
* static event (e.g.
|
|
1039
|
+
* static event (e.g. a band of unavailable time) on the same row. This gives
|
|
1027
1040
|
* a visible cause for a bar that looks "too wide" because it spans
|
|
1028
|
-
*
|
|
1041
|
+
* that band. Stripe color is `theme.overlapStripeColor`. Default
|
|
1029
1042
|
* false (no striping). */
|
|
1030
1043
|
stripeOverlap?: boolean;
|
|
1031
1044
|
showEventPrompt?: boolean;
|
|
@@ -1033,6 +1046,9 @@ declare type TimelineProps = {
|
|
|
1033
1046
|
panZoom?: PanZoomConfig;
|
|
1034
1047
|
/** configure each row's unit/label in the two-row time bar */
|
|
1035
1048
|
timeBar?: TimeBarConfig;
|
|
1049
|
+
/** draw the two-row time bar above the rows (default true). Off, the timeline is just its rows —
|
|
1050
|
+
* e.g. a secondary strip kept in step with a main timeline through `onWindowChange`/`setWindow`. */
|
|
1051
|
+
showTimeBar?: boolean;
|
|
1036
1052
|
/** layout animations: true (default), false to disable, or durations */
|
|
1037
1053
|
animations?: AnimationConfig;
|
|
1038
1054
|
};
|
|
@@ -1080,6 +1096,11 @@ export declare class TimelineRenderer {
|
|
|
1080
1096
|
*/
|
|
1081
1097
|
export declare const TimelineRowHeaderSlot: () => React_2.JSX.Element;
|
|
1082
1098
|
|
|
1099
|
+
/** A second, headerless timeline under the main one, kept on the same window both ways: a shared
|
|
1100
|
+
* pool (who holds each unit, stacked into lanes) and a level row whose coloured background bands
|
|
1101
|
+
* are per-event static fills, with drops drawn as triangles. */
|
|
1102
|
+
export declare const TimelineSecondaryStrip: () => React_2.JSX.Element;
|
|
1103
|
+
|
|
1083
1104
|
/**
|
|
1084
1105
|
* Selection: `selectable` turns on click selection. A plain click selects one
|
|
1085
1106
|
* event (it lifts with a shadow while every other event dims); Cmd/Ctrl+click
|
|
@@ -1090,14 +1111,6 @@ export declare const TimelineRowHeaderSlot: () => React_2.JSX.Element;
|
|
|
1090
1111
|
*/
|
|
1091
1112
|
export declare const TimelineSelectable: () => React_2.JSX.Element;
|
|
1092
1113
|
|
|
1093
|
-
/**
|
|
1094
|
-
* Configurable time-bar rows: a day row over 8-hour "shift" blocks instead of
|
|
1095
|
-
* hours. The bottom row uses `{ stepSeconds: 8 * 3600 }` with a custom
|
|
1096
|
-
* `format`. Grid lines and drop snapping stay on the hour grid, independent of
|
|
1097
|
-
* the time-bar rows.
|
|
1098
|
-
*/
|
|
1099
|
-
export declare const TimelineShiftBar: () => React_2.JSX.Element;
|
|
1100
|
-
|
|
1101
1114
|
/**
|
|
1102
1115
|
* 10k events across 500 rows with a fake websocket pushing 200 random
|
|
1103
1116
|
* event moves every 100ms through the imperative handle — zero React
|
|
@@ -1106,12 +1119,12 @@ export declare const TimelineShiftBar: () => React_2.JSX.Element;
|
|
|
1106
1119
|
export declare const TimelineStreaming10k: () => React_2.JSX.Element;
|
|
1107
1120
|
|
|
1108
1121
|
/**
|
|
1109
|
-
* `stripeOverlap`: where an event bar overlaps a static event (
|
|
1110
|
-
*
|
|
1111
|
-
* stripes so an over-wide bar has a visible cause
|
|
1112
|
-
*
|
|
1113
|
-
* the
|
|
1114
|
-
*
|
|
1122
|
+
* `stripeOverlap`: where an event bar overlaps a static event (a band of
|
|
1123
|
+
* unavailable time) on the same row, its overlapping slice is hatched with 45°
|
|
1124
|
+
* stripes so an over-wide bar has a visible cause. Toggle it to compare. Row 1's
|
|
1125
|
+
* task straddles the band (striped over the band only); row 2's task starts at
|
|
1126
|
+
* the band's end (no overlap → no stripes), the shape of a task that may not be
|
|
1127
|
+
* split and so moved past the band whole. Stripe color is
|
|
1115
1128
|
* `theme.overlapStripeColor`.
|
|
1116
1129
|
*/
|
|
1117
1130
|
export declare const TimelineStripedOverlap: () => React_2.JSX.Element;
|
package/dist/index.css
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
color: white;
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
box-shadow: 4px 0px 20px black;
|
|
10
|
+
position: relative;
|
|
11
|
+
z-index: 2;
|
|
10
12
|
}
|
|
11
13
|
.main-wrapper {
|
|
12
14
|
position: relative;
|
|
@@ -76,6 +78,8 @@
|
|
|
76
78
|
background-color: rgb(39, 36, 36);
|
|
77
79
|
color: white;
|
|
78
80
|
box-sizing: border-box;
|
|
81
|
+
position: relative;
|
|
82
|
+
z-index: 2;
|
|
79
83
|
}
|
|
80
84
|
.empty-block {
|
|
81
85
|
width: 100px;
|
|
@@ -85,6 +89,7 @@
|
|
|
85
89
|
}
|
|
86
90
|
.rt-line {
|
|
87
91
|
position: absolute;
|
|
92
|
+
z-index: 3;
|
|
88
93
|
height: calc(100% - 24px);
|
|
89
94
|
top: 24px;
|
|
90
95
|
width: 2px;
|
|
@@ -93,6 +98,7 @@
|
|
|
93
98
|
}
|
|
94
99
|
.rt-arrow {
|
|
95
100
|
position: absolute;
|
|
101
|
+
z-index: 3;
|
|
96
102
|
top: 0px;
|
|
97
103
|
width: 0;
|
|
98
104
|
height: 0;
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/style.css","../src/components/style.css"],"sourcesContent":[".rows-header-wrapper {\n width: 100px;\n height: fit-content;\n border-right: 1px solid yellow;\n background-color: rgb(39, 36, 36);\n color: white;\n box-sizing: border-box;\n box-shadow: 4px 0px 20px black;\n}\n\n.main-wrapper {\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n}\n\n.body-wrapper {\n display: flex;\n flex-direction: row;\n border-left: 1px solid black;\n border-bottom: 1px solid black;\n border-right: 1px solid black;\n width: 100%;\n overflow: auto;\n box-sizing: border-box;\n}\n",".row-header {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100px;\n box-sizing: border-box;\n overflow: hidden;\n}\n\n/* The label wraps to as many lines as it needs; the row height is grown to\n fit it (see SceneStore.setLabelMinHeights) so wrapped labels stay vertically\n centered instead of overflowing into the next row. */\n.row-header-label {\n width: 100%;\n text-align: center;\n white-space: normal;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n\n/* Custom row-header content (the `renderRowLabel` slot). Fills the fixed-width cell and the row's\n (dynamic) height so the content can size itself to the space it's given. */\n.row-header-custom {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 0;\n}\n\n/* base look of an event pill — used by the drag ghost */\n.event {\n position: absolute;\n height: 20px;\n border: 1px solid black;\n z-index: 1;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n border-radius: 5px;\n box-shadow: inset 0px 0px 5px gray;\n}\n\n.event-prompt {\n position: absolute;\n display: none;\n z-index: 3;\n}\n\n.time-bar {\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 50px;\n min-height: 50px;\n border: 1px solid yellow;\n background-color: rgb(39, 36, 36);\n color: white;\n box-sizing: border-box;\n}\n\n.empty-block {\n width: 100px;\n min-width: 100px;\n border-right: 1px solid yellow;\n box-sizing: border-box;\n}\n\n.rt-line {\n position: absolute;\n height: calc(100% - 24px);\n top: 24px;\n width: 2px;\n box-sizing: border-box;\n border-right: dotted 2px red;\n}\n\n.rt-arrow {\n position: absolute;\n top: 0px;\n width: 0;\n height: 0;\n border-left: 15px solid transparent;\n border-right: 15px solid transparent;\n\n border-top: 26px solid red;\n}\n\n.canvas-time-bar {\n height: 100%;\n /* replicates the legacy .hour-row drop shadow onto the content below */\n box-shadow: 0px 4px 20px black;\n}\n\n.canvas-rows-header {\n position: relative;\n flex-shrink: 0;\n}\n\n.canvas-row-header {\n position: absolute;\n width: 100%;\n box-sizing: border-box;\n /* transition is set inline from the `animations` prop */\n}\n\n.canvas-content-column {\n position: relative;\n flex: 1;\n min-width: 0;\n /* the body-wrapper is a flex row; without this the column is stretched to\n the viewport height, the scroll spacer overflows it, and the sticky\n canvas has no room to stick */\n align-self: flex-start;\n}\n\n.canvas-sticky {\n position: sticky;\n top: 0;\n height: 0;\n overflow: visible;\n z-index: 1;\n /* Isolate the sticky's internal layout. The viewport-sized canvases live\n inside it (absolutely positioned); without containment their height leaks\n into the content-sized body-wrapper's size, leaving it taller than its\n rows after a re-stack (a stale gap below the last row). `layout` keeps the\n canvases visible (unlike overflow:hidden) while stopping the leak. */\n contain: layout;\n}\n\n.canvas-sticky canvas {\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.canvas-sticky canvas:last-of-type {\n cursor: grab;\n touch-action: none;\n}\n\n.canvas-drag-ghost {\n display: none;\n height: 20px;\n opacity: 50%;\n background-color: white;\n pointer-events: none;\n z-index: 2;\n}\n"],"mappings":";AAAA,CAAC;AACC,SAAO;AACP,UAAQ;AACR,gBAAc,IAAI,MAAM;AACxB,oBAAkB,IAAI,EAAE,EAAE,EAAE,EAAE;AAC9B,SAAO;AACP,cAAY;AACZ,cAAY,IAAI,IAAI,KAAK;
|
|
1
|
+
{"version":3,"sources":["../src/style.css","../src/components/style.css"],"sourcesContent":[".rows-header-wrapper {\n width: 100px;\n height: fit-content;\n border-right: 1px solid yellow;\n background-color: rgb(39, 36, 36);\n color: white;\n box-sizing: border-box;\n box-shadow: 4px 0px 20px black;\n /* above the canvas, so bars panned under the header slide beneath its shadow */\n position: relative;\n z-index: 2;\n}\n\n.main-wrapper {\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n}\n\n.body-wrapper {\n display: flex;\n flex-direction: row;\n border-left: 1px solid black;\n border-bottom: 1px solid black;\n border-right: 1px solid black;\n width: 100%;\n overflow: auto;\n box-sizing: border-box;\n}\n",".row-header {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100px;\n box-sizing: border-box;\n overflow: hidden;\n}\n\n/* The label wraps to as many lines as it needs; the row height is grown to\n fit it (see SceneStore.setLabelMinHeights) so wrapped labels stay vertically\n centered instead of overflowing into the next row. */\n.row-header-label {\n width: 100%;\n text-align: center;\n white-space: normal;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n\n/* Custom row-header content (the `renderRowLabel` slot). Fills the fixed-width cell and the row's\n (dynamic) height so the content can size itself to the space it's given. */\n.row-header-custom {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 0;\n}\n\n/* base look of an event pill — used by the drag ghost */\n.event {\n position: absolute;\n height: 20px;\n border: 1px solid black;\n z-index: 1;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n border-radius: 5px;\n box-shadow: inset 0px 0px 5px gray;\n}\n\n.event-prompt {\n position: absolute;\n display: none;\n z-index: 3;\n}\n\n.time-bar {\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 50px;\n min-height: 50px;\n border: 1px solid yellow;\n background-color: rgb(39, 36, 36);\n color: white;\n box-sizing: border-box;\n /* its shadow falls over the canvas below rather than under the bars */\n position: relative;\n z-index: 2;\n}\n\n.empty-block {\n width: 100px;\n min-width: 100px;\n border-right: 1px solid yellow;\n box-sizing: border-box;\n}\n\n.rt-line {\n position: absolute;\n z-index: 3;\n height: calc(100% - 24px);\n top: 24px;\n width: 2px;\n box-sizing: border-box;\n border-right: dotted 2px red;\n}\n\n.rt-arrow {\n position: absolute;\n z-index: 3;\n top: 0px;\n width: 0;\n height: 0;\n border-left: 15px solid transparent;\n border-right: 15px solid transparent;\n\n border-top: 26px solid red;\n}\n\n.canvas-time-bar {\n height: 100%;\n /* replicates the legacy .hour-row drop shadow onto the content below */\n box-shadow: 0px 4px 20px black;\n}\n\n.canvas-rows-header {\n position: relative;\n flex-shrink: 0;\n}\n\n.canvas-row-header {\n position: absolute;\n width: 100%;\n box-sizing: border-box;\n /* transition is set inline from the `animations` prop */\n}\n\n.canvas-content-column {\n position: relative;\n flex: 1;\n min-width: 0;\n /* the body-wrapper is a flex row; without this the column is stretched to\n the viewport height, the scroll spacer overflows it, and the sticky\n canvas has no room to stick */\n align-self: flex-start;\n}\n\n.canvas-sticky {\n position: sticky;\n top: 0;\n height: 0;\n overflow: visible;\n z-index: 1;\n /* Isolate the sticky's internal layout. The viewport-sized canvases live\n inside it (absolutely positioned); without containment their height leaks\n into the content-sized body-wrapper's size, leaving it taller than its\n rows after a re-stack (a stale gap below the last row). `layout` keeps the\n canvases visible (unlike overflow:hidden) while stopping the leak. */\n contain: layout;\n}\n\n.canvas-sticky canvas {\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.canvas-sticky canvas:last-of-type {\n cursor: grab;\n touch-action: none;\n}\n\n.canvas-drag-ghost {\n display: none;\n height: 20px;\n opacity: 50%;\n background-color: white;\n pointer-events: none;\n z-index: 2;\n}\n"],"mappings":";AAAA,CAAC;AACC,SAAO;AACP,UAAQ;AACR,gBAAc,IAAI,MAAM;AACxB,oBAAkB,IAAI,EAAE,EAAE,EAAE,EAAE;AAC9B,SAAO;AACP,cAAY;AACZ,cAAY,IAAI,IAAI,KAAK;AAEzB,YAAU;AACV,WAAS;AACX;AAEA,CAAC;AACC,YAAU;AACV,WAAS;AACT,kBAAgB;AAChB,UAAQ;AACR,SAAO;AACT;AAEA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,eAAa,IAAI,MAAM;AACvB,iBAAe,IAAI,MAAM;AACzB,gBAAc,IAAI,MAAM;AACxB,SAAO;AACP,YAAU;AACV,cAAY;AACd;;;AC9BA,CAAC;AACC,WAAS;AACT,mBAAiB;AACjB,eAAa;AACb,SAAO;AACP,cAAY;AACZ,YAAU;AACZ;AAKA,CAAC;AACC,SAAO;AACP,cAAY;AACZ,eAAa;AACb,iBAAe;AACf,cAAY;AACd;AAIA,CAAC;AACC,SAAO;AACP,UAAQ;AACR,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,aAAW;AACb;AAGA,CAAC;AACC,YAAU;AACV,UAAQ;AACR,UAAQ,IAAI,MAAM;AAClB,WAAS;AACT,cAAY;AACZ,WAAS;AACT,mBAAiB;AACjB,iBAAe;AACf,cAAY,MAAM,IAAI,IAAI,IAAI;AAChC;AAEA,CAAC;AACC,YAAU;AACV,WAAS;AACT,WAAS;AACX;AAEA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,SAAO;AACP,UAAQ;AACR,cAAY;AACZ,UAAQ,IAAI,MAAM;AAClB,oBAAkB,IAAI,EAAE,EAAE,EAAE,EAAE;AAC9B,SAAO;AACP,cAAY;AAEZ,YAAU;AACV,WAAS;AACX;AAEA,CAAC;AACC,SAAO;AACP,aAAW;AACX,gBAAc,IAAI,MAAM;AACxB,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,WAAS;AACT,UAAQ,KAAK,KAAK,EAAE;AACpB,OAAK;AACL,SAAO;AACP,cAAY;AACZ,gBAAc,OAAO,IAAI;AAC3B;AAEA,CAAC;AACC,YAAU;AACV,WAAS;AACT,OAAK;AACL,SAAO;AACP,UAAQ;AACR,eAAa,KAAK,MAAM;AACxB,gBAAc,KAAK,MAAM;AAEzB,cAAY,KAAK,MAAM;AACzB;AAEA,CAAC;AACC,UAAQ;AAER,cAAY,IAAI,IAAI,KAAK;AAC3B;AAEA,CAAC;AACC,YAAU;AACV,eAAa;AACf;AAEA,CAAC;AACC,YAAU;AACV,SAAO;AACP,cAAY;AAEd;AAEA,CAAC;AACC,YAAU;AACV,QAAM;AACN,aAAW;AAIX,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,OAAK;AACL,UAAQ;AACR,YAAU;AACV,WAAS;AAMT,WAAS;AACX;AAEA,CAdC,cAcc;AACb,YAAU;AACV,OAAK;AACL,QAAM;AACR;AAEA,CApBC,cAoBc,MAAM;AACnB,UAAQ;AACR,gBAAc;AAChB;AAEA,CAAC;AACC,WAAS;AACT,UAAQ;AACR,WAAS;AACT,oBAAkB;AAClB,kBAAgB;AAChB,WAAS;AACX;","names":[]}
|