@teamprodevs/appsmith-custom-table 0.4.27 → 0.4.28
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 +29 -24
- package/dist/app.umd.cjs +2 -2
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -36317,7 +36317,8 @@ const Eb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
36317
36317
|
sortCol: q.string().optional(),
|
|
36318
36318
|
sortOption: q.custom().optional(),
|
|
36319
36319
|
page: q.number().optional(),
|
|
36320
|
-
limit: q.number().optional()
|
|
36320
|
+
limit: q.number().optional(),
|
|
36321
|
+
url: q.url().optional()
|
|
36321
36322
|
})
|
|
36322
36323
|
]
|
|
36323
36324
|
}).optional(), Ske = q.function({
|
|
@@ -40456,56 +40457,59 @@ function Lge(e) {
|
|
|
40456
40457
|
// 99
|
|
40457
40458
|
].filter(Boolean).join(" ");
|
|
40458
40459
|
}
|
|
40459
|
-
const Sge = ({
|
|
40460
|
-
|
|
40460
|
+
const Sge = ({
|
|
40461
|
+
value: e,
|
|
40462
|
+
type: t,
|
|
40463
|
+
triggerEvent: o
|
|
40464
|
+
}) => {
|
|
40465
|
+
const a = typeof e == "object" ? JSON.stringify(e) : String(e), n = hq(null), [r, c] = sS(!1);
|
|
40461
40466
|
if (pq(() => {
|
|
40462
|
-
const
|
|
40463
|
-
|
|
40464
|
-
}, [
|
|
40467
|
+
const l = n.current;
|
|
40468
|
+
l && c(l.scrollWidth > l.clientWidth);
|
|
40469
|
+
}, [a]), e === null)
|
|
40465
40470
|
return /* @__PURE__ */ _(lq, {});
|
|
40466
|
-
const
|
|
40471
|
+
const d = /* @__PURE__ */ _(
|
|
40467
40472
|
"div",
|
|
40468
40473
|
{
|
|
40469
|
-
ref:
|
|
40474
|
+
ref: n,
|
|
40470
40475
|
className: "truncate text-center max-w-[160px] md:max-w-[256px] lg:max-w-[320px] lg:text-start",
|
|
40471
|
-
children: Cge(
|
|
40476
|
+
children: Cge(a, t, o)
|
|
40472
40477
|
}
|
|
40473
40478
|
);
|
|
40474
|
-
return
|
|
40479
|
+
return r && t !== "url" ? /* @__PURE__ */ I1(_ge, { children: [
|
|
40475
40480
|
/* @__PURE__ */ _(
|
|
40476
40481
|
wge,
|
|
40477
40482
|
{
|
|
40478
40483
|
className: "h-min max-w-40 md:max-w-64 lg:max-w-full lg:text-start",
|
|
40479
|
-
onClick: (
|
|
40480
|
-
title:
|
|
40481
|
-
children:
|
|
40484
|
+
onClick: (l) => l.stopPropagation(),
|
|
40485
|
+
title: a,
|
|
40486
|
+
children: d
|
|
40482
40487
|
}
|
|
40483
40488
|
),
|
|
40484
40489
|
/* @__PURE__ */ _(
|
|
40485
40490
|
xge,
|
|
40486
40491
|
{
|
|
40487
|
-
onOpenAutoFocus: (
|
|
40492
|
+
onOpenAutoFocus: (l) => l.preventDefault(),
|
|
40488
40493
|
align: "center",
|
|
40489
40494
|
className: "w-64 lg:w-80 break-words",
|
|
40490
|
-
children:
|
|
40495
|
+
children: a
|
|
40491
40496
|
}
|
|
40492
40497
|
)
|
|
40493
|
-
] }) :
|
|
40494
|
-
}, Cge = (e, t) => {
|
|
40498
|
+
] }) : d;
|
|
40499
|
+
}, Cge = (e, t, o) => {
|
|
40495
40500
|
switch (t) {
|
|
40496
40501
|
case "text":
|
|
40497
40502
|
return String(e);
|
|
40498
40503
|
case "url":
|
|
40499
|
-
const [
|
|
40504
|
+
const [a, n] = String(e).split("|||");
|
|
40500
40505
|
return /* @__PURE__ */ _(
|
|
40501
|
-
"
|
|
40506
|
+
"div",
|
|
40502
40507
|
{
|
|
40503
|
-
href: a,
|
|
40504
40508
|
className: "text-primary underline",
|
|
40505
|
-
onClick: (
|
|
40506
|
-
|
|
40509
|
+
onClick: (r) => {
|
|
40510
|
+
r.stopPropagation(), o && o("onRedirect", { url: n });
|
|
40507
40511
|
},
|
|
40508
|
-
children:
|
|
40512
|
+
children: a
|
|
40509
40513
|
}
|
|
40510
40514
|
);
|
|
40511
40515
|
case "phone":
|
|
@@ -40559,7 +40563,8 @@ function Nge({
|
|
|
40559
40563
|
Sge,
|
|
40560
40564
|
{
|
|
40561
40565
|
value: m.getValue(),
|
|
40562
|
-
type: s.type || "text"
|
|
40566
|
+
type: s.type || "text",
|
|
40567
|
+
triggerEvent: n
|
|
40563
40568
|
}
|
|
40564
40569
|
)
|
|
40565
40570
|
};
|