@3sc/common-component 0.0.235 → 0.0.237

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.es.js CHANGED
@@ -40127,7 +40127,7 @@ const QV = ({ color: e }) => /* @__PURE__ */ g.jsx("svg", { width: "7", height:
40127
40127
  }
40128
40128
  },
40129
40129
  "& .MuiInputBase-input": {
40130
- color: `${e.palette.primary.notifyTextColor} !important`,
40130
+ color: `${e.palette.primary.notifyActiveText} !important`,
40131
40131
  fontSize: "1.1rem",
40132
40132
  height: "2.6rem",
40133
40133
  padding: "0.3rem 1rem"
@@ -40170,6 +40170,16 @@ const QV = ({ color: e }) => /* @__PURE__ */ g.jsx("svg", { width: "7", height:
40170
40170
  },
40171
40171
  "& .MuiFormLabel-asterisk": {
40172
40172
  color: e.palette.brandColor.red
40173
+ },
40174
+ "& input:-webkit-autofill": {
40175
+ WebkitBoxShadow: "0 0 0 10rem transparent inset !important",
40176
+ WebkitTextFillColor: `${e.palette.primary.notifyActiveText} !important`,
40177
+ caretColor: e.palette.primary.notifyActiveText,
40178
+ transition: "background-color 9999s ease-in-out 0s !important"
40179
+ },
40180
+ "& input:-webkit-autofill:hover ": {
40181
+ WebkitBoxShadow: "0 0 0 10rem transparent inset !important",
40182
+ WebkitTextFillColor: `${e.palette.primary.notifyActiveText} !important`
40173
40183
  }
40174
40184
  })), Md = (e) => /* @__PURE__ */ g.jsx(Gn, { children: /* @__PURE__ */ g.jsx(
40175
40185
  n8,
@@ -44192,33 +44202,34 @@ Sw.propTypes = {
44192
44202
  nested: s.object
44193
44203
  };
44194
44204
  function Tw({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: r }) {
44195
- var u;
44205
+ var c;
44196
44206
  const { columns: o } = e, { visibleGridColumns: i = [] } = mt(Oa) ?? {}, a = mt(Ea), l = un(() => {
44197
- var d;
44207
+ var u;
44198
44208
  return mW({
44199
44209
  columns: o,
44200
44210
  gridPath: n,
44201
44211
  baseUrl: r,
44202
44212
  isDefaultConfig: t,
44203
- pageSize: (d = e == null ? void 0 : e.pagination) == null ? void 0 : d.rowPerPage
44213
+ pageSize: (u = e == null ? void 0 : e.pagination) == null ? void 0 : u.rowPerPage
44204
44214
  });
44205
- }, [o, n, r, t, (u = e == null ? void 0 : e.pagination) == null ? void 0 : u.rowPerPage]), c = un(() => {
44206
- const d = new Map(i.map((f) => [f.key, f]));
44207
- return l.map((f) => {
44208
- const p = d.get(f.key);
44215
+ }, [o, n, r, t, (c = e == null ? void 0 : e.pagination) == null ? void 0 : c.rowPerPage]);
44216
+ return un(() => {
44217
+ const u = new Map(i.map((d) => [d.key, d]));
44218
+ return l.map((d) => {
44219
+ const f = u.get(d.key);
44209
44220
  return {
44210
- ...f,
44211
- ...p && {
44212
- isHidden: p.isHidden,
44213
- sequenceId: p.sequenceId
44221
+ ...d,
44222
+ ...f && {
44223
+ isHidden: f.isHidden,
44224
+ sequenceId: f.sequenceId
44214
44225
  }
44215
44226
  };
44216
44227
  });
44217
- }, [l, i]);
44218
- return St(() => {
44228
+ }, [l, i]), St(() => {
44219
44229
  a({
44220
44230
  type: qe.SET_GRID_DATA,
44221
- payload: { visibleGridColumns: i.length ? c : l }
44231
+ // payload: { visibleGridColumns: !visibleGridColumns.length ? mergedColumns : finalColumns },
44232
+ payload: { visibleGridColumns: l }
44222
44233
  });
44223
44234
  }, [l]), /* @__PURE__ */ g.jsx(
44224
44235
  Sw,