aq-fe-framework 0.1.332 → 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.
@@ -1,4 +1,4 @@
1
- import { I as IBaseEntity } from './base-BprRafT5.mjs';
1
+ import { I as IBaseEntity } from './IBaseEntity-BprRafT5.mjs';
2
2
 
3
3
  interface IEmailConfig extends IBaseEntity {
4
4
  emailModule?: number;
@@ -1,4 +1,4 @@
1
- import { I as IBaseEntity } from './base-BprRafT5.mjs';
1
+ import { I as IBaseEntity } from './IBaseEntity-BprRafT5.mjs';
2
2
 
3
3
  interface IAQModule extends IBaseEntity {
4
4
  officelName?: string;
@@ -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 jsx9 } from "react/jsx-runtime";
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__ */ jsx9(
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 jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
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__ */ jsx10(Paper, { w: "100%", p: "md", children: /* @__PURE__ */ jsxs5(MyFlexColumn, { children: [
492
- /* @__PURE__ */ jsx10(Center, { children: /* @__PURE__ */ jsx10(
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__ */ jsx10(Divider, { my: "xs" }),
503
- /* @__PURE__ */ jsx10(Center, { children: /* @__PURE__ */ jsx10(ScrollArea.Autosize, { h: "40vh", children: /* @__PURE__ */ jsx10(MyFlexColumn, { w: { base: "100%", sm: "70%" }, children: selectedDays.map((dayOfWeek) => {
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__ */ jsx10(Text3, { w: "70px", fw: 500, children: getLabel(dayOfWeek) }),
514
- /* @__PURE__ */ jsx10(
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__ */ jsx10(IconPlus4, { size: 14 }),
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__ */ jsx10(Divider, { my: "sm" }),
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__ */ jsx10(
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__ */ jsx10(
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__ */ jsx10(
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__ */ jsx10(
586
+ /* @__PURE__ */ jsx11(
570
587
  Button5,
571
588
  {
572
589
  variant: "light",
573
590
  color: "red",
574
591
  onClick: () => handleRemove(globalIndex),
575
- leftSection: /* @__PURE__ */ jsx10(IconTrash3, { size: 14 }),
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 jsx11 } from "react/jsx-runtime";
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__ */ jsx11(Flex, __spreadProps(__spreadValues({ direction: "column", gap: "md" }, rest), { children }));
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
@@ -1,4 +1,4 @@
1
- import { I as IBaseEntity } from '../base-BprRafT5.mjs';
1
+ import { I as IBaseEntity } from '../IBaseEntity-BprRafT5.mjs';
2
2
  import { MRT_ColumnDef } from 'mantine-react-table';
3
3
 
4
4
  declare const baseColumns: MRT_ColumnDef<IBaseEntity>[];
@@ -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-2GYRG_xt.mjs';
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 '../base-BprRafT5.mjs';
19
+ import '../IBaseEntity-BprRafT5.mjs';
20
20
  import 'exceljs';
21
21
 
22
22
  declare const MyBoxesCore: ({ className, ...rest }: {
@@ -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-2GYRG_xt.mjs';
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 '../base-BprRafT5.mjs';
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 };
@@ -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-WXLN7SEF.mjs";
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
@@ -1,6 +1,6 @@
1
1
  import * as axios from 'axios';
2
2
  import { AxiosInstance } from 'axios';
3
- import { I as IBaseEntity } from './base-BprRafT5.mjs';
3
+ import { I as IBaseEntity } from './IBaseEntity-BprRafT5.mjs';
4
4
 
5
5
  interface IPagingParams {
6
6
  pageNumber?: number;
@@ -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-2GYRG_xt.mjs';
3
- export { I as IPagingParams, c as createBaseApi } from '../createBaseApi-2GYRG_xt.mjs';
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-CCtwv-e0.mjs';
8
- import '../base-BprRafT5.mjs';
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,10 +1,6 @@
1
- import { I as IBaseEntity } from '../base-BprRafT5.mjs';
2
- export { I as IEmailConfig } from '../EmailConfig-DvTXTBt3.mjs';
3
- export { I as IAQModule } from '../IAQModule-CCtwv-e0.mjs';
4
-
5
- interface IPageContent extends IBaseEntity {
6
- description?: string;
7
- }
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';
8
4
 
9
5
  interface IFile {
10
6
  fileName?: 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 };
@@ -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 '../base-BprRafT5.mjs';
3
+ import { I as IBaseEntity } from '../IBaseEntity-BprRafT5.mjs';
4
4
  import { SelectProps, ButtonProps } from '@mantine/core';
5
- import { I as IEmailConfig } from '../EmailConfig-DvTXTBt3.mjs';
6
- import { I as IAQModule } from '../IAQModule-CCtwv-e0.mjs';
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 }: {
@@ -11,9 +11,6 @@ import {
11
11
  import {
12
12
  U0DateToDDMMYYYString
13
13
  } from "../chunk-I2XIN2R3.mjs";
14
- import {
15
- const_object_documentTypes
16
- } from "../chunk-BZMQOGL6.mjs";
17
14
  import {
18
15
  F_authenticate_Logout,
19
16
  MyActionIconDelete,
@@ -41,11 +38,14 @@ import {
41
38
  createGenericStore
42
39
  } from "../chunk-Y3YGC5IH.mjs";
43
40
  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-WXLN7SEF.mjs";
48
+ } from "../chunk-W73H7SCD.mjs";
49
49
  import {
50
50
  MyDataTable,
51
51
  MyFlexColumn,
@@ -870,15 +870,6 @@ import { Button as Button2, Group as Group2 } from "@mantine/core";
870
870
  import { IconShield } from "@tabler/icons-react";
871
871
  import { useMemo as useMemo4, useState as useState7 } from "react";
872
872
 
873
- // src/modules-features/admin/core/accountManagement/useS_accountManagement.ts
874
- var useStore2 = createGenericStore({
875
- initialState: {}
876
- });
877
- function useS_accountManagement() {
878
- const store = useStore2();
879
- return __spreadValues({}, store);
880
- }
881
-
882
873
  // src/modules-features/admin/core/accountManagement/F_accountManagement_ChangePermission.tsx
883
874
  import { Button, Fieldset, Group, Table as Table3 } from "@mantine/core";
884
875
  import { useDisclosure } from "@mantine/hooks";
@@ -1000,6 +991,17 @@ var mockData2 = [
1000
991
  // src/modules-features/admin/core/accountManagement/F_accountManagement_Create.tsx
1001
992
  import { MultiSelect } from "@mantine/core";
1002
993
  import { useForm } from "@mantine/form";
994
+
995
+ // src/modules-features/admin/core/accountManagement/useS_accountManagement.ts
996
+ var useStore2 = createGenericStore({
997
+ initialState: {}
998
+ });
999
+ function useS_accountManagement() {
1000
+ const store = useStore2();
1001
+ return __spreadValues({}, store);
1002
+ }
1003
+
1004
+ // src/modules-features/admin/core/accountManagement/F_accountManagement_Create.tsx
1003
1005
  import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
1004
1006
  var ENDPOINT = "/Account/create";
1005
1007
  function F_accountManagement_Create() {
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.332",
45
+ "version": "0.1.334",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"