@3sc/common-component 0.0.354 → 0.0.356

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
@@ -41021,7 +41021,7 @@ const E8 = ({ options: e, isDraggable: t }) => {
41021
41021
  R.preventDefault(), P((N) => Math.min(N + 1, m.length - 1));
41022
41022
  else if (R.key === "ArrowUp")
41023
41023
  R.preventDefault(), P((N) => Math.max(N - 1, 0));
41024
- else if (R.key === "Enter" || R.key === " ") {
41024
+ else if (R.key === "Enter") {
41025
41025
  R.preventDefault();
41026
41026
  const N = m[E];
41027
41027
  N && $(N);
@@ -41042,9 +41042,6 @@ const E8 = ({ options: e, isDraggable: t }) => {
41042
41042
  tabIndex: 0,
41043
41043
  inputMode: "none"
41044
41044
  },
41045
- onKeyDown: (R) => {
41046
- R.key === "Enter" && d(!0);
41047
- },
41048
41045
  onChange: B,
41049
41046
  sx: {
41050
41047
  position: "sticky",
@@ -44223,18 +44220,19 @@ const FW = q(Pl)(({ theme: e }) => ({
44223
44220
  overflow: "hidden",
44224
44221
  textOverflow: "ellipsis",
44225
44222
  whiteSpace: "nowrap",
44223
+ lineHeight: "2rem",
44226
44224
  display: "table-cell",
44227
44225
  [`&.${dd.head}`]: {
44228
44226
  color: e.palette.primary.notifyTextColor,
44229
44227
  backgroundColor: e.palette.primary.notifyBackground,
44230
44228
  borderColor: e.palette.primary.notifyBorderColor,
44231
- padding: "0.3rem 0.5rem",
44229
+ padding: "0rem",
44232
44230
  textAlign: "center"
44233
44231
  },
44234
44232
  [`&.${dd.body}`]: {
44235
44233
  color: e.palette.primary.notifyTextColor,
44236
44234
  borderColor: e.palette.primary.notifyBorderColor,
44237
- padding: "0.3rem 0.5rem",
44235
+ padding: "0rem",
44238
44236
  textAlign: "center"
44239
44237
  }
44240
44238
  }));
@@ -44556,7 +44554,7 @@ function kw({
44556
44554
  Bv,
44557
44555
  {
44558
44556
  sx: {
44559
- maxHeight: "100%",
44557
+ maxHeight: "40rem",
44560
44558
  whiteSpace: "nowrap",
44561
44559
  overflow: "auto",
44562
44560
  width: "100%",
@@ -44567,35 +44565,60 @@ function kw({
44567
44565
  Fv,
44568
44566
  {
44569
44567
  ref: O,
44568
+ stickyHeader: !0,
44570
44569
  "aria-label": "sticky table",
44571
44570
  sx: {
44572
44571
  backgroundColor: (I) => I.palette.primary.notifyBackground
44573
44572
  },
44574
44573
  children: [
44575
44574
  /* @__PURE__ */ y.jsxs(Lv, { children: [
44576
- /* @__PURE__ */ y.jsx(Yo, { children: d.map(
44577
- (I, Y) => I != null && I.isHidden || (I == null ? void 0 : I.isVisible) === !1 ? null : /* @__PURE__ */ y.jsxs(ye.Fragment, { children: [
44578
- ae(I, Y, x),
44579
- oe(I, Y, x)
44580
- ] }, Y)
44581
- ) }),
44582
- /* @__PURE__ */ y.jsx(Yo, { draggable: !1, children: d.flatMap(
44583
- (I, Y) => I != null && I.isHidden || !(I != null && I.children) || (I == null ? void 0 : I.isVisible) === !1 ? [] : I.children.map(
44584
- (Z, re) => Z != null && Z.isHidden ? null : /* @__PURE__ */ y.jsxs(ye.Fragment, { children: [
44585
- ae(
44586
- Z,
44587
- re,
44588
- x,
44589
- I
44590
- ),
44591
- w && oe(
44592
- Z,
44593
- re,
44594
- x
44575
+ /* @__PURE__ */ y.jsx(
44576
+ Yo,
44577
+ {
44578
+ sx: {
44579
+ position: "sticky",
44580
+ top: 0,
44581
+ backgroundColor: u.palette.primary.notifyBackground,
44582
+ zIndex: 3,
44583
+ maxHeight: "3.5rem"
44584
+ },
44585
+ children: d.map(
44586
+ (I, Y) => I != null && I.isHidden || (I == null ? void 0 : I.isVisible) === !1 ? null : /* @__PURE__ */ y.jsxs(ye.Fragment, { children: [
44587
+ ae(I, Y, x),
44588
+ oe(I, Y, x)
44589
+ ] }, Y)
44590
+ )
44591
+ }
44592
+ ),
44593
+ /* @__PURE__ */ y.jsx(
44594
+ Yo,
44595
+ {
44596
+ draggable: !1,
44597
+ sx: {
44598
+ position: "sticky",
44599
+ top: "2rem",
44600
+ backgroundColor: u.palette.primary.notifyBackground,
44601
+ zIndex: 2
44602
+ },
44603
+ children: d.flatMap(
44604
+ (I, Y) => I != null && I.isHidden || !(I != null && I.children) || (I == null ? void 0 : I.isVisible) === !1 ? [] : I.children.map(
44605
+ (Z, re) => Z != null && Z.isHidden ? null : /* @__PURE__ */ y.jsxs(ye.Fragment, { children: [
44606
+ ae(
44607
+ Z,
44608
+ re,
44609
+ x,
44610
+ I
44611
+ ),
44612
+ w && oe(
44613
+ Z,
44614
+ re,
44615
+ x
44616
+ )
44617
+ ] }, `${Y}-${re}`)
44595
44618
  )
44596
- ] }, `${Y}-${re}`)
44597
- )
44598
- ) })
44619
+ )
44620
+ }
44621
+ )
44599
44622
  ] }),
44600
44623
  /* @__PURE__ */ y.jsx(_v, { children: n.map((I, Y) => {
44601
44624
  const Z = I[V], re = _ == null ? void 0 : _[Z], be = (re == null ? void 0 : re.length) > 0;
@@ -44695,7 +44718,7 @@ function Ew({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: r, childU
44695
44718
  type: qe.SET_GRID_DATA,
44696
44719
  payload: { visibleGridColumns: l }
44697
44720
  }));
44698
- }, []), /* @__PURE__ */ y.jsx(
44721
+ }, [l]), /* @__PURE__ */ y.jsx(
44699
44722
  kw,
44700
44723
  {
44701
44724
  ...e,