aq-fe-framework 0.1.1091 → 0.1.1092
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/{MyDataTable-DX9ChspA.d.mts → MyDataTable-D02NxkDu.d.mts} +1 -1
- package/dist/{chunk-UXIDRZFG.mjs → chunk-MLEQOYHO.mjs} +71 -64
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/core/index.d.mts +1 -1
- package/dist/core/index.mjs +2 -2
- package/dist/modules-features/index.mjs +2 -2
- package/dist/shared/index.mjs +2 -2
- package/dist/utils-v2/index.d.mts +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { MRT_RowData, MRT_TableOptions, MRT_ColumnDef } from 'mantine-react-tabl
|
|
|
5
5
|
interface MyDataTableInternalProps<TData extends MRT_RowData> extends Omit<MyDataTableProps<TData>, "columns" | "data"> {
|
|
6
6
|
}
|
|
7
7
|
interface MyColumnDef<TData extends MRT_RowData> extends MRT_ColumnDef<TData> {
|
|
8
|
-
type?: 'currency' | "currencyWithSuffix" | 'ddMMyyyy' | 'MMyyyy' | 'squareCheck' | "list" | "gender" | "roundedTo2" | "round" | "viewFile";
|
|
8
|
+
type?: 'currency' | "currencyWithSuffix" | 'ddMMyyyy' | 'MMyyyy' | 'squareCheck' | "list" | "gender" | "roundedTo2" | "round" | "viewFile" | "html";
|
|
9
9
|
}
|
|
10
10
|
interface PaginationState {
|
|
11
11
|
pageIndex: number;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createGenericStore as createGenericStore2,
|
|
3
|
-
useAppStore,
|
|
4
|
-
useStore_Permission,
|
|
5
|
-
useStore_ProjectInfo
|
|
6
|
-
} from "./chunk-WW55EZ4B.mjs";
|
|
7
1
|
import {
|
|
8
2
|
utils_aq_mapBaseEntityToDomain,
|
|
9
3
|
utils_aq_mapDomainToEntity,
|
|
@@ -18,6 +12,12 @@ import {
|
|
|
18
12
|
utils_notification_show,
|
|
19
13
|
utils_pdf_download
|
|
20
14
|
} from "./chunk-KGBXMHKR.mjs";
|
|
15
|
+
import {
|
|
16
|
+
createGenericStore as createGenericStore2,
|
|
17
|
+
useAppStore,
|
|
18
|
+
useStore_Permission,
|
|
19
|
+
useStore_ProjectInfo
|
|
20
|
+
} from "./chunk-WW55EZ4B.mjs";
|
|
21
21
|
import {
|
|
22
22
|
utils_currency,
|
|
23
23
|
utils_date,
|
|
@@ -2142,6 +2142,28 @@ function MyCenterFull({ children }) {
|
|
|
2142
2142
|
return /* @__PURE__ */ jsx34(Center3, { w: "100%", children: /* @__PURE__ */ jsx34(Group8, { children }) });
|
|
2143
2143
|
}
|
|
2144
2144
|
|
|
2145
|
+
// src/components/Layouts/HtmlWrapper/MyHtmlWrapper.tsx
|
|
2146
|
+
import { Typography } from "@mantine/core";
|
|
2147
|
+
import pako from "pako";
|
|
2148
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2149
|
+
function MyHtmlWrapper(_a) {
|
|
2150
|
+
var _b = _a, { html, mah, zip = false } = _b, rest = __objRest(_b, ["html", "mah", "zip"]);
|
|
2151
|
+
const extractHtmlFromZip = () => {
|
|
2152
|
+
const binaryString = Buffer.from(html, "base64");
|
|
2153
|
+
const decompressedData = pako.inflate(binaryString, { to: "string" });
|
|
2154
|
+
const cleanedHtml = decompressedData == null ? void 0 : decompressedData.replaceAll(" font-family:'Times New Roman'; font-size:1em;", "");
|
|
2155
|
+
return cleanedHtml.replaceAll(" font-family:'Times New Roman'; font-size:1em;", "");
|
|
2156
|
+
};
|
|
2157
|
+
return /* @__PURE__ */ jsx35(Typography, { children: /* @__PURE__ */ jsx35(
|
|
2158
|
+
"div",
|
|
2159
|
+
{
|
|
2160
|
+
dangerouslySetInnerHTML: {
|
|
2161
|
+
__html: zip ? extractHtmlFromZip() : html
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
) });
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2145
2167
|
// src/components/DataDisplay/DataTable/MyDataTable.tsx
|
|
2146
2168
|
import { Alert, Center as Center4, Group as Group9, List, Portal, Text as Text6 } from "@mantine/core";
|
|
2147
2169
|
import { IconBug } from "@tabler/icons-react";
|
|
@@ -2151,7 +2173,7 @@ import {
|
|
|
2151
2173
|
} from "mantine-react-table";
|
|
2152
2174
|
import { MRT_Localization_VI } from "mantine-react-table/locales/vi/index.cjs";
|
|
2153
2175
|
import { useEffect as useEffect6, useMemo as useMemo3 } from "react";
|
|
2154
|
-
import { jsx as
|
|
2176
|
+
import { jsx as jsx36, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2155
2177
|
function MyDataTable(_a) {
|
|
2156
2178
|
var _b = _a, {
|
|
2157
2179
|
rowActionSize,
|
|
@@ -2218,7 +2240,7 @@ function MyDataTable(_a) {
|
|
|
2218
2240
|
case "squareCheck":
|
|
2219
2241
|
col.Cell = ({ cell }) => {
|
|
2220
2242
|
const value = cell.getValue();
|
|
2221
|
-
return /* @__PURE__ */
|
|
2243
|
+
return /* @__PURE__ */ jsx36(MyCenterFull, { children: /* @__PURE__ */ jsx36(CustomThemeIconSquareCheck, { checked: value }) });
|
|
2222
2244
|
};
|
|
2223
2245
|
col.size = 100;
|
|
2224
2246
|
break;
|
|
@@ -2233,7 +2255,7 @@ function MyDataTable(_a) {
|
|
|
2233
2255
|
col.Cell = ({ cell }) => {
|
|
2234
2256
|
const value = cell.getValue();
|
|
2235
2257
|
if (value.length == 0) return;
|
|
2236
|
-
return /* @__PURE__ */
|
|
2258
|
+
return /* @__PURE__ */ jsx36(List, { children: value.map((item, idx) => /* @__PURE__ */ jsx36(List.Item, { children: item }, idx)) });
|
|
2237
2259
|
};
|
|
2238
2260
|
col.size = 300;
|
|
2239
2261
|
break;
|
|
@@ -2254,14 +2276,21 @@ function MyDataTable(_a) {
|
|
|
2254
2276
|
case "viewFile":
|
|
2255
2277
|
col.Cell = ({ cell }) => {
|
|
2256
2278
|
const value = cell.getValue();
|
|
2257
|
-
return /* @__PURE__ */
|
|
2279
|
+
return /* @__PURE__ */ jsx36(MyButtonViewFileAPI, { filePath: value });
|
|
2280
|
+
};
|
|
2281
|
+
col.size = 80;
|
|
2282
|
+
break;
|
|
2283
|
+
case "html":
|
|
2284
|
+
col.Cell = ({ cell }) => {
|
|
2285
|
+
const value = cell.getValue();
|
|
2286
|
+
return /* @__PURE__ */ jsx36(MyHtmlWrapper, { html: value });
|
|
2258
2287
|
};
|
|
2259
2288
|
col.size = 80;
|
|
2260
2289
|
break;
|
|
2261
2290
|
default:
|
|
2262
2291
|
col.Cell = ({ cell }) => {
|
|
2263
2292
|
var _a3;
|
|
2264
|
-
return /* @__PURE__ */
|
|
2293
|
+
return /* @__PURE__ */ jsx36("span", { children: (_a3 = cell.getValue()) != null ? _a3 : "" });
|
|
2265
2294
|
};
|
|
2266
2295
|
}
|
|
2267
2296
|
return col;
|
|
@@ -2295,7 +2324,7 @@ function MyDataTable(_a) {
|
|
|
2295
2324
|
positionActionsColumn: "last",
|
|
2296
2325
|
enableColumnResizing: true,
|
|
2297
2326
|
renderTopToolbarCustomActions: ({ table: table2 }) => {
|
|
2298
|
-
return /* @__PURE__ */
|
|
2327
|
+
return /* @__PURE__ */ jsx36(Group9, { children: renderTopToolbarCustomActions == null ? void 0 : renderTopToolbarCustomActions({ table: table2 }) });
|
|
2299
2328
|
},
|
|
2300
2329
|
layoutMode: "semantic",
|
|
2301
2330
|
displayColumnDefOptions: {
|
|
@@ -2323,9 +2352,9 @@ function MyDataTable(_a) {
|
|
|
2323
2352
|
}
|
|
2324
2353
|
},
|
|
2325
2354
|
localization: MRT_Localization_VI,
|
|
2326
|
-
renderEmptyRowsFallback: () => isError ? /* @__PURE__ */
|
|
2355
|
+
renderEmptyRowsFallback: () => isError ? /* @__PURE__ */ jsx36(Alert, { icon: /* @__PURE__ */ jsx36(IconBug, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" }) : /* @__PURE__ */ jsxs18(Center4, { p: "md", children: [
|
|
2327
2356
|
" ",
|
|
2328
|
-
/* @__PURE__ */
|
|
2357
|
+
/* @__PURE__ */ jsx36(Text6, { c: "gray", fw: "600", size: "15px", fs: "italic", children: "Kh\xF4ng c\xF3 d\u1EEF li\u1EC7u!" })
|
|
2329
2358
|
] }),
|
|
2330
2359
|
mantineTableContainerProps: { style: { maxHeight: "65vh" } },
|
|
2331
2360
|
enableStickyHeader: true
|
|
@@ -2355,13 +2384,13 @@ function MyDataTable(_a) {
|
|
|
2355
2384
|
useEffect6(() => {
|
|
2356
2385
|
setSelectedRow && setSelectedRow(table.getSelectedRowModel().rows.map((row) => row.original));
|
|
2357
2386
|
}, [table.getState().rowSelection]);
|
|
2358
|
-
return /* @__PURE__ */
|
|
2387
|
+
return /* @__PURE__ */ jsx36("main", { style: { position: "relative", zIndex: 1 }, children: table.getState().isFullScreen ? /* @__PURE__ */ jsx36(Portal, { children: /* @__PURE__ */ jsx36(MantineReactTable, { table }) }) : /* @__PURE__ */ jsx36(MantineReactTable, { table }) });
|
|
2359
2388
|
}
|
|
2360
2389
|
|
|
2361
2390
|
// src/components/Button/ButtonImport/SelectFileModal.tsx
|
|
2362
2391
|
import { Button as Button8, Fieldset as Fieldset2, FileInput as FileInput2, Modal as Modal8, NumberInput, Select as Select2, SimpleGrid as SimpleGrid2 } from "@mantine/core";
|
|
2363
2392
|
import { IconArrowBigRight as IconArrowBigRight2, IconSquareRoundedX as IconSquareRoundedX2 } from "@tabler/icons-react";
|
|
2364
|
-
import { jsx as
|
|
2393
|
+
import { jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2365
2394
|
function SelectFileModal({ onExportStructure, stack }) {
|
|
2366
2395
|
var _a;
|
|
2367
2396
|
const store = useS_ButtonImport();
|
|
@@ -2372,7 +2401,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2372
2401
|
fullScreen: true
|
|
2373
2402
|
}, stack.register("select-file-page")), {
|
|
2374
2403
|
children: [
|
|
2375
|
-
/* @__PURE__ */
|
|
2404
|
+
/* @__PURE__ */ jsx37(
|
|
2376
2405
|
FileInput2,
|
|
2377
2406
|
{
|
|
2378
2407
|
value: store.state.file,
|
|
@@ -2383,7 +2412,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2383
2412
|
}
|
|
2384
2413
|
),
|
|
2385
2414
|
/* @__PURE__ */ jsxs19(SimpleGrid2, { cols: { base: 1, md: 2, lg: 2, xl: 4 }, children: [
|
|
2386
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ jsx37(
|
|
2387
2416
|
NumberInput,
|
|
2388
2417
|
{
|
|
2389
2418
|
label: "D\xF2ng ti\xEAu \u0111\u1EC1 b\u1EAFt \u0111\u1EA7u t\u1EEB",
|
|
@@ -2391,7 +2420,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2391
2420
|
onChange: (e4) => store.setProperty("startTitleIndex", e4)
|
|
2392
2421
|
}
|
|
2393
2422
|
),
|
|
2394
|
-
/* @__PURE__ */
|
|
2423
|
+
/* @__PURE__ */ jsx37(
|
|
2395
2424
|
NumberInput,
|
|
2396
2425
|
{
|
|
2397
2426
|
label: "D\xF2ng d\u1EEF li\u1EC7u b\u1EAFt \u0111\u1EA7u t\u1EEB",
|
|
@@ -2399,7 +2428,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2399
2428
|
onChange: (e4) => store.setProperty("startDataIndex", e4)
|
|
2400
2429
|
}
|
|
2401
2430
|
),
|
|
2402
|
-
/* @__PURE__ */
|
|
2431
|
+
/* @__PURE__ */ jsx37(
|
|
2403
2432
|
Select2,
|
|
2404
2433
|
{
|
|
2405
2434
|
readOnly: true,
|
|
@@ -2408,7 +2437,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2408
2437
|
defaultValue: "100.000"
|
|
2409
2438
|
}
|
|
2410
2439
|
),
|
|
2411
|
-
/* @__PURE__ */
|
|
2440
|
+
/* @__PURE__ */ jsx37(
|
|
2412
2441
|
Select2,
|
|
2413
2442
|
{
|
|
2414
2443
|
readOnly: true,
|
|
@@ -2418,7 +2447,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2418
2447
|
}
|
|
2419
2448
|
)
|
|
2420
2449
|
] }),
|
|
2421
|
-
/* @__PURE__ */
|
|
2450
|
+
/* @__PURE__ */ jsx37(Fieldset2, { legend: "Danh s\xE1ch tr\u01B0\u1EDDng th\xF4ng tin trong file d\u1EEF li\u1EC7u", children: store.state.data && /* @__PURE__ */ jsx37(
|
|
2422
2451
|
MyDataTable,
|
|
2423
2452
|
{
|
|
2424
2453
|
columns: store.columns,
|
|
@@ -2426,7 +2455,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2426
2455
|
}
|
|
2427
2456
|
) }),
|
|
2428
2457
|
/* @__PURE__ */ jsxs19(MyFlexEnd, { children: [
|
|
2429
|
-
/* @__PURE__ */
|
|
2458
|
+
/* @__PURE__ */ jsx37(
|
|
2430
2459
|
Button8,
|
|
2431
2460
|
{
|
|
2432
2461
|
color: "teal.8",
|
|
@@ -2434,21 +2463,21 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2434
2463
|
children: "Xu\u1EA5t file c\u1EA5u tr\xFAc"
|
|
2435
2464
|
}
|
|
2436
2465
|
),
|
|
2437
|
-
/* @__PURE__ */
|
|
2466
|
+
/* @__PURE__ */ jsx37(
|
|
2438
2467
|
Button8,
|
|
2439
2468
|
{
|
|
2440
2469
|
disabled: ((_a = store.state.data) == null ? void 0 : _a.length) == 0,
|
|
2441
2470
|
color: "blue.8",
|
|
2442
|
-
leftSection: /* @__PURE__ */
|
|
2471
|
+
leftSection: /* @__PURE__ */ jsx37(IconArrowBigRight2, {}),
|
|
2443
2472
|
onClick: () => stack.open("select-field-page"),
|
|
2444
2473
|
children: "Ti\u1EBFp t\u1EE5c"
|
|
2445
2474
|
}
|
|
2446
2475
|
),
|
|
2447
|
-
/* @__PURE__ */
|
|
2476
|
+
/* @__PURE__ */ jsx37(
|
|
2448
2477
|
Button8,
|
|
2449
2478
|
{
|
|
2450
2479
|
color: "red.6",
|
|
2451
|
-
leftSection: /* @__PURE__ */
|
|
2480
|
+
leftSection: /* @__PURE__ */ jsx37(IconSquareRoundedX2, {}),
|
|
2452
2481
|
onClick: stack.closeAll,
|
|
2453
2482
|
children: "\u0110\xF3ng"
|
|
2454
2483
|
}
|
|
@@ -2460,7 +2489,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
|
2460
2489
|
}
|
|
2461
2490
|
|
|
2462
2491
|
// src/components/Button/ButtonImport/MyButtonImport.tsx
|
|
2463
|
-
import { Fragment as Fragment10, jsx as
|
|
2492
|
+
import { Fragment as Fragment10, jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2464
2493
|
function MyButtonImport({
|
|
2465
2494
|
onExportStructure,
|
|
2466
2495
|
onImport
|
|
@@ -2468,10 +2497,10 @@ function MyButtonImport({
|
|
|
2468
2497
|
const stack = useModalsStack3(["select-file-page", "select-field-page", "implement-page"]);
|
|
2469
2498
|
const store = useS_ButtonImport();
|
|
2470
2499
|
return /* @__PURE__ */ jsxs20(Fragment10, { children: [
|
|
2471
|
-
/* @__PURE__ */
|
|
2500
|
+
/* @__PURE__ */ jsx38(Button9, { color: "teal.8", onClick: () => stack.open("select-file-page"), leftSection: /* @__PURE__ */ jsx38(IconFileImport3, {}), title: "Import", children: "Import" }),
|
|
2472
2501
|
/* @__PURE__ */ jsxs20(Modal9.Stack, { children: [
|
|
2473
|
-
/* @__PURE__ */
|
|
2474
|
-
/* @__PURE__ */
|
|
2502
|
+
/* @__PURE__ */ jsx38(SelectFileModal, { stack, onExportStructure }),
|
|
2503
|
+
/* @__PURE__ */ jsx38(SelectFieldModal, { stack, onImport: () => onImport(store.getDataFinal()) })
|
|
2475
2504
|
] })
|
|
2476
2505
|
] });
|
|
2477
2506
|
}
|
|
@@ -2479,7 +2508,7 @@ function MyButtonImport({
|
|
|
2479
2508
|
// src/components/Button/ButtonModal/AQSelectTableByOpenModal.tsx
|
|
2480
2509
|
import { Button as Button10, Fieldset as Fieldset3, Modal as Modal10 } from "@mantine/core";
|
|
2481
2510
|
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
|
2482
|
-
import { Fragment as Fragment11, jsx as
|
|
2511
|
+
import { Fragment as Fragment11, jsx as jsx39, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2483
2512
|
function AQSelectTableByOpenModal(_a) {
|
|
2484
2513
|
var _b = _a, {
|
|
2485
2514
|
setSelectedData,
|
|
@@ -2508,7 +2537,7 @@ function AQSelectTableByOpenModal(_a) {
|
|
|
2508
2537
|
]);
|
|
2509
2538
|
const disclosure = useDisclosure11(false);
|
|
2510
2539
|
return /* @__PURE__ */ jsxs21(Fragment11, { children: [
|
|
2511
|
-
/* @__PURE__ */
|
|
2540
|
+
/* @__PURE__ */ jsx39(
|
|
2512
2541
|
Button10,
|
|
2513
2542
|
__spreadProps(__spreadValues({
|
|
2514
2543
|
onClick: disclosure[1].open
|
|
@@ -2516,7 +2545,7 @@ function AQSelectTableByOpenModal(_a) {
|
|
|
2516
2545
|
children: label ? label : `Ch\u1ECDn t\u1EEB danh s\xE1ch`
|
|
2517
2546
|
})
|
|
2518
2547
|
),
|
|
2519
|
-
/* @__PURE__ */
|
|
2548
|
+
/* @__PURE__ */ jsx39(
|
|
2520
2549
|
Modal10,
|
|
2521
2550
|
{
|
|
2522
2551
|
fullScreen,
|
|
@@ -2524,11 +2553,11 @@ function AQSelectTableByOpenModal(_a) {
|
|
|
2524
2553
|
title,
|
|
2525
2554
|
opened: disclosure == null ? void 0 : disclosure[0],
|
|
2526
2555
|
onClose: disclosure[1].close,
|
|
2527
|
-
children: /* @__PURE__ */
|
|
2556
|
+
children: /* @__PURE__ */ jsx39(MyFlexColumn, { children: /* @__PURE__ */ jsx39(Fieldset3, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: /* @__PURE__ */ jsx39(
|
|
2528
2557
|
MyDataTable,
|
|
2529
2558
|
__spreadValues({
|
|
2530
2559
|
renderTopToolbarCustomActions: ({ table }) => {
|
|
2531
|
-
return /* @__PURE__ */
|
|
2560
|
+
return /* @__PURE__ */ jsx39(Button10, { onClick: () => {
|
|
2532
2561
|
setSelectedData(table.getSelectedRowModel().rows.map((row) => row.original));
|
|
2533
2562
|
closeAfterSelect && disclosure[1].close();
|
|
2534
2563
|
}, children: "Ch\u1ECDn" });
|
|
@@ -2548,7 +2577,7 @@ import { Button as Button11 } from "@mantine/core";
|
|
|
2548
2577
|
import { IconPrinter as IconPrinter5 } from "@tabler/icons-react";
|
|
2549
2578
|
import { useRef as useRef3 } from "react";
|
|
2550
2579
|
import { useReactToPrint as useReactToPrint2 } from "react-to-print";
|
|
2551
|
-
import { Fragment as Fragment12, jsx as
|
|
2580
|
+
import { Fragment as Fragment12, jsx as jsx40, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2552
2581
|
function MyButtonPrintPDF2(_a) {
|
|
2553
2582
|
var _b = _a, { contentToPrint, children, autoPadding = true } = _b, rest = __objRest(_b, ["contentToPrint", "children", "autoPadding"]);
|
|
2554
2583
|
const printRef = useRef3(null);
|
|
@@ -2563,39 +2592,17 @@ function MyButtonPrintPDF2(_a) {
|
|
|
2563
2592
|
handlePrint();
|
|
2564
2593
|
}
|
|
2565
2594
|
return /* @__PURE__ */ jsxs22(Fragment12, { children: [
|
|
2566
|
-
/* @__PURE__ */
|
|
2567
|
-
/* @__PURE__ */
|
|
2595
|
+
/* @__PURE__ */ jsx40("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx40("div", { ref: printRef, style: { padding: autoPadding ? "2cm 2cm 2cm 3cm" : void 0, fontFamily: '"Times New Roman", Times, serif' }, children: contentToPrint }) }),
|
|
2596
|
+
/* @__PURE__ */ jsx40(Button11, __spreadProps(__spreadValues({ color: "orange", onClick: handleClick, leftSection: /* @__PURE__ */ jsx40(IconPrinter5, {}) }, rest), { children }))
|
|
2568
2597
|
] });
|
|
2569
2598
|
}
|
|
2570
2599
|
|
|
2571
2600
|
// src/components/Checkbox/MyCheckbox.tsx
|
|
2572
2601
|
import { Checkbox } from "@mantine/core";
|
|
2573
|
-
import { jsx as
|
|
2602
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2574
2603
|
function MyCheckbox(_a) {
|
|
2575
2604
|
var rest = __objRest(_a, []);
|
|
2576
|
-
return /* @__PURE__ */
|
|
2577
|
-
}
|
|
2578
|
-
|
|
2579
|
-
// src/components/Layouts/HtmlWrapper/MyHtmlWrapper.tsx
|
|
2580
|
-
import { Typography } from "@mantine/core";
|
|
2581
|
-
import pako from "pako";
|
|
2582
|
-
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2583
|
-
function MyHtmlWrapper(_a) {
|
|
2584
|
-
var _b = _a, { html, mah, zip = false } = _b, rest = __objRest(_b, ["html", "mah", "zip"]);
|
|
2585
|
-
const extractHtmlFromZip = () => {
|
|
2586
|
-
const binaryString = Buffer.from(html, "base64");
|
|
2587
|
-
const decompressedData = pako.inflate(binaryString, { to: "string" });
|
|
2588
|
-
const cleanedHtml = decompressedData == null ? void 0 : decompressedData.replaceAll(" font-family:'Times New Roman'; font-size:1em;", "");
|
|
2589
|
-
return cleanedHtml.replaceAll(" font-family:'Times New Roman'; font-size:1em;", "");
|
|
2590
|
-
};
|
|
2591
|
-
return /* @__PURE__ */ jsx41(Typography, { children: /* @__PURE__ */ jsx41(
|
|
2592
|
-
"div",
|
|
2593
|
-
{
|
|
2594
|
-
dangerouslySetInnerHTML: {
|
|
2595
|
-
__html: zip ? extractHtmlFromZip() : html
|
|
2596
|
-
}
|
|
2597
|
-
}
|
|
2598
|
-
) });
|
|
2605
|
+
return /* @__PURE__ */ jsx41(Checkbox, __spreadValues({}, rest));
|
|
2599
2606
|
}
|
|
2600
2607
|
|
|
2601
2608
|
// src/components/Button/ButtonPrintPDFTable/MyButtonPrintTablePDF.tsx
|
|
@@ -18792,6 +18799,7 @@ export {
|
|
|
18792
18799
|
MyButtonCreateUpdate,
|
|
18793
18800
|
CustomThemeIconSquareCheck,
|
|
18794
18801
|
MyCenterFull,
|
|
18802
|
+
MyHtmlWrapper,
|
|
18795
18803
|
MyDataTable,
|
|
18796
18804
|
MyDataTableSelectOne,
|
|
18797
18805
|
MyDataTableStagedChanges,
|
|
@@ -18832,7 +18840,6 @@ export {
|
|
|
18832
18840
|
AQSelectTableByOpenModal,
|
|
18833
18841
|
MyButtonPrintPDF2,
|
|
18834
18842
|
MyCheckbox,
|
|
18835
|
-
MyHtmlWrapper,
|
|
18836
18843
|
MyButtonPrintTablePDF,
|
|
18837
18844
|
MyButtonRouterBack,
|
|
18838
18845
|
MyButtonViewPDF,
|
|
@@ -11,7 +11,7 @@ import { I as I_BasicAppShell_LinkItem, B as BasicAppShellProps } from '../types
|
|
|
11
11
|
export { g as MyButtonDeleteList, c as MyButtonDeleteListProps } from '../MyButtonDeleteList-BcW55zHU.mjs';
|
|
12
12
|
import { I as IExcelColumnConfig } from '../utils_excel-CuudSzBR.mjs';
|
|
13
13
|
import { MRT_ColumnDef, MRT_RowData, MRT_TableOptions, MRT_TableInstance } from 'mantine-react-table';
|
|
14
|
-
export { M as MyColumnDef, c as MyDataTable, b as MyDataTableInternalProps, a as MyDataTableProps, P as PaginationState } from '../MyDataTable-
|
|
14
|
+
export { M as MyColumnDef, c as MyDataTable, b as MyDataTableInternalProps, a as MyDataTableProps, P as PaginationState } from '../MyDataTable-D02NxkDu.mjs';
|
|
15
15
|
import { DateInputProps } from '@mantine/dates';
|
|
16
16
|
import { RichTextEditorProps } from '@mantine/tiptap';
|
|
17
17
|
import { EditorOptions } from '@tiptap/react';
|
|
@@ -69,9 +69,9 @@ import {
|
|
|
69
69
|
useHeaderMegaMenuStore,
|
|
70
70
|
useS_ButtonImport,
|
|
71
71
|
useStore_BasicAppShell
|
|
72
|
-
} from "../chunk-
|
|
73
|
-
import "../chunk-WW55EZ4B.mjs";
|
|
72
|
+
} from "../chunk-MLEQOYHO.mjs";
|
|
74
73
|
import "../chunk-KGBXMHKR.mjs";
|
|
74
|
+
import "../chunk-WW55EZ4B.mjs";
|
|
75
75
|
import "../chunk-7ZI7IOEP.mjs";
|
|
76
76
|
import "../chunk-NYAWQRB7.mjs";
|
|
77
77
|
import "../chunk-BTITP4TN.mjs";
|
package/dist/core/index.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ import { M as MyApiResponse, a as MyReactMutationProps } from '../useMyReactMuta
|
|
|
11
11
|
import { AxiosResponse } from 'axios';
|
|
12
12
|
import { UseQueryResult, QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
|
13
13
|
import { MRT_RowData, MRT_ColumnDef, MRT_TableInstance } from 'mantine-react-table';
|
|
14
|
-
import { a as MyDataTableProps } from '../MyDataTable-
|
|
14
|
+
import { a as MyDataTableProps } from '../MyDataTable-D02NxkDu.mjs';
|
|
15
15
|
import { TablerIcon } from '@tabler/icons-react';
|
|
16
16
|
import { RichTextEditorProps, RichTextEditorToolbarProps, RichTextEditorContentProps } from '@mantine/tiptap';
|
|
17
17
|
import { UseEditorOptions } from '@tiptap/react';
|
package/dist/core/index.mjs
CHANGED
|
@@ -34,9 +34,9 @@ import {
|
|
|
34
34
|
MyStatsCard,
|
|
35
35
|
MyTextInput2 as MyTextInput,
|
|
36
36
|
MyWeeklySessionSchedulerPicker
|
|
37
|
-
} from "../chunk-
|
|
38
|
-
import "../chunk-WW55EZ4B.mjs";
|
|
37
|
+
} from "../chunk-MLEQOYHO.mjs";
|
|
39
38
|
import "../chunk-KGBXMHKR.mjs";
|
|
39
|
+
import "../chunk-WW55EZ4B.mjs";
|
|
40
40
|
import "../chunk-7ZI7IOEP.mjs";
|
|
41
41
|
import "../chunk-NYAWQRB7.mjs";
|
|
42
42
|
import "../chunk-BTITP4TN.mjs";
|
|
@@ -97,9 +97,9 @@ import {
|
|
|
97
97
|
MailTemplateDeleteButton,
|
|
98
98
|
useS_moduleConfig,
|
|
99
99
|
useStore_Authenticate
|
|
100
|
-
} from "../chunk-
|
|
101
|
-
import "../chunk-WW55EZ4B.mjs";
|
|
100
|
+
} from "../chunk-MLEQOYHO.mjs";
|
|
102
101
|
import "../chunk-KGBXMHKR.mjs";
|
|
102
|
+
import "../chunk-WW55EZ4B.mjs";
|
|
103
103
|
import "../chunk-7ZI7IOEP.mjs";
|
|
104
104
|
import "../chunk-NYAWQRB7.mjs";
|
|
105
105
|
import "../chunk-BTITP4TN.mjs";
|
package/dist/shared/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComboboxData } from '@mantine/core';
|
|
2
2
|
export { I as IExcelColumnConfig, n as normalizeDate, u as utils_excel } from '../utils_excel-CuudSzBR.mjs';
|
|
3
3
|
import { MRT_RowData } from 'mantine-react-table';
|
|
4
|
-
import { M as MyColumnDef } from '../MyDataTable-
|
|
4
|
+
import { M as MyColumnDef } from '../MyDataTable-D02NxkDu.mjs';
|
|
5
5
|
import 'exceljs';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
7
|
import '@tanstack/react-table';
|