@fctc/sme-widget-ui 2.8.8 → 2.9.0

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
@@ -13130,7 +13130,7 @@ var TableHead = (props) => {
13130
13130
  "table-head-" + index4
13131
13131
  );
13132
13132
  }
13133
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13133
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13134
13134
  "th",
13135
13135
  {
13136
13136
  "data-type-co": col?.field?.type_co,
@@ -13139,85 +13139,87 @@ var TableHead = (props) => {
13139
13139
  style: {
13140
13140
  width: header.getSize()
13141
13141
  },
13142
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13143
- "div",
13144
- {
13145
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
13146
- children: [
13147
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13148
- "div",
13149
- {
13150
- className: `cursor-pointer flex items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
13151
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate", children: col.title })
13152
- }
13153
- ),
13154
- col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
13155
- (0, import_react_dom.createPortal)(
13142
+ children: [
13143
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13144
+ "div",
13145
+ {
13146
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
13147
+ children: [
13148
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13149
+ "div",
13150
+ {
13151
+ className: `cursor-pointer flex items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
13152
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate", children: col.title })
13153
+ }
13154
+ ),
13155
+ col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
13156
+ (0, import_react_dom.createPortal)(
13157
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13158
+ M,
13159
+ {
13160
+ style: {
13161
+ padding: "6px 12px",
13162
+ fontSize: "12px",
13163
+ borderRadius: "4px",
13164
+ maxWidth: "200px",
13165
+ whiteSpace: "wrap",
13166
+ fontWeight: 400,
13167
+ textTransform: "none",
13168
+ zIndex: "9999"
13169
+ },
13170
+ id: `field-help-${col?.field?.name}`,
13171
+ content: col?.field?.help,
13172
+ place: "top"
13173
+ }
13174
+ ),
13175
+ document.body
13176
+ ),
13156
13177
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13157
- M,
13178
+ "span",
13158
13179
  {
13159
13180
  style: {
13160
- padding: "6px 12px",
13161
- fontSize: "12px",
13162
- borderRadius: "4px",
13163
- maxWidth: "200px",
13164
- whiteSpace: "wrap",
13165
- fontWeight: 400,
13166
- textTransform: "none",
13167
- zIndex: "9999"
13181
+ width: "12px",
13182
+ height: "12px",
13183
+ minWidth: "12px",
13184
+ maxHeight: "12px",
13185
+ fontSize: "8px"
13168
13186
  },
13169
- id: `field-help-${col?.field?.name}`,
13170
- content: col?.field?.help,
13171
- place: "top"
13187
+ "data-tooltip-id": `field-help-${col?.field?.name}`,
13188
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13189
+ "svg",
13190
+ {
13191
+ xmlns: "http://www.w3.org/2000/svg",
13192
+ width: "13",
13193
+ height: "13",
13194
+ viewBox: "0 0 13 13",
13195
+ fill: "none",
13196
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13197
+ "path",
13198
+ {
13199
+ fillRule: "evenodd",
13200
+ clipRule: "evenodd",
13201
+ d: "M6.25 12.5C9.70178 12.5 12.5 9.70178 12.5 6.25C12.5 2.79822 9.70178 0 6.25 0C2.79822 0 0 2.79822 0 6.25C0 9.70178 2.79822 12.5 6.25 12.5ZM7.36584 9.45858L7.46565 9.0506C7.41399 9.07486 7.3307 9.10258 7.21649 9.13414C7.10197 9.1657 6.9989 9.18177 6.90831 9.18177C6.71536 9.18177 6.57952 9.15014 6.50065 9.08657C6.42236 9.023 6.38331 8.90342 6.38331 8.72827C6.38331 8.65887 6.39509 8.55542 6.41973 8.42003C6.44361 8.28373 6.47108 8.16261 6.50161 8.05666L6.87419 6.73759C6.91068 6.61653 6.93571 6.48344 6.94916 6.33818C6.96292 6.19325 6.96932 6.09185 6.96932 6.03429C6.96932 5.75614 6.87182 5.53041 6.67676 5.35629C6.4817 5.18229 6.20393 5.09529 5.84396 5.09529C5.64365 5.09529 5.43188 5.13088 5.20776 5.202C4.98363 5.27294 4.74933 5.3584 4.50421 5.4582L4.40415 5.8665C4.47719 5.83949 4.56419 5.81043 4.66598 5.78034C4.76732 5.75038 4.86674 5.73489 4.96347 5.73489C5.16096 5.73489 5.29399 5.76856 5.3637 5.83488C5.43342 5.90139 5.46844 6.0197 5.46844 6.18883C5.46844 6.28236 5.45736 6.38626 5.43438 6.49919C5.41172 6.61282 5.38342 6.73298 5.35013 6.8598L4.97595 8.18419C4.94266 8.32336 4.91834 8.44787 4.90304 8.55843C4.88786 8.66886 4.88057 8.77724 4.88057 8.88262C4.88057 9.15482 4.98114 9.3792 5.18222 9.55627C5.38329 9.73264 5.66523 9.82143 6.02769 9.82143C6.26372 9.82143 6.47088 9.79057 6.64917 9.72854C6.82727 9.6667 7.06644 9.57675 7.36584 9.45858ZM7.29946 4.1002C7.47352 3.93882 7.56014 3.74254 7.56014 3.51272C7.56014 3.28341 7.47365 3.08675 7.29946 2.92331C7.12584 2.76032 6.91657 2.67857 6.6719 2.67857C6.42646 2.67857 6.21635 2.76013 6.04107 2.92331C5.86579 3.08675 5.77796 3.28334 5.77796 3.51272C5.77796 3.74254 5.86579 3.93875 6.04107 4.1002C6.21667 4.26217 6.42639 4.34321 6.6719 4.34321C6.91664 4.34321 7.12584 4.26217 7.29946 4.1002Z",
13202
+ fill: "#C3C3C3"
13203
+ }
13204
+ )
13205
+ }
13206
+ )
13172
13207
  }
