melonykit 0.15.9 → 0.15.11
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/index.js +10 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2227,10 +2227,10 @@ var Q = {
|
|
|
2227
2227
|
};
|
|
2228
2228
|
//#endregion
|
|
2229
2229
|
//#region src/components/_table.jsx
|
|
2230
|
-
function Yt({ columns: e = [], rows: t = [], width: n, height: r, showLineNumbers: i = !0, sortBy: a,
|
|
2231
|
-
let
|
|
2230
|
+
function Yt({ columns: e = [], rows: t = [], width: n, height: r, showLineNumbers: i = !0, sortBy: a, sortDirection: l = "asc", className: u }) {
|
|
2231
|
+
let d = tn(t, e, a, l);
|
|
2232
2232
|
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
2233
|
-
className: V($.base,
|
|
2233
|
+
className: V($.base, u),
|
|
2234
2234
|
style: {
|
|
2235
2235
|
width: n,
|
|
2236
2236
|
height: r
|
|
@@ -2244,16 +2244,18 @@ function Yt({ columns: e = [], rows: t = [], width: n, height: r, showLineNumber
|
|
|
2244
2244
|
children: "#"
|
|
2245
2245
|
}), e.map((e) => /* @__PURE__ */ s("th", {
|
|
2246
2246
|
style: Zt(e),
|
|
2247
|
+
"is-clickable": !!e.onClick || void 0,
|
|
2248
|
+
onClick: (t) => e.onClick?.(t, e),
|
|
2247
2249
|
children: e.label
|
|
2248
2250
|
}, e.key))] }) }),
|
|
2249
|
-
/* @__PURE__ */ s("tbody", { children:
|
|
2251
|
+
/* @__PURE__ */ s("tbody", { children: d.length === 0 ? /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", {
|
|
2250
2252
|
className: $.empty,
|
|
2251
2253
|
colSpan: Math.max(e.length + Number(i), 1),
|
|
2252
2254
|
children: /* @__PURE__ */ s("span", {
|
|
2253
2255
|
className: $.emptyContent,
|
|
2254
|
-
children: "Keine Einträge
|
|
2256
|
+
children: "Keine Einträge ..."
|
|
2255
2257
|
})
|
|
2256
|
-
}) }) :
|
|
2258
|
+
}) }) : d.map((t, n) => /* @__PURE__ */ c("tr", { children: [i && /* @__PURE__ */ s("td", {
|
|
2257
2259
|
className: $.number,
|
|
2258
2260
|
children: n + 1
|
|
2259
2261
|
}), e.map((e) => /* @__PURE__ */ s("td", {
|
|
@@ -2346,6 +2348,8 @@ var $ = {
|
|
|
2346
2348
|
letter-spacing: .8px;
|
|
2347
2349
|
}
|
|
2348
2350
|
|
|
2351
|
+
th[is-clickable] { cursor: pointer; }
|
|
2352
|
+
|
|
2349
2353
|
tbody tr:last-child td { border-bottom: 0; }
|
|
2350
2354
|
`,
|
|
2351
2355
|
line: H`
|