@fctc/widget-logic 1.3.6 → 1.3.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/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +9 -3
- package/dist/config.mjs +4 -1
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +33 -3
- package/dist/constants.mjs +30 -1
- package/dist/environment.d.mts +1 -1
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +15 -3
- package/dist/environment.mjs +12 -1
- package/dist/hooks.d.mts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +138 -4
- package/dist/hooks.mjs +138 -1
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +506 -130
- package/dist/index.mjs +513 -194
- package/dist/provider.d.mts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +13 -3
- package/dist/provider.mjs +10 -1
- package/dist/services.d.mts +1 -1
- package/dist/services.d.ts +1 -1
- package/dist/services.js +25 -3
- package/dist/services.mjs +22 -1
- package/dist/store.d.mts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/store.js +182 -2
- package/dist/store.mjs +184 -2
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +65 -7
- package/dist/utils.mjs +66 -5
- package/package.json +1 -1
package/dist/config.d.mts
CHANGED
package/dist/config.d.ts
CHANGED
package/dist/config.js
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,14 +15,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
15
|
}
|
|
12
16
|
return to;
|
|
13
17
|
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
19
|
|
|
17
20
|
// src/config.ts
|
|
18
21
|
var config_exports = {};
|
|
22
|
+
__export(config_exports, {
|
|
23
|
+
axiosClient: () => import_configs.axiosClient
|
|
24
|
+
});
|
|
19
25
|
module.exports = __toCommonJS(config_exports);
|
|
20
|
-
|
|
26
|
+
var import_configs = require("@fctc/interface-logic/configs");
|
|
21
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
22
28
|
0 && (module.exports = {
|
|
23
|
-
|
|
29
|
+
axiosClient
|
|
24
30
|
});
|
package/dist/config.mjs
CHANGED
package/dist/constants.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS } from '@fctc/interface-logic/constants';
|
package/dist/constants.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS } from '@fctc/interface-logic/constants';
|
package/dist/constants.js
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,14 +15,40 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
15
|
}
|
|
12
16
|
return to;
|
|
13
17
|
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
19
|
|
|
17
20
|
// src/constants.ts
|
|
18
21
|
var constants_exports = {};
|
|
22
|
+
__export(constants_exports, {
|
|
23
|
+
ComponentType: () => import_constants.ComponentType,
|
|
24
|
+
FieldTypeConstants: () => import_constants.FieldTypeConstants,
|
|
25
|
+
KeyConstants: () => import_constants.KeyConstants,
|
|
26
|
+
MethodConstants: () => import_constants.MethodConstants,
|
|
27
|
+
MethodType: () => import_constants.MethodType,
|
|
28
|
+
ModelConstants: () => import_constants.ModelConstants,
|
|
29
|
+
SearchType: () => import_constants.SearchType,
|
|
30
|
+
UriConstants: () => import_constants.UriConstants,
|
|
31
|
+
WIDGETAVATAR: () => import_constants.WIDGETAVATAR,
|
|
32
|
+
WIDGETCOLOR: () => import_constants.WIDGETCOLOR,
|
|
33
|
+
WIDGETCURRENCY: () => import_constants.WIDGETCURRENCY,
|
|
34
|
+
WIDGETNOSTRING: () => import_constants.WIDGETNOSTRING,
|
|
35
|
+
WIDGETSTATUS: () => import_constants.WIDGETSTATUS
|
|
36
|
+
});
|
|
19
37
|
module.exports = __toCommonJS(constants_exports);
|
|
20
|
-
|
|
38
|
+
var import_constants = require("@fctc/interface-logic/constants");
|
|
21
39
|
// Annotate the CommonJS export names for ESM import in node:
|
|
22
40
|
0 && (module.exports = {
|
|
23
|
-
|
|
41
|
+
ComponentType,
|
|
42
|
+
FieldTypeConstants,
|
|
43
|
+
KeyConstants,
|
|
44
|
+
MethodConstants,
|
|
45
|
+
MethodType,
|
|
46
|
+
ModelConstants,
|
|
47
|
+
SearchType,
|
|
48
|
+
UriConstants,
|
|
49
|
+
WIDGETAVATAR,
|
|
50
|
+
WIDGETCOLOR,
|
|
51
|
+
WIDGETCURRENCY,
|
|
52
|
+
WIDGETNOSTRING,
|
|
53
|
+
WIDGETSTATUS
|
|
24
54
|
});
|
package/dist/constants.mjs
CHANGED
|
@@ -1,2 +1,31 @@
|
|
|
1
1
|
// src/constants.ts
|
|
2
|
-
|
|
2
|
+
import {
|
|
3
|
+
ComponentType,
|
|
4
|
+
FieldTypeConstants,
|
|
5
|
+
KeyConstants,
|
|
6
|
+
MethodConstants,
|
|
7
|
+
MethodType,
|
|
8
|
+
ModelConstants,
|
|
9
|
+
SearchType,
|
|
10
|
+
UriConstants,
|
|
11
|
+
WIDGETAVATAR,
|
|
12
|
+
WIDGETCOLOR,
|
|
13
|
+
WIDGETCURRENCY,
|
|
14
|
+
WIDGETNOSTRING,
|
|
15
|
+
WIDGETSTATUS
|
|
16
|
+
} from "@fctc/interface-logic/constants";
|
|
17
|
+
export {
|
|
18
|
+
ComponentType,
|
|
19
|
+
FieldTypeConstants,
|
|
20
|
+
KeyConstants,
|
|
21
|
+
MethodConstants,
|
|
22
|
+
MethodType,
|
|
23
|
+
ModelConstants,
|
|
24
|
+
SearchType,
|
|
25
|
+
UriConstants,
|
|
26
|
+
WIDGETAVATAR,
|
|
27
|
+
WIDGETCOLOR,
|
|
28
|
+
WIDGETCURRENCY,
|
|
29
|
+
WIDGETNOSTRING,
|
|
30
|
+
WIDGETSTATUS
|
|
31
|
+
};
|
package/dist/environment.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { EnvStore, env, getEnv, initEnv } from '@fctc/interface-logic/environment';
|
package/dist/environment.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { EnvStore, env, getEnv, initEnv } from '@fctc/interface-logic/environment';
|
package/dist/environment.js
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,14 +15,22 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
15
|
}
|
|
12
16
|
return to;
|
|
13
17
|
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
19
|
|
|
17
20
|
// src/environment.ts
|
|
18
21
|
var environment_exports = {};
|
|
22
|
+
__export(environment_exports, {
|
|
23
|
+
EnvStore: () => import_environment.EnvStore,
|
|
24
|
+
env: () => import_environment.env,
|
|
25
|
+
getEnv: () => import_environment.getEnv,
|
|
26
|
+
initEnv: () => import_environment.initEnv
|
|
27
|
+
});
|
|
19
28
|
module.exports = __toCommonJS(environment_exports);
|
|
20
|
-
|
|
29
|
+
var import_environment = require("@fctc/interface-logic/environment");
|
|
21
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
22
31
|
0 && (module.exports = {
|
|
23
|
-
|
|
32
|
+
EnvStore,
|
|
33
|
+
env,
|
|
34
|
+
getEnv,
|
|
35
|
+
initEnv
|
|
24
36
|
});
|
package/dist/environment.mjs
CHANGED
package/dist/hooks.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
|
|
|
2
2
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { RefObject } from 'react';
|
|
5
|
-
export
|
|
5
|
+
export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFieldsViewSecurity, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage, useVerify2FA, useVerifyTotp } from '@fctc/interface-logic/hooks';
|
|
6
6
|
|
|
7
7
|
declare const useCallAction: () => readonly [ActionResult | undefined, ({ aid, actionType, }: {
|
|
8
8
|
aid: number;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
|
|
|
2
2
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { RefObject } from 'react';
|
|
5
|
-
export
|
|
5
|
+
export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFieldsViewSecurity, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage, useVerify2FA, useVerifyTotp } from '@fctc/interface-logic/hooks';
|
|
6
6
|
|
|
7
7
|
declare const useCallAction: () => readonly [ActionResult | undefined, ({ aid, actionType, }: {
|
|
8
8
|
aid: number;
|
package/dist/hooks.js
CHANGED
|
@@ -15,7 +15,6 @@ 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"));
|
|
19
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
19
|
|
|
21
20
|
// src/hooks.ts
|
|
@@ -24,15 +23,83 @@ __export(hooks_exports, {
|
|
|
24
23
|
AppProvider: () => AppProvider,
|
|
25
24
|
useAppProvider: () => useAppProvider,
|
|
26
25
|
useAuth: () => useAuth,
|
|
26
|
+
useButton: () => import_hooks10.useButton,
|
|
27
27
|
useCallAction: () => useCallAction,
|
|
28
|
+
useChangeStatus: () => import_hooks10.useChangeStatus,
|
|
28
29
|
useClickOutside: () => useClickOutside,
|
|
29
30
|
useConfig: () => useConfig,
|
|
30
31
|
useDebounce: () => useDebounce,
|
|
32
|
+
useDelete: () => import_hooks10.useDelete,
|
|
33
|
+
useDeleteComment: () => import_hooks10.useDeleteComment,
|
|
31
34
|
useDetail: () => useDetail,
|
|
35
|
+
useDuplicateRecord: () => import_hooks10.useDuplicateRecord,
|
|
36
|
+
useExecuteImport: () => import_hooks10.useExecuteImport,
|
|
37
|
+
useExportExcel: () => import_hooks10.useExportExcel,
|
|
38
|
+
useForgotPassword: () => import_hooks10.useForgotPassword,
|
|
39
|
+
useForgotPasswordSSO: () => import_hooks10.useForgotPasswordSSO,
|
|
40
|
+
useGet2FAMethods: () => import_hooks10.useGet2FAMethods,
|
|
41
|
+
useGetAccessByCode: () => import_hooks10.useGetAccessByCode,
|
|
42
|
+
useGetActionDetail: () => import_hooks10.useGetActionDetail,
|
|
43
|
+
useGetAll: () => import_hooks10.useGetAll,
|
|
44
|
+
useGetCalendar: () => import_hooks10.useGetCalendar,
|
|
45
|
+
useGetComment: () => import_hooks10.useGetComment,
|
|
46
|
+
useGetCompanyInfo: () => import_hooks10.useGetCompanyInfo,
|
|
47
|
+
useGetConversionRate: () => import_hooks10.useGetConversionRate,
|
|
48
|
+
useGetCurrency: () => import_hooks10.useGetCurrency,
|
|
49
|
+
useGetCurrentCompany: () => import_hooks10.useGetCurrentCompany,
|
|
50
|
+
useGetDetail: () => import_hooks10.useGetDetail,
|
|
51
|
+
useGetFieldExport: () => import_hooks10.useGetFieldExport,
|
|
52
|
+
useGetFieldOnChange: () => import_hooks10.useGetFieldOnChange,
|
|
53
|
+
useGetFieldsViewSecurity: () => import_hooks10.useGetFieldsViewSecurity,
|
|
54
|
+
useGetFileExcel: () => import_hooks10.useGetFileExcel,
|
|
55
|
+
useGetFormView: () => import_hooks10.useGetFormView,
|
|
56
|
+
useGetGroups: () => import_hooks10.useGetGroups,
|
|
57
|
+
useGetImage: () => import_hooks10.useGetImage,
|
|
58
|
+
useGetListCompany: () => import_hooks10.useGetListCompany,
|
|
59
|
+
useGetListData: () => import_hooks10.useGetListData,
|
|
60
|
+
useGetListMyBankAccount: () => import_hooks10.useGetListMyBankAccount,
|
|
61
|
+
useGetMenu: () => import_hooks10.useGetMenu,
|
|
62
|
+
useGetPrintReport: () => import_hooks10.useGetPrintReport,
|
|
63
|
+
useGetProGressBar: () => import_hooks10.useGetProGressBar,
|
|
64
|
+
useGetProfile: () => import_hooks10.useGetProfile,
|
|
65
|
+
useGetProvider: () => import_hooks10.useGetProvider,
|
|
66
|
+
useGetResequence: () => import_hooks10.useGetResequence,
|
|
67
|
+
useGetSelection: () => import_hooks10.useGetSelection,
|
|
68
|
+
useGetUser: () => import_hooks10.useGetUser,
|
|
69
|
+
useGetView: () => import_hooks10.useGetView,
|
|
70
|
+
useGrantAccess: () => import_hooks10.useGrantAccess,
|
|
71
|
+
useIsValidToken: () => import_hooks10.useIsValidToken,
|
|
32
72
|
useListData: () => useListData,
|
|
73
|
+
useLoadAction: () => import_hooks10.useLoadAction,
|
|
74
|
+
useLoadMessage: () => import_hooks10.useLoadMessage,
|
|
75
|
+
useLoginCredential: () => import_hooks10.useLoginCredential,
|
|
76
|
+
useLoginSocial: () => import_hooks10.useLoginSocial,
|
|
77
|
+
useLogout: () => import_hooks10.useLogout,
|
|
33
78
|
useMenu: () => useMenu,
|
|
79
|
+
useModel: () => import_hooks10.useModel,
|
|
80
|
+
useOdooDataTransform: () => import_hooks10.useOdooDataTransform,
|
|
81
|
+
useOnChangeForm: () => import_hooks10.useOnChangeForm,
|
|
82
|
+
useParsePreview: () => import_hooks10.useParsePreview,
|
|
83
|
+
usePrint: () => import_hooks10.usePrint,
|
|
34
84
|
useProfile: () => useProfile,
|
|
85
|
+
useRemoveRow: () => import_hooks10.useRemoveRow,
|
|
86
|
+
useRemoveTotpSetup: () => import_hooks10.useRemoveTotpSetup,
|
|
87
|
+
useRequestSetupTotp: () => import_hooks10.useRequestSetupTotp,
|
|
88
|
+
useResetPassword: () => import_hooks10.useResetPassword,
|
|
89
|
+
useResetPasswordSSO: () => import_hooks10.useResetPasswordSSO,
|
|
90
|
+
useRunAction: () => import_hooks10.useRunAction,
|
|
91
|
+
useSave: () => import_hooks10.useSave,
|
|
92
|
+
useSendComment: () => import_hooks10.useSendComment,
|
|
93
|
+
useSettingsWebRead2fa: () => import_hooks10.useSettingsWebRead2fa,
|
|
94
|
+
useSignInSSO: () => import_hooks10.useSignInSSO,
|
|
95
|
+
useSwitchLocale: () => import_hooks10.useSwitchLocale,
|
|
96
|
+
useUpdatePassword: () => import_hooks10.useUpdatePassword,
|
|
97
|
+
useUploadFile: () => import_hooks10.useUploadFile,
|
|
98
|
+
useUploadIdFile: () => import_hooks10.useUploadIdFile,
|
|
99
|
+
useUploadImage: () => import_hooks10.useUploadImage,
|
|
35
100
|
useUser: () => useUser,
|
|
101
|
+
useVerify2FA: () => import_hooks10.useVerify2FA,
|
|
102
|
+
useVerifyTotp: () => import_hooks10.useVerifyTotp,
|
|
36
103
|
useViewV2: () => useViewV2
|
|
37
104
|
});
|
|
38
105
|
module.exports = __toCommonJS(hooks_exports);
|
|
@@ -723,21 +790,88 @@ function useDebounce(value, delay) {
|
|
|
723
790
|
}
|
|
724
791
|
|
|
725
792
|
// src/hooks.ts
|
|
726
|
-
|
|
793
|
+
var import_hooks10 = require("@fctc/interface-logic/hooks");
|
|
727
794
|
// Annotate the CommonJS export names for ESM import in node:
|
|
728
795
|
0 && (module.exports = {
|
|
729
796
|
AppProvider,
|
|
730
797
|
useAppProvider,
|
|
731
798
|
useAuth,
|
|
799
|
+
useButton,
|
|
732
800
|
useCallAction,
|
|
801
|
+
useChangeStatus,
|
|
733
802
|
useClickOutside,
|
|
734
803
|
useConfig,
|
|
735
804
|
useDebounce,
|
|
805
|
+
useDelete,
|
|
806
|
+
useDeleteComment,
|
|
736
807
|
useDetail,
|
|
808
|
+
useDuplicateRecord,
|
|
809
|
+
useExecuteImport,
|
|
810
|
+
useExportExcel,
|
|
811
|
+
useForgotPassword,
|
|
812
|
+
useForgotPasswordSSO,
|
|
813
|
+
useGet2FAMethods,
|
|
814
|
+
useGetAccessByCode,
|
|
815
|
+
useGetActionDetail,
|
|
816
|
+
useGetAll,
|
|
817
|
+
useGetCalendar,
|
|
818
|
+
useGetComment,
|
|
819
|
+
useGetCompanyInfo,
|
|
820
|
+
useGetConversionRate,
|
|
821
|
+
useGetCurrency,
|
|
822
|
+
useGetCurrentCompany,
|
|
823
|
+
useGetDetail,
|
|
824
|
+
useGetFieldExport,
|
|
825
|
+
useGetFieldOnChange,
|
|
826
|
+
useGetFieldsViewSecurity,
|
|
827
|
+
useGetFileExcel,
|
|
828
|
+
useGetFormView,
|
|
829
|
+
useGetGroups,
|
|
830
|
+
useGetImage,
|
|
831
|
+
useGetListCompany,
|
|
832
|
+
useGetListData,
|
|
833
|
+
useGetListMyBankAccount,
|
|
834
|
+
useGetMenu,
|
|
835
|
+
useGetPrintReport,
|
|
836
|
+
useGetProGressBar,
|
|
837
|
+
useGetProfile,
|
|
838
|
+
useGetProvider,
|
|
839
|
+
useGetResequence,
|
|
840
|
+
useGetSelection,
|
|
841
|
+
useGetUser,
|
|
842
|
+
useGetView,
|
|
843
|
+
useGrantAccess,
|
|
844
|
+
useIsValidToken,
|
|
737
845
|
useListData,
|
|
846
|
+
useLoadAction,
|
|
847
|
+
useLoadMessage,
|
|
848
|
+
useLoginCredential,
|
|
849
|
+
useLoginSocial,
|
|
850
|
+
useLogout,
|
|
738
851
|
useMenu,
|
|
852
|
+
useModel,
|
|
853
|
+
useOdooDataTransform,
|
|
854
|
+
useOnChangeForm,
|
|
855
|
+
useParsePreview,
|
|
856
|
+
usePrint,
|
|
739
857
|
useProfile,
|
|
858
|
+
useRemoveRow,
|
|
859
|
+
useRemoveTotpSetup,
|
|
860
|
+
useRequestSetupTotp,
|
|
861
|
+
useResetPassword,
|
|
862
|
+
useResetPasswordSSO,
|
|
863
|
+
useRunAction,
|
|
864
|
+
useSave,
|
|
865
|
+
useSendComment,
|
|
866
|
+
useSettingsWebRead2fa,
|
|
867
|
+
useSignInSSO,
|
|
868
|
+
useSwitchLocale,
|
|
869
|
+
useUpdatePassword,
|
|
870
|
+
useUploadFile,
|
|
871
|
+
useUploadIdFile,
|
|
872
|
+
useUploadImage,
|
|
740
873
|
useUser,
|
|
741
|
-
|
|
742
|
-
|
|
874
|
+
useVerify2FA,
|
|
875
|
+
useVerifyTotp,
|
|
876
|
+
useViewV2
|
|
743
877
|
});
|
package/dist/hooks.mjs
CHANGED
|
@@ -699,19 +699,156 @@ function useDebounce(value, delay) {
|
|
|
699
699
|
}
|
|
700
700
|
|
|
701
701
|
// src/hooks.ts
|
|
702
|
-
|
|
702
|
+
import {
|
|
703
|
+
useButton,
|
|
704
|
+
useChangeStatus,
|
|
705
|
+
useDelete,
|
|
706
|
+
useDeleteComment,
|
|
707
|
+
useDuplicateRecord,
|
|
708
|
+
useExecuteImport,
|
|
709
|
+
useExportExcel,
|
|
710
|
+
useForgotPassword,
|
|
711
|
+
useForgotPasswordSSO,
|
|
712
|
+
useGet2FAMethods,
|
|
713
|
+
useGetActionDetail,
|
|
714
|
+
useGetAll,
|
|
715
|
+
useGetCalendar,
|
|
716
|
+
useGetComment,
|
|
717
|
+
useGetCompanyInfo as useGetCompanyInfo2,
|
|
718
|
+
useGetConversionRate,
|
|
719
|
+
useGetCurrency,
|
|
720
|
+
useGetCurrentCompany as useGetCurrentCompany2,
|
|
721
|
+
useGetDetail as useGetDetail2,
|
|
722
|
+
useGetFieldExport,
|
|
723
|
+
useGetFieldOnChange,
|
|
724
|
+
useGetFileExcel,
|
|
725
|
+
useGetFormView,
|
|
726
|
+
useGetGroups,
|
|
727
|
+
useGetImage,
|
|
728
|
+
useGetListCompany,
|
|
729
|
+
useGetListData as useGetListData2,
|
|
730
|
+
useGetListMyBankAccount,
|
|
731
|
+
useGetMenu as useGetMenu2,
|
|
732
|
+
useGetPrintReport,
|
|
733
|
+
useGetProfile as useGetProfile2,
|
|
734
|
+
useGetProGressBar,
|
|
735
|
+
useGetProvider,
|
|
736
|
+
useGetResequence,
|
|
737
|
+
useGetSelection,
|
|
738
|
+
useGetUser,
|
|
739
|
+
useGetView as useGetView2,
|
|
740
|
+
useIsValidToken,
|
|
741
|
+
useLoadAction as useLoadAction2,
|
|
742
|
+
useLoadMessage,
|
|
743
|
+
useLoginCredential as useLoginCredential2,
|
|
744
|
+
useLoginSocial,
|
|
745
|
+
useModel as useModel2,
|
|
746
|
+
useOdooDataTransform,
|
|
747
|
+
useOnChangeForm,
|
|
748
|
+
useParsePreview,
|
|
749
|
+
usePrint,
|
|
750
|
+
useRemoveRow,
|
|
751
|
+
useResetPassword,
|
|
752
|
+
useResetPasswordSSO,
|
|
753
|
+
useRunAction as useRunAction2,
|
|
754
|
+
useSave,
|
|
755
|
+
useSendComment,
|
|
756
|
+
useSignInSSO,
|
|
757
|
+
useSwitchLocale,
|
|
758
|
+
useUpdatePassword,
|
|
759
|
+
useUploadFile,
|
|
760
|
+
useUploadIdFile,
|
|
761
|
+
useUploadImage,
|
|
762
|
+
useVerify2FA,
|
|
763
|
+
useGetAccessByCode,
|
|
764
|
+
useLogout,
|
|
765
|
+
useGrantAccess,
|
|
766
|
+
useGetFieldsViewSecurity,
|
|
767
|
+
useRemoveTotpSetup,
|
|
768
|
+
useRequestSetupTotp,
|
|
769
|
+
useSettingsWebRead2fa,
|
|
770
|
+
useVerifyTotp
|
|
771
|
+
} from "@fctc/interface-logic/hooks";
|
|
703
772
|
export {
|
|
704
773
|
AppProvider,
|
|
705
774
|
useAppProvider,
|
|
706
775
|
useAuth,
|
|
776
|
+
useButton,
|
|
707
777
|
useCallAction,
|
|
778
|
+
useChangeStatus,
|
|
708
779
|
useClickOutside,
|
|
709
780
|
useConfig,
|
|
710
781
|
useDebounce,
|
|
782
|
+
useDelete,
|
|
783
|
+
useDeleteComment,
|
|
711
784
|
useDetail,
|
|
785
|
+
useDuplicateRecord,
|
|
786
|
+
useExecuteImport,
|
|
787
|
+
useExportExcel,
|
|
788
|
+
useForgotPassword,
|
|
789
|
+
useForgotPasswordSSO,
|
|
790
|
+
useGet2FAMethods,
|
|
791
|
+
useGetAccessByCode,
|
|
792
|
+
useGetActionDetail,
|
|
793
|
+
useGetAll,
|
|
794
|
+
useGetCalendar,
|
|
795
|
+
useGetComment,
|
|
796
|
+
useGetCompanyInfo2 as useGetCompanyInfo,
|
|
797
|
+
useGetConversionRate,
|
|
798
|
+
useGetCurrency,
|
|
799
|
+
useGetCurrentCompany2 as useGetCurrentCompany,
|
|
800
|
+
useGetDetail2 as useGetDetail,
|
|
801
|
+
useGetFieldExport,
|
|
802
|
+
useGetFieldOnChange,
|
|
803
|
+
useGetFieldsViewSecurity,
|
|
804
|
+
useGetFileExcel,
|
|
805
|
+
useGetFormView,
|
|
806
|
+
useGetGroups,
|
|
807
|
+
useGetImage,
|
|
808
|
+
useGetListCompany,
|
|
809
|
+
useGetListData2 as useGetListData,
|
|
810
|
+
useGetListMyBankAccount,
|
|
811
|
+
useGetMenu2 as useGetMenu,
|
|
812
|
+
useGetPrintReport,
|
|
813
|
+
useGetProGressBar,
|
|
814
|
+
useGetProfile2 as useGetProfile,
|
|
815
|
+
useGetProvider,
|
|
816
|
+
useGetResequence,
|
|
817
|
+
useGetSelection,
|
|
818
|
+
useGetUser,
|
|
819
|
+
useGetView2 as useGetView,
|
|
820
|
+
useGrantAccess,
|
|
821
|
+
useIsValidToken,
|
|
712
822
|
useListData,
|
|
823
|
+
useLoadAction2 as useLoadAction,
|
|
824
|
+
useLoadMessage,
|
|
825
|
+
useLoginCredential2 as useLoginCredential,
|
|
826
|
+
useLoginSocial,
|
|
827
|
+
useLogout,
|
|
713
828
|
useMenu,
|
|
829
|
+
useModel2 as useModel,
|
|
830
|
+
useOdooDataTransform,
|
|
831
|
+
useOnChangeForm,
|
|
832
|
+
useParsePreview,
|
|
833
|
+
usePrint,
|
|
714
834
|
useProfile,
|
|
835
|
+
useRemoveRow,
|
|
836
|
+
useRemoveTotpSetup,
|
|
837
|
+
useRequestSetupTotp,
|
|
838
|
+
useResetPassword,
|
|
839
|
+
useResetPasswordSSO,
|
|
840
|
+
useRunAction2 as useRunAction,
|
|
841
|
+
useSave,
|
|
842
|
+
useSendComment,
|
|
843
|
+
useSettingsWebRead2fa,
|
|
844
|
+
useSignInSSO,
|
|
845
|
+
useSwitchLocale,
|
|
846
|
+
useUpdatePassword,
|
|
847
|
+
useUploadFile,
|
|
848
|
+
useUploadIdFile,
|
|
849
|
+
useUploadImage,
|
|
715
850
|
useUser,
|
|
851
|
+
useVerify2FA,
|
|
852
|
+
useVerifyTotp,
|
|
716
853
|
useViewV2
|
|
717
854
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export { ActionResultType, AppProvider, ContextProfile, 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
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFieldsViewSecurity, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage, useVerify2FA, useVerifyTotp } from '@fctc/interface-logic/hooks';
|
|
3
|
+
export { axiosClient } from '@fctc/interface-logic/configs';
|
|
4
4
|
export { CloseIcon, EyeIcon, LoadingIcon } from './icons.mjs';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import { ChangeEvent } from 'react';
|
|
7
7
|
import moment from 'moment';
|
|
8
8
|
export { API_APP_URL, API_PRESCHOOL_URL, STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useGetRowIds, useStorageState } from './utils.mjs';
|
|
9
|
-
export
|
|
10
|
-
export { selectProfile } from '@fctc/interface-logic/store';
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
9
|
+
export { WesapError, checkIsImageLink, convertFloatToTime, convertTimeToFloat, copyTextToClipboard, domainHelper, evalJSONContext, evalJSONDomain, filterFieldDirty, formatCurrency, formatDate, formatFileSize, formatSortingString, formatUrlPath, getFieldsOnChange, getOffSet, getSubdomain, handleError, isBase64File, isBase64Image, isObjectEmpty, mergeObjects, removeUndefinedFields, resequence, stringToColor, toQueryString, updateTokenParamInOriginalRequest, useField, useTabModel, validateAndParseDate } from '@fctc/interface-logic/utils';
|
|
10
|
+
export { AppDispatch, BreadcrumbsState, ExcelState, FormState, ListState, LoginStateType, NavbarStateType, ProfileStateType, RootState, SearchState, UserInfor, ViewDataStore, breadcrumbsSlice, clearSearchMap, envSlice, envStore, excelSlice, formSlice, headerSlice, listSlice, loginSlice, navbarSlice, profileSlice, removeKeyFromSearchMap, searchSlice, selectBreadCrumbs, selectEnv, selectExcel, selectForm, selectHeader, selectList, selectLogin, selectNavbar, selectProfile, selectSearch, selectSearchMap, setAllowCompanies, setAllowedCompanyIds, setBreadCrumbs, setCompanies, setConfig, setDataParse, setDataUser, setDb, setDefaultCompany, setDomainTable, setEnv, setEnvFile, setErrorData, setFieldTranslate, setFields, setFilterBy, setFirstDomain, setForgotPasswordUrl, setFormSubmitComponent, setGroupBy, setGroupByDomain, setHeader, setHoveredIndexSearchList, setIdFile, setIndexRowTableModal, setIsFileLoaded, setIsShowModalTranslate, setIsShowingModalDetail, setIsUpdateTableModal, setLang, setListSubject, setLoadingImport, setMenuFocus, setMenuFocusAction, setMenuList, setNavbarWidth, setOrder, setPage, setPageLimit, setProfile, setRedirectTo, setSearchBy, setSearchMap, setSearchString, setSelectedFile, setSelectedRadioKey, setSelectedRowKeys, setSelectedTags, setTransferDetail, setUid, setUser, setViewDataStore, updateSearchMap, useAppDispatch, useAppSelector } from '@fctc/interface-logic/store';
|
|
11
|
+
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS } from '@fctc/interface-logic/constants';
|
|
12
|
+
export { EnvStore, env, getEnv, initEnv } from '@fctc/interface-logic/environment';
|
|
13
|
+
export { MainProvider, ReactQueryProvider, VersionGate } from '@fctc/interface-logic/provider';
|
|
14
|
+
export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanService, ModelService, UserService, ViewService } from '@fctc/interface-logic/services';
|
|
15
15
|
import '@tanstack/react-query';
|
|
16
16
|
import '@tanstack/query-core';
|
|
17
17
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export { ActionResultType, AppProvider, ContextProfile, 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
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFieldsViewSecurity, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage, useVerify2FA, useVerifyTotp } from '@fctc/interface-logic/hooks';
|
|
3
|
+
export { axiosClient } from '@fctc/interface-logic/configs';
|
|
4
4
|
export { CloseIcon, EyeIcon, LoadingIcon } from './icons.js';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import { ChangeEvent } from 'react';
|
|
7
7
|
import moment from 'moment';
|
|
8
8
|
export { API_APP_URL, API_PRESCHOOL_URL, STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useGetRowIds, useStorageState } from './utils.js';
|
|
9
|
-
export
|
|
10
|
-
export { selectProfile } from '@fctc/interface-logic/store';
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
9
|
+
export { WesapError, checkIsImageLink, convertFloatToTime, convertTimeToFloat, copyTextToClipboard, domainHelper, evalJSONContext, evalJSONDomain, filterFieldDirty, formatCurrency, formatDate, formatFileSize, formatSortingString, formatUrlPath, getFieldsOnChange, getOffSet, getSubdomain, handleError, isBase64File, isBase64Image, isObjectEmpty, mergeObjects, removeUndefinedFields, resequence, stringToColor, toQueryString, updateTokenParamInOriginalRequest, useField, useTabModel, validateAndParseDate } from '@fctc/interface-logic/utils';
|
|
10
|
+
export { AppDispatch, BreadcrumbsState, ExcelState, FormState, ListState, LoginStateType, NavbarStateType, ProfileStateType, RootState, SearchState, UserInfor, ViewDataStore, breadcrumbsSlice, clearSearchMap, envSlice, envStore, excelSlice, formSlice, headerSlice, listSlice, loginSlice, navbarSlice, profileSlice, removeKeyFromSearchMap, searchSlice, selectBreadCrumbs, selectEnv, selectExcel, selectForm, selectHeader, selectList, selectLogin, selectNavbar, selectProfile, selectSearch, selectSearchMap, setAllowCompanies, setAllowedCompanyIds, setBreadCrumbs, setCompanies, setConfig, setDataParse, setDataUser, setDb, setDefaultCompany, setDomainTable, setEnv, setEnvFile, setErrorData, setFieldTranslate, setFields, setFilterBy, setFirstDomain, setForgotPasswordUrl, setFormSubmitComponent, setGroupBy, setGroupByDomain, setHeader, setHoveredIndexSearchList, setIdFile, setIndexRowTableModal, setIsFileLoaded, setIsShowModalTranslate, setIsShowingModalDetail, setIsUpdateTableModal, setLang, setListSubject, setLoadingImport, setMenuFocus, setMenuFocusAction, setMenuList, setNavbarWidth, setOrder, setPage, setPageLimit, setProfile, setRedirectTo, setSearchBy, setSearchMap, setSearchString, setSelectedFile, setSelectedRadioKey, setSelectedRowKeys, setSelectedTags, setTransferDetail, setUid, setUser, setViewDataStore, updateSearchMap, useAppDispatch, useAppSelector } from '@fctc/interface-logic/store';
|
|
11
|
+
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS } from '@fctc/interface-logic/constants';
|
|
12
|
+
export { EnvStore, env, getEnv, initEnv } from '@fctc/interface-logic/environment';
|
|
13
|
+
export { MainProvider, ReactQueryProvider, VersionGate } from '@fctc/interface-logic/provider';
|
|
14
|
+
export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanService, ModelService, UserService, ViewService } from '@fctc/interface-logic/services';
|
|
15
15
|
import '@tanstack/react-query';
|
|
16
16
|
import '@tanstack/query-core';
|
|
17
17
|
|