esvn-react-barcode-print 1.0.1 → 1.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
@@ -1779,24 +1779,25 @@ var ModalBarcodePrint = ({
1779
1779
  isOpen,
1780
1780
  toggle,
1781
1781
  className: "modal-dialog-centered modal-fullscreen",
1782
- contentClassName: "p-0",
1782
+ contentClassName: "p-0 d-flex flex-column",
1783
+ style: { height: "100vh", maxHeight: "100vh" },
1783
1784
  children: [
1784
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "modal-header d-flex align-items-center justify-content-between p-1 mb-0 border-bottom bg-white", children: [
1785
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "modal-header d-flex align-items-center justify-content-between p-1 mb-0 border-bottom bg-white flex-shrink-0", children: [
1785
1786
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "d-flex align-items-center", children: [
1786
1787
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon3.Printer, { fontSize: 18, className: "text-primary me-50" }),
1787
1788
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { className: "modal-title m-0 fw-bolder text-dark", children: t(title) })
1788
1789
  ] }),
1789
1790
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "cursor-pointer", onClick: toggle, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon3.X, { fontSize: 20 }) })
1790
1791
  ] }),
1791
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_reactstrap3.ModalBody, { className: "p-1", style: { background: "#f8f9fa" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_reactstrap3.Row, { className: "g-1 h-100", children: [
1792
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_reactstrap3.Col, { lg: 4, md: 12, xs: 12, className: "h-100", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1792
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_reactstrap3.ModalBody, { className: "p-1 flex-grow-1 overflow-hidden", style: { background: "#f8f9fa" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_reactstrap3.Row, { className: "g-1 h-100", children: [
1793
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_reactstrap3.Col, { lg: 4, md: 12, xs: 12, className: "h-100 overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1793
1794
  "div",
1794
1795
  {
1795
1796
  className: "box d-flex flex-column h-100 p-1 border rounded",
1796
1797
  style: { background: "#fff" },
1797
1798
  children: [
1798
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { className: "m-0 fw-bolder mb-1 pb-50 border-bottom", children: t("T\xF9y ch\u1EC9nh in") }),
1799
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1799
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { className: "m-0 fw-bolder mb-1 pb-50 border-bottom flex-shrink-0", children: t("T\xF9y ch\u1EC9nh in") }),
1800
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "flex-grow-1 overflow-auto pe-50", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1800
1801
  SettingPrint,
1801
1802
  {
1802
1803
  control,
@@ -1806,18 +1807,18 @@ var ModalBarcodePrint = ({
1806
1807
  availableExtraFields,
1807
1808
  t
1808
1809
  }
1809
- )
1810
+ ) })
1810
1811
  ]
1811
1812
  }
1812
1813
  ) }),
1813
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_reactstrap3.Col, { lg: 8, md: 12, xs: 12, className: "h-100", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1814
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_reactstrap3.Col, { lg: 8, md: 12, xs: 12, className: "h-100 overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1814
1815
  "div",
1815
1816
  {
1816
1817
  className: "box d-flex flex-column h-100 p-1 border rounded",
1817
1818
  style: { background: "#fff" },
1818
1819
  children: [
1819
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { className: "m-0 fw-bolder mb-1 pb-50 border-bottom", children: t("Danh s\xE1ch c\u1EA7n in m\xE3 v\u1EA1ch") }),
1820
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mt-50 flex-grow-1", children: renderTable ? renderTable({
1820
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { className: "m-0 fw-bolder mb-1 pb-50 border-bottom flex-shrink-0", children: t("Danh s\xE1ch c\u1EA7n in m\xE3 v\u1EA1ch") }),
1821
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mt-50 flex-grow-1 overflow-hidden d-flex flex-column", children: renderTable ? renderTable({
1821
1822
  selectedItems: dataSelected,
1822
1823
  setSelectedItems: setDataSelected
1823
1824
  }) : children })
@@ -1828,7 +1829,7 @@ var ModalBarcodePrint = ({
1828
1829
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1829
1830
  "div",
1830
1831
  {
1831
- className: "d-flex justify-content-end p-1 border-top",
1832
+ className: "d-flex justify-content-end p-1 border-top flex-shrink-0",
1832
1833
  style: { boxShadow: "0 4px 24px 0 rgb(34 41 47 / 10%)", background: "#fff" },
1833
1834
  children: renderFooterButtons()
1834
1835
  }