aq-fe-framework 0.1.631 → 0.1.632

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.
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  const_object_colors,
24
24
  const_object_documentTypes
25
- } from "./chunk-5DUXSUE3.mjs";
25
+ } from "./chunk-YYH7V6LN.mjs";
26
26
  import {
27
27
  enum_daysOfWeek,
28
28
  enum_emailConfigModule
@@ -663,7 +663,7 @@ function MyButtonViewFile({
663
663
 
664
664
  // src/core/button/MyButtonImport/MyButtonImport.tsx
665
665
  import { Modal as Modal18, useModalsStack as useModalsStack4 } from "@mantine/core";
666
- import { useState as useState22 } from "react";
666
+ import { useState as useState23 } from "react";
667
667
 
668
668
  // src/lib/utils.ts
669
669
  import { clsx } from "clsx";
@@ -7856,7 +7856,7 @@ import {
7856
7856
  IconLibraryMinus
7857
7857
  } from "@tabler/icons-react";
7858
7858
  import { usePathname as usePathname3 } from "next/navigation";
7859
- import { useEffect as useEffect22, useMemo as useMemo32, useState as useState19 } from "react";
7859
+ import { useEffect as useEffect24, useMemo as useMemo32, useState as useState20 } from "react";
7860
7860
 
7861
7861
  // src/components/Layouts/BasicAppShell/RenderNavLinks.tsx
7862
7862
  import { Badge as Badge3, NavLink } from "@mantine/core";
@@ -8029,6 +8029,18 @@ var service_role = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER3, b
8029
8029
  { params }
8030
8030
  );
8031
8031
  },
8032
+ removeUsersFromRole: ({
8033
+ roleId,
8034
+ userIds
8035
+ }) => {
8036
+ return baseAxios_default.post(
8037
+ CONTROLLER3 + "/RemoveUsersFromRole",
8038
+ userIds,
8039
+ // body
8040
+ { params: { roleId } }
8041
+ // query param
8042
+ );
8043
+ },
8032
8044
  getUserByRole: (params) => {
8033
8045
  return baseAxios_default.get(CONTROLLER3 + "/GetUserByRole", {
8034
8046
  params
@@ -12849,6 +12861,8 @@ function Adapter_UserTable(_a) {
12849
12861
  return /* @__PURE__ */ jsx168(
12850
12862
  UseCase_UserTable,
12851
12863
  __spreadValues({
12864
+ isLoading: adminAccountQuery.isLoading,
12865
+ isError: adminAccountQuery.isError,
12852
12866
  getRowId: (row) => row.id,
12853
12867
  data: ((_a2 = adminAccountQuery.data) == null ? void 0 : _a2.map(mapper_user.mapToDomain)) || []
12854
12868
  }, rest)
@@ -12857,25 +12871,59 @@ function Adapter_UserTable(_a) {
12857
12871
 
12858
12872
  // src/modules/User/adapter/Adapter_UserAddToRole.tsx
12859
12873
  import { useDisclosure as useDisclosure15 } from "@mantine/hooks";
12860
- import { useState as useState18 } from "react";
12874
+ import { notifications as notifications2 } from "@mantine/notifications";
12875
+ import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
12876
+ import { useEffect as useEffect20, useState as useState18 } from "react";
12861
12877
  import { jsx as jsx169 } from "react/jsx-runtime";
12862
12878
  function Adapter_UserAddToRole({
12863
- roleId
12879
+ roleId,
12880
+ userIds
12864
12881
  }) {
12882
+ const queryClient = useQueryClient4();
12865
12883
  const disc = useDisclosure15();
12866
12884
  const userSelectedId = useState18({});
12867
- const mutation = useMyReactMutation({
12868
- axiosFn: async ({ userIds, roleId: roleId2 }) => {
12869
- return service_role.addUsers({ roleId: roleId2 }, userIds);
12885
+ const [defaultSelectedIds, setDefaultSelectedIds] = useState18([]);
12886
+ const selectedIds = Object.keys(userSelectedId[0]).map(Number);
12887
+ const toAdd = selectedIds.filter((id) => !defaultSelectedIds.includes(id));
12888
+ const toRemove = defaultSelectedIds.filter((id) => !selectedIds.includes(id));
12889
+ const createMutation = useMyReactMutation({
12890
+ axiosFn: async ({ userIds: userIds2, roleId: roleId2 }) => {
12891
+ return service_role.addUsers({ roleId: roleId2 }, userIds2);
12870
12892
  },
12871
- successNotification: "Th\xEAm ng\u01B0\u1EDDi d\xF9ng v\xE0o nh\xF3m quy\u1EC1n th\xE0nh c\xF4ng! (Gi\u1EA3 l\u1EADp)",
12872
12893
  options: {
12873
12894
  onSuccess: () => {
12874
12895
  disc[1].close();
12875
- userSelectedId[1]({});
12896
+ queryClient.invalidateQueries();
12876
12897
  }
12877
- }
12898
+ },
12899
+ enableDefaultSuccess: false
12900
+ });
12901
+ const removeMutation = useMyReactMutation({
12902
+ axiosFn: async ({ userIds: userIds2, roleId: roleId2 }) => {
12903
+ return service_role.removeUsersFromRole({ roleId: roleId2, userIds: userIds2 });
12904
+ },
12905
+ options: {
12906
+ onSuccess: () => {
12907
+ disc[1].close();
12908
+ queryClient.invalidateQueries();
12909
+ notifications2.show({
12910
+ message: "C\u1EADp nh\u1EADt th\xE0nh c\xF4ng",
12911
+ color: "green"
12912
+ });
12913
+ }
12914
+ },
12915
+ enableDefaultSuccess: false
12878
12916
  });
12917
+ useEffect20(() => {
12918
+ if (userIds == null ? void 0 : userIds.length) {
12919
+ const selected = userIds.reduce((acc, id) => {
12920
+ acc[id] = true;
12921
+ return acc;
12922
+ }, {});
12923
+ userSelectedId[1](selected);
12924
+ setDefaultSelectedIds(userIds);
12925
+ }
12926
+ }, [userIds]);
12879
12927
  return /* @__PURE__ */ jsx169(
12880
12928
  MyButtonModal,
12881
12929
  {
@@ -12893,10 +12941,16 @@ function Adapter_UserAddToRole({
12893
12941
  MyButton,
12894
12942
  {
12895
12943
  actionType: "select",
12896
- onClick: () => mutation.mutate({
12897
- roleId,
12898
- userIds: Object.keys(userSelectedId[0]).map(Number)
12899
- })
12944
+ onClick: () => {
12945
+ createMutation.mutate({
12946
+ roleId,
12947
+ userIds: toAdd
12948
+ });
12949
+ removeMutation.mutate({
12950
+ roleId,
12951
+ userIds: toRemove
12952
+ });
12953
+ }
12900
12954
  }
12901
12955
  )
12902
12956
  }
@@ -12905,14 +12959,17 @@ function Adapter_UserAddToRole({
12905
12959
  );
12906
12960
  }
12907
12961
 
12908
- // src/modules/User/adapter/Adapter_UserDelete.tsx
12962
+ // src/modules/User/adapter/Adapter_UserDeleteFromRole.tsx
12909
12963
  import { jsx as jsx170 } from "react/jsx-runtime";
12910
- function Adapter_UserDelete() {
12911
- return /* @__PURE__ */ jsx170(MyActionIconDelete, { onSubmit: () => {
12912
- } });
12964
+ function Adapter_UserDeleteFromRole({
12965
+ roleId,
12966
+ userId
12967
+ }) {
12968
+ return /* @__PURE__ */ jsx170(MyActionIconDelete, { onSubmit: () => service_role.removeUsersFromRole({ roleId, userIds: [userId] }) });
12913
12969
  }
12914
12970
 
12915
12971
  // src/modules/User/adapter/Adapter_UserTableByRole.tsx
12972
+ import { useEffect as useEffect21 } from "react";
12916
12973
  import { jsx as jsx171 } from "react/jsx-runtime";
12917
12974
  function Adapter_UserTableByRole(_a) {
12918
12975
  var _b = _a, { byRoleId } = _b, rest = __objRest(_b, ["byRoleId"]);
@@ -12923,9 +12980,17 @@ function Adapter_UserTableByRole(_a) {
12923
12980
  return service_role.getUserByRole({ roleId: byRoleId });
12924
12981
  }
12925
12982
  });
12983
+ useEffect21(() => {
12984
+ if (adminAccountQuery.data && rest.onUserLoad) {
12985
+ const users = adminAccountQuery.data.map(mapper_user.mapToDomain);
12986
+ rest.onUserLoad(users);
12987
+ }
12988
+ }, [adminAccountQuery.data]);
12926
12989
  return /* @__PURE__ */ jsx171(
12927
12990
  UseCase_UserTable,
12928
12991
  __spreadValues({
12992
+ isLoading: adminAccountQuery.isLoading,
12993
+ isError: adminAccountQuery.isError,
12929
12994
  getRowId: (row) => row.id,
12930
12995
  data: ((_a2 = adminAccountQuery.data) == null ? void 0 : _a2.map(mapper_user.mapToDomain)) || []
12931
12996
  }, rest)
@@ -12935,10 +13000,12 @@ function Adapter_UserTableByRole(_a) {
12935
13000
  // src/modules-features/admin/core/roleManagement/features/Feat_CreateUpdateRole.tsx
12936
13001
  import { Tabs as Tabs3 } from "@mantine/core";
12937
13002
  import { useDisclosure as useDisclosure16 } from "@mantine/hooks";
13003
+ import { useState as useState19 } from "react";
12938
13004
  import { jsx as jsx172, jsxs as jsxs95 } from "react/jsx-runtime";
12939
13005
  function Feat_CreateUpdateRole({ values }) {
12940
13006
  const isUpdate = values != void 0;
12941
13007
  const disc = useDisclosure16();
13008
+ const userIds = useState19([]);
12942
13009
  return /* @__PURE__ */ jsx172(
12943
13010
  MyButtonModal,
12944
13011
  {
@@ -12957,14 +13024,19 @@ function Feat_CreateUpdateRole({ values }) {
12957
13024
  Adapter_UserTableByRole,
12958
13025
  {
12959
13026
  byRoleId: Number(values == null ? void 0 : values.id),
13027
+ onUserLoad: (users) => {
13028
+ const ids = users.map((user) => Number(user.id));
13029
+ userIds[1](ids);
13030
+ },
12960
13031
  visibleFields: ["code", "userFullName", "unit"],
12961
13032
  renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx172(
12962
13033
  Adapter_UserAddToRole,
12963
13034
  {
12964
- roleId: Number(values == null ? void 0 : values.id)
13035
+ roleId: Number(values == null ? void 0 : values.id),
13036
+ userIds: userIds[0]
12965
13037
  }
12966
13038
  ),
12967
- renderRowActions: () => /* @__PURE__ */ jsx172(MyCenterFull, { children: /* @__PURE__ */ jsx172(Adapter_UserDelete, {}) })
13039
+ renderRowActions: ({ row }) => /* @__PURE__ */ jsx172(MyCenterFull, { children: /* @__PURE__ */ jsx172(Adapter_UserDeleteFromRole, { roleId: Number(values == null ? void 0 : values.id), userId: Number(row.original.id) }) })
12968
13040
  }
12969
13041
  ) }) })
12970
13042
  ] })
@@ -13951,11 +14023,11 @@ import {
13951
14023
  Title
13952
14024
  } from "@mantine/core";
13953
14025
  import { useForm as useForm39 } from "@mantine/form";
13954
- import { notifications as notifications2 } from "@mantine/notifications";
14026
+ import { notifications as notifications3 } from "@mantine/notifications";
13955
14027
  import { useMutation as useMutation5 } from "@tanstack/react-query";
13956
14028
  import Link4 from "next/link";
13957
14029
  import { useRouter as useRouter3 } from "next/navigation";
13958
- import { useEffect as useEffect20 } from "react";
14030
+ import { useEffect as useEffect22 } from "react";
13959
14031
 
13960
14032
  // src/modules-features/authenticate/useS_authenticate.ts
13961
14033
  var useStore5 = createGenericStore({
@@ -13996,7 +14068,7 @@ function Feat_Authenticate_Login({
13996
14068
  password: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
13997
14069
  }
13998
14070
  });
13999
- useEffect20(() => {
14071
+ useEffect22(() => {
14000
14072
  var _a;
14001
14073
  form.setValues({
14002
14074
  username: ((_a = authenticate_store.state) == null ? void 0 : _a.username) || "",
@@ -14044,7 +14116,7 @@ function Feat_Authenticate_Login({
14044
14116
  router.replace(redirectUrlAfterLogin);
14045
14117
  },
14046
14118
  onError: (error) => {
14047
- notifications2.show({
14119
+ notifications3.show({
14048
14120
  message: "C\xF3 l\u1ED7i x\u1EA3y ra vui l\xF2ng th\u1EED l\u1EA1i",
14049
14121
  color: "red"
14050
14122
  });
@@ -14137,12 +14209,12 @@ function Feat_Authenticate_Logout({ redirectURL = "/auth/login" }) {
14137
14209
 
14138
14210
  // src/modules-features/authenticate/F_authenticate_SplashPage.tsx
14139
14211
  import { useRouter as useRouter5 } from "next/navigation";
14140
- import { useEffect as useEffect21 } from "react";
14212
+ import { useEffect as useEffect23 } from "react";
14141
14213
  import { jsx as jsx195 } from "react/jsx-runtime";
14142
14214
  function F_authenticate_SplashPage() {
14143
14215
  const router = useRouter5();
14144
14216
  const S_Authenticate = useS_authenticate();
14145
- useEffect21(() => {
14217
+ useEffect23(() => {
14146
14218
  if (S_Authenticate.state.token == "") {
14147
14219
  router.push("/authenticate/login");
14148
14220
  return;
@@ -14353,9 +14425,9 @@ function BasicAppShell({ children, menu, extraTopRight, title, logoutRedirect, i
14353
14425
  const permissionStore = useStore_Permission();
14354
14426
  const appShellStore = useStore_BasicAppShell();
14355
14427
  const { data: moduleData } = useQ_AQ_GetAQModule();
14356
- const [faviconUrl, setFaviconUrl] = useState19("");
14357
- const [isLoadingPermission, setIsLoadingPermission] = useState19(true);
14358
- const [isAccessible, setIsAccessible] = useState19(false);
14428
+ const [faviconUrl, setFaviconUrl] = useState20("");
14429
+ const [isLoadingPermission, setIsLoadingPermission] = useState20(true);
14430
+ const [isAccessible, setIsAccessible] = useState20(false);
14359
14431
  const readablePageIds = useMemo32(
14360
14432
  () => getReadablePageIdSet(permissionStore.state.permission || []),
14361
14433
  [permissionStore.state.permission]
@@ -14379,7 +14451,7 @@ function BasicAppShell({ children, menu, extraTopRight, title, logoutRedirect, i
14379
14451
  return result;
14380
14452
  }, [filteredMenu]);
14381
14453
  useFavicon(faviconUrl);
14382
- useEffect22(() => {
14454
+ useEffect24(() => {
14383
14455
  if (!moduleData) return;
14384
14456
  const { code, name, faviconFileDetail, logoFileDetail } = moduleData;
14385
14457
  appShellStore.setProperty("moduleCode", code);
@@ -14392,12 +14464,12 @@ function BasicAppShell({ children, menu, extraTopRight, title, logoutRedirect, i
14392
14464
  return () => URL.revokeObjectURL(url);
14393
14465
  }
14394
14466
  }, [moduleData]);
14395
- useEffect22(() => {
14467
+ useEffect24(() => {
14396
14468
  if (moduleData == null ? void 0 : moduleData.name) {
14397
14469
  document.title = moduleData.name;
14398
14470
  }
14399
14471
  }, [moduleData == null ? void 0 : moduleData.name]);
14400
- useEffect22(() => {
14472
+ useEffect24(() => {
14401
14473
  var _a, _b, _c;
14402
14474
  const currentItem = allChildItems.find((item) => pathname.includes(item.link));
14403
14475
  const currentPermission = (_a = permissionStore.state.permission) == null ? void 0 : _a.find((item) => item.pageId == (currentItem == null ? void 0 : currentItem.pageId));
@@ -14805,7 +14877,7 @@ function MySelectAPIGet(_a) {
14805
14877
  // src/components/ScheduleX/MyScheduleX.tsx
14806
14878
  import { useNextCalendarApp as useNextCalendarApp2, ScheduleXCalendar as ScheduleXCalendar2 } from "@schedule-x/react";
14807
14879
  import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
14808
- import { useState as useState20 } from "react";
14880
+ import { useState as useState21 } from "react";
14809
14881
  import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
14810
14882
  import { jsx as jsx204 } from "react/jsx-runtime";
14811
14883
  function MyScheduleX({
@@ -14816,8 +14888,8 @@ function MyScheduleX({
14816
14888
  startDayBoundaries = "05:00",
14817
14889
  endDayBoundaries = "21:00"
14818
14890
  }) {
14819
- const eventsService = useState20(() => createEventsServicePlugin2())[0];
14820
- const eventModalPlugin = useState20(() => createEventModalPlugin2())[0];
14891
+ const eventsService = useState21(() => createEventsServicePlugin2())[0];
14892
+ const eventModalPlugin = useState21(() => createEventModalPlugin2())[0];
14821
14893
  const calendar = useNextCalendarApp2({
14822
14894
  locale: "vi-VN",
14823
14895
  dayBoundaries: {
@@ -14853,8 +14925,8 @@ function MySkeletonTable({ h: h4 = 500 }) {
14853
14925
 
14854
14926
  // src/core/button/MyButtonImport/MyFileImportConfigModal.tsx
14855
14927
  import { Button as Button27, FileInput as FileInput16, Flex as Flex9, Modal as Modal16, NumberInput as NumberInput3, SimpleGrid as SimpleGrid4, Stack as Stack8 } from "@mantine/core";
14856
- import { notifications as notifications3 } from "@mantine/notifications";
14857
- import { useEffect as useEffect23, useState as useState21 } from "react";
14928
+ import { notifications as notifications4 } from "@mantine/notifications";
14929
+ import { useEffect as useEffect25, useState as useState22 } from "react";
14858
14930
  import { jsx as jsx206, jsxs as jsxs117 } from "react/jsx-runtime";
14859
14931
 
14860
14932
  // src/core/button/MyButtonImport/MyMappingFieldModal.tsx
@@ -14865,7 +14937,7 @@ import { jsx as jsx207, jsxs as jsxs118 } from "react/jsx-runtime";
14865
14937
  import { Fragment as Fragment22, jsx as jsx208, jsxs as jsxs119 } from "react/jsx-runtime";
14866
14938
 
14867
14939
  // src/core/dataDisplay/MyDataTableSelectOne.tsx
14868
- import { useEffect as useEffect24, useMemo as useMemo33 } from "react";
14940
+ import { useEffect as useEffect26, useMemo as useMemo33 } from "react";
14869
14941
  import { jsx as jsx209 } from "react/jsx-runtime";
14870
14942
  function MyDataTableSelectOne({
14871
14943
  columns,
@@ -14874,7 +14946,7 @@ function MyDataTableSelectOne({
14874
14946
  setIdSelection
14875
14947
  }) {
14876
14948
  const columnsState = useMemo33(() => columns, []);
14877
- useEffect24(() => {
14949
+ useEffect26(() => {
14878
14950
  if (!queryResult.data) return;
14879
14951
  setIdSelection(queryResult.data[0].id);
14880
14952
  }, [queryResult.data]);
@@ -15003,7 +15075,7 @@ import TextAlign2 from "@tiptap/extension-text-align";
15003
15075
  import Underline2 from "@tiptap/extension-underline";
15004
15076
  import { useEditor as useEditor2 } from "@tiptap/react";
15005
15077
  import StarterKit2 from "@tiptap/starter-kit";
15006
- import { useEffect as useEffect25 } from "react";
15078
+ import { useEffect as useEffect27 } from "react";
15007
15079
  import { jsx as jsx215, jsxs as jsxs124 } from "react/jsx-runtime";
15008
15080
  function MyRichTextEditor(props) {
15009
15081
  const editor = useEditor2(__spreadValues({
@@ -15083,7 +15155,7 @@ function MyRichTextEditor(props) {
15083
15155
  (_a = props.onBlur) == null ? void 0 : _a.call(props, editor2.getHTML());
15084
15156
  }
15085
15157
  }, props.useEditorProps));
15086
- useEffect25(() => {
15158
+ useEffect27(() => {
15087
15159
  if (editor && props.value !== editor.getHTML()) {
15088
15160
  editor.commands.setContent(props.value || "", false);
15089
15161
  }
@@ -15188,7 +15260,7 @@ function MySelect2(_a) {
15188
15260
  }
15189
15261
 
15190
15262
  // src/core/input/MySelectFromAPI.tsx
15191
- import { useCallback, useEffect as useEffect26, useMemo as useMemo34, useRef as useRef4 } from "react";
15263
+ import { useCallback, useEffect as useEffect28, useMemo as useMemo34, useRef as useRef4 } from "react";
15192
15264
  import { jsx as jsx217 } from "react/jsx-runtime";
15193
15265
  function MySelectFromAPI(_a) {
15194
15266
  var _b = _a, {
@@ -15242,7 +15314,7 @@ function MySelectFromAPI(_a) {
15242
15314
  setObjectData(selected);
15243
15315
  }
15244
15316
  };
15245
- useEffect26(() => {
15317
+ useEffect28(() => {
15246
15318
  var _a2, _b2, _c;
15247
15319
  if (autoSelectFirstItem && !hasAutoSelected.current && ((_a2 = query.data) == null ? void 0 : _a2.length) && (value === void 0 || value === null || value === "")) {
15248
15320
  const firstItem = query.data[0];
@@ -15319,13 +15391,13 @@ import {
15319
15391
  Text as Text27
15320
15392
  } from "@mantine/core";
15321
15393
  import { IconPlus as IconPlus9, IconTrash as IconTrash8 } from "@tabler/icons-react";
15322
- import { useState as useState23 } from "react";
15394
+ import { useState as useState24 } from "react";
15323
15395
  import { jsx as jsx219, jsxs as jsxs125 } from "react/jsx-runtime";
15324
15396
  function MyWeeklySessionSchedulerPicker({
15325
15397
  value = [],
15326
15398
  onChange
15327
15399
  }) {
15328
- const [selectedDays, setSelectedDays] = useState23([]);
15400
+ const [selectedDays, setSelectedDays] = useState24([]);
15329
15401
  const handleAddSession = (dayOfWeek) => {
15330
15402
  const newSession = {
15331
15403
  dayOfWeek,
@@ -15581,7 +15653,7 @@ import {
15581
15653
  Title as Title4
15582
15654
  } from "@mantine/core";
15583
15655
  import { IconChevronLeft, IconChevronRight, IconPlus as IconPlus10, IconRowRemove } from "@tabler/icons-react";
15584
- import { useMemo as useMemo35, useState as useState24 } from "react";
15656
+ import { useMemo as useMemo35, useState as useState25 } from "react";
15585
15657
  import { jsx as jsx224, jsxs as jsxs128 } from "react/jsx-runtime";
15586
15658
  function Usecase_FileFieldMappingModal(_a) {
15587
15659
  var _b = _a, {
@@ -15597,8 +15669,8 @@ function Usecase_FileFieldMappingModal(_a) {
15597
15669
  "handleBack",
15598
15670
  "onCloseAll"
15599
15671
  ]);
15600
- const [selectedFields, setSelectedFields] = useState24([]);
15601
- const [columnMapping, setColumnMapping] = useState24({});
15672
+ const [selectedFields, setSelectedFields] = useState25([]);
15673
+ const [columnMapping, setColumnMapping] = useState25({});
15602
15674
  const excelColumns = useMemo35(() => {
15603
15675
  if (jsonData.length === 0) return [];
15604
15676
  return Object.keys(jsonData[0]);
@@ -15763,7 +15835,7 @@ import {
15763
15835
  Stack as Stack12
15764
15836
  } from "@mantine/core";
15765
15837
  import { IconCopy } from "@tabler/icons-react";
15766
- import { useEffect as useEffect27, useMemo as useMemo36, useState as useState25 } from "react";
15838
+ import { useEffect as useEffect29, useMemo as useMemo36, useState as useState26 } from "react";
15767
15839
  import * as XLSX4 from "xlsx";
15768
15840
  import { jsx as jsx225, jsxs as jsxs129 } from "react/jsx-runtime";
15769
15841
  function Usecase_FileImportConfigModal(_a) {
@@ -15776,11 +15848,11 @@ function Usecase_FileImportConfigModal(_a) {
15776
15848
  "onContinute",
15777
15849
  "onExportStructure"
15778
15850
  ]);
15779
- const [file, setFile] = useState25(null);
15780
- const [rawData, setRawData] = useState25([]);
15781
- const [parsedValueOnly, setParsedValueOnly] = useState25([]);
15782
- const [titleIndex, setTitleIndex] = useState25("2");
15783
- const [dataStartIndex, setDataStartIndex] = useState25("3");
15851
+ const [file, setFile] = useState26(null);
15852
+ const [rawData, setRawData] = useState26([]);
15853
+ const [parsedValueOnly, setParsedValueOnly] = useState26([]);
15854
+ const [titleIndex, setTitleIndex] = useState26("2");
15855
+ const [dataStartIndex, setDataStartIndex] = useState26("3");
15784
15856
  const parseExcel = async (file2) => {
15785
15857
  const data2 = await file2.arrayBuffer();
15786
15858
  const workbook = XLSX4.read(data2);
@@ -15796,7 +15868,7 @@ function Usecase_FileImportConfigModal(_a) {
15796
15868
  setDataStartIndex("3");
15797
15869
  if (file2) parseExcel(file2);
15798
15870
  };
15799
- useEffect27(() => {
15871
+ useEffect29(() => {
15800
15872
  const headerRowIndex = titleIndex ? parseInt(titleIndex) - 1 : null;
15801
15873
  const dataRowIndex = dataStartIndex ? parseInt(dataStartIndex) - 1 : null;
15802
15874
  if (!rawData || headerRowIndex === null || dataRowIndex === null || dataRowIndex >= rawData.length || headerRowIndex >= rawData.length) {
@@ -15893,7 +15965,7 @@ function Usecase_FileImportConfigModal(_a) {
15893
15965
 
15894
15966
  // src/core/overlays/MyModalStackImport/MyModalStackImport.tsx
15895
15967
  import { Modal as Modal22 } from "@mantine/core";
15896
- import { useState as useState26 } from "react";
15968
+ import { useState as useState27 } from "react";
15897
15969
  import { jsx as jsx226, jsxs as jsxs130 } from "react/jsx-runtime";
15898
15970
  function MyModalImport({
15899
15971
  fieldDefinition = [],
@@ -15901,9 +15973,9 @@ function MyModalImport({
15901
15973
  onExecute,
15902
15974
  onExportStructure
15903
15975
  }) {
15904
- const value = useState26([]);
15905
- const valueMapping = useState26([]);
15906
- const [detailRows, setDetailRows] = useState26([]);
15976
+ const value = useState27([]);
15977
+ const valueMapping = useState27([]);
15978
+ const [detailRows, setDetailRows] = useState27([]);
15907
15979
  return /* @__PURE__ */ jsxs130(Modal22.Stack, { children: [
15908
15980
  /* @__PURE__ */ jsx226(
15909
15981
  Usecase_FileImportConfigModal,
@@ -69,12 +69,12 @@ import {
69
69
  useHeaderMegaMenuStore,
70
70
  useS_ButtonImport,
71
71
  useStore_BasicAppShell
72
- } from "../chunk-FJR2KO7O.mjs";
72
+ } from "../chunk-VYB7UHJY.mjs";
73
73
  import "../chunk-PW6WTEVB.mjs";
74
74
  import "../chunk-IKFZBEKW.mjs";
75
75
  import "../chunk-7PUDC2WF.mjs";
76
76
  import "../chunk-EWDS5IOF.mjs";
77
- import "../chunk-5DUXSUE3.mjs";
77
+ import "../chunk-YYH7V6LN.mjs";
78
78
  import "../chunk-MNJNQRZU.mjs";
79
79
  import "../chunk-AR64BQSX.mjs";
80
80
  import "../chunk-WZ6PXGGC.mjs";
@@ -2,7 +2,7 @@ import {
2
2
  const_array_daysOfWeek,
3
3
  const_object_colors,
4
4
  const_object_documentTypes
5
- } from "../chunk-5DUXSUE3.mjs";
5
+ } from "../chunk-YYH7V6LN.mjs";
6
6
  import "../chunk-FWCSY2DS.mjs";
7
7
  export {
8
8
  const_array_daysOfWeek,
@@ -23,12 +23,12 @@ import {
23
23
  MyStatsCard,
24
24
  MyTextInput2 as MyTextInput,
25
25
  MyWeeklySessionSchedulerPicker
26
- } from "../chunk-FJR2KO7O.mjs";
26
+ } from "../chunk-VYB7UHJY.mjs";
27
27
  import "../chunk-PW6WTEVB.mjs";
28
28
  import "../chunk-IKFZBEKW.mjs";
29
29
  import "../chunk-7PUDC2WF.mjs";
30
30
  import "../chunk-EWDS5IOF.mjs";
31
- import "../chunk-5DUXSUE3.mjs";
31
+ import "../chunk-YYH7V6LN.mjs";
32
32
  import "../chunk-MNJNQRZU.mjs";
33
33
  import "../chunk-AR64BQSX.mjs";
34
34
  import "../chunk-WZ6PXGGC.mjs";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-FJR2KO7O.mjs";
3
+ } from "../chunk-VYB7UHJY.mjs";
4
4
  import "../chunk-PW6WTEVB.mjs";
5
5
  import "../chunk-IKFZBEKW.mjs";
6
6
  import "../chunk-7PUDC2WF.mjs";
7
7
  import "../chunk-EWDS5IOF.mjs";
8
- import "../chunk-5DUXSUE3.mjs";
8
+ import "../chunk-YYH7V6LN.mjs";
9
9
  import "../chunk-MNJNQRZU.mjs";
10
10
  import {
11
11
  useMyReactMutation
@@ -102,12 +102,12 @@ import {
102
102
  Feat_accessControlLevel,
103
103
  useS_authenticate,
104
104
  useS_moduleConfig
105
- } from "../chunk-FJR2KO7O.mjs";
105
+ } from "../chunk-VYB7UHJY.mjs";
106
106
  import "../chunk-PW6WTEVB.mjs";
107
107
  import "../chunk-IKFZBEKW.mjs";
108
108
  import "../chunk-7PUDC2WF.mjs";
109
109
  import "../chunk-EWDS5IOF.mjs";
110
- import "../chunk-5DUXSUE3.mjs";
110
+ import "../chunk-YYH7V6LN.mjs";
111
111
  import "../chunk-MNJNQRZU.mjs";
112
112
  import "../chunk-AR64BQSX.mjs";
113
113
  import "../chunk-WZ6PXGGC.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.631",
53
+ "version": "0.1.632",
54
54
  "private": false,
55
55
  "files": [
56
56
  "dist"
@@ -30,7 +30,7 @@ var const_object_documentTypes = {
30
30
  };
31
31
 
32
32
  export {
33
- const_object_colors,
34
33
  const_array_daysOfWeek,
34
+ const_object_colors,
35
35
  const_object_documentTypes
36
36
  };