aq-fe-framework 0.1.536 → 0.1.538

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,6 +1,6 @@
1
1
  import {
2
2
  MyButton
3
- } from "./chunk-KI4UPOLS.mjs";
3
+ } from "./chunk-O6CSSWCM.mjs";
4
4
  import {
5
5
  __objRest,
6
6
  __spreadProps,
@@ -2002,7 +2002,7 @@ function MyButtonViewPDF({
2002
2002
  id,
2003
2003
  modalSize = "80%",
2004
2004
  label = "Xem file",
2005
- src = "https://datafiles.chinhphu.vn/cpp/files/vbpq/2016/07/85.signed.pdf",
2005
+ src,
2006
2006
  isActionIcon = false,
2007
2007
  filePath
2008
2008
  }) {
@@ -2079,15 +2079,14 @@ function MyButtonViewPDF({
2079
2079
  overlayProps: { radius: "sm", blur: 2 }
2080
2080
  }
2081
2081
  ),
2082
- query.data && /* @__PURE__ */ jsx34(
2082
+ query.data ? /* @__PURE__ */ jsx34(
2083
2083
  "iframe",
2084
2084
  {
2085
2085
  src: `data:application/pdf;base64, ${filePath ? (_a = query.data) == null ? void 0 : _a.fileBase64String : (_c = (_b = query.data) == null ? void 0 : _b.fileDetail) == null ? void 0 : _c.fileBase64String}`,
2086
2086
  width: "100%",
2087
2087
  height: "100%"
2088
2088
  }
2089
- ),
2090
- src && /* @__PURE__ */ jsx34("iframe", { src, width: "100%", height: "100%" })
2089
+ ) : /* @__PURE__ */ jsx34("iframe", { src, width: "100%", height: "100%" })
2091
2090
  ] })
2092
2091
  }
2093
2092
  )
@@ -2,7 +2,7 @@ import {
2
2
  MyDataTable,
3
3
  MyFlexColumn,
4
4
  MyFlexRow
5
- } from "./chunk-KI4UPOLS.mjs";
5
+ } from "./chunk-O6CSSWCM.mjs";
6
6
  import {
7
7
  const_object_colors
8
8
  } from "./chunk-OMJJAHOC.mjs";
@@ -205,6 +205,7 @@ function MyButtonCreateUpdate({
205
205
  modalProps,
206
206
  actionIconProps,
207
207
  buttonProps,
208
+ submitButtonProps,
208
209
  form,
209
210
  onSubmit,
210
211
  onSuccess,
@@ -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(MyButton, __spreadValues({ fullWidth: true, actionType: "save" }, submitButtonProps))
311
312
  ]
312
313
  }
313
314
  )
@@ -67,7 +67,7 @@ import {
67
67
  useS_BasicAppShell,
68
68
  useS_ButtonImport,
69
69
  utils_layout_getItemsWithoutLinks
70
- } from "../chunk-KI4UPOLS.mjs";
70
+ } from "../chunk-O6CSSWCM.mjs";
71
71
  import "../chunk-U62R2QKJ.mjs";
72
72
  import "../chunk-5U2JSHSJ.mjs";
73
73
  import "../chunk-OMJJAHOC.mjs";
@@ -29,6 +29,7 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
29
29
  modalProps?: Omit<ModalProps, "opened" | "onClose">;
30
30
  actionIconProps?: ActionIconProps;
31
31
  buttonProps?: MyButtonProps;
32
+ submitButtonProps?: MyButtonProps;
32
33
  scrollAreaAutosizeProps?: ScrollAreaAutosizeProps;
33
34
  isUpdate?: boolean;
34
35
  onSubmit: (values: IReq) => Promise<AxiosResponse<MyApiResponse<IRes>>> | false | void;
@@ -42,7 +43,7 @@ interface CoreButtonCreateUpdateProps<IReq, IRes> {
42
43
  disclosure?: ReturnType<typeof useDisclosure>;
43
44
  children?: ReactNode;
44
45
  }
45
- declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, form, onSubmit, onSuccess, onError, ignoreDefaultOnError, ignoreDefaultOnSuccess, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, scrollAreaAutosizeProps, }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
46
+ declare function MyButtonCreateUpdate<IReq, IRes>({ modalProps, actionIconProps, buttonProps, submitButtonProps, form, onSubmit, onSuccess, onError, ignoreDefaultOnError, ignoreDefaultOnSuccess, closeModalWhenSubmit, resetFormWhenSubmit, children, disclosure: externalDisclosure, isUpdate, scrollAreaAutosizeProps, }: CoreButtonCreateUpdateProps<IReq, IRes>): react_jsx_runtime.JSX.Element;
46
47
 
47
48
  interface IFieldStructure {
48
49
  fieldCode?: string;
@@ -18,12 +18,12 @@ import {
18
18
  MyStatsCard,
19
19
  MyTextInput,
20
20
  MyWeeklySessionSchedulerPicker
21
- } from "../chunk-OKCPFSOJ.mjs";
21
+ } from "../chunk-QPJIX3IA.mjs";
22
22
  import "../chunk-GFEMKKFH.mjs";
23
23
  import {
24
24
  MyModalDelete
25
- } from "../chunk-MXQ76B6B.mjs";
26
- import "../chunk-KI4UPOLS.mjs";
25
+ } from "../chunk-4OHUYBAJ.mjs";
26
+ import "../chunk-O6CSSWCM.mjs";
27
27
  import "../chunk-U62R2QKJ.mjs";
28
28
  import "../chunk-5U2JSHSJ.mjs";
29
29
  import "../chunk-OMJJAHOC.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-MXQ76B6B.mjs";
4
- import "../chunk-KI4UPOLS.mjs";
3
+ } from "../chunk-4OHUYBAJ.mjs";
4
+ import "../chunk-O6CSSWCM.mjs";
5
5
  import "../chunk-U62R2QKJ.mjs";
6
6
  import "../chunk-5U2JSHSJ.mjs";
7
7
  import "../chunk-OMJJAHOC.mjs";
@@ -16,11 +16,11 @@ import {
16
16
  MyButton as MyButton2,
17
17
  MyDataTableSelectOne,
18
18
  MyTextInput as MyTextInput2
19
- } from "../chunk-OKCPFSOJ.mjs";
19
+ } from "../chunk-QPJIX3IA.mjs";
20
20
  import {
21
21
  const_object_documentTypes
22
22
  } from "../chunk-GFEMKKFH.mjs";
23
- import "../chunk-MXQ76B6B.mjs";
23
+ import "../chunk-4OHUYBAJ.mjs";
24
24
  import {
25
25
  F_authenticate_Logout,
26
26
  MyActionIconDelete,
@@ -46,7 +46,7 @@ import {
46
46
  groupToTwoLevels,
47
47
  useS_authenticate,
48
48
  utils_layout_getItemsWithoutLinks
49
- } from "../chunk-KI4UPOLS.mjs";
49
+ } from "../chunk-O6CSSWCM.mjs";
50
50
  import {
51
51
  createGenericStore
52
52
  } from "../chunk-U62R2QKJ.mjs";
package/package.json CHANGED
@@ -46,7 +46,7 @@
46
46
  "types": "./dist/coreService/index.d.mts"
47
47
  }
48
48
  },
49
- "version": "0.1.536",
49
+ "version": "0.1.538",
50
50
  "private": false,
51
51
  "files": [
52
52
  "dist"