13173
- ),
13174
- document.body
13175
- ),
13176
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13177
- "span",
13178
- {
13179
- style: {
13180
- width: "12px",
13181
- height: "12px",
13182
- minWidth: "12px",
13183
- maxHeight: "12px",
13184
- fontSize: "8px"
13185
- },
13186
- "data-tooltip-id": `field-help-${col?.field?.name}`,
13187
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13188
- "svg",
13189
- {
13190
- xmlns: "http://www.w3.org/2000/svg",
13191
- width: "13",
13192
- height: "13",
13193
- viewBox: "0 0 13 13",
13194
- fill: "none",
13195
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13196
- "path",
13197
- {
13198
- fillRule: "evenodd",
13199
- clipRule: "evenodd",
13200
- d: "M6.25 12.5C9.70178 12.5 12.5 9.70178 12.5 6.25C12.5 2.79822 9.70178 0 6.25 0C2.79822 0 0 2.79822 0 6.25C0 9.70178 2.79822 12.5 6.25 12.5ZM7.36584 9.45858L7.46565 9.0506C7.41399 9.07486 7.3307 9.10258 7.21649 9.13414C7.10197 9.1657 6.9989 9.18177 6.90831 9.18177C6.71536 9.18177 6.57952 9.15014 6.50065 9.08657C6.42236 9.023 6.38331 8.90342 6.38331 8.72827C6.38331 8.65887 6.39509 8.55542 6.41973 8.42003C6.44361 8.28373 6.47108 8.16261 6.50161 8.05666L6.87419 6.73759C6.91068 6.61653 6.93571 6.48344 6.94916 6.33818C6.96292 6.19325 6.96932 6.09185 6.96932 6.03429C6.96932 5.75614 6.87182 5.53041 6.67676 5.35629C6.4817 5.18229 6.20393 5.09529 5.84396 5.09529C5.64365 5.09529 5.43188 5.13088 5.20776 5.202C4.98363 5.27294 4.74933 5.3584 4.50421 5.4582L4.40415 5.8665C4.47719 5.83949 4.56419 5.81043 4.66598 5.78034C4.76732 5.75038 4.86674 5.73489 4.96347 5.73489C5.16096 5.73489 5.29399 5.76856 5.3637 5.83488C5.43342 5.90139 5.46844 6.0197 5.46844 6.18883C5.46844 6.28236 5.45736 6.38626 5.43438 6.49919C5.41172 6.61282 5.38342 6.73298 5.35013 6.8598L4.97595 8.18419C4.94266 8.32336 4.91834 8.44787 4.90304 8.55843C4.88786 8.66886 4.88057 8.77724 4.88057 8.88262C4.88057 9.15482 4.98114 9.3792 5.18222 9.55627C5.38329 9.73264 5.66523 9.82143 6.02769 9.82143C6.26372 9.82143 6.47088 9.79057 6.64917 9.72854C6.82727 9.6667 7.06644 9.57675 7.36584 9.45858ZM7.29946 4.1002C7.47352 3.93882 7.56014 3.74254 7.56014 3.51272C7.56014 3.28341 7.47365 3.08675 7.29946 2.92331C7.12584 2.76032 6.91657 2.67857 6.6719 2.67857C6.42646 2.67857 6.21635 2.76013 6.04107 2.92331C5.86579 3.08675 5.77796 3.28334 5.77796 3.51272C5.77796 3.74254 5.86579 3.93875 6.04107 4.1002C6.21667 4.26217 6.42639 4.34321 6.6719 4.34321C6.91664 4.34321 7.12584 4.26217 7.29946 4.1002Z",
13201
- fill: "#C3C3C3"
13202
- }
13203
- )
13204
- }
13205
- )
13206
- }
13207
- )
13208
- ] }),
13209
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13210
- "div",
13211
- {
13212
- onMouseDown: header.getResizeHandler(),
13213
- onTouchStart: header.getResizeHandler(),
13214
- className: `column-resizer ${header.column.getIsResizing() ? "is-resizing" : ""}
13208
+ )
13209
+ ] })
13210
+ ]
13211
+ }
13212
+ ),
13213
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13214
+ "div",
13215
+ {
13216
+ onMouseDown: header.getResizeHandler(),
13217
+ onTouchStart: header.getResizeHandler(),
13218
+ className: `column-resizer ${header.column.getIsResizing() ? "is-resizing" : ""}
13215
13219
  `
13216
- }
13217
- )
13218
- ]
13219
- }
13220
- )
13220
+ }
13221
+ )
13222
+ ]
13221
13223
  },
13222
13224
  "table-head-" + header.id
13223
13225
  );
package/dist/index.mjs CHANGED
@@ -13003,7 +13003,7 @@ var TableHead = (props) => {
13003
13003
  "table-head-" + index4
13004
13004
  );
13005
13005
  }
13006
- return /* @__PURE__ */ jsx51(
13006
+ return /* @__PURE__ */ jsxs29(
13007
13007
  "th",
13008
13008
  {
13009
13009
  "data-type-co": col?.field?.type_co,
@@ -13012,85 +13012,87 @@ var TableHead = (props) => {
13012
13012
  style: {
13013
13013
  width: header.getSize()
13014
13014
  },
13015
- children: /* @__PURE__ */ jsxs29(
13016
- "div",
13017
- {
13018
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
13019
- children: [
13020
- /* @__PURE__ */ jsx51(
13021
- "div",
13022
- {
13023
- className: `cursor-pointer flex items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
13024
- children: /* @__PURE__ */ jsx51("span", { className: "truncate", children: col.title })
13025
- }
13026
- ),
13027
- col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
13028
- createPortal(
13015
+ children: [
13016
+ /* @__PURE__ */ jsxs29(
13017
+ "div",
13018
+ {
13019
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
13020
+ children: [
13021
+ /* @__PURE__ */ jsx51(
13022
+ "div",
13023
+ {
13024
+ className: `cursor-pointer flex items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
13025
+ children: /* @__PURE__ */ jsx51("span", { className: "truncate", children: col.title })
13026
+ }
13027
+ ),
13028
+ col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
13029
+ createPortal(
13030
+ /* @__PURE__ */ jsx51(
13031
+ M,
13032
+ {
13033
+ style: {
13034
+ padding: "6px 12px",
13035
+ fontSize: "12px",
13036
+ borderRadius: "4px",
13037
+ maxWidth: "200px",
13038
+ whiteSpace: "wrap",
13039
+ fontWeight: 400,
13040
+ textTransform: "none",
13041
+ zIndex: "9999"
13042
+ },
13043
+ id: `field-help-${col?.field?.name}`,
13044
+ content: col?.field?.help,
13045
+ place: "top"
13046
+ }
13047
+ ),
13048
+ document.body
13049
+ ),
13029
13050
  /* @__PURE__ */ jsx51(
13030
- M,
13051
+ "span",
13031
13052
  {
13032
13053
  style: {
13033
- padding: "6px 12px",
13034
- fontSize: "12px",
13035
- borderRadius: "4px",
13036
- maxWidth: "200px",
13037
- whiteSpace: "wrap",
13038
- fontWeight: 400,
13039
- textTransform: "none",
13040
- zIndex: "9999"
13054
+ width: "12px",
13055
+ height: "12px",
13056
+ minWidth: "12px",
13057
+ maxHeight: "12px",
13058
+ fontSize: "8px"
13041
13059
  },
13042
- id: `field-help-${col?.field?.name}`,
13043
- content: col?.field?.help,
13044
- place: "top"
13060
+ "data-tooltip-id": `field-help-${col?.field?.name}`,
13061
+ children: /* @__PURE__ */ jsx51(
13062
+ "svg",
13063
+ {
13064
+ xmlns: "http://www.w3.org/2000/svg",
13065
+ width: "13",
13066
+ height: "13",
13067
+ viewBox: "0 0 13 13",
13068
+ fill: "none",
13069
+ children: /* @__PURE__ */ jsx51(
13070
+ "path",
13071
+ {
13072
+ fillRule: "evenodd",
13073
+ clipRule: "evenodd",
13074
+ d: "M6.25 12.5C9.70178 12.5 12.5 9.70178 12.5 6.25C12.5 2.79822 9.70178 0 6.25 0C2.79822 0 0 2.79822 0 6.25C0 9.70178 2.79822 12.5 6.25 12.5ZM7.36584 9.45858L7.46565 9.0506C7.41399 9.07486 7.3307 9.10258 7.21649 9.13414C7.10197 9.1657 6.9989 9.18177 6.90831 9.18177C6.71536 9.18177 6.57952 9.15014 6.50065 9.08657C6.42236 9.023 6.38331 8.90342 6.38331 8.72827C6.38331 8.65887 6.39509 8.55542 6.41973 8.42003C6.44361 8.28373 6.47108 8.16261 6.50161 8.05666L6.87419 6.73759C6.91068 6.61653 6.93571 6.48344 6.94916 6.33818C6.96292 6.19325 6.96932 6.09185 6.96932 6.03429C6.96932 5.75614 6.87182 5.53041 6.67676 5.35629C6.4817 5.18229 6.20393 5.09529 5.84396 5.09529C5.64365 5.09529 5.43188 5.13088 5.20776 5.202C4.98363 5.27294 4.74933 5.3584 4.50421 5.4582L4.40415 5.8665C4.47719 5.83949 4.56419 5.81043 4.66598 5.78034C4.76732 5.75038 4.86674 5.73489 4.96347 5.73489C5.16096 5.73489 5.29399 5.76856 5.3637 5.83488C5.43342 5.90139 5.46844 6.0197 5.46844 6.18883C5.46844 6.28236 5.45736 6.38626 5.43438 6.49919C5.41172 6.61282 5.38342 6.73298 5.35013 6.8598L4.97595 8.18419C4.94266 8.32336 4.91834 8.44787 4.90304 8.55843C4.88786 8.66886 4.88057 8.77724 4.88057 8.88262C4.88057 9.15482 4.98114 9.3792 5.18222 9.55627C5.38329 9.73264 5.66523 9.82143 6.02769 9.82143C6.26372 9.82143 6.47088 9.79057 6.64917 9.72854C6.82727 9.6667 7.06644 9.57675 7.36584 9.45858ZM7.29946 4.1002C7.47352 3.93882 7.56014 3.74254 7.56014 3.51272C7.56014 3.28341 7.47365 3.08675 7.29946 2.92331C7.12584 2.76032 6.91657 2.67857 6.6719 2.67857C6.42646 2.67857 6.21635 2.76013 6.04107 2.92331C5.86579 3.08675 5.77796 3.28334 5.77796 3.51272C5.77796 3.74254 5.86579 3.93875 6.04107 4.1002C6.21667 4.26217 6.42639 4.34321 6.6719 4.34321C6.91664 4.34321 7.12584 4.26217 7.29946 4.1002Z",
13075
+ fill: "#C3C3C3"
13076
+ }
13077
+ )
13078
+ }
13079
+ )
13045
13080
  }
13046
- ),
13047
- document.body
13048
- ),
13049
- /* @__PURE__ */ jsx51(
13050
- "span",
13051
- {
13052
- style: {
13053
- width: "12px",
13054
- height: "12px",
13055
- minWidth: "12px",
13056
- maxHeight: "12px",
13057
- fontSize: "8px"
13058
- },
13059
- "data-tooltip-id": `field-help-${col?.field?.name}`,
13060
- children: /* @__PURE__ */ jsx51(
13061
- "svg",
13062
- {
13063
- xmlns: "http://www.w3.org/2000/svg",
13064
- width: "13",
13065
- height: "13",
13066
- viewBox: "0 0 13 13",
13067
- fill: "none",
13068
- children: /* @__PURE__ */ jsx51(
13069
- "path",
13070
- {
13071
- fillRule: "evenodd",
13072
- clipRule: "evenodd",
13073
- d: "M6.25 12.5C9.70178 12.5 12.5 9.70178 12.5 6.25C12.5 2.79822 9.70178 0 6.25 0C2.79822 0 0 2.79822 0 6.25C0 9.70178 2.79822 12.5 6.25 12.5ZM7.36584 9.45858L7.46565 9.0506C7.41399 9.07486 7.3307 9.10258 7.21649 9.13414C7.10197 9.1657 6.9989 9.18177 6.90831 9.18177C6.71536 9.18177 6.57952 9.15014 6.50065 9.08657C6.42236 9.023 6.38331 8.90342 6.38331 8.72827C6.38331 8.65887 6.39509 8.55542 6.41973 8.42003C6.44361 8.28373 6.47108 8.16261 6.50161 8.05666L6.87419 6.73759C6.91068 6.61653 6.93571 6.48344 6.94916 6.33818C6.96292 6.19325 6.96932 6.09185 6.96932 6.03429C6.96932 5.75614 6.87182 5.53041 6.67676 5.35629C6.4817 5.18229 6.20393 5.09529 5.84396 5.09529C5.64365 5.09529 5.43188 5.13088 5.20776 5.202C4.98363 5.27294 4.74933 5.3584 4.50421 5.4582L4.40415 5.8665C4.47719 5.83949 4.56419 5.81043 4.66598 5.78034C4.76732 5.75038 4.86674 5.73489 4.96347 5.73489C5.16096 5.73489 5.29399 5.76856 5.3637 5.83488C5.43342 5.90139 5.46844 6.0197 5.46844 6.18883C5.46844 6.28236 5.45736 6.38626 5.43438 6.49919C5.41172 6.61282 5.38342 6.73298 5.35013 6.8598L4.97595 8.18419C4.94266 8.32336 4.91834 8.44787 4.90304 8.55843C4.88786 8.66886 4.88057 8.77724 4.88057 8.88262C4.88057 9.15482 4.98114 9.3792 5.18222 9.55627C5.38329 9.73264 5.66523 9.82143 6.02769 9.82143C6.26372 9.82143 6.47088 9.79057 6.64917 9.72854C6.82727 9.6667 7.06644 9.57675 7.36584 9.45858ZM7.29946 4.1002C7.47352 3.93882 7.56014 3.74254 7.56014 3.51272C7.56014 3.28341 7.47365 3.08675 7.29946 2.92331C7.12584 2.76032 6.91657 2.67857 6.6719 2.67857C6.42646 2.67857 6.21635 2.76013 6.04107 2.92331C5.86579 3.08675 5.77796 3.28334 5.77796 3.51272C5.77796 3.74254 5.86579 3.93875 6.04107 4.1002C6.21667 4.26217 6.42639 4.34321 6.6719 4.34321C6.91664 4.34321 7.12584 4.26217 7.29946 4.1002Z",
13074
- fill: "#C3C3C3"
13075
- }
13076
- )
13077
- }
13078
- )
13079
- }
13080
- )
13081
- ] }),
13082
- /* @__PURE__ */ jsx51(
13083
- "div",
13084
- {
13085
- onMouseDown: header.getResizeHandler(),
13086
- onTouchStart: header.getResizeHandler(),
13087
- className: `column-resizer ${header.column.getIsResizing() ? "is-resizing" : ""}
13081
+ )
13082
+ ] })
13083
+ ]
13084
+ }
13085
+ ),
13086
+ /* @__PURE__ */ jsx51(
13087
+ "div",
13088
+ {
13089
+ onMouseDown: header.getResizeHandler(),
13090
+ onTouchStart: header.getResizeHandler(),
13091
+ className: `column-resizer ${header.column.getIsResizing() ? "is-resizing" : ""}
13088
13092
  `
13089
- }
13090
- )
13091
- ]
13092
- }
13093
- )
13093
+ }
13094
+ )
13095
+ ]
13094
13096
  },
