@fctc/sme-widget-ui 2.4.6 → 2.4.8

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
@@ -13108,13 +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 whitespace-nowrap text-left p-3 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
- children: col?.field?.widget !== "handle" && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13126
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13118
13127
  "div",
13119
13128
  {
13120
13129
  className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
package/dist/index.mjs CHANGED
@@ -12981,13 +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 whitespace-nowrap text-left p-3 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
- children: col?.field?.widget !== "handle" && /* @__PURE__ */ jsxs29(
12999
+ children: /* @__PURE__ */ jsxs29(
12991
13000
  "div",
12992
13001
  {
12993
13002
  className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
package/dist/widgets.js CHANGED
@@ -12100,13 +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 whitespace-nowrap text-left p-3 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
- children: col?.field?.widget !== "handle" && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12118
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12110
12119
  "div",
12111
12120
  {
12112
12121
  className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
package/dist/widgets.mjs CHANGED
@@ -12037,13 +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 whitespace-nowrap text-left p-3 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
- children: col?.field?.widget !== "handle" && /* @__PURE__ */ jsxs29(
12055
+ children: /* @__PURE__ */ jsxs29(
12047
12056
  "div",
12048
12057
  {
12049
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.6",
3
+ "version": "2.4.8",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",