@apexcura/ui-components 0.0.11-Beta250 → 0.0.11-Beta252

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
@@ -619,7 +619,7 @@ var import_antd13 = require("antd");
619
619
  // src/Components/ModelBody.tsx
620
620
  var import_react19 = __toESM(require("react"));
621
621
  var ModelBody = (props) => {
622
- return /* @__PURE__ */ import_react19.default.createElement("div", { className: props.modalContent && props.modalContent.className }, props.modalContent && props.modalContent.fields.map((eachField) => {
622
+ return props.modelContent && /* @__PURE__ */ import_react19.default.createElement("div", { className: props.modalContent.className }, props.modalContent && props.modalContent.fields.map((eachField) => {
623
623
  if (eachField.element === "div") {
624
624
  return /* @__PURE__ */ import_react19.default.createElement("div", { className: eachField.className }, eachField.label);
625
625
  } else if (eachField.element === "input-radio") {
@@ -702,9 +702,14 @@ var TableElement = (props) => {
702
702
  ...row,
703
703
  [columns[0].key]: index + 1
704
704
  }));
705
+ const count = dataSource ? dataSource.length : 0;
705
706
  return /* @__PURE__ */ import_react21.default.createElement(import_react21.default.Fragment, null, /* @__PURE__ */ import_react21.default.createElement(
706
707
  import_antd14.Table,
707
708
  {
709
+ pagination: {
710
+ showTotal: (total) => `Total: ${total} items`,
711
+ total: count
712
+ },
708
713
  dataSource,
709
714
  columns,
710
715
  bordered: true,
package/dist/index.mjs CHANGED
@@ -567,7 +567,7 @@ import { Modal } from "antd";
567
567
  // src/Components/ModelBody.tsx
568
568
  import React18 from "react";
569
569
  var ModelBody = (props) => {
570
- return /* @__PURE__ */ React18.createElement("div", { className: props.modalContent && props.modalContent.className }, props.modalContent && props.modalContent.fields.map((eachField) => {
570
+ return props.modelContent && /* @__PURE__ */ React18.createElement("div", { className: props.modalContent.className }, props.modalContent && props.modalContent.fields.map((eachField) => {
571
571
  if (eachField.element === "div") {
572
572
  return /* @__PURE__ */ React18.createElement("div", { className: eachField.className }, eachField.label);
573
573
  } else if (eachField.element === "input-radio") {
@@ -650,9 +650,14 @@ var TableElement = (props) => {
650
650
  ...row,
651
651
  [columns[0].key]: index + 1
652
652
  }));
653
+ const count = dataSource ? dataSource.length : 0;
653
654
  return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
654
655
  Table2,
655
656
  {
657
+ pagination: {
658
+ showTotal: (total) => `Total: ${total} items`,
659
+ total: count
660
+ },
656
661
  dataSource,
657
662
  columns,
658
663
  bordered: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta250",
3
+ "version": "0.0.11-Beta252",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",