aq-fe-framework 0.1.333 → 0.1.334
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/{EmailConfig-CVG1cFdX.d.mts → EmailConfig-Bza2PzTi.d.mts} +1 -1
- package/dist/{IAQModule-kmLY5UWG.d.mts → IAQModule-DfONsRwE.d.mts} +1 -1
- package/dist/{IBaseEntity-CD6G-bQD.d.mts → IBaseEntity-BprRafT5.d.mts} +1 -1
- package/dist/{chunk-WXLN7SEF.mjs → chunk-W73H7SCD.mjs} +36 -18
- package/dist/columns/index.d.mts +1 -1
- package/dist/components/index.d.mts +2 -2
- package/dist/core/index.d.mts +14 -4
- package/dist/core/index.mjs +3 -1
- package/dist/{createBaseApi-Bdh5kQ7-.d.mts → createBaseApi-D9OK2lA_.d.mts} +1 -1
- package/dist/hooks/index.d.mts +4 -4
- package/dist/interfaces/index.d.mts +3 -3
- package/dist/modules-features/index.d.mts +3 -3
- package/dist/modules-features/index.mjs +1 -1
- package/package.json +1 -1
@@ -411,12 +411,29 @@ function MyDayOfWeekPicker({ value = [], onChange }) {
|
|
411
411
|
)) }) });
|
412
412
|
}
|
413
413
|
|
414
|
+
// src/core/input/MySelect.tsx
|
415
|
+
import { Loader, Select } from "@mantine/core";
|
416
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
417
|
+
function MySelect(_a) {
|
418
|
+
var _b = _a, { label, data, isLoading } = _b, rest = __objRest(_b, ["label", "data", "isLoading"]);
|
419
|
+
return /* @__PURE__ */ jsx9(
|
420
|
+
Select,
|
421
|
+
__spreadValues({
|
422
|
+
label,
|
423
|
+
placeholder: label ? `Ch\u1ECDn ${label.toLowerCase()}` : "",
|
424
|
+
data,
|
425
|
+
rightSection: isLoading ? /* @__PURE__ */ jsx9(Loader, { size: "xs" }) : void 0,
|
426
|
+
disabled: isLoading
|
427
|
+
}, rest)
|
428
|
+
);
|
429
|
+
}
|
430
|
+
|
414
431
|
// src/core/input/MyTextInput.tsx
|
415
432
|
import { TextInput } from "@mantine/core";
|
416
|
-
import { jsx as
|
433
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
417
434
|
function MyTextInput(_a) {
|
418
435
|
var _b = _a, { label, isPhoneNumber } = _b, rest = __objRest(_b, ["label", "isPhoneNumber"]);
|
419
|
-
return /* @__PURE__ */
|
436
|
+
return /* @__PURE__ */ jsx10(
|
420
437
|
TextInput,
|
421
438
|
__spreadValues({
|
422
439
|
onKeyDown: (e) => {
|
@@ -457,7 +474,7 @@ import {
|
|
457
474
|
} from "@mantine/core";
|
458
475
|
import { IconPlus as IconPlus4, IconTrash as IconTrash3 } from "@tabler/icons-react";
|
459
476
|
import { useState as useState2 } from "react";
|
460
|
-
import { jsx as
|
477
|
+
import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
|
461
478
|
function MyWeeklySessionSchedulerPicker({
|
462
479
|
value = [],
|
463
480
|
onChange
|
@@ -488,8 +505,8 @@ function MyWeeklySessionSchedulerPicker({
|
|
488
505
|
return acc;
|
489
506
|
}, {});
|
490
507
|
const getLabel = (day) => enum_daysOfWeek[day] || `Day ${day}`;
|
491
|
-
return /* @__PURE__ */
|
492
|
-
/* @__PURE__ */
|
508
|
+
return /* @__PURE__ */ jsx11(Paper, { w: "100%", p: "md", children: /* @__PURE__ */ jsxs5(MyFlexColumn, { children: [
|
509
|
+
/* @__PURE__ */ jsx11(Center, { children: /* @__PURE__ */ jsx11(
|
493
510
|
MyDayOfWeekPicker,
|
494
511
|
{
|
495
512
|
value: selectedDays,
|
@@ -499,8 +516,8 @@ function MyWeeklySessionSchedulerPicker({
|
|
499
516
|
}
|
500
517
|
}
|
501
518
|
) }),
|
502
|
-
/* @__PURE__ */
|
503
|
-
/* @__PURE__ */
|
519
|
+
/* @__PURE__ */ jsx11(Divider, { my: "xs" }),
|
520
|
+
/* @__PURE__ */ jsx11(Center, { children: /* @__PURE__ */ jsx11(ScrollArea.Autosize, { h: "40vh", children: /* @__PURE__ */ jsx11(MyFlexColumn, { w: { base: "100%", sm: "70%" }, children: selectedDays.map((dayOfWeek) => {
|
504
521
|
var _a;
|
505
522
|
return /* @__PURE__ */ jsxs5(
|
506
523
|
Paper,
|
@@ -510,18 +527,18 @@ function MyWeeklySessionSchedulerPicker({
|
|
510
527
|
bg: const_object_colors.mantineBackgroundBlueLight,
|
511
528
|
children: [
|
512
529
|
/* @__PURE__ */ jsxs5(Group3, { gap: "apart", children: [
|
513
|
-
/* @__PURE__ */
|
514
|
-
/* @__PURE__ */
|
530
|
+
/* @__PURE__ */ jsx11(Text3, { w: "70px", fw: 500, children: getLabel(dayOfWeek) }),
|
531
|
+
/* @__PURE__ */ jsx11(
|
515
532
|
Button5,
|
516
533
|
{
|
517
534
|
color: "teal.5",
|
518
|
-
leftSection: /* @__PURE__ */
|
535
|
+
leftSection: /* @__PURE__ */ jsx11(IconPlus4, { size: 14 }),
|
519
536
|
onClick: () => handleAddSession(dayOfWeek),
|
520
537
|
children: "Th\xEAm bu\u1ED5i"
|
521
538
|
}
|
522
539
|
)
|
523
540
|
] }),
|
524
|
-
/* @__PURE__ */
|
541
|
+
/* @__PURE__ */ jsx11(Divider, { my: "sm" }),
|
525
542
|
(_a = grouped[dayOfWeek]) == null ? void 0 : _a.map((item, indexInDay) => {
|
526
543
|
const globalIndex = value.findIndex(
|
527
544
|
(v) => v === item
|
@@ -533,7 +550,7 @@ function MyWeeklySessionSchedulerPicker({
|
|
533
550
|
gap: "xs",
|
534
551
|
align: "flex-end",
|
535
552
|
children: [
|
536
|
-
/* @__PURE__ */
|
553
|
+
/* @__PURE__ */ jsx11(
|
537
554
|
NumberInput,
|
538
555
|
{
|
539
556
|
label: "Ti\u1EBFt b\u1EAFt \u0111\u1EA7u",
|
@@ -545,7 +562,7 @@ function MyWeeklySessionSchedulerPicker({
|
|
545
562
|
)
|
546
563
|
}
|
547
564
|
),
|
548
|
-
/* @__PURE__ */
|
565
|
+
/* @__PURE__ */ jsx11(
|
549
566
|
NumberInput,
|
550
567
|
{
|
551
568
|
label: "S\u1ED1 ti\u1EBFt",
|
@@ -557,7 +574,7 @@ function MyWeeklySessionSchedulerPicker({
|
|
557
574
|
)
|
558
575
|
}
|
559
576
|
),
|
560
|
-
/* @__PURE__ */
|
577
|
+
/* @__PURE__ */ jsx11(
|
561
578
|
NumberInput,
|
562
579
|
{
|
563
580
|
label: "S\u1ED1 ph\xFAt ",
|
@@ -566,13 +583,13 @@ function MyWeeklySessionSchedulerPicker({
|
|
566
583
|
value: item.durationMinutes
|
567
584
|
}
|
568
585
|
),
|
569
|
-
/* @__PURE__ */
|
586
|
+
/* @__PURE__ */ jsx11(
|
570
587
|
Button5,
|
571
588
|
{
|
572
589
|
variant: "light",
|
573
590
|
color: "red",
|
574
591
|
onClick: () => handleRemove(globalIndex),
|
575
|
-
leftSection: /* @__PURE__ */
|
592
|
+
leftSection: /* @__PURE__ */ jsx11(IconTrash3, { size: 14 }),
|
576
593
|
children: "X\xF3a bu\u1ED5i"
|
577
594
|
}
|
578
595
|
)
|
@@ -591,10 +608,10 @@ function MyWeeklySessionSchedulerPicker({
|
|
591
608
|
|
592
609
|
// src/core/layout/MyFlexColumn.tsx
|
593
610
|
import { Flex } from "@mantine/core";
|
594
|
-
import { jsx as
|
611
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
595
612
|
function MyFlexColumn2(_a) {
|
596
613
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
597
|
-
return /* @__PURE__ */
|
614
|
+
return /* @__PURE__ */ jsx12(Flex, __spreadProps(__spreadValues({ direction: "column", gap: "md" }, rest), { children }));
|
598
615
|
}
|
599
616
|
|
600
617
|
export {
|
@@ -606,6 +623,7 @@ export {
|
|
606
623
|
MyLabelValueRow,
|
607
624
|
MyStatsCard,
|
608
625
|
MyDayOfWeekPicker,
|
626
|
+
MySelect,
|
609
627
|
MyTextInput,
|
610
628
|
MyWeeklySessionSchedulerPicker,
|
611
629
|
MyFlexColumn2 as MyFlexColumn
|
package/dist/columns/index.d.mts
CHANGED
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React$1, { ReactNode, ComponentProps } from 'react';
|
3
3
|
import { t as type_action, T as TYPES_MANTINE_SIZE } from '../types-B5rmBuXz.mjs';
|
4
4
|
import { ActionIconProps, ButtonProps, useModalsStack, CheckboxProps, SelectProps, NumberFormatterProps, FieldsetProps, FileInputProps, NumberInputProps, TextareaProps, MantineSize, InputWrapperProps, TextInputProps, ContainerProps, FlexProps, GroupProps, TypographyStylesProviderProps, TabsProps, SkeletonProps } from '@mantine/core';
|
5
|
-
import { M as MyApiResponse } from '../createBaseApi-
|
5
|
+
import { M as MyApiResponse } from '../createBaseApi-D9OK2lA_.mjs';
|
6
6
|
import { AxiosResponse } from 'axios';
|
7
7
|
import { useDisclosure, useListState } from '@mantine/hooks';
|
8
8
|
import { UseFormReturnType, useForm } from '@mantine/form';
|
@@ -16,7 +16,7 @@ import { RichTextEditorProps } from '@mantine/tiptap';
|
|
16
16
|
import { EditorOptions } from '@tiptap/react';
|
17
17
|
import { IconProps, Icon } from '@tabler/icons-react';
|
18
18
|
import { CalendarEventExternal } from '@schedule-x/calendar';
|
19
|
-
import '../IBaseEntity-
|
19
|
+
import '../IBaseEntity-BprRafT5.mjs';
|
20
20
|
import 'exceljs';
|
21
21
|
|
22
22
|
declare const MyBoxesCore: ({ className, ...rest }: {
|
package/dist/core/index.d.mts
CHANGED
@@ -1,14 +1,14 @@
|
|
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, TextInputProps, FlexProps } from '@mantine/core';
|
3
|
+
import { ActionIconProps, ButtonProps, ModalProps, TextProps, GroupProps, ThemeIconProps, SelectProps, TextInputProps, FlexProps } from '@mantine/core';
|
4
4
|
import { ReactNode } from 'react';
|
5
|
-
import { M as MyApiResponse } from '../createBaseApi-
|
5
|
+
import { M as MyApiResponse } from '../createBaseApi-D9OK2lA_.mjs';
|
6
6
|
import { AxiosResponse } from 'axios';
|
7
7
|
import { UseFormReturnType } from '@mantine/form';
|
8
8
|
import { useDisclosure } from '@mantine/hooks';
|
9
9
|
import { UseQueryResult } from '@tanstack/react-query';
|
10
10
|
import { MRT_RowData, MRT_ColumnDef } from 'mantine-react-table';
|
11
|
-
import '../IBaseEntity-
|
11
|
+
import '../IBaseEntity-BprRafT5.mjs';
|
12
12
|
|
13
13
|
interface CoreActionIconProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "style">, ActionIconProps {
|
14
14
|
actionType?: type_action;
|
@@ -77,6 +77,16 @@ interface CoreDayOfWeekPickerProps {
|
|
77
77
|
}
|
78
78
|
declare function MyDayOfWeekPicker({ value, onChange }: CoreDayOfWeekPickerProps): react_jsx_runtime.JSX.Element;
|
79
79
|
|
80
|
+
interface MySelectProps extends SelectProps {
|
81
|
+
label?: string;
|
82
|
+
data: Array<string | {
|
83
|
+
value: string;
|
84
|
+
label: string;
|
85
|
+
}>;
|
86
|
+
isLoading?: boolean;
|
87
|
+
}
|
88
|
+
declare function MySelect({ label, data, isLoading, ...rest }: MySelectProps): react_jsx_runtime.JSX.Element;
|
89
|
+
|
80
90
|
interface CoreTextInputProps extends TextInputProps {
|
81
91
|
label?: string;
|
82
92
|
defaultValue?: string;
|
@@ -101,4 +111,4 @@ interface IMyFlexColumn extends FlexProps {
|
|
101
111
|
}
|
102
112
|
declare function MyFlexColumn({ children, ...rest }: IMyFlexColumn): react_jsx_runtime.JSX.Element;
|
103
113
|
|
104
|
-
export { type IWeeklySession, MyActionIcon, MyButton, MyButtonCreateUpdate, MyButtonModal, MyDataTableSelectOne, MyDayOfWeekPicker, MyFlexColumn, MyLabelValueRow, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
|
114
|
+
export { type IWeeklySession, MyActionIcon, MyButton, MyButtonCreateUpdate, MyButtonModal, MyDataTableSelectOne, MyDayOfWeekPicker, MyFlexColumn, MyLabelValueRow, MySelect, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
|
package/dist/core/index.mjs
CHANGED
@@ -7,10 +7,11 @@ import {
|
|
7
7
|
MyDayOfWeekPicker,
|
8
8
|
MyFlexColumn,
|
9
9
|
MyLabelValueRow,
|
10
|
+
MySelect,
|
10
11
|
MyStatsCard,
|
11
12
|
MyTextInput,
|
12
13
|
MyWeeklySessionSchedulerPicker
|
13
|
-
} from "../chunk-
|
14
|
+
} from "../chunk-W73H7SCD.mjs";
|
14
15
|
import "../chunk-GEYCGM75.mjs";
|
15
16
|
import "../chunk-NWBLJ3W3.mjs";
|
16
17
|
import "../chunk-K6S7R6LU.mjs";
|
@@ -26,6 +27,7 @@ export {
|
|
26
27
|
MyDayOfWeekPicker,
|
27
28
|
MyFlexColumn,
|
28
29
|
MyLabelValueRow,
|
30
|
+
MySelect,
|
29
31
|
MyStatsCard,
|
30
32
|
MyTextInput,
|
31
33
|
MyWeeklySessionSchedulerPicker
|
package/dist/hooks/index.d.mts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as next_dist_shared_lib_app_router_context_shared_runtime from 'next/dist/shared/lib/app-router-context.shared-runtime';
|
2
|
-
import { M as MyApiResponse } from '../createBaseApi-
|
3
|
-
export { I as IPagingParams, c as createBaseApi } from '../createBaseApi-
|
2
|
+
import { M as MyApiResponse } from '../createBaseApi-D9OK2lA_.mjs';
|
3
|
+
export { I as IPagingParams, c as createBaseApi } from '../createBaseApi-D9OK2lA_.mjs';
|
4
4
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
5
5
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
6
6
|
import { UseMutationOptions, QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
7
|
-
import { I as IAQModule } from '../IAQModule-
|
8
|
-
import '../IBaseEntity-
|
7
|
+
import { I as IAQModule } from '../IAQModule-DfONsRwE.mjs';
|
8
|
+
import '../IBaseEntity-BprRafT5.mjs';
|
9
9
|
|
10
10
|
declare function useMyDevice(): {
|
11
11
|
isMobile: boolean | undefined;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export { I as IEmailConfig } from '../EmailConfig-
|
2
|
-
export { I as IAQModule } from '../IAQModule-
|
3
|
-
import { I as IBaseEntity } from '../IBaseEntity-
|
1
|
+
export { I as IEmailConfig } from '../EmailConfig-Bza2PzTi.mjs';
|
2
|
+
export { I as IAQModule } from '../IAQModule-DfONsRwE.mjs';
|
3
|
+
import { I as IBaseEntity } from '../IBaseEntity-BprRafT5.mjs';
|
4
4
|
|
5
5
|
interface IFile {
|
6
6
|
fileName?: string | undefined;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-CGKvZ5wV.mjs';
|
3
|
-
import { I as IBaseEntity } from '../IBaseEntity-
|
3
|
+
import { I as IBaseEntity } from '../IBaseEntity-BprRafT5.mjs';
|
4
4
|
import { SelectProps, ButtonProps } from '@mantine/core';
|
5
|
-
import { I as IEmailConfig } from '../EmailConfig-
|
6
|
-
import { I as IAQModule } from '../IAQModule-
|
5
|
+
import { I as IEmailConfig } from '../EmailConfig-Bza2PzTi.mjs';
|
6
|
+
import { I as IAQModule } from '../IAQModule-DfONsRwE.mjs';
|
7
7
|
import { ReactNode } from 'react';
|
8
8
|
|
9
9
|
declare function F_accessControl({ menuData }: {
|