@fctc/widget-logic 1.2.6 → 1.2.8
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.
- package/dist/hooks.d.mts +1 -9
- package/dist/hooks.d.ts +1 -9
- package/dist/hooks.js +22 -44
- package/dist/hooks.mjs +39 -39
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +28 -43
- package/dist/index.mjs +86 -39
- package/dist/store.d.mts +1 -0
- package/dist/store.d.ts +1 -0
- package/dist/store.js +24 -0
- package/dist/store.mjs +2 -0
- package/package.json +7 -2
package/dist/hooks.d.mts
CHANGED
|
@@ -965,12 +965,4 @@ declare const useClickOutside: ({ handler, events, nodes, refs, }: UseClickOutsi
|
|
|
965
965
|
|
|
966
966
|
declare function useDebounce<T>(value: T, delay: number): [T];
|
|
967
967
|
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
declare const useLoginHandler: () => {};
|
|
971
|
-
|
|
972
|
-
declare const useForgotPasswordHandler: () => {};
|
|
973
|
-
|
|
974
|
-
declare const useResetPasswordHandler: () => {};
|
|
975
|
-
|
|
976
|
-
export { type ActionResultType, AppProvider, type Context, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, type useListDataType, useLoginHandler, useMenu, type useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, type useUserType, useViewV2, type useViewV2Type };
|
|
968
|
+
export { type ActionResultType, AppProvider, type Context, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useListData, type useListDataType, useMenu, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -965,12 +965,4 @@ declare const useClickOutside: ({ handler, events, nodes, refs, }: UseClickOutsi
|
|
|
965
965
|
|
|
966
966
|
declare function useDebounce<T>(value: T, delay: number): [T];
|
|
967
967
|
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
declare const useLoginHandler: () => {};
|
|
971
|
-
|
|
972
|
-
declare const useForgotPasswordHandler: () => {};
|
|
973
|
-
|
|
974
|
-
declare const useResetPasswordHandler: () => {};
|
|
975
|
-
|
|
976
|
-
export { type ActionResultType, AppProvider, type Context, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, type useListDataType, useLoginHandler, useMenu, type useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, type useUserType, useViewV2, type useViewV2Type };
|
|
968
|
+
export { type ActionResultType, AppProvider, type Context, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useListData, type useListDataType, useMenu, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|
package/dist/hooks.js
CHANGED
|
@@ -15,9 +15,29 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
20
|
|
|
20
21
|
// src/hooks.ts
|
|
22
|
+
var hooks_exports2 = {};
|
|
23
|
+
__export(hooks_exports2, {
|
|
24
|
+
AppProvider: () => AppProvider,
|
|
25
|
+
useAppProvider: () => useAppProvider,
|
|
26
|
+
useAuth: () => useAuth,
|
|
27
|
+
useCallAction: () => useCallAction,
|
|
28
|
+
useClickOutside: () => useClickOutside,
|
|
29
|
+
useConfig: () => useConfig,
|
|
30
|
+
useDebounce: () => useDebounce,
|
|
31
|
+
useDetail: () => useDetail,
|
|
32
|
+
useListData: () => useListData,
|
|
33
|
+
useMenu: () => useMenu,
|
|
34
|
+
useProfile: () => useProfile,
|
|
35
|
+
useUser: () => useUser,
|
|
36
|
+
useViewV2: () => useViewV2
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(hooks_exports2);
|
|
39
|
+
|
|
40
|
+
// src/hooks/index.ts
|
|
21
41
|
var hooks_exports = {};
|
|
22
42
|
__export(hooks_exports, {
|
|
23
43
|
AppProvider: () => AppProvider,
|
|
@@ -28,17 +48,12 @@ __export(hooks_exports, {
|
|
|
28
48
|
useConfig: () => useConfig,
|
|
29
49
|
useDebounce: () => useDebounce,
|
|
30
50
|
useDetail: () => useDetail,
|
|
31
|
-
useForgotPasswordHandler: () => useForgotPasswordHandler,
|
|
32
51
|
useListData: () => useListData,
|
|
33
|
-
useLoginHandler: () => useLoginHandler,
|
|
34
52
|
useMenu: () => useMenu,
|
|
35
53
|
useProfile: () => useProfile,
|
|
36
|
-
useResetPasswordHandler: () => useResetPasswordHandler,
|
|
37
|
-
useSwitchLocaleHandler: () => useSwitchLocaleHandler,
|
|
38
54
|
useUser: () => useUser,
|
|
39
55
|
useViewV2: () => useViewV2
|
|
40
56
|
});
|
|
41
|
-
module.exports = __toCommonJS(hooks_exports);
|
|
42
57
|
|
|
43
58
|
// src/hooks/core/use-call-action.ts
|
|
44
59
|
var import_interface_logic = require("@fctc/interface-logic");
|
|
@@ -716,41 +731,8 @@ function useDebounce(value, delay) {
|
|
|
716
731
|
return [debouncedValue];
|
|
717
732
|
}
|
|
718
733
|
|
|
719
|
-
// src/hooks/
|
|
720
|
-
|
|
721
|
-
return {
|
|
722
|
-
// switchLocale,
|
|
723
|
-
// isLoading: switchUserLocale.isPending,
|
|
724
|
-
// error: switchUserLocale.error,
|
|
725
|
-
};
|
|
726
|
-
};
|
|
727
|
-
|
|
728
|
-
// src/hooks/api/use-login.ts
|
|
729
|
-
var useLoginHandler = () => {
|
|
730
|
-
return {
|
|
731
|
-
// login,
|
|
732
|
-
// isLoading: loginMutate.isPending,
|
|
733
|
-
// error: loginMutate.error,
|
|
734
|
-
};
|
|
735
|
-
};
|
|
736
|
-
|
|
737
|
-
// src/hooks/api/use-forgot-password.ts
|
|
738
|
-
var useForgotPasswordHandler = () => {
|
|
739
|
-
return {
|
|
740
|
-
// sendForgotPassword,
|
|
741
|
-
// isLoading: forgotPasswordMutate.isPending,
|
|
742
|
-
// error: forgotPasswordMutate.error,
|
|
743
|
-
};
|
|
744
|
-
};
|
|
745
|
-
|
|
746
|
-
// src/hooks/api/use-reset-password.ts
|
|
747
|
-
var useResetPasswordHandler = () => {
|
|
748
|
-
return {
|
|
749
|
-
// resetPassword,
|
|
750
|
-
// isLoading: resetPasswordMutate.isPending,
|
|
751
|
-
// error: resetPasswordMutate.error,
|
|
752
|
-
};
|
|
753
|
-
};
|
|
734
|
+
// src/hooks/index.ts
|
|
735
|
+
__reExport(hooks_exports, require("@fctc/interface-logic/hook"));
|
|
754
736
|
// Annotate the CommonJS export names for ESM import in node:
|
|
755
737
|
0 && (module.exports = {
|
|
756
738
|
AppProvider,
|
|
@@ -761,13 +743,9 @@ var useResetPasswordHandler = () => {
|
|
|
761
743
|
useConfig,
|
|
762
744
|
useDebounce,
|
|
763
745
|
useDetail,
|
|
764
|
-
useForgotPasswordHandler,
|
|
765
746
|
useListData,
|
|
766
|
-
useLoginHandler,
|
|
767
747
|
useMenu,
|
|
768
748
|
useProfile,
|
|
769
|
-
useResetPasswordHandler,
|
|
770
|
-
useSwitchLocaleHandler,
|
|
771
749
|
useUser,
|
|
772
750
|
useViewV2
|
|
773
751
|
});
|
package/dist/hooks.mjs
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
+
|
|
19
|
+
// src/hooks/index.ts
|
|
20
|
+
var hooks_exports = {};
|
|
21
|
+
__export(hooks_exports, {
|
|
22
|
+
AppProvider: () => AppProvider,
|
|
23
|
+
useAppProvider: () => useAppProvider,
|
|
24
|
+
useAuth: () => useAuth,
|
|
25
|
+
useCallAction: () => useCallAction,
|
|
26
|
+
useClickOutside: () => useClickOutside,
|
|
27
|
+
useConfig: () => useConfig,
|
|
28
|
+
useDebounce: () => useDebounce,
|
|
29
|
+
useDetail: () => useDetail,
|
|
30
|
+
useListData: () => useListData,
|
|
31
|
+
useMenu: () => useMenu,
|
|
32
|
+
useProfile: () => useProfile,
|
|
33
|
+
useUser: () => useUser,
|
|
34
|
+
useViewV2: () => useViewV2
|
|
35
|
+
});
|
|
36
|
+
|
|
1
37
|
// src/hooks/core/use-call-action.ts
|
|
2
38
|
import { getEnv, useLoadAction, useRunAction } from "@fctc/interface-logic";
|
|
3
39
|
import { useState } from "react";
|
|
@@ -701,41 +737,9 @@ function useDebounce(value, delay) {
|
|
|
701
737
|
return [debouncedValue];
|
|
702
738
|
}
|
|
703
739
|
|
|
704
|
-
// src/hooks/
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
// switchLocale,
|
|
708
|
-
// isLoading: switchUserLocale.isPending,
|
|
709
|
-
// error: switchUserLocale.error,
|
|
710
|
-
};
|
|
711
|
-
};
|
|
712
|
-
|
|
713
|
-
// src/hooks/api/use-login.ts
|
|
714
|
-
var useLoginHandler = () => {
|
|
715
|
-
return {
|
|
716
|
-
// login,
|
|
717
|
-
// isLoading: loginMutate.isPending,
|
|
718
|
-
// error: loginMutate.error,
|
|
719
|
-
};
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
// src/hooks/api/use-forgot-password.ts
|
|
723
|
-
var useForgotPasswordHandler = () => {
|
|
724
|
-
return {
|
|
725
|
-
// sendForgotPassword,
|
|
726
|
-
// isLoading: forgotPasswordMutate.isPending,
|
|
727
|
-
// error: forgotPasswordMutate.error,
|
|
728
|
-
};
|
|
729
|
-
};
|
|
730
|
-
|
|
731
|
-
// src/hooks/api/use-reset-password.ts
|
|
732
|
-
var useResetPasswordHandler = () => {
|
|
733
|
-
return {
|
|
734
|
-
// resetPassword,
|
|
735
|
-
// isLoading: resetPasswordMutate.isPending,
|
|
736
|
-
// error: resetPasswordMutate.error,
|
|
737
|
-
};
|
|
738
|
-
};
|
|
740
|
+
// src/hooks/index.ts
|
|
741
|
+
__reExport(hooks_exports, hook_star);
|
|
742
|
+
import * as hook_star from "@fctc/interface-logic/hook";
|
|
739
743
|
export {
|
|
740
744
|
AppProvider,
|
|
741
745
|
useAppProvider,
|
|
@@ -745,13 +749,9 @@ export {
|
|
|
745
749
|
useConfig,
|
|
746
750
|
useDebounce,
|
|
747
751
|
useDetail,
|
|
748
|
-
useForgotPasswordHandler,
|
|
749
752
|
useListData,
|
|
750
|
-
useLoginHandler,
|
|
751
753
|
useMenu,
|
|
752
754
|
useProfile,
|
|
753
|
-
useResetPasswordHandler,
|
|
754
|
-
useSwitchLocaleHandler,
|
|
755
755
|
useUser,
|
|
756
756
|
useViewV2
|
|
757
757
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { ActionResultType, AppProvider, Context, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail,
|
|
1
|
+
export { ActionResultType, AppProvider, Context, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.mjs';
|
|
2
2
|
export { CloseIcon, EyeIcon, LoadingIcon } from './icons.mjs';
|
|
3
3
|
import { IInputFieldProps, ValuePropsType } from './types.mjs';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ChangeEvent } from 'react';
|
|
6
6
|
import moment from 'moment';
|
|
7
7
|
export { API_APP_URL, API_PRESCHOOL_URL, STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useGetRowIds, useStorageState } from './utils.mjs';
|
|
8
|
+
export * from '@fctc/interface-logic/store';
|
|
8
9
|
import '@tanstack/react-query';
|
|
9
10
|
import '@fctc/interface-logic';
|
|
10
11
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { ActionResultType, AppProvider, Context, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail,
|
|
1
|
+
export { ActionResultType, AppProvider, Context, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.js';
|
|
2
2
|
export { CloseIcon, EyeIcon, LoadingIcon } from './icons.js';
|
|
3
3
|
import { IInputFieldProps, ValuePropsType } from './types.js';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ChangeEvent } from 'react';
|
|
6
6
|
import moment from 'moment';
|
|
7
7
|
export { API_APP_URL, API_PRESCHOOL_URL, STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useGetRowIds, useStorageState } from './utils.js';
|
|
8
|
+
export * from '@fctc/interface-logic/store';
|
|
8
9
|
import '@tanstack/react-query';
|
|
9
10
|
import '@fctc/interface-logic';
|
|
10
11
|
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
}
|
|
21
21
|
return to;
|
|
22
22
|
};
|
|
23
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
24
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
25
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
26
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -4074,20 +4075,34 @@ __export(index_exports, {
|
|
|
4074
4075
|
useConfig: () => useConfig,
|
|
4075
4076
|
useDebounce: () => useDebounce,
|
|
4076
4077
|
useDetail: () => useDetail,
|
|
4077
|
-
useForgotPasswordHandler: () => useForgotPasswordHandler,
|
|
4078
4078
|
useGetRowIds: () => useGetRowIds,
|
|
4079
4079
|
useListData: () => useListData,
|
|
4080
|
-
useLoginHandler: () => useLoginHandler,
|
|
4081
4080
|
useMenu: () => useMenu,
|
|
4082
4081
|
useProfile: () => useProfile,
|
|
4083
|
-
useResetPasswordHandler: () => useResetPasswordHandler,
|
|
4084
4082
|
useStorageState: () => useStorageState,
|
|
4085
|
-
useSwitchLocaleHandler: () => useSwitchLocaleHandler,
|
|
4086
4083
|
useUser: () => useUser,
|
|
4087
4084
|
useViewV2: () => useViewV2
|
|
4088
4085
|
});
|
|
4089
4086
|
module.exports = __toCommonJS(index_exports);
|
|
4090
4087
|
|
|
4088
|
+
// src/hooks/index.ts
|
|
4089
|
+
var hooks_exports = {};
|
|
4090
|
+
__export(hooks_exports, {
|
|
4091
|
+
AppProvider: () => AppProvider,
|
|
4092
|
+
useAppProvider: () => useAppProvider,
|
|
4093
|
+
useAuth: () => useAuth,
|
|
4094
|
+
useCallAction: () => useCallAction,
|
|
4095
|
+
useClickOutside: () => useClickOutside,
|
|
4096
|
+
useConfig: () => useConfig,
|
|
4097
|
+
useDebounce: () => useDebounce,
|
|
4098
|
+
useDetail: () => useDetail,
|
|
4099
|
+
useListData: () => useListData,
|
|
4100
|
+
useMenu: () => useMenu,
|
|
4101
|
+
useProfile: () => useProfile,
|
|
4102
|
+
useUser: () => useUser,
|
|
4103
|
+
useViewV2: () => useViewV2
|
|
4104
|
+
});
|
|
4105
|
+
|
|
4091
4106
|
// src/hooks/core/use-call-action.ts
|
|
4092
4107
|
var import_interface_logic = require("@fctc/interface-logic");
|
|
4093
4108
|
var import_react = require("react");
|
|
@@ -4843,41 +4858,8 @@ function useDebounce(value, delay) {
|
|
|
4843
4858
|
return [debouncedValue];
|
|
4844
4859
|
}
|
|
4845
4860
|
|
|
4846
|
-
// src/hooks/
|
|
4847
|
-
|
|
4848
|
-
return {
|
|
4849
|
-
// switchLocale,
|
|
4850
|
-
// isLoading: switchUserLocale.isPending,
|
|
4851
|
-
// error: switchUserLocale.error,
|
|
4852
|
-
};
|
|
4853
|
-
};
|
|
4854
|
-
|
|
4855
|
-
// src/hooks/api/use-login.ts
|
|
4856
|
-
var useLoginHandler = () => {
|
|
4857
|
-
return {
|
|
4858
|
-
// login,
|
|
4859
|
-
// isLoading: loginMutate.isPending,
|
|
4860
|
-
// error: loginMutate.error,
|
|
4861
|
-
};
|
|
4862
|
-
};
|
|
4863
|
-
|
|
4864
|
-
// src/hooks/api/use-forgot-password.ts
|
|
4865
|
-
var useForgotPasswordHandler = () => {
|
|
4866
|
-
return {
|
|
4867
|
-
// sendForgotPassword,
|
|
4868
|
-
// isLoading: forgotPasswordMutate.isPending,
|
|
4869
|
-
// error: forgotPasswordMutate.error,
|
|
4870
|
-
};
|
|
4871
|
-
};
|
|
4872
|
-
|
|
4873
|
-
// src/hooks/api/use-reset-password.ts
|
|
4874
|
-
var useResetPasswordHandler = () => {
|
|
4875
|
-
return {
|
|
4876
|
-
// resetPassword,
|
|
4877
|
-
// isLoading: resetPasswordMutate.isPending,
|
|
4878
|
-
// error: resetPasswordMutate.error,
|
|
4879
|
-
};
|
|
4880
|
-
};
|
|
4861
|
+
// src/hooks/index.ts
|
|
4862
|
+
__reExport(hooks_exports, require("@fctc/interface-logic/hook"));
|
|
4881
4863
|
|
|
4882
4864
|
// src/icons/eye-icon.tsx
|
|
4883
4865
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -7227,6 +7209,13 @@ var binaryFieldController = (props) => {
|
|
|
7227
7209
|
getImageBase64WithMimeType
|
|
7228
7210
|
};
|
|
7229
7211
|
};
|
|
7212
|
+
|
|
7213
|
+
// src/store.ts
|
|
7214
|
+
var store_exports = {};
|
|
7215
|
+
__reExport(store_exports, require("@fctc/interface-logic/store"));
|
|
7216
|
+
|
|
7217
|
+
// src/index.ts
|
|
7218
|
+
__reExport(index_exports, store_exports, module.exports);
|
|
7230
7219
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7231
7220
|
0 && (module.exports = {
|
|
7232
7221
|
API_APP_URL,
|
|
@@ -7269,15 +7258,11 @@ var binaryFieldController = (props) => {
|
|
|
7269
7258
|
useConfig,
|
|
7270
7259
|
useDebounce,
|
|
7271
7260
|
useDetail,
|
|
7272
|
-
useForgotPasswordHandler,
|
|
7273
7261
|
useGetRowIds,
|
|
7274
7262
|
useListData,
|
|
7275
|
-
useLoginHandler,
|
|
7276
7263
|
useMenu,
|
|
7277
7264
|
useProfile,
|
|
7278
|
-
useResetPasswordHandler,
|
|
7279
7265
|
useStorageState,
|
|
7280
|
-
useSwitchLocaleHandler,
|
|
7281
7266
|
useUser,
|
|
7282
7267
|
useViewV2
|
|
7283
7268
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -13,6 +13,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
13
13
|
var __commonJS = (cb, mod) => function __require2() {
|
|
14
14
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
15
|
};
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
16
20
|
var __copyProps = (to, from, except, desc) => {
|
|
17
21
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
22
|
for (let key of __getOwnPropNames(from))
|
|
@@ -21,6 +25,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
21
25
|
}
|
|
22
26
|
return to;
|
|
23
27
|
};
|
|
28
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
24
29
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
30
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
31
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -4031,6 +4036,76 @@ var require_moment = __commonJS({
|
|
|
4031
4036
|
}
|
|
4032
4037
|
});
|
|
4033
4038
|
|
|
4039
|
+
// src/index.ts
|
|
4040
|
+
var index_exports = {};
|
|
4041
|
+
__export(index_exports, {
|
|
4042
|
+
API_APP_URL: () => API_APP_URL,
|
|
4043
|
+
API_PRESCHOOL_URL: () => API_PRESCHOOL_URL,
|
|
4044
|
+
AppProvider: () => AppProvider,
|
|
4045
|
+
CloseIcon: () => CloseIcon,
|
|
4046
|
+
EyeIcon: () => EyeIcon,
|
|
4047
|
+
LoadingIcon: () => LoadingIcon,
|
|
4048
|
+
STORAGES: () => STORAGES,
|
|
4049
|
+
binaryFieldController: () => binaryFieldController,
|
|
4050
|
+
colorFieldController: () => colorFieldController,
|
|
4051
|
+
combineContexts: () => combineContexts,
|
|
4052
|
+
convertFieldsToArray: () => convertFieldsToArray,
|
|
4053
|
+
copyLinkButtonController: () => copyLinkButtonController,
|
|
4054
|
+
countSum: () => countSum,
|
|
4055
|
+
dateFieldController: () => dateFieldController,
|
|
4056
|
+
downLoadBinaryController: () => downLoadBinaryController,
|
|
4057
|
+
downloadFileController: () => downloadFileController,
|
|
4058
|
+
durationController: () => durationController,
|
|
4059
|
+
floatController: () => floatController,
|
|
4060
|
+
floatTimeFiledController: () => floatTimeFiledController,
|
|
4061
|
+
getDateRange: () => getDateRange,
|
|
4062
|
+
languages: () => languages,
|
|
4063
|
+
many2manyFieldController: () => many2manyFieldController,
|
|
4064
|
+
many2manyTagsController: () => many2manyTagsController,
|
|
4065
|
+
many2oneButtonController: () => many2oneButtonController,
|
|
4066
|
+
many2oneFieldController: () => many2oneFieldController,
|
|
4067
|
+
mergeButtons: () => mergeButtons,
|
|
4068
|
+
priorityFieldController: () => priorityFieldController,
|
|
4069
|
+
setStorageItemAsync: () => setStorageItemAsync,
|
|
4070
|
+
statusDropdownController: () => statusDropdownController,
|
|
4071
|
+
tableBodyController: () => tableBodyController,
|
|
4072
|
+
tableController: () => tableController,
|
|
4073
|
+
tableGroupController: () => tableGroupController,
|
|
4074
|
+
tableHeadController: () => tableHeadController,
|
|
4075
|
+
useAppProvider: () => useAppProvider,
|
|
4076
|
+
useAuth: () => useAuth,
|
|
4077
|
+
useCallAction: () => useCallAction,
|
|
4078
|
+
useClickOutside: () => useClickOutside,
|
|
4079
|
+
useConfig: () => useConfig,
|
|
4080
|
+
useDebounce: () => useDebounce,
|
|
4081
|
+
useDetail: () => useDetail,
|
|
4082
|
+
useGetRowIds: () => useGetRowIds,
|
|
4083
|
+
useListData: () => useListData,
|
|
4084
|
+
useMenu: () => useMenu,
|
|
4085
|
+
useProfile: () => useProfile,
|
|
4086
|
+
useStorageState: () => useStorageState,
|
|
4087
|
+
useUser: () => useUser,
|
|
4088
|
+
useViewV2: () => useViewV2
|
|
4089
|
+
});
|
|
4090
|
+
|
|
4091
|
+
// src/hooks/index.ts
|
|
4092
|
+
var hooks_exports = {};
|
|
4093
|
+
__export(hooks_exports, {
|
|
4094
|
+
AppProvider: () => AppProvider,
|
|
4095
|
+
useAppProvider: () => useAppProvider,
|
|
4096
|
+
useAuth: () => useAuth,
|
|
4097
|
+
useCallAction: () => useCallAction,
|
|
4098
|
+
useClickOutside: () => useClickOutside,
|
|
4099
|
+
useConfig: () => useConfig,
|
|
4100
|
+
useDebounce: () => useDebounce,
|
|
4101
|
+
useDetail: () => useDetail,
|
|
4102
|
+
useListData: () => useListData,
|
|
4103
|
+
useMenu: () => useMenu,
|
|
4104
|
+
useProfile: () => useProfile,
|
|
4105
|
+
useUser: () => useUser,
|
|
4106
|
+
useViewV2: () => useViewV2
|
|
4107
|
+
});
|
|
4108
|
+
|
|
4034
4109
|
// src/hooks/core/use-call-action.ts
|
|
4035
4110
|
import { getEnv, useLoadAction, useRunAction } from "@fctc/interface-logic";
|
|
4036
4111
|
import { useState } from "react";
|
|
@@ -4813,41 +4888,9 @@ function useDebounce(value, delay) {
|
|
|
4813
4888
|
return [debouncedValue];
|
|
4814
4889
|
}
|
|
4815
4890
|
|
|
4816
|
-
// src/hooks/
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
// switchLocale,
|
|
4820
|
-
// isLoading: switchUserLocale.isPending,
|
|
4821
|
-
// error: switchUserLocale.error,
|
|
4822
|
-
};
|
|
4823
|
-
};
|
|
4824
|
-
|
|
4825
|
-
// src/hooks/api/use-login.ts
|
|
4826
|
-
var useLoginHandler = () => {
|
|
4827
|
-
return {
|
|
4828
|
-
// login,
|
|
4829
|
-
// isLoading: loginMutate.isPending,
|
|
4830
|
-
// error: loginMutate.error,
|
|
4831
|
-
};
|
|
4832
|
-
};
|
|
4833
|
-
|
|
4834
|
-
// src/hooks/api/use-forgot-password.ts
|
|
4835
|
-
var useForgotPasswordHandler = () => {
|
|
4836
|
-
return {
|
|
4837
|
-
// sendForgotPassword,
|
|
4838
|
-
// isLoading: forgotPasswordMutate.isPending,
|
|
4839
|
-
// error: forgotPasswordMutate.error,
|
|
4840
|
-
};
|
|
4841
|
-
};
|
|
4842
|
-
|
|
4843
|
-
// src/hooks/api/use-reset-password.ts
|
|
4844
|
-
var useResetPasswordHandler = () => {
|
|
4845
|
-
return {
|
|
4846
|
-
// resetPassword,
|
|
4847
|
-
// isLoading: resetPasswordMutate.isPending,
|
|
4848
|
-
// error: resetPasswordMutate.error,
|
|
4849
|
-
};
|
|
4850
|
-
};
|
|
4891
|
+
// src/hooks/index.ts
|
|
4892
|
+
__reExport(hooks_exports, hook_star);
|
|
4893
|
+
import * as hook_star from "@fctc/interface-logic/hook";
|
|
4851
4894
|
|
|
4852
4895
|
// src/icons/eye-icon.tsx
|
|
4853
4896
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
@@ -7257,6 +7300,14 @@ var binaryFieldController = (props) => {
|
|
|
7257
7300
|
getImageBase64WithMimeType
|
|
7258
7301
|
};
|
|
7259
7302
|
};
|
|
7303
|
+
|
|
7304
|
+
// src/store.ts
|
|
7305
|
+
var store_exports = {};
|
|
7306
|
+
__reExport(store_exports, store_star);
|
|
7307
|
+
import * as store_star from "@fctc/interface-logic/store";
|
|
7308
|
+
|
|
7309
|
+
// src/index.ts
|
|
7310
|
+
__reExport(index_exports, store_exports);
|
|
7260
7311
|
export {
|
|
7261
7312
|
API_APP_URL,
|
|
7262
7313
|
API_PRESCHOOL_URL,
|
|
@@ -7298,15 +7349,11 @@ export {
|
|
|
7298
7349
|
useConfig,
|
|
7299
7350
|
useDebounce,
|
|
7300
7351
|
useDetail,
|
|
7301
|
-
useForgotPasswordHandler,
|
|
7302
7352
|
useGetRowIds,
|
|
7303
7353
|
useListData,
|
|
7304
|
-
useLoginHandler,
|
|
7305
7354
|
useMenu,
|
|
7306
7355
|
useProfile,
|
|
7307
|
-
useResetPasswordHandler,
|
|
7308
7356
|
useStorageState,
|
|
7309
|
-
useSwitchLocaleHandler,
|
|
7310
7357
|
useUser,
|
|
7311
7358
|
useViewV2
|
|
7312
7359
|
};
|
package/dist/store.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/store';
|
package/dist/store.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/store';
|
package/dist/store.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/store.ts
|
|
18
|
+
var store_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(store_exports);
|
|
20
|
+
__reExport(store_exports, require("@fctc/interface-logic/store"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@fctc/interface-logic/store")
|
|
24
|
+
});
|
package/dist/store.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
"types": "./dist/utils.d.ts",
|
|
35
35
|
"import": "./dist/utils.mjs",
|
|
36
36
|
"require": "./dist/utils.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./store": {
|
|
39
|
+
"types": "./dist/store.d.ts",
|
|
40
|
+
"import": "./dist/store.mjs",
|
|
41
|
+
"require": "./dist/store.cjs"
|
|
37
42
|
}
|
|
38
43
|
},
|
|
39
44
|
"files": [
|
|
@@ -44,7 +49,7 @@
|
|
|
44
49
|
"test": "jest"
|
|
45
50
|
},
|
|
46
51
|
"dependencies": {
|
|
47
|
-
"@fctc/interface-logic": "^1.
|
|
52
|
+
"@fctc/interface-logic": "^1.2.5",
|
|
48
53
|
"@headlessui/react": "^2.2.6",
|
|
49
54
|
"@tanstack/react-query": "^5.84.0",
|
|
50
55
|
"@types/react-dom": "^19.1.7",
|