@vuer-ai/vuer-uikit 0.0.75 → 0.0.77

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 (124) hide show
  1. package/dist/{chunk-P27TWGME.cjs → chunk-33ZAFHOY.cjs} +2 -2
  2. package/dist/{chunk-IZFHHQ6S.mjs → chunk-3HERIMKO.mjs} +2 -2
  3. package/dist/chunk-3LM4LVYM.mjs +187 -0
  4. package/dist/chunk-6E4NTY34.cjs +494 -0
  5. package/dist/{chunk-VNYP2IVJ.cjs → chunk-7644AY3P.cjs} +2 -2
  6. package/dist/chunk-AHNVEAOM.cjs +855 -0
  7. package/dist/{chunk-5432JOTN.mjs → chunk-AOAM6HV2.mjs} +2 -2
  8. package/dist/chunk-BWBBQCG2.mjs +217 -0
  9. package/dist/{chunk-P5T6EVSQ.mjs → chunk-CSSMBHBD.mjs} +1 -1
  10. package/dist/chunk-CW6FHIAT.cjs +624 -0
  11. package/dist/chunk-D4W2G6CY.cjs +494 -0
  12. package/dist/{chunk-NS2P4CPA.mjs → chunk-D5YKZOUG.mjs} +4 -4
  13. package/dist/{chunk-2274XZ2C.cjs → chunk-E6D3BSYY.cjs} +6 -6
  14. package/dist/chunk-HOJOWLJT.mjs +142 -0
  15. package/dist/chunk-HTAFERCZ.mjs +1 -0
  16. package/dist/chunk-HTHCG2AN.cjs +125 -0
  17. package/dist/chunk-HVVT3D2T.mjs +1 -0
  18. package/dist/chunk-IZJYFVS7.mjs +15 -0
  19. package/dist/chunk-KFPS5CCR.cjs +2 -0
  20. package/dist/chunk-KQXLV6YW.mjs +489 -0
  21. package/dist/chunk-LBENVTO2.mjs +853 -0
  22. package/dist/chunk-MMT74K7A.mjs +247 -0
  23. package/dist/chunk-NEOSSUNE.mjs +599 -0
  24. package/dist/chunk-OEM5OJDP.mjs +489 -0
  25. package/dist/chunk-RM7E3WGH.cjs +71 -0
  26. package/dist/chunk-SYXRPCBO.cjs +220 -0
  27. package/dist/chunk-TE5JNR5C.mjs +117 -0
  28. package/dist/chunk-UHDBWDHS.cjs +190 -0
  29. package/dist/{chunk-Z5P6VCGR.cjs → chunk-V2OROE7H.cjs} +2 -2
  30. package/dist/chunk-VOTZLQ6J.cjs +2 -0
  31. package/dist/chunk-W4CDQ2RJ.mjs +69 -0
  32. package/dist/chunk-XKIB3LSS.cjs +167 -0
  33. package/dist/chunk-YPQYI63K.cjs +249 -0
  34. package/dist/chunk-ZO3X2NDT.cjs +21 -0
  35. package/dist/highlight-cursor/enhanced-components.cjs +8 -8
  36. package/dist/highlight-cursor/enhanced-components.mjs +3 -3
  37. package/dist/highlight-cursor/index.cjs +12 -12
  38. package/dist/highlight-cursor/index.mjs +3 -3
  39. package/dist/index.cjs +442 -417
  40. package/dist/index.d.cts +6 -2
  41. package/dist/index.d.ts +6 -2
  42. package/dist/index.mjs +43 -38
  43. package/dist/ui/UIKitBadge.cjs +5 -5
  44. package/dist/ui/UIKitBadge.mjs +1 -1
  45. package/dist/ui/badge.d.cts +1 -1
  46. package/dist/ui/badge.d.ts +1 -1
  47. package/dist/ui/index.cjs +362 -337
  48. package/dist/ui/index.d.cts +6 -2
  49. package/dist/ui/index.d.ts +6 -2
  50. package/dist/ui/index.mjs +42 -37
  51. package/dist/ui/inputs/index.cjs +5 -5
  52. package/dist/ui/inputs/index.mjs +1 -1
  53. package/dist/ui/inputs/input.d.cts +1 -1
  54. package/dist/ui/inputs/input.d.ts +1 -1
  55. package/dist/ui/layouts/index.cjs +6 -6
  56. package/dist/ui/layouts/index.mjs +2 -2
  57. package/dist/ui/pagination.cjs +9 -9
  58. package/dist/ui/pagination.mjs +2 -2
  59. package/dist/ui/select.d.cts +1 -1
  60. package/dist/ui/select.d.ts +1 -1
  61. package/dist/ui/sidebar.cjs +26 -26
  62. package/dist/ui/sidebar.mjs +2 -2
  63. package/dist/ui/{tree-view.cjs → simple-tree-view.cjs} +3 -3
  64. package/dist/ui/{tree-view.d.cts → simple-tree-view.d.cts} +1 -1
  65. package/dist/ui/{tree-view.d.ts → simple-tree-view.d.ts} +1 -1
  66. package/dist/ui/{tree-view.mjs → simple-tree-view.mjs} +1 -1
  67. package/dist/ui/tabs.cjs +6 -6
  68. package/dist/ui/tabs.mjs +2 -2
  69. package/dist/ui/textarea.d.cts +1 -1
  70. package/dist/ui/textarea.d.ts +1 -1
  71. package/dist/ui/timeline.cjs +4 -4
  72. package/dist/ui/timeline.d.cts +1 -1
  73. package/dist/ui/timeline.d.ts +1 -1
  74. package/dist/ui/timeline.mjs +3 -3
  75. package/dist/ui/tree-view/TreeSearchBar.cjs +22 -0
  76. package/dist/ui/tree-view/TreeSearchBar.d.cts +16 -0
  77. package/dist/ui/tree-view/TreeSearchBar.d.ts +16 -0
  78. package/dist/ui/tree-view/TreeSearchBar.mjs +13 -0
  79. package/dist/ui/tree-view/TreeView.cjs +24 -0
  80. package/dist/ui/tree-view/TreeView.d.cts +48 -0
  81. package/dist/ui/tree-view/TreeView.d.ts +48 -0
  82. package/dist/ui/tree-view/TreeView.mjs +11 -0
  83. package/dist/ui/tree-view/hooks.cjs +14 -0
  84. package/dist/ui/tree-view/hooks.d.cts +38 -0
  85. package/dist/ui/tree-view/hooks.d.ts +38 -0
  86. package/dist/ui/tree-view/hooks.mjs +1 -0
  87. package/dist/ui/tree-view/index.cjs +42 -0
  88. package/dist/ui/tree-view/index.d.cts +6 -0
  89. package/dist/ui/tree-view/index.d.ts +6 -0
  90. package/dist/ui/tree-view/index.mjs +17 -0
  91. package/dist/ui/tree-view/types.cjs +4 -0
  92. package/dist/ui/tree-view/types.d.cts +24 -0
  93. package/dist/ui/tree-view/types.d.ts +24 -0
  94. package/dist/ui/tree-view/types.mjs +1 -0
  95. package/dist/ui/tree-view-legacy.cjs +37 -0
  96. package/dist/ui/tree-view-legacy.d.cts +108 -0
  97. package/dist/ui/tree-view-legacy.d.ts +108 -0
  98. package/dist/ui/{tree-view-v2.mjs → tree-view-legacy.mjs} +2 -2
  99. package/dist/ui/waterfall/TimelineEvent.d.cts +1 -1
  100. package/dist/ui/waterfall/TimelineEvent.d.ts +1 -1
  101. package/dist/ui/waterfall/TimelineProcessBar.d.cts +1 -1
  102. package/dist/ui/waterfall/TimelineProcessBar.d.ts +1 -1
  103. package/dist/ui/waterfall/Wedges.d.cts +1 -1
  104. package/dist/ui/waterfall/Wedges.d.ts +1 -1
  105. package/dist/ui/waterfall/hooks/useTimelineState.d.cts +1 -2
  106. package/dist/ui/waterfall/hooks/useTimelineState.d.ts +1 -2
  107. package/dist/ui/waterfall/hooks/useViewport.d.cts +1 -2
  108. package/dist/ui/waterfall/hooks/useViewport.d.ts +1 -2
  109. package/dist/ui/waterfall/index.cjs +6 -6
  110. package/dist/ui/waterfall/index.d.cts +1 -1
  111. package/dist/ui/waterfall/index.d.ts +1 -1
  112. package/dist/ui/waterfall/index.mjs +5 -5
  113. package/dist/ui/waterfall/types.d.cts +1 -2
  114. package/dist/ui/waterfall/types.d.ts +1 -2
  115. package/package.json +1 -1
  116. package/dist/chunk-FD5AAGON.cjs +0 -487
  117. package/dist/chunk-ILGNKXK2.mjs +0 -485
  118. package/dist/ui/tree-view-v2.cjs +0 -25
  119. package/dist/ui/tree-view-v2.d.cts +0 -43
  120. package/dist/ui/tree-view-v2.d.ts +0 -43
  121. /package/dist/{chunk-SUABRIFA.mjs → chunk-2SWBXWLK.mjs} +0 -0
  122. /package/dist/{chunk-XMUP5MIM.mjs → chunk-G3EIVAVR.mjs} +0 -0
  123. /package/dist/{chunk-OX2U5RAG.cjs → chunk-G5NT42YF.cjs} +0 -0
  124. /package/dist/{chunk-J5DLIKNB.cjs → chunk-X2A7TKER.cjs} +0 -0
