aq-fe-framework 0.1.35 → 0.1.36
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.
|
@@ -1434,9 +1434,9 @@ function AQSelectTableByOpenModal(_a) {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
1436
|
// src/components/Buttons/ButtonPrintPDF/MyButtonPrintPDF.tsx
|
|
1437
|
+
import React3, { useRef as useRef2 } from "react";
|
|
1437
1438
|
import { Button as Button10 } from "@mantine/core";
|
|
1438
1439
|
import { IconPrinter as IconPrinter2 } from "@tabler/icons-react";
|
|
1439
|
-
import { useRef as useRef2 } from "react";
|
|
1440
1440
|
import { useReactToPrint } from "react-to-print";
|
|
1441
1441
|
function MyButtonPrintPDF(_a) {
|
|
1442
1442
|
var _b = _a, { contentToPrint } = _b, rest = __objRest(_b, ["contentToPrint"]);
|
|
@@ -1451,12 +1451,12 @@ function MyButtonPrintPDF(_a) {
|
|
|
1451
1451
|
if (!contentToPrint) return;
|
|
1452
1452
|
handlePrint();
|
|
1453
1453
|
}
|
|
1454
|
-
return /* @__PURE__ */
|
|
1454
|
+
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement("div", { style: { display: "none" } }, /* @__PURE__ */ React3.createElement("div", { ref: printRef }, contentToPrint)), /* @__PURE__ */ React3.createElement(
|
|
1455
1455
|
Button10,
|
|
1456
1456
|
__spreadValues({
|
|
1457
1457
|
color: "orange",
|
|
1458
1458
|
onClick: handleClick,
|
|
1459
|
-
leftSection: /* @__PURE__ */
|
|
1459
|
+
leftSection: /* @__PURE__ */ React3.createElement(IconPrinter2, null)
|
|
1460
1460
|
}, rest),
|
|
1461
1461
|
"In"
|
|
1462
1462
|
));
|
|
@@ -6258,13 +6258,13 @@ function MyPageContent({ leftTopBar, title, canBack = false, rightTopBar, status
|
|
|
6258
6258
|
|
|
6259
6259
|
// src/components/Layouts/Tab/MyTab.tsx
|
|
6260
6260
|
import { rem, Space as Space3, Tabs } from "@mantine/core";
|
|
6261
|
-
import
|
|
6261
|
+
import React4 from "react";
|
|
6262
6262
|
function MyTab(_a) {
|
|
6263
6263
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
|
6264
6264
|
const iconStyle = { width: rem(20), height: rem(20) };
|
|
6265
|
-
return /* @__PURE__ */
|
|
6266
|
-
return /* @__PURE__ */
|
|
6267
|
-
})), /* @__PURE__ */
|
|
6265
|
+
return /* @__PURE__ */ React4.createElement(Tabs, __spreadValues({ defaultValue: tabList[0].label }, rest), /* @__PURE__ */ React4.createElement(Tabs.List, null, tabList.map((item, idx) => {
|
|
6266
|
+
return /* @__PURE__ */ React4.createElement(Tabs.Tab, { key: idx, value: item.label, leftSection: item.icon && /* @__PURE__ */ React4.createElement(item.icon, { style: iconStyle }) }, item.label);
|
|
6267
|
+
})), /* @__PURE__ */ React4.createElement(Space3, { my: "md" }), children);
|
|
6268
6268
|
}
|
|
6269
6269
|
|
|
6270
6270
|
// src/components/RESTAPIComponents/DataTableSelect/MyDataTableSelect.tsx
|
|
@@ -221,7 +221,7 @@ declare function AQSelectTableByOpenModal<TData extends MRT_RowData>({ setSelect
|
|
|
221
221
|
interface I$5 extends ButtonProps {
|
|
222
222
|
contentToPrint?: ReactNode;
|
|
223
223
|
}
|
|
224
|
-
declare function MyButtonPrintPDF({ contentToPrint, ...rest }: I$5):
|
|
224
|
+
declare function MyButtonPrintPDF({ contentToPrint, ...rest }: I$5): react__default.JSX.Element;
|
|
225
225
|
|
|
226
226
|
interface IMyButtonRouterBack extends ButtonProps {
|
|
227
227
|
url?: string;
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"types": "./dist/modules-features//admin/core/index.d.mts"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
"version": "0.1.
|
|
21
|
+
"version": "0.1.36",
|
|
22
22
|
"private": false,
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
@@ -110,6 +110,10 @@
|
|
|
110
110
|
"tsup": "^8.4.0",
|
|
111
111
|
"typescript": "^5.8.3"
|
|
112
112
|
},
|
|
113
|
+
"peerDependencies": {
|
|
114
|
+
"react": ">=16.8.0",
|
|
115
|
+
"react-dom": ">=16.8.0"
|
|
116
|
+
},
|
|
113
117
|
"description": "",
|
|
114
118
|
"repository": {
|
|
115
119
|
"type": "git",
|