react-crud-mui 0.2.60 → 0.2.61

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.
@@ -91,7 +91,7 @@ export interface EditableListProps<TModel extends FieldValues, TArrayModel exten
91
91
  /**
92
92
  * Column props of commands
93
93
  */
94
- commandColProps?: TableColumn<TArrayModel>;
94
+ commandColProps?: Partial<TableColumn<TArrayModel>>;
95
95
  /**
96
96
  * DetailPage content
97
97
  */
package/dist/coreui.js CHANGED
@@ -7183,8 +7183,15 @@ const _r = Ut(Ui, {
7183
7183
  width: "7px"
7184
7184
  }
7185
7185
  }
7186
- },
7187
- "&+tr.description-row": {
7186
+ }
7187
+ },
7188
+ backgroundColor: n,
7189
+ "& .MuiTableCell-root": {
7190
+ borderBottom: a ? void 0 : "none"
7191
+ },
7192
+ "& +tr.description-row": {
7193
+ backgroundColor: n,
7194
+ ...o && {
7188
7195
  "& .MuiTableCell-root:first-of-type": {
7189
7196
  position: "relative",
7190
7197
  "&::after": {
@@ -7199,10 +7206,6 @@ const _r = Ut(Ui, {
7199
7206
  }
7200
7207
  }
7201
7208
  },
7202
- backgroundColor: n,
7203
- "& .MuiTableCell-root": {
7204
- borderBottom: a ? void 0 : "none"
7205
- },
7206
7209
  "&:hover:not(.description-row),&:hover+tr.description-row": {
7207
7210
  backgroundColor: nt(i.palette.primary.main, 0.1)
7208
7211
  },
@@ -7273,7 +7276,7 @@ const Xb = vn((n) => {
7273
7276
  "&:active": {
7274
7277
  backgroundColor: n.palette.action.selected
7275
7278
  }
7276
- })), ff = "selection", df = "expander", pf = "id", Kb = [5, 10, 25];
7279
+ })), ff = "selection", df = "expander", pf = "id", Kb = [15, 25, 50, 100, 200];
7277
7280
  function Qc(n) {
7278
7281
  const o = n.getIsPinned(), i = o === "left" && n.getIsLastColumn("left"), a = o === "right" && n.getIsFirstColumn("right");
7279
7282
  return {
@@ -7739,7 +7742,7 @@ function os({
7739
7742
  }] = Eu({
7740
7743
  models: ae
7741
7744
  }), ft = Ye(() => [...m, {
7742
- accessorKey: "commands",
7745
+ id: "commands",
7743
7746
  align: "center",
7744
7747
  header: () => null,
7745
7748
  enableSorting: !1,
@@ -8850,7 +8853,9 @@ function hw({
8850
8853
  placement: S
8851
8854
  }) => /* @__PURE__ */ c(Am, { ...I, style: {
8852
8855
  transformOrigin: S === "bottom" ? "center top" : "center bottom"
8853
- }, children: /* @__PURE__ */ c(Tm, { children: /* @__PURE__ */ c(Lm, { onClickAway: w, children: /* @__PURE__ */ c(Em, { id: "split-button-menu", autoFocusItem: !0, children: n.map((k) => /* @__PURE__ */ z(Fm, { disabled: k.disabled, onClick: (O) => {
8856
+ }, children: /* @__PURE__ */ c(Tm, { children: /* @__PURE__ */ c(Lm, { onClickAway: w, children: /* @__PURE__ */ c(Em, { id: "split-button-menu", autoFocusItem: !0, sx: {
8857
+ textAlign: "left"
8858
+ }, children: n.map((k) => /* @__PURE__ */ z(Fm, { disabled: k.disabled, onClick: (O) => {
8854
8859
  var $;
8855
8860
  O.stopPropagation(), d(!1), ($ = k.onClick) == null || $.call(k, O);
8856
8861
  }, children: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-crud-mui",
3
3
  "private": false,
4
- "version": "0.2.60",
4
+ "version": "0.2.61",
5
5
  "type": "module",
6
6
  "main": "./dist/coreui.js",
7
7
  "module": "./dist/coreui.js",