aq-fe-framework 0.1.336 → 0.1.338
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.
@@ -411,26 +411,9 @@ function MyDayOfWeekPicker({ value = [], onChange }) {
|
|
411
411
|
)) }) });
|
412
412
|
}
|
413
413
|
|
414
|
-
// src/core/input/
|
415
|
-
import {
|
416
|
-
import {
|
417
|
-
function MySelect(_a) {
|
418
|
-
var _b = _a, { label, data } = _b, rest = __objRest(_b, ["label", "data"]);
|
419
|
-
const isLoading = data === void 0;
|
420
|
-
return /* @__PURE__ */ jsx9(
|
421
|
-
Select,
|
422
|
-
__spreadValues({
|
423
|
-
label,
|
424
|
-
placeholder: isLoading ? "\u0110ang t\u1EA3i..." : label ? `Ch\u1ECDn ${label.toLowerCase()}` : "",
|
425
|
-
data: data != null ? data : [],
|
426
|
-
rightSection: isLoading ? /* @__PURE__ */ jsx9(Loader, { size: "xs" }) : void 0,
|
427
|
-
disabled: isLoading
|
428
|
-
}, rest)
|
429
|
-
);
|
430
|
-
}
|
431
|
-
|
432
|
-
// src/core/input/MyTextEditor.tsx
|
433
|
-
import { Link, RichTextEditor as MantineRichTextEditor } from "@mantine/tiptap";
|
414
|
+
// src/core/input/MyRichTextEditor.tsx
|
415
|
+
import { Input, ScrollArea } from "@mantine/core";
|
416
|
+
import { Link, RichTextEditor as MantineRichTextEditor, RichTextEditor } from "@mantine/tiptap";
|
434
417
|
import FileHandler from "@tiptap-pro/extension-file-handler";
|
435
418
|
import Highlight from "@tiptap/extension-highlight";
|
436
419
|
import Image from "@tiptap/extension-image";
|
@@ -440,14 +423,8 @@ import TextAlign from "@tiptap/extension-text-align";
|
|
440
423
|
import Underline from "@tiptap/extension-underline";
|
441
424
|
import { useEditor } from "@tiptap/react";
|
442
425
|
import StarterKit from "@tiptap/starter-kit";
|
443
|
-
import { jsx as
|
444
|
-
function MyRichTextEditor({
|
445
|
-
value,
|
446
|
-
onChange,
|
447
|
-
richTextEditorProps,
|
448
|
-
richTextEditorToolBarProps,
|
449
|
-
richTextEditorContentProps
|
450
|
-
}) {
|
426
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
427
|
+
function MyRichTextEditor(props) {
|
451
428
|
const editor = useEditor({
|
452
429
|
extensions: [
|
453
430
|
StarterKit,
|
@@ -515,49 +492,78 @@ function MyRichTextEditor({
|
|
515
492
|
}
|
516
493
|
})
|
517
494
|
],
|
518
|
-
content: value,
|
495
|
+
content: props.value,
|
519
496
|
onUpdate: ({ editor: editor2 }) => {
|
520
|
-
onChange(editor2.getHTML());
|
497
|
+
props.onChange(editor2.getHTML());
|
521
498
|
}
|
522
499
|
});
|
523
|
-
return /* @__PURE__ */ jsxs5(MantineRichTextEditor, __spreadProps(__spreadValues({ editor }, richTextEditorProps), { children: [
|
524
|
-
/* @__PURE__ */ jsxs5(MantineRichTextEditor.Toolbar, __spreadProps(__spreadValues({ sticky: true, stickyOffset: 60 }, richTextEditorToolBarProps), { children: [
|
500
|
+
return /* @__PURE__ */ jsx9(Input.Wrapper, __spreadProps(__spreadValues({}, props.inputWrapperProps), { children: /* @__PURE__ */ jsxs5(MantineRichTextEditor, __spreadProps(__spreadValues({ editor }, props.richTextEditorProps), { children: [
|
501
|
+
/* @__PURE__ */ jsxs5(MantineRichTextEditor.Toolbar, __spreadProps(__spreadValues({ sticky: true, stickyOffset: 60 }, props.richTextEditorToolBarProps), { children: [
|
525
502
|
/* @__PURE__ */ jsxs5(MantineRichTextEditor.ControlsGroup, { children: [
|
526
|
-
/* @__PURE__ */
|
527
|
-
/* @__PURE__ */
|
528
|
-
/* @__PURE__ */
|
529
|
-
/* @__PURE__ */
|
530
|
-
/* @__PURE__ */
|
531
|
-
/* @__PURE__ */
|
532
|
-
/* @__PURE__ */
|
503
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Bold, {}),
|
504
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Italic, {}),
|
505
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Underline, {}),
|
506
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Strikethrough, {}),
|
507
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.ClearFormatting, {}),
|
508
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Highlight, {}),
|
509
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Code, {})
|
533
510
|
] }),
|
534
511
|
/* @__PURE__ */ jsxs5(MantineRichTextEditor.ControlsGroup, { children: [
|
535
|
-
/* @__PURE__ */
|
536
|
-
/* @__PURE__ */
|
537
|
-
/* @__PURE__ */
|
538
|
-
/* @__PURE__ */
|
512
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.H1, {}),
|
513
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.H2, {}),
|
514
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.H3, {}),
|
515
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.H4, {})
|
539
516
|
] }),
|
540
517
|
/* @__PURE__ */ jsxs5(MantineRichTextEditor.ControlsGroup, { children: [
|
541
|
-
/* @__PURE__ */
|
542
|
-
/* @__PURE__ */
|
543
|
-
/* @__PURE__ */
|
544
|
-
/* @__PURE__ */
|
545
|
-
/* @__PURE__ */
|
546
|
-
/* @__PURE__ */
|
518
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Blockquote, {}),
|
519
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Hr, {}),
|
520
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.BulletList, {}),
|
521
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.OrderedList, {}),
|
522
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Subscript, {}),
|
523
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Superscript, {})
|
547
524
|
] }),
|
548
525
|
/* @__PURE__ */ jsxs5(MantineRichTextEditor.ControlsGroup, { children: [
|
549
|
-
/* @__PURE__ */
|
550
|
-
/* @__PURE__ */
|
526
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Link, {}),
|
527
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.Unlink, {})
|
551
528
|
] }),
|
552
529
|
/* @__PURE__ */ jsxs5(MantineRichTextEditor.ControlsGroup, { children: [
|
553
|
-
/* @__PURE__ */
|
554
|
-
/* @__PURE__ */
|
555
|
-
/* @__PURE__ */
|
556
|
-
/* @__PURE__ */
|
530
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.AlignLeft, {}),
|
531
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.AlignCenter, {}),
|
532
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.AlignJustify, {}),
|
533
|
+
/* @__PURE__ */ jsx9(MantineRichTextEditor.AlignRight, {})
|
557
534
|
] })
|
558
535
|
] })),
|
559
|
-
/* @__PURE__ */
|
560
|
-
|
536
|
+
/* @__PURE__ */ jsx9(
|
537
|
+
ScrollArea.Autosize,
|
538
|
+
__spreadProps(__spreadValues({
|
539
|
+
onMouseDown: () => {
|
540
|
+
editor == null ? void 0 : editor.commands.focus();
|
541
|
+
},
|
542
|
+
mah: "300",
|
543
|
+
style: { cursor: "text" }
|
544
|
+
}, props.scrollAreaAutosizeProps), {
|
545
|
+
children: /* @__PURE__ */ jsx9(RichTextEditor.Content, __spreadValues({ mih: "300" }, props.richTextEditorContentProps))
|
546
|
+
})
|
547
|
+
)
|
548
|
+
] })) }));
|
549
|
+
}
|
550
|
+
|
551
|
+
// src/core/input/MySelect.tsx
|
552
|
+
import { Loader, Select } from "@mantine/core";
|
553
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
554
|
+
function MySelect(_a) {
|
555
|
+
var _b = _a, { label, data } = _b, rest = __objRest(_b, ["label", "data"]);
|
556
|
+
const isLoading = data === void 0;
|
557
|
+
return /* @__PURE__ */ jsx10(
|
558
|
+
Select,
|
559
|
+
__spreadValues({
|
560
|
+
label,
|
561
|
+
placeholder: isLoading ? "\u0110ang t\u1EA3i..." : label ? `Ch\u1ECDn ${label.toLowerCase()}` : "",
|
562
|
+
data: data != null ? data : [],
|
563
|
+
rightSection: isLoading ? /* @__PURE__ */ jsx10(Loader, { size: "xs" }) : void 0,
|
564
|
+
disabled: isLoading
|
565
|
+
}, rest)
|
566
|
+
);
|
561
567
|
}
|
562
568
|
|
563
569
|
// src/core/input/MyTextInput.tsx
|
@@ -601,7 +607,7 @@ import {
|
|
601
607
|
Group as Group3,
|
602
608
|
NumberInput,
|
603
609
|
Paper,
|
604
|
-
ScrollArea,
|
610
|
+
ScrollArea as ScrollArea2,
|
605
611
|
Text as Text3
|
606
612
|
} from "@mantine/core";
|
607
613
|
import { IconPlus as IconPlus4, IconTrash as IconTrash3 } from "@tabler/icons-react";
|
@@ -649,7 +655,7 @@ function MyWeeklySessionSchedulerPicker({
|
|
649
655
|
}
|
650
656
|
) }),
|
651
657
|
/* @__PURE__ */ jsx12(Divider, { my: "xs" }),
|
652
|
-
/* @__PURE__ */ jsx12(Center, { children: /* @__PURE__ */ jsx12(
|
658
|
+
/* @__PURE__ */ jsx12(Center, { children: /* @__PURE__ */ jsx12(ScrollArea2.Autosize, { h: "40vh", children: /* @__PURE__ */ jsx12(MyFlexColumn, { w: { base: "100%", sm: "70%" }, children: selectedDays.map((dayOfWeek) => {
|
653
659
|
var _a;
|
654
660
|
return /* @__PURE__ */ jsxs6(
|
655
661
|
Paper,
|
@@ -755,8 +761,8 @@ export {
|
|
755
761
|
MyLabelValueRow,
|
756
762
|
MyStatsCard,
|
757
763
|
MyDayOfWeekPicker,
|
758
|
-
MySelect,
|
759
764
|
MyRichTextEditor,
|
765
|
+
MySelect,
|
760
766
|
MyTextInput,
|
761
767
|
MyWeeklySessionSchedulerPicker,
|
762
768
|
MyFlexColumn2 as MyFlexColumn
|
package/dist/core/index.d.mts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import { t as type_action } from '../types-B5rmBuXz.mjs';
|
3
|
-
import { ActionIconProps, ButtonProps, ModalProps, TextProps, GroupProps, ThemeIconProps, SelectProps, TextInputProps, FlexProps } from '@mantine/core';
|
3
|
+
import { ActionIconProps, ButtonProps, ModalProps, TextProps, GroupProps, ThemeIconProps, InputWrapperProps, ScrollAreaAutosizeProps, SelectProps, TextInputProps, FlexProps } from '@mantine/core';
|
4
4
|
import { ReactNode } from 'react';
|
5
5
|
import { M as MyApiResponse } from '../createBaseApi-D9OK2lA_.mjs';
|
6
6
|
import { AxiosResponse } from 'axios';
|
@@ -78,6 +78,17 @@ interface CoreDayOfWeekPickerProps {
|
|
78
78
|
}
|
79
79
|
declare function MyDayOfWeekPicker({ value, onChange }: CoreDayOfWeekPickerProps): react_jsx_runtime.JSX.Element;
|
80
80
|
|
81
|
+
interface MyRichTextEditorProps {
|
82
|
+
value: string;
|
83
|
+
onChange: (value: string) => void;
|
84
|
+
richTextEditorProps?: RichTextEditorProps;
|
85
|
+
richTextEditorToolBarProps?: RichTextEditorToolbarProps;
|
86
|
+
richTextEditorContentProps?: RichTextEditorContentProps;
|
87
|
+
inputWrapperProps?: InputWrapperProps;
|
88
|
+
scrollAreaAutosizeProps?: ScrollAreaAutosizeProps;
|
89
|
+
}
|
90
|
+
declare function MyRichTextEditor(props: MyRichTextEditorProps): react_jsx_runtime.JSX.Element;
|
91
|
+
|
81
92
|
interface MySelectProps extends SelectProps {
|
82
93
|
label?: string;
|
83
94
|
data?: Array<string | {
|
@@ -87,15 +98,6 @@ interface MySelectProps extends SelectProps {
|
|
87
98
|
}
|
88
99
|
declare function MySelect({ label, data, ...rest }: MySelectProps): react_jsx_runtime.JSX.Element;
|
89
100
|
|
90
|
-
interface MyRichTextEditorProps {
|
91
|
-
value: string;
|
92
|
-
onChange: (value: string) => void;
|
93
|
-
richTextEditorProps?: RichTextEditorProps;
|
94
|
-
richTextEditorToolBarProps?: RichTextEditorToolbarProps;
|
95
|
-
richTextEditorContentProps?: RichTextEditorContentProps;
|
96
|
-
}
|
97
|
-
declare function MyRichTextEditor({ value, onChange, richTextEditorProps, richTextEditorToolBarProps, richTextEditorContentProps }: MyRichTextEditorProps): react_jsx_runtime.JSX.Element;
|
98
|
-
|
99
101
|
interface CoreTextInputProps extends TextInputProps {
|
100
102
|
label?: string;
|
101
103
|
defaultValue?: string;
|
package/dist/core/index.mjs
CHANGED
@@ -41,11 +41,14 @@ import {
|
|
41
41
|
createGenericStore
|
42
42
|
} from "../chunk-Y3YGC5IH.mjs";
|
43
43
|
import "../chunk-5U2JSHSJ.mjs";
|
44
|
+
import {
|
45
|
+
enum_emailConfigModule
|
46
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
44
47
|
import {
|
45
48
|
MyButton as MyButton2,
|
46
49
|
MyDataTableSelectOne,
|
47
50
|
MyTextInput as MyTextInput2
|
48
|
-
} from "../chunk-
|
51
|
+
} from "../chunk-QTAMU24B.mjs";
|
49
52
|
import {
|
50
53
|
MyDataTable,
|
51
54
|
MyFlexColumn,
|
@@ -54,9 +57,6 @@ import {
|
|
54
57
|
import {
|
55
58
|
const_object_colors
|
56
59
|
} from "../chunk-NWBLJ3W3.mjs";
|
57
|
-
import {
|
58
|
-
enum_emailConfigModule
|
59
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
60
60
|
import "../chunk-K6S7R6LU.mjs";
|
61
61
|
import {
|
62
62
|
baseAxios_default,
|
@@ -989,7 +989,7 @@ var mockData2 = [
|
|
989
989
|
];
|
990
990
|
|
991
991
|
// src/modules-features/admin/core/accountManagement/F_accountManagement_Create.tsx
|
992
|
-
import { MultiSelect } from "@mantine/core";
|
992
|
+
import { MultiSelect, PasswordInput } from "@mantine/core";
|
993
993
|
import { useForm } from "@mantine/form";
|
994
994
|
|
995
995
|
// src/modules-features/admin/core/accountManagement/useS_accountManagement.ts
|
@@ -1041,7 +1041,7 @@ function F_accountManagement_Create() {
|
|
1041
1041
|
}
|
1042
1042
|
return /* @__PURE__ */ jsxs6(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
1043
1043
|
/* @__PURE__ */ jsx10(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
1044
|
-
/* @__PURE__ */ jsx10(
|
1044
|
+
/* @__PURE__ */ jsx10(PasswordInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
1045
1045
|
/* @__PURE__ */ jsx10(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
1046
1046
|
/* @__PURE__ */ jsx10(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
1047
1047
|
/* @__PURE__ */ jsx10(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
|
@@ -2904,7 +2904,7 @@ function F_core64229_Delete({ values }) {
|
|
2904
2904
|
}
|
2905
2905
|
|
2906
2906
|
// src/modules-features/admin/core/core64229/F_core64229_Form.tsx
|
2907
|
-
import { PasswordInput } from "@mantine/core";
|
2907
|
+
import { PasswordInput as PasswordInput2 } from "@mantine/core";
|
2908
2908
|
import { useForm as useForm16 } from "@mantine/form";
|
2909
2909
|
import { jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
|
2910
2910
|
function F_core64229_Form({ values, emailModule }) {
|
@@ -2995,7 +2995,7 @@ function FormInput({ form, emailModule }) {
|
|
2995
2995
|
}, form.getInputProps("userName"))
|
2996
2996
|
),
|
2997
2997
|
/* @__PURE__ */ jsx51(
|
2998
|
-
|
2998
|
+
PasswordInput2,
|
2999
2999
|
__spreadValues({
|
3000
3000
|
label: "Password",
|
3001
3001
|
placeholder: "Nh\u1EADp password"
|
@@ -3748,7 +3748,7 @@ function F_mailConfig_Delete({ values }) {
|
|
3748
3748
|
}
|
3749
3749
|
|
3750
3750
|
// src/modules-features/admin/core/mailConfig/F_mailConfig_Form.tsx
|
3751
|
-
import { PasswordInput as
|
3751
|
+
import { PasswordInput as PasswordInput3 } from "@mantine/core";
|
3752
3752
|
import { useForm as useForm23 } from "@mantine/form";
|
3753
3753
|
import { jsx as jsx71, jsxs as jsxs47 } from "react/jsx-runtime";
|
3754
3754
|
function F_mailConfig_Form({ values, emailModule }) {
|
@@ -3839,7 +3839,7 @@ function FormInput2({ form, emailModule }) {
|
|
3839
3839
|
}, form.getInputProps("userName"))
|
3840
3840
|
),
|
3841
3841
|
/* @__PURE__ */ jsx71(
|
3842
|
-
|
3842
|
+
PasswordInput3,
|
3843
3843
|
__spreadValues({
|
3844
3844
|
label: "Password",
|
3845
3845
|
placeholder: "Nh\u1EADp password"
|
@@ -5583,7 +5583,7 @@ import {
|
|
5583
5583
|
Flex as Flex3,
|
5584
5584
|
Group as Group6,
|
5585
5585
|
Paper as Paper10,
|
5586
|
-
PasswordInput as
|
5586
|
+
PasswordInput as PasswordInput4,
|
5587
5587
|
Text as Text3,
|
5588
5588
|
TextInput as TextInput3,
|
5589
5589
|
Title
|
@@ -5695,7 +5695,7 @@ function F_authenticate_Login({
|
|
5695
5695
|
})
|
5696
5696
|
),
|
5697
5697
|
/* @__PURE__ */ jsx111(
|
5698
|
-
|
5698
|
+
PasswordInput4,
|
5699
5699
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
5700
5700
|
label: "M\u1EADt kh\u1EA9u",
|
5701
5701
|
placeholder: "Nh\u1EADp m\u1EADt kh\u1EA9u c\u1EE7a b\u1EA1n",
|