@fctc/sme-widget-ui 2.0.0 → 2.0.2

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
@@ -13138,6 +13138,7 @@ var TableHead = (props) => {
13138
13138
  return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13139
13139
  "th",
13140
13140
  {
13141
+ "data-type-co": col?.field?.type_co,
13141
13142
  "data-rtc-resizable": col?.name,
13142
13143
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
13143
13144
  children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
@@ -13188,7 +13189,7 @@ var TableHead = (props) => {
13188
13189
  "th",
13189
13190
  {
13190
13191
  style: {
13191
- minWidth: "40px",
13192
+ maxWidth: "50px",
13192
13193
  right: 0
13193
13194
  },
13194
13195
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
@@ -32539,7 +32540,7 @@ var Many2ManyTagField = (props) => {
32539
32540
  menu: (base) => ({
32540
32541
  ...base,
32541
32542
  zIndex: 9999,
32542
- width: "auto",
32543
+ width: "100%",
32543
32544
  minWidth: "max-content",
32544
32545
  borderRadius: "10px"
32545
32546
  }),
@@ -33432,7 +33433,7 @@ var Many2ManyField = (props) => {
33432
33433
  /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(CloseIcon, {}) })
33433
33434
  ] }),
33434
33435
  /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33435
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33436
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33436
33437
  Search,
33437
33438
  {
33438
33439
  removeSearchItems,
@@ -33469,7 +33470,7 @@ var Many2ManyField = (props) => {
33469
33470
  /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33470
33471
  PaginationView,
33471
33472
  {
33472
- className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
33473
+ className: "pagination-bar col-span-1 justify-end flex-1",
33473
33474
  currentPage: page,
33474
33475
  totalCount: totalRows ?? 0,
33475
33476
  pageSize: 10,
package/dist/index.mjs CHANGED
@@ -13013,6 +13013,7 @@ var TableHead = (props) => {
13013
13013
  return /* @__PURE__ */ jsx50(
13014
13014
  "th",
13015
13015
  {
13016
+ "data-type-co": col?.field?.type_co,
13016
13017
  "data-rtc-resizable": col?.name,
13017
13018
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
13018
13019
  children: /* @__PURE__ */ jsxs29("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
@@ -13063,7 +13064,7 @@ var TableHead = (props) => {
13063
13064
  "th",
13064
13065
  {
13065
13066
  style: {
13066
- minWidth: "40px",
13067
+ maxWidth: "50px",
13067
13068
  right: 0
13068
13069
  },
13069
13070
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
@@ -32414,7 +32415,7 @@ var Many2ManyTagField = (props) => {
32414
32415
  menu: (base) => ({
32415
32416
  ...base,
32416
32417
  zIndex: 9999,
32417
- width: "auto",
32418
+ width: "100%",
32418
32419
  minWidth: "max-content",
32419
32420
  borderRadius: "10px"
32420
32421
  }),
@@ -33307,7 +33308,7 @@ var Many2ManyField = (props) => {
33307
33308
  /* @__PURE__ */ jsx108("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx108(CloseIcon, {}) })
33308
33309
  ] }),
33309
33310
  /* @__PURE__ */ jsxs73("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33310
- /* @__PURE__ */ jsx108("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx108(
33311
+ /* @__PURE__ */ jsx108("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ jsx108(
33311
33312
  Search,
33312
33313
  {
33313
33314
  removeSearchItems,
@@ -33344,7 +33345,7 @@ var Many2ManyField = (props) => {
33344
33345
  /* @__PURE__ */ jsx108(
33345
33346
  PaginationView,
33346
33347
  {
33347
- className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
33348
+ className: "pagination-bar col-span-1 justify-end flex-1",
33348
33349
  currentPage: page,
33349
33350
  totalCount: totalRows ?? 0,
33350
33351
  pageSize: 10,
package/dist/widgets.js CHANGED
@@ -12380,6 +12380,7 @@ var TableHead = (props) => {
12380
12380
  return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12381
12381
  "th",
12382
12382
  {
12383
+ "data-type-co": col?.field?.type_co,
12383
12384
  "data-rtc-resizable": col?.name,
12384
12385
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12385
12386
  children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
@@ -12430,7 +12431,7 @@ var TableHead = (props) => {
12430
12431
  "th",
12431
12432
  {
12432
12433
  style: {
12433
- minWidth: "40px",
12434
+ maxWidth: "50px",
12434
12435
  right: 0
12435
12436
  },
12436
12437
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
@@ -31792,7 +31793,7 @@ var Many2ManyTagField = (props) => {
31792
31793
  menu: (base) => ({
31793
31794
  ...base,
31794
31795
  zIndex: 9999,
31795
- width: "auto",
31796
+ width: "100%",
31796
31797
  minWidth: "max-content",
31797
31798
  borderRadius: "10px"
31798
31799
  }),
@@ -32685,7 +32686,7 @@ var Many2ManyField = (props) => {
32685
32686
  /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(CloseIcon, {}) })
32686
32687
  ] }),
32687
32688
  /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32688
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
32689
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
32689
32690
  Search,
32690
32691
  {
32691
32692
  removeSearchItems,
@@ -32722,7 +32723,7 @@ var Many2ManyField = (props) => {
32722
32723
  /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
32723
32724
  PaginationView,
32724
32725
  {
32725
- className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
32726
+ className: "pagination-bar col-span-1 justify-end flex-1",
32726
32727
  currentPage: page,
32727
32728
  totalCount: totalRows ?? 0,
32728
32729
  pageSize: 10,
package/dist/widgets.mjs CHANGED
@@ -12318,6 +12318,7 @@ var TableHead = (props) => {
12318
12318
  return /* @__PURE__ */ jsx50(
12319
12319
  "th",
12320
12320
  {
12321
+ "data-type-co": col?.field?.type_co,
12321
12322
  "data-rtc-resizable": col?.name,
12322
12323
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12323
12324
  children: /* @__PURE__ */ jsxs29("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
@@ -12368,7 +12369,7 @@ var TableHead = (props) => {
12368
12369
  "th",
12369
12370
  {
12370
12371
  style: {
12371
- minWidth: "40px",
12372
+ maxWidth: "50px",
12372
12373
  right: 0
12373
12374
  },
12374
12375
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
@@ -31730,7 +31731,7 @@ var Many2ManyTagField = (props) => {
31730
31731
  menu: (base) => ({
31731
31732
  ...base,
31732
31733
  zIndex: 9999,
31733
- width: "auto",
31734
+ width: "100%",
31734
31735
  minWidth: "max-content",
31735
31736
  borderRadius: "10px"
31736
31737
  }),
@@ -32623,7 +32624,7 @@ var Many2ManyField = (props) => {
32623
32624
  /* @__PURE__ */ jsx108("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx108(CloseIcon, {}) })
32624
32625
  ] }),
32625
32626
  /* @__PURE__ */ jsxs73("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32626
- /* @__PURE__ */ jsx108("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx108(
32627
+ /* @__PURE__ */ jsx108("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ jsx108(
32627
32628
  Search,
32628
32629
  {
32629
32630
  removeSearchItems,
@@ -32660,7 +32661,7 @@ var Many2ManyField = (props) => {
32660
32661
  /* @__PURE__ */ jsx108(
32661
32662
  PaginationView,
32662
32663
  {
32663
- className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
32664
+ className: "pagination-bar col-span-1 justify-end flex-1",
32664
32665
  currentPage: page,
32665
32666
  totalCount: totalRows ?? 0,
32666
32667
  pageSize: 10,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",