@fctc/interface-logic 2.4.3 → 2.4.5
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 +15 -6
- package/dist/hooks.d.ts +15 -6
- package/dist/hooks.js +103 -54
- package/dist/hooks.mjs +104 -55
- package/dist/provider.d.mts +8 -7
- package/dist/provider.d.ts +8 -7
- package/dist/provider.js +104 -55
- package/dist/provider.mjs +105 -56
- package/dist/services.d.mts +22 -14
- package/dist/services.d.ts +22 -14
- package/dist/services.js +59 -27
- package/dist/services.mjs +60 -28
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.mts +2 -1
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +10 -5
- package/dist/utils.mjs +10 -5
- package/dist/{view-type-p4JdAOsz.d.mts → view-type-xxw9OeSR.d.mts} +4 -0
- package/dist/{view-type-p4JdAOsz.d.ts → view-type-xxw9OeSR.d.ts} +4 -0
- package/package.json +85 -85
package/dist/hooks.mjs
CHANGED
|
@@ -2842,7 +2842,8 @@ function useActionService() {
|
|
|
2842
2842
|
async ({
|
|
2843
2843
|
idAction,
|
|
2844
2844
|
context,
|
|
2845
|
-
service
|
|
2845
|
+
service,
|
|
2846
|
+
xNode
|
|
2846
2847
|
}) => {
|
|
2847
2848
|
const jsonData = {
|
|
2848
2849
|
action_id: idAction,
|
|
@@ -2852,7 +2853,7 @@ function useActionService() {
|
|
|
2852
2853
|
"/load_action" /* LOAD_ACTION */,
|
|
2853
2854
|
jsonData,
|
|
2854
2855
|
{
|
|
2855
|
-
headers: { "Content-Type": "application/json" }
|
|
2856
|
+
headers: { "Content-Type": "application/json", x_node: xNode }
|
|
2856
2857
|
},
|
|
2857
2858
|
service
|
|
2858
2859
|
);
|
|
@@ -2865,7 +2866,8 @@ function useActionService() {
|
|
|
2865
2866
|
ids = [],
|
|
2866
2867
|
context,
|
|
2867
2868
|
method,
|
|
2868
|
-
service
|
|
2869
|
+
service,
|
|
2870
|
+
xNode
|
|
2869
2871
|
}) => {
|
|
2870
2872
|
try {
|
|
2871
2873
|
const jsonData = {
|
|
@@ -2878,7 +2880,8 @@ function useActionService() {
|
|
|
2878
2880
|
"/call" /* CALL_PATH */,
|
|
2879
2881
|
jsonData,
|
|
2880
2882
|
{
|
|
2881
|
-
headers: { "Content-Type": "application/json" }
|
|
2883
|
+
headers: { "Content-Type": "application/json" },
|
|
2884
|
+
...xNode ? { x_node: xNode } : {}
|
|
2882
2885
|
},
|
|
2883
2886
|
service
|
|
2884
2887
|
);
|
|
@@ -2894,7 +2897,8 @@ function useActionService() {
|
|
|
2894
2897
|
model,
|
|
2895
2898
|
ids,
|
|
2896
2899
|
context,
|
|
2897
|
-
service
|
|
2900
|
+
service,
|
|
2901
|
+
xNode
|
|
2898
2902
|
}) => {
|
|
2899
2903
|
const jsonData = {
|
|
2900
2904
|
model,
|
|
@@ -2906,7 +2910,8 @@ function useActionService() {
|
|
|
2906
2910
|
"/call" /* CALL_PATH */,
|
|
2907
2911
|
jsonData,
|
|
2908
2912
|
{
|
|
2909
|
-
headers: { "Content-Type": "application/json" }
|
|
2913
|
+
headers: { "Content-Type": "application/json" },
|
|
2914
|
+
...xNode ? { x_node: xNode } : {}
|
|
2910
2915
|
},
|
|
2911
2916
|
service
|
|
2912
2917
|
);
|
|
@@ -2918,7 +2923,8 @@ function useActionService() {
|
|
|
2918
2923
|
model,
|
|
2919
2924
|
id,
|
|
2920
2925
|
context,
|
|
2921
|
-
service
|
|
2926
|
+
service,
|
|
2927
|
+
xNode
|
|
2922
2928
|
}) => {
|
|
2923
2929
|
const jsonData = {
|
|
2924
2930
|
model,
|
|
@@ -2930,7 +2936,8 @@ function useActionService() {
|
|
|
2930
2936
|
"/call" /* CALL_PATH */,
|
|
2931
2937
|
jsonData,
|
|
2932
2938
|
{
|
|
2933
|
-
headers: { "Content-Type": "application/json" }
|
|
2939
|
+
headers: { "Content-Type": "application/json" },
|
|
2940
|
+
...xNode ? { x_node: xNode } : {}
|
|
2934
2941
|
},
|
|
2935
2942
|
service
|
|
2936
2943
|
);
|
|
@@ -2977,7 +2984,8 @@ function useActionService() {
|
|
|
2977
2984
|
async ({
|
|
2978
2985
|
idAction,
|
|
2979
2986
|
context,
|
|
2980
|
-
service
|
|
2987
|
+
service,
|
|
2988
|
+
xNode
|
|
2981
2989
|
}) => {
|
|
2982
2990
|
const jsonData = {
|
|
2983
2991
|
action_id: idAction,
|
|
@@ -2987,7 +2995,8 @@ function useActionService() {
|
|
|
2987
2995
|
"/run_action" /* RUN_ACTION_PATH */,
|
|
2988
2996
|
jsonData,
|
|
2989
2997
|
{
|
|
2990
|
-
headers: { "Content-Type": "application/json" }
|
|
2998
|
+
headers: { "Content-Type": "application/json" },
|
|
2999
|
+
...xNode ? { x_node: xNode } : {}
|
|
2991
3000
|
},
|
|
2992
3001
|
service
|
|
2993
3002
|
);
|
|
@@ -3190,8 +3199,7 @@ function useAuthService() {
|
|
|
3190
3199
|
[env]
|
|
3191
3200
|
);
|
|
3192
3201
|
const logout = useCallback3(
|
|
3193
|
-
async (
|
|
3194
|
-
console.log(data);
|
|
3202
|
+
async (service) => {
|
|
3195
3203
|
return env?.requests?.post(
|
|
3196
3204
|
"/logout" /* LOGOUT */,
|
|
3197
3205
|
{},
|
|
@@ -3201,7 +3209,8 @@ function useAuthService() {
|
|
|
3201
3209
|
},
|
|
3202
3210
|
withCredentials: true,
|
|
3203
3211
|
useRefreshToken: true
|
|
3204
|
-
}
|
|
3212
|
+
},
|
|
3213
|
+
service
|
|
3205
3214
|
);
|
|
3206
3215
|
},
|
|
3207
3216
|
[env]
|
|
@@ -3710,7 +3719,11 @@ function useModelService() {
|
|
|
3710
3719
|
});
|
|
3711
3720
|
}, [env]);
|
|
3712
3721
|
const getAll = useCallback8(
|
|
3713
|
-
async ({
|
|
3722
|
+
async ({
|
|
3723
|
+
data,
|
|
3724
|
+
service,
|
|
3725
|
+
xNode
|
|
3726
|
+
}) => {
|
|
3714
3727
|
const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
3715
3728
|
fields: data.fields,
|
|
3716
3729
|
groupby: data.groupby
|
|
@@ -3736,7 +3749,8 @@ function useModelService() {
|
|
|
3736
3749
|
jsonData,
|
|
3737
3750
|
{
|
|
3738
3751
|
headers: {
|
|
3739
|
-
"Content-Type": "application/json"
|
|
3752
|
+
"Content-Type": "application/json",
|
|
3753
|
+
...xNode ? { x_node: xNode } : {}
|
|
3740
3754
|
}
|
|
3741
3755
|
},
|
|
3742
3756
|
service
|
|
@@ -3813,7 +3827,8 @@ function useModelService() {
|
|
|
3813
3827
|
model,
|
|
3814
3828
|
specification,
|
|
3815
3829
|
context,
|
|
3816
|
-
service
|
|
3830
|
+
service,
|
|
3831
|
+
xNode
|
|
3817
3832
|
}) => {
|
|
3818
3833
|
const jsonData = {
|
|
3819
3834
|
model,
|
|
@@ -3829,7 +3844,8 @@ function useModelService() {
|
|
|
3829
3844
|
jsonData,
|
|
3830
3845
|
{
|
|
3831
3846
|
headers: {
|
|
3832
|
-
"Content-Type": "application/json"
|
|
3847
|
+
"Content-Type": "application/json",
|
|
3848
|
+
...xNode ? { x_node: xNode } : {}
|
|
3833
3849
|
}
|
|
3834
3850
|
},
|
|
3835
3851
|
service
|
|
@@ -3845,7 +3861,8 @@ function useModelService() {
|
|
|
3845
3861
|
specification = {},
|
|
3846
3862
|
context = {},
|
|
3847
3863
|
path,
|
|
3848
|
-
service
|
|
3864
|
+
service,
|
|
3865
|
+
xNode
|
|
3849
3866
|
}) => {
|
|
3850
3867
|
const jsonData = {
|
|
3851
3868
|
model,
|
|
@@ -3862,7 +3879,8 @@ function useModelService() {
|
|
|
3862
3879
|
jsonData,
|
|
3863
3880
|
{
|
|
3864
3881
|
headers: {
|
|
3865
|
-
"Content-Type": "application/json"
|
|
3882
|
+
"Content-Type": "application/json",
|
|
3883
|
+
...xNode ? { x_node: xNode } : {}
|
|
3866
3884
|
}
|
|
3867
3885
|
},
|
|
3868
3886
|
service
|
|
@@ -3898,7 +3916,8 @@ function useModelService() {
|
|
|
3898
3916
|
specification,
|
|
3899
3917
|
context,
|
|
3900
3918
|
fieldChange,
|
|
3901
|
-
service
|
|
3919
|
+
service,
|
|
3920
|
+
xNode
|
|
3902
3921
|
}) => {
|
|
3903
3922
|
const jsonData = {
|
|
3904
3923
|
model,
|
|
@@ -3916,7 +3935,8 @@ function useModelService() {
|
|
|
3916
3935
|
jsonData,
|
|
3917
3936
|
{
|
|
3918
3937
|
headers: {
|
|
3919
|
-
"Content-Type": "application/json"
|
|
3938
|
+
"Content-Type": "application/json",
|
|
3939
|
+
...xNode ? { x_node: xNode } : {}
|
|
3920
3940
|
}
|
|
3921
3941
|
},
|
|
3922
3942
|
service
|
|
@@ -3925,7 +3945,11 @@ function useModelService() {
|
|
|
3925
3945
|
[env]
|
|
3926
3946
|
);
|
|
3927
3947
|
const getListFieldsOnchange = useCallback8(
|
|
3928
|
-
async ({
|
|
3948
|
+
async ({
|
|
3949
|
+
model,
|
|
3950
|
+
service,
|
|
3951
|
+
xNode
|
|
3952
|
+
}) => {
|
|
3929
3953
|
const jsonData = {
|
|
3930
3954
|
model,
|
|
3931
3955
|
method: "get_fields_onchange" /* GET_ONCHANGE_FIELDS */
|
|
@@ -3935,7 +3959,8 @@ function useModelService() {
|
|
|
3935
3959
|
jsonData,
|
|
3936
3960
|
{
|
|
3937
3961
|
headers: {
|
|
3938
|
-
"Content-Type": "application/json"
|
|
3962
|
+
"Content-Type": "application/json",
|
|
3963
|
+
...xNode ? { x_node: xNode } : {}
|
|
3939
3964
|
}
|
|
3940
3965
|
},
|
|
3941
3966
|
service
|
|
@@ -4100,7 +4125,8 @@ function useViewService() {
|
|
|
4100
4125
|
context = {},
|
|
4101
4126
|
options = {},
|
|
4102
4127
|
aid,
|
|
4103
|
-
service
|
|
4128
|
+
service,
|
|
4129
|
+
xNode
|
|
4104
4130
|
}) => {
|
|
4105
4131
|
const defaultOptions = {
|
|
4106
4132
|
load_filters: true,
|
|
@@ -4121,7 +4147,8 @@ function useViewService() {
|
|
|
4121
4147
|
jsonDataView,
|
|
4122
4148
|
{
|
|
4123
4149
|
headers: {
|
|
4124
|
-
"Content-Type": "application/json"
|
|
4150
|
+
"Content-Type": "application/json",
|
|
4151
|
+
...xNode ? { x_node: xNode } : {}
|
|
4125
4152
|
}
|
|
4126
4153
|
},
|
|
4127
4154
|
service
|
|
@@ -4209,7 +4236,11 @@ function useViewService() {
|
|
|
4209
4236
|
[env]
|
|
4210
4237
|
);
|
|
4211
4238
|
const getSelectionItem = useCallback10(
|
|
4212
|
-
async ({
|
|
4239
|
+
async ({
|
|
4240
|
+
data,
|
|
4241
|
+
service,
|
|
4242
|
+
xNode
|
|
4243
|
+
}) => {
|
|
4213
4244
|
const jsonData = {
|
|
4214
4245
|
model: data.model,
|
|
4215
4246
|
ids: [],
|
|
@@ -4232,7 +4263,8 @@ function useViewService() {
|
|
|
4232
4263
|
jsonData,
|
|
4233
4264
|
{
|
|
4234
4265
|
headers: {
|
|
4235
|
-
"Content-Type": "application/json"
|
|
4266
|
+
"Content-Type": "application/json",
|
|
4267
|
+
...xNode ? { x_node: xNode } : {}
|
|
4236
4268
|
}
|
|
4237
4269
|
},
|
|
4238
4270
|
service
|
|
@@ -4571,8 +4603,8 @@ import { useMutation as useMutation10 } from "@tanstack/react-query";
|
|
|
4571
4603
|
var useLogout = () => {
|
|
4572
4604
|
const { logout } = useAuthService();
|
|
4573
4605
|
return useMutation10({
|
|
4574
|
-
mutationFn: (
|
|
4575
|
-
return logout(
|
|
4606
|
+
mutationFn: (service) => {
|
|
4607
|
+
return logout(service);
|
|
4576
4608
|
}
|
|
4577
4609
|
});
|
|
4578
4610
|
};
|
|
@@ -4980,13 +5012,15 @@ var useGetDetail = () => {
|
|
|
4980
5012
|
ids,
|
|
4981
5013
|
specification,
|
|
4982
5014
|
context,
|
|
4983
|
-
service
|
|
5015
|
+
service,
|
|
5016
|
+
xNode
|
|
4984
5017
|
}) => getDetail({
|
|
4985
5018
|
model,
|
|
4986
5019
|
ids,
|
|
4987
5020
|
specification,
|
|
4988
5021
|
context,
|
|
4989
|
-
service
|
|
5022
|
+
service,
|
|
5023
|
+
xNode
|
|
4990
5024
|
})
|
|
4991
5025
|
});
|
|
4992
5026
|
};
|
|
@@ -4996,14 +5030,16 @@ var use_get_detail_default = useGetDetail;
|
|
|
4996
5030
|
import { useQuery as useQuery9 } from "@tanstack/react-query";
|
|
4997
5031
|
var useGetFieldOnChange = ({
|
|
4998
5032
|
model,
|
|
4999
|
-
service
|
|
5033
|
+
service,
|
|
5034
|
+
xNode
|
|
5000
5035
|
}) => {
|
|
5001
5036
|
const { getListFieldsOnchange } = useModelService();
|
|
5002
5037
|
return useQuery9({
|
|
5003
5038
|
queryKey: [`field-onchange-${model}`, model],
|
|
5004
5039
|
queryFn: () => getListFieldsOnchange({
|
|
5005
5040
|
model,
|
|
5006
|
-
service
|
|
5041
|
+
service,
|
|
5042
|
+
xNode
|
|
5007
5043
|
}).then((res) => {
|
|
5008
5044
|
if (res) {
|
|
5009
5045
|
return res;
|
|
@@ -5043,12 +5079,10 @@ var use_get_list_my_bank_account_default = useGetListMyBankAccount;
|
|
|
5043
5079
|
var BaseModel = class {
|
|
5044
5080
|
name;
|
|
5045
5081
|
view;
|
|
5046
|
-
actContext;
|
|
5047
5082
|
fields;
|
|
5048
5083
|
constructor(init) {
|
|
5049
5084
|
this.name = init.name;
|
|
5050
5085
|
this.view = init.view;
|
|
5051
|
-
this.actContext = init.actContext;
|
|
5052
5086
|
this.fields = init.fields;
|
|
5053
5087
|
}
|
|
5054
5088
|
getSpecificationByFields({
|
|
@@ -5188,7 +5222,8 @@ var useOnChangeForm = () => {
|
|
|
5188
5222
|
context,
|
|
5189
5223
|
object,
|
|
5190
5224
|
fieldChange,
|
|
5191
|
-
service
|
|
5225
|
+
service,
|
|
5226
|
+
xNode
|
|
5192
5227
|
}) => onChange({
|
|
5193
5228
|
ids,
|
|
5194
5229
|
model,
|
|
@@ -5196,7 +5231,8 @@ var useOnChangeForm = () => {
|
|
|
5196
5231
|
context,
|
|
5197
5232
|
object,
|
|
5198
5233
|
fieldChange,
|
|
5199
|
-
service
|
|
5234
|
+
service,
|
|
5235
|
+
xNode
|
|
5200
5236
|
})
|
|
5201
5237
|
});
|
|
5202
5238
|
};
|
|
@@ -5214,8 +5250,9 @@ var useSave = () => {
|
|
|
5214
5250
|
specification,
|
|
5215
5251
|
context,
|
|
5216
5252
|
path,
|
|
5217
|
-
service
|
|
5218
|
-
|
|
5253
|
+
service,
|
|
5254
|
+
xNode
|
|
5255
|
+
}) => save({ ids, model, data, specification, context, path, service, xNode })
|
|
5219
5256
|
});
|
|
5220
5257
|
};
|
|
5221
5258
|
var use_save_default = useSave;
|
|
@@ -5268,13 +5305,15 @@ var useButton = () => {
|
|
|
5268
5305
|
ids,
|
|
5269
5306
|
context,
|
|
5270
5307
|
method,
|
|
5271
|
-
service
|
|
5308
|
+
service,
|
|
5309
|
+
xNode
|
|
5272
5310
|
}) => callButton({
|
|
5273
5311
|
model,
|
|
5274
5312
|
ids,
|
|
5275
5313
|
context,
|
|
5276
5314
|
method,
|
|
5277
|
-
service
|
|
5315
|
+
service,
|
|
5316
|
+
xNode
|
|
5278
5317
|
}),
|
|
5279
5318
|
onSuccess: (response) => {
|
|
5280
5319
|
return response;
|
|
@@ -5292,12 +5331,14 @@ var useDuplicateRecord = () => {
|
|
|
5292
5331
|
id,
|
|
5293
5332
|
model,
|
|
5294
5333
|
context,
|
|
5295
|
-
service
|
|
5334
|
+
service,
|
|
5335
|
+
xNode
|
|
5296
5336
|
}) => duplicateRecord({
|
|
5297
5337
|
id,
|
|
5298
5338
|
model,
|
|
5299
5339
|
context,
|
|
5300
|
-
service
|
|
5340
|
+
service,
|
|
5341
|
+
xNode
|
|
5301
5342
|
})
|
|
5302
5343
|
});
|
|
5303
5344
|
};
|
|
@@ -5379,12 +5420,12 @@ var useGetGroups = ({
|
|
|
5379
5420
|
var use_get_groups_default = useGetGroups;
|
|
5380
5421
|
|
|
5381
5422
|
// src/hooks/view/use-get-list-data.ts
|
|
5382
|
-
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
|
5383
|
-
var useGetListData = (listDataProps, queryKey, enabled, service) => {
|
|
5423
|
+
import { keepPreviousData, useQuery as useQuery14 } from "@tanstack/react-query";
|
|
5424
|
+
var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
|
|
5384
5425
|
const { getAll } = useModelService();
|
|
5385
5426
|
return useQuery14({
|
|
5386
5427
|
queryKey,
|
|
5387
|
-
queryFn: () => getAll({ data: listDataProps, service }).then((res) => {
|
|
5428
|
+
queryFn: () => getAll({ data: listDataProps, service, xNode }).then((res) => {
|
|
5388
5429
|
if (res) {
|
|
5389
5430
|
return res;
|
|
5390
5431
|
}
|
|
@@ -5392,7 +5433,8 @@ var useGetListData = (listDataProps, queryKey, enabled, service) => {
|
|
|
5392
5433
|
}),
|
|
5393
5434
|
enabled,
|
|
5394
5435
|
refetchOnWindowFocus: false,
|
|
5395
|
-
staleTime: 0
|
|
5436
|
+
staleTime: 0,
|
|
5437
|
+
placeholderData: keepPreviousData
|
|
5396
5438
|
});
|
|
5397
5439
|
};
|
|
5398
5440
|
var use_get_list_data_default = useGetListData;
|
|
@@ -5461,12 +5503,13 @@ var useGetSelection = ({
|
|
|
5461
5503
|
data,
|
|
5462
5504
|
queryKey,
|
|
5463
5505
|
enabled,
|
|
5464
|
-
service
|
|
5506
|
+
service,
|
|
5507
|
+
xNode
|
|
5465
5508
|
}) => {
|
|
5466
5509
|
const { getSelectionItem } = useViewService();
|
|
5467
5510
|
return useQuery17({
|
|
5468
5511
|
queryKey,
|
|
5469
|
-
queryFn: () => getSelectionItem({ data, service }),
|
|
5512
|
+
queryFn: () => getSelectionItem({ data, service, xNode }),
|
|
5470
5513
|
enabled,
|
|
5471
5514
|
refetchOnWindowFocus: false
|
|
5472
5515
|
});
|
|
@@ -5495,12 +5538,14 @@ var useLoadAction = () => {
|
|
|
5495
5538
|
mutationFn: ({
|
|
5496
5539
|
idAction,
|
|
5497
5540
|
context,
|
|
5498
|
-
service
|
|
5541
|
+
service,
|
|
5542
|
+
xNode
|
|
5499
5543
|
}) => {
|
|
5500
5544
|
return loadAction({
|
|
5501
5545
|
idAction,
|
|
5502
5546
|
context,
|
|
5503
|
-
service
|
|
5547
|
+
service,
|
|
5548
|
+
xNode
|
|
5504
5549
|
});
|
|
5505
5550
|
}
|
|
5506
5551
|
});
|
|
@@ -5542,12 +5587,14 @@ var useRemoveRow = () => {
|
|
|
5542
5587
|
model,
|
|
5543
5588
|
ids,
|
|
5544
5589
|
context,
|
|
5545
|
-
service
|
|
5590
|
+
service,
|
|
5591
|
+
xNode
|
|
5546
5592
|
}) => removeRows({
|
|
5547
5593
|
model,
|
|
5548
5594
|
ids,
|
|
5549
5595
|
context,
|
|
5550
|
-
service
|
|
5596
|
+
service,
|
|
5597
|
+
xNode
|
|
5551
5598
|
})
|
|
5552
5599
|
});
|
|
5553
5600
|
};
|
|
@@ -5579,11 +5626,13 @@ var useRunAction = () => {
|
|
|
5579
5626
|
mutationFn: ({
|
|
5580
5627
|
idAction,
|
|
5581
5628
|
context,
|
|
5582
|
-
service
|
|
5629
|
+
service,
|
|
5630
|
+
xNode
|
|
5583
5631
|
}) => runAction({
|
|
5584
5632
|
idAction,
|
|
5585
5633
|
context,
|
|
5586
|
-
service
|
|
5634
|
+
service,
|
|
5635
|
+
xNode
|
|
5587
5636
|
})
|
|
5588
5637
|
});
|
|
5589
5638
|
};
|
package/dist/provider.d.mts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
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';
|
|
4
5
|
import '@tanstack/react-query';
|
|
5
|
-
import './view-type-
|
|
6
|
+
import './view-type-xxw9OeSR.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,20 +1,21 @@
|
|
|
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';
|
|
4
5
|
import '@tanstack/react-query';
|
|
5
|
-
import './view-type-
|
|
6
|
+
import './view-type-xxw9OeSR.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 };
|