13095
13097
  "table-head-" + header.id
13096
13098
  );
package/dist/widgets.js CHANGED
@@ -12122,7 +12122,7 @@ var TableHead = (props) => {
12122
12122
  "table-head-" + index4
12123
12123
  );
12124
12124
  }
12125
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12125
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12126
12126
  "th",
12127
12127
  {
12128
12128
  "data-type-co": col?.field?.type_co,
@@ -12131,85 +12131,87 @@ var TableHead = (props) => {
12131
12131
  style: {
12132
12132
  width: header.getSize()
12133
12133
  },
12134
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12135
- "div",
12136
- {
12137
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
12138
- children: [
12139
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12140
- "div",
12141
- {
12142
- className: `cursor-pointer flex items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
12143
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate", children: col.title })
12144
- }
12145
- ),
12146
- col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
12147
- (0, import_react_dom.createPortal)(
12134
+ children: [
12135
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12136
+ "div",
12137
+ {
12138
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
12139
+ children: [
12140
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12141
+ "div",
12142
+ {
12143
+ className: `cursor-pointer flex items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
12144
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate", children: col.title })
12145
+ }
12146
+ ),
12147
+ col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
12148
+ (0, import_react_dom.createPortal)(
12149
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12150
+ M,
12151
+ {
12152
+ style: {
12153
+ padding: "6px 12px",
12154
+ fontSize: "12px",
12155
+ borderRadius: "4px",
12156
+ maxWidth: "200px",
12157
+ whiteSpace: "wrap",
12158
+ fontWeight: 400,
12159
+ textTransform: "none",
12160
+ zIndex: "9999"
12161
+ },
12162
+ id: `field-help-${col?.field?.name}`,
12163
+ content: col?.field?.help,
12164
+ place: "top"
12165
+ }
12166
+ ),
12167
+ document.body
12168
+ ),
12148
12169
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12149
- M,
12170
+ "span",
12150
12171
  {
12151
12172
  style: {
12152
- padding: "6px 12px",
12153
- fontSize: "12px",
12154
- borderRadius: "4px",
12155
- maxWidth: "200px",
12156
- whiteSpace: "wrap",
12157
- fontWeight: 400,
12158
- textTransform: "none",
12159
- zIndex: "9999"
12173
+ width: "12px",
12174
+ height: "12px",
12175
+ minWidth: "12px",
12176
+ maxHeight: "12px",
12177
+ fontSize: "8px"
12160
12178
  },
12161
- id: `field-help-${col?.field?.name}`,
12162
- content: col?.field?.help,
12163
- place: "top"
12179
+ "data-tooltip-id": `field-help-${col?.field?.name}`,
12180
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12181
+ "svg",
12182
+ {
12183
+ xmlns: "http://www.w3.org/2000/svg",
12184
+ width: "13",
12185
+ height: "13",
12186
+ viewBox: "0 0 13 13",
12187
+ fill: "none",
12188
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12189
+ "path",
12190
+ {
12191
+ fillRule: "evenodd",
12192
+ clipRule: "evenodd",
12193
+ d: "M6.25 12.5C9.70178 12.5 12.5 9.70178 12.5 6.25C12.5 2.79822 9.70178 0 6.25 0C2.79822 0 0 2.79822 0 6.25C0 9.70178 2.79822 12.5 6.25 12.5ZM7.36584 9.45858L7.46565 9.0506C7.41399 9.07486 7.3307 9.10258 7.21649 9.13414C7.10197 9.1657 6.9989 9.18177 6.90831 9.18177C6.71536 9.18177 6.57952 9.15014 6.50065 9.08657C6.42236 9.023 6.38331 8.90342 6.38331 8.72827C6.38331 8.65887 6.39509 8.55542 6.41973 8.42003C6.44361 8.28373 6.47108 8.16261 6.50161 8.05666L6.87419 6.73759C6.91068 6.61653 6.93571 6.48344 6.94916 6.33818C6.96292 6.19325 6.96932 6.09185 6.96932 6.03429C6.96932 5.75614 6.87182 5.53041 6.67676 5.35629C6.4817 5.18229 6.20393 5.09529 5.84396 5.09529C5.64365 5.09529 5.43188 5.13088 5.20776 5.202C4.98363 5.27294 4.74933 5.3584 4.50421 5.4582L4.40415 5.8665C4.47719 5.83949 4.56419 5.81043 4.66598 5.78034C4.76732 5.75038 4.86674 5.73489 4.96347 5.73489C5.16096 5.73489 5.29399 5.76856 5.3637 5.83488C5.43342 5.90139 5.46844 6.0197 5.46844 6.18883C5.46844 6.28236 5.45736 6.38626 5.43438 6.49919C5.41172 6.61282 5.38342 6.73298 5.35013 6.8598L4.97595 8.18419C4.94266 8.32336 4.91834 8.44787 4.90304 8.55843C4.88786 8.66886 4.88057 8.77724 4.88057 8.88262C4.88057 9.15482 4.98114 9.3792 5.18222 9.55627C5.38329 9.73264 5.66523 9.82143 6.02769 9.82143C6.26372 9.82143 6.47088 9.79057 6.64917 9.72854C6.82727 9.6667 7.06644 9.57675 7.36584 9.45858ZM7.29946 4.1002C7.47352 3.93882 7.56014 3.74254 7.56014 3.51272C7.56014 3.28341 7.47365 3.08675 7.29946 2.92331C7.12584 2.76032 6.91657 2.67857 6.6719 2.67857C6.42646 2.67857 6.21635 2.76013 6.04107 2.92331C5.86579 3.08675 5.77796 3.28334 5.77796 3.51272C5.77796 3.74254 5.86579 3.93875 6.04107 4.1002C6.21667 4.26217 6.42639 4.34321 6.6719 4.34321C6.91664 4.34321 7.12584 4.26217 7.29946 4.1002Z",
12194
+ fill: "#C3C3C3"
12195
+ }
12196
+ )
12197
+ }
12198
+ )
12164
12199
  }
