aq-fe-framework 0.1.517 → 0.1.519

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,8 +1,9 @@
1
1
  import {
2
+ MyButton,
2
3
  MyDataTable,
3
4
  MyFlexColumn,
4
5
  MyFlexRow
5
- } from "./chunk-CHSXCM2D.mjs";
6
+ } from "./chunk-NAUH6JUN.mjs";
6
7
  import {
7
8
  const_object_colors
8
9
  } from "./chunk-OMJJAHOC.mjs";
@@ -175,7 +176,7 @@ var getActionConfig2 = (colorScheme) => ({
175
176
  children: "T\xECm"
176
177
  }
177
178
  });
178
- function MyButton(_a) {
179
+ function MyButton2(_a) {
179
180
  var _b = _a, { children, actionType } = _b, rest = __objRest(_b, ["children", "actionType"]);
180
181
  const { colorScheme } = useMantineColorScheme2();
181
182
  if (!actionType) {
@@ -307,7 +308,7 @@ function MyButtonCreateUpdate({
307
308
  })
308
309
  ),
309
310
  /* @__PURE__ */ jsx4(Space, {}),
310
- /* @__PURE__ */ jsx4(MyButton, { fullWidth: true, actionType: "save" })
311
+ /* @__PURE__ */ jsx4(MyButton2, { fullWidth: true, actionType: "save" })
311
312
  ]
312
313
  }
313
314
  )
@@ -346,7 +347,7 @@ function MyButtonModal({
346
347
  onClick: disclosure == null ? void 0 : disclosure[1].open
347
348
  }, actionIconProps)
