aq-fe-framework 0.1.340 → 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,
|
package/dist/core/index.mjs
CHANGED
@@ -2,10 +2,6 @@ export { I as IEmailConfig } from '../EmailConfig-Bza2PzTi.mjs';
|
|
2
2
|
export { I as IAQModule } from '../IAQModule-DfONsRwE.mjs';
|
3
3
|
import { I as IBaseEntity } from '../IBaseEntity-BprRafT5.mjs';
|
4
4
|
|
5
|
-
interface IPageContent extends IBaseEntity {
|
6
|
-
description?: string;
|
7
|
-
}
|
8
|
-
|
9
5
|
interface IFile {
|
10
6
|
fileName?: string | undefined;
|
11
7
|
fileExtension?: string | undefined;
|
@@ -55,4 +51,8 @@ interface IUser extends IBaseEntity {
|
|
55
51
|
email?: string;
|
56
52
|
}
|
57
53
|
|
54
|
+
interface IPageContent extends IBaseEntity {
|
55
|
+
description?: string;
|
56
|
+
}
|
57
|
+
|
58
58
|
export { IBaseEntity, type IDocument, type IFile, type IPageContent, type IPagePermission, type IRole, type IUser };
|