@fctc/sme-widget-ui 1.4.1 → 1.4.3

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
@@ -34337,7 +34337,7 @@ var Many2ManyField = (props) => {
34337
34337
  handleAddTagSearch,
34338
34338
  searchBy,
34339
34339
  groupBy,
34340
- showFiltersGroups: true,
34340
+ showFiltersGroups: filterBy && filterBy?.length > 0 || groupBy && groupBy?.length > 0,
34341
34341
  setGroupBy,
34342
34342
  setDomainList: setDomain,
34343
34343
  setPage: (pages) => {
@@ -34399,7 +34399,7 @@ var Many2ManyField = (props) => {
34399
34399
  handleCheckBoxAll
34400
34400
  }
34401
34401
  ),
34402
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
34402
+ rows?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
34403
34403
  TableBody,
34404
34404
  {
34405
34405
  tableGroupController,
@@ -34439,7 +34439,20 @@ var Many2ManyField = (props) => {
34439
34439
  checkedAll,
34440
34440
  context
34441
34441
  }
34442
- )
34442
+ ) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
34443
+ "td",
34444
+ {
34445
+ className: "w-full",
34446
+ colSpan: columns?.length + 2,
34447
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
34448
+ "div",
34449
+ {
34450
+ className: `flex flex-col items-center justify-center gap-3 py-6`,
34451
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(EmptyTable, {})
34452
+ }
34453
+ )
34454
+ }
34455
+ ) })
34443
34456
  ]
34444
34457
  }
34445
34458
  ) })
package/dist/index.mjs CHANGED
@@ -34218,7 +34218,7 @@ var Many2ManyField = (props) => {
34218
34218
  handleAddTagSearch,
34219
34219
  searchBy,
34220
34220
  groupBy,
34221
- showFiltersGroups: true,
34221
+ showFiltersGroups: filterBy && filterBy?.length > 0 || groupBy && groupBy?.length > 0,
34222
34222
  setGroupBy,
34223
34223
  setDomainList: setDomain,
34224
34224
  setPage: (pages) => {
@@ -34280,7 +34280,7 @@ var Many2ManyField = (props) => {
34280
34280
  handleCheckBoxAll
34281
34281
  }
34282
34282
  ),
34283
- /* @__PURE__ */ jsx103(
34283
+ rows?.length > 0 ? /* @__PURE__ */ jsx103(
34284
34284
  TableBody,
34285
34285
  {
34286
34286
  tableGroupController,
@@ -34320,7 +34320,20 @@ var Many2ManyField = (props) => {
34320
34320
  checkedAll,
34321
34321
  context
34322
34322
  }
34323
- )
34323
+ ) : /* @__PURE__ */ jsx103("tr", { children: /* @__PURE__ */ jsx103(
34324
+ "td",
34325
+ {
34326
+ className: "w-full",
34327
+ colSpan: columns?.length + 2,
34328
+ children: /* @__PURE__ */ jsx103(
34329
+ "div",
34330
+ {
34331
+ className: `flex flex-col items-center justify-center gap-3 py-6`,
34332
+ children: /* @__PURE__ */ jsx103(EmptyTable, {})
34333
+ }
34334
+ )
34335
+ }
34336
+ ) })
34324
34337
  ]
34325
34338
  }
34326
34339
  ) })
package/dist/widgets.js CHANGED
@@ -33963,7 +33963,7 @@ var Many2ManyField = (props) => {
33963
33963
  handleAddTagSearch,
33964
33964
  searchBy,
33965
33965
  groupBy,
33966
- showFiltersGroups: true,
33966
+ showFiltersGroups: filterBy && filterBy?.length > 0 || groupBy && groupBy?.length > 0,
33967
33967
  setGroupBy,
33968
33968
  setDomainList: setDomain,
33969
33969
  setPage: (pages) => {
@@ -34025,7 +34025,7 @@ var Many2ManyField = (props) => {
34025
34025
  handleCheckBoxAll
34026
34026
  }
34027
34027
  ),
34028
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
34028
+ rows?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
34029
34029
  TableBody,
34030
34030
  {
34031
34031
  tableGroupController,
@@ -34065,7 +34065,20 @@ var Many2ManyField = (props) => {
34065
34065
  checkedAll,
34066
34066
  context
34067
34067
  }
34068
- )
34068
+ ) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
34069
+ "td",
34070
+ {
34071
+ className: "w-full",
34072
+ colSpan: columns?.length + 2,
34073
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
34074
+ "div",
34075
+ {
34076
+ className: `flex flex-col items-center justify-center gap-3 py-6`,
34077
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(EmptyTable, {})
34078
+ }
34079
+ )
34080
+ }
34081
+ ) })
34069
34082
  ]
34070
34083
  }
34071
34084
  ) })
package/dist/widgets.mjs CHANGED
@@ -33900,7 +33900,7 @@ var Many2ManyField = (props) => {
33900
33900
  handleAddTagSearch,
33901
33901
  searchBy,
33902
33902
  groupBy,
33903
- showFiltersGroups: true,
33903
+ showFiltersGroups: filterBy && filterBy?.length > 0 || groupBy && groupBy?.length > 0,
33904
33904
  setGroupBy,
33905
33905
  setDomainList: setDomain,
33906
33906
  setPage: (pages) => {
@@ -33962,7 +33962,7 @@ var Many2ManyField = (props) => {
33962
33962
  handleCheckBoxAll
33963
33963
  }
33964
33964
  ),
33965
- /* @__PURE__ */ jsx103(
33965
+ rows?.length > 0 ? /* @__PURE__ */ jsx103(
33966
33966
  TableBody,
33967
33967
  {
33968
33968
  tableGroupController,
@@ -34002,7 +34002,20 @@ var Many2ManyField = (props) => {
34002
34002
  checkedAll,
34003
34003
  context
34004
34004
  }
34005
- )
34005
+ ) : /* @__PURE__ */ jsx103("tr", { children: /* @__PURE__ */ jsx103(
34006
+ "td",
34007
+ {
34008
+ className: "w-full",
34009
+ colSpan: columns?.length + 2,
34010
+ children: /* @__PURE__ */ jsx103(
34011
+ "div",
34012
+ {
34013
+ className: `flex flex-col items-center justify-center gap-3 py-6`,
34014
+ children: /* @__PURE__ */ jsx103(EmptyTable, {})
34015
+ }
34016
+ )
34017
+ }
34018
+ ) })
34006
34019
  ]
34007
34020
  }
34008
34021
  ) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",