@fctc/sme-widget-ui 2.4.7 → 2.4.9

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.js CHANGED
@@ -11009,7 +11009,7 @@ var Row = (props) => {
11009
11009
  "td",
11010
11010
  {
11011
11011
  colSpan: 1,
11012
- className: `${isEditTable ? "" : "p-3"} column w-max whitespace-nowrap border-b border-gray-200 text-sm font-normal text-gray-900`,
11012
+ className: `${isEditTable || col?.field?.widget === " handle" ? "" : "p-3"} column w-max whitespace-nowrap border-b border-gray-200 text-sm font-normal text-gray-900`,
11013
11013
  onClick: () => {
11014
11014
  handleClickRow(col, row);
11015
11015
  },
@@ -13108,16 +13108,22 @@ var TableHead = (props) => {
13108
13108
  }
13109
13109
  ),
13110
13110
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
13111
+ if (col?.field?.widget === "handle") {
13112
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13113
+ "th",
13114
+ {
13115
+ className: `column handle whitespace-nowrap text-left p-0 text-sm font-semibold capitalize text-[#060606]`
13116
+ },
13117
+ "table-head-" + index4
13118
+ );
13119
+ }
13111
13120
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13112
13121
  "th",
13113
13122
  {
13114
13123
  "data-type-co": col?.field?.type_co,
13115
13124
  "data-rtc-resizable": col?.name,
13116
13125
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
13117
- style: {
13118
- width: col?.field?.widget !== "handle" ? "50px" : "initial"
13119
- },
13120
- children: col?.field?.widget !== "handle" && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13126
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13121
13127
  "div",
13122
13128
  {
13123
13129
  className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
package/dist/index.mjs CHANGED
@@ -10882,7 +10882,7 @@ var Row = (props) => {
10882
10882
  "td",
10883
10883
  {
10884
10884
  colSpan: 1,
10885
- className: `${isEditTable ? "" : "p-3"} column w-max whitespace-nowrap border-b border-gray-200 text-sm font-normal text-gray-900`,
10885
+ className: `${isEditTable || col?.field?.widget === " handle" ? "" : "p-3"} column w-max whitespace-nowrap border-b border-gray-200 text-sm font-normal text-gray-900`,
10886
10886
  onClick: () => {
10887
10887
  handleClickRow(col, row);
10888
10888
  },
@@ -12981,16 +12981,22 @@ var TableHead = (props) => {
12981
12981
  }
12982
12982
  ),
12983
12983
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
12984
+ if (col?.field?.widget === "handle") {
12985
+ return /* @__PURE__ */ jsx51(
12986
+ "th",
12987
+ {
12988
+ className: `column handle whitespace-nowrap text-left p-0 text-sm font-semibold capitalize text-[#060606]`
12989
+ },
12990
+ "table-head-" + index4
12991
+ );
12992
+ }
12984
12993
  return /* @__PURE__ */ jsx51(
12985
12994
  "th",
12986
12995
  {
12987
12996
  "data-type-co": col?.field?.type_co,
12988
12997
  "data-rtc-resizable": col?.name,
12989
12998
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12990
- style: {
12991
- width: col?.field?.widget !== "handle" ? "50px" : "initial"
12992
- },
12993
- children: col?.field?.widget !== "handle" && /* @__PURE__ */ jsxs29(
12999
+ children: /* @__PURE__ */ jsxs29(
12994
13000
  "div",
12995
13001
  {
12996
13002
  className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
package/dist/widgets.js CHANGED
@@ -10001,7 +10001,7 @@ var Row = (props) => {
10001
10001
  "td",
10002
10002
  {
10003
10003
  colSpan: 1,
10004
- className: `${isEditTable ? "" : "p-3"} column w-max whitespace-nowrap border-b border-gray-200 text-sm font-normal text-gray-900`,
10004
+ className: `${isEditTable || col?.field?.widget === " handle" ? "" : "p-3"} column w-max whitespace-nowrap border-b border-gray-200 text-sm font-normal text-gray-900`,
10005
10005
  onClick: () => {
10006
10006
  handleClickRow(col, row);
10007
10007
  },
@@ -12100,16 +12100,22 @@ var TableHead = (props) => {
12100
12100
  }
12101
12101
  ),
12102
12102
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
12103
+ if (col?.field?.widget === "handle") {
12104
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12105
+ "th",
12106
+ {
12107
+ className: `column handle whitespace-nowrap text-left p-0 text-sm font-semibold capitalize text-[#060606]`
12108
+ },
12109
+ "table-head-" + index4
12110
+ );
12111
+ }
12103
12112
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12104
12113
  "th",
12105
12114
  {
12106
12115
  "data-type-co": col?.field?.type_co,
12107
12116
  "data-rtc-resizable": col?.name,
12108
12117
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12109
- style: {
12110
- width: col?.field?.widget !== "handle" ? "50px" : "initial"
12111
- },
12112
- children: col?.field?.widget !== "handle" && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12118
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12113
12119
  "div",
12114
12120
  {
12115
12121
  className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
package/dist/widgets.mjs CHANGED
@@ -9938,7 +9938,7 @@ var Row = (props) => {
9938
9938
  "td",
9939
9939
  {
9940
9940
  colSpan: 1,
9941
- className: `${isEditTable ? "" : "p-3"} column w-max whitespace-nowrap border-b border-gray-200 text-sm font-normal text-gray-900`,
9941
+ className: `${isEditTable || col?.field?.widget === " handle" ? "" : "p-3"} column w-max whitespace-nowrap border-b border-gray-200 text-sm font-normal text-gray-900`,
9942
9942
  onClick: () => {
9943
9943
  handleClickRow(col, row);
9944
9944
  },
@@ -12037,16 +12037,22 @@ var TableHead = (props) => {
12037
12037
  }
12038
12038
  ),
12039
12039
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
12040
+ if (col?.field?.widget === "handle") {
12041
+ return /* @__PURE__ */ jsx51(
12042
+ "th",
12043
+ {
12044
+ className: `column handle whitespace-nowrap text-left p-0 text-sm font-semibold capitalize text-[#060606]`
12045
+ },
12046
+ "table-head-" + index4
12047
+ );
12048
+ }
12040
12049
  return /* @__PURE__ */ jsx51(
12041
12050
  "th",
12042
12051
  {
12043
12052
  "data-type-co": col?.field?.type_co,
12044
12053
  "data-rtc-resizable": col?.name,
12045
12054
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12046
- style: {
12047
- width: col?.field?.widget !== "handle" ? "50px" : "initial"
12048
- },
12049
- children: col?.field?.widget !== "handle" && /* @__PURE__ */ jsxs29(
12055
+ children: /* @__PURE__ */ jsxs29(
12050
12056
  "div",
12051
12057
  {
12052
12058
  className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.4.7",
3
+ "version": "2.4.9",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",