@fctc/interface-logic 2.3.5 → 2.3.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 +14 -4
- package/dist/hooks.d.ts +14 -4
- package/dist/hooks.js +92 -44
- package/dist/hooks.mjs +92 -44
- package/dist/provider.d.mts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +93 -45
- package/dist/provider.mjs +93 -45
- package/dist/services.d.mts +20 -12
- package/dist/services.d.ts +20 -12
- package/dist/services.js +52 -22
- package/dist/services.mjs +52 -22
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.js +4 -2
- package/dist/utils.mjs +4 -2
- package/dist/{view-type-p4JdAOsz.d.mts → view-type-DioSS9fJ.d.mts} +3 -0
- package/dist/{view-type-p4JdAOsz.d.ts → view-type-DioSS9fJ.d.ts} +3 -0
- package/package.json +1 -1
package/dist/configs.js
CHANGED
|
@@ -2378,7 +2378,7 @@ var axiosClient = {
|
|
|
2378
2378
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2379
2379
|
headers
|
|
2380
2380
|
).then(responseBody),
|
|
2381
|
-
post: (url, body, headers, serviceName) => instance.post(
|
|
2381
|
+
post: async (url, body, headers, serviceName) => instance.post(
|
|
2382
2382
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2383
2383
|
body,
|
|
2384
2384
|
headers
|
package/dist/configs.mjs
CHANGED
|
@@ -2342,7 +2342,7 @@ var axiosClient = {
|
|
|
2342
2342
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2343
2343
|
headers
|
|
2344
2344
|
).then(responseBody),
|
|
2345
|
-
post: (url, body, headers, serviceName) => instance.post(
|
|
2345
|
+
post: async (url, body, headers, serviceName) => instance.post(
|
|
2346
2346
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2347
2347
|
body,
|
|
2348
2348
|
headers
|
package/dist/environment.js
CHANGED
|
@@ -2380,7 +2380,7 @@ var axiosClient = {
|
|
|
2380
2380
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2381
2381
|
headers
|
|
2382
2382
|
).then(responseBody),
|
|
2383
|
-
post: (url, body, headers, serviceName) => instance.post(
|
|
2383
|
+
post: async (url, body, headers, serviceName) => instance.post(
|
|
2384
2384
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2385
2385
|
body,
|
|
2386
2386
|
headers
|
package/dist/environment.mjs
CHANGED
|
@@ -2342,7 +2342,7 @@ var axiosClient = {
|
|
|
2342
2342
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2343
2343
|
headers
|
|
2344
2344
|
).then(responseBody),
|
|
2345
|
-
post: (url, body, headers, serviceName) => instance.post(
|
|
2345
|
+
post: async (url, body, headers, serviceName) => instance.post(
|
|
2346
2346
|
formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
|
|
2347
2347
|
body,
|
|
2348
2348
|
headers
|
package/dist/hooks.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-
|
|
2
|
+
import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-DioSS9fJ.mjs';
|
|
3
3
|
|
|
4
4
|
declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
5
5
|
|
|
@@ -158,11 +158,13 @@ declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, E
|
|
|
158
158
|
specification?: any;
|
|
159
159
|
context?: any;
|
|
160
160
|
service?: string;
|
|
161
|
+
xNode?: string;
|
|
161
162
|
}, unknown>;
|
|
162
163
|
|
|
163
|
-
declare const useGetFieldOnChange: ({ model, service, }: {
|
|
164
|
+
declare const useGetFieldOnChange: ({ model, service, xNode, }: {
|
|
164
165
|
model: string;
|
|
165
166
|
service?: string;
|
|
167
|
+
xNode?: string;
|
|
166
168
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
167
169
|
|
|
168
170
|
declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
|
|
@@ -211,6 +213,7 @@ declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any
|
|
|
211
213
|
object: any;
|
|
212
214
|
fieldChange?: any;
|
|
213
215
|
service?: string;
|
|
216
|
+
xNode?: string;
|
|
214
217
|
}, unknown>;
|
|
215
218
|
|
|
216
219
|
declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
@@ -221,6 +224,7 @@ declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error,
|
|
|
221
224
|
context: any;
|
|
222
225
|
path?: string;
|
|
223
226
|
service?: string;
|
|
227
|
+
xNode?: string;
|
|
224
228
|
}, unknown>;
|
|
225
229
|
|
|
226
230
|
declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
@@ -244,6 +248,7 @@ declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Erro
|
|
|
244
248
|
context: ContextApi;
|
|
245
249
|
method: any;
|
|
246
250
|
service?: string;
|
|
251
|
+
xNode?: string;
|
|
247
252
|
}, unknown>;
|
|
248
253
|
|
|
249
254
|
declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
@@ -251,6 +256,7 @@ declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<
|
|
|
251
256
|
model: string;
|
|
252
257
|
context: ContextApi;
|
|
253
258
|
service?: string;
|
|
259
|
+
xNode?: string;
|
|
254
260
|
}, unknown>;
|
|
255
261
|
|
|
256
262
|
declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
|
|
@@ -269,7 +275,7 @@ declare const useGetGroups: ({ model, width_context, }: {
|
|
|
269
275
|
width_context: any;
|
|
270
276
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
271
277
|
|
|
272
|
-
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
278
|
+
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
273
279
|
|
|
274
280
|
declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
275
281
|
|
|
@@ -284,11 +290,12 @@ declare const useGetProGressBar: ({ field, color, model, width_context, }: {
|
|
|
284
290
|
width_context: string;
|
|
285
291
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
286
292
|
|
|
287
|
-
declare const useGetSelection: ({ data, queryKey, enabled, service }: {
|
|
293
|
+
declare const useGetSelection: ({ data, queryKey, enabled, service, xNode, }: {
|
|
288
294
|
data: GetSelectionType;
|
|
289
295
|
queryKey: any[];
|
|
290
296
|
enabled?: boolean;
|
|
291
297
|
service?: string;
|
|
298
|
+
xNode?: string;
|
|
292
299
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
293
300
|
|
|
294
301
|
declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -297,6 +304,7 @@ declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any,
|
|
|
297
304
|
idAction: any;
|
|
298
305
|
context: ContextApi;
|
|
299
306
|
service?: string;
|
|
307
|
+
xNode?: string;
|
|
300
308
|
}, unknown>;
|
|
301
309
|
|
|
302
310
|
declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -312,6 +320,7 @@ declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, E
|
|
|
312
320
|
ids: Record<string, any>[] | any;
|
|
313
321
|
context: ContextApi;
|
|
314
322
|
service?: string;
|
|
323
|
+
xNode?: string;
|
|
315
324
|
}, unknown>;
|
|
316
325
|
|
|
317
326
|
declare const useGetResequence: (model: string, resIds: any, context: any, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -320,6 +329,7 @@ declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, E
|
|
|
320
329
|
idAction: any;
|
|
321
330
|
context: ContextApi;
|
|
322
331
|
service?: string;
|
|
332
|
+
xNode?: string;
|
|
323
333
|
}, unknown>;
|
|
324
334
|
|
|
325
335
|
declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-
|
|
2
|
+
import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-DioSS9fJ.js';
|
|
3
3
|
|
|
4
4
|
declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
5
5
|
|
|
@@ -158,11 +158,13 @@ declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, E
|
|
|
158
158
|
specification?: any;
|
|
159
159
|
context?: any;
|
|
160
160
|
service?: string;
|
|
161
|
+
xNode?: string;
|
|
161
162
|
}, unknown>;
|
|
162
163
|
|
|
163
|
-
declare const useGetFieldOnChange: ({ model, service, }: {
|
|
164
|
+
declare const useGetFieldOnChange: ({ model, service, xNode, }: {
|
|
164
165
|
model: string;
|
|
165
166
|
service?: string;
|
|
167
|
+
xNode?: string;
|
|
166
168
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
167
169
|
|
|
168
170
|
declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
|
|
@@ -211,6 +213,7 @@ declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any
|
|
|
211
213
|
object: any;
|
|
212
214
|
fieldChange?: any;
|
|
213
215
|
service?: string;
|
|
216
|
+
xNode?: string;
|
|
214
217
|
}, unknown>;
|
|
215
218
|
|
|
216
219
|
declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
@@ -221,6 +224,7 @@ declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error,
|
|
|
221
224
|
context: any;
|
|
222
225
|
path?: string;
|
|
223
226
|
service?: string;
|
|
227
|
+
xNode?: string;
|
|
224
228
|
}, unknown>;
|
|
225
229
|
|
|
226
230
|
declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
@@ -244,6 +248,7 @@ declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Erro
|
|
|
244
248
|
context: ContextApi;
|
|
245
249
|
method: any;
|
|
246
250
|
service?: string;
|
|
251
|
+
xNode?: string;
|
|
247
252
|
}, unknown>;
|
|
248
253
|
|
|
249
254
|
declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
@@ -251,6 +256,7 @@ declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<
|
|
|
251
256
|
model: string;
|
|
252
257
|
context: ContextApi;
|
|
253
258
|
service?: string;
|
|
259
|
+
xNode?: string;
|
|
254
260
|
}, unknown>;
|
|
255
261
|
|
|
256
262
|
declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
|
|
@@ -269,7 +275,7 @@ declare const useGetGroups: ({ model, width_context, }: {
|
|
|
269
275
|
width_context: any;
|
|
270
276
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
271
277
|
|
|
272
|
-
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
278
|
+
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
273
279
|
|
|
274
280
|
declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
275
281
|
|
|
@@ -284,11 +290,12 @@ declare const useGetProGressBar: ({ field, color, model, width_context, }: {
|
|
|
284
290
|
width_context: string;
|
|
285
291
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
286
292
|
|
|
287
|
-
declare const useGetSelection: ({ data, queryKey, enabled, service }: {
|
|
293
|
+
declare const useGetSelection: ({ data, queryKey, enabled, service, xNode, }: {
|
|
288
294
|
data: GetSelectionType;
|
|
289
295
|
queryKey: any[];
|
|
290
296
|
enabled?: boolean;
|
|
291
297
|
service?: string;
|
|
298
|
+
xNode?: string;
|
|
292
299
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
293
300
|
|
|
294
301
|
declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -297,6 +304,7 @@ declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any,
|
|
|
297
304
|
idAction: any;
|
|
298
305
|
context: ContextApi;
|
|
299
306
|
service?: string;
|
|
307
|
+
xNode?: string;
|
|
300
308
|
}, unknown>;
|
|
301
309
|
|
|
302
310
|
declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -312,6 +320,7 @@ declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, E
|
|
|
312
320
|
ids: Record<string, any>[] | any;
|
|
313
321
|
context: ContextApi;
|
|
314
322
|
service?: string;
|
|
323
|
+
xNode?: string;
|
|
315
324
|
}, unknown>;
|
|
316
325
|
|
|
317
326
|
declare const useGetResequence: (model: string, resIds: any, context: any, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -320,6 +329,7 @@ declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, E
|
|
|
320
329
|
idAction: any;
|
|
321
330
|
context: ContextApi;
|
|
322
331
|
service?: string;
|
|
332
|
+
xNode?: string;
|
|
323
333
|
}, unknown>;
|
|
324
334
|
|
|
325
335
|
declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
package/dist/hooks.js
CHANGED
|
@@ -2946,7 +2946,8 @@ function useActionService() {
|
|
|
2946
2946
|
async ({
|
|
2947
2947
|
idAction,
|
|
2948
2948
|
context,
|
|
2949
|
-
service
|
|
2949
|
+
service,
|
|
2950
|
+
xNode
|
|
2950
2951
|
}) => {
|
|
2951
2952
|
const jsonData = {
|
|
2952
2953
|
action_id: idAction,
|
|
@@ -2956,7 +2957,7 @@ function useActionService() {
|
|
|
2956
2957
|
"/load_action" /* LOAD_ACTION */,
|
|
2957
2958
|
jsonData,
|
|
2958
2959
|
{
|
|
2959
|
-
headers: { "Content-Type": "application/json" }
|
|
2960
|
+
headers: { "Content-Type": "application/json", x_node: xNode }
|
|
2960
2961
|
},
|
|
2961
2962
|
service
|
|
2962
2963
|
);
|
|
@@ -2969,7 +2970,8 @@ function useActionService() {
|
|
|
2969
2970
|
ids = [],
|
|
2970
2971
|
context,
|
|
2971
2972
|
method,
|
|
2972
|
-
service
|
|
2973
|
+
service,
|
|
2974
|
+
xNode
|
|
2973
2975
|
}) => {
|
|
2974
2976
|
try {
|
|
2975
2977
|
const jsonData = {
|
|
@@ -2982,7 +2984,8 @@ function useActionService() {
|
|
|
2982
2984
|
"/call" /* CALL_PATH */,
|
|
2983
2985
|
jsonData,
|
|
2984
2986
|
{
|
|
2985
|
-
headers: { "Content-Type": "application/json" }
|
|
2987
|
+
headers: { "Content-Type": "application/json" },
|
|
2988
|
+
...xNode ? { x_node: xNode } : {}
|
|
2986
2989
|
},
|
|
2987
2990
|
service
|
|
2988
2991
|
);
|
|
@@ -2998,7 +3001,8 @@ function useActionService() {
|
|
|
2998
3001
|
model,
|
|
2999
3002
|
ids,
|
|
3000
3003
|
context,
|
|
3001
|
-
service
|
|
3004
|
+
service,
|
|
3005
|
+
xNode
|
|
3002
3006
|
}) => {
|
|
3003
3007
|
const jsonData = {
|
|
3004
3008
|
model,
|
|
@@ -3010,7 +3014,8 @@ function useActionService() {
|
|
|
3010
3014
|
"/call" /* CALL_PATH */,
|
|
3011
3015
|
jsonData,
|
|
3012
3016
|
{
|
|
3013
|
-
headers: { "Content-Type": "application/json" }
|
|
3017
|
+
headers: { "Content-Type": "application/json" },
|
|
3018
|
+
...xNode ? { x_node: xNode } : {}
|
|
3014
3019
|
},
|
|
3015
3020
|
service
|
|
3016
3021
|
);
|
|
@@ -3022,7 +3027,8 @@ function useActionService() {
|
|
|
3022
3027
|
model,
|
|
3023
3028
|
id,
|
|
3024
3029
|
context,
|
|
3025
|
-
service
|
|
3030
|
+
service,
|
|
3031
|
+
xNode
|
|
3026
3032
|
}) => {
|
|
3027
3033
|
const jsonData = {
|
|
3028
3034
|
model,
|
|
@@ -3034,7 +3040,8 @@ function useActionService() {
|
|
|
3034
3040
|
"/call" /* CALL_PATH */,
|
|
3035
3041
|
jsonData,
|
|
3036
3042
|
{
|
|
3037
|
-
headers: { "Content-Type": "application/json" }
|
|
3043
|
+
headers: { "Content-Type": "application/json" },
|
|
3044
|
+
...xNode ? { x_node: xNode } : {}
|
|
3038
3045
|
},
|
|
3039
3046
|
service
|
|
3040
3047
|
);
|
|
@@ -3081,7 +3088,8 @@ function useActionService() {
|
|
|
3081
3088
|
async ({
|
|
3082
3089
|
idAction,
|
|
3083
3090
|
context,
|
|
3084
|
-
service
|
|
3091
|
+
service,
|
|
3092
|
+
xNode
|
|
3085
3093
|
}) => {
|
|
3086
3094
|
const jsonData = {
|
|
3087
3095
|
action_id: idAction,
|
|
@@ -3091,7 +3099,8 @@ function useActionService() {
|
|
|
3091
3099
|
"/run_action" /* RUN_ACTION_PATH */,
|
|
3092
3100
|
jsonData,
|
|
3093
3101
|
{
|
|
3094
|
-
headers: { "Content-Type": "application/json" }
|
|
3102
|
+
headers: { "Content-Type": "application/json" },
|
|
3103
|
+
...xNode ? { x_node: xNode } : {}
|
|
3095
3104
|
},
|
|
3096
3105
|
service
|
|
3097
3106
|
);
|
|
@@ -3814,7 +3823,11 @@ function useModelService() {
|
|
|
3814
3823
|
});
|
|
3815
3824
|
}, [env]);
|
|
3816
3825
|
const getAll = (0, import_react12.useCallback)(
|
|
3817
|
-
async ({
|
|
3826
|
+
async ({
|
|
3827
|
+
data,
|
|
3828
|
+
service,
|
|
3829
|
+
xNode
|
|
3830
|
+
}) => {
|
|
3818
3831
|
const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
3819
3832
|
fields: data.fields,
|
|
3820
3833
|
groupby: data.groupby
|
|
@@ -3840,7 +3853,8 @@ function useModelService() {
|
|
|
3840
3853
|
jsonData,
|
|
3841
3854
|
{
|
|
3842
3855
|
headers: {
|
|
3843
|
-
"Content-Type": "application/json"
|
|
3856
|
+
"Content-Type": "application/json",
|
|
3857
|
+
...xNode ? { x_node: xNode } : {}
|
|
3844
3858
|
}
|
|
3845
3859
|
},
|
|
3846
3860
|
service
|
|
@@ -3917,7 +3931,8 @@ function useModelService() {
|
|
|
3917
3931
|
model,
|
|
3918
3932
|
specification,
|
|
3919
3933
|
context,
|
|
3920
|
-
service
|
|
3934
|
+
service,
|
|
3935
|
+
xNode
|
|
3921
3936
|
}) => {
|
|
3922
3937
|
const jsonData = {
|
|
3923
3938
|
model,
|
|
@@ -3933,7 +3948,8 @@ function useModelService() {
|
|
|
3933
3948
|
jsonData,
|
|
3934
3949
|
{
|
|
3935
3950
|
headers: {
|
|
3936
|
-
"Content-Type": "application/json"
|
|
3951
|
+
"Content-Type": "application/json",
|
|
3952
|
+
...xNode ? { x_node: xNode } : {}
|
|
3937
3953
|
}
|
|
3938
3954
|
},
|
|
3939
3955
|
service
|
|
@@ -3949,7 +3965,8 @@ function useModelService() {
|
|
|
3949
3965
|
specification = {},
|
|
3950
3966
|
context = {},
|
|
3951
3967
|
path,
|
|
3952
|
-
service
|
|
3968
|
+
service,
|
|
3969
|
+
xNode
|
|
3953
3970
|
}) => {
|
|
3954
3971
|
const jsonData = {
|
|
3955
3972
|
model,
|
|
@@ -3966,7 +3983,8 @@ function useModelService() {
|
|
|
3966
3983
|
jsonData,
|
|
3967
3984
|
{
|
|
3968
3985
|
headers: {
|
|
3969
|
-
"Content-Type": "application/json"
|
|
3986
|
+
"Content-Type": "application/json",
|
|
3987
|
+
...xNode ? { x_node: xNode } : {}
|
|
3970
3988
|
}
|
|
3971
3989
|
},
|
|
3972
3990
|
service
|
|
@@ -4002,7 +4020,8 @@ function useModelService() {
|
|
|
4002
4020
|
specification,
|
|
4003
4021
|
context,
|
|
4004
4022
|
fieldChange,
|
|
4005
|
-
service
|
|
4023
|
+
service,
|
|
4024
|
+
xNode
|
|
4006
4025
|
}) => {
|
|
4007
4026
|
const jsonData = {
|
|
4008
4027
|
model,
|
|
@@ -4020,7 +4039,8 @@ function useModelService() {
|
|
|
4020
4039
|
jsonData,
|
|
4021
4040
|
{
|
|
4022
4041
|
headers: {
|
|
4023
|
-
"Content-Type": "application/json"
|
|
4042
|
+
"Content-Type": "application/json",
|
|
4043
|
+
...xNode ? { x_node: xNode } : {}
|
|
4024
4044
|
}
|
|
4025
4045
|
},
|
|
4026
4046
|
service
|
|
@@ -4029,7 +4049,11 @@ function useModelService() {
|
|
|
4029
4049
|
[env]
|
|
4030
4050
|
);
|
|
4031
4051
|
const getListFieldsOnchange = (0, import_react12.useCallback)(
|
|
4032
|
-
async ({
|
|
4052
|
+
async ({
|
|
4053
|
+
model,
|
|
4054
|
+
service,
|
|
4055
|
+
xNode
|
|
4056
|
+
}) => {
|
|
4033
4057
|
const jsonData = {
|
|
4034
4058
|
model,
|
|
4035
4059
|
method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
|
|
@@ -4039,7 +4063,8 @@ function useModelService() {
|
|
|
4039
4063
|
jsonData,
|
|
4040
4064
|
{
|
|
4041
4065
|
headers: {
|
|
4042
|
-
"Content-Type": "application/json"
|
|
4066
|
+
"Content-Type": "application/json",
|
|
4067
|
+
...xNode ? { x_node: xNode } : {}
|
|
4043
4068
|
}
|
|
4044
4069
|
},
|
|
4045
4070
|
service
|
|
@@ -4313,7 +4338,11 @@ function useViewService() {
|
|
|
4313
4338
|
[env]
|
|
4314
4339
|
);
|
|
4315
4340
|
const getSelectionItem = (0, import_react14.useCallback)(
|
|
4316
|
-
async ({
|
|
4341
|
+
async ({
|
|
4342
|
+
data,
|
|
4343
|
+
service,
|
|
4344
|
+
xNode
|
|
4345
|
+
}) => {
|
|
4317
4346
|
const jsonData = {
|
|
4318
4347
|
model: data.model,
|
|
4319
4348
|
ids: [],
|
|
@@ -4336,7 +4365,8 @@ function useViewService() {
|
|
|
4336
4365
|
jsonData,
|
|
4337
4366
|
{
|
|
4338
4367
|
headers: {
|
|
4339
|
-
"Content-Type": "application/json"
|
|
4368
|
+
"Content-Type": "application/json",
|
|
4369
|
+
...xNode ? { x_node: xNode } : {}
|
|
4340
4370
|
}
|
|
4341
4371
|
},
|
|
4342
4372
|
service
|
|
@@ -5084,13 +5114,15 @@ var useGetDetail = () => {
|
|
|
5084
5114
|
ids,
|
|
5085
5115
|
specification,
|
|
5086
5116
|
context,
|
|
5087
|
-
service
|
|
5117
|
+
service,
|
|
5118
|
+
xNode
|
|
5088
5119
|
}) => getDetail({
|
|
5089
5120
|
model,
|
|
5090
5121
|
ids,
|
|
5091
5122
|
specification,
|
|
5092
5123
|
context,
|
|
5093
|
-
service
|
|
5124
|
+
service,
|
|
5125
|
+
xNode
|
|
5094
5126
|
})
|
|
5095
5127
|
});
|
|
5096
5128
|
};
|
|
@@ -5100,14 +5132,16 @@ var use_get_detail_default = useGetDetail;
|
|
|
5100
5132
|
var import_react_query38 = require("@tanstack/react-query");
|
|
5101
5133
|
var useGetFieldOnChange = ({
|
|
5102
5134
|
model,
|
|
5103
|
-
service
|
|
5135
|
+
service,
|
|
5136
|
+
xNode
|
|
5104
5137
|
}) => {
|
|
5105
5138
|
const { getListFieldsOnchange } = useModelService();
|
|
5106
5139
|
return (0, import_react_query38.useQuery)({
|
|
5107
5140
|
queryKey: [`field-onchange-${model}`, model],
|
|
5108
5141
|
queryFn: () => getListFieldsOnchange({
|
|
5109
5142
|
model,
|
|
5110
|
-
service
|
|
5143
|
+
service,
|
|
5144
|
+
xNode
|
|
5111
5145
|
}).then((res) => {
|
|
5112
5146
|
if (res) {
|
|
5113
5147
|
return res;
|
|
@@ -5292,7 +5326,8 @@ var useOnChangeForm = () => {
|
|
|
5292
5326
|
context,
|
|
5293
5327
|
object,
|
|
5294
5328
|
fieldChange,
|
|
5295
|
-
service
|
|
5329
|
+
service,
|
|
5330
|
+
xNode
|
|
5296
5331
|
}) => onChange({
|
|
5297
5332
|
ids,
|
|
5298
5333
|
model,
|
|
@@ -5300,7 +5335,8 @@ var useOnChangeForm = () => {
|
|
|
5300
5335
|
context,
|
|
5301
5336
|
object,
|
|
5302
5337
|
fieldChange,
|
|
5303
|
-
service
|
|
5338
|
+
service,
|
|
5339
|
+
xNode
|
|
5304
5340
|
})
|
|
5305
5341
|
});
|
|
5306
5342
|
};
|
|
@@ -5318,8 +5354,9 @@ var useSave = () => {
|
|
|
5318
5354
|
specification,
|
|
5319
5355
|
context,
|
|
5320
5356
|
path,
|
|
5321
|
-
service
|
|
5322
|
-
|
|
5357
|
+
service,
|
|
5358
|
+
xNode
|
|
5359
|
+
}) => save({ ids, model, data, specification, context, path, service, xNode })
|
|
5323
5360
|
});
|
|
5324
5361
|
};
|
|
5325
5362
|
var use_save_default = useSave;
|
|
@@ -5372,13 +5409,15 @@ var useButton = () => {
|
|
|
5372
5409
|
ids,
|
|
5373
5410
|
context,
|
|
5374
5411
|
method,
|
|
5375
|
-
service
|
|
5412
|
+
service,
|
|
5413
|
+
xNode
|
|
5376
5414
|
}) => callButton({
|
|
5377
5415
|
model,
|
|
5378
5416
|
ids,
|
|
5379
5417
|
context,
|
|
5380
5418
|
method,
|
|
5381
|
-
service
|
|
5419
|
+
service,
|
|
5420
|
+
xNode
|
|
5382
5421
|
}),
|
|
5383
5422
|
onSuccess: (response) => {
|
|
5384
5423
|
return response;
|
|
@@ -5396,12 +5435,14 @@ var useDuplicateRecord = () => {
|
|
|
5396
5435
|
id,
|
|
5397
5436
|
model,
|
|
5398
5437
|
context,
|
|
5399
|
-
service
|
|
5438
|
+
service,
|
|
5439
|
+
xNode
|
|
5400
5440
|
}) => duplicateRecord({
|
|
5401
5441
|
id,
|
|
5402
5442
|
model,
|
|
5403
5443
|
context,
|
|
5404
|
-
service
|
|
5444
|
+
service,
|
|
5445
|
+
xNode
|
|
5405
5446
|
})
|
|
5406
5447
|
});
|
|
5407
5448
|
};
|
|
@@ -5484,11 +5525,11 @@ var use_get_groups_default = useGetGroups;
|
|
|
5484
5525
|
|
|
5485
5526
|
// src/hooks/view/use-get-list-data.ts
|
|
5486
5527
|
var import_react_query50 = require("@tanstack/react-query");
|
|
5487
|
-
var useGetListData = (listDataProps, queryKey, enabled, service) => {
|
|
5528
|
+
var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
|
|
5488
5529
|
const { getAll } = useModelService();
|
|
5489
5530
|
return (0, import_react_query50.useQuery)({
|
|
5490
5531
|
queryKey,
|
|
5491
|
-
queryFn: () => getAll({ data: listDataProps, service }).then((res) => {
|
|
5532
|
+
queryFn: () => getAll({ data: listDataProps, service, xNode }).then((res) => {
|
|
5492
5533
|
if (res) {
|
|
5493
5534
|
return res;
|
|
5494
5535
|
}
|
|
@@ -5565,12 +5606,13 @@ var useGetSelection = ({
|
|
|
5565
5606
|
data,
|
|
5566
5607
|
queryKey,
|
|
5567
5608
|
enabled,
|
|
5568
|
-
service
|
|
5609
|
+
service,
|
|
5610
|
+
xNode
|
|
5569
5611
|
}) => {
|
|
5570
5612
|
const { getSelectionItem } = useViewService();
|
|
5571
5613
|
return (0, import_react_query54.useQuery)({
|
|
5572
5614
|
queryKey,
|
|
5573
|
-
queryFn: () => getSelectionItem({ data, service }),
|
|
5615
|
+
queryFn: () => getSelectionItem({ data, service, xNode }),
|
|
5574
5616
|
enabled,
|
|
5575
5617
|
refetchOnWindowFocus: false
|
|
5576
5618
|
});
|
|
@@ -5599,12 +5641,14 @@ var useLoadAction = () => {
|
|
|
5599
5641
|
mutationFn: ({
|
|
5600
5642
|
idAction,
|
|
5601
5643
|
context,
|
|
5602
|
-
service
|
|
5644
|
+
service,
|
|
5645
|
+
xNode
|
|
5603
5646
|
}) => {
|
|
5604
5647
|
return loadAction({
|
|
5605
5648
|
idAction,
|
|
5606
5649
|
context,
|
|
5607
|
-
service
|
|
5650
|
+
service,
|
|
5651
|
+
xNode
|
|
5608
5652
|
});
|
|
5609
5653
|
}
|
|
5610
5654
|
});
|
|
@@ -5646,12 +5690,14 @@ var useRemoveRow = () => {
|
|
|
5646
5690
|
model,
|
|
5647
5691
|
ids,
|
|
5648
5692
|
context,
|
|
5649
|
-
service
|
|
5693
|
+
service,
|
|
5694
|
+
xNode
|
|
5650
5695
|
}) => removeRows({
|
|
5651
5696
|
model,
|
|
5652
5697
|
ids,
|
|
5653
5698
|
context,
|
|
5654
|
-
service
|
|
5699
|
+
service,
|
|
5700
|
+
xNode
|
|
5655
5701
|
})
|
|
5656
5702
|
});
|
|
5657
5703
|
};
|
|
@@ -5683,11 +5729,13 @@ var useRunAction = () => {
|
|
|
5683
5729
|
mutationFn: ({
|
|
5684
5730
|
idAction,
|
|
5685
5731
|
context,
|
|
5686
|
-
service
|
|
5732
|
+
service,
|
|
5733
|
+
xNode
|
|
5687
5734
|
}) => runAction({
|
|
5688
5735
|
idAction,
|
|
5689
5736
|
context,
|
|
5690
|
-
service
|
|
5737
|
+
service,
|
|
5738
|
+
xNode
|
|
5691
5739
|
})
|
|
5692
5740
|
});
|
|
5693
5741
|
};
|