aq-fe-framework 0.2.2 → 0.2.3

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,5 +1,5 @@
1
1
  import {
2
- createGenericStore,
2
+ createGenericStore as createGenericStore2,
3
3
  useAppStore,
4
4
  useStore_Permission,
5
5
  useStore_ProjectInfo
@@ -23,7 +23,7 @@ import {
23
23
  utils_text
24
24
  } from "./chunk-G75DH6JW.mjs";
25
25
  import {
26
- createGenericStore as createGenericStore2
26
+ createGenericStore
27
27
  } from "./chunk-BTITP4TN.mjs";
28
28
  import {
29
29
  const_object_colors,
@@ -2205,7 +2205,7 @@ function AQStatCard2({
2205
2205
  import { useEffect as useEffect5 } from "react";
2206
2206
 
2207
2207
  // src/components/Layouts/BasicAppShell/useStore_BasicAppShell.ts
2208
- var useStore = createGenericStore2({
2208
+ var useStore = createGenericStore({
2209
2209
  initialState: {
2210
2210
  menuCode: "",
2211
2211
  moduleCode: "Module code",
@@ -4627,7 +4627,7 @@ import { IconSearch as IconSearch3 } from "@tabler/icons-react";
4627
4627
  import { useEffect as useEffect17, useMemo as useMemo8, useState as useState17 } from "react";
4628
4628
 
4629
4629
  // src/modules-features/admin/core/accountManagement/useStore_AccountManagement.ts
4630
- var useStore2 = createGenericStore({
4630
+ var useStore2 = createGenericStore2({
4631
4631
  initialState: {}
4632
4632
  });
4633
4633
  function useStore_AccountManagement() {
@@ -7031,7 +7031,7 @@ import { useEffect as useEffect25 } from "react";
7031
7031
  import { useMutation as useMutation3 } from "@tanstack/react-query";
7032
7032
 
7033
7033
  // src/modules-features/admin/core/moduleConfig/useS_moduleConfig.ts
7034
- var useStore3 = createGenericStore2({
7034
+ var useStore3 = createGenericStore({
7035
7035
  initialState: {}
7036
7036
  });
7037
7037
  function useS_moduleConfig() {
@@ -7075,10 +7075,10 @@ function F_moduleConfig_Save({
7075
7075
  });
7076
7076
  }
7077
7077
  return /* @__PURE__ */ jsx109(
7078
- MyButton2,
7078
+ MyButton,
7079
7079
  {
7080
7080
  disabled: !form.isDirty(),
7081
- crudType: "save",
7081
+ actionType: "save",
7082
7082
  onClick: handleSave
7083
7083
  }
7084
7084
  );
@@ -7608,7 +7608,7 @@ function MyButton(_a) {
7608
7608
  const shouldHide = (() => {
7609
7609
  if (!isCheckPermission || !actionType2 || !permissionStore.state.currentPermissionPage || permissionStore.state.isSuperAdmin)
7610
7610
  return false;
7611
- return actionType2 === "create" && permissionStore.state.currentPermissionPage.isCreate === false || actionType2 === "update" && permissionStore.state.currentPermissionPage.isUpdate === false || actionType2 === "delete" && permissionStore.state.currentPermissionPage.isDelete === false || actionType2 === "print" && permissionStore.state.currentPermissionPage.isPrint === false || actionType2 === "export" && permissionStore.state.currentPermissionPage.isExport === false || actionType2 == "import" && permissionStore.state.currentPermissionPage.isCreate == false;
7611
+ return actionType2 === "create" && permissionStore.state.currentPermissionPage.isCreate === false || actionType2 === "update" && permissionStore.state.currentPermissionPage.isUpdate === false || actionType2 === "delete" && permissionStore.state.currentPermissionPage.isDelete === false || actionType2 === "print" && permissionStore.state.currentPermissionPage.isPrint === false || actionType2 === "export" && permissionStore.state.currentPermissionPage.isExport === false || actionType2 == "import" && permissionStore.state.currentPermissionPage.isCreate == false || actionType2 == "save" && permissionStore.state.currentPermissionPage.isUpdate == false;
7612
7612
  })();
7613
7613
  return /* @__PURE__ */ jsx114(Button13, __spreadProps(__spreadValues(__spreadValues({ hidden: shouldHide }, config4), rest), { children: children ? children : config4.children }));
7614
7614
  }
@@ -9696,7 +9696,7 @@ import { useRouter as useRouter4 } from "next/navigation.js";
9696
9696
  import { useEffect as useEffect34 } from "react";
9697
9697
 
9698
9698
  // src/modules-features/authenticate/useStore_Authenticate.ts
9699
- var useStore4 = createGenericStore2({
9699
+ var useStore4 = createGenericStore({
9700
9700
  initialState: { token: "", saveLogin: false, username: "", password: "", workingUnitId: 0, roleIds: [] },
9701
9701
  storageKey: "useStore_Authenticate"
9702
9702
  });
@@ -10531,7 +10531,7 @@ import Link4 from "next/link.js";
10531
10531
  import classes from "./css.module-5PSLDIPF.module.css";
10532
10532
 
10533
10533
  // src/components/Layouts/HeaderMegaMenu/HeaderMegaMenuStore.ts
10534
- var useStore5 = createGenericStore2({
10534
+ var useStore5 = createGenericStore({
10535
10535
  initialState: { name: "\u0110\u0103ng k\xFD kh\xF3a h\u1ECDc" },
10536
10536
  storageKey: "HeaderMegaMenuStore"
10537
10537
  });
@@ -65,7 +65,7 @@ import {
65
65
  getReadablePageIdSet,
66
66
  useHeaderMegaMenuStore,
67
67
  useStore_BasicAppShell
68
- } from "../chunk-6GM4ONZ2.mjs";
68
+ } from "../chunk-MSZEQG5H.mjs";
69
69
  import "../chunk-WW55EZ4B.mjs";
70
70
  import "../chunk-LZVUOVHO.mjs";
71
71
  import "../chunk-G75DH6JW.mjs";
@@ -37,7 +37,7 @@ import {
37
37
  MyStatsCard,
38
38
  MyTextInput2 as MyTextInput,
39
39
  MyWeeklySessionSchedulerPicker
40
- } from "../chunk-6GM4ONZ2.mjs";
40
+ } from "../chunk-MSZEQG5H.mjs";
41
41
  import "../chunk-WW55EZ4B.mjs";
42
42
  import "../chunk-LZVUOVHO.mjs";
43
43
  import "../chunk-G75DH6JW.mjs";
@@ -64,7 +64,7 @@ import {
64
64
  UserAvatarMenu,
65
65
  useS_moduleConfig,
66
66
  useStore_Authenticate
67
- } from "../chunk-6GM4ONZ2.mjs";
67
+ } from "../chunk-MSZEQG5H.mjs";
68
68
  import "../chunk-WW55EZ4B.mjs";
69
69
  import "../chunk-LZVUOVHO.mjs";
70
70
  import "../chunk-G75DH6JW.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DocTypeSelect,
3
3
  MySelect
4
- } from "../chunk-6GM4ONZ2.mjs";
4
+ } from "../chunk-MSZEQG5H.mjs";
5
5
  import "../chunk-WW55EZ4B.mjs";
6
6
  import "../chunk-LZVUOVHO.mjs";
7
7
  import {
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "types": "./dist/zod-schemas/index.d.mts"
59
59
  }
60
60
  },
61
- "version": "0.2.2",
61
+ "version": "0.2.3",
62
62
  "private": false,
63
63
  "files": [
64
64
  "dist"