aq-fe-framework 0.1.181 → 0.1.183

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,7 +1,7 @@
1
1
  import {
2
2
  baseAxios_default,
3
3
  useQ_AQ_GetAQModule
4
- } from "./chunk-PPIWRJB2.mjs";
4
+ } from "./chunk-Z6OQG54Q.mjs";
5
5
  import {
6
6
  createGenericStore
7
7
  } from "./chunk-Y3YGC5IH.mjs";
@@ -6981,7 +6981,7 @@ import {
6981
6981
  } from "@tabler/icons-react";
6982
6982
  import Link3 from "next/link";
6983
6983
  import { usePathname as usePathname2 } from "next/navigation";
6984
- import { useEffect as useEffect9, useState as useState9 } from "react";
6984
+ import { useState as useState9 } from "react";
6985
6985
  import { Fragment as Fragment12, jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
6986
6986
  function getRightSection(status) {
6987
6987
  if (status === "Prototype")
@@ -6996,7 +6996,9 @@ function getRightSection(status) {
6996
6996
  }
6997
6997
  function RenderNavLinks({ items }) {
6998
6998
  const basicAppShellStore = useS_BasicAppShell();
6999
+ const faviconState = useState9("");
6999
7000
  const pathName = usePathname2();
7001
+ useFavicon(faviconState[0]);
7000
7002
  return /* @__PURE__ */ jsx51(Fragment12, { children: items.map((item, index) => /* @__PURE__ */ jsx51(
7001
7003
  NavLink,
7002
7004
  {
@@ -7008,6 +7010,9 @@ function RenderNavLinks({ items }) {
7008
7010
  label: item.label,
7009
7011
  childrenOffset: 28,
7010
7012
  onClick: () => {
7013
+ var _a, _b;
7014
+ faviconState[1](`data:image/${(_a = basicAppShellStore.state.faviconFileDetail) == null ? void 0 : _a.fileExtension};base64,
7015
+ ${(_b = basicAppShellStore.state.faviconFileDetail) == null ? void 0 : _b.fileBase64String}`);
7011
7016
  if (item.links) basicAppShellStore.toggleGroupMenuOpenId(item.label);
7012
7017
  if (item.link) {
7013
7018
  basicAppShellStore.setProperty("menuCode", item.link);
@@ -7070,22 +7075,7 @@ function BasicAppShell_transformMenuToEnum(prefixProjectName, menu) {
7070
7075
  function BasicAppShell({ children, menu, extraTopRight }) {
7071
7076
  var _a, _b;
7072
7077
  const basicAppShellStore = useS_BasicAppShell();
7073
- const GetAQModule_query = useQ_AQ_GetAQModule();
7074
7078
  const media = useMediaQuery("(min-width: 72em)");
7075
- const selectMedia = useMediaQuery("(min-width: 80em)");
7076
- const BasicAppShell_store = useS_BasicAppShell();
7077
- const [favicon, setFavicon] = useState9("");
7078
- useFavicon(favicon);
7079
- useEffect9(() => {
7080
- var _a2, _b2, _c, _d;
7081
- if (!GetAQModule_query.data) return;
7082
- BasicAppShell_store.setProperty("moduleCode", (_a2 = GetAQModule_query.data) == null ? void 0 : _a2.code);
7083
- BasicAppShell_store.setProperty("moduleName", (_b2 = GetAQModule_query.data) == null ? void 0 : _b2.name);
7084
- BasicAppShell_store.setProperty("faviconFileDetail", GetAQModule_query.data.faviconFileDetail);
7085
- BasicAppShell_store.setProperty("logoFileDetail", GetAQModule_query.data.logoFileDetail);
7086
- setFavicon(`data:image/${(_c = BasicAppShell_store.state.faviconFileDetail) == null ? void 0 : _c.fileExtension};base64,
7087
- ${(_d = BasicAppShell_store.state.faviconFileDetail) == null ? void 0 : _d.fileBase64String}`);
7088
- }, [GetAQModule_query.data, basicAppShellStore.state.faviconFileDetail]);
7089
7079
  return /* @__PURE__ */ jsxs27(
7090
7080
  AppShell,
7091
7081
  {
@@ -1,6 +1,3 @@
1
- // src/hooks/custom-hooks/useC_MutationAction.tsx
2
- import { useQueryClient } from "@tanstack/react-query";
3
-
4
1
  // src/api/baseAxios.ts
5
2
  import axios from "axios";
6
3
  var baseAxios = axios.create({
@@ -66,8 +66,8 @@ import {
66
66
  useS_BasicAppShell,
67
67
  useS_ButtonImport,
68
68
  utils_layout_getItemsWithoutLinks
69
- } from "../chunk-SD2FZPOC.mjs";
70
- import "../chunk-PPIWRJB2.mjs";
69
+ } from "../chunk-GS7KP6QK.mjs";
70
+ import "../chunk-Z6OQG54Q.mjs";
71
71
  import "../chunk-Y3YGC5IH.mjs";
72
72
  import "../chunk-5U2JSHSJ.mjs";
73
73
  import "../chunk-7ZCOFATU.mjs";
@@ -1,8 +1,11 @@
1
1
  import {
2
2
  useQ_AQ_GetAQModule
3
- } from "../chunk-PPIWRJB2.mjs";
3
+ } from "../chunk-Z6OQG54Q.mjs";
4
4
  import "../chunk-7ZCOFATU.mjs";
5
5
  import "../chunk-FWCSY2DS.mjs";
6
+
7
+ // src/hooks/custom-hooks/useC_MutationAction.tsx
8
+ import { useQueryClient } from "@tanstack/react-query";
6
9
  export {
7
10
  useQ_AQ_GetAQModule
8
11
  };
@@ -25,11 +25,11 @@ import {
25
25
  useS_BasicAppShell,
26
26
  useS_authenticate,
27
27
  utils_layout_getItemsWithoutLinks
28
- } from "../chunk-SD2FZPOC.mjs";
28
+ } from "../chunk-GS7KP6QK.mjs";
29
29
  import {
30
30
  baseAxios_default,
31
31
  useQ_AQ_GetAQModule
32
- } from "../chunk-PPIWRJB2.mjs";
32
+ } from "../chunk-Z6OQG54Q.mjs";
33
33
  import {
34
34
  createGenericStore
35
35
  } from "../chunk-Y3YGC5IH.mjs";
@@ -2236,7 +2236,7 @@ function F_core60524_Form() {
2236
2236
  {
2237
2237
  fit: "contain",
2238
2238
  src: `data:image/${(_c = basicAppShell_store.state.logoFileDetail) == null ? void 0 : _c.fileExtension};base64,
2239
- ${(_d = basicAppShell_store.state.logoFileDetail) == null ? void 0 : _d.fileBase64String}`,
2239
+ ${(_d = basicAppShell_store.state.logoFileDetail) == null ? void 0 : _d.fileBase64String}`,
2240
2240
  h: "115px",
2241
2241
  fallbackSrc: "https://placehold.co/600x400?text=Placeholder",
2242
2242
  alt: "Main logo",
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/hooks/index.d.mts"
23
23
  }
24
24
  },
25
- "version": "0.1.181",
25
+ "version": "0.1.183",
26
26
  "private": false,
27
27
  "files": [
28
28
  "dist"