348
349
  ) : /* @__PURE__ */ jsx6(
349
- MyButton,
350
+ MyButton2,
350
351
  __spreadValues({
351
352
  onClick: disclosure == null ? void 0 : disclosure[1].open
352
353
  }, buttonProps)
@@ -396,7 +397,7 @@ function MyButtonModalForm(_a) {
396
397
  children: /* @__PURE__ */ jsx8("form", { onSubmit: form.onSubmit(onSubmit), children: /* @__PURE__ */ jsxs4(Stack, { children: [
397
398
  children,
398
399
  /* @__PURE__ */ jsx8(
399
- MyButton,
400
+ MyButton2,
400
401
  {
401
402
  actionType: "save",
402
403
  loading: isLoading
@@ -1057,9 +1058,52 @@ function MyFlexEnd2(_a) {
1057
1058
  return /* @__PURE__ */ jsx21(Group5, __spreadProps(__spreadValues({ justify: "end", mt: "md" }, rest), { children }));
1058
1059
  }
1059
1060
 
1061
+ // src/core/overlays/MyModalDelete.tsx
1062
+ import { Group as Group6, Highlight as Highlight2, Modal as Modal3 } from "@mantine/core";
1063
+ import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
1064
+ function MyModalDelete({
1065
+ disclosure,
1066
+ contextData,
1067
+ onSubmit,
1068
+ submitLoading
1069
+ }) {
1070
+ return /* @__PURE__ */ jsxs12(Modal3, { onClose: disclosure[1].close, opened: disclosure[0], children: [
1071
+ /* @__PURE__ */ jsx22(
1072
+ Highlight2,
1073
+ {
1074
+ highlight: contextData || [],
1075
+ color: "red.6",
1076
+ highlightStyles: {
1077
+ fontWeight: 700,
1078
+ WebkitBackgroundClip: "text",
1079
+ WebkitTextFillColor: "transparent"
1080
+ },
1081
+ children: `B\u1EA1n s\u1EAFp x\xF3a d\u1EEF li\u1EC7u ${contextData || ""}. H\xE0nh \u0111\u1ED9ng n\xE0y kh\xF4ng th\u1EC3 ho\xE0n t\xE1c. B\u1EA1n c\xF3 ch\u1EAFc ch\u1EAFn mu\u1ED1n ti\u1EBFp t\u1EE5c?`
1082
+ }
1083
+ ),
1084
+ /* @__PURE__ */ jsxs12(Group6, { grow: true, children: [
1085
+ /* @__PURE__ */ jsx22(
1086
+ MyButton,
1087
+ {
1088
+ crudType: "delete",
1089
+ onClick: onSubmit,
1090
+ loading: submitLoading
1091
+ }
1092
+ ),
1093
+ /* @__PURE__ */ jsx22(
1094
+ MyButton,
1095
+ {
1096
+ crudType: "cancel",
1097
+ onClick: disclosure[1].close
1098
+ }
1099
+ )
1100
+ ] })
1101
+ ] });
1102
+ }
1103
+
1060
1104
  export {
1061
1105
  MyActionIcon,
1062
- MyButton,
1106
+ MyButton2 as MyButton,
1063
1107
  MyFlexColumn2 as MyFlexColumn,
1064
1108
  MyButtonCreateUpdate,
1065
1109
  MyButtonModal,
@@ -1076,5 +1120,6 @@ export {
1076
1120
  MySelectFromAPI,
1077
1121
  MyTextInput,
1078
1122
  MyWeeklySessionSchedulerPicker,
1079
- MyFlexEnd2 as MyFlexEnd
1123
+ MyFlexEnd2 as MyFlexEnd,
1124
+ MyModalDelete
1080
1125
  };
@@ -67,12 +67,12 @@ import {
67
67
  useS_BasicAppShell,
68
68
  useS_ButtonImport,
69
69
  utils_layout_getItemsWithoutLinks
70
- } from "../chunk-CHSXCM2D.mjs";
70
+ } from "../chunk-NAUH6JUN.mjs";
71
+ import "../chunk-U62R2QKJ.mjs";
71
72
  import "../chunk-5U2JSHSJ.mjs";
72
73
  import "../chunk-OMJJAHOC.mjs";
73
74
  import "../chunk-3XSLM5GI.mjs";
74
75
  import "../chunk-7ZCOFATU.mjs";
75
- import "../chunk-U62R2QKJ.mjs";
76
76
  import "../chunk-FWCSY2DS.mjs";
77
77
  export {
78
78
  AQButtonCreateByImportFile,
@@ -196,4 +196,12 @@ interface MyFlexEndProps extends GroupProps {
196
196
  }
197
197
  declare function MyFlexEnd({ children, ...rest }: MyFlexEndProps): react_jsx_runtime.JSX.Element;
198
198
 
199
- export { type IWeeklySession, MyActionIcon, type MyActionIconProps, MyButton, MyButtonCreateUpdate, type MyButtonExportStructureProps, MyButtonModal, MyButtonModalForm, type MyButtonModalFormProps, type MyButtonModalProps, MyButtonPrintPDF, type MyButtonPrintPDFProps, type MyButtonProps$1 as MyButtonProps, MyDataTableSelectOne, MyDayOfWeekPicker, MyFlexColumn, MyFlexEnd, MyFlexIconTitle, MyInfoBox, type MyInfoBoxItem, type MyInfoBoxProps, MyLabelValueRow, MyRichTextEditor, MySelect, MySelectFromAPI, type MySelectFromAPIProps, type MySelectProps, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
199
+ interface MyModalDeleteProps {
200
+ disclosure: ReturnType<typeof useDisclosure>;
201
+ contextData?: string;
202
+ onSubmit: () => void;
203
+ submitLoading?: boolean;
204
+ }
205
+ declare function MyModalDelete({ disclosure, contextData, onSubmit, submitLoading }: MyModalDeleteProps): react_jsx_runtime.JSX.Element;
206
+
207
+ export { type IWeeklySession, MyActionIcon, type MyActionIconProps, MyButton, MyButtonCreateUpdate, type MyButtonExportStructureProps, MyButtonModal, MyButtonModalForm, type MyButtonModalFormProps, type MyButtonModalProps, MyButtonPrintPDF, type MyButtonPrintPDFProps, type MyButtonProps$1 as MyButtonProps, MyDataTableSelectOne, MyDayOfWeekPicker, MyFlexColumn, MyFlexEnd, MyFlexIconTitle, MyInfoBox, type MyInfoBoxItem, type MyInfoBoxProps, MyLabelValueRow, MyModalDelete, MyRichTextEditor, MySelect, MySelectFromAPI, type MySelectFromAPIProps, type MySelectProps, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
@@ -12,21 +12,22 @@ import {
12
12
  MyFlexIconTitle,
13
13
  MyInfoBox,
14
14
  MyLabelValueRow,
15
+ MyModalDelete,
15
16
  MyRichTextEditor,
16
17
  MySelect,
17
18
  MySelectFromAPI,
18
19
  MyStatsCard,
19
20
  MyTextInput,
20
21
  MyWeeklySessionSchedulerPicker
21
- } from "../chunk-NVM7HSI6.mjs";
22
- import "../chunk-CHSXCM2D.mjs";
22
+ } from "../chunk-PVQKHKJD.mjs";
23
+ import "../chunk-NAUH6JUN.mjs";
24
+ import "../chunk-U62R2QKJ.mjs";
23
25
  import "../chunk-5U2JSHSJ.mjs";
24
26
  import "../chunk-GFEMKKFH.mjs";
25
27
  import "../chunk-OMJJAHOC.mjs";
26
28
  import "../chunk-K6S7R6LU.mjs";
27
29
  import "../chunk-3XSLM5GI.mjs";
28
30
  import "../chunk-7ZCOFATU.mjs";
29
- import "../chunk-U62R2QKJ.mjs";
30
31
  import "../chunk-FWCSY2DS.mjs";
31
32
  export {
32
33
  MyActionIcon,
@@ -42,6 +43,7 @@ export {
42
43
  MyFlexIconTitle,
43
44
  MyInfoBox,
44
45
  MyLabelValueRow,
46
+ MyModalDelete,
45
47
  MyRichTextEditor,
46
48
  MySelect,
47
49
  MySelectFromAPI,
@@ -16,7 +16,7 @@ import {
16
16
  MyButton as MyButton2,
17
17
  MyDataTableSelectOne,
18
18
  MyTextInput as MyTextInput2
19
- } from "../chunk-NVM7HSI6.mjs";
19
+ } from "../chunk-PVQKHKJD.mjs";
20
20
  import {
21
21
  F_authenticate_Logout,
22
22
  MyActionIconDelete,
@@ -42,7 +42,10 @@ import {
42
42
  groupToTwoLevels,
43
43
  useS_authenticate,
44
44
  utils_layout_getItemsWithoutLinks
45
- } from "../chunk-CHSXCM2D.mjs";
45
+ } from "../chunk-NAUH6JUN.mjs";
46
+ import {
47
+ createGenericStore
48
+ } from "../chunk-U62R2QKJ.mjs";
46
49
  import "../chunk-5U2JSHSJ.mjs";
47
50
  import {
48
51
  const_object_documentTypes
@@ -67,9 +70,6 @@ import {
67
70
  import {
68
71
  utils_notification_show
69
72
  } from "../chunk-7ZCOFATU.mjs";
70
- import {
71
- createGenericStore
72
- } from "../chunk-U62R2QKJ.mjs";
73
73
  import {
74
74
  __objRest,
75
75
  __spreadProps,
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.517",
45
+ "version": "0.1.519",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"
@@ -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,