@overdoser/react-toolkit 0.9.0 → 0.11.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/AGENTS.md +2 -2
- package/CHANGELOG.md +108 -0
- package/README.md +2 -0
- package/components/Timeline/GanttTimeline.js +195 -186
- package/components/Timeline/HistoryTimeline.js +178 -177
- package/components/Timeline/Timeline.module.scss.js +112 -96
- package/components/Timeline/TimelineShared.d.ts +14 -4
- package/components/Timeline/TimelineShared.js +135 -95
- package/components/Timeline/TraceTimeline.d.ts +40 -9
- package/components/Timeline/TraceTimeline.js +610 -357
- package/components/Timeline/TraceTimeline.module.scss.js +154 -88
- package/components/Timeline/index.d.ts +1 -1
- package/components/Timeline/timelineCore.d.ts +12 -2
- package/components/Timeline/timelineCore.js +103 -45
- package/index.css +1 -1
- package/index.d.ts +1 -1
- package/index.layered.css +1 -1
- package/llms.txt +14 -8
- package/manifest.json +29 -8
- package/package.json +2 -1
|
@@ -1,105 +1,171 @@
|
|
|
1
|
-
const r = "crk-scroller-kwWVy",
|
|
1
|
+
const r = "crk-scroller-kwWVy", c = "crk-inner-vJ0BK", o = "crk-gridline-pcX-9", a = "crk-nowLine-05lmp", e = "crk-cursorLine-k7KZo", t = "crk-eventLine-znElH", i = "crk-axis--LqeF", s = "crk-axisDivider-gBKss", n = "crk-axisSticky-J-rsF", l = "crk-axisUtc-ySg72", d = "crk-axisViewDate-oRqHL", k = "crk-axisViewTime-bL50a", g = "crk-axisTickLabel-9V7QB", p = "crk-axisDateLabel-QPPf7", y = "crk-axisTickMark-HGAZI", w = "crk-axisSubLabel-mmUpt", x = "crk-axisMinorMark-LmQdS", b = "crk-axisMinorMedium-yyNB-", h = "crk-axisChip-Xr9r0", m = "crk-axisChipEvent-K9r-4", u = "crk-lane-hvtL1", L = "crk-axisLine-ZRK0p", v = "crk-bar-pqjsX", S = "crk-barPending-NsYu7", T = "crk-barDot-ZtYdm", P = "crk-stem-24Ud2", B = "crk-elbow-nQxQZ", E = "crk-chip-vC8yf", H = "crk-chipArrow-pyTpt", C = "crk-chipBadge-Tz11H", D = "crk-chipOp-qkIIM", M = "crk-chipTime-IoXbi", A = "crk-drawerCustom-w5gWa", K = "crk-drawerHead-mfyc3", R = "crk-drawerHeadRow-w-lfX", V = "crk-methodBadge-lfL4x", X = "crk-statusBadge-XiUl9", I = "crk-statusPending-Yg9At", U = "crk-statusError-G7XH8", G = "crk-drawerRoute-L-hK0", O = "crk-drawerSpacer-f6nIh", Q = "crk-drawerUrl-ajRgO", f = "crk-drawerRid-UsUb1", F = "crk-drawerXrid-JEUOj", Z = "crk-drawerTiming-FCpcS", N = "crk-drawerBody-Cx5-E", q = "crk-drawerSection-Zjpm1", J = "crk-kvRow-DXfXI", j = "crk-kvKey-MmSqV", W = "crk-kvKeyQuery-0hpds", Y = "crk-kvVal-PlEQT", z = "crk-awaiting-FNO2u", _ = "crk-awaitingDot-b4OtX", $ = "crk-dockAside-Q-I1l", rr = "crk-dockHead-kyJbl", cr = "crk-dockTitle-aZfap", or = "crk-dockCount-sTZG3", ar = "crk-dockScroll-EbMO5", er = "crk-dockEmpty-4I13b", tr = "crk-bodyHead-IAsVD", ir = "crk-bodyLabel-QeGYK", sr = "crk-payloadCopy-5FM-J", nr = "crk-copyStop-aE-Th", lr = "crk-logAside-Nmqov", dr = "crk-logBody-X2Ftb", kr = "crk-logEntry-eASJr", gr = "crk-logEntrySelected-AdHlH", pr = "crk-logEntryFlash-26ElD", yr = "crk-logTop-48t09", wr = "crk-logNum-1-eb7", xr = "crk-badgeSm-vw04n", br = "crk-logPair-i-P-t", hr = "crk-logClock-mrTdy", mr = "crk-logOp-qfkTp", ur = "crk-logPath-eHd2Z", Lr = "crk-logPayloadHead-jKUKx", vr = "crk-logPayloadLabel-wteWa", Sr = "crk-logPre-8h-ke", Tr = "crk-rail-IIJaP", Pr = "crk-railBtn-WNtG7", Br = "crk-railBtnActive-HnV74", Er = "crk-railGlyphDetails-h8Ip-", Hr = "crk-railGlyphLog-auInm", Cr = {
|
|
2
2
|
scroller: r,
|
|
3
|
-
inner:
|
|
4
|
-
gridline:
|
|
5
|
-
nowLine:
|
|
6
|
-
cursorLine:
|
|
7
|
-
eventLine:
|
|
8
|
-
axis:
|
|
9
|
-
axisDivider:
|
|
10
|
-
axisSticky:
|
|
11
|
-
axisUtc:
|
|
3
|
+
inner: c,
|
|
4
|
+
gridline: o,
|
|
5
|
+
nowLine: a,
|
|
6
|
+
cursorLine: e,
|
|
7
|
+
eventLine: t,
|
|
8
|
+
axis: i,
|
|
9
|
+
axisDivider: s,
|
|
10
|
+
axisSticky: n,
|
|
11
|
+
axisUtc: l,
|
|
12
12
|
axisViewDate: d,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
axisViewTime: k,
|
|
14
|
+
axisTickLabel: g,
|
|
15
|
+
axisDateLabel: p,
|
|
16
|
+
axisTickMark: y,
|
|
17
|
+
axisSubLabel: w,
|
|
18
|
+
axisMinorMark: x,
|
|
19
|
+
axisMinorMedium: b,
|
|
20
|
+
axisChip: h,
|
|
21
|
+
axisChipEvent: m,
|
|
19
22
|
lane: u,
|
|
20
|
-
axisLine:
|
|
21
|
-
bar:
|
|
22
|
-
barPending:
|
|
23
|
-
barDot:
|
|
24
|
-
stem:
|
|
25
|
-
elbow:
|
|
26
|
-
chip:
|
|
27
|
-
chipArrow:
|
|
28
|
-
chipBadge:
|
|
29
|
-
chipOp:
|
|
30
|
-
chipTime:
|
|
31
|
-
drawerCustom:
|
|
23
|
+
axisLine: L,
|
|
24
|
+
bar: v,
|
|
25
|
+
barPending: S,
|
|
26
|
+
barDot: T,
|
|
27
|
+
stem: P,
|
|
28
|
+
elbow: B,
|
|
29
|
+
chip: E,
|
|
30
|
+
chipArrow: H,
|
|
31
|
+
chipBadge: C,
|
|
32
|
+
chipOp: D,
|
|
33
|
+
chipTime: M,
|
|
34
|
+
drawerCustom: A,
|
|
32
35
|
drawerHead: K,
|
|
33
|
-
drawerHeadRow:
|
|
34
|
-
methodBadge:
|
|
35
|
-
statusBadge:
|
|
36
|
-
statusPending:
|
|
37
|
-
statusError:
|
|
38
|
-
drawerRoute:
|
|
39
|
-
drawerSpacer:
|
|
40
|
-
drawerUrl:
|
|
41
|
-
drawerRid:
|
|
42
|
-
drawerXrid:
|
|
36
|
+
drawerHeadRow: R,
|
|
37
|
+
methodBadge: V,
|
|
38
|
+
statusBadge: X,
|
|
39
|
+
statusPending: I,
|
|
40
|
+
statusError: U,
|
|
41
|
+
drawerRoute: G,
|
|
42
|
+
drawerSpacer: O,
|
|
43
|
+
drawerUrl: Q,
|
|
44
|
+
drawerRid: f,
|
|
45
|
+
drawerXrid: F,
|
|
43
46
|
drawerTiming: Z,
|
|
44
|
-
drawerBody:
|
|
45
|
-
drawerSection:
|
|
46
|
-
kvRow:
|
|
47
|
-
kvKey:
|
|
48
|
-
kvKeyQuery:
|
|
47
|
+
drawerBody: N,
|
|
48
|
+
drawerSection: q,
|
|
49
|
+
kvRow: J,
|
|
50
|
+
kvKey: j,
|
|
51
|
+
kvKeyQuery: W,
|
|
49
52
|
kvVal: Y,
|
|
50
53
|
awaiting: z,
|
|
51
|
-
awaitingDot:
|
|
54
|
+
awaitingDot: _,
|
|
55
|
+
dockAside: $,
|
|
56
|
+
dockHead: rr,
|
|
57
|
+
dockTitle: cr,
|
|
58
|
+
dockCount: or,
|
|
59
|
+
dockScroll: ar,
|
|
60
|
+
dockEmpty: er,
|
|
61
|
+
bodyHead: tr,
|
|
62
|
+
bodyLabel: ir,
|
|
63
|
+
payloadCopy: sr,
|
|
64
|
+
copyStop: nr,
|
|
65
|
+
logAside: lr,
|
|
66
|
+
logBody: dr,
|
|
67
|
+
logEntry: kr,
|
|
68
|
+
logEntrySelected: gr,
|
|
69
|
+
logEntryFlash: pr,
|
|
70
|
+
logTop: yr,
|
|
71
|
+
logNum: wr,
|
|
72
|
+
badgeSm: xr,
|
|
73
|
+
logPair: br,
|
|
74
|
+
logClock: hr,
|
|
75
|
+
logOp: mr,
|
|
76
|
+
logPath: ur,
|
|
77
|
+
logPayloadHead: Lr,
|
|
78
|
+
logPayloadLabel: vr,
|
|
79
|
+
logPre: Sr,
|
|
80
|
+
rail: Tr,
|
|
81
|
+
railBtn: Pr,
|
|
82
|
+
railBtnActive: Br,
|
|
83
|
+
railGlyphDetails: Er,
|
|
84
|
+
railGlyphLog: Hr
|
|
52
85
|
};
|
|
53
86
|
export {
|
|
54
87
|
z as awaiting,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
88
|
+
_ as awaitingDot,
|
|
89
|
+
i as axis,
|
|
90
|
+
h as axisChip,
|
|
91
|
+
m as axisChipEvent,
|
|
92
|
+
p as axisDateLabel,
|
|
93
|
+
s as axisDivider,
|
|
94
|
+
L as axisLine,
|
|
95
|
+
x as axisMinorMark,
|
|
96
|
+
b as axisMinorMedium,
|
|
97
|
+
n as axisSticky,
|
|
98
|
+
w as axisSubLabel,
|
|
99
|
+
g as axisTickLabel,
|
|
100
|
+
y as axisTickMark,
|
|
101
|
+
l as axisUtc,
|
|
67
102
|
d as axisViewDate,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
103
|
+
k as axisViewTime,
|
|
104
|
+
xr as badgeSm,
|
|
105
|
+
v as bar,
|
|
106
|
+
T as barDot,
|
|
107
|
+
S as barPending,
|
|
108
|
+
tr as bodyHead,
|
|
109
|
+
ir as bodyLabel,
|
|
110
|
+
E as chip,
|
|
111
|
+
H as chipArrow,
|
|
112
|
+
C as chipBadge,
|
|
113
|
+
D as chipOp,
|
|
114
|
+
M as chipTime,
|
|
115
|
+
nr as copyStop,
|
|
116
|
+
e as cursorLine,
|
|
117
|
+
Cr as default,
|
|
118
|
+
$ as dockAside,
|
|
119
|
+
or as dockCount,
|
|
120
|
+
er as dockEmpty,
|
|
121
|
+
rr as dockHead,
|
|
122
|
+
ar as dockScroll,
|
|
123
|
+
cr as dockTitle,
|
|
124
|
+
N as drawerBody,
|
|
125
|
+
A as drawerCustom,
|
|
80
126
|
K as drawerHead,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
127
|
+
R as drawerHeadRow,
|
|
128
|
+
f as drawerRid,
|
|
129
|
+
G as drawerRoute,
|
|
130
|
+
q as drawerSection,
|
|
131
|
+
O as drawerSpacer,
|
|
86
132
|
Z as drawerTiming,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
133
|
+
Q as drawerUrl,
|
|
134
|
+
F as drawerXrid,
|
|
135
|
+
B as elbow,
|
|
136
|
+
t as eventLine,
|
|
137
|
+
o as gridline,
|
|
138
|
+
c as inner,
|
|
139
|
+
j as kvKey,
|
|
140
|
+
W as kvKeyQuery,
|
|
141
|
+
J as kvRow,
|
|
96
142
|
Y as kvVal,
|
|
97
143
|
u as lane,
|
|
98
|
-
|
|
99
|
-
|
|
144
|
+
lr as logAside,
|
|
145
|
+
dr as logBody,
|
|
146
|
+
hr as logClock,
|
|
147
|
+
kr as logEntry,
|
|
148
|
+
pr as logEntryFlash,
|
|
149
|
+
gr as logEntrySelected,
|
|
150
|
+
wr as logNum,
|
|
151
|
+
mr as logOp,
|
|
152
|
+
br as logPair,
|
|
153
|
+
ur as logPath,
|
|
154
|
+
Lr as logPayloadHead,
|
|
155
|
+
vr as logPayloadLabel,
|
|
156
|
+
Sr as logPre,
|
|
157
|
+
yr as logTop,
|
|
158
|
+
V as methodBadge,
|
|
159
|
+
a as nowLine,
|
|
160
|
+
sr as payloadCopy,
|
|
161
|
+
Tr as rail,
|
|
162
|
+
Pr as railBtn,
|
|
163
|
+
Br as railBtnActive,
|
|
164
|
+
Er as railGlyphDetails,
|
|
165
|
+
Hr as railGlyphLog,
|
|
100
166
|
r as scroller,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
167
|
+
X as statusBadge,
|
|
168
|
+
U as statusError,
|
|
169
|
+
I as statusPending,
|
|
170
|
+
P as stem
|
|
105
171
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { TimelineSummaryPlacement } from './TimelineShared';
|
|
2
2
|
export { TraceTimeline } from './TraceTimeline';
|
|
3
|
-
export type { TraceTimelineProps, TraceTimelineEvent, TraceTimelineClasses, TraceTimelineItemContext, } from './TraceTimeline';
|
|
3
|
+
export type { TraceTimelineProps, TraceTimelineEvent, TraceTimelineClasses, TraceTimelineDock, TraceTimelineItemContext, } from './TraceTimeline';
|
|
4
4
|
export { HistoryTimeline } from './HistoryTimeline';
|
|
5
5
|
export type { HistoryTimelineProps, HistoryTimelineEvent, HistoryTimelineClasses, HistoryTimelineOrientation, HistoryTimelineSpacing, HistoryTimelineItemContext, } from './HistoryTimeline';
|
|
6
6
|
export { GanttTimeline } from './GanttTimeline';
|
|
@@ -25,8 +25,17 @@ export declare function fmtDateISO(t: number): string;
|
|
|
25
25
|
export declare function fmtISO(t: number, ms?: boolean): string;
|
|
26
26
|
/** Adaptive duration: `412ms`, `3.1s`, `4m 12s`, `3h 20m`, `2.5d`, `1.2y`. */
|
|
27
27
|
export declare function fmtDur(ms: number | null | undefined): string;
|
|
28
|
-
/** Tick step table spanning 1
|
|
28
|
+
/** Tick step table spanning 1 millisecond → 500 years. */
|
|
29
29
|
export declare const TICK_STEPS: number[];
|
|
30
|
+
/**
|
|
31
|
+
* Subdivision for a tick step: how many equal `parts` it splits into for minor
|
|
32
|
+
* marks, and which part index gets a medium mark (`0` = none). Steps outside
|
|
33
|
+
* `TICK_STEPS` fall back to a plain quarter split.
|
|
34
|
+
*/
|
|
35
|
+
export declare function tickSubdiv(step: number): {
|
|
36
|
+
parts: number;
|
|
37
|
+
medium: number;
|
|
38
|
+
};
|
|
30
39
|
export interface Tick {
|
|
31
40
|
t: number;
|
|
32
41
|
label: string;
|
|
@@ -38,7 +47,8 @@ export interface TickResult {
|
|
|
38
47
|
/**
|
|
39
48
|
* Pick a step from the table so ticks are at least `minPx` apart across
|
|
40
49
|
* `widthPx`, and enumerate them. Labels use the local clock below day
|
|
41
|
-
* granularity and `Jul 27`-style
|
|
50
|
+
* granularity (with milliseconds below second granularity) and `Jul 27`-style
|
|
51
|
+
* dates above it.
|
|
42
52
|
*/
|
|
43
53
|
export declare function ticks(t0: number, t1: number, widthPx: number, minPx?: number): TickResult;
|
|
44
54
|
export interface HighlightPart {
|
|
@@ -1,31 +1,40 @@
|
|
|
1
|
-
const O = 1e3,
|
|
2
|
-
function
|
|
1
|
+
const O = 1e3, U = 6e4, N = 36e5, S = 864e5, c = (t) => String(t).padStart(2, "0"), A = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
2
|
+
function u(t, e) {
|
|
3
3
|
const n = new Date(t);
|
|
4
|
-
return c(n.getHours()) + ":" + c(n.getMinutes()) + ":" + c(n.getSeconds());
|
|
4
|
+
return c(n.getHours()) + ":" + c(n.getMinutes()) + ":" + c(n.getSeconds()) + (e ? "." + String(n.getMilliseconds()).padStart(3, "0") : "");
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function s(t) {
|
|
7
7
|
const e = new Date(t);
|
|
8
|
-
return
|
|
8
|
+
return A[e.getMonth()] + " " + e.getDate();
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function C(t) {
|
|
11
11
|
const e = new Date(t).getFullYear(), n = e !== (/* @__PURE__ */ new Date()).getFullYear();
|
|
12
|
-
return n && Date.now() - t > 2 * 365 * 864e5 ?
|
|
12
|
+
return n && Date.now() - t > 2 * 365 * 864e5 ? s(t) + " " + e : s(t) + (n ? " " + e : "") + " · " + u(t);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Y(t, e) {
|
|
15
15
|
const n = new Date(t);
|
|
16
16
|
return c(n.getUTCHours()) + ":" + c(n.getUTCMinutes()) + ":" + c(n.getUTCSeconds()) + (e ? "." + String(n.getUTCMilliseconds()).padStart(3, "0") : "");
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function h(t) {
|
|
19
19
|
const e = new Date(t);
|
|
20
20
|
return e.getUTCFullYear() + "-" + c(e.getUTCMonth() + 1) + "-" + c(e.getUTCDate());
|
|
21
21
|
}
|
|
22
22
|
function M(t, e) {
|
|
23
|
-
return
|
|
23
|
+
return h(t) + "T" + Y(t, e) + "Z";
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function d(t) {
|
|
26
26
|
return t == null ? "" : t < 1e3 ? Math.round(t) + "ms" : t < 6e4 ? (t / 1e3).toFixed(t < 10 * 1e3 ? 1 : 0) + "s" : t < 36e5 ? Math.floor(t / 6e4) + "m " + Math.round(t % 6e4 / 1e3) + "s" : t < 2 * 864e5 ? Math.floor(t / 36e5) + "h " + Math.round(t % 36e5 / 6e4) + "m" : t < 365 * 864e5 ? (t / 864e5).toFixed(1) + "d" : (t / (365.25 * 864e5)).toFixed(t < 3650 * 864e5 ? 1 : 0) + "y";
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const l = [
|
|
29
|
+
1,
|
|
30
|
+
2,
|
|
31
|
+
5,
|
|
32
|
+
10,
|
|
33
|
+
25,
|
|
34
|
+
50,
|
|
35
|
+
100,
|
|
36
|
+
250,
|
|
37
|
+
500,
|
|
29
38
|
1e3,
|
|
30
39
|
2 * 1e3,
|
|
31
40
|
5 * 1e3,
|
|
@@ -59,30 +68,78 @@ const s = [
|
|
|
59
68
|
36525 * 864e5,
|
|
60
69
|
91311 * 864e5,
|
|
61
70
|
182625 * 864e5
|
|
62
|
-
]
|
|
63
|
-
|
|
71
|
+
], E = /* @__PURE__ */ new Map([
|
|
72
|
+
[1, [0, 0]],
|
|
73
|
+
[2, [2, 0]],
|
|
74
|
+
[5, [5, 0]],
|
|
75
|
+
[10, [10, 5]],
|
|
76
|
+
[25, [5, 0]],
|
|
77
|
+
[50, [10, 5]],
|
|
78
|
+
[100, [10, 5]],
|
|
79
|
+
[250, [5, 0]],
|
|
80
|
+
[500, [10, 5]],
|
|
81
|
+
[1e3, [10, 5]],
|
|
82
|
+
[2 * 1e3, [4, 2]],
|
|
83
|
+
[5 * 1e3, [5, 0]],
|
|
84
|
+
[10 * 1e3, [10, 5]],
|
|
85
|
+
[15 * 1e3, [3, 0]],
|
|
86
|
+
[30 * 1e3, [6, 3]],
|
|
87
|
+
[6e4, [6, 3]],
|
|
88
|
+
[2 * 6e4, [4, 2]],
|
|
89
|
+
[5 * 6e4, [5, 0]],
|
|
90
|
+
[10 * 6e4, [10, 5]],
|
|
91
|
+
[15 * 6e4, [3, 0]],
|
|
92
|
+
[30 * 6e4, [6, 3]],
|
|
93
|
+
[36e5, [6, 3]],
|
|
94
|
+
[2 * 36e5, [4, 2]],
|
|
95
|
+
[3 * 36e5, [3, 0]],
|
|
96
|
+
[6 * 36e5, [6, 3]],
|
|
97
|
+
[12 * 36e5, [4, 2]],
|
|
98
|
+
[864e5, [4, 2]],
|
|
99
|
+
[2 * 864e5, [4, 2]],
|
|
100
|
+
[7 * 864e5, [7, 0]],
|
|
101
|
+
[14 * 864e5, [14, 7]],
|
|
102
|
+
[30 * 864e5, [6, 3]],
|
|
103
|
+
[90 * 864e5, [3, 0]],
|
|
104
|
+
[180 * 864e5, [6, 3]],
|
|
105
|
+
[365 * 864e5, [4, 2]],
|
|
106
|
+
[730 * 864e5, [4, 2]],
|
|
107
|
+
[1825 * 864e5, [5, 0]],
|
|
108
|
+
[3650 * 864e5, [10, 5]],
|
|
109
|
+
[9131 * 864e5, [5, 0]],
|
|
110
|
+
[18262 * 864e5, [10, 5]],
|
|
111
|
+
[36525 * 864e5, [10, 5]],
|
|
112
|
+
[91311 * 864e5, [5, 0]],
|
|
113
|
+
[182625 * 864e5, [5, 0]]
|
|
114
|
+
]);
|
|
115
|
+
function g(t) {
|
|
116
|
+
const e = E.get(t) || [4, 0];
|
|
117
|
+
return { parts: e[0], medium: e[1] };
|
|
118
|
+
}
|
|
119
|
+
function T(t, e, n, a) {
|
|
64
120
|
a = a || 88;
|
|
65
|
-
const
|
|
66
|
-
let
|
|
67
|
-
for (;
|
|
68
|
-
|
|
121
|
+
const D = Math.max(1, e - t), r = l.find((f) => f / D * n >= a) || l[l.length - 1], o = [];
|
|
122
|
+
let i = Math.ceil(t / r) * r;
|
|
123
|
+
for (; i <= e; i += r)
|
|
124
|
+
o.push({ t: i, label: r >= 864e5 ? s(i) : u(i, r < 1e3) });
|
|
125
|
+
return { step: r, list: o };
|
|
69
126
|
}
|
|
70
|
-
function
|
|
127
|
+
function I(t, e) {
|
|
71
128
|
const n = String(t ?? "");
|
|
72
129
|
if (e = (e || "").trim(), !e) return [{ t: n, hit: !1 }];
|
|
73
|
-
const a = e.toLowerCase(),
|
|
130
|
+
const a = e.toLowerCase(), D = n.toLowerCase(), r = [];
|
|
74
131
|
let o = 0;
|
|
75
132
|
for (; ; ) {
|
|
76
|
-
const
|
|
77
|
-
if (
|
|
78
|
-
o < n.length &&
|
|
133
|
+
const i = D.indexOf(a, o);
|
|
134
|
+
if (i < 0) {
|
|
135
|
+
o < n.length && r.push({ t: n.slice(o), hit: !1 });
|
|
79
136
|
break;
|
|
80
137
|
}
|
|
81
|
-
|
|
138
|
+
i > o && r.push({ t: n.slice(o, i), hit: !1 }), r.push({ t: n.slice(i, i + e.length), hit: !0 }), o = i + e.length;
|
|
82
139
|
}
|
|
83
|
-
return
|
|
140
|
+
return r.length ? r : [{ t: n, hit: !1 }];
|
|
84
141
|
}
|
|
85
|
-
function
|
|
142
|
+
function k(t, e) {
|
|
86
143
|
if (e = (e || "").trim(), !e) return !0;
|
|
87
144
|
let n;
|
|
88
145
|
try {
|
|
@@ -92,7 +149,7 @@ function Y(t, e) {
|
|
|
92
149
|
}
|
|
93
150
|
return e.toLowerCase().split(/\s+/).filter(Boolean).every((a) => n.includes(a));
|
|
94
151
|
}
|
|
95
|
-
const
|
|
152
|
+
const H = [
|
|
96
153
|
"var(--crk-timeline-1, #0e7568)",
|
|
97
154
|
"var(--crk-timeline-2, #4c5bd4)",
|
|
98
155
|
"var(--crk-timeline-3, #c05f2c)",
|
|
@@ -100,10 +157,10 @@ const k = [
|
|
|
100
157
|
"var(--crk-timeline-5, #3e6b8f)",
|
|
101
158
|
"var(--crk-timeline-6, #b03a48)"
|
|
102
159
|
];
|
|
103
|
-
function
|
|
160
|
+
function R(t, e) {
|
|
104
161
|
return `color-mix(in srgb, ${t} ${e}%, white)`;
|
|
105
162
|
}
|
|
106
|
-
const
|
|
163
|
+
const m = {
|
|
107
164
|
body: "var(--crk-timeline-body, #3b352f)",
|
|
108
165
|
stem: "var(--crk-timeline-stem, #c9c1b5)",
|
|
109
166
|
stemHot: "var(--crk-timeline-stem-hot, #8a8175)",
|
|
@@ -114,22 +171,23 @@ const I = {
|
|
|
114
171
|
selectedRing: "var(--crk-timeline-selected-ring, #b8ddd6)"
|
|
115
172
|
};
|
|
116
173
|
export {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
174
|
+
S as DAY,
|
|
175
|
+
N as HOUR,
|
|
176
|
+
U as MINUTE,
|
|
120
177
|
O as SECOND,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
178
|
+
l as TICK_STEPS,
|
|
179
|
+
H as TIMELINE_PALETTE_VARS,
|
|
180
|
+
m as TL_COLORS,
|
|
181
|
+
k as eventMatches,
|
|
182
|
+
u as fmtClock,
|
|
183
|
+
Y as fmtClockUTC,
|
|
184
|
+
s as fmtDate,
|
|
185
|
+
h as fmtDateISO,
|
|
186
|
+
C as fmtDateTime,
|
|
187
|
+
d as fmtDur,
|
|
131
188
|
M as fmtISO,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
189
|
+
I as highlightParts,
|
|
190
|
+
g as tickSubdiv,
|
|
191
|
+
T as ticks,
|
|
192
|
+
R as tint
|
|
135
193
|
};
|