@nethru/ui 1.0.45 → 1.0.47

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.
@@ -8,7 +8,8 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
8
8
  export default function AppendableFormList({
9
9
  forms,
10
10
  onAppend,
11
- onRemove
11
+ onRemove,
12
+ readOnly
12
13
  }) {
13
14
  return /*#__PURE__*/_jsxs(Stack, {
14
15
  gap: 1,
@@ -17,7 +18,7 @@ export default function AppendableFormList({
17
18
  direction: "row",
18
19
  alignItems: "end",
19
20
  gap: 2,
20
- children: [form, /*#__PURE__*/_jsx(Tooltip, {
21
+ children: [form, !readOnly && /*#__PURE__*/_jsx(Tooltip, {
21
22
  title: "\uC0AD\uC81C",
22
23
  children: /*#__PURE__*/_jsx(IconButton, {
23
24
  onClick: _ => onRemove(index),
@@ -38,7 +39,7 @@ export default function AppendableFormList({
38
39
  },
39
40
  children: "\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"
40
41
  })]
41
- }), /*#__PURE__*/_jsx(Box, {
42
+ }), !readOnly && /*#__PURE__*/_jsx(Box, {
42
43
  children: /*#__PURE__*/_jsx(Button, {
43
44
  variant: "text",
44
45
  startIcon: /*#__PURE__*/_jsx(AddIcon, {}),
package/dist/DataGrid.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useState } from "react";
2
- import { DataGrid as MuiDataGrid, GridCell, GridToolbarQuickFilter, koKR } from "@mui/x-data-grid";
2
+ import { DataGrid as MuiDataGrid, GRID_CHECKBOX_SELECTION_COL_DEF, GridCell, GridToolbarQuickFilter, koKR } from "@mui/x-data-grid";
3
3
  import { Box, Stack } from "@mui/material";
4
4
  import { Fragment as _Fragment } from "react/jsx-runtime";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -77,6 +77,9 @@ export default function DataGrid({
77
77
  });
78
78
  };
79
79
  const CustomGridCell = function (params) {
80
+ if (props && props.checkboxSelection && params.column.field === GRID_CHECKBOX_SELECTION_COL_DEF.field) return /*#__PURE__*/_jsx(GridCell, {
81
+ ...params
82
+ });
80
83
  let children;
81
84
  const func = customGridCellMap[params.column.field];
82
85
  if (func) children = func(params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "/dist"