@teamprodevs/appsmith-custom-table 1.1.0 → 1.1.1
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/app.js +87 -98
- package/dist/app.umd.cjs +6 -6
- package/dist/index.d.ts +0 -4
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -2117,7 +2117,7 @@ const gR = (e, t) => {
|
|
|
2117
2117
|
"left-bottom"
|
|
2118
2118
|
], I = () => [...b(), P, A], j = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], L = () => [P, A, l], T = () => [H1, "full", "auto", ...L()], R = () => [at, "none", "subgrid", P, A], Z = () => ["auto", {
|
|
2119
2119
|
span: ["full", at, P, A]
|
|
2120
|
-
}, at, P, A], X = () => [at, "auto", P, A], J = () => ["auto", "min", "max", "fr", P, A], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"],
|
|
2120
|
+
}, at, P, A], X = () => [at, "auto", P, A], J = () => ["auto", "min", "max", "fr", P, A], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], te = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], E = () => ["auto", ...L()], Y = () => [H1, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...L()], C = () => [e, P, A], q = () => [...b(), fL, mL, {
|
|
2121
2121
|
position: [P, A]
|
|
2122
2122
|
}], re = () => ["no-repeat", {
|
|
2123
2123
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -2548,14 +2548,14 @@ const gR = (e, t) => {
|
|
|
2548
2548
|
* @see https://tailwindcss.com/docs/justify-items
|
|
2549
2549
|
*/
|
|
2550
2550
|
"justify-items": [{
|
|
2551
|
-
"justify-items": [...
|
|
2551
|
+
"justify-items": [...te(), "normal"]
|
|
2552
2552
|
}],
|
|
2553
2553
|
/**
|
|
2554
2554
|
* Justify Self
|
|
2555
2555
|
* @see https://tailwindcss.com/docs/justify-self
|
|
2556
2556
|
*/
|
|
2557
2557
|
"justify-self": [{
|
|
2558
|
-
"justify-self": ["auto", ...
|
|
2558
|
+
"justify-self": ["auto", ...te()]
|
|
2559
2559
|
}],
|
|
2560
2560
|
/**
|
|
2561
2561
|
* Align Content
|
|
@@ -2569,7 +2569,7 @@ const gR = (e, t) => {
|
|
|
2569
2569
|
* @see https://tailwindcss.com/docs/align-items
|
|
2570
2570
|
*/
|
|
2571
2571
|
"align-items": [{
|
|
2572
|
-
items: [...
|
|
2572
|
+
items: [...te(), {
|
|
2573
2573
|
baseline: ["", "last"]
|
|
2574
2574
|
}]
|
|
2575
2575
|
}],
|
|
@@ -2578,7 +2578,7 @@ const gR = (e, t) => {
|
|
|
2578
2578
|
* @see https://tailwindcss.com/docs/align-self
|
|
2579
2579
|
*/
|
|
2580
2580
|
"align-self": [{
|
|
2581
|
-
self: ["auto", ...
|
|
2581
|
+
self: ["auto", ...te(), {
|
|
2582
2582
|
baseline: ["", "last"]
|
|
2583
2583
|
}]
|
|
2584
2584
|
}],
|
|
@@ -2594,14 +2594,14 @@ const gR = (e, t) => {
|
|
|
2594
2594
|
* @see https://tailwindcss.com/docs/place-items
|
|
2595
2595
|
*/
|
|
2596
2596
|
"place-items": [{
|
|
2597
|
-
"place-items": [...
|
|
2597
|
+
"place-items": [...te(), "baseline"]
|
|
2598
2598
|
}],
|
|
2599
2599
|
/**
|
|
2600
2600
|
* Place Self
|
|
2601
2601
|
* @see https://tailwindcss.com/docs/place-self
|
|
2602
2602
|
*/
|
|
2603
2603
|
"place-self": [{
|
|
2604
|
-
"place-self": ["auto", ...
|
|
2604
|
+
"place-self": ["auto", ...te()]
|
|
2605
2605
|
}],
|
|
2606
2606
|
// Spacing
|
|
2607
2607
|
/**
|
|
@@ -4567,7 +4567,7 @@ const gR = (e, t) => {
|
|
|
4567
4567
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
4568
4568
|
};
|
|
4569
4569
|
}, rD = /* @__PURE__ */ OR(aD);
|
|
4570
|
-
function
|
|
4570
|
+
function oe(...e) {
|
|
4571
4571
|
return rD($S(e));
|
|
4572
4572
|
}
|
|
4573
4573
|
function iD({ className: e, ...t }) {
|
|
@@ -4575,7 +4575,7 @@ function iD({ className: e, ...t }) {
|
|
|
4575
4575
|
"table",
|
|
4576
4576
|
{
|
|
4577
4577
|
"data-slot": "table",
|
|
4578
|
-
className:
|
|
4578
|
+
className: oe("w-full caption-bottom text-sm", e),
|
|
4579
4579
|
...t
|
|
4580
4580
|
}
|
|
4581
4581
|
);
|
|
@@ -4585,7 +4585,7 @@ function cD({ className: e, ...t }) {
|
|
|
4585
4585
|
"thead",
|
|
4586
4586
|
{
|
|
4587
4587
|
"data-slot": "table-header",
|
|
4588
|
-
className:
|
|
4588
|
+
className: oe("[&_tr]:border-b", e),
|
|
4589
4589
|
...t
|
|
4590
4590
|
}
|
|
4591
4591
|
);
|
|
@@ -4595,7 +4595,7 @@ function dD({ className: e, ...t }) {
|
|
|
4595
4595
|
"tbody",
|
|
4596
4596
|
{
|
|
4597
4597
|
"data-slot": "table-body",
|
|
4598
|
-
className:
|
|
4598
|
+
className: oe("[&_tr:last-child]:border-0", e),
|
|
4599
4599
|
...t
|
|
4600
4600
|
}
|
|
4601
4601
|
);
|
|
@@ -4605,7 +4605,7 @@ function OS({ className: e, ...t }) {
|
|
|
4605
4605
|
"tr",
|
|
4606
4606
|
{
|
|
4607
4607
|
"data-slot": "table-row",
|
|
4608
|
-
className:
|
|
4608
|
+
className: oe(
|
|
4609
4609
|
"hover:bg-muted data-[selected=true]:bg-accent border-b transition-colors",
|
|
4610
4610
|
e
|
|
4611
4611
|
),
|
|
@@ -4618,7 +4618,7 @@ function sD({ className: e, ...t }) {
|
|
|
4618
4618
|
"th",
|
|
4619
4619
|
{
|
|
4620
4620
|
"data-slot": "table-head",
|
|
4621
|
-
className:
|
|
4621
|
+
className: oe(
|
|
4622
4622
|
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]",
|
|
4623
4623
|
e
|
|
4624
4624
|
),
|
|
@@ -4631,7 +4631,7 @@ function lD({ className: e, ...t }) {
|
|
|
4631
4631
|
"td",
|
|
4632
4632
|
{
|
|
4633
4633
|
"data-slot": "table-cell",
|
|
4634
|
-
className:
|
|
4634
|
+
className: oe(
|
|
4635
4635
|
"p-1 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]",
|
|
4636
4636
|
e
|
|
4637
4637
|
),
|
|
@@ -4656,7 +4656,7 @@ const vx = 20, uD = {
|
|
|
4656
4656
|
width: e.getSize()
|
|
4657
4657
|
}), TS = (e, t) => {
|
|
4658
4658
|
const o = e.getIsPinned();
|
|
4659
|
-
return
|
|
4659
|
+
return oe(
|
|
4660
4660
|
o && "sticky right-0 z-10 bg-inherit max-w-12 outline outline-[var(--border)]",
|
|
4661
4661
|
t
|
|
4662
4662
|
);
|
|
@@ -4709,7 +4709,7 @@ function yD({
|
|
|
4709
4709
|
{
|
|
4710
4710
|
onClick: () => l(s),
|
|
4711
4711
|
"data-selected": c === s.original,
|
|
4712
|
-
className:
|
|
4712
|
+
className: oe(
|
|
4713
4713
|
"odd:bg-background even:bg-secondary h-12",
|
|
4714
4714
|
t?.row,
|
|
4715
4715
|
pD({ row: s, conditionalRowStyles: r })
|
|
@@ -4717,7 +4717,7 @@ function yD({
|
|
|
4717
4717
|
children: s.getVisibleCells().map((u) => /* @__PURE__ */ _(
|
|
4718
4718
|
lD,
|
|
4719
4719
|
{
|
|
4720
|
-
className:
|
|
4720
|
+
className: oe(
|
|
4721
4721
|
"whitespace-normal break-words border text-center lg:text-start max-w-96 relative",
|
|
4722
4722
|
TS(u.column),
|
|
4723
4723
|
uD[u.column.columnDef.meta?.size || $1.md],
|
|
@@ -5491,7 +5491,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5491
5491
|
uuid6: UD,
|
|
5492
5492
|
uuid7: BD,
|
|
5493
5493
|
xid: mC
|
|
5494
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5494
|
+
}, Symbol.toStringTag, { value: "Module" })), ne = /* @__PURE__ */ M("$ZodCheck", (e, t) => {
|
|
5495
5495
|
var o;
|
|
5496
5496
|
e._zod ?? (e._zod = {}), e._zod.def = t, (o = e._zod).onattach ?? (o.onattach = []);
|
|
5497
5497
|
}), WC = {
|
|
@@ -5499,7 +5499,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5499
5499
|
bigint: "bigint",
|
|
5500
5500
|
object: "date"
|
|
5501
5501
|
}, v$ = /* @__PURE__ */ M("$ZodCheckLessThan", (e, t) => {
|
|
5502
|
-
|
|
5502
|
+
ne.init(e, t);
|
|
5503
5503
|
const o = WC[typeof t.value];
|
|
5504
5504
|
e._zod.onattach.push((a) => {
|
|
5505
5505
|
const n = a._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
@@ -5516,7 +5516,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5516
5516
|
});
|
|
5517
5517
|
};
|
|
5518
5518
|
}), M$ = /* @__PURE__ */ M("$ZodCheckGreaterThan", (e, t) => {
|
|
5519
|
-
|
|
5519
|
+
ne.init(e, t);
|
|
5520
5520
|
const o = WC[typeof t.value];
|
|
5521
5521
|
e._zod.onattach.push((a) => {
|
|
5522
5522
|
const n = a._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
@@ -5533,7 +5533,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5533
5533
|
});
|
|
5534
5534
|
};
|
|
5535
5535
|
}), KC = /* @__PURE__ */ M("$ZodCheckMultipleOf", (e, t) => {
|
|
5536
|
-
|
|
5536
|
+
ne.init(e, t), e._zod.onattach.push((o) => {
|
|
5537
5537
|
var a;
|
|
5538
5538
|
(a = o._zod.bag).multipleOf ?? (a.multipleOf = t.value);
|
|
5539
5539
|
}), e._zod.check = (o) => {
|
|
@@ -5549,7 +5549,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5549
5549
|
});
|
|
5550
5550
|
};
|
|
5551
5551
|
}), XC = /* @__PURE__ */ M("$ZodCheckNumberFormat", (e, t) => {
|
|
5552
|
-
|
|
5552
|
+
ne.init(e, t), t.format = t.format || "float64";
|
|
5553
5553
|
const o = t.format?.includes("int"), a = o ? "int" : "number", [n, r] = KS[t.format];
|
|
5554
5554
|
e._zod.onattach.push((c) => {
|
|
5555
5555
|
const d = c._zod.bag;
|
|
@@ -5606,7 +5606,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5606
5606
|
});
|
|
5607
5607
|
};
|
|
5608
5608
|
}), JC = /* @__PURE__ */ M("$ZodCheckBigIntFormat", (e, t) => {
|
|
5609
|
-
|
|
5609
|
+
ne.init(e, t);
|
|
5610
5610
|
const [o, a] = XS[t.format];
|
|
5611
5611
|
e._zod.onattach.push((n) => {
|
|
5612
5612
|
const r = n._zod.bag;
|
|
@@ -5631,7 +5631,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5631
5631
|
};
|
|
5632
5632
|
}), YC = /* @__PURE__ */ M("$ZodCheckMaxSize", (e, t) => {
|
|
5633
5633
|
var o;
|
|
5634
|
-
|
|
5634
|
+
ne.init(e, t), (o = e._zod.def).when ?? (o.when = (a) => {
|
|
5635
5635
|
const n = a.value;
|
|
5636
5636
|
return !A1(n) && n.size !== void 0;
|
|
5637
5637
|
}), e._zod.onattach.push((a) => {
|
|
@@ -5651,7 +5651,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5651
5651
|
};
|
|
5652
5652
|
}), QC = /* @__PURE__ */ M("$ZodCheckMinSize", (e, t) => {
|
|
5653
5653
|
var o;
|
|
5654
|
-
|
|
5654
|
+
ne.init(e, t), (o = e._zod.def).when ?? (o.when = (a) => {
|
|
5655
5655
|
const n = a.value;
|
|
5656
5656
|
return !A1(n) && n.size !== void 0;
|
|
5657
5657
|
}), e._zod.onattach.push((a) => {
|
|
@@ -5671,7 +5671,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5671
5671
|
};
|
|
5672
5672
|
}), eN = /* @__PURE__ */ M("$ZodCheckSizeEquals", (e, t) => {
|
|
5673
5673
|
var o;
|
|
5674
|
-
|
|
5674
|
+
ne.init(e, t), (o = e._zod.def).when ?? (o.when = (a) => {
|
|
5675
5675
|
const n = a.value;
|
|
5676
5676
|
return !A1(n) && n.size !== void 0;
|
|
5677
5677
|
}), e._zod.onattach.push((a) => {
|
|
@@ -5694,7 +5694,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5694
5694
|
};
|
|
5695
5695
|
}), tN = /* @__PURE__ */ M("$ZodCheckMaxLength", (e, t) => {
|
|
5696
5696
|
var o;
|
|
5697
|
-
|
|
5697
|
+
ne.init(e, t), (o = e._zod.def).when ?? (o.when = (a) => {
|
|
5698
5698
|
const n = a.value;
|
|
5699
5699
|
return !A1(n) && n.length !== void 0;
|
|
5700
5700
|
}), e._zod.onattach.push((a) => {
|
|
@@ -5717,7 +5717,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5717
5717
|
};
|
|
5718
5718
|
}), nN = /* @__PURE__ */ M("$ZodCheckMinLength", (e, t) => {
|
|
5719
5719
|
var o;
|
|
5720
|
-
|
|
5720
|
+
ne.init(e, t), (o = e._zod.def).when ?? (o.when = (a) => {
|
|
5721
5721
|
const n = a.value;
|
|
5722
5722
|
return !A1(n) && n.length !== void 0;
|
|
5723
5723
|
}), e._zod.onattach.push((a) => {
|
|
@@ -5740,7 +5740,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5740
5740
|
};
|
|
5741
5741
|
}), oN = /* @__PURE__ */ M("$ZodCheckLengthEquals", (e, t) => {
|
|
5742
5742
|
var o;
|
|
5743
|
-
|
|
5743
|
+
ne.init(e, t), (o = e._zod.def).when ?? (o.when = (a) => {
|
|
5744
5744
|
const n = a.value;
|
|
5745
5745
|
return !A1(n) && n.length !== void 0;
|
|
5746
5746
|
}), e._zod.onattach.push((a) => {
|
|
@@ -5763,7 +5763,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5763
5763
|
};
|
|
5764
5764
|
}), zr = /* @__PURE__ */ M("$ZodCheckStringFormat", (e, t) => {
|
|
5765
5765
|
var o, a;
|
|
5766
|
-
|
|
5766
|
+
ne.init(e, t), e._zod.onattach.push((n) => {
|
|
5767
5767
|
const r = n._zod.bag;
|
|
5768
5768
|
r.format = t.format, t.pattern && (r.patterns ?? (r.patterns = /* @__PURE__ */ new Set()), r.patterns.add(t.pattern));
|
|
5769
5769
|
}), t.pattern ? (o = e._zod).check ?? (o.check = (n) => {
|
|
@@ -5795,7 +5795,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5795
5795
|
}), iN = /* @__PURE__ */ M("$ZodCheckUpperCase", (e, t) => {
|
|
5796
5796
|
t.pattern ?? (t.pattern = ZC), zr.init(e, t);
|
|
5797
5797
|
}), cN = /* @__PURE__ */ M("$ZodCheckIncludes", (e, t) => {
|
|
5798
|
-
|
|
5798
|
+
ne.init(e, t);
|
|
5799
5799
|
const o = Ye(t.includes), a = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${o}` : o);
|
|
5800
5800
|
t.pattern = a, e._zod.onattach.push((n) => {
|
|
5801
5801
|
const r = n._zod.bag;
|
|
@@ -5812,7 +5812,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5812
5812
|
});
|
|
5813
5813
|
};
|
|
5814
5814
|
}), dN = /* @__PURE__ */ M("$ZodCheckStartsWith", (e, t) => {
|
|
5815
|
-
|
|
5815
|
+
ne.init(e, t);
|
|
5816
5816
|
const o = new RegExp(`^${Ye(t.prefix)}.*`);
|
|
5817
5817
|
t.pattern ?? (t.pattern = o), e._zod.onattach.push((a) => {
|
|
5818
5818
|
const n = a._zod.bag;
|
|
@@ -5829,7 +5829,7 @@ const JD = /^[0-9a-fA-F]{32}$/, YD = /* @__PURE__ */ Cr(22, "=="), QD = /* @__PU
|
|
|
5829
5829
|
});
|
|
5830
5830
|
};
|
|
5831
5831
|
}), sN = /* @__PURE__ */ M("$ZodCheckEndsWith", (e, t) => {
|
|
5832
|
-
|
|
5832
|
+
ne.init(e, t);
|
|
5833
5833
|
const o = new RegExp(`.*${Ye(t.suffix)}$`);
|
|
5834
5834
|
t.pattern ?? (t.pattern = o), e._zod.onattach.push((a) => {
|
|
5835
5835
|
const n = a._zod.bag;
|
|
@@ -5850,7 +5850,7 @@ function vL(e, t, o) {
|
|
|
5850
5850
|
e.issues.length && t.issues.push(...Ie(o, e.issues));
|
|
5851
5851
|
}
|
|
5852
5852
|
const lN = /* @__PURE__ */ M("$ZodCheckProperty", (e, t) => {
|
|
5853
|
-
|
|
5853
|
+
ne.init(e, t), e._zod.check = (o) => {
|
|
5854
5854
|
const a = t.schema._zod.run({
|
|
5855
5855
|
value: o.value[t.property],
|
|
5856
5856
|
issues: []
|
|
@@ -5860,7 +5860,7 @@ const lN = /* @__PURE__ */ M("$ZodCheckProperty", (e, t) => {
|
|
|
5860
5860
|
vL(a, o, t.property);
|
|
5861
5861
|
};
|
|
5862
5862
|
}), uN = /* @__PURE__ */ M("$ZodCheckMimeType", (e, t) => {
|
|
5863
|
-
|
|
5863
|
+
ne.init(e, t);
|
|
5864
5864
|
const o = new Set(t.mime);
|
|
5865
5865
|
e._zod.onattach.push((a) => {
|
|
5866
5866
|
a._zod.bag.mime = t.mime;
|
|
@@ -5874,7 +5874,7 @@ const lN = /* @__PURE__ */ M("$ZodCheckProperty", (e, t) => {
|
|
|
5874
5874
|
});
|
|
5875
5875
|
};
|
|
5876
5876
|
}), hN = /* @__PURE__ */ M("$ZodCheckOverwrite", (e, t) => {
|
|
5877
|
-
|
|
5877
|
+
ne.init(e, t), e._zod.check = (o) => {
|
|
5878
5878
|
o.value = t.tx(o.value);
|
|
5879
5879
|
};
|
|
5880
5880
|
});
|
|
@@ -7035,7 +7035,7 @@ const wz = /* @__PURE__ */ M("$ZodTemplateLiteral", (e, t) => {
|
|
|
7035
7035
|
}), $z = /* @__PURE__ */ M("$ZodLazy", (e, t) => {
|
|
7036
7036
|
V.init(e, t), W(e._zod, "innerType", () => t.getter()), W(e._zod, "pattern", () => e._zod.innerType?._zod?.pattern), W(e._zod, "propValues", () => e._zod.innerType?._zod?.propValues), W(e._zod, "optin", () => e._zod.innerType?._zod?.optin ?? void 0), W(e._zod, "optout", () => e._zod.innerType?._zod?.optout ?? void 0), e._zod.parse = (o, a) => e._zod.innerType._zod.run(o, a);
|
|
7037
7037
|
}), Iz = /* @__PURE__ */ M("$ZodCustom", (e, t) => {
|
|
7038
|
-
|
|
7038
|
+
ne.init(e, t), V.init(e, t), e._zod.parse = (o, a) => o, e._zod.check = (o) => {
|
|
7039
7039
|
const a = o.value, n = t.fn(a);
|
|
7040
7040
|
if (n instanceof Promise)
|
|
7041
7041
|
return n.then((r) => CL(r, o, a, e));
|
|
@@ -12443,14 +12443,14 @@ function vA(e) {
|
|
|
12443
12443
|
return t;
|
|
12444
12444
|
}
|
|
12445
12445
|
function MA(e, t) {
|
|
12446
|
-
const o = new
|
|
12446
|
+
const o = new ne({
|
|
12447
12447
|
check: "custom",
|
|
12448
12448
|
...$(t)
|
|
12449
12449
|
});
|
|
12450
12450
|
return o._zod.check = e, o;
|
|
12451
12451
|
}
|
|
12452
12452
|
function _A(e) {
|
|
12453
|
-
const t = new
|
|
12453
|
+
const t = new ne({ check: "describe" });
|
|
12454
12454
|
return t._zod.onattach = [
|
|
12455
12455
|
(o) => {
|
|
12456
12456
|
const a = Le.get(o) ?? {};
|
|
@@ -12460,7 +12460,7 @@ function _A(e) {
|
|
|
12460
12460
|
}, t;
|
|
12461
12461
|
}
|
|
12462
12462
|
function wA(e) {
|
|
12463
|
-
const t = new
|
|
12463
|
+
const t = new ne({ check: "meta" });
|
|
12464
12464
|
return t._zod.onattach = [
|
|
12465
12465
|
(o) => {
|
|
12466
12466
|
const a = Le.get(o) ?? {};
|
|
@@ -13000,7 +13000,7 @@ const wV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13000
13000
|
$ZodCUID: _N,
|
|
13001
13001
|
$ZodCUID2: wN,
|
|
13002
13002
|
$ZodCatch: gz,
|
|
13003
|
-
$ZodCheck:
|
|
13003
|
+
$ZodCheck: ne,
|
|
13004
13004
|
$ZodCheckBigIntFormat: JC,
|
|
13005
13005
|
$ZodCheckEndsWith: sN,
|
|
13006
13006
|
$ZodCheckGreaterThan: M$,
|
|
@@ -13967,7 +13967,7 @@ const tb = /* @__PURE__ */ M("ZodCustom", (e, t) => {
|
|
|
13967
13967
|
Iz.init(e, t), F.init(e, t);
|
|
13968
13968
|
});
|
|
13969
13969
|
function CT(e) {
|
|
13970
|
-
const t = new
|
|
13970
|
+
const t = new ne({
|
|
13971
13971
|
check: "custom"
|
|
13972
13972
|
// ...util.normalizeParams(params),
|
|
13973
13973
|
});
|
|
@@ -36328,8 +36328,7 @@ const Cx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
36328
36328
|
actions: z.array(Lke),
|
|
36329
36329
|
pin: z.enum(Xe).default(Xe.right).optional(),
|
|
36330
36330
|
type: z.enum(["default", "destructive", "outline", "secondary", "ghost", "link"]).optional(),
|
|
36331
|
-
icon: z.enum(Object.keys(Cx)).optional()
|
|
36332
|
-
styles: z.object({ trigger: z.string().optional(), content: z.string().optional() }).optional()
|
|
36331
|
+
icon: z.enum(Object.keys(Cx)).optional()
|
|
36333
36332
|
}), Cke = z.record(z.string(), $ke, {
|
|
36334
36333
|
error: "Schema not provided"
|
|
36335
36334
|
}), RL = z.object({
|
|
@@ -36384,7 +36383,7 @@ const Cx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
36384
36383
|
}), qke = ({ table: e, styles: t }) => /* @__PURE__ */ _(
|
|
36385
36384
|
cD,
|
|
36386
36385
|
{
|
|
36387
|
-
className:
|
|
36386
|
+
className: oe(
|
|
36388
36387
|
"top-0 z-20 sticky bg-card outline-[var(--border)] outline",
|
|
36389
36388
|
t?.body
|
|
36390
36389
|
),
|
|
@@ -36392,7 +36391,7 @@ const Cx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
36392
36391
|
sD,
|
|
36393
36392
|
{
|
|
36394
36393
|
colSpan: a.colSpan,
|
|
36395
|
-
className:
|
|
36394
|
+
className: oe(
|
|
36396
36395
|
"whitespace-normal break-words text-center border p-1 md:text-start min-w-8 md:px-2",
|
|
36397
36396
|
a.column.getCanSort() && "cursor-pointer",
|
|
36398
36397
|
TS(a.column, "bg-card"),
|
|
@@ -36551,7 +36550,7 @@ function VL({
|
|
|
36551
36550
|
a ? Hke : "button",
|
|
36552
36551
|
{
|
|
36553
36552
|
"data-slot": "button",
|
|
36554
|
-
className:
|
|
36553
|
+
className: oe(Zke({ variant: t, size: o, className: e })),
|
|
36555
36554
|
...n
|
|
36556
36555
|
}
|
|
36557
36556
|
);
|
|
@@ -37338,12 +37337,12 @@ const P4e = (e) => ({
|
|
|
37338
37337
|
}, p = GI(n), y = ZI(p), m = await c.getDimensions(s), g = p === "y", v = g ? "top" : "left", x = g ? "bottom" : "right", w = g ? "clientHeight" : "clientWidth", b = r.reference[y] + r.reference[p] - k[p] - r.floating[y], I = k[p] - r.reference[p], j = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(s));
|
|
37339
37338
|
let N = j ? j[w] : 0;
|
|
37340
37339
|
(!N || !await (c.isElement == null ? void 0 : c.isElement(j))) && (N = d.floating[w] || r.floating[y]);
|
|
37341
|
-
const L = b / 2 - I / 2, T = N / 2 - m[y] / 2 - 1, R = lt(h[v], T), Z = lt(h[x], T), X = R, J = N - m[y] - Z, K = N / 2 - m[y] / 2 + L,
|
|
37340
|
+
const L = b / 2 - I / 2, T = N / 2 - m[y] / 2 - 1, R = lt(h[v], T), Z = lt(h[x], T), X = R, J = N - m[y] - Z, K = N / 2 - m[y] / 2 + L, te = Wb(X, K, J), E = !l.arrow && or(n) != null && K !== te && r.reference[y] / 2 - (K < X ? R : Z) - m[y] / 2 < 0, Y = E ? K < X ? K - X : K - J : 0;
|
|
37342
37341
|
return {
|
|
37343
37342
|
[p]: k[p] + Y,
|
|
37344
37343
|
data: {
|
|
37345
|
-
[p]:
|
|
37346
|
-
centerOffset: K -
|
|
37344
|
+
[p]: te,
|
|
37345
|
+
centerOffset: K - te - Y,
|
|
37347
37346
|
...E && {
|
|
37348
37347
|
alignmentOffset: Y
|
|
37349
37348
|
}
|
|
@@ -37388,8 +37387,8 @@ const P4e = (e) => ({
|
|
|
37388
37387
|
overflows: T
|
|
37389
37388
|
}], !T.every((K) => K <= 0)) {
|
|
37390
37389
|
var Z, X;
|
|
37391
|
-
const K = (((Z = r.flip) == null ? void 0 : Z.index) || 0) + 1,
|
|
37392
|
-
if (
|
|
37390
|
+
const K = (((Z = r.flip) == null ? void 0 : Z.index) || 0) + 1, te = N[K];
|
|
37391
|
+
if (te && (!(h === "alignment" ? x !== Ee(te) : !1) || // We leave the current main axis only if every placement on that axis
|
|
37393
37392
|
// overflows the main axis.
|
|
37394
37393
|
R.every((C) => Ee(C.placement) === x ? C.overflows[0] > 0 : !0)))
|
|
37395
37394
|
return {
|
|
@@ -37398,7 +37397,7 @@ const P4e = (e) => ({
|
|
|
37398
37397
|
overflows: R
|
|
37399
37398
|
},
|
|
37400
37399
|
reset: {
|
|
37401
|
-
placement:
|
|
37400
|
+
placement: te
|
|
37402
37401
|
}
|
|
37403
37402
|
};
|
|
37404
37403
|
let E = (X = R.filter((Y) => Y.overflows[0] <= 0).sort((Y, C) => Y.overflows[1] - C.overflows[1])[0]) == null ? void 0 : X.placement;
|
|
@@ -38284,7 +38283,7 @@ function w5e(e) {
|
|
|
38284
38283
|
J();
|
|
38285
38284
|
}
|
|
38286
38285
|
}, [b, I, J, R, T]);
|
|
38287
|
-
const
|
|
38286
|
+
const te = f.useMemo(() => ({
|
|
38288
38287
|
reference: j,
|
|
38289
38288
|
floating: N,
|
|
38290
38289
|
setReference: x,
|
|
@@ -38316,10 +38315,10 @@ function w5e(e) {
|
|
|
38316
38315
|
return f.useMemo(() => ({
|
|
38317
38316
|
...u,
|
|
38318
38317
|
update: J,
|
|
38319
|
-
refs:
|
|
38318
|
+
refs: te,
|
|
38320
38319
|
elements: E,
|
|
38321
38320
|
floatingStyles: Y
|
|
38322
|
-
}), [u, J,
|
|
38321
|
+
}), [u, J, te, E, Y]);
|
|
38323
38322
|
}
|
|
38324
38323
|
const x5e = (e) => {
|
|
38325
38324
|
function t(o) {
|
|
@@ -38440,7 +38439,7 @@ var YI = "PopperContent", [q5e, R5e] = QP(YI), aj = f.forwardRef(
|
|
|
38440
38439
|
boundary: Z.filter(O5e),
|
|
38441
38440
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
38442
38441
|
altBoundary: X
|
|
38443
|
-
}, { refs: K, floatingStyles:
|
|
38442
|
+
}, { refs: K, floatingStyles: te, placement: E, isPositioned: Y, middlewareData: C } = w5e({
|
|
38444
38443
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
38445
38444
|
strategy: "fixed",
|
|
38446
38445
|
placement: T,
|
|
@@ -38483,8 +38482,8 @@ var YI = "PopperContent", [q5e, R5e] = QP(YI), aj = f.forwardRef(
|
|
|
38483
38482
|
ref: K.setFloating,
|
|
38484
38483
|
"data-radix-popper-content-wrapper": "",
|
|
38485
38484
|
style: {
|
|
38486
|
-
...
|
|
38487
|
-
transform: Y ?
|
|
38485
|
+
...te,
|
|
38486
|
+
transform: Y ? te.transform : "translate(0, -200%)",
|
|
38488
38487
|
// keep off the page when measuring
|
|
38489
38488
|
minWidth: "max-content",
|
|
38490
38489
|
zIndex: Ge,
|
|
@@ -38736,10 +38735,10 @@ var K5e = f.forwardRef((e, t) => {
|
|
|
38736
38735
|
if (L.target === L.currentTarget && T && !v) {
|
|
38737
38736
|
const R = new CustomEvent(Ib, U5e);
|
|
38738
38737
|
if (L.currentTarget.dispatchEvent(R), !R.defaultPrevented) {
|
|
38739
|
-
const Z = b().filter((E) => E.focusable), X = Z.find((E) => E.active), J = Z.find((E) => E.id === m),
|
|
38738
|
+
const Z = b().filter((E) => E.focusable), X = Z.find((E) => E.active), J = Z.find((E) => E.id === m), te = [X, J, ...Z].filter(
|
|
38740
38739
|
Boolean
|
|
38741
38740
|
).map((E) => E.ref.current);
|
|
38742
|
-
mj(
|
|
38741
|
+
mj(te, u);
|
|
38743
38742
|
}
|
|
38744
38743
|
}
|
|
38745
38744
|
I.current = !1;
|
|
@@ -39468,7 +39467,7 @@ var xe = "MenuContent", [Jme, aL] = j1(xe), Aj = f.forwardRef(
|
|
|
39468
39467
|
onDismiss: p,
|
|
39469
39468
|
disableOutsideScroll: y,
|
|
39470
39469
|
...m
|
|
39471
|
-
} = e, g = q1(xe, o), v = Hr(xe, o), x = db(o), w = Sj(o), b = Bme(o), [I, j] = f.useState(null), N = f.useRef(null), L = le(t, N, g.onContentChange), T = f.useRef(0), R = f.useRef(""), Z = f.useRef(0), X = f.useRef(null), J = f.useRef("right"), K = f.useRef(0),
|
|
39470
|
+
} = e, g = q1(xe, o), v = Hr(xe, o), x = db(o), w = Sj(o), b = Bme(o), [I, j] = f.useState(null), N = f.useRef(null), L = le(t, N, g.onContentChange), T = f.useRef(0), R = f.useRef(""), Z = f.useRef(0), X = f.useRef(null), J = f.useRef("right"), K = f.useRef(0), te = y ? tL : f.Fragment, E = y ? { as: efe, allowPinchZoom: !0 } : void 0, Y = (q) => {
|
|
39472
39471
|
const re = R.current + q, ke = b().filter((G) => !G.disabled), $e = document.activeElement, ae = ke.find((G) => G.ref.current === $e)?.textValue, ie = ke.map((G) => G.textValue), Ge = hfe(ie, re, ae), Pe = ke.find((G) => G.textValue === Ge)?.ref.current;
|
|
39473
39472
|
(function G(ot) {
|
|
39474
39473
|
R.current = ot, window.clearTimeout(T.current), ot !== "" && (T.current = window.setTimeout(() => G(""), 1e3));
|
|
@@ -39503,7 +39502,7 @@ var xe = "MenuContent", [Jme, aL] = j1(xe), Aj = f.forwardRef(
|
|
|
39503
39502
|
onPointerGraceIntentChange: f.useCallback((q) => {
|
|
39504
39503
|
X.current = q;
|
|
39505
39504
|
}, []),
|
|
39506
|
-
children: /* @__PURE__ */ _(
|
|
39505
|
+
children: /* @__PURE__ */ _(te, { ...E, children: /* @__PURE__ */ _(
|
|
39507
39506
|
UI,
|
|
39508
39507
|
{
|
|
39509
39508
|
asChild: !0,
|
|
@@ -40111,7 +40110,7 @@ function cge({
|
|
|
40111
40110
|
{
|
|
40112
40111
|
"data-slot": "dropdown-menu-content",
|
|
40113
40112
|
sideOffset: t,
|
|
40114
|
-
className:
|
|
40113
|
+
className: oe(
|
|
40115
40114
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
40116
40115
|
e
|
|
40117
40116
|
),
|
|
@@ -40131,7 +40130,7 @@ function dge({
|
|
|
40131
40130
|
"data-slot": "dropdown-menu-item",
|
|
40132
40131
|
"data-inset": t,
|
|
40133
40132
|
"data-variant": o,
|
|
40134
|
-
className:
|
|
40133
|
+
className: oe(
|
|
40135
40134
|
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
40136
40135
|
e
|
|
40137
40136
|
),
|
|
@@ -40159,7 +40158,7 @@ function sge({
|
|
|
40159
40158
|
{
|
|
40160
40159
|
variant: t || "default",
|
|
40161
40160
|
size: "icon",
|
|
40162
|
-
className:
|
|
40161
|
+
className: oe(
|
|
40163
40162
|
"w-full min-w-8 h-full p-2 flex items-center gap-2",
|
|
40164
40163
|
l?.className
|
|
40165
40164
|
),
|
|
@@ -40175,37 +40174,27 @@ function sge({
|
|
|
40175
40174
|
asChild: !0,
|
|
40176
40175
|
size: "icon",
|
|
40177
40176
|
variant: t || "default",
|
|
40178
|
-
className:
|
|
40179
|
-
"w-full h-full p-2 min-w-8 mx-auto",
|
|
40180
|
-
o?.styles?.trigger
|
|
40181
|
-
),
|
|
40177
|
+
className: "w-full h-full p-2 min-w-8 mx-auto",
|
|
40182
40178
|
children: d(
|
|
40183
40179
|
o?.icon || "MoreHorizontal"
|
|
40184
40180
|
)
|
|
40185
40181
|
}
|
|
40186
40182
|
) }),
|
|
40187
|
-
/* @__PURE__ */ _(
|
|
40188
|
-
|
|
40183
|
+
/* @__PURE__ */ _(cge, { align: "end", className: "w-64", children: o?.actions?.map((l, s) => /* @__PURE__ */ L1(
|
|
40184
|
+
dge,
|
|
40189
40185
|
{
|
|
40190
|
-
|
|
40191
|
-
|
|
40192
|
-
|
|
40193
|
-
|
|
40194
|
-
|
|
40195
|
-
|
|
40196
|
-
|
|
40197
|
-
|
|
40198
|
-
|
|
40199
|
-
|
|
40200
|
-
|
|
40201
|
-
|
|
40202
|
-
l.title[n]
|
|
40203
|
-
]
|
|
40204
|
-
},
|
|
40205
|
-
s
|
|
40206
|
-
))
|
|
40207
|
-
}
|
|
40208
|
-
)
|
|
40186
|
+
className: oe(
|
|
40187
|
+
"flex items-center gap-2 text-base font-semibold",
|
|
40188
|
+
l?.className
|
|
40189
|
+
),
|
|
40190
|
+
onClick: (u) => r(l.onClick, u),
|
|
40191
|
+
children: [
|
|
40192
|
+
d(l.icon),
|
|
40193
|
+
l.title[n]
|
|
40194
|
+
]
|
|
40195
|
+
},
|
|
40196
|
+
s
|
|
40197
|
+
)) })
|
|
40209
40198
|
] });
|
|
40210
40199
|
}
|
|
40211
40200
|
var ub = "Popover", [oq] = nr(ub, [
|
|
@@ -40439,7 +40428,7 @@ function Ige({
|
|
|
40439
40428
|
"data-slot": "popover-content",
|
|
40440
40429
|
align: t,
|
|
40441
40430
|
sideOffset: o,
|
|
40442
|
-
className:
|
|
40431
|
+
className: oe(
|
|
40443
40432
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
40444
40433
|
e
|
|
40445
40434
|
),
|
|
@@ -40492,7 +40481,7 @@ const zge = ({
|
|
|
40492
40481
|
"div",
|
|
40493
40482
|
{
|
|
40494
40483
|
ref: r,
|
|
40495
|
-
className:
|
|
40484
|
+
className: oe(
|
|
40496
40485
|
"truncate text-center max-w-[160px] md:max-w-[256px] lg:max-w-[320px] lg:text-start",
|
|
40497
40486
|
a
|
|
40498
40487
|
),
|
|
@@ -40623,7 +40612,7 @@ function qge({ className: e, ...t }) {
|
|
|
40623
40612
|
"div",
|
|
40624
40613
|
{
|
|
40625
40614
|
"data-slot": "card",
|
|
40626
|
-
className:
|
|
40615
|
+
className: oe(
|
|
40627
40616
|
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
|
40628
40617
|
e
|
|
40629
40618
|
),
|
|
@@ -40636,7 +40625,7 @@ function Rge({ className: e, ...t }) {
|
|
|
40636
40625
|
"div",
|
|
40637
40626
|
{
|
|
40638
40627
|
"data-slot": "card-header",
|
|
40639
|
-
className:
|
|
40628
|
+
className: oe(
|
|
40640
40629
|
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
40641
40630
|
e
|
|
40642
40631
|
),
|
|
@@ -40649,7 +40638,7 @@ function Dge({ className: e, ...t }) {
|
|
|
40649
40638
|
"div",
|
|
40650
40639
|
{
|
|
40651
40640
|
"data-slot": "card-content",
|
|
40652
|
-
className:
|
|
40641
|
+
className: oe("px-6", e),
|
|
40653
40642
|
...t
|
|
40654
40643
|
}
|
|
40655
40644
|
);
|
|
@@ -40769,7 +40758,7 @@ function Uge(e) {
|
|
|
40769
40758
|
}, [w]), y.success ? /* @__PURE__ */ L1(
|
|
40770
40759
|
"main",
|
|
40771
40760
|
{
|
|
40772
|
-
className:
|
|
40761
|
+
className: oe(
|
|
40773
40762
|
"max-h-[40rem] md:max-h-[48rem] lg:max-h-[56rem] flex flex-col gap-2 overflow-auto font-sans relative ",
|
|
40774
40763
|
v && "pb-2",
|
|
40775
40764
|
d?.container
|
|
@@ -40779,7 +40768,7 @@ function Uge(e) {
|
|
|
40779
40768
|
/* @__PURE__ */ L1(
|
|
40780
40769
|
iD,
|
|
40781
40770
|
{
|
|
40782
|
-
className:
|
|
40771
|
+
className: oe(
|
|
40783
40772
|
"w-full min-w-80 h-full table-auto border-collapse",
|
|
40784
40773
|
d?.table
|
|
40785
40774
|
),
|