aq-fe-framework 0.1.36 → 0.1.38
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,7 +1434,7 @@ function AQSelectTableByOpenModal(_a) {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
1436
|
// src/components/Buttons/ButtonPrintPDF/MyButtonPrintPDF.tsx
|
|
1437
|
-
import
|
|
1437
|
+
import { useRef as useRef2 } from "react";
|
|
1438
1438
|
import { Button as Button10 } from "@mantine/core";
|
|
1439
1439
|
import { IconPrinter as IconPrinter2 } from "@tabler/icons-react";
|
|
1440
1440
|
import { useReactToPrint } from "react-to-print";
|
|
@@ -1451,12 +1451,12 @@ function MyButtonPrintPDF(_a) {
|
|
|
1451
1451
|
if (!contentToPrint) return;
|
|
1452
1452
|
handlePrint();
|
|
1453
1453
|
}
|
|
1454
|
-
return /* @__PURE__ */
|
|
1454
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { style: { display: "none" } }, /* @__PURE__ */ React.createElement("div", { ref: printRef }, contentToPrint)), /* @__PURE__ */ React.createElement(
|
|
1455
1455
|
Button10,
|
|
1456
1456
|
__spreadValues({
|
|
1457
1457
|
color: "orange",
|
|
1458
1458
|
onClick: handleClick,
|
|
1459
|
-
leftSection: /* @__PURE__ */
|
|
1459
|
+
leftSection: /* @__PURE__ */ React.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 React3 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__ */ React3.createElement(Tabs, __spreadValues({ defaultValue: tabList[0].label }, rest), /* @__PURE__ */ React3.createElement(Tabs.List, null, tabList.map((item, idx) => {
|
|
6266
|
+
return /* @__PURE__ */ React3.createElement(Tabs.Tab, { key: idx, value: item.label, leftSection: item.icon && /* @__PURE__ */ React3.createElement(item.icon, { style: iconStyle }) }, item.label);
|
|
6267
|
+
})), /* @__PURE__ */ React3.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.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.38",
|
|
22
22
|
"private": false,
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
@@ -108,11 +108,13 @@
|
|
|
108
108
|
"postcss-simple-vars": "^7.0.1",
|
|
109
109
|
"tailwindcss": "^3.4.1",
|
|
110
110
|
"tsup": "^8.4.0",
|
|
111
|
-
"typescript": "^5.8.3"
|
|
111
|
+
"typescript": "^5.8.3",
|
|
112
|
+
"react": "^18.0.0",
|
|
113
|
+
"react-dom": "^18.0.0"
|
|
112
114
|
},
|
|
113
115
|
"peerDependencies": {
|
|
114
|
-
"react": "
|
|
115
|
-
"react-dom": "
|
|
116
|
+
"react": "^18.0.0",
|
|
117
|
+
"react-dom": "^18.0.0"
|
|
116
118
|
},
|
|
117
119
|
"description": "",
|
|
118
120
|
"repository": {
|