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