@adecore/ui 0.33.3 → 0.34.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/dist/Banner.d.ts +2 -1
- package/dist/Banner.js +92 -51
- package/dist/CopyButton.d.ts +24 -0
- package/dist/CopyButton.js +144 -0
- package/dist/ErrorBoundary.js +16 -18
- package/dist/ProjectSwitcher.js +66 -73
- package/dist/RelativeTime.d.ts +9 -0
- package/dist/RelativeTime.js +38 -0
- package/dist/Segmented.d.ts +4 -1
- package/dist/Segmented.js +111 -86
- package/dist/Toasts.js +1 -1
- package/dist/combobox/index.parts.d.ts +1 -0
- package/dist/combobox/index.parts.js +1 -0
- package/dist/combobox/parts.d.ts +32 -0
- package/dist/combobox/parts.js +556 -0
- package/dist/command-palette/index.parts.d.ts +2 -0
- package/dist/command-palette/index.parts.js +3 -0
- package/dist/command-palette/parts.d.ts +32 -0
- package/dist/command-palette/parts.js +422 -0
- package/dist/format/datetime.d.ts +1 -0
- package/dist/format/datetime.js +8 -0
- package/dist/format/duration.d.ts +1 -0
- package/dist/format/duration.js +24 -1
- package/dist/format/index.d.ts +2 -2
- package/dist/format/index.js +2 -2
- package/dist/index.d.ts +7 -0
- package/dist/index.js +5 -0
- package/dist/locales/en.d.ts +8 -0
- package/dist/locales/en.js +8 -0
- package/dist/locales/nl.d.ts +8 -0
- package/dist/locales/nl.js +8 -0
- package/dist/match.d.ts +1 -0
- package/dist/match.js +47 -0
- package/dist/segmented-keys.d.ts +3 -0
- package/dist/segmented-keys.js +33 -0
- package/dist/theme.css +15 -0
- package/dist/toast-store.d.ts +1 -0
- package/dist/toast-store.js +16 -6
- package/dist/workspace/TabStrip.d.ts +2 -1
- package/dist/workspace/TabStrip.js +432 -372
- package/package.json +1 -1
- package/src/Banner.tsx +33 -9
- package/src/CopyButton.tsx +86 -0
- package/src/ErrorBoundary.tsx +3 -4
- package/src/ProjectSwitcher.tsx +4 -2
- package/src/RelativeTime.tsx +44 -0
- package/src/Segmented.tsx +60 -33
- package/src/Toasts.tsx +1 -1
- package/src/combobox/index.parts.ts +12 -0
- package/src/combobox/parts.tsx +147 -0
- package/src/command-palette/index.parts.ts +16 -0
- package/src/command-palette/parts.tsx +145 -0
- package/src/format/datetime.ts +5 -0
- package/src/format/duration.ts +25 -1
- package/src/format/index.ts +2 -1
- package/src/index.ts +7 -0
- package/src/locales/en.ts +8 -0
- package/src/locales/nl.ts +8 -0
- package/src/match.ts +50 -0
- package/src/segmented-keys.ts +33 -0
- package/src/theme.css +15 -0
- package/src/toast-store.ts +16 -6
- package/src/workspace/TabStrip.tsx +31 -2
|
@@ -25,7 +25,7 @@ function tabIndexForKey(key, index, count) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
export function TabStrip(t0) {
|
|
28
|
-
const $ = _c(
|
|
28
|
+
const $ = _c(95);
|
|
29
29
|
let className;
|
|
30
30
|
let insertAt;
|
|
31
31
|
let items;
|
|
@@ -42,6 +42,7 @@ export function TabStrip(t0) {
|
|
|
42
42
|
let render;
|
|
43
43
|
let renderTab;
|
|
44
44
|
let t1;
|
|
45
|
+
let t2;
|
|
45
46
|
let value;
|
|
46
47
|
if ($[0] !== t0) {
|
|
47
48
|
({
|
|
@@ -51,6 +52,7 @@ export function TabStrip(t0) {
|
|
|
51
52
|
renderTab,
|
|
52
53
|
focused: t1,
|
|
53
54
|
insertAt,
|
|
55
|
+
pressToClose: t2,
|
|
54
56
|
onClose,
|
|
55
57
|
onDoubleClick,
|
|
56
58
|
onContextMenu,
|
|
@@ -80,7 +82,8 @@ export function TabStrip(t0) {
|
|
|
80
82
|
$[14] = render;
|
|
81
83
|
$[15] = renderTab;
|
|
82
84
|
$[16] = t1;
|
|
83
|
-
$[17] =
|
|
85
|
+
$[17] = t2;
|
|
86
|
+
$[18] = value;
|
|
84
87
|
} else {
|
|
85
88
|
className = $[1];
|
|
86
89
|
insertAt = $[2];
|
|
@@ -98,17 +101,19 @@ export function TabStrip(t0) {
|
|
|
98
101
|
render = $[14];
|
|
99
102
|
renderTab = $[15];
|
|
100
103
|
t1 = $[16];
|
|
101
|
-
|
|
104
|
+
t2 = $[17];
|
|
105
|
+
value = $[18];
|
|
102
106
|
}
|
|
103
107
|
const focused = t1 === undefined ? true : t1;
|
|
108
|
+
const pressToClose = t2 === undefined ? false : t2;
|
|
104
109
|
const {
|
|
105
110
|
t
|
|
106
111
|
} = useTranslation("ui");
|
|
107
112
|
const strip = useRef(null);
|
|
108
113
|
const closingFocus = useRef(null);
|
|
109
|
-
let
|
|
110
|
-
if ($[
|
|
111
|
-
|
|
114
|
+
let t3;
|
|
115
|
+
if ($[19] !== items) {
|
|
116
|
+
t3 = () => {
|
|
112
117
|
if (closingFocus.current && !items.some(item => item.id === closingFocus.current)) {
|
|
113
118
|
closingFocus.current = null;
|
|
114
119
|
const target = strip.current?.querySelector("[aria-selected=\"true\"]") ?? strip.current?.querySelector("[role=\"tab\"]");
|
|
@@ -117,15 +122,15 @@ export function TabStrip(t0) {
|
|
|
117
122
|
});
|
|
118
123
|
}
|
|
119
124
|
};
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
125
|
+
$[19] = items;
|
|
126
|
+
$[20] = t3;
|
|
122
127
|
} else {
|
|
123
|
-
|
|
128
|
+
t3 = $[20];
|
|
124
129
|
}
|
|
125
|
-
useLayoutEffect(
|
|
126
|
-
let
|
|
127
|
-
if ($[
|
|
128
|
-
|
|
130
|
+
useLayoutEffect(t3);
|
|
131
|
+
let t4;
|
|
132
|
+
if ($[21] !== onClose) {
|
|
133
|
+
t4 = (id, action) => {
|
|
129
134
|
if (strip.current?.contains(strip.current.ownerDocument.activeElement)) {
|
|
130
135
|
closingFocus.current = id;
|
|
131
136
|
}
|
|
@@ -135,27 +140,27 @@ export function TabStrip(t0) {
|
|
|
135
140
|
onClose?.(id);
|
|
136
141
|
}
|
|
137
142
|
};
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
143
|
+
$[21] = onClose;
|
|
144
|
+
$[22] = t4;
|
|
140
145
|
} else {
|
|
141
|
-
|
|
146
|
+
t4 = $[22];
|
|
142
147
|
}
|
|
143
|
-
const close =
|
|
144
|
-
let
|
|
145
|
-
if ($[
|
|
146
|
-
|
|
148
|
+
const close = t4;
|
|
149
|
+
let t5;
|
|
150
|
+
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
151
|
+
t5 = {
|
|
147
152
|
start: false,
|
|
148
153
|
end: false
|
|
149
154
|
};
|
|
150
|
-
$[
|
|
155
|
+
$[23] = t5;
|
|
151
156
|
} else {
|
|
152
|
-
|
|
157
|
+
t5 = $[23];
|
|
153
158
|
}
|
|
154
|
-
const [edges, setEdges] = useState(
|
|
159
|
+
const [edges, setEdges] = useState(t5);
|
|
155
160
|
const [insertion, setInsertion] = useState(0);
|
|
156
|
-
let
|
|
157
|
-
if ($[
|
|
158
|
-
|
|
161
|
+
let t6;
|
|
162
|
+
if ($[24] !== insertAt) {
|
|
163
|
+
t6 = () => {
|
|
159
164
|
const element = strip.current;
|
|
160
165
|
if (!element) {
|
|
161
166
|
return;
|
|
@@ -173,16 +178,16 @@ export function TabStrip(t0) {
|
|
|
173
178
|
setInsertion(after?.offsetLeft ?? (last ? last.offsetLeft + last.offsetWidth : 0));
|
|
174
179
|
}
|
|
175
180
|
};
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
181
|
+
$[24] = insertAt;
|
|
182
|
+
$[25] = t6;
|
|
178
183
|
} else {
|
|
179
|
-
|
|
184
|
+
t6 = $[25];
|
|
180
185
|
}
|
|
181
|
-
const measure =
|
|
186
|
+
const measure = t6;
|
|
182
187
|
const revealing = useRef(false);
|
|
183
|
-
let
|
|
184
|
-
if ($[
|
|
185
|
-
|
|
188
|
+
let t7;
|
|
189
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
190
|
+
t7 = () => {
|
|
186
191
|
const element_0 = strip.current;
|
|
187
192
|
const selected = element_0?.querySelector("[aria-selected=\"true\"]");
|
|
188
193
|
if (!revealing.current || !element_0 || !selected) {
|
|
@@ -198,44 +203,44 @@ export function TabStrip(t0) {
|
|
|
198
203
|
element_0.scrollLeft = left;
|
|
199
204
|
}
|
|
200
205
|
};
|
|
201
|
-
$[25] = t6;
|
|
202
|
-
} else {
|
|
203
|
-
t6 = $[25];
|
|
204
|
-
}
|
|
205
|
-
const reveal = t6;
|
|
206
|
-
let t7;
|
|
207
|
-
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
208
|
-
t7 = () => {
|
|
209
|
-
revealing.current = true;
|
|
210
|
-
};
|
|
211
206
|
$[26] = t7;
|
|
212
207
|
} else {
|
|
213
208
|
t7 = $[26];
|
|
214
209
|
}
|
|
210
|
+
const reveal = t7;
|
|
215
211
|
let t8;
|
|
216
|
-
if ($[27]
|
|
217
|
-
t8 =
|
|
218
|
-
|
|
219
|
-
|
|
212
|
+
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
213
|
+
t8 = () => {
|
|
214
|
+
revealing.current = true;
|
|
215
|
+
};
|
|
216
|
+
$[27] = t8;
|
|
220
217
|
} else {
|
|
221
|
-
t8 = $[
|
|
218
|
+
t8 = $[27];
|
|
222
219
|
}
|
|
223
|
-
useLayoutEffect(t7, t8);
|
|
224
220
|
let t9;
|
|
225
|
-
if ($[
|
|
226
|
-
t9 =
|
|
221
|
+
if ($[28] !== value) {
|
|
222
|
+
t9 = [value];
|
|
223
|
+
$[28] = value;
|
|
224
|
+
$[29] = t9;
|
|
225
|
+
} else {
|
|
226
|
+
t9 = $[29];
|
|
227
|
+
}
|
|
228
|
+
useLayoutEffect(t8, t9);
|
|
229
|
+
let t10;
|
|
230
|
+
if ($[30] !== measure) {
|
|
231
|
+
t10 = () => {
|
|
227
232
|
reveal();
|
|
228
233
|
measure();
|
|
229
234
|
};
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
235
|
+
$[30] = measure;
|
|
236
|
+
$[31] = t10;
|
|
232
237
|
} else {
|
|
233
|
-
|
|
238
|
+
t10 = $[31];
|
|
234
239
|
}
|
|
235
|
-
useLayoutEffect(
|
|
236
|
-
let
|
|
237
|
-
if ($[
|
|
238
|
-
|
|
240
|
+
useLayoutEffect(t10);
|
|
241
|
+
let t11;
|
|
242
|
+
if ($[32] !== measure) {
|
|
243
|
+
t11 = () => {
|
|
239
244
|
const element_1 = strip.current;
|
|
240
245
|
if (!element_1 || typeof ResizeObserver === "undefined") {
|
|
241
246
|
return;
|
|
@@ -248,93 +253,95 @@ export function TabStrip(t0) {
|
|
|
248
253
|
element_1.querySelectorAll("[data-document-tab]").forEach(tab_0 => observer.observe(tab_0));
|
|
249
254
|
return () => observer.disconnect();
|
|
250
255
|
};
|
|
251
|
-
$[
|
|
252
|
-
$[32] = t10;
|
|
253
|
-
} else {
|
|
254
|
-
t10 = $[32];
|
|
255
|
-
}
|
|
256
|
-
useEffect(t10);
|
|
257
|
-
const gap = _temp2;
|
|
258
|
-
let t11;
|
|
259
|
-
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
260
|
-
t11 = index => strip.current?.querySelectorAll("[role=\"tab\"]")[index]?.focus();
|
|
256
|
+
$[32] = measure;
|
|
261
257
|
$[33] = t11;
|
|
262
258
|
} else {
|
|
263
259
|
t11 = $[33];
|
|
264
260
|
}
|
|
261
|
+
useEffect(t11);
|
|
262
|
+
const gap = _temp2;
|
|
265
263
|
let t12;
|
|
266
|
-
if ($[34]
|
|
267
|
-
t12 =
|
|
264
|
+
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
265
|
+
t12 = index => strip.current?.querySelectorAll("[role=\"tab\"]")[index]?.focus();
|
|
266
|
+
$[34] = t12;
|
|
267
|
+
} else {
|
|
268
|
+
t12 = $[34];
|
|
269
|
+
}
|
|
270
|
+
let t13;
|
|
271
|
+
if ($[35] !== close || $[36] !== items || $[37] !== onClose || $[38] !== onContextMenu || $[39] !== onDoubleClick || $[40] !== onDragEnd || $[41] !== onDragStart || $[42] !== onValueChange || $[43] !== pressToClose || $[44] !== value) {
|
|
272
|
+
t13 = {
|
|
268
273
|
items,
|
|
269
274
|
value,
|
|
270
275
|
onValueChange,
|
|
276
|
+
pressToClose,
|
|
271
277
|
onClose,
|
|
272
278
|
onDoubleClick,
|
|
273
279
|
onContextMenu,
|
|
274
280
|
onDragStart,
|
|
275
281
|
onDragEnd,
|
|
276
282
|
close,
|
|
277
|
-
focus:
|
|
283
|
+
focus: t12
|
|
278
284
|
};
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
283
|
-
$[
|
|
284
|
-
$[
|
|
285
|
-
$[
|
|
286
|
-
$[
|
|
287
|
-
$[
|
|
288
|
-
$[
|
|
289
|
-
|
|
290
|
-
t12 = $[43];
|
|
291
|
-
}
|
|
292
|
-
const context = t12;
|
|
293
|
-
const t13 = ref ?? null;
|
|
294
|
-
let t14;
|
|
295
|
-
if ($[44] !== t13) {
|
|
296
|
-
t14 = [strip, t13];
|
|
297
|
-
$[44] = t13;
|
|
298
|
-
$[45] = t14;
|
|
285
|
+
$[35] = close;
|
|
286
|
+
$[36] = items;
|
|
287
|
+
$[37] = onClose;
|
|
288
|
+
$[38] = onContextMenu;
|
|
289
|
+
$[39] = onDoubleClick;
|
|
290
|
+
$[40] = onDragEnd;
|
|
291
|
+
$[41] = onDragStart;
|
|
292
|
+
$[42] = onValueChange;
|
|
293
|
+
$[43] = pressToClose;
|
|
294
|
+
$[44] = value;
|
|
295
|
+
$[45] = t13;
|
|
299
296
|
} else {
|
|
300
|
-
|
|
297
|
+
t13 = $[45];
|
|
301
298
|
}
|
|
299
|
+
const context = t13;
|
|
300
|
+
const t14 = ref ?? null;
|
|
302
301
|
let t15;
|
|
303
|
-
if ($[46] !==
|
|
304
|
-
t15 =
|
|
305
|
-
$[46] =
|
|
306
|
-
$[47] =
|
|
307
|
-
$[48] = t15;
|
|
302
|
+
if ($[46] !== t14) {
|
|
303
|
+
t15 = [strip, t14];
|
|
304
|
+
$[46] = t14;
|
|
305
|
+
$[47] = t15;
|
|
308
306
|
} else {
|
|
309
|
-
t15 = $[
|
|
307
|
+
t15 = $[47];
|
|
310
308
|
}
|
|
311
309
|
let t16;
|
|
312
|
-
if ($[49] !==
|
|
313
|
-
t16 =
|
|
314
|
-
$[
|
|
310
|
+
if ($[48] !== props || $[49] !== t) {
|
|
311
|
+
t16 = props["aria-label"] ?? t("workspace.tabs");
|
|
312
|
+
$[48] = props;
|
|
313
|
+
$[49] = t;
|
|
315
314
|
$[50] = t16;
|
|
316
315
|
} else {
|
|
317
316
|
t16 = $[50];
|
|
318
317
|
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
318
|
+
let t17;
|
|
319
|
+
if ($[51] !== className) {
|
|
320
|
+
t17 = clsx("ade-tab-strip scroll-fade-x", className);
|
|
321
|
+
$[51] = className;
|
|
322
|
+
$[52] = t17;
|
|
323
|
+
} else {
|
|
324
|
+
t17 = $[52];
|
|
325
|
+
}
|
|
326
|
+
const t18 = focused || undefined;
|
|
327
|
+
const t19 = edges.start || undefined;
|
|
328
|
+
const t20 = edges.end || undefined;
|
|
329
|
+
let t21;
|
|
330
|
+
if ($[53] !== measure || $[54] !== props) {
|
|
331
|
+
t21 = event_0 => {
|
|
325
332
|
props.onScroll?.(event_0);
|
|
326
333
|
measure();
|
|
327
334
|
};
|
|
328
|
-
$[
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
335
|
+
$[53] = measure;
|
|
336
|
+
$[54] = props;
|
|
337
|
+
$[55] = t21;
|
|
331
338
|
} else {
|
|
332
|
-
|
|
339
|
+
t21 = $[55];
|
|
333
340
|
}
|
|
334
|
-
let t21;
|
|
335
341
|
let t22;
|
|
336
|
-
|
|
337
|
-
|
|
342
|
+
let t23;
|
|
343
|
+
if ($[56] !== props) {
|
|
344
|
+
t22 = event_1 => {
|
|
338
345
|
props.onWheel?.(event_1);
|
|
339
346
|
if (event_1.defaultPrevented) {
|
|
340
347
|
return;
|
|
@@ -344,146 +351,146 @@ export function TabStrip(t0) {
|
|
|
344
351
|
event_1.currentTarget.scrollLeft = event_1.currentTarget.scrollLeft + event_1.deltaY;
|
|
345
352
|
}
|
|
346
353
|
};
|
|
347
|
-
|
|
354
|
+
t23 = event_2 => {
|
|
348
355
|
props.onPointerDown?.(event_2);
|
|
349
356
|
if (event_2.target === event_2.currentTarget || event_2.pointerType === "touch") {
|
|
350
357
|
revealing.current = false;
|
|
351
358
|
}
|
|
352
359
|
};
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
355
|
-
$[
|
|
360
|
+
$[56] = props;
|
|
361
|
+
$[57] = t22;
|
|
362
|
+
$[58] = t23;
|
|
356
363
|
} else {
|
|
357
|
-
|
|
358
|
-
|
|
364
|
+
t22 = $[57];
|
|
365
|
+
t23 = $[58];
|
|
359
366
|
}
|
|
360
|
-
let
|
|
361
|
-
if ($[
|
|
362
|
-
|
|
367
|
+
let t24;
|
|
368
|
+
if ($[59] !== onTabDragOver || $[60] !== props) {
|
|
369
|
+
t24 = event_3 => {
|
|
363
370
|
props.onDragOver?.(event_3);
|
|
364
371
|
if (!event_3.defaultPrevented) {
|
|
365
372
|
onTabDragOver?.(gap(event_3), event_3);
|
|
366
373
|
}
|
|
367
374
|
};
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
375
|
+
$[59] = onTabDragOver;
|
|
376
|
+
$[60] = props;
|
|
377
|
+
$[61] = t24;
|
|
371
378
|
} else {
|
|
372
|
-
|
|
379
|
+
t24 = $[61];
|
|
373
380
|
}
|
|
374
|
-
let
|
|
375
|
-
if ($[
|
|
376
|
-
|
|
381
|
+
let t25;
|
|
382
|
+
if ($[62] !== onTabDrop || $[63] !== props) {
|
|
383
|
+
t25 = event_4 => {
|
|
377
384
|
props.onDrop?.(event_4);
|
|
378
385
|
if (!event_4.defaultPrevented) {
|
|
379
386
|
onTabDrop?.(gap(event_4), event_4);
|
|
380
387
|
}
|
|
381
388
|
};
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
389
|
+
$[62] = onTabDrop;
|
|
390
|
+
$[63] = props;
|
|
391
|
+
$[64] = t25;
|
|
385
392
|
} else {
|
|
386
|
-
|
|
393
|
+
t25 = $[64];
|
|
387
394
|
}
|
|
388
|
-
let
|
|
389
|
-
if ($[
|
|
390
|
-
let
|
|
391
|
-
if ($[
|
|
392
|
-
|
|
395
|
+
let t26;
|
|
396
|
+
if ($[65] !== context || $[66] !== items || $[67] !== renderTab) {
|
|
397
|
+
let t27;
|
|
398
|
+
if ($[69] !== context || $[70] !== renderTab) {
|
|
399
|
+
t27 = item_0 => /*#__PURE__*/_jsx(TabContext.Provider, {
|
|
393
400
|
value: context,
|
|
394
401
|
children: renderTab ? renderTab(item_0) : /*#__PURE__*/_jsx(DocumentTab, {
|
|
395
402
|
item: item_0
|
|
396
403
|
})
|
|
397
404
|
}, item_0.id);
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
405
|
+
$[69] = context;
|
|
406
|
+
$[70] = renderTab;
|
|
407
|
+
$[71] = t27;
|
|
401
408
|
} else {
|
|
402
|
-
|
|
409
|
+
t27 = $[71];
|
|
403
410
|
}
|
|
404
|
-
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
411
|
+
t26 = items.map(t27);
|
|
412
|
+
$[65] = context;
|
|
413
|
+
$[66] = items;
|
|
414
|
+
$[67] = renderTab;
|
|
415
|
+
$[68] = t26;
|
|
409
416
|
} else {
|
|
410
|
-
|
|
417
|
+
t26 = $[68];
|
|
411
418
|
}
|
|
412
|
-
let
|
|
413
|
-
if ($[
|
|
414
|
-
|
|
419
|
+
let t27;
|
|
420
|
+
if ($[72] !== insertAt || $[73] !== insertion) {
|
|
421
|
+
t27 = insertAt !== undefined && insertAt !== null && /*#__PURE__*/_jsx("span", {
|
|
415
422
|
"aria-hidden": "true",
|
|
416
423
|
className: "ade-tab-insertion",
|
|
417
424
|
style: {
|
|
418
425
|
left: insertion
|
|
419
426
|
}
|
|
420
427
|
});
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
428
|
+
$[72] = insertAt;
|
|
429
|
+
$[73] = insertion;
|
|
430
|
+
$[74] = t27;
|
|
424
431
|
} else {
|
|
425
|
-
|
|
432
|
+
t27 = $[74];
|
|
426
433
|
}
|
|
427
|
-
let
|
|
428
|
-
if ($[
|
|
429
|
-
|
|
430
|
-
children: [
|
|
434
|
+
let t28;
|
|
435
|
+
if ($[75] !== t26 || $[76] !== t27) {
|
|
436
|
+
t28 = /*#__PURE__*/_jsxs(_Fragment, {
|
|
437
|
+
children: [t26, t27]
|
|
431
438
|
});
|
|
432
|
-
$[
|
|
433
|
-
$[
|
|
434
|
-
$[
|
|
439
|
+
$[75] = t26;
|
|
440
|
+
$[76] = t27;
|
|
441
|
+
$[77] = t28;
|
|
435
442
|
} else {
|
|
436
|
-
|
|
443
|
+
t28 = $[77];
|
|
437
444
|
}
|
|
438
|
-
let
|
|
439
|
-
if ($[
|
|
440
|
-
|
|
445
|
+
let t29;
|
|
446
|
+
if ($[78] !== props || $[79] !== t16 || $[80] !== t17 || $[81] !== t18 || $[82] !== t19 || $[83] !== t20 || $[84] !== t21 || $[85] !== t22 || $[86] !== t23 || $[87] !== t24 || $[88] !== t25 || $[89] !== t28) {
|
|
447
|
+
t29 = {
|
|
441
448
|
...props,
|
|
442
449
|
role: "tablist",
|
|
443
|
-
"aria-label":
|
|
444
|
-
className:
|
|
445
|
-
"data-focused":
|
|
446
|
-
"data-fade-start":
|
|
447
|
-
"data-fade-end":
|
|
448
|
-
onScroll:
|
|
449
|
-
onWheel:
|
|
450
|
-
onPointerDown:
|
|
451
|
-
onDragOver:
|
|
452
|
-
onDrop:
|
|
453
|
-
children:
|
|
450
|
+
"aria-label": t16,
|
|
451
|
+
className: t17,
|
|
452
|
+
"data-focused": t18,
|
|
453
|
+
"data-fade-start": t19,
|
|
454
|
+
"data-fade-end": t20,
|
|
455
|
+
onScroll: t21,
|
|
456
|
+
onWheel: t22,
|
|
457
|
+
onPointerDown: t23,
|
|
458
|
+
onDragOver: t24,
|
|
459
|
+
onDrop: t25,
|
|
460
|
+
children: t28
|
|
454
461
|
};
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
458
|
-
$[
|
|
459
|
-
$[
|
|
460
|
-
$[
|
|
461
|
-
$[
|
|
462
|
-
$[
|
|
463
|
-
$[
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
$[
|
|
468
|
-
} else {
|
|
469
|
-
|
|
470
|
-
}
|
|
471
|
-
let
|
|
472
|
-
if ($[
|
|
473
|
-
|
|
462
|
+
$[78] = props;
|
|
463
|
+
$[79] = t16;
|
|
464
|
+
$[80] = t17;
|
|
465
|
+
$[81] = t18;
|
|
466
|
+
$[82] = t19;
|
|
467
|
+
$[83] = t20;
|
|
468
|
+
$[84] = t21;
|
|
469
|
+
$[85] = t22;
|
|
470
|
+
$[86] = t23;
|
|
471
|
+
$[87] = t24;
|
|
472
|
+
$[88] = t25;
|
|
473
|
+
$[89] = t28;
|
|
474
|
+
$[90] = t29;
|
|
475
|
+
} else {
|
|
476
|
+
t29 = $[90];
|
|
477
|
+
}
|
|
478
|
+
let t30;
|
|
479
|
+
if ($[91] !== render || $[92] !== t15 || $[93] !== t29) {
|
|
480
|
+
t30 = {
|
|
474
481
|
render,
|
|
475
|
-
ref:
|
|
482
|
+
ref: t15,
|
|
476
483
|
defaultTagName: "div",
|
|
477
|
-
props:
|
|
484
|
+
props: t29
|
|
478
485
|
};
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
486
|
+
$[91] = render;
|
|
487
|
+
$[92] = t15;
|
|
488
|
+
$[93] = t29;
|
|
489
|
+
$[94] = t30;
|
|
483
490
|
} else {
|
|
484
|
-
|
|
491
|
+
t30 = $[94];
|
|
485
492
|
}
|
|
486
|
-
return useRender(
|
|
493
|
+
return useRender(t30);
|
|
487
494
|
}
|
|
488
495
|
function _temp2(event) {
|
|
489
496
|
const rects = Array.from(event.currentTarget.querySelectorAll("[data-document-tab]"), _temp);
|
|
@@ -495,7 +502,7 @@ function _temp(tab_1) {
|
|
|
495
502
|
const TabContext = createContext(null);
|
|
496
503
|
/** A tab with application-owned metadata and menus, rendered inside TabStrip's renderTab slot. */
|
|
497
504
|
export function DocumentTab(t0) {
|
|
498
|
-
const $ = _c(
|
|
505
|
+
const $ = _c(107);
|
|
499
506
|
let className;
|
|
500
507
|
let closeShortcut;
|
|
501
508
|
let item;
|
|
@@ -585,180 +592,229 @@ export function DocumentTab(t0) {
|
|
|
585
592
|
const close = t2;
|
|
586
593
|
const closable = item.closable !== false && (onClose ?? context.onClose) !== undefined;
|
|
587
594
|
let t3;
|
|
588
|
-
if ($[20] !==
|
|
589
|
-
t3 =
|
|
590
|
-
$[20] =
|
|
591
|
-
$[21] =
|
|
595
|
+
if ($[20] !== closable || $[21] !== context.pressToClose || $[22] !== item.pinned) {
|
|
596
|
+
t3 = event => !!context.pressToClose && closable && !item.pinned && (event.button === 1 || event.button === 0 && event.shiftKey && !event.metaKey && !event.ctrlKey && !event.altKey);
|
|
597
|
+
$[20] = closable;
|
|
598
|
+
$[21] = context.pressToClose;
|
|
599
|
+
$[22] = item.pinned;
|
|
600
|
+
$[23] = t3;
|
|
592
601
|
} else {
|
|
593
|
-
t3 = $[
|
|
602
|
+
t3 = $[23];
|
|
594
603
|
}
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
604
|
+
const closesOnPress = t3;
|
|
605
|
+
let t4;
|
|
606
|
+
if ($[24] !== className) {
|
|
607
|
+
t4 = clsx("ade-document-tab", className);
|
|
608
|
+
$[24] = className;
|
|
609
|
+
$[25] = t4;
|
|
610
|
+
} else {
|
|
611
|
+
t4 = $[25];
|
|
612
|
+
}
|
|
613
|
+
const t5 = item.id === value || undefined;
|
|
614
|
+
const t6 = !!item.detail || undefined;
|
|
615
|
+
let t7;
|
|
616
|
+
if ($[26] !== context || $[27] !== item.id || $[28] !== props) {
|
|
617
|
+
t7 = event_0 => {
|
|
618
|
+
props.onContextMenu?.(event_0);
|
|
619
|
+
context.onContextMenu?.(item.id, event_0);
|
|
602
620
|
};
|
|
603
|
-
$[
|
|
604
|
-
$[
|
|
605
|
-
$[
|
|
606
|
-
$[
|
|
621
|
+
$[26] = context;
|
|
622
|
+
$[27] = item.id;
|
|
623
|
+
$[28] = props;
|
|
624
|
+
$[29] = t7;
|
|
607
625
|
} else {
|
|
608
|
-
|
|
626
|
+
t7 = $[29];
|
|
609
627
|
}
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
$[
|
|
619
|
-
$[
|
|
628
|
+
let t8;
|
|
629
|
+
if ($[30] !== closesOnPress || $[31] !== props) {
|
|
630
|
+
t8 = event_1 => {
|
|
631
|
+
props.onMouseDown?.(event_1);
|
|
632
|
+
if (closesOnPress(event_1)) {
|
|
633
|
+
event_1.preventDefault();
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
$[30] = closesOnPress;
|
|
637
|
+
$[31] = props;
|
|
638
|
+
$[32] = t8;
|
|
620
639
|
} else {
|
|
621
|
-
|
|
640
|
+
t8 = $[32];
|
|
622
641
|
}
|
|
623
|
-
let
|
|
624
|
-
if ($[
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
642
|
+
let t9;
|
|
643
|
+
if ($[33] !== close || $[34] !== closesOnPress || $[35] !== props) {
|
|
644
|
+
t9 = event_2 => {
|
|
645
|
+
props.onAuxClick?.(event_2);
|
|
646
|
+
if (event_2.button === 1 && closesOnPress(event_2)) {
|
|
647
|
+
event_2.preventDefault();
|
|
648
|
+
close();
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
$[33] = close;
|
|
652
|
+
$[34] = closesOnPress;
|
|
653
|
+
$[35] = props;
|
|
654
|
+
$[36] = t9;
|
|
630
655
|
} else {
|
|
631
|
-
|
|
656
|
+
t9 = $[36];
|
|
632
657
|
}
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
658
|
+
const t10 = item.hint ?? item.label;
|
|
659
|
+
const t11 = item.id === value;
|
|
660
|
+
const t12 = item.id === value || value === null && index === 0 ? 0 : -1;
|
|
661
|
+
const t13 = !!(onDragStart ?? context.onDragStart);
|
|
662
|
+
let t14;
|
|
663
|
+
if ($[37] !== close || $[38] !== closesOnPress || $[39] !== item.id || $[40] !== onValueChange) {
|
|
664
|
+
t14 = event_3 => {
|
|
665
|
+
if (closesOnPress(event_3)) {
|
|
666
|
+
close();
|
|
667
|
+
return;
|
|
668
|
+
}
|
|
669
|
+
onValueChange(item.id);
|
|
638
670
|
};
|
|
639
|
-
$[
|
|
640
|
-
$[
|
|
641
|
-
$[
|
|
642
|
-
$[
|
|
671
|
+
$[37] = close;
|
|
672
|
+
$[38] = closesOnPress;
|
|
673
|
+
$[39] = item.id;
|
|
674
|
+
$[40] = onValueChange;
|
|
675
|
+
$[41] = t14;
|
|
643
676
|
} else {
|
|
644
|
-
|
|
677
|
+
t14 = $[41];
|
|
645
678
|
}
|
|
646
|
-
const t14 = onDragEnd ?? context.onDragEnd;
|
|
647
679
|
let t15;
|
|
648
|
-
if ($[
|
|
649
|
-
t15 =
|
|
650
|
-
|
|
680
|
+
if ($[42] !== context.onDoubleClick || $[43] !== item.id || $[44] !== onDoubleClick) {
|
|
681
|
+
t15 = event_4 => (onDoubleClick ?? context.onDoubleClick)?.(item.id, event_4);
|
|
682
|
+
$[42] = context.onDoubleClick;
|
|
683
|
+
$[43] = item.id;
|
|
684
|
+
$[44] = onDoubleClick;
|
|
685
|
+
$[45] = t15;
|
|
686
|
+
} else {
|
|
687
|
+
t15 = $[45];
|
|
688
|
+
}
|
|
689
|
+
let t16;
|
|
690
|
+
if ($[46] !== context.onDragStart || $[47] !== item.id || $[48] !== onDragStart) {
|
|
691
|
+
t16 = event_5 => {
|
|
692
|
+
event_5.stopPropagation();
|
|
693
|
+
(onDragStart ?? context.onDragStart)?.(item.id, event_5);
|
|
694
|
+
};
|
|
695
|
+
$[46] = context.onDragStart;
|
|
696
|
+
$[47] = item.id;
|
|
697
|
+
$[48] = onDragStart;
|
|
698
|
+
$[49] = t16;
|
|
699
|
+
} else {
|
|
700
|
+
t16 = $[49];
|
|
701
|
+
}
|
|
702
|
+
const t17 = onDragEnd ?? context.onDragEnd;
|
|
703
|
+
let t18;
|
|
704
|
+
if ($[50] !== closable || $[51] !== close || $[52] !== context || $[53] !== index || $[54] !== items || $[55] !== onValueChange) {
|
|
705
|
+
t18 = event_6 => {
|
|
706
|
+
const next = tabIndexForKey(event_6.key, index, items.length);
|
|
651
707
|
if (next !== null) {
|
|
652
|
-
|
|
708
|
+
event_6.preventDefault();
|
|
653
709
|
onValueChange(items[next].id);
|
|
654
710
|
context.focus(next);
|
|
655
711
|
} else {
|
|
656
|
-
if (
|
|
657
|
-
|
|
712
|
+
if (event_6.key === "Delete" && closable) {
|
|
713
|
+
event_6.preventDefault();
|
|
658
714
|
close();
|
|
659
715
|
}
|
|
660
716
|
}
|
|
661
717
|
};
|
|
662
|
-
$[
|
|
663
|
-
$[
|
|
664
|
-
$[
|
|
665
|
-
$[
|
|
666
|
-
$[
|
|
667
|
-
$[
|
|
668
|
-
$[
|
|
718
|
+
$[50] = closable;
|
|
719
|
+
$[51] = close;
|
|
720
|
+
$[52] = context;
|
|
721
|
+
$[53] = index;
|
|
722
|
+
$[54] = items;
|
|
723
|
+
$[55] = onValueChange;
|
|
724
|
+
$[56] = t18;
|
|
669
725
|
} else {
|
|
670
|
-
|
|
726
|
+
t18 = $[56];
|
|
671
727
|
}
|
|
672
|
-
let
|
|
673
|
-
if ($[
|
|
674
|
-
|
|
728
|
+
let t19;
|
|
729
|
+
if ($[57] !== item.label) {
|
|
730
|
+
t19 = /*#__PURE__*/_jsx("span", {
|
|
675
731
|
className: "truncate",
|
|
676
732
|
children: item.label
|
|
677
733
|
});
|
|
678
|
-
$[
|
|
679
|
-
$[
|
|
734
|
+
$[57] = item.label;
|
|
735
|
+
$[58] = t19;
|
|
680
736
|
} else {
|
|
681
|
-
|
|
737
|
+
t19 = $[58];
|
|
682
738
|
}
|
|
683
|
-
let
|
|
684
|
-
if ($[
|
|
685
|
-
|
|
739
|
+
let t20;
|
|
740
|
+
if ($[59] !== item.unsaved || $[60] !== t) {
|
|
741
|
+
t20 = item.unsaved && /*#__PURE__*/_jsx("span", {
|
|
686
742
|
className: "ade-tab-unsaved",
|
|
687
743
|
children: /*#__PURE__*/_jsx("span", {
|
|
688
744
|
className: "sr-only",
|
|
689
745
|
children: typeof item.unsaved === "string" ? item.unsaved : t("workspace.unsaved")
|
|
690
746
|
})
|
|
691
747
|
});
|
|
692
|
-
$[
|
|
693
|
-
$[
|
|
694
|
-
$[
|
|
748
|
+
$[59] = item.unsaved;
|
|
749
|
+
$[60] = t;
|
|
750
|
+
$[61] = t20;
|
|
695
751
|
} else {
|
|
696
|
-
|
|
752
|
+
t20 = $[61];
|
|
697
753
|
}
|
|
698
|
-
let
|
|
699
|
-
if ($[
|
|
700
|
-
|
|
754
|
+
let t21;
|
|
755
|
+
if ($[62] !== item.attention || $[63] !== item.detail || $[64] !== item.icon || $[65] !== item.panelId || $[66] !== item.tabId || $[67] !== t11 || $[68] !== t12 || $[69] !== t13 || $[70] !== t14 || $[71] !== t15 || $[72] !== t16 || $[73] !== t17 || $[74] !== t18 || $[75] !== t19 || $[76] !== t20) {
|
|
756
|
+
t21 = /*#__PURE__*/_jsxs("button", {
|
|
701
757
|
type: "button",
|
|
702
758
|
role: "tab",
|
|
703
759
|
id: item.tabId,
|
|
704
760
|
"aria-controls": item.panelId,
|
|
705
|
-
"aria-selected":
|
|
706
|
-
tabIndex:
|
|
761
|
+
"aria-selected": t11,
|
|
762
|
+
tabIndex: t12,
|
|
707
763
|
className: "ade-document-tab-open",
|
|
708
|
-
draggable:
|
|
709
|
-
onClick:
|
|
710
|
-
onDoubleClick:
|
|
711
|
-
onDragStart:
|
|
712
|
-
onDragEnd:
|
|
713
|
-
onKeyDown:
|
|
714
|
-
children: [item.icon,
|
|
764
|
+
draggable: t13,
|
|
765
|
+
onClick: t14,
|
|
766
|
+
onDoubleClick: t15,
|
|
767
|
+
onDragStart: t16,
|
|
768
|
+
onDragEnd: t17,
|
|
769
|
+
onKeyDown: t18,
|
|
770
|
+
children: [item.icon, t19, item.detail, item.attention, t20]
|
|
715
771
|
});
|
|
716
|
-
$[
|
|
717
|
-
$[
|
|
718
|
-
$[
|
|
719
|
-
$[
|
|
720
|
-
$[
|
|
721
|
-
$[
|
|
722
|
-
$[
|
|
723
|
-
$[
|
|
724
|
-
$[
|
|
725
|
-
$[
|
|
726
|
-
$[
|
|
727
|
-
$[
|
|
728
|
-
$[
|
|
729
|
-
$[
|
|
730
|
-
$[
|
|
731
|
-
$[
|
|
732
|
-
} else {
|
|
733
|
-
|
|
772
|
+
$[62] = item.attention;
|
|
773
|
+
$[63] = item.detail;
|
|
774
|
+
$[64] = item.icon;
|
|
775
|
+
$[65] = item.panelId;
|
|
776
|
+
$[66] = item.tabId;
|
|
777
|
+
$[67] = t11;
|
|
778
|
+
$[68] = t12;
|
|
779
|
+
$[69] = t13;
|
|
780
|
+
$[70] = t14;
|
|
781
|
+
$[71] = t15;
|
|
782
|
+
$[72] = t16;
|
|
783
|
+
$[73] = t17;
|
|
784
|
+
$[74] = t18;
|
|
785
|
+
$[75] = t19;
|
|
786
|
+
$[76] = t20;
|
|
787
|
+
$[77] = t21;
|
|
788
|
+
} else {
|
|
789
|
+
t21 = $[77];
|
|
734
790
|
}
|
|
735
|
-
let
|
|
736
|
-
if ($[
|
|
737
|
-
|
|
738
|
-
label:
|
|
739
|
-
children:
|
|
791
|
+
let t22;
|
|
792
|
+
if ($[78] !== t10 || $[79] !== t21) {
|
|
793
|
+
t22 = /*#__PURE__*/_jsx(Tooltip, {
|
|
794
|
+
label: t10,
|
|
795
|
+
children: t21
|
|
740
796
|
});
|
|
741
|
-
$[
|
|
742
|
-
$[
|
|
743
|
-
$[
|
|
797
|
+
$[78] = t10;
|
|
798
|
+
$[79] = t21;
|
|
799
|
+
$[80] = t22;
|
|
744
800
|
} else {
|
|
745
|
-
|
|
801
|
+
t22 = $[80];
|
|
746
802
|
}
|
|
747
|
-
let
|
|
748
|
-
if ($[
|
|
749
|
-
|
|
803
|
+
let t23;
|
|
804
|
+
if ($[81] !== item.pinned) {
|
|
805
|
+
t23 = item.pinned && /*#__PURE__*/_jsx(Icon, {
|
|
750
806
|
icon: Pin,
|
|
751
807
|
size: 12,
|
|
752
808
|
className: "shrink-0 text-text-muted"
|
|
753
809
|
});
|
|
754
|
-
$[
|
|
755
|
-
$[
|
|
810
|
+
$[81] = item.pinned;
|
|
811
|
+
$[82] = t23;
|
|
756
812
|
} else {
|
|
757
|
-
|
|
813
|
+
t23 = $[82];
|
|
758
814
|
}
|
|
759
|
-
let
|
|
760
|
-
if ($[
|
|
761
|
-
|
|
815
|
+
let t24;
|
|
816
|
+
if ($[83] !== closable || $[84] !== close || $[85] !== closeShortcut || $[86] !== item.label || $[87] !== t) {
|
|
817
|
+
t24 = closable && /*#__PURE__*/_jsx(IconButton, {
|
|
762
818
|
icon: X,
|
|
763
819
|
size: "2xs",
|
|
764
820
|
label: t("workspace.closeTab", {
|
|
@@ -768,63 +824,67 @@ export function DocumentTab(t0) {
|
|
|
768
824
|
className: "ade-document-tab-close",
|
|
769
825
|
onClick: close
|
|
770
826
|
});
|
|
771
|
-
$[
|
|
772
|
-
$[
|
|
773
|
-
$[
|
|
774
|
-
$[
|
|
775
|
-
$[
|
|
776
|
-
$[
|
|
827
|
+
$[83] = closable;
|
|
828
|
+
$[84] = close;
|
|
829
|
+
$[85] = closeShortcut;
|
|
830
|
+
$[86] = item.label;
|
|
831
|
+
$[87] = t;
|
|
832
|
+
$[88] = t24;
|
|
777
833
|
} else {
|
|
778
|
-
|
|
834
|
+
t24 = $[88];
|
|
779
835
|
}
|
|
780
|
-
let
|
|
781
|
-
if ($[
|
|
782
|
-
|
|
783
|
-
children: [
|
|
836
|
+
let t25;
|
|
837
|
+
if ($[89] !== t22 || $[90] !== t23 || $[91] !== t24) {
|
|
838
|
+
t25 = /*#__PURE__*/_jsxs(_Fragment, {
|
|
839
|
+
children: [t22, t23, t24]
|
|
784
840
|
});
|
|
785
|
-
$[
|
|
786
|
-
$[
|
|
787
|
-
$[
|
|
788
|
-
$[
|
|
841
|
+
$[89] = t22;
|
|
842
|
+
$[90] = t23;
|
|
843
|
+
$[91] = t24;
|
|
844
|
+
$[92] = t25;
|
|
789
845
|
} else {
|
|
790
|
-
|
|
846
|
+
t25 = $[92];
|
|
791
847
|
}
|
|
792
|
-
let
|
|
793
|
-
if ($[
|
|
794
|
-
|
|
848
|
+
let t26;
|
|
849
|
+
if ($[93] !== item.id || $[94] !== props || $[95] !== t25 || $[96] !== t4 || $[97] !== t5 || $[98] !== t6 || $[99] !== t7 || $[100] !== t8 || $[101] !== t9) {
|
|
850
|
+
t26 = {
|
|
795
851
|
...props,
|
|
796
|
-
className:
|
|
852
|
+
className: t4,
|
|
797
853
|
"data-document-tab": item.id,
|
|
798
|
-
"data-active":
|
|
799
|
-
"data-detail":
|
|
800
|
-
onContextMenu:
|
|
801
|
-
|
|
854
|
+
"data-active": t5,
|
|
855
|
+
"data-detail": t6,
|
|
856
|
+
onContextMenu: t7,
|
|
857
|
+
onMouseDown: t8,
|
|
858
|
+
onAuxClick: t9,
|
|
859
|
+
children: t25
|
|
802
860
|
};
|
|
803
|
-
$[
|
|
804
|
-
$[
|
|
805
|
-
$[
|
|
806
|
-
$[
|
|
807
|
-
$[
|
|
808
|
-
$[
|
|
809
|
-
$[
|
|
810
|
-
$[
|
|
811
|
-
|
|
812
|
-
|
|
861
|
+
$[93] = item.id;
|
|
862
|
+
$[94] = props;
|
|
863
|
+
$[95] = t25;
|
|
864
|
+
$[96] = t4;
|
|
865
|
+
$[97] = t5;
|
|
866
|
+
$[98] = t6;
|
|
867
|
+
$[99] = t7;
|
|
868
|
+
$[100] = t8;
|
|
869
|
+
$[101] = t9;
|
|
870
|
+
$[102] = t26;
|
|
871
|
+
} else {
|
|
872
|
+
t26 = $[102];
|
|
813
873
|
}
|
|
814
|
-
let
|
|
815
|
-
if ($[
|
|
816
|
-
|
|
874
|
+
let t27;
|
|
875
|
+
if ($[103] !== ref || $[104] !== render || $[105] !== t26) {
|
|
876
|
+
t27 = {
|
|
817
877
|
render,
|
|
818
878
|
ref,
|
|
819
879
|
defaultTagName: "span",
|
|
820
|
-
props:
|
|
880
|
+
props: t26
|
|
821
881
|
};
|
|
822
|
-
$[
|
|
823
|
-
$[
|
|
824
|
-
$[
|
|
825
|
-
$[
|
|
882
|
+
$[103] = ref;
|
|
883
|
+
$[104] = render;
|
|
884
|
+
$[105] = t26;
|
|
885
|
+
$[106] = t27;
|
|
826
886
|
} else {
|
|
827
|
-
|
|
887
|
+
t27 = $[106];
|
|
828
888
|
}
|
|
829
|
-
return useRender(
|
|
889
|
+
return useRender(t27);
|
|
830
890
|
}
|