@@ -0,0 +1,247 @@
1
+ import { useTimelineState } from './chunk-JWKOW2OV.mjs';
2
+ import { useViewport } from './chunk-VPQ5SSY3.mjs';
3
+ import { Tick } from './chunk-K22BEXUA.mjs';
4
+ import { TimeRuleEventDot } from './chunk-OC4HRPZU.mjs';
5
+ import { TimelineEvent } from './chunk-N6DSPSMM.mjs';
6
+ import { TimelineProcessBar } from './chunk-CO6EASQO.mjs';
7
+ import { LeftWedge, RightWedge } from './chunk-IR334P7F.mjs';
8
+ import { WheelZoomContext } from './chunk-CIPI2V54.mjs';
9
+ import { CursorOverlay } from './chunk-SA5WKLYB.mjs';
10
+ import { NavigationControls } from './chunk-5EXV5EWF.mjs';
11
+ import { rightWedgeClasses, leftWedgeClasses, TOTAL_DURATION } from './chunk-4U232QAX.mjs';
12
+ import { TreeView } from './chunk-OEM5OJDP.mjs';
13
+ import { TooltipProvider } from './chunk-PCSY5IJ2.mjs';
14
+ import { SyncDragY, SyncScrollSlave } from './chunk-BEJIZ56L.mjs';
15
+ import { SyncScrollProvider } from './chunk-SAGQV2YZ.mjs';
16
+ import { cn } from './chunk-HMN4IKTG.mjs';
17
+ import { useState } from 'react';
18
+ import { jsx, jsxs } from 'react/jsx-runtime';
19
+
20
+ function Waterfall({
21
+ logData,
22
+ temporalCursor,
23
+ onTemporalCursorChange,
24
+ getIcon,
25
+ panelWidth = 300,
26
+ className,
27
+ hoveredId: externalHoveredId,
28
+ onItemHover: externalOnItemHover,
29
+ minWindow = 0.01,
30
+ maxWindow,
31
+ zoomFactor = 1.1,
32
+ enabled = true,
33
+ children
34
+ }) {
35
+ const [visibleLogData, setVisibleLogData] = useState([]);
36
+ const [temporalMarkers, setTemporalMarkers] = useState([]);
37
+ const internalTimelineState = useTimelineState(logData);
38
+ const hoveredId = externalHoveredId ?? internalTimelineState.hoveredId;
39
+ const setHoveredId = externalOnItemHover ?? internalTimelineState.setHoveredId;
40
+ const {
41
+ viewStart,
42
+ viewDuration,
43
+ timelineContainerRef,
44
+ timeToPercent,
45
+ ticks,
46
+ eventDots,
47
+ handlePan,
48
+ handleZoomDragStart,
49
+ setViewStart,
50
+ setViewDuration,
51
+ cursorVisible,
52
+ cursorPosition,
53
+ cursorLabel,
54
+ showMagnet
55
+ } = useViewport({
56
+ visibleLogData,
57
+ onTemporalCursorChange,
58
+ temporalCursor
59
+ });
60
+ return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(SyncScrollProvider, { children: /* @__PURE__ */ jsx(
61
+ "div",
62
+ {
63
+ className: cn(
64
+ "bg-bg-primary text-text-primary rounded-uk-md border-line-primary/50 mx-auto flex w-full flex-col overflow-hidden border font-sans shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
65
+ className
66
+ ),
67
+ children: /* @__PURE__ */ jsxs("div", { className: "relative flex h-full flex-row items-stretch", children: [
68
+ /* @__PURE__ */ jsx(
69
+ "div",
70
+ {
71
+ className: "border-line-primary/50 relative flex h-full flex-none flex-col border-r",
72
+ style: { width: panelWidth },
73
+ children: /* @__PURE__ */ jsx(
74
+ TreeView,
75
+ {
76
+ className: "h-full",
77
+ alwaysShowExpand: true,
78
+ isSearchable: true,
79
+ data: logData,
80
+ getIcon,
81
+ onVisibleDataChange: setVisibleLogData,
82
+ onItemHover: setHoveredId,
83
+ hoveredId,
84
+ useSyncScroll: true
85
+ }
86
+ )
87
+ }
88
+ ),
89
+ /* @__PURE__ */ jsxs(
90
+ "div",
91
+ {
92
+ ref: timelineContainerRef,
93
+ className: "overflow-y-none scrollbar-hide relative flex h-full w-full flex-auto cursor-crosshair flex-col overflow-x-hidden pl-px active:cursor-grabbing",
94
+ children: [
95
+ /* @__PURE__ */ jsx("div", { className: "bg-bg-primary sticky top-0", children: /* @__PURE__ */ jsxs("div", { className: "border-line-primary/50 relative h-8 border-b", children: [
96
+ ticks.map((marker, ind) => /* @__PURE__ */ jsx(
97
+ Tick,
98
+ {
99
+ time: marker.time,
100
+ label: marker.label,
101
+ timeToPercent,
102
+ zIndex: ind < ticks.length - 1 ? 10 : 0
103
+ },
104
+ marker.time
105
+ )),
106
+ eventDots.map(({ time }, tickIndex) => /* @__PURE__ */ jsx(
107
+ TimeRuleEventDot,
108
+ {
109
+ percent: timeToPercent(time)
110
+ },
111
+ `snap-${time}-${tickIndex}`
112
+ ))
113
+ ] }) }),
114
+ /* @__PURE__ */ jsxs(
115
+ WheelZoomContext,
116
+ {
117
+ className: "scrollbar-hide relative h-full max-h-full overflow-auto",
118
+ viewStart,
119
+ viewDuration,
120
+ onViewStartChange: setViewStart,
121
+ onWindowChange: setViewDuration,
122
+ minWindow,
123
+ maxWindow: maxWindow ?? TOTAL_DURATION * 10,
124
+ zoomFactor,
125
+ enabled,
126
+ children: [
127
+ /* @__PURE__ */ jsx(SyncDragY, { className: "scrollbar-hide hide-scrollbar relative h-full w-full", children: visibleLogData.map(
128
+ (item, index) => item.time === void 0 ? (
129
+ // Render TimelineProcessBar for duration events
130
+ /* @__PURE__ */ jsx(
131
+ TimelineProcessBar,
132
+ {
133
+ index,
134
+ item,
135
+ isHovered: hoveredId === item.id,
136
+ onMouseEnter: () => setHoveredId(item.id),
137
+ onMouseLeave: () => setHoveredId(null),
138
+ onClick: (time) => {
139
+ setTemporalMarkers((prev) => [...prev, time]);
140
+ },
141
+ viewStart,
142
+ viewWindow: viewDuration,
143
+ timeToPercent
144
+ },
145
+ item.id
146
+ )
147
+ ) : (
148
+ // Render TimelineEvent for instant events (with time property)
149
+ /* @__PURE__ */ jsx(
150
+ TimelineEvent,
151
+ {
152
+ item,
153
+ isHovered: hoveredId === item.id,
154
+ onMouseEnter: () => setHoveredId(item.id),
155
+ onMouseLeave: () => setHoveredId(null),
156
+ onClick: (time) => {
157
+ setTemporalMarkers((prev) => [...prev, time]);
158
+ },
159
+ timeToPercent,
160
+ index
161
+ },
162
+ item.id
163
+ )
164
+ )
165
+ ) }),
166
+ /* @__PURE__ */ jsx(SyncScrollSlave, { className: "scrollbar-hide pointer-events-none absolute top-0 left-0 z-10 h-full w-2", children: visibleLogData.map((item, index) => /* @__PURE__ */ jsx(
167
+ LeftWedge,
168
+ {
169
+ item,
170
+ classes: rightWedgeClasses,
171
+ viewStart,
172
+ index
173
+ },
174
+ `left-wedge-${item.id}`
175
+ )) }),
176
+ /* @__PURE__ */ jsx(SyncScrollSlave, { className: "scrollbar-hide pointer-events-none absolute top-0 right-0 z-10 h-full w-2", children: visibleLogData.map((item, index) => /* @__PURE__ */ jsx(
177
+ RightWedge,
178
+ {
179
+ item,
180
+ classes: leftWedgeClasses,
181
+ viewEnd: viewStart + viewDuration,
182
+ index
183
+ },
184
+ `right-wedge-${item.id}`
185
+ )) }),
186
+ children,
187
+ /* @__PURE__ */ jsx("div", { className: "absolute bottom-1 left-1/2 -translate-x-1/2 justify-center pb-4", children: /* @__PURE__ */ jsx(
188
+ NavigationControls,
189
+ {
190
+ viewDuration,
191
+ handlePan,
192
+ handleZoomDragStart
193
+ }
194
+ ) })
195
+ ]
196
+ }
197
+ ),
198
+ temporalMarkers.map((time, index) => /* @__PURE__ */ jsxs(
199
+ "div",
200
+ {
201
+ className: "pointer-events-none absolute top-0 h-8 w-20 cursor-pointer",
202
+ style: {
203
+ zIndex: 110,
204
+ left: `calc(${timeToPercent(time)}% - 2.5rem)`
205
+ },
206
+ onClick: () => {
207
+ setTemporalMarkers((prev) => prev.filter((_, i) => i !== index));
208
+ },
209
+ title: "Click to remove marker",
210
+ children: [
211
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-auto relative h-full w-full" }),
212
+ /* @__PURE__ */ jsx(
213
+ CursorOverlay,
214
+ {
215
+ left: 50,
216
+ label: `T${index + 1}`,
217
+ color: "#3b82f6",
218
+ showReadout: true,
219
+ variant: "static",
220
+ zIndex: 110
221
+ }
222
+ )
223
+ ]
224
+ },
225
+ `marker-${time}-${index}`
226
+ )),
227
+ cursorVisible && /* @__PURE__ */ jsx(
228
+ CursorOverlay,
229
+ {
230
+ left: cursorPosition,
231
+ label: cursorLabel,
232
+ color: "#ef4444",
233
+ showReadout: true,
234
+ showMagnet,
235
+ className: "transition-opacity duration-150",
236
+ zIndex: 100
237
+ }
238
+ )
239
+ ]
240
+ }
241
+ )
242
+ ] })
243
+ }
244
+ ) }) });
245
+ }
246
+
247
+ export { Waterfall };