aq-fe-framework 0.1.474 → 0.1.476
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/{chunk-SQ7D2WH5.mjs → chunk-ZXOSXLOL.mjs} +104 -89
- package/dist/components/index.mjs +2 -2
- package/dist/core/index.d.mts +7 -1
- package/dist/core/index.mjs +7 -5
- package/dist/modules-features/index.mjs +12 -12
- package/package.json +1 -1
- package/dist/{chunk-24COZ2RJ.mjs → chunk-R43BUIMD.mjs} +3 -3
@@ -2,13 +2,13 @@ import {
|
|
2
2
|
MyDataTable,
|
3
3
|
MyFlexColumn,
|
4
4
|
MyFlexRow
|
5
|
-
} from "./chunk-
|
6
|
-
import {
|
7
|
-
const_object_colors
|
8
|
-
} from "./chunk-OMJJAHOC.mjs";
|
5
|
+
} from "./chunk-R43BUIMD.mjs";
|
9
6
|
import {
|
10
7
|
enum_daysOfWeek
|
11
8
|
} from "./chunk-K6S7R6LU.mjs";
|
9
|
+
import {
|
10
|
+
const_object_colors
|
11
|
+
} from "./chunk-OMJJAHOC.mjs";
|
12
12
|
import {
|
13
13
|
useMyReactMutation,
|
14
14
|
useMyReactQuery
|
@@ -367,9 +367,13 @@ function MyButtonModalCreateUpdate(props) {
|
|
367
367
|
return /* @__PURE__ */ jsx8(MyButtonModal, __spreadValues({ disclosure: disc, modalProps: { title: "Chi ti\u1EBFt d\u1EEF li\u1EC7u" } }, props));
|
368
368
|
}
|
369
369
|
|
370
|
+
// src/core/button/MyButtonPrototypeSwitch.tsx
|
371
|
+
import { Switch } from "@mantine/core";
|
372
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
373
|
+
|
370
374
|
// src/core/dataDisplay/MyDataTableSelectOne.tsx
|
371
375
|
import { useEffect, useMemo as useMemo2 } from "react";
|
372
|
-
import { jsx as
|
376
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
373
377
|
function MyDataTableSelectOne({
|
374
378
|
columns,
|
375
379
|
queryResult,
|
@@ -381,7 +385,7 @@ function MyDataTableSelectOne({
|
|
381
385
|
if (!queryResult.data) return;
|
382
386
|
setIdSelection(queryResult.data[0].id);
|
383
387
|
}, [queryResult.data]);
|
384
|
-
return /* @__PURE__ */
|
388
|
+
return /* @__PURE__ */ jsx10(
|
385
389
|
MyDataTable,
|
386
390
|
{
|
387
391
|
columns: columnsState,
|
@@ -405,22 +409,32 @@ function MyDataTableSelectOne({
|
|
405
409
|
);
|
406
410
|
}
|
407
411
|
|
412
|
+
// src/core/dataDisplay/MyFlexIconTitle.tsx
|
413
|
+
import { Flex as Flex2, Text } from "@mantine/core";
|
414
|
+
import { jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
|
415
|
+
function MyFlexIconTitle(props) {
|
416
|
+
return /* @__PURE__ */ jsxs4(Flex2, __spreadProps(__spreadValues({ direction: "row", align: "center", gap: "xs" }, props), { children: [
|
417
|
+
props == null ? void 0 : props.icon,
|
418
|
+
/* @__PURE__ */ jsx11(Text, { children: props == null ? void 0 : props.children })
|
419
|
+
] }));
|
420
|
+
}
|
421
|
+
|
408
422
|
// src/core/dataDisplay/MyInfoBox.tsx
|
409
|
-
import { Group, Paper, Stack, Text } from "@mantine/core";
|
410
|
-
import { jsx as
|
423
|
+
import { Group, Paper, Stack, Text as Text2 } from "@mantine/core";
|
424
|
+
import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
411
425
|
function MyInfoBox({ title, data, paperProps }) {
|
412
|
-
return /* @__PURE__ */
|
413
|
-
title && /* @__PURE__ */
|
414
|
-
data.map((item, index) => /* @__PURE__ */
|
415
|
-
/* @__PURE__ */
|
416
|
-
/* @__PURE__ */
|
426
|
+
return /* @__PURE__ */ jsx12(Paper, __spreadProps(__spreadValues({ withBorder: true, shadow: "xs", radius: "md", p: "md", bg: const_object_colors.mantineBackgroundBlueLight }, paperProps), { children: /* @__PURE__ */ jsxs5(Stack, { children: [
|
427
|
+
title && /* @__PURE__ */ jsx12(Text2, { fw: 600, size: "sm", children: title }),
|
428
|
+
data.map((item, index) => /* @__PURE__ */ jsxs5(Group, { justify: "space-between", children: [
|
429
|
+
/* @__PURE__ */ jsx12(Text2, { size: "sm", fw: 500, c: "dimmed", children: item.label }),
|
430
|
+
/* @__PURE__ */ jsx12(Text2, { size: "sm", fw: 500, children: item.value })
|
417
431
|
] }, index))
|
418
432
|
] }) }));
|
419
433
|
}
|
420
434
|
|
421
435
|
// src/core/dataDisplay/MyLabelValueRow.tsx
|
422
|
-
import { Group as Group2, Text as
|
423
|
-
import { jsx as
|
436
|
+
import { Group as Group2, Text as Text3 } from "@mantine/core";
|
437
|
+
import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
|
424
438
|
function MyLabelValueRow({
|
425
439
|
label,
|
426
440
|
value,
|
@@ -428,18 +442,18 @@ function MyLabelValueRow({
|
|
428
442
|
valueProps,
|
429
443
|
groupProps
|
430
444
|
}) {
|
431
|
-
return /* @__PURE__ */
|
432
|
-
/* @__PURE__ */
|
445
|
+
return /* @__PURE__ */ jsxs6(Group2, __spreadProps(__spreadValues({ gap: 5, wrap: "nowrap" }, groupProps), { children: [
|
446
|
+
/* @__PURE__ */ jsxs6(Text3, __spreadProps(__spreadValues({ fw: 600 }, labelProps), { children: [
|
433
447
|
label,
|
434
448
|
":"
|
435
449
|
] })),
|
436
|
-
/* @__PURE__ */
|
450
|
+
/* @__PURE__ */ jsx13(Text3, __spreadProps(__spreadValues({}, valueProps), { children: value }))
|
437
451
|
] }));
|
438
452
|
}
|
439
453
|
|
440
454
|
// src/core/dataDisplay/MyStatsCartd.tsx
|
441
455
|
import { Box, Card, ThemeIcon } from "@mantine/core";
|
442
|
-
import { jsx as
|
456
|
+
import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
|
443
457
|
function MyStatsCard({
|
444
458
|
title,
|
445
459
|
value,
|
@@ -448,22 +462,22 @@ function MyStatsCard({
|
|
448
462
|
color,
|
449
463
|
themeIconProps
|
450
464
|
}) {
|
451
|
-
return /* @__PURE__ */
|
452
|
-
/* @__PURE__ */
|
453
|
-
/* @__PURE__ */
|
454
|
-
/* @__PURE__ */
|
455
|
-
/* @__PURE__ */
|
456
|
-
/* @__PURE__ */
|
457
|
-
/* @__PURE__ */
|
465
|
+
return /* @__PURE__ */ jsxs7(Card, { children: [
|
466
|
+
/* @__PURE__ */ jsx14("div", { className: `absolute inset-0 bg-gradient-to-br ${color} opacity-5` }),
|
467
|
+
/* @__PURE__ */ jsx14(Box, { className: "p-6", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between", children: [
|
468
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
469
|
+
/* @__PURE__ */ jsx14("p", { className: "text-sm font-medium text-muted-foreground", children: title }),
|
470
|
+
/* @__PURE__ */ jsx14("p", { className: "text-3xl font-bold", children: value }),
|
471
|
+
/* @__PURE__ */ jsx14("p", { className: "text-xs text-muted-foreground mt-1", children: subtitle })
|
458
472
|
] }),
|
459
|
-
/* @__PURE__ */
|
473
|
+
/* @__PURE__ */ jsx14(ThemeIcon, __spreadProps(__spreadValues({ size: "xl", radius: "xl" }, themeIconProps), { children: icon }))
|
460
474
|
] }) })
|
461
475
|
] });
|
462
476
|
}
|
463
477
|
|
464
478
|
// src/core/input/MyDayOfWeekPicker.tsx
|
465
479
|
import { Badge, Group as Group3 } from "@mantine/core";
|
466
|
-
import { jsx as
|
480
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
467
481
|
var days = Object.entries(enum_daysOfWeek).filter(([key]) => isNaN(Number(key))).map(([label, value]) => ({ label, value }));
|
468
482
|
function MyDayOfWeekPicker({ value = [], onChange }) {
|
469
483
|
const toggle = (val) => {
|
@@ -471,7 +485,7 @@ function MyDayOfWeekPicker({ value = [], onChange }) {
|
|
471
485
|
const newValue = value.includes(val) ? value.filter((v) => v !== val) : [...value, val].sort((a, b) => a - b);
|
472
486
|
onChange(newValue);
|
473
487
|
};
|
474
|
-
return /* @__PURE__ */
|
488
|
+
return /* @__PURE__ */ jsx15(MyFlexRow, { align: "center", children: /* @__PURE__ */ jsx15(Group3, { gap: "xs", children: days.map((d) => /* @__PURE__ */ jsx15(
|
475
489
|
Badge,
|
476
490
|
{
|
477
491
|
variant: value.includes(d.value) ? "filled" : "outline",
|
@@ -499,7 +513,7 @@ import Underline from "@tiptap/extension-underline";
|
|
499
513
|
import { useEditor } from "@tiptap/react";
|
500
514
|
import StarterKit from "@tiptap/starter-kit";
|
501
515
|
import { useEffect as useEffect2 } from "react";
|
502
|
-
import { jsx as
|
516
|
+
import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
|
503
517
|
function MyRichTextEditor(props) {
|
504
518
|
const editor = useEditor({
|
505
519
|
extensions: [
|
@@ -583,44 +597,44 @@ function MyRichTextEditor(props) {
|
|
583
597
|
editor.commands.setContent(props.value || "", false);
|
584
598
|
}
|
585
599
|
}, [props.value, editor]);
|
586
|
-
return /* @__PURE__ */
|
587
|
-
/* @__PURE__ */
|
588
|
-
/* @__PURE__ */
|
589
|
-
/* @__PURE__ */
|
590
|
-
/* @__PURE__ */
|
591
|
-
/* @__PURE__ */
|
592
|
-
/* @__PURE__ */
|
593
|
-
/* @__PURE__ */
|
594
|
-
/* @__PURE__ */
|
595
|
-
/* @__PURE__ */
|
600
|
+
return /* @__PURE__ */ jsx16(Input.Wrapper, __spreadProps(__spreadValues({}, props.inputWrapperProps), { children: /* @__PURE__ */ jsxs8(MantineRichTextEditor, __spreadProps(__spreadValues({ editor }, props.richTextEditorProps), { children: [
|
601
|
+
/* @__PURE__ */ jsxs8(MantineRichTextEditor.Toolbar, __spreadProps(__spreadValues({}, props.richTextEditorToolBarProps), { children: [
|
602
|
+
/* @__PURE__ */ jsxs8(MantineRichTextEditor.ControlsGroup, { children: [
|
603
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Bold, {}),
|
604
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Italic, {}),
|
605
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Underline, {}),
|
606
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Strikethrough, {}),
|
607
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.ClearFormatting, {}),
|
608
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Highlight, {}),
|
609
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Code, {})
|
596
610
|
] }),
|
597
|
-
/* @__PURE__ */
|
598
|
-
/* @__PURE__ */
|
599
|
-
/* @__PURE__ */
|
600
|
-
/* @__PURE__ */
|
601
|
-
/* @__PURE__ */
|
611
|
+
/* @__PURE__ */ jsxs8(MantineRichTextEditor.ControlsGroup, { children: [
|
612
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.H1, {}),
|
613
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.H2, {}),
|
614
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.H3, {}),
|
615
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.H4, {})
|
602
616
|
] }),
|
603
|
-
/* @__PURE__ */
|
604
|
-
/* @__PURE__ */
|
605
|
-
/* @__PURE__ */
|
606
|
-
/* @__PURE__ */
|
607
|
-
/* @__PURE__ */
|
608
|
-
/* @__PURE__ */
|
609
|
-
/* @__PURE__ */
|
617
|
+
/* @__PURE__ */ jsxs8(MantineRichTextEditor.ControlsGroup, { children: [
|
618
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Blockquote, {}),
|
619
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Hr, {}),
|
620
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.BulletList, {}),
|
621
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.OrderedList, {}),
|
622
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Subscript, {}),
|
623
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Superscript, {})
|
610
624
|
] }),
|
611
|
-
/* @__PURE__ */
|
612
|
-
/* @__PURE__ */
|
613
|
-
/* @__PURE__ */
|
625
|
+
/* @__PURE__ */ jsxs8(MantineRichTextEditor.ControlsGroup, { children: [
|
626
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Link, {}),
|
627
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.Unlink, {})
|
614
628
|
] }),
|
615
|
-
/* @__PURE__ */
|
616
|
-
/* @__PURE__ */
|
617
|
-
/* @__PURE__ */
|
618
|
-
/* @__PURE__ */
|
619
|
-
/* @__PURE__ */
|
629
|
+
/* @__PURE__ */ jsxs8(MantineRichTextEditor.ControlsGroup, { children: [
|
630
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.AlignLeft, {}),
|
631
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.AlignCenter, {}),
|
632
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.AlignJustify, {}),
|
633
|
+
/* @__PURE__ */ jsx16(MantineRichTextEditor.AlignRight, {})
|
620
634
|
] }),
|
621
635
|
props.extraControlsGroup
|
622
636
|
] })),
|
623
|
-
/* @__PURE__ */
|
637
|
+
/* @__PURE__ */ jsx16(
|
624
638
|
ScrollArea2.Autosize,
|
625
639
|
__spreadProps(__spreadValues({
|
626
640
|
onMouseDown: () => {
|
@@ -629,7 +643,7 @@ function MyRichTextEditor(props) {
|
|
629
643
|
mah: "200",
|
630
644
|
style: { cursor: "text" }
|
631
645
|
}, props.scrollAreaAutosizeProps), {
|
632
|
-
children: /* @__PURE__ */
|
646
|
+
children: /* @__PURE__ */ jsx16(RichTextEditor.Content, __spreadValues({ mih: "200" }, props.richTextEditorContentProps))
|
633
647
|
})
|
634
648
|
)
|
635
649
|
] })) }));
|
@@ -638,7 +652,7 @@ function MyRichTextEditor(props) {
|
|
638
652
|
// src/core/input/MySelect.tsx
|
639
653
|
import { Loader, Select } from "@mantine/core";
|
640
654
|
import React from "react";
|
641
|
-
import { jsx as
|
655
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
642
656
|
function extractTextFromReactNode(node) {
|
643
657
|
if (typeof node === "string" || typeof node === "number") return String(node);
|
644
658
|
if (Array.isArray(node)) return node.map(extractTextFromReactNode).join(" ");
|
@@ -656,7 +670,7 @@ function MySelect(_a) {
|
|
656
670
|
const plainTextLabel = extractTextFromReactNode(label).toLowerCase().trim();
|
657
671
|
placeholder = `Ch\u1ECDn ${plainTextLabel}`;
|
658
672
|
}
|
659
|
-
return /* @__PURE__ */
|
673
|
+
return /* @__PURE__ */ jsx17(
|
660
674
|
Select,
|
661
675
|
__spreadValues({
|
662
676
|
searchable: true,
|
@@ -664,7 +678,7 @@ function MySelect(_a) {
|
|
664
678
|
placeholder,
|
665
679
|
data: data != null ? data : [],
|
666
680
|
error: isError ? true : void 0,
|
667
|
-
rightSection: isLoading ? /* @__PURE__ */
|
681
|
+
rightSection: isLoading ? /* @__PURE__ */ jsx17(Loader, { size: "xs" }) : void 0,
|
668
682
|
disabled: isLoading || isError,
|
669
683
|
styles: (theme) => ({
|
670
684
|
input: rest.readOnly ? {
|
@@ -680,7 +694,7 @@ function MySelect(_a) {
|
|
680
694
|
|
681
695
|
// src/core/input/MySelectFromAPI.tsx
|
682
696
|
import { useCallback, useEffect as useEffect3, useMemo as useMemo3, useRef } from "react";
|
683
|
-
import { jsx as
|
697
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
684
698
|
function MySelectFromAPI(_a) {
|
685
699
|
var _b = _a, {
|
686
700
|
queryKey,
|
@@ -744,7 +758,7 @@ function MySelectFromAPI(_a) {
|
|
744
758
|
hasAutoSelected.current = true;
|
745
759
|
}
|
746
760
|
}, [autoSelectFirstItem, query.data, value, getLabel, onChange, setObjectData]);
|
747
|
-
return /* @__PURE__ */
|
761
|
+
return /* @__PURE__ */ jsx18(
|
748
762
|
MySelect,
|
749
763
|
__spreadValues({
|
750
764
|
isLoading: query.isLoading,
|
@@ -758,10 +772,10 @@ function MySelectFromAPI(_a) {
|
|
758
772
|
|
759
773
|
// src/core/input/MyTextInput.tsx
|
760
774
|
import { TextInput } from "@mantine/core";
|
761
|
-
import { jsx as
|
775
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
762
776
|
function MyTextInput(_a) {
|
763
777
|
var _b = _a, { label, isPhoneNumber } = _b, rest = __objRest(_b, ["label", "isPhoneNumber"]);
|
764
|
-
return /* @__PURE__ */
|
778
|
+
return /* @__PURE__ */ jsx19(
|
765
779
|
TextInput,
|
766
780
|
__spreadValues({
|
767
781
|
onKeyDown: (e) => {
|
@@ -806,11 +820,11 @@ import {
|
|
806
820
|
NumberInput,
|
807
821
|
Paper as Paper2,
|
808
822
|
ScrollArea as ScrollArea3,
|
809
|
-
Text as
|
823
|
+
Text as Text5
|
810
824
|
} from "@mantine/core";
|
811
825
|
import { IconPlus as IconPlus4, IconTrash as IconTrash3 } from "@tabler/icons-react";
|
812
826
|
import { useState } from "react";
|
813
|
-
import { jsx as
|
827
|
+
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
814
828
|
function MyWeeklySessionSchedulerPicker({
|
815
829
|
value = [],
|
816
830
|
onChange
|
@@ -841,8 +855,8 @@ function MyWeeklySessionSchedulerPicker({
|
|
841
855
|
return acc;
|
842
856
|
}, {});
|
843
857
|
const getLabel = (day) => enum_daysOfWeek[day] || `Day ${day}`;
|
844
|
-
return /* @__PURE__ */
|
845
|
-
/* @__PURE__ */
|
858
|
+
return /* @__PURE__ */ jsx20(Paper2, { w: "100%", p: "md", children: /* @__PURE__ */ jsxs9(MyFlexColumn, { children: [
|
859
|
+
/* @__PURE__ */ jsx20(Center, { children: /* @__PURE__ */ jsx20(
|
846
860
|
MyDayOfWeekPicker,
|
847
861
|
{
|
848
862
|
value: selectedDays,
|
@@ -852,41 +866,41 @@ function MyWeeklySessionSchedulerPicker({
|
|
852
866
|
}
|
853
867
|
}
|
854
868
|
) }),
|
855
|
-
/* @__PURE__ */
|
856
|
-
/* @__PURE__ */
|
869
|
+
/* @__PURE__ */ jsx20(Divider, { my: "xs" }),
|
870
|
+
/* @__PURE__ */ jsx20(Center, { children: /* @__PURE__ */ jsx20(ScrollArea3.Autosize, { h: "40vh", children: /* @__PURE__ */ jsx20(MyFlexColumn, { w: { base: "100%", sm: "70%" }, children: selectedDays.map((dayOfWeek) => {
|
857
871
|
var _a;
|
858
|
-
return /* @__PURE__ */
|
872
|
+
return /* @__PURE__ */ jsxs9(
|
859
873
|
Paper2,
|
860
874
|
{
|
861
875
|
w: "100%",
|
862
876
|
p: "md",
|
863
877
|
bg: const_object_colors.mantineBackgroundBlueLight,
|
864
878
|
children: [
|
865
|
-
/* @__PURE__ */
|
866
|
-
/* @__PURE__ */
|
867
|
-
/* @__PURE__ */
|
879
|
+
/* @__PURE__ */ jsxs9(Group4, { gap: "apart", children: [
|
880
|
+
/* @__PURE__ */ jsx20(Text5, { w: "70px", fw: 500, children: getLabel(dayOfWeek) }),
|
881
|
+
/* @__PURE__ */ jsx20(
|
868
882
|
Button5,
|
869
883
|
{
|
870
884
|
color: "teal.5",
|
871
|
-
leftSection: /* @__PURE__ */
|
885
|
+
leftSection: /* @__PURE__ */ jsx20(IconPlus4, { size: 14 }),
|
872
886
|
onClick: () => handleAddSession(dayOfWeek),
|
873
887
|
children: "Th\xEAm bu\u1ED5i"
|
874
888
|
}
|
875
889
|
)
|
876
890
|
] }),
|
877
|
-
/* @__PURE__ */
|
891
|
+
/* @__PURE__ */ jsx20(Divider, { my: "sm" }),
|
878
892
|
(_a = grouped[dayOfWeek]) == null ? void 0 : _a.map((item, indexInDay) => {
|
879
893
|
const globalIndex = value.findIndex(
|
880
894
|
(v) => v === item
|
881
895
|
);
|
882
|
-
return /* @__PURE__ */
|
896
|
+
return /* @__PURE__ */ jsxs9(
|
883
897
|
Group4,
|
884
898
|
{
|
885
899
|
mt: "xs",
|
886
900
|
gap: "xs",
|
887
901
|
align: "flex-end",
|
888
902
|
children: [
|
889
|
-
/* @__PURE__ */
|
903
|
+
/* @__PURE__ */ jsx20(
|
890
904
|
NumberInput,
|
891
905
|
{
|
892
906
|
label: "Ti\u1EBFt b\u1EAFt \u0111\u1EA7u",
|
@@ -898,7 +912,7 @@ function MyWeeklySessionSchedulerPicker({
|
|
898
912
|
)
|
899
913
|
}
|
900
914
|
),
|
901
|
-
/* @__PURE__ */
|
915
|
+
/* @__PURE__ */ jsx20(
|
902
916
|
NumberInput,
|
903
917
|
{
|
904
918
|
label: "S\u1ED1 ti\u1EBFt",
|
@@ -910,7 +924,7 @@ function MyWeeklySessionSchedulerPicker({
|
|
910
924
|
)
|
911
925
|
}
|
912
926
|
),
|
913
|
-
/* @__PURE__ */
|
927
|
+
/* @__PURE__ */ jsx20(
|
914
928
|
NumberInput,
|
915
929
|
{
|
916
930
|
label: "S\u1ED1 ph\xFAt ",
|
@@ -919,13 +933,13 @@ function MyWeeklySessionSchedulerPicker({
|
|
919
933
|
value: item.durationMinutes
|
920
934
|
}
|
921
935
|
),
|
922
|
-
/* @__PURE__ */
|
936
|
+
/* @__PURE__ */ jsx20(
|
923
937
|
Button5,
|
924
938
|
{
|
925
939
|
variant: "light",
|
926
940
|
color: "red",
|
927
941
|
onClick: () => handleRemove(globalIndex),
|
928
|
-
leftSection: /* @__PURE__ */
|
942
|
+
leftSection: /* @__PURE__ */ jsx20(IconTrash3, { size: 14 }),
|
929
943
|
children: "X\xF3a bu\u1ED5i"
|
930
944
|
}
|
931
945
|
)
|
@@ -944,10 +958,10 @@ function MyWeeklySessionSchedulerPicker({
|
|
944
958
|
|
945
959
|
// src/core/layout/MyFlexEnd.tsx
|
946
960
|
import { Group as Group5 } from "@mantine/core";
|
947
|
-
import { jsx as
|
961
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
948
962
|
function MyFlexEnd2(_a) {
|
949
963
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
950
|
-
return /* @__PURE__ */
|
964
|
+
return /* @__PURE__ */ jsx21(Group5, __spreadProps(__spreadValues({ justify: "end", mt: "md" }, rest), { children }));
|
951
965
|
}
|
952
966
|
|
953
967
|
export {
|
@@ -958,6 +972,7 @@ export {
|
|
958
972
|
MyButtonModal,
|
959
973
|
MyButtonModalCreateUpdate,
|
960
974
|
MyDataTableSelectOne,
|
975
|
+
MyFlexIconTitle,
|
961
976
|
MyInfoBox,
|
962
977
|
MyLabelValueRow,
|
963
978
|
MyStatsCard,
|
@@ -65,12 +65,12 @@ import {
|
|
65
65
|
useS_BasicAppShell,
|
66
66
|
useS_ButtonImport,
|
67
67
|
utils_layout_getItemsWithoutLinks
|
68
|
-
} from "../chunk-
|
68
|
+
} from "../chunk-R43BUIMD.mjs";
|
69
|
+
import "../chunk-U62R2QKJ.mjs";
|
69
70
|
import "../chunk-5U2JSHSJ.mjs";
|
70
71
|
import "../chunk-OMJJAHOC.mjs";
|
71
72
|
import "../chunk-KFSAV44B.mjs";
|
72
73
|
import "../chunk-7ZCOFATU.mjs";
|
73
|
-
import "../chunk-U62R2QKJ.mjs";
|
74
74
|
import "../chunk-FWCSY2DS.mjs";
|
75
75
|
export {
|
76
76
|
AQButtonCreateByImportFile,
|
package/dist/core/index.d.mts
CHANGED
@@ -73,6 +73,12 @@ declare function MyDataTableSelectOne<TData extends MRT_RowData>({ columns, quer
|
|
73
73
|
setIdSelection: (id: string | number | undefined) => void;
|
74
74
|
}): react_jsx_runtime.JSX.Element;
|
75
75
|
|
76
|
+
interface MyFlexIconTitleProps {
|
77
|
+
icon?: ReactNode;
|
78
|
+
children?: ReactNode;
|
79
|
+
}
|
80
|
+
declare function MyFlexIconTitle(props?: MyFlexIconTitleProps): react_jsx_runtime.JSX.Element;
|
81
|
+
|
76
82
|
interface MyInfoBoxItem {
|
77
83
|
label: string;
|
78
84
|
value: React.ReactNode;
|
@@ -173,4 +179,4 @@ interface MyFlexEndProps extends GroupProps {
|
|
173
179
|
}
|
174
180
|
declare function MyFlexEnd({ children, ...rest }: MyFlexEndProps): react_jsx_runtime.JSX.Element;
|
175
181
|
|
176
|
-
export { type IWeeklySession, MyActionIcon, type MyActionIconProps, MyButton, MyButtonCreateUpdate, type MyButtonExportStructureProps, MyButtonModal, MyButtonModalCreateUpdate, type MyButtonModalProps, type MyButtonProps$1 as MyButtonProps, MyDataTableSelectOne, MyDayOfWeekPicker, MyFlexColumn, MyFlexEnd, MyInfoBox, type MyInfoBoxItem, type MyInfoBoxProps, MyLabelValueRow, MyRichTextEditor, MySelect, MySelectFromAPI, type MySelectProps, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
|
182
|
+
export { type IWeeklySession, MyActionIcon, type MyActionIconProps, MyButton, MyButtonCreateUpdate, type MyButtonExportStructureProps, MyButtonModal, MyButtonModalCreateUpdate, type MyButtonModalProps, type MyButtonProps$1 as MyButtonProps, MyDataTableSelectOne, MyDayOfWeekPicker, MyFlexColumn, MyFlexEnd, MyFlexIconTitle, MyInfoBox, type MyInfoBoxItem, type MyInfoBoxProps, MyLabelValueRow, MyRichTextEditor, MySelect, MySelectFromAPI, type MySelectProps, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
|
package/dist/core/index.mjs
CHANGED
@@ -8,6 +8,7 @@ import {
|
|
8
8
|
MyDayOfWeekPicker,
|
9
9
|
MyFlexColumn,
|
10
10
|
MyFlexEnd,
|
11
|
+
MyFlexIconTitle,
|
11
12
|
MyInfoBox,
|
12
13
|
MyLabelValueRow,
|
13
14
|
MyRichTextEditor,
|
@@ -16,15 +17,15 @@ import {
|
|
16
17
|
MyStatsCard,
|
17
18
|
MyTextInput,
|
18
19
|
MyWeeklySessionSchedulerPicker
|
19
|
-
} from "../chunk-
|
20
|
-
import "../chunk-
|
21
|
-
import "../chunk-
|
20
|
+
} from "../chunk-ZXOSXLOL.mjs";
|
21
|
+
import "../chunk-R43BUIMD.mjs";
|
22
|
+
import "../chunk-U62R2QKJ.mjs";
|
22
23
|
import "../chunk-5U2JSHSJ.mjs";
|
23
|
-
import "../chunk-OMJJAHOC.mjs";
|
24
24
|
import "../chunk-K6S7R6LU.mjs";
|
25
|
+
import "../chunk-GFEMKKFH.mjs";
|
26
|
+
import "../chunk-OMJJAHOC.mjs";
|
25
27
|
import "../chunk-KFSAV44B.mjs";
|
26
28
|
import "../chunk-7ZCOFATU.mjs";
|
27
|
-
import "../chunk-U62R2QKJ.mjs";
|
28
29
|
import "../chunk-FWCSY2DS.mjs";
|
29
30
|
export {
|
30
31
|
MyActionIcon,
|
@@ -36,6 +37,7 @@ export {
|
|
36
37
|
MyDayOfWeekPicker,
|
37
38
|
MyFlexColumn,
|
38
39
|
MyFlexEnd,
|
40
|
+
MyFlexIconTitle,
|
39
41
|
MyInfoBox,
|
40
42
|
MyLabelValueRow,
|
41
43
|
MyRichTextEditor,
|
@@ -11,14 +11,14 @@ import {
|
|
11
11
|
import {
|
12
12
|
U0DateToDDMMYYYString
|
13
13
|
} from "../chunk-EWDS5IOF.mjs";
|
14
|
+
import {
|
15
|
+
enum_emailConfigModule
|
16
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
14
17
|
import {
|
15
18
|
MyButton as MyButton2,
|
16
19
|
MyDataTableSelectOne,
|
17
20
|
MyTextInput as MyTextInput2
|
18
|
-
} from "../chunk-
|
19
|
-
import {
|
20
|
-
const_object_documentTypes
|
21
|
-
} from "../chunk-GFEMKKFH.mjs";
|
21
|
+
} from "../chunk-ZXOSXLOL.mjs";
|
22
22
|
import {
|
23
23
|
F_authenticate_Logout,
|
24
24
|
MyActionIconDelete,
|
@@ -44,15 +44,18 @@ import {
|
|
44
44
|
groupToTwoLevels,
|
45
45
|
useS_authenticate,
|
46
46
|
utils_layout_getItemsWithoutLinks
|
47
|
-
} from "../chunk-
|
47
|
+
} from "../chunk-R43BUIMD.mjs";
|
48
|
+
import {
|
49
|
+
createGenericStore
|
50
|
+
} from "../chunk-U62R2QKJ.mjs";
|
48
51
|
import "../chunk-5U2JSHSJ.mjs";
|
52
|
+
import "../chunk-K6S7R6LU.mjs";
|
53
|
+
import {
|
54
|
+
const_object_documentTypes
|
55
|
+
} from "../chunk-GFEMKKFH.mjs";
|
49
56
|
import {
|
50
57
|
const_object_colors
|
51
58
|
} from "../chunk-OMJJAHOC.mjs";
|
52
|
-
import {
|
53
|
-
enum_emailConfigModule
|
54
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
55
|
-
import "../chunk-K6S7R6LU.mjs";
|
56
59
|
import {
|
57
60
|
baseAxios_default,
|
58
61
|
createBaseApi,
|
@@ -66,9 +69,6 @@ import {
|
|
66
69
|
import {
|
67
70
|
utils_notification_show
|
68
71
|
} from "../chunk-7ZCOFATU.mjs";
|
69
|
-
import {
|
70
|
-
createGenericStore
|
71
|
-
} from "../chunk-U62R2QKJ.mjs";
|
72
72
|
import {
|
73
73
|
__objRest,
|
74
74
|
__spreadProps,
|
package/package.json
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
import {
|
2
|
+
createGenericStore
|
3
|
+
} from "./chunk-U62R2QKJ.mjs";
|
1
4
|
import {
|
2
5
|
utils_pdf_download
|
3
6
|
} from "./chunk-5U2JSHSJ.mjs";
|
@@ -12,9 +15,6 @@ import {
|
|
12
15
|
import {
|
13
16
|
utils_notification_show
|
14
17
|
} from "./chunk-7ZCOFATU.mjs";
|
15
|
-
import {
|
16
|
-
createGenericStore
|
17
|
-
} from "./chunk-U62R2QKJ.mjs";
|
18
18
|
import {
|
19
19
|
__objRest,
|
20
20
|
__spreadProps,
|