@fctc/interface-logic 2.2.7 → 2.2.9
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/configs.js +1 -1
- package/dist/configs.mjs +1 -1
- package/dist/environment.js +1 -1
- package/dist/environment.mjs +1 -1
- package/dist/hooks.d.mts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +4 -4
- package/dist/hooks.mjs +4 -4
- package/dist/provider.d.mts +7 -6
- package/dist/provider.d.ts +7 -6
- package/dist/provider.js +5 -5
- package/dist/provider.mjs +5 -5
- package/dist/services.d.mts +1 -1
- package/dist/services.d.ts +1 -1
- package/dist/services.js +2 -2
- package/dist/services.mjs +2 -2
- package/package.json +85 -85
package/dist/configs.js
CHANGED
|
@@ -2370,7 +2370,7 @@ var axiosClient = {
|
|
|
2370
2370
|
}
|
|
2371
2371
|
const getBaseUrl = (baseUrl, serviceName) => {
|
|
2372
2372
|
const service = serviceName || config?.default_service;
|
|
2373
|
-
return
|
|
2373
|
+
return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
|
|
2374
2374
|
};
|
|
2375
2375
|
const responseBody = (response) => response;
|
|
2376
2376
|
const requests = {
|
package/dist/configs.mjs
CHANGED
|
@@ -2334,7 +2334,7 @@ var axiosClient = {
|
|
|
2334
2334
|
}
|
|
2335
2335
|
const getBaseUrl = (baseUrl, serviceName) => {
|
|
2336
2336
|
const service = serviceName || config?.default_service;
|
|
2337
|
-
return
|
|
2337
|
+
return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
|
|
2338
2338
|
};
|
|
2339
2339
|
const responseBody = (response) => response;
|
|
2340
2340
|
const requests = {
|
package/dist/environment.js
CHANGED
|
@@ -2372,7 +2372,7 @@ var axiosClient = {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
const getBaseUrl = (baseUrl, serviceName) => {
|
|
2374
2374
|
const service = serviceName || config?.default_service;
|
|
2375
|
-
return
|
|
2375
|
+
return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
|
|
2376
2376
|
};
|
|
2377
2377
|
const responseBody = (response) => response;
|
|
2378
2378
|
const requests = {
|
package/dist/environment.mjs
CHANGED
|
@@ -2334,7 +2334,7 @@ var axiosClient = {
|
|
|
2334
2334
|
}
|
|
2335
2335
|
const getBaseUrl = (baseUrl, serviceName) => {
|
|
2336
2336
|
const service = serviceName || config?.default_service;
|
|
2337
|
-
return
|
|
2337
|
+
return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
|
|
2338
2338
|
};
|
|
2339
2339
|
const responseBody = (response) => response;
|
|
2340
2340
|
const requests = {
|
package/dist/hooks.d.mts
CHANGED
|
@@ -271,7 +271,7 @@ declare const useGetGroups: ({ model, width_context, }: {
|
|
|
271
271
|
|
|
272
272
|
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
273
273
|
|
|
274
|
-
declare const useGetMenu: (context: any, specification: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
274
|
+
declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
275
275
|
|
|
276
276
|
declare const useGetPrintReport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
277
277
|
id: number;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -271,7 +271,7 @@ declare const useGetGroups: ({ model, width_context, }: {
|
|
|
271
271
|
|
|
272
272
|
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
273
273
|
|
|
274
|
-
declare const useGetMenu: (context: any, specification: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
274
|
+
declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
275
275
|
|
|
276
276
|
declare const useGetPrintReport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
277
277
|
id: number;
|
package/dist/hooks.js
CHANGED
|
@@ -4234,7 +4234,7 @@ function useViewService() {
|
|
|
4234
4234
|
[env]
|
|
4235
4235
|
);
|
|
4236
4236
|
const getMenu = (0, import_react14.useCallback)(
|
|
4237
|
-
async (context, specification) => {
|
|
4237
|
+
async (context, specification, domain) => {
|
|
4238
4238
|
const jsonData = {
|
|
4239
4239
|
model: "ir.ui.menu" /* MENU */,
|
|
4240
4240
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4242,7 +4242,7 @@ function useViewService() {
|
|
|
4242
4242
|
with_context: context,
|
|
4243
4243
|
kwargs: {
|
|
4244
4244
|
specification,
|
|
4245
|
-
domain: [
|
|
4245
|
+
domain: domain ?? [
|
|
4246
4246
|
"&",
|
|
4247
4247
|
["is_display", "=", true],
|
|
4248
4248
|
"&",
|
|
@@ -5501,11 +5501,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
5501
5501
|
|
|
5502
5502
|
// src/hooks/view/use-get-menu.ts
|
|
5503
5503
|
var import_react_query51 = require("@tanstack/react-query");
|
|
5504
|
-
var useGetMenu = (context, specification, enabled) => {
|
|
5504
|
+
var useGetMenu = (context, specification, enabled, domain) => {
|
|
5505
5505
|
const { getMenu } = useViewService();
|
|
5506
5506
|
return (0, import_react_query51.useQuery)({
|
|
5507
5507
|
queryKey: ["menus" /* MENU */, context],
|
|
5508
|
-
queryFn: () => getMenu(context, specification).then((res) => {
|
|
5508
|
+
queryFn: () => getMenu(context, specification, domain).then((res) => {
|
|
5509
5509
|
if (res && res?.records && res?.records?.length > 0) {
|
|
5510
5510
|
return res?.records;
|
|
5511
5511
|
}
|
package/dist/hooks.mjs
CHANGED
|
@@ -4130,7 +4130,7 @@ function useViewService() {
|
|
|
4130
4130
|
[env]
|
|
4131
4131
|
);
|
|
4132
4132
|
const getMenu = useCallback10(
|
|
4133
|
-
async (context, specification) => {
|
|
4133
|
+
async (context, specification, domain) => {
|
|
4134
4134
|
const jsonData = {
|
|
4135
4135
|
model: "ir.ui.menu" /* MENU */,
|
|
4136
4136
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4138,7 +4138,7 @@ function useViewService() {
|
|
|
4138
4138
|
with_context: context,
|
|
4139
4139
|
kwargs: {
|
|
4140
4140
|
specification,
|
|
4141
|
-
domain: [
|
|
4141
|
+
domain: domain ?? [
|
|
4142
4142
|
"&",
|
|
4143
4143
|
["is_display", "=", true],
|
|
4144
4144
|
"&",
|
|
@@ -5397,11 +5397,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
5397
5397
|
|
|
5398
5398
|
// src/hooks/view/use-get-menu.ts
|
|
5399
5399
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
5400
|
-
var useGetMenu = (context, specification, enabled) => {
|
|
5400
|
+
var useGetMenu = (context, specification, enabled, domain) => {
|
|
5401
5401
|
const { getMenu } = useViewService();
|
|
5402
5402
|
return useQuery15({
|
|
5403
5403
|
queryKey: ["menus" /* MENU */, context],
|
|
5404
|
-
queryFn: () => getMenu(context, specification).then((res) => {
|
|
5404
|
+
queryFn: () => getMenu(context, specification, domain).then((res) => {
|
|
5405
5405
|
if (res && res?.records && res?.records?.length > 0) {
|
|
5406
5406
|
return res?.records;
|
|
5407
5407
|
}
|
package/dist/provider.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-ARp_lhTD.mjs';
|
|
3
4
|
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile } from './hooks.mjs';
|
|
@@ -6,15 +7,15 @@ import './view-type-p4JdAOsz.mjs';
|
|
|
6
7
|
|
|
7
8
|
declare const MainProvider: ({ children }: {
|
|
8
9
|
children: ReactNode;
|
|
9
|
-
}) => JSX.Element;
|
|
10
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
10
11
|
|
|
11
12
|
declare const ReactQueryProvider: ({ children }: {
|
|
12
13
|
children: ReactNode;
|
|
13
|
-
}) => JSX.Element;
|
|
14
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
14
15
|
|
|
15
16
|
declare const VersionGate: ({ children }: {
|
|
16
17
|
children: ReactNode;
|
|
17
|
-
}) => JSX.Element | null;
|
|
18
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
18
19
|
|
|
19
20
|
interface EnvConfig {
|
|
20
21
|
env?: any;
|
|
@@ -46,7 +47,7 @@ declare function EnvProvider({ children, localStorageUtils: localStorageUtil, se
|
|
|
46
47
|
children: React.ReactNode;
|
|
47
48
|
localStorageUtils?: LocalStorageUtilsType;
|
|
48
49
|
sessionStorageUtils?: SessionStorageUtilsType;
|
|
49
|
-
}): JSX.Element;
|
|
50
|
+
}): react_jsx_runtime.JSX.Element;
|
|
50
51
|
declare function useEnv(): {
|
|
51
52
|
env: EnvConfig;
|
|
52
53
|
setupEnv: (envConfig: Partial<EnvConfig>) => EnvConfig;
|
|
@@ -133,12 +134,12 @@ interface ServiceContextType {
|
|
|
133
134
|
}
|
|
134
135
|
declare const ServiceProvider: ({ children, }: {
|
|
135
136
|
children: React.ReactNode;
|
|
136
|
-
}) => JSX.Element;
|
|
137
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
137
138
|
declare const useService: () => ServiceContextType;
|
|
138
139
|
|
|
139
140
|
type MetaProviderProps = {
|
|
140
141
|
children: ReactNode;
|
|
141
142
|
};
|
|
142
|
-
declare const MetaProvider: ({ children }: MetaProviderProps) => JSX.Element;
|
|
143
|
+
declare const MetaProvider: ({ children }: MetaProviderProps) => react_jsx_runtime.JSX.Element;
|
|
143
144
|
|
|
144
145
|
export { EnvProvider, MainProvider, MetaProvider, ReactQueryProvider, ServiceProvider, VersionGate, useEnv, useService };
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-ARp_lhTD.js';
|
|
3
4
|
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile } from './hooks.js';
|
|
@@ -6,15 +7,15 @@ import './view-type-p4JdAOsz.js';
|
|
|
6
7
|
|
|
7
8
|
declare const MainProvider: ({ children }: {
|
|
8
9
|
children: ReactNode;
|
|
9
|
-
}) => JSX.Element;
|
|
10
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
10
11
|
|
|
11
12
|
declare const ReactQueryProvider: ({ children }: {
|
|
12
13
|
children: ReactNode;
|
|
13
|
-
}) => JSX.Element;
|
|
14
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
14
15
|
|
|
15
16
|
declare const VersionGate: ({ children }: {
|
|
16
17
|
children: ReactNode;
|
|
17
|
-
}) => JSX.Element | null;
|
|
18
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
18
19
|
|
|
19
20
|
interface EnvConfig {
|
|
20
21
|
env?: any;
|
|
@@ -46,7 +47,7 @@ declare function EnvProvider({ children, localStorageUtils: localStorageUtil, se
|
|
|
46
47
|
children: React.ReactNode;
|
|
47
48
|
localStorageUtils?: LocalStorageUtilsType;
|
|
48
49
|
sessionStorageUtils?: SessionStorageUtilsType;
|
|
49
|
-
}): JSX.Element;
|
|
50
|
+
}): react_jsx_runtime.JSX.Element;
|
|
50
51
|
declare function useEnv(): {
|
|
51
52
|
env: EnvConfig;
|
|
52
53
|
setupEnv: (envConfig: Partial<EnvConfig>) => EnvConfig;
|
|
@@ -133,12 +134,12 @@ interface ServiceContextType {
|
|
|
133
134
|
}
|
|
134
135
|
declare const ServiceProvider: ({ children, }: {
|
|
135
136
|
children: React.ReactNode;
|
|
136
|
-
}) => JSX.Element;
|
|
137
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
137
138
|
declare const useService: () => ServiceContextType;
|
|
138
139
|
|
|
139
140
|
type MetaProviderProps = {
|
|
140
141
|
children: ReactNode;
|
|
141
142
|
};
|
|
142
|
-
declare const MetaProvider: ({ children }: MetaProviderProps) => JSX.Element;
|
|
143
|
+
declare const MetaProvider: ({ children }: MetaProviderProps) => react_jsx_runtime.JSX.Element;
|
|
143
144
|
|
|
144
145
|
export { EnvProvider, MainProvider, MetaProvider, ReactQueryProvider, ServiceProvider, VersionGate, useEnv, useService };
|
package/dist/provider.js
CHANGED
|
@@ -4182,7 +4182,7 @@ function useViewService() {
|
|
|
4182
4182
|
[env]
|
|
4183
4183
|
);
|
|
4184
4184
|
const getMenu = (0, import_react10.useCallback)(
|
|
4185
|
-
async (context, specification) => {
|
|
4185
|
+
async (context, specification, domain) => {
|
|
4186
4186
|
const jsonData = {
|
|
4187
4187
|
model: "ir.ui.menu" /* MENU */,
|
|
4188
4188
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4190,7 +4190,7 @@ function useViewService() {
|
|
|
4190
4190
|
with_context: context,
|
|
4191
4191
|
kwargs: {
|
|
4192
4192
|
specification,
|
|
4193
|
-
domain: [
|
|
4193
|
+
domain: domain ?? [
|
|
4194
4194
|
"&",
|
|
4195
4195
|
["is_display", "=", true],
|
|
4196
4196
|
"&",
|
|
@@ -4742,7 +4742,7 @@ var axiosClient = {
|
|
|
4742
4742
|
}
|
|
4743
4743
|
const getBaseUrl = (baseUrl, serviceName) => {
|
|
4744
4744
|
const service = serviceName || config?.default_service;
|
|
4745
|
-
return
|
|
4745
|
+
return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
|
|
4746
4746
|
};
|
|
4747
4747
|
const responseBody = (response) => response;
|
|
4748
4748
|
const requests = {
|
|
@@ -5867,11 +5867,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
5867
5867
|
|
|
5868
5868
|
// src/hooks/view/use-get-menu.ts
|
|
5869
5869
|
var import_react_query51 = require("@tanstack/react-query");
|
|
5870
|
-
var useGetMenu = (context, specification, enabled) => {
|
|
5870
|
+
var useGetMenu = (context, specification, enabled, domain) => {
|
|
5871
5871
|
const { getMenu } = useViewService();
|
|
5872
5872
|
return (0, import_react_query51.useQuery)({
|
|
5873
5873
|
queryKey: ["menus" /* MENU */, context],
|
|
5874
|
-
queryFn: () => getMenu(context, specification).then((res) => {
|
|
5874
|
+
queryFn: () => getMenu(context, specification, domain).then((res) => {
|
|
5875
5875
|
if (res && res?.records && res?.records?.length > 0) {
|
|
5876
5876
|
return res?.records;
|
|
5877
5877
|
}
|
package/dist/provider.mjs
CHANGED
|
@@ -4139,7 +4139,7 @@ function useViewService() {
|
|
|
4139
4139
|
[env]
|
|
4140
4140
|
);
|
|
4141
4141
|
const getMenu = useCallback9(
|
|
4142
|
-
async (context, specification) => {
|
|
4142
|
+
async (context, specification, domain) => {
|
|
4143
4143
|
const jsonData = {
|
|
4144
4144
|
model: "ir.ui.menu" /* MENU */,
|
|
4145
4145
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4147,7 +4147,7 @@ function useViewService() {
|
|
|
4147
4147
|
with_context: context,
|
|
4148
4148
|
kwargs: {
|
|
4149
4149
|
specification,
|
|
4150
|
-
domain: [
|
|
4150
|
+
domain: domain ?? [
|
|
4151
4151
|
"&",
|
|
4152
4152
|
["is_display", "=", true],
|
|
4153
4153
|
"&",
|
|
@@ -4699,7 +4699,7 @@ var axiosClient = {
|
|
|
4699
4699
|
}
|
|
4700
4700
|
const getBaseUrl = (baseUrl, serviceName) => {
|
|
4701
4701
|
const service = serviceName || config?.default_service;
|
|
4702
|
-
return
|
|
4702
|
+
return `${baseUrl.replace(/\/$/, "")}/${service}/api/v2`;
|
|
4703
4703
|
};
|
|
4704
4704
|
const responseBody = (response) => response;
|
|
4705
4705
|
const requests = {
|
|
@@ -5824,11 +5824,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
5824
5824
|
|
|
5825
5825
|
// src/hooks/view/use-get-menu.ts
|
|
5826
5826
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
5827
|
-
var useGetMenu = (context, specification, enabled) => {
|
|
5827
|
+
var useGetMenu = (context, specification, enabled, domain) => {
|
|
5828
5828
|
const { getMenu } = useViewService();
|
|
5829
5829
|
return useQuery15({
|
|
5830
5830
|
queryKey: ["menus" /* MENU */, context],
|
|
5831
|
-
queryFn: () => getMenu(context, specification).then((res) => {
|
|
5831
|
+
queryFn: () => getMenu(context, specification, domain).then((res) => {
|
|
5832
5832
|
if (res && res?.records && res?.records?.length > 0) {
|
|
5833
5833
|
return res?.records;
|
|
5834
5834
|
}
|
package/dist/services.d.mts
CHANGED
|
@@ -206,7 +206,7 @@ declare function useUserService(): {
|
|
|
206
206
|
|
|
207
207
|
declare function useViewService(): {
|
|
208
208
|
getView: ({ model, views, context, options, aid, service, }: GetViewParams) => Promise<any>;
|
|
209
|
-
getMenu: (context: any, specification: any) => Promise<any>;
|
|
209
|
+
getMenu: (context: any, specification: any, domain: any) => Promise<any>;
|
|
210
210
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
211
211
|
getResequence: ({ model, ids, context, offset, }: {
|
|
212
212
|
model: string;
|
package/dist/services.d.ts
CHANGED
|
@@ -206,7 +206,7 @@ declare function useUserService(): {
|
|
|
206
206
|
|
|
207
207
|
declare function useViewService(): {
|
|
208
208
|
getView: ({ model, views, context, options, aid, service, }: GetViewParams) => Promise<any>;
|
|
209
|
-
getMenu: (context: any, specification: any) => Promise<any>;
|
|
209
|
+
getMenu: (context: any, specification: any, domain: any) => Promise<any>;
|
|
210
210
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
211
211
|
getResequence: ({ model, ids, context, offset, }: {
|
|
212
212
|
model: string;
|
package/dist/services.js
CHANGED
|
@@ -4352,7 +4352,7 @@ function useViewService() {
|
|
|
4352
4352
|
[env]
|
|
4353
4353
|
);
|
|
4354
4354
|
const getMenu = (0, import_react14.useCallback)(
|
|
4355
|
-
async (context, specification) => {
|
|
4355
|
+
async (context, specification, domain) => {
|
|
4356
4356
|
const jsonData = {
|
|
4357
4357
|
model: "ir.ui.menu" /* MENU */,
|
|
4358
4358
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4360,7 +4360,7 @@ function useViewService() {
|
|
|
4360
4360
|
with_context: context,
|
|
4361
4361
|
kwargs: {
|
|
4362
4362
|
specification,
|
|
4363
|
-
domain: [
|
|
4363
|
+
domain: domain ?? [
|
|
4364
4364
|
"&",
|
|
4365
4365
|
["is_display", "=", true],
|
|
4366
4366
|
"&",
|
package/dist/services.mjs
CHANGED
|
@@ -4308,7 +4308,7 @@ function useViewService() {
|
|
|
4308
4308
|
[env]
|
|
4309
4309
|
);
|
|
4310
4310
|
const getMenu = useCallback10(
|
|
4311
|
-
async (context, specification) => {
|
|
4311
|
+
async (context, specification, domain) => {
|
|
4312
4312
|
const jsonData = {
|
|
4313
4313
|
model: "ir.ui.menu" /* MENU */,
|
|
4314
4314
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4316,7 +4316,7 @@ function useViewService() {
|
|
|
4316
4316
|
with_context: context,
|
|
4317
4317
|
kwargs: {
|
|
4318
4318
|
specification,
|
|
4319
|
-
domain: [
|
|
4319
|
+
domain: domain ?? [
|
|
4320
4320
|
"&",
|
|
4321
4321
|
["is_display", "=", true],
|
|
4322
4322
|
"&",
|
package/package.json
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"types": "dist/index.d.ts",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./configs": {
|
|
14
|
-
"types": "./dist/configs.d.ts",
|
|
15
|
-
"import": "./dist/configs.mjs",
|
|
16
|
-
"require": "./dist/configs.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./constants": {
|
|
19
|
-
"types": "./dist/constants.d.ts",
|
|
20
|
-
"import": "./dist/constants.mjs",
|
|
21
|
-
"require": "./dist/constants.cjs"
|
|
22
|
-
},
|
|
23
|
-
"./environment": {
|
|
24
|
-
"types": "./dist/environment.d.ts",
|
|
25
|
-
"import": "./dist/environment.mjs",
|
|
26
|
-
"require": "./dist/environment.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./hooks": {
|
|
29
|
-
"types": "./dist/hooks.d.ts",
|
|
30
|
-
"import": "./dist/hooks.mjs",
|
|
31
|
-
"require": "./dist/hooks.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./provider": {
|
|
34
|
-
"types": "./dist/provider.d.ts",
|
|
35
|
-
"import": "./dist/provider.mjs",
|
|
36
|
-
"require": "./dist/provider.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./services": {
|
|
39
|
-
"types": "./dist/services.d.ts",
|
|
40
|
-
"import": "./dist/services.mjs",
|
|
41
|
-
"require": "./dist/services.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./store": {
|
|
44
|
-
"types": "./dist/store.d.ts",
|
|
45
|
-
"import": "./dist/store.mjs",
|
|
46
|
-
"require": "./dist/store.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./utils": {
|
|
49
|
-
"types": "./dist/utils.d.ts",
|
|
50
|
-
"import": "./dist/utils.mjs",
|
|
51
|
-
"require": "./dist/utils.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./types": {
|
|
54
|
-
"types": "./dist/types.d.ts",
|
|
55
|
-
"import": "./dist/types.mjs",
|
|
56
|
-
"require": "./dist/types.cjs"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"files": [
|
|
60
|
-
"dist"
|
|
61
|
-
],
|
|
62
|
-
"scripts": {
|
|
63
|
-
"build": "tsup",
|
|
64
|
-
"test": "jest"
|
|
65
|
-
},
|
|
66
|
-
"peerDependencies": {
|
|
67
|
-
"react": "18.0.0",
|
|
68
|
-
"@tanstack/react-query": "^5.83.0"
|
|
69
|
-
},
|
|
70
|
-
"dependencies": {
|
|
71
|
-
"@reduxjs/toolkit": "^2.8.2",
|
|
72
|
-
"@tanstack/react-query": "^5.83.0",
|
|
73
|
-
"axios": "^1.11.0",
|
|
74
|
-
"moment": "^2.30.1",
|
|
75
|
-
"react-redux": "^9.2.0"
|
|
76
|
-
},
|
|
77
|
-
"devDependencies": {
|
|
78
|
-
"@types/react": "^18.3.1",
|
|
79
|
-
"react": "18.0.0",
|
|
80
|
-
"jest": "^29.7.0",
|
|
81
|
-
"tsup": "^8.0.0",
|
|
82
|
-
"typescript": "^5.8.2"
|
|
83
|
-
},
|
|
84
|
-
"packageManager": "yarn@1.22.0"
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/interface-logic",
|
|
3
|
+
"version": "2.2.9",
|
|
4
|
+
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./configs": {
|
|
14
|
+
"types": "./dist/configs.d.ts",
|
|
15
|
+
"import": "./dist/configs.mjs",
|
|
16
|
+
"require": "./dist/configs.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./constants": {
|
|
19
|
+
"types": "./dist/constants.d.ts",
|
|
20
|
+
"import": "./dist/constants.mjs",
|
|
21
|
+
"require": "./dist/constants.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./environment": {
|
|
24
|
+
"types": "./dist/environment.d.ts",
|
|
25
|
+
"import": "./dist/environment.mjs",
|
|
26
|
+
"require": "./dist/environment.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./hooks": {
|
|
29
|
+
"types": "./dist/hooks.d.ts",
|
|
30
|
+
"import": "./dist/hooks.mjs",
|
|
31
|
+
"require": "./dist/hooks.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./provider": {
|
|
34
|
+
"types": "./dist/provider.d.ts",
|
|
35
|
+
"import": "./dist/provider.mjs",
|
|
36
|
+
"require": "./dist/provider.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./services": {
|
|
39
|
+
"types": "./dist/services.d.ts",
|
|
40
|
+
"import": "./dist/services.mjs",
|
|
41
|
+
"require": "./dist/services.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./store": {
|
|
44
|
+
"types": "./dist/store.d.ts",
|
|
45
|
+
"import": "./dist/store.mjs",
|
|
46
|
+
"require": "./dist/store.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./utils": {
|
|
49
|
+
"types": "./dist/utils.d.ts",
|
|
50
|
+
"import": "./dist/utils.mjs",
|
|
51
|
+
"require": "./dist/utils.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./types": {
|
|
54
|
+
"types": "./dist/types.d.ts",
|
|
55
|
+
"import": "./dist/types.mjs",
|
|
56
|
+
"require": "./dist/types.cjs"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist"
|
|
61
|
+
],
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "tsup",
|
|
64
|
+
"test": "jest"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"react": "18.0.0",
|
|
68
|
+
"@tanstack/react-query": "^5.83.0"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@reduxjs/toolkit": "^2.8.2",
|
|
72
|
+
"@tanstack/react-query": "^5.83.0",
|
|
73
|
+
"axios": "^1.11.0",
|
|
74
|
+
"moment": "^2.30.1",
|
|
75
|
+
"react-redux": "^9.2.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@types/react": "^18.3.1",
|
|
79
|
+
"react": "18.0.0",
|
|
80
|
+
"jest": "^29.7.0",
|
|
81
|
+
"tsup": "^8.0.0",
|
|
82
|
+
"typescript": "^5.8.2"
|
|
83
|
+
},
|
|
84
|
+
"packageManager": "yarn@1.22.0"
|
|
85
|
+
}
|