aq-fe-framework 0.1.339 → 0.1.341
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.
@@ -188,10 +188,10 @@ function MyButton(_a) {
|
|
188
188
|
}
|
189
189
|
|
190
190
|
// src/core/button/MyButtonCreateUpdate.tsx
|
191
|
+
import { ActionIcon as ActionIcon2, Button as Button3, Modal, ScrollArea, Space } from "@mantine/core";
|
191
192
|
import { useDisclosure } from "@mantine/hooks";
|
192
|
-
import { useQueryClient } from "@tanstack/react-query";
|
193
|
-
import { ActionIcon as ActionIcon2, Button as Button3, Modal } from "@mantine/core";
|
194
193
|
import { IconEdit as IconEdit3, IconPlus as IconPlus3 } from "@tabler/icons-react";
|
194
|
+
import { useQueryClient } from "@tanstack/react-query";
|
195
195
|
import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
|
196
196
|
function MyButtonCreateUpdate({
|
197
197
|
modalProps,
|
@@ -271,12 +271,19 @@ function MyButtonCreateUpdate({
|
|
271
271
|
opened: disclosure[0],
|
272
272
|
onClose: disclosure[1].close
|
273
273
|
}, modalProps), {
|
274
|
-
children: /* @__PURE__ */
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
274
|
+
children: /* @__PURE__ */ jsxs(
|
275
|
+
"form",
|
276
|
+
{
|
277
|
+
onSubmit: form.onSubmit((values) => {
|
278
|
+
mutation.mutate(values);
|
279
|
+
}),
|
280
|
+
children: [
|
281
|
+
/* @__PURE__ */ jsx3(ScrollArea.Autosize, { offsetScrollbars: true, style: { flex: 1 }, mah: "75vh", children: /* @__PURE__ */ jsx3(MyFlexColumn, { children }) }),
|
282
|
+
/* @__PURE__ */ jsx3(Space, {}),
|
283
|
+
/* @__PURE__ */ jsx3(MyButton, { fullWidth: true, actionType: "create" })
|
284
|
+
]
|
285
|
+
}
|
286
|
+
)
|
280
287
|
})
|
281
288
|
)
|
282
289
|
] });
|
@@ -412,7 +419,7 @@ function MyDayOfWeekPicker({ value = [], onChange }) {
|
|
412
419
|
}
|
413
420
|
|
414
421
|
// src/core/input/MyRichTextEditor.tsx
|
415
|
-
import { Input, ScrollArea } from "@mantine/core";
|
422
|
+
import { Input, ScrollArea as ScrollArea2 } from "@mantine/core";
|
416
423
|
import { Link, RichTextEditor as MantineRichTextEditor, RichTextEditor } from "@mantine/tiptap";
|
417
424
|
import FileHandler from "@tiptap-pro/extension-file-handler";
|
418
425
|
import Highlight from "@tiptap/extension-highlight";
|
@@ -534,7 +541,7 @@ function MyRichTextEditor(props) {
|
|
534
541
|
] })
|
535
542
|
] })),
|
536
543
|
/* @__PURE__ */ jsx9(
|
537
|
-
|
544
|
+
ScrollArea2.Autosize,
|
538
545
|
__spreadProps(__spreadValues({
|
539
546
|
onMouseDown: () => {
|
540
547
|
editor == null ? void 0 : editor.commands.focus();
|
@@ -607,7 +614,7 @@ import {
|
|
607
614
|
Group as Group3,
|
608
615
|
NumberInput,
|
609
616
|
Paper,
|
610
|
-
ScrollArea as
|
617
|
+
ScrollArea as ScrollArea3,
|
611
618
|
Text as Text3
|
612
619
|
} from "@mantine/core";
|
613
620
|
import { IconPlus as IconPlus4, IconTrash as IconTrash3 } from "@tabler/icons-react";
|
@@ -655,7 +662,7 @@ function MyWeeklySessionSchedulerPicker({
|
|
655
662
|
}
|
656
663
|
) }),
|
657
664
|
/* @__PURE__ */ jsx12(Divider, { my: "xs" }),
|
658
|
-
/* @__PURE__ */ jsx12(Center, { children: /* @__PURE__ */ jsx12(
|
665
|
+
/* @__PURE__ */ jsx12(Center, { children: /* @__PURE__ */ jsx12(ScrollArea3.Autosize, { h: "40vh", children: /* @__PURE__ */ jsx12(MyFlexColumn, { w: { base: "100%", sm: "70%" }, children: selectedDays.map((dayOfWeek) => {
|
659
666
|
var _a;
|
660
667
|
return /* @__PURE__ */ jsxs6(
|
661
668
|
Paper,
|
@@ -7521,7 +7521,7 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7521
7521
|
}
|
7522
7522
|
|
7523
7523
|
// src/components/Layouts/PageContent/MyPageContent.tsx
|
7524
|
-
import { Badge as Badge4, Breadcrumbs,
|
7524
|
+
import { Badge as Badge4, Breadcrumbs, Container as Container3, Divider as Divider4, Group as Group16, Text as Text15, Title } from "@mantine/core";
|
7525
7525
|
import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
|
7526
7526
|
var getStatusColor = (status) => {
|
7527
7527
|
switch (status) {
|
@@ -7581,8 +7581,7 @@ function MyPageContent({
|
|
7581
7581
|
] }),
|
7582
7582
|
/* @__PURE__ */ jsx51(Divider4, { my: "xs" }),
|
7583
7583
|
children,
|
7584
|
-
/* @__PURE__ */ jsx51(Divider4, { my: "xs" })
|
7585
|
-
/* @__PURE__ */ jsx51(MyFlexEnd, { children: /* @__PURE__ */ jsx51(Code, { color: "var(--mantine-color-blue-light)", children: basicAppShellStore.state.menuCode }) })
|
7584
|
+
/* @__PURE__ */ jsx51(Divider4, { my: "xs" })
|
7586
7585
|
] });
|
7587
7586
|
}
|
7588
7587
|
|
package/dist/core/index.mjs
CHANGED
@@ -11,6 +11,9 @@ import {
|
|
11
11
|
import {
|
12
12
|
U0DateToDDMMYYYString
|
13
13
|
} from "../chunk-I2XIN2R3.mjs";
|
14
|
+
import {
|
15
|
+
const_object_documentTypes
|
16
|
+
} from "../chunk-BZMQOGL6.mjs";
|
14
17
|
import {
|
15
18
|
F_authenticate_Logout,
|
16
19
|
MyActionIconDelete,
|
@@ -33,19 +36,16 @@ import {
|
|
33
36
|
groupToTwoLevels,
|
34
37
|
useS_authenticate,
|
35
38
|
utils_layout_getItemsWithoutLinks
|
36
|
-
} from "../chunk-
|
39
|
+
} from "../chunk-IE6RLE7T.mjs";
|
37
40
|
import {
|
38
41
|
createGenericStore
|
39
42
|
} from "../chunk-Y3YGC5IH.mjs";
|
40
43
|
import "../chunk-5U2JSHSJ.mjs";
|
41
|
-
import {
|
42
|
-
const_object_documentTypes
|
43
|
-
} from "../chunk-BZMQOGL6.mjs";
|
44
44
|
import {
|
45
45
|
MyButton as MyButton2,
|
46
46
|
MyDataTableSelectOne,
|
47
47
|
MyTextInput as MyTextInput2
|
48
|
-
} from "../chunk-
|
48
|
+
} from "../chunk-3CHFGKXD.mjs";
|
49
49
|
import {
|
50
50
|
MyDataTable,
|
51
51
|
MyFlexColumn,
|