@fctc/interface-logic 2.4.1 → 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 +48 -99
- package/dist/hooks.mjs +49 -100
- package/dist/provider.d.mts +7 -8
- package/dist/provider.d.ts +7 -8
- package/dist/provider.js +49 -100
- package/dist/provider.mjs +50 -101
- package/dist/services.d.mts +13 -21
- package/dist/services.d.ts +13 -21
- package/dist/services.js +25 -57
- package/dist/services.mjs +26 -58
- 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-xxw9OeSR.d.mts → view-type-p4JdAOsz.d.mts} +0 -4
- package/dist/{view-type-xxw9OeSR.d.ts → view-type-p4JdAOsz.d.ts} +0 -4
- package/package.json +85 -85
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
|
|
@@ -4229,8 +4204,7 @@ function useViewService() {
|
|
|
4229
4204
|
context = {},
|
|
4230
4205
|
options = {},
|
|
4231
4206
|
aid,
|
|
4232
|
-
service
|
|
4233
|
-
xNode
|
|
4207
|
+
service
|
|
4234
4208
|
}) => {
|
|
4235
4209
|
const defaultOptions = {
|
|
4236
4210
|
load_filters: true,
|
|
@@ -4251,8 +4225,7 @@ function useViewService() {
|
|
|
4251
4225
|
jsonDataView,
|
|
4252
4226
|
{
|
|
4253
4227
|
headers: {
|
|
4254
|
-
"Content-Type": "application/json"
|
|
4255
|
-
...xNode ? { x_node: xNode } : {}
|
|
4228
|
+
"Content-Type": "application/json"
|
|
4256
4229
|
}
|
|
4257
4230
|
},
|
|
4258
4231
|
service
|
|
@@ -4340,11 +4313,7 @@ function useViewService() {
|
|
|
4340
4313
|
[env]
|
|
4341
4314
|
);
|
|
4342
4315
|
const getSelectionItem = (0, import_react14.useCallback)(
|
|
4343
|
-
async ({
|
|
4344
|
-
data,
|
|
4345
|
-
service,
|
|
4346
|
-
xNode
|
|
4347
|
-
}) => {
|
|
4316
|
+
async ({ data, service }) => {
|
|
4348
4317
|
const jsonData = {
|
|
4349
4318
|
model: data.model,
|
|
4350
4319
|
ids: [],
|
|
@@ -4367,8 +4336,7 @@ function useViewService() {
|
|
|
4367
4336
|
jsonData,
|
|
4368
4337
|
{
|
|
4369
4338
|
headers: {
|
|
4370
|
-
"Content-Type": "application/json"
|
|
4371
|
-
...xNode ? { x_node: xNode } : {}
|
|
4339
|
+
"Content-Type": "application/json"
|
|
4372
4340
|
}
|
|
4373
4341
|
},
|
|
4374
4342
|
service
|
|
@@ -5116,15 +5084,13 @@ var useGetDetail = () => {
|
|
|
5116
5084
|
ids,
|
|
5117
5085
|
specification,
|
|
5118
5086
|
context,
|
|
5119
|
-
service
|
|
5120
|
-
xNode
|
|
5087
|
+
service
|
|
5121
5088
|
}) => getDetail({
|
|
5122
5089
|
model,
|
|
5123
5090
|
ids,
|
|
5124
5091
|
specification,
|
|
5125
5092
|
context,
|
|
5126
|
-
service
|
|
5127
|
-
xNode
|
|
5093
|
+
service
|
|
5128
5094
|
})
|
|
5129
5095
|
});
|
|
5130
5096
|
};
|
|
@@ -5134,16 +5100,14 @@ var use_get_detail_default = useGetDetail;
|
|
|
5134
5100
|
var import_react_query38 = require("@tanstack/react-query");
|
|
5135
5101
|
var useGetFieldOnChange = ({
|
|
5136
5102
|
model,
|
|
5137
|
-
service
|
|
5138
|
-
xNode
|
|
5103
|
+
service
|
|
5139
5104
|
}) => {
|
|
5140
5105
|
const { getListFieldsOnchange } = useModelService();
|
|
5141
5106
|
return (0, import_react_query38.useQuery)({
|
|
5142
5107
|
queryKey: [`field-onchange-${model}`, model],
|
|
5143
5108
|
queryFn: () => getListFieldsOnchange({
|
|
5144
5109
|
model,
|
|
5145
|
-
service
|
|
5146
|
-
xNode
|
|
5110
|
+
service
|
|
5147
5111
|
}).then((res) => {
|
|
5148
5112
|
if (res) {
|
|
5149
5113
|
return res;
|
|
@@ -5328,8 +5292,7 @@ var useOnChangeForm = () => {
|
|
|
5328
5292
|
context,
|
|
5329
5293
|
object,
|
|
5330
5294
|
fieldChange,
|
|
5331
|
-
service
|
|
5332
|
-
xNode
|
|
5295
|
+
service
|
|
5333
5296
|
}) => onChange({
|
|
5334
5297
|
ids,
|
|
5335
5298
|
model,
|
|
@@ -5337,8 +5300,7 @@ var useOnChangeForm = () => {
|
|
|
5337
5300
|
context,
|
|
5338
5301
|
object,
|
|
5339
5302
|
fieldChange,
|
|
5340
|
-
service
|
|
5341
|
-
xNode
|
|
5303
|
+
service
|
|
5342
5304
|
})
|
|
5343
5305
|
});
|
|
5344
5306
|
};
|
|
@@ -5356,9 +5318,8 @@ var useSave = () => {
|
|
|
5356
5318
|
specification,
|
|
5357
5319
|
context,
|
|
5358
5320
|
path,
|
|
5359
|
-
service
|
|
5360
|
-
|
|
5361
|
-
}) => save({ ids, model, data, specification, context, path, service, xNode })
|
|
5321
|
+
service
|
|
5322
|
+
}) => save({ ids, model, data, specification, context, path, service })
|
|
5362
5323
|
});
|
|
5363
5324
|
};
|
|
5364
5325
|
var use_save_default = useSave;
|
|
@@ -5411,15 +5372,13 @@ var useButton = () => {
|
|
|
5411
5372
|
ids,
|
|
5412
5373
|
context,
|
|
5413
5374
|
method,
|
|
5414
|
-
service
|
|
5415
|
-
xNode
|
|
5375
|
+
service
|
|
5416
5376
|
}) => callButton({
|
|
5417
5377
|
model,
|
|
5418
5378
|
ids,
|
|
5419
5379
|
context,
|
|
5420
5380
|
method,
|
|
5421
|
-
service
|
|
5422
|
-
xNode
|
|
5381
|
+
service
|
|
5423
5382
|
}),
|
|
5424
5383
|
onSuccess: (response) => {
|
|
5425
5384
|
return response;
|
|
@@ -5437,14 +5396,12 @@ var useDuplicateRecord = () => {
|
|
|
5437
5396
|
id,
|
|
5438
5397
|
model,
|
|
5439
5398
|
context,
|
|
5440
|
-
service
|
|
5441
|
-
xNode
|
|
5399
|
+
service
|
|
5442
5400
|
}) => duplicateRecord({
|
|
5443
5401
|
id,
|
|
5444
5402
|
model,
|
|
5445
5403
|
context,
|
|
5446
|
-
service
|
|
5447
|
-
xNode
|
|
5404
|
+
service
|
|
5448
5405
|
})
|
|
5449
5406
|
});
|
|
5450
5407
|
};
|
|
@@ -5527,11 +5484,11 @@ var use_get_groups_default = useGetGroups;
|
|
|
5527
5484
|
|
|
5528
5485
|
// src/hooks/view/use-get-list-data.ts
|
|
5529
5486
|
var import_react_query50 = require("@tanstack/react-query");
|
|
5530
|
-
var useGetListData = (listDataProps, queryKey, enabled, service
|
|
5487
|
+
var useGetListData = (listDataProps, queryKey, enabled, service) => {
|
|
5531
5488
|
const { getAll } = useModelService();
|
|
5532
5489
|
return (0, import_react_query50.useQuery)({
|
|
5533
5490
|
queryKey,
|
|
5534
|
-
queryFn: () => getAll({ data: listDataProps, service
|
|
5491
|
+
queryFn: () => getAll({ data: listDataProps, service }).then((res) => {
|
|
5535
5492
|
if (res) {
|
|
5536
5493
|
return res;
|
|
5537
5494
|
}
|
|
@@ -5539,8 +5496,7 @@ var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
|
|
|
5539
5496
|
}),
|
|
5540
5497
|
enabled,
|
|
5541
5498
|
refetchOnWindowFocus: false,
|
|
5542
|
-
staleTime: 0
|
|
5543
|
-
placeholderData: import_react_query50.keepPreviousData
|
|
5499
|
+
staleTime: 0
|
|
5544
5500
|
});
|
|
5545
5501
|
};
|
|
5546
5502
|
var use_get_list_data_default = useGetListData;
|
|
@@ -5609,13 +5565,12 @@ var useGetSelection = ({
|
|
|
5609
5565
|
data,
|
|
5610
5566
|
queryKey,
|
|
5611
5567
|
enabled,
|
|
5612
|
-
service
|
|
5613
|
-
xNode
|
|
5568
|
+
service
|
|
5614
5569
|
}) => {
|
|
5615
5570
|
const { getSelectionItem } = useViewService();
|
|
5616
5571
|
return (0, import_react_query54.useQuery)({
|
|
5617
5572
|
queryKey,
|
|
5618
|
-
queryFn: () => getSelectionItem({ data, service
|
|
5573
|
+
queryFn: () => getSelectionItem({ data, service }),
|
|
5619
5574
|
enabled,
|
|
5620
5575
|
refetchOnWindowFocus: false
|
|
5621
5576
|
});
|
|
@@ -5644,14 +5599,12 @@ var useLoadAction = () => {
|
|
|
5644
5599
|
mutationFn: ({
|
|
5645
5600
|
idAction,
|
|
5646
5601
|
context,
|
|
5647
|
-
service
|
|
5648
|
-
xNode
|
|
5602
|
+
service
|
|
5649
5603
|
}) => {
|
|
5650
5604
|
return loadAction({
|
|
5651
5605
|
idAction,
|
|
5652
5606
|
context,
|
|
5653
|
-
service
|
|
5654
|
-
xNode
|
|
5607
|
+
service
|
|
5655
5608
|
});
|
|
5656
5609
|
}
|
|
5657
5610
|
});
|
|
@@ -5693,14 +5646,12 @@ var useRemoveRow = () => {
|
|
|
5693
5646
|
model,
|
|
5694
5647
|
ids,
|
|
5695
5648
|
context,
|
|
5696
|
-
service
|
|
5697
|
-
xNode
|
|
5649
|
+
service
|
|
5698
5650
|
}) => removeRows({
|
|
5699
5651
|
model,
|
|
5700
5652
|
ids,
|
|
5701
5653
|
context,
|
|
5702
|
-
service
|
|
5703
|
-
xNode
|
|
5654
|
+
service
|
|
5704
5655
|
})
|
|
5705
5656
|
});
|
|
5706
5657
|
};
|
|
@@ -5732,13 +5683,11 @@ var useRunAction = () => {
|
|
|
5732
5683
|
mutationFn: ({
|
|
5733
5684
|
idAction,
|
|
5734
5685
|
context,
|
|
5735
|
-
service
|
|
5736
|
-
xNode
|
|
5686
|
+
service
|
|
5737
5687
|
}) => runAction({
|
|
5738
5688
|
idAction,
|
|
5739
5689
|
context,
|
|
5740
|
-
service
|
|
5741
|
-
xNode
|
|
5690
|
+
service
|
|
5742
5691
|
})
|
|
5743
5692
|
});
|
|
5744
5693
|
};
|