12165
- ),
12166
- document.body
12167
- ),
12168
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12169
- "span",
12170
- {
12171
- style: {
12172
- width: "12px",
12173
- height: "12px",
12174
- minWidth: "12px",
12175
- maxHeight: "12px",
12176
- fontSize: "8px"
12177
- },
12178
- "data-tooltip-id": `field-help-${col?.field?.name}`,
12179
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12180
- "svg",
12181
- {
12182
- xmlns: "http://www.w3.org/2000/svg",
12183
- width: "13",
12184
- height: "13",
12185
- viewBox: "0 0 13 13",
12186
- fill: "none",
12187
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12188
- "path",
12189
- {
12190
- fillRule: "evenodd",
12191
- clipRule: "evenodd",
12192
- d: "M6.25 12.5C9.70178 12.5 12.5 9.70178 12.5 6.25C12.5 2.79822 9.70178 0 6.25 0C2.79822 0 0 2.79822 0 6.25C0 9.70178 2.79822 12.5 6.25 12.5ZM7.36584 9.45858L7.46565 9.0506C7.41399 9.07486 7.3307 9.10258 7.21649 9.13414C7.10197 9.1657 6.9989 9.18177 6.90831 9.18177C6.71536 9.18177 6.57952 9.15014 6.50065 9.08657C6.42236 9.023 6.38331 8.90342 6.38331 8.72827C6.38331 8.65887 6.39509 8.55542 6.41973 8.42003C6.44361 8.28373 6.47108 8.16261 6.50161 8.05666L6.87419 6.73759C6.91068 6.61653 6.93571 6.48344 6.94916 6.33818C6.96292 6.19325 6.96932 6.09185 6.96932 6.03429C6.96932 5.75614 6.87182 5.53041 6.67676 5.35629C6.4817 5.18229 6.20393 5.09529 5.84396 5.09529C5.64365 5.09529 5.43188 5.13088 5.20776 5.202C4.98363 5.27294 4.74933 5.3584 4.50421 5.4582L4.40415 5.8665C4.47719 5.83949 4.56419 5.81043 4.66598 5.78034C4.76732 5.75038 4.86674 5.73489 4.96347 5.73489C5.16096 5.73489 5.29399 5.76856 5.3637 5.83488C5.43342 5.90139 5.46844 6.0197 5.46844 6.18883C5.46844 6.28236 5.45736 6.38626 5.43438 6.49919C5.41172 6.61282 5.38342 6.73298 5.35013 6.8598L4.97595 8.18419C4.94266 8.32336 4.91834 8.44787 4.90304 8.55843C4.88786 8.66886 4.88057 8.77724 4.88057 8.88262C4.88057 9.15482 4.98114 9.3792 5.18222 9.55627C5.38329 9.73264 5.66523 9.82143 6.02769 9.82143C6.26372 9.82143 6.47088 9.79057 6.64917 9.72854C6.82727 9.6667 7.06644 9.57675 7.36584 9.45858ZM7.29946 4.1002C7.47352 3.93882 7.56014 3.74254 7.56014 3.51272C7.56014 3.28341 7.47365 3.08675 7.29946 2.92331C7.12584 2.76032 6.91657 2.67857 6.6719 2.67857C6.42646 2.67857 6.21635 2.76013 6.04107 2.92331C5.86579 3.08675 5.77796 3.28334 5.77796 3.51272C5.77796 3.74254 5.86579 3.93875 6.04107 4.1002C6.21667 4.26217 6.42639 4.34321 6.6719 4.34321C6.91664 4.34321 7.12584 4.26217 7.29946 4.1002Z",
12193
- fill: "#C3C3C3"
12194
- }
12195
- )
12196
- }
12197
- )
12198
- }
12199
- )
12200
- ] }),
12201
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12202
- "div",
12203
- {
12204
- onMouseDown: header.getResizeHandler(),
12205
- onTouchStart: header.getResizeHandler(),
12206
- className: `column-resizer ${header.column.getIsResizing() ? "is-resizing" : ""}
12200
+ )
12201
+ ] })
12202
+ ]
12203
+ }
12204
+ ),
12205
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12206
+ "div",
12207
+ {
12208
+ onMouseDown: header.getResizeHandler(),
12209
+ onTouchStart: header.getResizeHandler(),
12210
+ className: `column-resizer ${header.column.getIsResizing() ? "is-resizing" : ""}
12207
12211
  `
12208
- }
12209
- )
12210
- ]
12211
- }
12212
- )
12212
+ }
12213
+ )
12214
+ ]
12213
12215
  },
12214
12216
  "table-head-" + header.id
12215
12217
  );
package/dist/widgets.mjs CHANGED
@@ -12059,7 +12059,7 @@ var TableHead = (props) => {
12059
12059
  "table-head-" + index4
12060
12060
  );
12061
12061
  }
12062
- return /* @__PURE__ */ jsx51(
12062
+ return /* @__PURE__ */ jsxs29(
12063
12063
  "th",
12064
12064
  {
12065
12065
  "data-type-co": col?.field?.type_co,
@@ -12068,85 +12068,87 @@ var TableHead = (props) => {
12068
12068
  style: {
12069
12069
  width: header.getSize()
12070
12070
  },
12071
- children: /* @__PURE__ */ jsxs29(
12072
- "div",
12073
- {
12074
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
12075
- children: [
12076
- /* @__PURE__ */ jsx51(
12077
- "div",
12078
- {
12079
- className: `cursor-pointer flex items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
12080
- children: /* @__PURE__ */ jsx51("span", { className: "truncate", children: col.title })
12081
- }
12082
- ),
12083
- col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
12084
- createPortal(
12071
+ children: [
12072
+ /* @__PURE__ */ jsxs29(
12073
+ "div",
12074
+ {
12075
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
12076
+ children: [
12077
+ /* @__PURE__ */ jsx51(
12078
+ "div",
12079
+ {
12080
+ className: `cursor-pointer flex items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
12081
+ children: /* @__PURE__ */ jsx51("span", { className: "truncate", children: col.title })
12082
+ }
12083
+ ),
12084
+ col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
12085
+ createPortal(
12086
+ /* @__PURE__ */ jsx51(
12087
+ M,
12088
+ {
12089
+ style: {
12090
+ padding: "6px 12px",
12091
+ fontSize: "12px",
12092
+ borderRadius: "4px",
12093
+ maxWidth: "200px",
12094
+ whiteSpace: "wrap",
12095
+ fontWeight: 400,
12096
+ textTransform: "none",
12097
+ zIndex: "9999"
12098
+ },
12099
+ id: `field-help-${col?.field?.name}`,
12100
+ content: col?.field?.help,
12101
+ place: "top"
12102
+ }
12103
+ ),
12104
+ document.body
12105
+ ),
12085
12106
  /* @__PURE__ */ jsx51(
12086
- M,
12107
+ "span",
12087
12108
  {
12088
12109
  style: {
12089
- padding: "6px 12px",
12090
- fontSize: "12px",
12091
- borderRadius: "4px",
12092
- maxWidth: "200px",
12093
- whiteSpace: "wrap",
12094
- fontWeight: 400,
12095
- textTransform: "none",
12096
- zIndex: "9999"
12110
+ width: "12px",
12111
+ height: "12px",
12112
+ minWidth: "12px",
12113
+ maxHeight: "12px",
12114
+ fontSize: "8px"
12097
12115
  },
12098
- id: `field-help-${col?.field?.name}`,
12099
- content: col?.field?.help,
12100
- place: "top"
12116
+ "data-tooltip-id": `field-help-${col?.field?.name}`,
12117
+ children: /* @__PURE__ */ jsx51(
12118
+ "svg",
12119
+ {
12120
+ xmlns: "http://www.w3.org/2000/svg",
12121
+ width: "13",
12122
+ height: "13",
12123
+ viewBox: "0 0 13 13",
12124
+ fill: "none",
12125
+ children: /* @__PURE__ */ jsx51(
12126
+ "path",
12127
+ {
12128
+ fillRule: "evenodd",
12129
+ clipRule: "evenodd",
12130
+ d: "M6.25 12.5C9.70178 12.5 12.5 9.70178 12.5 6.25C12.5 2.79822 9.70178 0 6.25 0C2.79822 0 0 2.79822 0 6.25C0 9.70178 2.79822 12.5 6.25 12.5ZM7.36584 9.45858L7.46565 9.0506C7.41399 9.07486 7.3307 9.10258 7.21649 9.13414C7.10197 9.1657 6.9989 9.18177 6.90831 9.18177C6.71536 9.18177 6.57952 9.15014 6.50065 9.08657C6.42236 9.023 6.38331 8.90342 6.38331 8.72827C6.38331 8.65887 6.39509 8.55542 6.41973 8.42003C6.44361 8.28373 6.47108 8.16261 6.50161 8.05666L6.87419 6.73759C6.91068 6.61653 6.93571 6.48344 6.94916 6.33818C6.96292 6.19325 6.96932 6.09185 6.96932 6.03429C6.96932 5.75614 6.87182 5.53041 6.67676 5.35629C6.4817 5.18229 6.20393 5.09529 5.84396 5.09529C5.64365 5.09529 5.43188 5.13088 5.20776 5.202C4.98363 5.27294 4.74933 5.3584 4.50421 5.4582L4.40415 5.8665C4.47719 5.83949 4.56419 5.81043 4.66598 5.78034C4.76732 5.75038 4.86674 5.73489 4.96347 5.73489C5.16096 5.73489 5.29399 5.76856 5.3637 5.83488C5.43342 5.90139 5.46844 6.0197 5.46844 6.18883C5.46844 6.28236 5.45736 6.38626 5.43438 6.49919C5.41172 6.61282 5.38342 6.73298 5.35013 6.8598L4.97595 8.18419C4.94266 8.32336 4.91834 8.44787 4.90304 8.55843C4.88786 8.66886 4.88057 8.77724 4.88057 8.88262C4.88057 9.15482 4.98114 9.3792 5.18222 9.55627C5.38329 9.73264 5.66523 9.82143 6.02769 9.82143C6.26372 9.82143 6.47088 9.79057 6.64917 9.72854C6.82727 9.6667 7.06644 9.57675 7.36584 9.45858ZM7.29946 4.1002C7.47352 3.93882 7.56014 3.74254 7.56014 3.51272C7.56014 3.28341 7.47365 3.08675 7.29946 2.92331C7.12584 2.76032 6.91657 2.67857 6.6719 2.67857C6.42646 2.67857 6.21635 2.76013 6.04107 2.92331C5.86579 3.08675 5.77796 3.28334 5.77796 3.51272C5.77796 3.74254 5.86579 3.93875 6.04107 4.1002C6.21667 4.26217 6.42639 4.34321 6.6719 4.34321C6.91664 4.34321 7.12584 4.26217 7.29946 4.1002Z",
12131
+ fill: "#C3C3C3"
12132
+ }
12133
+ )
12134
+ }
12135
+ )
12101
12136
  }
12102
- ),
12103
- document.body
12104
- ),
12105
- /* @__PURE__ */ jsx51(
12106
- "span",
12107
- {
12108
- style: {
12109
- width: "12px",
12110
- height: "12px",
12111
- minWidth: "12px",
12112
- maxHeight: "12px",
12113
- fontSize: "8px"
12114
- },
12115
- "data-tooltip-id": `field-help-${col?.field?.name}`,
12116
- children: /* @__PURE__ */ jsx51(
12117
- "svg",
12118
- {
12119
- xmlns: "http://www.w3.org/2000/svg",
12120
- width: "13",
12121
- height: "13",
12122
- viewBox: "0 0 13 13",
12123
- fill: "none",
12124
- children: /* @__PURE__ */ jsx51(
12125
- "path",
12126
- {
12127
- fillRule: "evenodd",
12128
- clipRule: "evenodd",
12129
- d: "M6.25 12.5C9.70178 12.5 12.5 9.70178 12.5 6.25C12.5 2.79822 9.70178 0 6.25 0C2.79822 0 0 2.79822 0 6.25C0 9.70178 2.79822 12.5 6.25 12.5ZM7.36584 9.45858L7.46565 9.0506C7.41399 9.07486 7.3307 9.10258 7.21649 9.13414C7.10197 9.1657 6.9989 9.18177 6.90831 9.18177C6.71536 9.18177 6.57952 9.15014 6.50065 9.08657C6.42236 9.023 6.38331 8.90342 6.38331 8.72827C6.38331 8.65887 6.39509 8.55542 6.41973 8.42003C6.44361 8.28373 6.47108 8.16261 6.50161 8.05666L6.87419 6.73759C6.91068 6.61653 6.93571 6.48344 6.94916 6.33818C6.96292 6.19325 6.96932 6.09185 6.96932 6.03429C6.96932 5.75614 6.87182 5.53041 6.67676 5.35629C6.4817 5.18229 6.20393 5.09529 5.84396 5.09529C5.64365 5.09529 5.43188 5.13088 5.20776 5.202C4.98363 5.27294 4.74933 5.3584 4.50421 5.4582L4.40415 5.8665C4.47719 5.83949 4.56419 5.81043 4.66598 5.78034C4.76732 5.75038 4.86674 5.73489 4.96347 5.73489C5.16096 5.73489 5.29399 5.76856 5.3637 5.83488C5.43342 5.90139 5.46844 6.0197 5.46844 6.18883C5.46844 6.28236 5.45736 6.38626 5.43438 6.49919C5.41172 6.61282 5.38342 6.73298 5.35013 6.8598L4.97595 8.18419C4.94266 8.32336 4.91834 8.44787 4.90304 8.55843C4.88786 8.66886 4.88057 8.77724 4.88057 8.88262C4.88057 9.15482 4.98114 9.3792 5.18222 9.55627C5.38329 9.73264 5.66523 9.82143 6.02769 9.82143C6.26372 9.82143 6.47088 9.79057 6.64917 9.72854C6.82727 9.6667 7.06644 9.57675 7.36584 9.45858ZM7.29946 4.1002C7.47352 3.93882 7.56014 3.74254 7.56014 3.51272C7.56014 3.28341 7.47365 3.08675 7.29946 2.92331C7.12584 2.76032 6.91657 2.67857 6.6719 2.67857C6.42646 2.67857 6.21635 2.76013 6.04107 2.92331C5.86579 3.08675 5.77796 3.28334 5.77796 3.51272C5.77796 3.74254 5.86579 3.93875 6.04107 4.1002C6.21667 4.26217 6.42639 4.34321 6.6719 4.34321C6.91664 4.34321 7.12584 4.26217 7.29946 4.1002Z",
12130
- fill: "#C3C3C3"
12131
- }
12132
- )
12133
- }
12134
- )
12135
- }
12136
- )
12137
- ] }),
12138
- /* @__PURE__ */ jsx51(
12139
- "div",
12140
- {
12141
- onMouseDown: header.getResizeHandler(),
12142
- onTouchStart: header.getResizeHandler(),
12143
- className: `column-resizer ${header.column.getIsResizing() ? "is-resizing" : ""}
12137
+ )
12138
+ ] })
12139
+ ]
12140
+ }
12141
+ ),
12142
+ /* @__PURE__ */ jsx51(
12143
+ "div",
12144
+ {
12145
+ onMouseDown: header.getResizeHandler(),
12146
+ onTouchStart: header.getResizeHandler(),
12147
+ className: `column-resizer ${header.column.getIsResizing() ? "is-resizing" : ""}
12144
12148
  `
12145
- }
12146
- )
12147
- ]
12148
- }
12149
- )
12149
+ }
12150
+ )
12151
+ ]
12150
12152
  },
12151
12153
  "table-head-" + header.id
12152
12154
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.8.8",
3
+ "version": "2.9.0",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",