@fctc/widget-logic 5.3.5 → 5.3.6
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 +0 -1
- package/dist/config.d.ts +0 -1
- package/dist/hooks.d.mts +9 -16
- package/dist/hooks.d.ts +9 -16
- package/dist/hooks.js +355 -166
- package/dist/hooks.mjs +335 -156
- package/dist/index.d.mts +4 -6
- package/dist/index.d.ts +4 -6
- package/dist/index.js +610 -4728
- package/dist/index.mjs +484 -4621
- package/dist/utils.d.mts +5 -8
- package/dist/utils.d.ts +5 -8
- package/dist/utils.js +326 -104
- package/dist/utils.mjs +313 -101
- package/dist/widget.d.mts +10 -6
- package/dist/widget.d.ts +10 -6
- package/dist/widget.js +540 -4376
- package/dist/widget.mjs +445 -4300
- package/package.json +14 -37
- package/dist/icons.d.mts +0 -27
- package/dist/icons.d.ts +0 -27
- package/dist/icons.js +0 -273
- package/dist/icons.mjs +0 -239
- package/dist/store.d.mts +0 -1
- package/dist/store.d.ts +0 -1
- package/dist/store.js +0 -24
- package/dist/store.mjs +0 -2
package/dist/config.d.mts
CHANGED
package/dist/config.d.ts
CHANGED
package/dist/hooks.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { useAddEntity, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups,
|
|
1
|
+
export { useAddEntity, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPinCode, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp } from '@fctc/interface-logic/hooks';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
4
4
|
import * as react from 'react';
|
|
5
|
-
import react__default
|
|
5
|
+
import react__default from 'react';
|
|
6
6
|
|
|
7
7
|
declare const useCallAction: () => readonly [ActionResult | undefined, ({ aid, service, xNode, context, }: {
|
|
8
8
|
aid: any;
|
|
@@ -97,8 +97,9 @@ interface UseMenuReturn {
|
|
|
97
97
|
xNode?: string;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
declare const useUser: ({ service }: {
|
|
100
|
+
declare const useUser: ({ service, i18n }: {
|
|
101
101
|
service?: string;
|
|
102
|
+
i18n: any;
|
|
102
103
|
}) => any;
|
|
103
104
|
type useUserType = ReturnType<typeof useUser>;
|
|
104
105
|
|
|
@@ -555,7 +556,7 @@ type AppProviderType = {
|
|
|
555
556
|
menu: useMenuType;
|
|
556
557
|
view: useViewV2Type;
|
|
557
558
|
};
|
|
558
|
-
declare const AppProvider: ({ children, menuParams, aid, }: {
|
|
559
|
+
declare const AppProvider: ({ children, menuParams, aid, i18n, }: {
|
|
559
560
|
children: React.ReactNode;
|
|
560
561
|
} & {
|
|
561
562
|
menuParams: {
|
|
@@ -564,6 +565,7 @@ declare const AppProvider: ({ children, menuParams, aid, }: {
|
|
|
564
565
|
context?: any;
|
|
565
566
|
};
|
|
566
567
|
aid?: any;
|
|
568
|
+
i18n?: any;
|
|
567
569
|
}) => react_jsx_runtime.JSX.Element;
|
|
568
570
|
declare const useAppProvider: () => AppProviderType;
|
|
569
571
|
|
|
@@ -1046,8 +1048,9 @@ declare const useListData: ({ action, context, viewData, model, service, xNode,
|
|
|
1046
1048
|
};
|
|
1047
1049
|
type useListDataType = ReturnType<typeof useListData>;
|
|
1048
1050
|
|
|
1049
|
-
declare const useProfile: ({ service }: {
|
|
1051
|
+
declare const useProfile: ({ service, i18n, }: {
|
|
1050
1052
|
service?: string;
|
|
1053
|
+
i18n?: any;
|
|
1051
1054
|
}) => {
|
|
1052
1055
|
context: ContextProfile | undefined;
|
|
1053
1056
|
data: UserInfo | undefined;
|
|
@@ -1166,16 +1169,6 @@ type ContextProfile = {
|
|
|
1166
1169
|
[key: string]: any;
|
|
1167
1170
|
};
|
|
1168
1171
|
|
|
1169
|
-
declare const DEFAULT_EVENTS: readonly ["mousedown", "touchstart"];
|
|
1170
|
-
type EventType = (typeof DEFAULT_EVENTS)[number];
|
|
1171
|
-
interface UseClickOutsideOptions {
|
|
1172
|
-
handler: (event?: Event) => void;
|
|
1173
|
-
events?: readonly EventType[];
|
|
1174
|
-
nodes?: (HTMLDivElement | null)[];
|
|
1175
|
-
refs?: any;
|
|
1176
|
-
}
|
|
1177
|
-
declare const useClickOutside: ({ handler, events, nodes, refs, }: UseClickOutsideOptions) => RefObject<HTMLDivElement | null>;
|
|
1178
|
-
|
|
1179
1172
|
declare function useDebounce<T>(value: T, delay: number): [T];
|
|
1180
1173
|
|
|
1181
1174
|
declare const useGetRowIds: (tableRef: react__default.RefObject<HTMLTableElement | null>) => {
|
|
@@ -1183,4 +1176,4 @@ declare const useGetRowIds: (tableRef: react__default.RefObject<HTMLTableElement
|
|
|
1183
1176
|
refresh: () => void;
|
|
1184
1177
|
};
|
|
1185
1178
|
|
|
1186
|
-
export { type ActionResultType, AppProvider, type CompanyTuple, type ContextProfile, type CurrentCompany, type RecordMenu, type UseMenuReturn, type ViewResponse, useAppProvider, useCallAction, type useCallActionType,
|
|
1179
|
+
export { type ActionResultType, AppProvider, type CompanyTuple, type ContextProfile, type CurrentCompany, type RecordMenu, type UseMenuReturn, type ViewResponse, useAppProvider, useCallAction, type useCallActionType, useCompany, type useCompanyType, useConfig, type useConfigType, useDebounce, useDetail, useGetAction, useGetRowIds, useGetSpecification, useListData, type useListDataType, useMenu, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { useAddEntity, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups,
|
|
1
|
+
export { useAddEntity, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPinCode, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp } from '@fctc/interface-logic/hooks';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
4
4
|
import * as react from 'react';
|
|
5
|
-
import react__default
|
|
5
|
+
import react__default from 'react';
|
|
6
6
|
|
|
7
7
|
declare const useCallAction: () => readonly [ActionResult | undefined, ({ aid, service, xNode, context, }: {
|
|
8
8
|
aid: any;
|
|
@@ -97,8 +97,9 @@ interface UseMenuReturn {
|
|
|
97
97
|
xNode?: string;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
declare const useUser: ({ service }: {
|
|
100
|
+
declare const useUser: ({ service, i18n }: {
|
|
101
101
|
service?: string;
|
|
102
|
+
i18n: any;
|
|
102
103
|
}) => any;
|
|
103
104
|
type useUserType = ReturnType<typeof useUser>;
|
|
104
105
|
|
|
@@ -555,7 +556,7 @@ type AppProviderType = {
|
|
|
555
556
|
menu: useMenuType;
|
|
556
557
|
view: useViewV2Type;
|
|
557
558
|
};
|
|
558
|
-
declare const AppProvider: ({ children, menuParams, aid, }: {
|
|
559
|
+
declare const AppProvider: ({ children, menuParams, aid, i18n, }: {
|
|
559
560
|
children: React.ReactNode;
|
|
560
561
|
} & {
|
|
561
562
|
menuParams: {
|
|
@@ -564,6 +565,7 @@ declare const AppProvider: ({ children, menuParams, aid, }: {
|
|
|
564
565
|
context?: any;
|
|
565
566
|
};
|
|
566
567
|
aid?: any;
|
|
568
|
+
i18n?: any;
|
|
567
569
|
}) => react_jsx_runtime.JSX.Element;
|
|
568
570
|
declare const useAppProvider: () => AppProviderType;
|
|
569
571
|
|
|
@@ -1046,8 +1048,9 @@ declare const useListData: ({ action, context, viewData, model, service, xNode,
|
|
|
1046
1048
|
};
|
|
1047
1049
|
type useListDataType = ReturnType<typeof useListData>;
|
|
1048
1050
|
|
|
1049
|
-
declare const useProfile: ({ service }: {
|
|
1051
|
+
declare const useProfile: ({ service, i18n, }: {
|
|
1050
1052
|
service?: string;
|
|
1053
|
+
i18n?: any;
|
|
1051
1054
|
}) => {
|
|
1052
1055
|
context: ContextProfile | undefined;
|
|
1053
1056
|
data: UserInfo | undefined;
|
|
@@ -1166,16 +1169,6 @@ type ContextProfile = {
|
|
|
1166
1169
|
[key: string]: any;
|
|
1167
1170
|
};
|
|
1168
1171
|
|
|
1169
|
-
declare const DEFAULT_EVENTS: readonly ["mousedown", "touchstart"];
|
|
1170
|
-
type EventType = (typeof DEFAULT_EVENTS)[number];
|
|
1171
|
-
interface UseClickOutsideOptions {
|
|
1172
|
-
handler: (event?: Event) => void;
|
|
1173
|
-
events?: readonly EventType[];
|
|
1174
|
-
nodes?: (HTMLDivElement | null)[];
|
|
1175
|
-
refs?: any;
|
|
1176
|
-
}
|
|
1177
|
-
declare const useClickOutside: ({ handler, events, nodes, refs, }: UseClickOutsideOptions) => RefObject<HTMLDivElement | null>;
|
|
1178
|
-
|
|
1179
1172
|
declare function useDebounce<T>(value: T, delay: number): [T];
|
|
1180
1173
|
|
|
1181
1174
|
declare const useGetRowIds: (tableRef: react__default.RefObject<HTMLTableElement | null>) => {
|
|
@@ -1183,4 +1176,4 @@ declare const useGetRowIds: (tableRef: react__default.RefObject<HTMLTableElement
|
|
|
1183
1176
|
refresh: () => void;
|
|
1184
1177
|
};
|
|
1185
1178
|
|
|
1186
|
-
export { type ActionResultType, AppProvider, type CompanyTuple, type ContextProfile, type CurrentCompany, type RecordMenu, type UseMenuReturn, type ViewResponse, useAppProvider, useCallAction, type useCallActionType,
|
|
1179
|
+
export { type ActionResultType, AppProvider, type CompanyTuple, type ContextProfile, type CurrentCompany, type RecordMenu, type UseMenuReturn, type ViewResponse, useAppProvider, useCallAction, type useCallActionType, useCompany, type useCompanyType, useConfig, type useConfigType, useDebounce, useDetail, useGetAction, useGetRowIds, useGetSpecification, useListData, type useListDataType, useMenu, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|