aq-fe-framework 0.1.458 → 0.1.460

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.
@@ -670,7 +670,9 @@ declare function F_organizationPolicyDocs_Update({ values, RegulationsTypeId, }:
670
670
  RegulationsTypeId: number;
671
671
  }): react_jsx_runtime.JSX.Element;
672
672
 
673
- declare function F_pageContentConfig(): react_jsx_runtime.JSX.Element;
673
+ declare function F_pageContentConfig({ menudataPrototype }: {
674
+ menudataPrototype?: I_BasicAppShell_LinkItem[];
675
+ }): react_jsx_runtime.JSX.Element;
674
676
 
675
677
  declare function F_roleCatalog(): react_jsx_runtime.JSX.Element;
676
678
 
@@ -11,6 +11,9 @@ import {
11
11
  import {
12
12
  U0DateToDDMMYYYString
13
13
  } from "../chunk-EWDS5IOF.mjs";
14
+ import {
15
+ enum_emailConfigModule
16
+ } from "../chunk-VH4ZAD6M.mjs";
14
17
  import {
15
18
  MyButton as MyButton2,
16
19
  MyDataTableSelectOne,
@@ -52,9 +55,6 @@ import {
52
55
  import {
53
56
  const_object_colors
54
57
  } from "../chunk-OMJJAHOC.mjs";
55
- import {
56
- enum_emailConfigModule
57
- } from "../chunk-VH4ZAD6M.mjs";
58
58
  import "../chunk-K6S7R6LU.mjs";
59
59
  import {
60
60
  baseAxios_default,
@@ -4467,11 +4467,14 @@ function F_pageContentConfig_Save({ menuValues }) {
4467
4467
 
4468
4468
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
4469
4469
  import { jsx as jsx85, jsxs as jsxs54 } from "react/jsx-runtime";
4470
- function F_pageContentConfig_ReadMenu() {
4470
+ function F_pageContentConfig_ReadMenu({ menudataPrototype }) {
4471
4471
  const pageContentQuery = useMyReactQuery({
4472
4472
  queryKey: ["pageContents"],
4473
4473
  axiosFn: () => service_pageContent.getAll(),
4474
- mockData: mockData4
4474
+ mockData: groupToTwoLevels(menudataPrototype || []).flatMap((item) => item.links).map((item) => ({
4475
+ name: item == null ? void 0 : item.label,
4476
+ description: ""
4477
+ }))
4475
4478
  });
4476
4479
  const device = useMyDevice();
4477
4480
  const columns = useMemo18(() => [
@@ -4503,15 +4506,11 @@ function F_pageContentConfig_ReadMenu() {
4503
4506
  }
4504
4507
  );
4505
4508
  }
4506
- var mockData4 = groupToTwoLevels(menuData).flatMap((item) => item.links).map((item) => ({
4507
- name: item == null ? void 0 : item.label,
4508
- description: ""
4509
- }));
4510
4509
 
4511
4510
  // src/modules-features/admin/core/pageContentConfig/F_pageContentConfig.tsx
4512
4511
  import { jsx as jsx86 } from "react/jsx-runtime";
4513
- function F_pageContentConfig() {
4514
- return /* @__PURE__ */ jsx86(F_pageContentConfig_ReadMenu, {});
4512
+ function F_pageContentConfig({ menudataPrototype }) {
4513
+ return /* @__PURE__ */ jsx86(F_pageContentConfig_ReadMenu, { menudataPrototype });
4515
4514
  }
4516
4515
 
4517
4516
  // src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
@@ -4588,13 +4587,13 @@ function useQ_core47643_GetAdminRole2() {
4588
4587
  queryKey: ["useQ_core47643_GetAdminRole"],
4589
4588
  queryFn: async () => {
4590
4589
  const res = await baseAxios_default.get("/Role/GetAdminRole");
4591
- if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData5;
4590
+ if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData4;
4592
4591
  return res.data.data;
4593
4592
  }
4594
4593
  });
4595
4594
  return query;
4596
4595
  }
4597
- var mockData5 = [
4596
+ var mockData4 = [
4598
4597
  {
4599
4598
  "aqModuleId": 3,
4600
4599
  "id": 6,
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.458",
45
+ "version": "0.1.460",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"