hanap-labs 7.0.0 → 7.1.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.
|
@@ -4081,8 +4081,8 @@ var mi = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
|
|
|
4081
4081
|
function _(e) {
|
|
4082
4082
|
return Object.prototype.hasOwnProperty.call(e, "key");
|
|
4083
4083
|
}
|
|
4084
|
-
function v(e) {
|
|
4085
|
-
return typeof e == "boolean" ? e ? "Yes" : "No" : e == null || e === "" ? "-" : String(e);
|
|
4084
|
+
function v(e, t) {
|
|
4085
|
+
return typeof e == "boolean" ? e ? "Yes" : "No" : e == null || e === "" ? "-" : t === "date" ? H(e).format("MMM DD, YYYY") : String(e);
|
|
4086
4086
|
}
|
|
4087
4087
|
function y(e) {
|
|
4088
4088
|
let t = Wn();
|
|
@@ -4097,7 +4097,7 @@ var mi = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
|
|
|
4097
4097
|
}) : t.accessor((t) => t[e.key], {
|
|
4098
4098
|
id: String(e.key),
|
|
4099
4099
|
header: e.label,
|
|
4100
|
-
cell: (
|
|
4100
|
+
cell: (t) => v(t.getValue(), e.format),
|
|
4101
4101
|
meta: n,
|
|
4102
4102
|
enableSorting: e.sortable === !0
|
|
4103
4103
|
});
|
|
@@ -4246,14 +4246,14 @@ var mi = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
|
|
|
4246
4246
|
}
|
|
4247
4247
|
w.setPageIndex(e - 1);
|
|
4248
4248
|
}
|
|
4249
|
-
function
|
|
4249
|
+
function fe() {
|
|
4250
4250
|
if (M.value) {
|
|
4251
4251
|
w.resetRowSelection();
|
|
4252
4252
|
return;
|
|
4253
4253
|
}
|
|
4254
4254
|
w.toggleAllPageRowsSelected(!0);
|
|
4255
4255
|
}
|
|
4256
|
-
function
|
|
4256
|
+
function pe(e) {
|
|
4257
4257
|
e.toggleSelected();
|
|
4258
4258
|
}
|
|
4259
4259
|
return t({
|
|
@@ -4308,7 +4308,7 @@ var mi = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
|
|
|
4308
4308
|
"aria-label": "Toggle all rows",
|
|
4309
4309
|
size: "md",
|
|
4310
4310
|
class: "hl-mx-auto hl-max-w-max",
|
|
4311
|
-
"onUpdate:modelValue":
|
|
4311
|
+
"onUpdate:modelValue": fe
|
|
4312
4312
|
}, null, 8, ["model-value", "indeterminate"])])) : c("", !0), (k(!0), l(r, null, N(R(w).getFlatHeaders().filter((e) => e.id !== "select"), (e) => (k(), l("th", {
|
|
4313
4313
|
key: e.id,
|
|
4314
4314
|
class: C(["hl-whitespace-nowrap hl-px-4 hl-py-3", [z(L(e.column.columnDef.meta).alignment), { "hl-cursor-pointer hl-select-none hover:hl-text-primary": e.column.getCanSort() }]]),
|
|
@@ -4335,7 +4335,7 @@ var mi = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
|
|
|
4335
4335
|
"aria-label": "Toggle row",
|
|
4336
4336
|
size: "md",
|
|
4337
4337
|
class: "hl-mx-auto hl-max-w-max",
|
|
4338
|
-
"onUpdate:modelValue": (e) =>
|
|
4338
|
+
"onUpdate:modelValue": (e) => pe(n)
|
|
4339
4339
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])) : c("", !0), (k(!0), l(r, null, N(n.getVisibleCells().filter((e) => e.column.id !== "select"), (e) => (k(), l("td", {
|
|
4340
4340
|
key: e.id,
|
|
4341
4341
|
class: C(["hl-theme-text hl-whitespace-nowrap hl-px-4 hl-py-3", z(L(e.column.columnDef.meta).alignment)])
|
package/dist/components/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "../chunks/components-
|
|
1
|
+
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "../chunks/components-CdO3OCjF.js";
|
|
2
2
|
export { a as HLAvatar, O as HLBadge, D as HLBreadcrumb, l as HLButton, k as HLCard, s as HLCheckbox, w as HLDatepicker, o as HLIcon, p as HLInput, E as HLLabel, m as HLMenuAction, x as HLNotify, v as HLNotifyToast, _ as HLPopup, T as HLPopupContent, b as HLSelect, c as HLSkeleton, S as HLTable, h as HLTabs, y as HLTextarea, r as HL_ICON_NAMES, d as createNotifyPlugin, C as createPopupPlugin, n as getHLIconSvg, i as listHLIconNames, g as registerHLIcon, f as unmountNotifyHost, u as unmountPopupHost, e as unregisterHLIcon, t as useBreadcrumb };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./chunks/composables-Dfe_Im7E.js";
|
|
2
|
-
import { A as l, C as u, D as d, E as f, O as ee, S as te, T as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, k as fe, l as pe, m as me, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as xe, v as Se, w as Ce, x as we, y as Te } from "./chunks/components-
|
|
2
|
+
import { A as l, C as u, D as d, E as f, O as ee, S as te, T as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, k as fe, l as pe, m as me, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as xe, v as Se, w as Ce, x as we, y as Te } from "./chunks/components-CdO3OCjF.js";
|
|
3
3
|
import { n as Ee, r as De, t as Oe } from "./chunks/usePopup-C4TqBG3M.js";
|
|
4
4
|
import { t as ke } from "./chunks/helpers-BjMDD0mP.js";
|
|
5
5
|
import { createToolkitAutoImportModules as Ae, createToolkitAutoImportOptions as je, createToolkitComponentsResolver as Me } from "./auto-import/index.js";
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { ColumnDef } from "@tanstack/vue-table";
|
|
2
2
|
export type HLTableRowData = Record<string, unknown>;
|
|
3
3
|
export type HLTableAlignment = "left" | "center" | "right";
|
|
4
|
+
export type HLTableColumnFormat = "date";
|
|
4
5
|
export interface HLTableSimpleColumn<TData extends HLTableRowData> {
|
|
5
6
|
key: Extract<keyof TData, string> | string;
|
|
6
7
|
label: string;
|
|
7
8
|
alignment?: HLTableAlignment;
|
|
8
9
|
sortable?: boolean;
|
|
10
|
+
format?: HLTableColumnFormat;
|
|
9
11
|
}
|
|
10
12
|
export type HLTableColumn<TData extends HLTableRowData> = ColumnDef<TData> | HLTableSimpleColumn<TData>;
|
|
11
13
|
export interface HLTableSortChange {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as HLTable } from "./HLTable.vue";
|
|
2
|
-
export type { HLTableAlignment, HLTableCellSlotProps, HLTableColumn, HLTableExposed, HLTableProps, HLTableRowData, HLTableSimpleColumn, HLTableSortChange, } from "./HLTable.types";
|
|
2
|
+
export type { HLTableAlignment, HLTableCellSlotProps, HLTableColumn, HLTableColumnFormat, HLTableExposed, HLTableProps, HLTableRowData, HLTableSimpleColumn, HLTableSortChange, } from "./HLTable.types";
|