aq-fe-framework 0.1.741 → 0.1.743

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,3 +1,7 @@
1
+ import {
2
+ createGenericStore,
3
+ useStore_Permission
4
+ } from "./chunk-SUH3FFFV.mjs";
1
5
  import {
2
6
  U0MyValidateEmail,
3
7
  utils_aq_mapBaseEntityToDomain,
@@ -12,10 +16,6 @@ import {
12
16
  utils_mantineReactTable_sortColumnsByKeyOrder,
13
17
  utils_pdf_download
14
18
  } from "./chunk-2B2FKBKX.mjs";
15
- import {
16
- createGenericStore,
17
- useStore_Permission
18
- } from "./chunk-SUH3FFFV.mjs";
19
19
  import {
20
20
  baseColumns
21
21
  } from "./chunk-O7YCQQO5.mjs";
@@ -8707,32 +8707,41 @@ function normalizePath(path) {
8707
8707
  if (!path) return "";
8708
8708
  return path.replace(/\/+$/, "");
8709
8709
  }
8710
- function RenderNavLinks({ items }) {
8711
- const router = useRouter3();
8710
+ function RenderNavLinks({
8711
+ items
8712
+ }) {
8712
8713
  const pathName = usePathname2();
8714
+ const router = useRouter3();
8713
8715
  const basicAppShellStore = useStore_BasicAppShell();
8714
8716
  const extractPathName = pathName.split("/").slice(2).join("/");
8715
- return /* @__PURE__ */ jsx75(Fragment16, { children: items.map((item, index) => /* @__PURE__ */ jsx75(
8716
- NavLink,
8717
- {
8718
- active: normalizePath(extractPathName) === normalizePath(item.link),
8719
- opened: basicAppShellStore.state.groupMenuOpenId.includes(item.label),
8720
- label: /* @__PURE__ */ jsxs40(MyFlexRow, { justify: "space-between", children: [
8721
- item.label,
8722
- getRightSection(item.status)
8723
- ] }),
8724
- childrenOffset: 28,
8725
- onClick: (e4) => {
8726
- if (item.links) {
8727
- basicAppShellStore.toggleGroupMenuOpenId(item.label);
8728
- return;
8729
- }
8730
- router.push(`/${pathName.split("/")[1]}/${normalizePath(item.link)}`);
8717
+ return /* @__PURE__ */ jsx75(Fragment16, { children: items.map((item, index) => {
8718
+ const targetPath = `/${pathName.split("/")[1]}/${normalizePath(
8719
+ item.link
8720
+ )}`;
8721
+ return /* @__PURE__ */ jsx75(
8722
+ NavLink,
8723
+ {
8724
+ active: normalizePath(extractPathName) === normalizePath(item.link),
8725
+ opened: basicAppShellStore.state.groupMenuOpenId.includes(
8726
+ item.label
8727
+ ),
8728
+ label: /* @__PURE__ */ jsxs40(MyFlexRow, { justify: "space-between", children: [
8729
+ item.label,
8730
+ getRightSection(item.status)
8731
+ ] }),
8732
+ childrenOffset: 28,
8733
+ onClick: () => {
8734
+ if (item.links) {
8735
+ basicAppShellStore.toggleGroupMenuOpenId(item.label);
8736
+ } else {
8737
+ router.push(targetPath);
8738
+ }
8739
+ },
8740
+ children: item.links && /* @__PURE__ */ jsx75(RenderNavLinks, { items: item.links })
8731
8741
  },
8732
- children: item.links && /* @__PURE__ */ jsx75(RenderNavLinks, { items: item.links })
8733
- },
8734
- index
8735
- )) });
8742
+ index
8743
+ );
8744
+ }) });
8736
8745
  }
8737
8746
 
8738
8747
  // src/api/services/service_page.ts
@@ -70,9 +70,9 @@ import {
70
70
  useHeaderMegaMenuStore,
71
71
  useS_ButtonImport,
72
72
  useStore_BasicAppShell
73
- } from "../chunk-4OVMAQSQ.mjs";
74
- import "../chunk-2B2FKBKX.mjs";
73
+ } from "../chunk-5XNZXLX3.mjs";
75
74
  import "../chunk-SUH3FFFV.mjs";
75
+ import "../chunk-2B2FKBKX.mjs";
76
76
  import "../chunk-O7YCQQO5.mjs";
77
77
  import "../chunk-QSWIVDXC.mjs";
78
78
  import "../chunk-IUTUR43V.mjs";
@@ -25,9 +25,9 @@ import {
25
25
  MyStatsCard,
26
26
  MyTextInput2 as MyTextInput,
27
27
  MyWeeklySessionSchedulerPicker
28
- } from "../chunk-4OVMAQSQ.mjs";
29
- import "../chunk-2B2FKBKX.mjs";
28
+ } from "../chunk-5XNZXLX3.mjs";
30
29
  import "../chunk-SUH3FFFV.mjs";
30
+ import "../chunk-2B2FKBKX.mjs";
31
31
  import "../chunk-O7YCQQO5.mjs";
32
32
  import "../chunk-QSWIVDXC.mjs";
33
33
  import "../chunk-IUTUR43V.mjs";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-4OVMAQSQ.mjs";
4
- import "../chunk-2B2FKBKX.mjs";
3
+ } from "../chunk-5XNZXLX3.mjs";
5
4
  import "../chunk-SUH3FFFV.mjs";
5
+ import "../chunk-2B2FKBKX.mjs";
6
6
  import "../chunk-O7YCQQO5.mjs";
7
7
  import "../chunk-QSWIVDXC.mjs";
8
8
  import "../chunk-IUTUR43V.mjs";
@@ -112,9 +112,9 @@ import {
112
112
  MailTemplateDeleteButton,
113
113
  useS_authenticate,
114
114
  useS_moduleConfig
115
- } from "../chunk-4OVMAQSQ.mjs";
116
- import "../chunk-2B2FKBKX.mjs";
115
+ } from "../chunk-5XNZXLX3.mjs";
117
116
  import "../chunk-SUH3FFFV.mjs";
117
+ import "../chunk-2B2FKBKX.mjs";
118
118
  import "../chunk-O7YCQQO5.mjs";
119
119
  import "../chunk-QSWIVDXC.mjs";
120
120
  import "../chunk-IUTUR43V.mjs";
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  "types": "./dist/types/index.d.mts"
51
51
  }
52
52
  },
53
- "version": "0.1.741",
53
+ "version": "0.1.743",
54
54
  "private": false,
55
55
  "files": [
56
56
  "dist"