ezux 1.1.3 → 1.1.6
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/{EzContextMenu-B_45nn-1.js → EzContextMenu-BBRvkLVD.js} +185 -190
- package/dist/EzContextMenu-CCAZWlEq.cjs +4 -0
- package/dist/{EzErrorBoundary-BmcaG6V2.cjs → EzErrorBoundary-C9dTYXll.cjs} +1 -1
- package/dist/{EzErrorBoundary-P99jhn_S.js → EzErrorBoundary-h8XOTsBH.js} +1 -1
- package/dist/{EzEventModal-BnDv7is8.js → EzEventModal-B-CY7Cdt.js} +34 -34
- package/dist/EzEventModal-C0GKgCYi.cjs +1 -0
- package/dist/EzGroupingPanel-ClymhuHS.cjs +1 -0
- package/dist/EzGroupingPanel-DSTTHqCX.js +140 -0
- package/dist/{EzSchedulerQuickAdd-Bv06Nt_Q.cjs → EzSchedulerQuickAdd-CTR08cph.cjs} +1 -1
- package/dist/{EzSchedulerQuickAdd-BaesLYa5.js → EzSchedulerQuickAdd-CfmwLENk.js} +11 -11
- package/dist/{EzSchedulerToolbar-CcC-7hlb.cjs → EzSchedulerToolbar-BRx7eyHg.cjs} +1 -1
- package/dist/{EzSchedulerToolbar-CE-R1TAi.js → EzSchedulerToolbar-DXHPx901.js} +7 -7
- package/dist/EzSignature-CCibSi2V.js +415 -0
- package/dist/EzSignature-DH3wOUn8.cjs +1 -0
- package/dist/{EzTableEditDialog-DPO0dPhs.cjs → EzTableEditDialog-Bt0mpT0x.cjs} +1 -1
- package/dist/{EzTableEditDialog-DvLxaUYh.js → EzTableEditDialog-C3eYMOVD.js} +4 -4
- package/dist/{EzTableFooter-YF1ZBmGi.cjs → EzTableFooter-DllWo6rv.cjs} +1 -1
- package/dist/{EzTableFooter-k_RfoN3q.js → EzTableFooter-Y3GZjlYo.js} +1 -1
- package/dist/{EzTableToolbar-CutECbN8.js → EzTableToolbar-BG4BiLST.js} +20 -20
- package/dist/EzTableToolbar-CtUhkCjy.cjs +1 -0
- package/dist/{HighlightText-DF7bBtUm.js → HighlightText-CEfITkQM.js} +1 -1
- package/dist/{HighlightText-Z-DeGnpm.cjs → HighlightText-CfD2S1sA.cjs} +1 -1
- package/dist/{NotificationPanel-Cw4NWshn.js → NotificationPanel-COIVdedR.js} +1 -1
- package/dist/{NotificationPanel-CHY8iwtV.cjs → NotificationPanel-_dJM1T7E.cjs} +1 -1
- package/dist/TooltipWrapper-CcZYDAkQ.cjs +1 -0
- package/dist/TooltipWrapper-DdJxPiY7.js +2372 -0
- package/dist/{avatar-DJXSIFqo.cjs → avatar-C6a9EwCQ.cjs} +1 -1
- package/dist/{avatar-DBn3Cf6u.js → avatar-DnBRMYrs.js} +1 -1
- package/dist/{button-CP5fe4ps.cjs → button-NeAnczKW.cjs} +1 -1
- package/dist/{button-8SZFs7Rb.js → button-unHzRLZS.js} +2 -2
- package/dist/{calendar-COjvr1zi.js → calendar-CPUu_XYP.js} +3 -3
- package/dist/calendar-DNYO0KYf.cjs +1 -0
- package/dist/{checkbox-6I0E-xc8.js → checkbox-DCJM7upr.js} +1 -1
- package/dist/{checkbox-CT9-jImL.cjs → checkbox-DsfnG-1K.cjs} +1 -1
- package/dist/components/EzKanban/EzKanban.types.d.ts +42 -32
- package/dist/components/EzKanban/components/KanbanBoard.d.ts +4 -4
- package/dist/components/EzKanban/components/KanbanCard.d.ts +12 -9
- package/dist/components/EzKanban/components/KanbanColumn.d.ts +3 -3
- package/dist/components/EzKanban/components/KanbanSwimlane.d.ts +3 -3
- package/dist/components/EzKanban/exports.d.ts +1 -1
- package/dist/components/EzKanban/hooks/useKanbanState.d.ts +1 -1
- package/dist/components/EzKanban/index.d.ts +10 -10
- package/dist/components/EzKanban/state/kanban.store.d.ts +1 -1
- package/dist/components/EzKanban/useEzKanban.d.ts +11 -11
- package/dist/components/EzLayout/EzLayout.types.d.ts +7 -7
- package/dist/components/EzLayout/hooks/useLayoutState.d.ts +2 -2
- package/dist/components/EzScheduler/EzScheduler.types.d.ts +132 -623
- package/dist/components/EzScheduler/components/EzEventModal.d.ts +2 -2
- package/dist/components/EzScheduler/hooks/useSchedulerEvents.d.ts +3 -2
- package/dist/components/EzScheduler/hooks/useSchedulerImperative.d.ts +9 -5
- package/dist/components/EzScheduler/state/scheduler.store.d.ts +5 -5
- package/dist/components/EzScheduler/useEzScheduler.d.ts +19 -15
- package/dist/components/EzSignature/EzSignature.types.d.ts +1 -1
- package/dist/components/EzTable/EzTable.types.d.ts +52 -41
- package/dist/components/EzTable/context/TableStore.d.ts +1 -1
- package/dist/components/EzTable/hooks/useTableState.d.ts +2 -0
- package/dist/components/EzTable/services/TableService.d.ts +1 -1
- package/dist/components/EzTreeView/EzTreeView.types.d.ts +15 -13
- package/dist/components/EzTreeView/EzTreeViewItem.d.ts +12 -2
- package/dist/components/EzTreeView/EzVirtualTree.d.ts +12 -2
- package/dist/components/EzTreeView/hooks/useTreeState.d.ts +2 -2
- package/dist/components/shared/components/EzLoadingSpinner.d.ts +1 -1
- package/dist/components/shared/components/EzSortableList.d.ts +12 -0
- package/dist/{date-time-picker-Dg5iO4aJ.js → date-time-picker-B1Vqp0cm.js} +3 -3
- package/dist/{date-time-picker-DzEW-Bmv.cjs → date-time-picker-BxbQyn8E.cjs} +1 -1
- package/dist/{dropdown-menu-LhqlG2MT.js → dropdown-menu-BjVAeFwN.js} +2 -2
- package/dist/{dropdown-menu-CLhnsN7N.cjs → dropdown-menu-DfJCnVTp.cjs} +1 -1
- package/dist/ezux.css +1 -1
- package/dist/index-8lXMYRid.cjs +1 -0
- package/dist/{index-BcsSc8s2.js → index-B-b3RD0Z.js} +1393 -1376
- package/dist/{index-DCfhnuai.js → index-BPEl1Iub.js} +1503 -1471
- package/dist/{index-C8toibh_.js → index-BczIY8NY.js} +239 -239
- package/dist/{index-DsAnmh4q.js → index-Bxj2f_zm.js} +617 -593
- package/dist/index-C16Qqt7C.cjs +2 -0
- package/dist/index-Dq1wbBSU.cjs +7 -0
- package/dist/index-go8U5qNj.cjs +1 -0
- package/dist/{index.cjs.js → index.cjs} +1 -1
- package/dist/index.es.js +27 -27
- package/dist/{input-DxuQrH6O.js → input-CYORuyKf.js} +1 -1
- package/dist/{input-B9NoxCSO.cjs → input-DM6_C-FZ.cjs} +1 -1
- package/dist/kanban.cjs +1 -0
- package/dist/kanban.d.ts +0 -4
- package/dist/kanban.es.js +10 -11
- package/dist/{label-B7BoTXLS.js → label-Bq-foKkK.js} +2 -2
- package/dist/{label-DeYd9XpR.cjs → label-C-sWMXF8.cjs} +1 -1
- package/dist/{layout.cjs.js → layout.cjs} +1 -1
- package/dist/layout.es.js +4 -4
- package/dist/{popover-D_TVlxFf.js → popover-6m7K-A8W.js} +2 -2
- package/dist/{popover-CYH6CcMl.cjs → popover-BS4mvk_R.cjs} +1 -1
- package/dist/scheduler.cjs +1 -0
- package/dist/scheduler.es.js +5 -5
- package/dist/{scroll-area-DwK7cp86.js → scroll-area-DtJKbPOX.js} +2 -2
- package/dist/{scroll-area-DWxpFgHD.cjs → scroll-area-PsiUoDMK.cjs} +1 -1
- package/dist/{select-CYU3rmYP.js → select-KvBf730N.js} +2 -2
- package/dist/{select-DM7GGEbe.cjs → select-ktk_jkew.cjs} +1 -1
- package/dist/shared/hooks/useBaseComponent.d.ts +0 -1
- package/dist/shared/hooks/useServiceState.d.ts +1 -12
- package/dist/shared/services/BaseService.d.ts +10 -9
- package/dist/shared/services/I18nService.d.ts +21 -3
- package/dist/shared/state/store.d.ts +1 -1
- package/dist/shared/types/commonTypes.d.ts +1 -1
- package/dist/shared/utils/imperativeApiUtils.d.ts +8 -8
- package/dist/shared/utils/styleUtils.d.ts +0 -4
- package/dist/{signature.cjs.js → signature.cjs} +1 -1
- package/dist/signature.es.js +1 -1
- package/dist/table.cjs +1 -0
- package/dist/table.es.js +4 -4
- package/dist/treeview.cjs +2 -0
- package/dist/treeview.es.js +384 -371
- package/dist/useInitCoreServices-B7owER7o.js +980 -0
- package/dist/useInitCoreServices-BqO0fYCH.cjs +6 -0
- package/dist/{useService-CxGKHj9-.js → useService-Bg55R8kF.js} +2 -2
- package/dist/{useService-hIRedGFc.cjs → useService-Bxvu-ABY.cjs} +1 -1
- package/dist/useServiceState-CJIO90w6.js +274 -0
- package/dist/useServiceState-DLyA-FP9.cjs +1 -0
- package/package.json +25 -20
- package/dist/EzContextMenu-C-FLlXLv.cjs +0 -4
- package/dist/EzEventModal-CNbKzP9O.cjs +0 -1
- package/dist/EzGroupingPanel-Cb5jT23n.cjs +0 -1
- package/dist/EzGroupingPanel-DUtu1AlB.js +0 -59
- package/dist/EzSignature-B7Jgvbbp.js +0 -406
- package/dist/EzSignature-bZm2iren.cjs +0 -1
- package/dist/EzTableToolbar-BSzRXm-2.cjs +0 -1
- package/dist/calendar-BCRl9VPA.cjs +0 -1
- package/dist/index-C5skiNN8.cjs +0 -1
- package/dist/index-ChN7lybq.cjs +0 -7
- package/dist/index-DbjcvVWA.cjs +0 -2
- package/dist/index-DnAEVVMI.cjs +0 -1
- package/dist/kanban.cjs.js +0 -1
- package/dist/scheduler.cjs.js +0 -1
- package/dist/table.cjs.js +0 -1
- package/dist/treeview.cjs.js +0 -2
- package/dist/useInitCoreServices-B4vOEAPL.js +0 -788
- package/dist/useInitCoreServices-Bii-wC1T.cjs +0 -6
- package/dist/useServiceState-Ckpfgmrc.js +0 -15
- package/dist/useServiceState-hy6ls2Im.cjs +0 -1
- package/dist/useStore-DqUjYOjf.cjs +0 -1
- package/dist/useStore-G9cWfKGG.js +0 -2896
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
|
-
import
|
|
3
|
-
import { defaultRangeExtractor as
|
|
4
|
-
import { g as J, j as l, c as y } from "./useInitCoreServices-
|
|
5
|
-
import { g as
|
|
6
|
-
import { Check as
|
|
7
|
-
function
|
|
2
|
+
import Te, { useRef as D, useState as Pe, useEffect as A, useMemo as F, useCallback as ke } from "react";
|
|
3
|
+
import { defaultRangeExtractor as De, elementScroll as Fe, useVirtualizer as X } from "@tanstack/react-virtual";
|
|
4
|
+
import { g as J, j as l, c as y } from "./useInitCoreServices-B7owER7o.js";
|
|
5
|
+
import { g as Ve, s as Le, R as $e, A as We, P as Ge, b as T, d as Q, e as Ue, C as Be, S as He, I as qe, f as Ke, G as Ye, j as Xe, u as Ze, k as Je, h as Qe, i as et, L as tt, l as nt, m as st, n as ot, o as it } from "./EzErrorBoundary-h8XOTsBH.js";
|
|
6
|
+
import { Check as rt, Circle as at, ChevronRight as lt } from "lucide-react";
|
|
7
|
+
function _(s, o, e) {
|
|
8
8
|
let t = e.initialDeps ?? [], n, r = !0;
|
|
9
9
|
function i() {
|
|
10
10
|
var a, h, m;
|
|
@@ -39,17 +39,17 @@ function O(s, o, e) {
|
|
|
39
39
|
t = a;
|
|
40
40
|
}, i;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Z(s, o) {
|
|
43
43
|
if (s === void 0)
|
|
44
44
|
throw new Error("Unexpected undefined");
|
|
45
45
|
return s;
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const ct = (s, o) => Math.abs(s - o) < 1.01, ut = (s) => s, dt = (s) => {
|
|
48
48
|
const o = Math.max(s.startIndex - s.overscan, 0), e = Math.min(s.endIndex + s.overscan, s.count - 1), t = [];
|
|
49
49
|
for (let n = o; n <= e; n++)
|
|
50
50
|
t.push(n);
|
|
51
51
|
return t;
|
|
52
|
-
},
|
|
52
|
+
}, ht = (s, o, e) => {
|
|
53
53
|
if (o?.borderBoxSize) {
|
|
54
54
|
const t = o.borderBoxSize[0];
|
|
55
55
|
if (t)
|
|
@@ -58,7 +58,7 @@ const rt = (s, o) => Math.abs(s - o) < 1.01, at = (s) => s, lt = (s) => {
|
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
return s[e.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
61
|
-
},
|
|
61
|
+
}, ft = (s, {
|
|
62
62
|
adjustments: o = 0,
|
|
63
63
|
behavior: e
|
|
64
64
|
}, t) => {
|
|
@@ -69,7 +69,7 @@ const rt = (s, o) => Math.abs(s - o) < 1.01, at = (s) => s, lt = (s) => {
|
|
|
69
69
|
behavior: e
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
class
|
|
72
|
+
class mt {
|
|
73
73
|
constructor(o) {
|
|
74
74
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.currentScrollToIndex = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
|
|
75
75
|
let e = null;
|
|
@@ -107,11 +107,11 @@ class dt {
|
|
|
107
107
|
scrollPaddingStart: 0,
|
|
108
108
|
scrollPaddingEnd: 0,
|
|
109
109
|
horizontal: !1,
|
|
110
|
-
getItemKey:
|
|
111
|
-
rangeExtractor:
|
|
110
|
+
getItemKey: ut,
|
|
111
|
+
rangeExtractor: dt,
|
|
112
112
|
onChange: () => {
|
|
113
113
|
},
|
|
114
|
-
measureElement:
|
|
114
|
+
measureElement: ht,
|
|
115
115
|
initialRect: { width: 0, height: 0 },
|
|
116
116
|
scrollMargin: 0,
|
|
117
117
|
gap: 0,
|
|
@@ -128,7 +128,7 @@ class dt {
|
|
|
128
128
|
}, this.notify = (e) => {
|
|
129
129
|
var t, n;
|
|
130
130
|
(n = (t = this.options).onChange) == null || n.call(t, this, e);
|
|
131
|
-
}, this.maybeNotify =
|
|
131
|
+
}, this.maybeNotify = _(
|
|
132
132
|
() => (this.calculateRange(), [
|
|
133
133
|
this.isScrolling,
|
|
134
134
|
this.range ? this.range.startIndex : null,
|
|
@@ -186,7 +186,7 @@ class dt {
|
|
|
186
186
|
break;
|
|
187
187
|
}
|
|
188
188
|
return r.size === this.options.lanes ? Array.from(r.values()).sort((i, a) => i.end === a.end ? i.index - a.index : i.end - a.end)[0] : void 0;
|
|
189
|
-
}, this.getMeasurementOptions =
|
|
189
|
+
}, this.getMeasurementOptions = _(
|
|
190
190
|
() => [
|
|
191
191
|
this.options.count,
|
|
192
192
|
this.options.paddingStart,
|
|
@@ -206,7 +206,7 @@ class dt {
|
|
|
206
206
|
{
|
|
207
207
|
key: !1
|
|
208
208
|
}
|
|
209
|
-
), this.getMeasurements =
|
|
209
|
+
), this.getMeasurements = _(
|
|
210
210
|
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
211
211
|
({ count: e, paddingStart: t, scrollMargin: n, getItemKey: r, enabled: i, lanes: a }, h) => {
|
|
212
212
|
if (!i)
|
|
@@ -253,14 +253,14 @@ class dt {
|
|
|
253
253
|
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
254
254
|
debug: () => this.options.debug
|
|
255
255
|
}
|
|
256
|
-
), this.calculateRange =
|
|
256
|
+
), this.calculateRange = _(
|
|
257
257
|
() => [
|
|
258
258
|
this.getMeasurements(),
|
|
259
259
|
this.getSize(),
|
|
260
260
|
this.getScrollOffset(),
|
|
261
261
|
this.options.lanes
|
|
262
262
|
],
|
|
263
|
-
(e, t, n, r) => this.range = e.length > 0 && t > 0 ?
|
|
263
|
+
(e, t, n, r) => this.range = e.length > 0 && t > 0 ? pt({
|
|
264
264
|
measurements: e,
|
|
265
265
|
outerSize: t,
|
|
266
266
|
scrollOffset: n,
|
|
@@ -270,7 +270,7 @@ class dt {
|
|
|
270
270
|
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
271
271
|
debug: () => this.options.debug
|
|
272
272
|
}
|
|
273
|
-
), this.getVirtualIndexes =
|
|
273
|
+
), this.getVirtualIndexes = _(
|
|
274
274
|
() => {
|
|
275
275
|
let e = null, t = null;
|
|
276
276
|
const n = this.calculateRange();
|
|
@@ -320,7 +320,7 @@ class dt {
|
|
|
320
320
|
return;
|
|
321
321
|
}
|
|
322
322
|
this._measureElement(e, void 0);
|
|
323
|
-
}, this.getVirtualItems =
|
|
323
|
+
}, this.getVirtualItems = _(
|
|
324
324
|
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
325
325
|
(e, t) => {
|
|
326
326
|
const n = [];
|
|
@@ -337,11 +337,11 @@ class dt {
|
|
|
337
337
|
), this.getVirtualItemForOffset = (e) => {
|
|
338
338
|
const t = this.getMeasurements();
|
|
339
339
|
if (t.length !== 0)
|
|
340
|
-
return
|
|
341
|
-
t[
|
|
340
|
+
return Z(
|
|
341
|
+
t[ee(
|
|
342
342
|
0,
|
|
343
343
|
t.length - 1,
|
|
344
|
-
(n) =>
|
|
344
|
+
(n) => Z(t[n]).start,
|
|
345
345
|
e
|
|
346
346
|
)]
|
|
347
347
|
);
|
|
@@ -407,7 +407,7 @@ class dt {
|
|
|
407
407
|
console.warn("Failed to get offset for index:", e);
|
|
408
408
|
return;
|
|
409
409
|
}
|
|
410
|
-
|
|
410
|
+
ct(p[0], S) || h(u);
|
|
411
411
|
};
|
|
412
412
|
this.isDynamicMode() ? this.targetWindow.requestAnimationFrame(v) : v();
|
|
413
413
|
});
|
|
@@ -455,7 +455,7 @@ class dt {
|
|
|
455
455
|
}, this.setOptions(o);
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
const
|
|
458
|
+
const ee = (s, o, e, t) => {
|
|
459
459
|
for (; s <= o; ) {
|
|
460
460
|
const n = (s + o) / 2 | 0, r = e(n);
|
|
461
461
|
if (r < t)
|
|
@@ -467,7 +467,7 @@ const Z = (s, o, e, t) => {
|
|
|
467
467
|
}
|
|
468
468
|
return s > 0 ? s - 1 : 0;
|
|
469
469
|
};
|
|
470
|
-
function
|
|
470
|
+
function pt({
|
|
471
471
|
measurements: s,
|
|
472
472
|
outerSize: o,
|
|
473
473
|
scrollOffset: e,
|
|
@@ -479,7 +479,7 @@ function ht({
|
|
|
479
479
|
startIndex: 0,
|
|
480
480
|
endIndex: n
|
|
481
481
|
};
|
|
482
|
-
let i =
|
|
482
|
+
let i = ee(
|
|
483
483
|
0,
|
|
484
484
|
n,
|
|
485
485
|
r,
|
|
@@ -503,7 +503,7 @@ function ht({
|
|
|
503
503
|
}
|
|
504
504
|
return { startIndex: i, endIndex: a };
|
|
505
505
|
}
|
|
506
|
-
class
|
|
506
|
+
class gt {
|
|
507
507
|
name = "VirtualizationService";
|
|
508
508
|
// In a real implementation, we might store multiple virtualizer instances mapped by ID
|
|
509
509
|
virtualizers = /* @__PURE__ */ new Map();
|
|
@@ -515,13 +515,13 @@ class ft {
|
|
|
515
515
|
* @group Methods
|
|
516
516
|
*/
|
|
517
517
|
createVirtualizer(o, e) {
|
|
518
|
-
const t = new
|
|
518
|
+
const t = new mt({
|
|
519
519
|
count: e.count,
|
|
520
520
|
getScrollElement: e.getScrollElement,
|
|
521
521
|
estimateSize: e.estimateSize,
|
|
522
522
|
overscan: e.overscan ?? 5,
|
|
523
523
|
horizontal: e.horizontal ?? !1,
|
|
524
|
-
scrollToFn:
|
|
524
|
+
scrollToFn: ft,
|
|
525
525
|
observeElementRect: (n, r) => {
|
|
526
526
|
const i = n.scrollElement;
|
|
527
527
|
if (!i || i === window) return;
|
|
@@ -561,7 +561,7 @@ class ft {
|
|
|
561
561
|
this.virtualizers.clear();
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
const
|
|
564
|
+
const Zt = (s) => {
|
|
565
565
|
const {
|
|
566
566
|
rowCount: o,
|
|
567
567
|
rowHeight: e = 48,
|
|
@@ -582,8 +582,8 @@ const Kt = (s) => {
|
|
|
582
582
|
onScroll: R,
|
|
583
583
|
onScrollStart: b,
|
|
584
584
|
onScrollStop: N
|
|
585
|
-
} = s, M =
|
|
586
|
-
|
|
585
|
+
} = s, M = D(null), [E, B] = Pe(d ? 1 : t || u), H = D(null), O = D(null), P = D(!1), q = "lanugageDirection";
|
|
586
|
+
A(() => {
|
|
587
587
|
if (!d) return;
|
|
588
588
|
let x;
|
|
589
589
|
const C = () => {
|
|
@@ -596,15 +596,15 @@ const Kt = (s) => {
|
|
|
596
596
|
j.removeEventListener("scroll", C), clearTimeout(x);
|
|
597
597
|
};
|
|
598
598
|
}, [d, t, u]);
|
|
599
|
-
const k =
|
|
600
|
-
const C =
|
|
599
|
+
const k = F(() => w || ((x) => {
|
|
600
|
+
const C = De(x);
|
|
601
601
|
return C.length === 0 && x.count > 0 ? [0] : C;
|
|
602
|
-
}), [w]),
|
|
602
|
+
}), [w]), K = ke(
|
|
603
603
|
(x, C, j) => {
|
|
604
|
-
|
|
604
|
+
Fe(x, C, j);
|
|
605
605
|
},
|
|
606
606
|
[]
|
|
607
|
-
),
|
|
607
|
+
), _e = F(() => ({
|
|
608
608
|
count: o,
|
|
609
609
|
getScrollElement: () => M.current,
|
|
610
610
|
estimateSize: typeof e == "function" ? e : () => e,
|
|
@@ -613,15 +613,13 @@ const Kt = (s) => {
|
|
|
613
613
|
scrollPaddingStart: m,
|
|
614
614
|
scrollPaddingEnd: c,
|
|
615
615
|
rangeExtractor: k,
|
|
616
|
-
scrollToFn:
|
|
617
|
-
|
|
618
|
-
// TanStack Virtual v3 uses this specific (misspelled) property
|
|
619
|
-
// Only track scroll state, don't interfere with scroll position
|
|
616
|
+
scrollToFn: K,
|
|
617
|
+
[q]: S,
|
|
620
618
|
onChange: (x) => {
|
|
621
619
|
const C = x.scrollOffset ?? 0;
|
|
622
|
-
|
|
623
|
-
R?.(C);
|
|
624
|
-
}
|
|
620
|
+
O.current !== null && cancelAnimationFrame(O.current), O.current = requestAnimationFrame(() => {
|
|
621
|
+
R?.(C), O.current = null;
|
|
622
|
+
}), x.isScrolling ? P.current || (P.current = !0, b?.()) : P.current && (P.current = !1, N?.());
|
|
625
623
|
}
|
|
626
624
|
}), [
|
|
627
625
|
o,
|
|
@@ -632,37 +630,34 @@ const Kt = (s) => {
|
|
|
632
630
|
m,
|
|
633
631
|
c,
|
|
634
632
|
k,
|
|
635
|
-
|
|
633
|
+
K,
|
|
636
634
|
R,
|
|
637
635
|
b,
|
|
638
636
|
N
|
|
639
|
-
]), z = X(
|
|
640
|
-
|
|
637
|
+
]), z = X(_e);
|
|
638
|
+
A(() => {
|
|
641
639
|
p && console.log("[DEBUG_VIRTUAL] Virtualizer instance changed");
|
|
642
640
|
}, [z, p]);
|
|
643
|
-
const
|
|
641
|
+
const W = F(() => Ve(
|
|
644
642
|
J,
|
|
645
643
|
"VirtualizationService",
|
|
646
|
-
() => new
|
|
644
|
+
() => new gt()
|
|
647
645
|
), []);
|
|
648
|
-
|
|
649
|
-
s.id &&
|
|
650
|
-
}, [s.id, z,
|
|
651
|
-
const
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}, [
|
|
663
|
-
T(() => () => {
|
|
664
|
-
_.current && clearTimeout(_.current);
|
|
665
|
-
}, []), T(() => {
|
|
646
|
+
A(() => {
|
|
647
|
+
s.id && W && W.registerVirtualizer(s.id, z);
|
|
648
|
+
}, [s.id, z, W]);
|
|
649
|
+
const je = F(() => ({
|
|
650
|
+
horizontal: !0,
|
|
651
|
+
count: a && r ? r : 0,
|
|
652
|
+
getScrollElement: () => M.current,
|
|
653
|
+
estimateSize: typeof i == "function" ? i : () => i,
|
|
654
|
+
overscan: E,
|
|
655
|
+
rangeExtractor: k,
|
|
656
|
+
[q]: S
|
|
657
|
+
}), [a, r, i, E, k]), Ae = X(je), G = a && r ? Ae : void 0;
|
|
658
|
+
A(() => () => {
|
|
659
|
+
H.current && clearTimeout(H.current), O.current !== null && cancelAnimationFrame(O.current);
|
|
660
|
+
}, []), A(() => {
|
|
666
661
|
p && process.env.NODE_ENV !== "production" && console.log("Virtualization Debug:", {
|
|
667
662
|
rowCount: o,
|
|
668
663
|
visibleRows: z.getVirtualItems().length,
|
|
@@ -670,40 +665,40 @@ const Kt = (s) => {
|
|
|
670
665
|
scrollOffset: z.scrollOffset
|
|
671
666
|
});
|
|
672
667
|
}, [p, o, z, E]);
|
|
673
|
-
const
|
|
668
|
+
const Y = (x, C) => {
|
|
674
669
|
z.scrollToIndex(x, C);
|
|
675
670
|
};
|
|
676
671
|
return {
|
|
677
672
|
parentRef: M,
|
|
678
673
|
rowVirtualizer: z,
|
|
679
|
-
columnVirtualizer:
|
|
680
|
-
scrollToIndex:
|
|
681
|
-
scrollToRow:
|
|
682
|
-
scrollToColumn:
|
|
683
|
-
|
|
674
|
+
columnVirtualizer: G,
|
|
675
|
+
scrollToIndex: Y,
|
|
676
|
+
scrollToRow: Y,
|
|
677
|
+
scrollToColumn: G ? (x, C) => {
|
|
678
|
+
G.scrollToIndex(x, C);
|
|
684
679
|
} : void 0,
|
|
685
680
|
getVirtualItems: () => z.getVirtualItems(),
|
|
686
681
|
scrollOffset: z.scrollOffset ?? 0
|
|
687
682
|
};
|
|
688
683
|
};
|
|
689
|
-
var U = "ContextMenu", [
|
|
684
|
+
var U = "ContextMenu", [xt] = Ke(U, [
|
|
690
685
|
Q
|
|
691
|
-
]), g = Q(), [
|
|
692
|
-
const { __scopeContextMenu: o, children: e, onOpenChange: t, dir: n, modal: r = !0 } = s, [i, a] = f.useState(!1), h = g(o), m =
|
|
686
|
+
]), g = Q(), [vt, te] = xt(U), ne = (s) => {
|
|
687
|
+
const { __scopeContextMenu: o, children: e, onOpenChange: t, dir: n, modal: r = !0 } = s, [i, a] = f.useState(!1), h = g(o), m = Le(t), c = f.useCallback(
|
|
693
688
|
(d) => {
|
|
694
689
|
a(d), m(d);
|
|
695
690
|
},
|
|
696
691
|
[m]
|
|
697
692
|
);
|
|
698
693
|
return /* @__PURE__ */ l.jsx(
|
|
699
|
-
|
|
694
|
+
vt,
|
|
700
695
|
{
|
|
701
696
|
scope: o,
|
|
702
697
|
open: i,
|
|
703
698
|
onOpenChange: c,
|
|
704
699
|
modal: r,
|
|
705
700
|
children: /* @__PURE__ */ l.jsx(
|
|
706
|
-
|
|
701
|
+
$e,
|
|
707
702
|
{
|
|
708
703
|
...h,
|
|
709
704
|
dir: n,
|
|
@@ -716,10 +711,10 @@ var U = "ContextMenu", [mt] = Be(U, [
|
|
|
716
711
|
}
|
|
717
712
|
);
|
|
718
713
|
};
|
|
719
|
-
|
|
720
|
-
var
|
|
714
|
+
ne.displayName = U;
|
|
715
|
+
var se = "ContextMenuTrigger", oe = f.forwardRef(
|
|
721
716
|
(s, o) => {
|
|
722
|
-
const { __scopeContextMenu: e, disabled: t = !1, ...n } = s, r =
|
|
717
|
+
const { __scopeContextMenu: e, disabled: t = !1, ...n } = s, r = te(se, e), i = g(e), a = f.useRef({ x: 0, y: 0 }), h = f.useRef({
|
|
723
718
|
getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...a.current })
|
|
724
719
|
}), m = f.useRef(0), c = f.useCallback(
|
|
725
720
|
() => window.clearTimeout(m.current),
|
|
@@ -730,43 +725,43 @@ var ne = "ContextMenuTrigger", se = f.forwardRef(
|
|
|
730
725
|
return f.useEffect(() => c, [c]), f.useEffect(() => {
|
|
731
726
|
t && c();
|
|
732
727
|
}, [t, c]), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
733
|
-
/* @__PURE__ */ l.jsx(
|
|
728
|
+
/* @__PURE__ */ l.jsx(We, { ...i, virtualRef: h }),
|
|
734
729
|
/* @__PURE__ */ l.jsx(
|
|
735
|
-
|
|
730
|
+
Ge.span,
|
|
736
731
|
{
|
|
737
732
|
"data-state": r.open ? "open" : "closed",
|
|
738
733
|
"data-disabled": t ? "" : void 0,
|
|
739
734
|
...n,
|
|
740
735
|
ref: o,
|
|
741
736
|
style: { WebkitTouchCallout: "none", ...s.style },
|
|
742
|
-
onContextMenu: t ? s.onContextMenu :
|
|
737
|
+
onContextMenu: t ? s.onContextMenu : T(s.onContextMenu, (u) => {
|
|
743
738
|
c(), d(u), u.preventDefault();
|
|
744
739
|
}),
|
|
745
|
-
onPointerDown: t ? s.onPointerDown :
|
|
740
|
+
onPointerDown: t ? s.onPointerDown : T(
|
|
746
741
|
s.onPointerDown,
|
|
747
742
|
V((u) => {
|
|
748
743
|
c(), m.current = window.setTimeout(() => d(u), 700);
|
|
749
744
|
})
|
|
750
745
|
),
|
|
751
|
-
onPointerMove: t ? s.onPointerMove :
|
|
752
|
-
onPointerCancel: t ? s.onPointerCancel :
|
|
753
|
-
onPointerUp: t ? s.onPointerUp :
|
|
746
|
+
onPointerMove: t ? s.onPointerMove : T(s.onPointerMove, V(c)),
|
|
747
|
+
onPointerCancel: t ? s.onPointerCancel : T(s.onPointerCancel, V(c)),
|
|
748
|
+
onPointerUp: t ? s.onPointerUp : T(s.onPointerUp, V(c))
|
|
754
749
|
}
|
|
755
750
|
)
|
|
756
751
|
] });
|
|
757
752
|
}
|
|
758
753
|
);
|
|
759
|
-
|
|
760
|
-
var
|
|
754
|
+
oe.displayName = se;
|
|
755
|
+
var Ct = "ContextMenuPortal", ie = (s) => {
|
|
761
756
|
const { __scopeContextMenu: o, ...e } = s, t = g(o);
|
|
762
|
-
return /* @__PURE__ */ l.jsx(
|
|
757
|
+
return /* @__PURE__ */ l.jsx(Ue, { ...t, ...e });
|
|
763
758
|
};
|
|
764
|
-
|
|
765
|
-
var
|
|
759
|
+
ie.displayName = Ct;
|
|
760
|
+
var re = "ContextMenuContent", ae = f.forwardRef(
|
|
766
761
|
(s, o) => {
|
|
767
|
-
const { __scopeContextMenu: e, ...t } = s, n =
|
|
762
|
+
const { __scopeContextMenu: e, ...t } = s, n = te(re, e), r = g(e), i = f.useRef(!1);
|
|
768
763
|
return /* @__PURE__ */ l.jsx(
|
|
769
|
-
|
|
764
|
+
Be,
|
|
770
765
|
{
|
|
771
766
|
...r,
|
|
772
767
|
...t,
|
|
@@ -792,79 +787,79 @@ var ie = "ContextMenuContent", re = f.forwardRef(
|
|
|
792
787
|
);
|
|
793
788
|
}
|
|
794
789
|
);
|
|
795
|
-
|
|
796
|
-
var
|
|
790
|
+
ae.displayName = re;
|
|
791
|
+
var bt = "ContextMenuGroup", le = f.forwardRef(
|
|
797
792
|
(s, o) => {
|
|
798
793
|
const { __scopeContextMenu: e, ...t } = s, n = g(e);
|
|
799
|
-
return /* @__PURE__ */ l.jsx(
|
|
794
|
+
return /* @__PURE__ */ l.jsx(Ye, { ...n, ...t, ref: o });
|
|
800
795
|
}
|
|
801
796
|
);
|
|
802
|
-
|
|
803
|
-
var
|
|
797
|
+
le.displayName = bt;
|
|
798
|
+
var Mt = "ContextMenuLabel", ce = f.forwardRef(
|
|
804
799
|
(s, o) => {
|
|
805
800
|
const { __scopeContextMenu: e, ...t } = s, n = g(e);
|
|
806
|
-
return /* @__PURE__ */ l.jsx(
|
|
801
|
+
return /* @__PURE__ */ l.jsx(tt, { ...n, ...t, ref: o });
|
|
807
802
|
}
|
|
808
803
|
);
|
|
809
|
-
|
|
810
|
-
var
|
|
804
|
+
ce.displayName = Mt;
|
|
805
|
+
var St = "ContextMenuItem", ue = f.forwardRef(
|
|
811
806
|
(s, o) => {
|
|
812
807
|
const { __scopeContextMenu: e, ...t } = s, n = g(e);
|
|
813
|
-
return /* @__PURE__ */ l.jsx(
|
|
808
|
+
return /* @__PURE__ */ l.jsx(qe, { ...n, ...t, ref: o });
|
|
814
809
|
}
|
|
815
810
|
);
|
|
816
|
-
|
|
817
|
-
var
|
|
811
|
+
ue.displayName = St;
|
|
812
|
+
var wt = "ContextMenuCheckboxItem", de = f.forwardRef((s, o) => {
|
|
818
813
|
const { __scopeContextMenu: e, ...t } = s, n = g(e);
|
|
819
|
-
return /* @__PURE__ */ l.jsx(
|
|
814
|
+
return /* @__PURE__ */ l.jsx(Qe, { ...n, ...t, ref: o });
|
|
820
815
|
});
|
|
821
|
-
|
|
822
|
-
var
|
|
816
|
+
de.displayName = wt;
|
|
817
|
+
var zt = "ContextMenuRadioGroup", he = f.forwardRef((s, o) => {
|
|
823
818
|
const { __scopeContextMenu: e, ...t } = s, n = g(e);
|
|
824
|
-
return /* @__PURE__ */ l.jsx(
|
|
819
|
+
return /* @__PURE__ */ l.jsx(Xe, { ...n, ...t, ref: o });
|
|
825
820
|
});
|
|
826
|
-
|
|
827
|
-
var
|
|
821
|
+
he.displayName = zt;
|
|
822
|
+
var Et = "ContextMenuRadioItem", fe = f.forwardRef((s, o) => {
|
|
828
823
|
const { __scopeContextMenu: e, ...t } = s, n = g(e);
|
|
829
|
-
return /* @__PURE__ */ l.jsx(
|
|
824
|
+
return /* @__PURE__ */ l.jsx(nt, { ...n, ...t, ref: o });
|
|
830
825
|
});
|
|
831
|
-
|
|
832
|
-
var
|
|
826
|
+
fe.displayName = Et;
|
|
827
|
+
var yt = "ContextMenuItemIndicator", me = f.forwardRef((s, o) => {
|
|
833
828
|
const { __scopeContextMenu: e, ...t } = s, n = g(e);
|
|
834
|
-
return /* @__PURE__ */ l.jsx(
|
|
829
|
+
return /* @__PURE__ */ l.jsx(et, { ...n, ...t, ref: o });
|
|
835
830
|
});
|
|
836
|
-
|
|
837
|
-
var
|
|
831
|
+
me.displayName = yt;
|
|
832
|
+
var Rt = "ContextMenuSeparator", pe = f.forwardRef((s, o) => {
|
|
838
833
|
const { __scopeContextMenu: e, ...t } = s, n = g(e);
|
|
839
|
-
return /* @__PURE__ */ l.jsx(
|
|
834
|
+
return /* @__PURE__ */ l.jsx(He, { ...n, ...t, ref: o });
|
|
840
835
|
});
|
|
841
|
-
|
|
842
|
-
var
|
|
836
|
+
pe.displayName = Rt;
|
|
837
|
+
var It = "ContextMenuArrow", Nt = f.forwardRef(
|
|
843
838
|
(s, o) => {
|
|
844
839
|
const { __scopeContextMenu: e, ...t } = s, n = g(e);
|
|
845
|
-
return /* @__PURE__ */ l.jsx(
|
|
840
|
+
return /* @__PURE__ */ l.jsx(it, { ...n, ...t, ref: o });
|
|
846
841
|
}
|
|
847
842
|
);
|
|
848
|
-
|
|
849
|
-
var
|
|
850
|
-
const { __scopeContextMenu: o, children: e, onOpenChange: t, open: n, defaultOpen: r } = s, i = g(o), [a, h] =
|
|
843
|
+
Nt.displayName = It;
|
|
844
|
+
var ge = "ContextMenuSub", xe = (s) => {
|
|
845
|
+
const { __scopeContextMenu: o, children: e, onOpenChange: t, open: n, defaultOpen: r } = s, i = g(o), [a, h] = Ze({
|
|
851
846
|
prop: n,
|
|
852
847
|
defaultProp: r ?? !1,
|
|
853
848
|
onChange: t,
|
|
854
|
-
caller:
|
|
849
|
+
caller: ge
|
|
855
850
|
});
|
|
856
|
-
return /* @__PURE__ */ l.jsx(
|
|
851
|
+
return /* @__PURE__ */ l.jsx(Je, { ...i, open: a, onOpenChange: h, children: e });
|
|
857
852
|
};
|
|
858
|
-
|
|
859
|
-
var
|
|
853
|
+
xe.displayName = ge;
|
|
854
|
+
var Ot = "ContextMenuSubTrigger", ve = f.forwardRef((s, o) => {
|
|
860
855
|
const { __scopeContextMenu: e, ...t } = s, n = g(e);
|
|
861
|
-
return /* @__PURE__ */ l.jsx(
|
|
856
|
+
return /* @__PURE__ */ l.jsx(ot, { ...n, ...t, ref: o });
|
|
862
857
|
});
|
|
863
|
-
|
|
864
|
-
var
|
|
858
|
+
ve.displayName = Ot;
|
|
859
|
+
var _t = "ContextMenuSubContent", Ce = f.forwardRef((s, o) => {
|
|
865
860
|
const { __scopeContextMenu: e, ...t } = s, n = g(e);
|
|
866
861
|
return /* @__PURE__ */ l.jsx(
|
|
867
|
-
|
|
862
|
+
st,
|
|
868
863
|
{
|
|
869
864
|
...n,
|
|
870
865
|
...t,
|
|
@@ -880,13 +875,13 @@ var It = "ContextMenuSubContent", ve = f.forwardRef((s, o) => {
|
|
|
880
875
|
}
|
|
881
876
|
);
|
|
882
877
|
});
|
|
883
|
-
|
|
878
|
+
Ce.displayName = _t;
|
|
884
879
|
function V(s) {
|
|
885
880
|
return (o) => o.pointerType !== "mouse" ? s(o) : void 0;
|
|
886
881
|
}
|
|
887
|
-
var
|
|
888
|
-
const
|
|
889
|
-
|
|
882
|
+
var jt = ne, At = oe, be = ie, Me = ae, Tt = le, Se = ce, we = ue, ze = de, Pt = he, Ee = fe, ye = me, Re = pe, kt = xe, Ie = ve, Ne = Ce;
|
|
883
|
+
const Dt = jt, Ft = At, Jt = Tt, Qt = be, en = kt, tn = Pt, Vt = f.forwardRef(({ className: s, inset: o, children: e, ...t }, n) => /* @__PURE__ */ l.jsxs(
|
|
884
|
+
Ie,
|
|
890
885
|
{
|
|
891
886
|
ref: n,
|
|
892
887
|
className: y(
|
|
@@ -897,13 +892,13 @@ const At = Nt, Pt = Ot, Xt = _t, Yt = Ce, Jt = Tt, Qt = jt, kt = f.forwardRef(({
|
|
|
897
892
|
...t,
|
|
898
893
|
children: [
|
|
899
894
|
e,
|
|
900
|
-
/* @__PURE__ */ l.jsx(
|
|
895
|
+
/* @__PURE__ */ l.jsx(lt, { className: "ml-auto h-4 w-4" })
|
|
901
896
|
]
|
|
902
897
|
}
|
|
903
898
|
));
|
|
904
|
-
|
|
905
|
-
const
|
|
906
|
-
|
|
899
|
+
Vt.displayName = Ie.displayName;
|
|
900
|
+
const Lt = f.forwardRef(({ className: s, ...o }, e) => /* @__PURE__ */ l.jsx(
|
|
901
|
+
Ne,
|
|
907
902
|
{
|
|
908
903
|
ref: e,
|
|
909
904
|
className: y(
|
|
@@ -913,9 +908,9 @@ const Dt = f.forwardRef(({ className: s, ...o }, e) => /* @__PURE__ */ l.jsx(
|
|
|
913
908
|
...o
|
|
914
909
|
}
|
|
915
910
|
));
|
|
916
|
-
|
|
917
|
-
const
|
|
918
|
-
|
|
911
|
+
Lt.displayName = Ne.displayName;
|
|
912
|
+
const Oe = f.forwardRef(({ className: s, ...o }, e) => /* @__PURE__ */ l.jsx(be, { children: /* @__PURE__ */ l.jsx(
|
|
913
|
+
Me,
|
|
919
914
|
{
|
|
920
915
|
ref: e,
|
|
921
916
|
className: y(
|
|
@@ -925,9 +920,9 @@ const Ne = f.forwardRef(({ className: s, ...o }, e) => /* @__PURE__ */ l.jsx(Ce,
|
|
|
925
920
|
...o
|
|
926
921
|
}
|
|
927
922
|
) }));
|
|
928
|
-
|
|
923
|
+
Oe.displayName = Me.displayName;
|
|
929
924
|
const I = f.forwardRef(({ className: s, inset: o, ...e }, t) => /* @__PURE__ */ l.jsx(
|
|
930
|
-
|
|
925
|
+
we,
|
|
931
926
|
{
|
|
932
927
|
ref: t,
|
|
933
928
|
className: y(
|
|
@@ -938,9 +933,9 @@ const I = f.forwardRef(({ className: s, inset: o, ...e }, t) => /* @__PURE__ */
|
|
|
938
933
|
...e
|
|
939
934
|
}
|
|
940
935
|
));
|
|
941
|
-
I.displayName =
|
|
942
|
-
const
|
|
943
|
-
|
|
936
|
+
I.displayName = we.displayName;
|
|
937
|
+
const $t = f.forwardRef(({ className: s, children: o, checked: e, ...t }, n) => /* @__PURE__ */ l.jsxs(
|
|
938
|
+
ze,
|
|
944
939
|
{
|
|
945
940
|
ref: n,
|
|
946
941
|
className: y(
|
|
@@ -950,14 +945,14 @@ const Vt = f.forwardRef(({ className: s, children: o, checked: e, ...t }, n) =>
|
|
|
950
945
|
checked: e,
|
|
951
946
|
...t,
|
|
952
947
|
children: [
|
|
953
|
-
/* @__PURE__ */ l.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ l.jsx(
|
|
948
|
+
/* @__PURE__ */ l.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ l.jsx(ye, { children: /* @__PURE__ */ l.jsx(rt, { className: "h-4 w-4" }) }) }),
|
|
954
949
|
o
|
|
955
950
|
]
|
|
956
951
|
}
|
|
957
952
|
));
|
|
958
|
-
|
|
959
|
-
const
|
|
960
|
-
|
|
953
|
+
$t.displayName = ze.displayName;
|
|
954
|
+
const Wt = f.forwardRef(({ className: s, children: o, ...e }, t) => /* @__PURE__ */ l.jsxs(
|
|
955
|
+
Ee,
|
|
961
956
|
{
|
|
962
957
|
ref: t,
|
|
963
958
|
className: y(
|
|
@@ -966,14 +961,14 @@ const Ft = f.forwardRef(({ className: s, children: o, ...e }, t) => /* @__PURE__
|
|
|
966
961
|
),
|
|
967
962
|
...e,
|
|
968
963
|
children: [
|
|
969
|
-
/* @__PURE__ */ l.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ l.jsx(
|
|
964
|
+
/* @__PURE__ */ l.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ l.jsx(ye, { children: /* @__PURE__ */ l.jsx(at, { className: "h-2 w-2 fill-current" }) }) }),
|
|
970
965
|
o
|
|
971
966
|
]
|
|
972
967
|
}
|
|
973
968
|
));
|
|
974
|
-
|
|
975
|
-
const
|
|
976
|
-
|
|
969
|
+
Wt.displayName = Ee.displayName;
|
|
970
|
+
const Gt = f.forwardRef(({ className: s, inset: o, ...e }, t) => /* @__PURE__ */ l.jsx(
|
|
971
|
+
Se,
|
|
977
972
|
{
|
|
978
973
|
ref: t,
|
|
979
974
|
className: y(
|
|
@@ -984,9 +979,9 @@ const Lt = f.forwardRef(({ className: s, inset: o, ...e }, t) => /* @__PURE__ */
|
|
|
984
979
|
...e
|
|
985
980
|
}
|
|
986
981
|
));
|
|
987
|
-
|
|
988
|
-
const
|
|
989
|
-
|
|
982
|
+
Gt.displayName = Se.displayName;
|
|
983
|
+
const L = f.forwardRef(({ className: s, ...o }, e) => /* @__PURE__ */ l.jsx(
|
|
984
|
+
Re,
|
|
990
985
|
{
|
|
991
986
|
ref: e,
|
|
992
987
|
className: y(
|
|
@@ -996,8 +991,8 @@ const F = f.forwardRef(({ className: s, ...o }, e) => /* @__PURE__ */ l.jsx(
|
|
|
996
991
|
...o
|
|
997
992
|
}
|
|
998
993
|
));
|
|
999
|
-
|
|
1000
|
-
const
|
|
994
|
+
L.displayName = Re.displayName;
|
|
995
|
+
const $ = ({
|
|
1001
996
|
className: s,
|
|
1002
997
|
...o
|
|
1003
998
|
}) => /* @__PURE__ */ l.jsx(
|
|
@@ -1010,8 +1005,8 @@ const L = ({
|
|
|
1010
1005
|
...o
|
|
1011
1006
|
}
|
|
1012
1007
|
);
|
|
1013
|
-
|
|
1014
|
-
const
|
|
1008
|
+
$.displayName = "ContextMenuShortcut";
|
|
1009
|
+
const nn = ({ row: s, data: o, contextId: e, children: t, enabled: n = !0, onAction: r }) => {
|
|
1015
1010
|
if (!n)
|
|
1016
1011
|
return /* @__PURE__ */ l.jsx(l.Fragment, { children: t });
|
|
1017
1012
|
const i = o || s?.original, h = (() => {
|
|
@@ -1021,9 +1016,9 @@ const Zt = ({ row: s, data: o, contextId: e, children: t, enabled: n = !0, onAct
|
|
|
1021
1016
|
})(), m = h.length > 0, c = (d) => {
|
|
1022
1017
|
r?.(d, i);
|
|
1023
1018
|
};
|
|
1024
|
-
return /* @__PURE__ */ l.jsxs(
|
|
1025
|
-
/* @__PURE__ */ l.jsx(
|
|
1026
|
-
/* @__PURE__ */ l.jsx(
|
|
1019
|
+
return /* @__PURE__ */ l.jsxs(Dt, { children: [
|
|
1020
|
+
/* @__PURE__ */ l.jsx(Ft, { asChild: !0, children: /* @__PURE__ */ l.jsx("span", { className: "contents", children: t }) }),
|
|
1021
|
+
/* @__PURE__ */ l.jsx(Oe, { className: "w-64", children: m ? h.map((d, u) => /* @__PURE__ */ l.jsx(Te.Fragment, { children: d.isSeparator ? /* @__PURE__ */ l.jsx(L, {}) : /* @__PURE__ */ l.jsxs(
|
|
1027
1022
|
I,
|
|
1028
1023
|
{
|
|
1029
1024
|
inset: !0,
|
|
@@ -1034,7 +1029,7 @@ const Zt = ({ row: s, data: o, contextId: e, children: t, enabled: n = !0, onAct
|
|
|
1034
1029
|
className: d.className,
|
|
1035
1030
|
children: [
|
|
1036
1031
|
d.label,
|
|
1037
|
-
d.shortcut && /* @__PURE__ */ l.jsx(
|
|
1032
|
+
d.shortcut && /* @__PURE__ */ l.jsx($, { children: d.shortcut })
|
|
1038
1033
|
]
|
|
1039
1034
|
}
|
|
1040
1035
|
) }, d.id || u)) : (
|
|
@@ -1042,39 +1037,39 @@ const Zt = ({ row: s, data: o, contextId: e, children: t, enabled: n = !0, onAct
|
|
|
1042
1037
|
/* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
1043
1038
|
/* @__PURE__ */ l.jsxs(I, { inset: !0, onSelect: () => c("copy"), children: [
|
|
1044
1039
|
"Copy Data",
|
|
1045
|
-
/* @__PURE__ */ l.jsx(
|
|
1040
|
+
/* @__PURE__ */ l.jsx($, { children: "⌘C" })
|
|
1046
1041
|
] }),
|
|
1047
|
-
/* @__PURE__ */ l.jsx(
|
|
1042
|
+
/* @__PURE__ */ l.jsx(L, {}),
|
|
1048
1043
|
s && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
1049
1044
|
s.getIsPinned() !== "top" && /* @__PURE__ */ l.jsx(I, { inset: !0, onSelect: () => c("pin-top"), children: "Pin to Top" }),
|
|
1050
1045
|
s.getIsPinned() !== "bottom" && /* @__PURE__ */ l.jsx(I, { inset: !0, onSelect: () => c("pin-bottom"), children: "Pin to Bottom" }),
|
|
1051
1046
|
s.getIsPinned() && /* @__PURE__ */ l.jsx(I, { inset: !0, onSelect: () => c("unpin"), children: "Unpin Row" }),
|
|
1052
|
-
/* @__PURE__ */ l.jsx(
|
|
1047
|
+
/* @__PURE__ */ l.jsx(L, {})
|
|
1053
1048
|
] }),
|
|
1054
1049
|
/* @__PURE__ */ l.jsxs(I, { inset: !0, className: "text-red-600 focus:text-red-600 focus:bg-red-50 dark:focus:bg-red-950/50", onSelect: () => c("delete"), children: [
|
|
1055
1050
|
"Delete Row",
|
|
1056
|
-
/* @__PURE__ */ l.jsx(
|
|
1051
|
+
/* @__PURE__ */ l.jsx($, { children: "⌘⌫" })
|
|
1057
1052
|
] })
|
|
1058
1053
|
] })
|
|
1059
1054
|
) })
|
|
1060
1055
|
] });
|
|
1061
1056
|
};
|
|
1062
1057
|
export {
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1058
|
+
Dt as C,
|
|
1059
|
+
nn as E,
|
|
1060
|
+
$t as a,
|
|
1061
|
+
Oe as b,
|
|
1062
|
+
Jt as c,
|
|
1068
1063
|
I as d,
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1064
|
+
Gt as e,
|
|
1065
|
+
Qt as f,
|
|
1066
|
+
tn as g,
|
|
1067
|
+
Wt as h,
|
|
1068
|
+
L as i,
|
|
1069
|
+
$ as j,
|
|
1070
|
+
en as k,
|
|
1071
|
+
Lt as l,
|
|
1072
|
+
Vt as m,
|
|
1073
|
+
Ft as n,
|
|
1074
|
+
Zt as u
|
|
1080
1075
|
};
|