@deepnoid/ui 0.1.138 → 0.1.140
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/.turbo/turbo-build.log +158 -158
- package/dist/{chunk-VRSRT4DM.mjs → chunk-QMQL3Z6Z.mjs} +53 -45
- package/dist/components/table/index.js +53 -45
- package/dist/components/table/index.mjs +3 -3
- package/dist/components/table/table-body.js +53 -45
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table-head.js +53 -45
- package/dist/components/table/table-head.mjs +1 -1
- package/dist/components/table/table.d.mts +3 -0
- package/dist/components/table/table.d.ts +3 -0
- package/dist/components/table/table.js +53 -45
- package/dist/components/table/table.mjs +1 -1
- package/dist/index.js +53 -45
- package/dist/index.mjs +22 -22
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8594,7 +8594,10 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
|
|
|
8594
8594
|
size,
|
|
8595
8595
|
checkedRows,
|
|
8596
8596
|
onCheckedRowsChange,
|
|
8597
|
-
onRowClick
|
|
8597
|
+
onRowClick,
|
|
8598
|
+
showFirstLastButtons,
|
|
8599
|
+
showPageNumber,
|
|
8600
|
+
showPageLabel
|
|
8598
8601
|
} = { ...props, ...variantProps };
|
|
8599
8602
|
const { page = 1, perPage = 15 } = pagination || {};
|
|
8600
8603
|
const showPagination = pagination && totalData > 0;
|
|
@@ -8651,50 +8654,52 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
|
|
|
8651
8654
|
[variantProps, onRowClick]
|
|
8652
8655
|
);
|
|
8653
8656
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
8654
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8657
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: [
|
|
8658
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
8659
|
+
"table",
|
|
8660
|
+
{
|
|
8661
|
+
className: slots.table({ class: classNames == null ? void 0 : classNames.table }),
|
|
8662
|
+
style: {
|
|
8663
|
+
tableLayout: "fixed",
|
|
8664
|
+
width: "100%",
|
|
8665
|
+
minWidth: `${tableMinWidth}px`
|
|
8666
|
+
},
|
|
8667
|
+
children: [
|
|
8668
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
8669
|
+
table_head_default,
|
|
8670
|
+
{
|
|
8671
|
+
columns,
|
|
8672
|
+
size,
|
|
8673
|
+
color,
|
|
8674
|
+
rowCheckbox,
|
|
8675
|
+
hasCheckedRows: rows.length > 0 && rows.every((row) => checkedRowIds.has(row.id)),
|
|
8676
|
+
onCheckAll: handleAllRowCheck,
|
|
8677
|
+
classNames,
|
|
8678
|
+
slots
|
|
8679
|
+
}
|
|
8680
|
+
),
|
|
8681
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
8682
|
+
table_body_default,
|
|
8683
|
+
{
|
|
8684
|
+
slots,
|
|
8685
|
+
rows,
|
|
8686
|
+
columns,
|
|
8687
|
+
size,
|
|
8688
|
+
color,
|
|
8689
|
+
rowCheckbox,
|
|
8690
|
+
checkedRows: checkedRowIds,
|
|
8691
|
+
onCheckRow: handleRowCheck,
|
|
8692
|
+
onRowClick: handleRowClick,
|
|
8693
|
+
isLoading,
|
|
8694
|
+
emptyContent,
|
|
8695
|
+
classNames
|
|
8696
|
+
}
|
|
8697
|
+
)
|
|
8698
|
+
]
|
|
8699
|
+
}
|
|
8700
|
+
),
|
|
8701
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: slots.overlay({ class: classNames == null ? void 0 : classNames.overlay }) })
|
|
8702
|
+
] }),
|
|
8698
8703
|
showPagination && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
8699
8704
|
pagination_default,
|
|
8700
8705
|
{
|
|
@@ -8704,6 +8709,9 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
|
|
|
8704
8709
|
currentPage: page,
|
|
8705
8710
|
totalPage: Math.ceil(totalData / perPage),
|
|
8706
8711
|
groupSize: 10,
|
|
8712
|
+
showFirstLastButtons,
|
|
8713
|
+
showPageLabel,
|
|
8714
|
+
showPageNumber,
|
|
8707
8715
|
handleChangePage: (newPage) => onPageChange == null ? void 0 : onPageChange({ page: newPage, perPage })
|
|
8708
8716
|
}
|
|
8709
8717
|
) })
|
package/dist/index.mjs
CHANGED
|
@@ -3,12 +3,6 @@ import "./chunk-MBLZYQCN.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
tree_default
|
|
5
5
|
} from "./chunk-A7WUJKQL.mjs";
|
|
6
|
-
import "./chunk-HIE2YRGA.mjs";
|
|
7
|
-
import {
|
|
8
|
-
tooltip_default
|
|
9
|
-
} from "./chunk-YGOX6FBU.mjs";
|
|
10
|
-
import "./chunk-ZMOAFSYE.mjs";
|
|
11
|
-
import "./chunk-WSIADHVC.mjs";
|
|
12
6
|
import "./chunk-LUWGOKLG.mjs";
|
|
13
7
|
import {
|
|
14
8
|
ToastProvider,
|
|
@@ -18,18 +12,23 @@ import "./chunk-ZOTHPHXA.mjs";
|
|
|
18
12
|
import {
|
|
19
13
|
toast_default
|
|
20
14
|
} from "./chunk-IC3QFXSF.mjs";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
table_default
|
|
24
|
-
} from "./chunk-VRSRT4DM.mjs";
|
|
25
|
-
import "./chunk-3MY6LO7N.mjs";
|
|
15
|
+
import "./chunk-HIE2YRGA.mjs";
|
|
26
16
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
17
|
+
tooltip_default
|
|
18
|
+
} from "./chunk-YGOX6FBU.mjs";
|
|
19
|
+
import "./chunk-ZMOAFSYE.mjs";
|
|
20
|
+
import "./chunk-WSIADHVC.mjs";
|
|
29
21
|
import "./chunk-RRAZM5D3.mjs";
|
|
30
22
|
import {
|
|
31
23
|
textarea_default
|
|
32
24
|
} from "./chunk-3CRSSRCH.mjs";
|
|
25
|
+
import "./chunk-DX3KXNP6.mjs";
|
|
26
|
+
import {
|
|
27
|
+
definition_table_default
|
|
28
|
+
} from "./chunk-T3BUL253.mjs";
|
|
29
|
+
import {
|
|
30
|
+
table_default
|
|
31
|
+
} from "./chunk-QMQL3Z6Z.mjs";
|
|
33
32
|
import "./chunk-MZ76AA76.mjs";
|
|
34
33
|
import {
|
|
35
34
|
skeleton_default
|
|
@@ -38,17 +37,19 @@ import "./chunk-LVFI2NOH.mjs";
|
|
|
38
37
|
import {
|
|
39
38
|
switch_default
|
|
40
39
|
} from "./chunk-AGE57VDD.mjs";
|
|
40
|
+
import "./chunk-3MY6LO7N.mjs";
|
|
41
41
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
42
|
+
tabs_default
|
|
43
|
+
} from "./chunk-BBRPAQON.mjs";
|
|
44
44
|
import "./chunk-TPFN22HR.mjs";
|
|
45
45
|
import {
|
|
46
46
|
radio_default
|
|
47
47
|
} from "./chunk-STDK4DIP.mjs";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-7B7LRG5J.mjs";
|
|
49
49
|
import {
|
|
50
|
-
|
|
51
|
-
} from "./chunk-
|
|
50
|
+
pagination_default
|
|
51
|
+
} from "./chunk-4JOD47VZ.mjs";
|
|
52
|
+
import "./chunk-F3HENRVM.mjs";
|
|
52
53
|
import "./chunk-4VWG4726.mjs";
|
|
53
54
|
import {
|
|
54
55
|
datePicker_default
|
|
@@ -71,11 +72,10 @@ import {
|
|
|
71
72
|
import {
|
|
72
73
|
listItem_default
|
|
73
74
|
} from "./chunk-D6ALZBZ7.mjs";
|
|
74
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-DJOG6Z35.mjs";
|
|
75
76
|
import {
|
|
76
|
-
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-F3HENRVM.mjs";
|
|
77
|
+
modal_default
|
|
78
|
+
} from "./chunk-XLKNZQ34.mjs";
|
|
79
79
|
import "./chunk-MGEWSREV.mjs";
|
|
80
80
|
import {
|
|
81
81
|
chip_default
|