@fctc/interface-logic 2.0.4 → 2.0.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/hooks.d.mts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +9 -104
- package/dist/hooks.mjs +9 -104
- package/dist/provider.js +9 -104
- package/dist/provider.mjs +9 -104
- package/dist/services.d.mts +3 -3
- package/dist/services.d.ts +3 -3
- package/dist/services.js +5 -100
- package/dist/services.mjs +5 -100
- package/package.json +85 -85
package/dist/hooks.d.mts
CHANGED
|
@@ -134,7 +134,7 @@ declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any,
|
|
|
134
134
|
}, unknown>;
|
|
135
135
|
|
|
136
136
|
declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
137
|
-
|
|
137
|
+
formData: any;
|
|
138
138
|
}, unknown>;
|
|
139
139
|
|
|
140
140
|
declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
@@ -261,7 +261,7 @@ declare const useGetGroups: ({ model, width_context, }: {
|
|
|
261
261
|
|
|
262
262
|
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
263
263
|
|
|
264
|
-
declare const useGetMenu: (context: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
264
|
+
declare const useGetMenu: (context: any, specification: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
265
265
|
|
|
266
266
|
declare const useGetPrintReport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
267
267
|
id: number;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any,
|
|
|
134
134
|
}, unknown>;
|
|
135
135
|
|
|
136
136
|
declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
137
|
-
|
|
137
|
+
formData: any;
|
|
138
138
|
}, unknown>;
|
|
139
139
|
|
|
140
140
|
declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
@@ -261,7 +261,7 @@ declare const useGetGroups: ({ model, width_context, }: {
|
|
|
261
261
|
|
|
262
262
|
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
263
263
|
|
|
264
|
-
declare const useGetMenu: (context: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
264
|
+
declare const useGetMenu: (context: any, specification: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
265
265
|
|
|
266
266
|
declare const useGetPrintReport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
267
267
|
id: number;
|
package/dist/hooks.js
CHANGED
|
@@ -3342,11 +3342,7 @@ function useExcelService() {
|
|
|
3342
3342
|
const { env } = useEnv();
|
|
3343
3343
|
const uploadFile = (0, import_react9.useCallback)(
|
|
3344
3344
|
async ({ formData }) => {
|
|
3345
|
-
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData
|
|
3346
|
-
headers: {
|
|
3347
|
-
"Content-Type": "multipart/form-data"
|
|
3348
|
-
}
|
|
3349
|
-
});
|
|
3345
|
+
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData);
|
|
3350
3346
|
},
|
|
3351
3347
|
[env]
|
|
3352
3348
|
);
|
|
@@ -3590,12 +3586,8 @@ function useFormService() {
|
|
|
3590
3586
|
[env]
|
|
3591
3587
|
);
|
|
3592
3588
|
const uploadImage = (0, import_react10.useCallback)(
|
|
3593
|
-
async ({
|
|
3594
|
-
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */,
|
|
3595
|
-
headers: {
|
|
3596
|
-
"Content-Type": "multipart/form-data"
|
|
3597
|
-
}
|
|
3598
|
-
});
|
|
3589
|
+
async ({ formData }) => {
|
|
3590
|
+
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
|
|
3599
3591
|
},
|
|
3600
3592
|
[env]
|
|
3601
3593
|
);
|
|
@@ -4160,101 +4152,14 @@ function useViewService() {
|
|
|
4160
4152
|
[env]
|
|
4161
4153
|
);
|
|
4162
4154
|
const getMenu = (0, import_react14.useCallback)(
|
|
4163
|
-
async (context) => {
|
|
4155
|
+
async (context, specification) => {
|
|
4164
4156
|
const jsonData = {
|
|
4165
4157
|
model: "ir.ui.menu" /* MENU */,
|
|
4166
4158
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4167
4159
|
ids: [],
|
|
4168
4160
|
with_context: context,
|
|
4169
4161
|
kwargs: {
|
|
4170
|
-
specification
|
|
4171
|
-
active: {},
|
|
4172
|
-
name: {},
|
|
4173
|
-
is_display: {},
|
|
4174
|
-
sequence: {},
|
|
4175
|
-
complete_name: {},
|
|
4176
|
-
action: {
|
|
4177
|
-
fields: {
|
|
4178
|
-
display_name: {},
|
|
4179
|
-
type: {},
|
|
4180
|
-
binding_view_types: {}
|
|
4181
|
-
}
|
|
4182
|
-
},
|
|
4183
|
-
url_icon: {},
|
|
4184
|
-
web_icon: {},
|
|
4185
|
-
web_icon_data: {},
|
|
4186
|
-
groups_id: {
|
|
4187
|
-
fields: {
|
|
4188
|
-
full_name: {}
|
|
4189
|
-
},
|
|
4190
|
-
limit: 40,
|
|
4191
|
-
order: ""
|
|
4192
|
-
},
|
|
4193
|
-
display_name: {},
|
|
4194
|
-
child_id: {
|
|
4195
|
-
fields: {
|
|
4196
|
-
active: {},
|
|
4197
|
-
name: {},
|
|
4198
|
-
is_display: {},
|
|
4199
|
-
sequence: {},
|
|
4200
|
-
complete_name: {},
|
|
4201
|
-
action: {
|
|
4202
|
-
fields: {
|
|
4203
|
-
display_name: {},
|
|
4204
|
-
type: {},
|
|
4205
|
-
binding_view_types: {}
|
|
4206
|
-
}
|
|
4207
|
-
},
|
|
4208
|
-
url_icon: {},
|
|
4209
|
-
web_icon: {},
|
|
4210
|
-
web_icon_data: {},
|
|
4211
|
-
groups_id: {
|
|
4212
|
-
fields: {
|
|
4213
|
-
full_name: {}
|
|
4214
|
-
},
|
|
4215
|
-
limit: 40,
|
|
4216
|
-
order: ""
|
|
4217
|
-
},
|
|
4218
|
-
display_name: {},
|
|
4219
|
-
child_id: {
|
|
4220
|
-
fields: {
|
|
4221
|
-
active: {},
|
|
4222
|
-
name: {},
|
|
4223
|
-
is_display: {},
|
|
4224
|
-
sequence: {},
|
|
4225
|
-
complete_name: {},
|
|
4226
|
-
action: {
|
|
4227
|
-
fields: {
|
|
4228
|
-
display_name: {},
|
|
4229
|
-
type: {},
|
|
4230
|
-
binding_view_types: {}
|
|
4231
|
-
}
|
|
4232
|
-
},
|
|
4233
|
-
url_icon: {},
|
|
4234
|
-
web_icon: {},
|
|
4235
|
-
web_icon_data: {},
|
|
4236
|
-
groups_id: {
|
|
4237
|
-
fields: {
|
|
4238
|
-
full_name: {}
|
|
4239
|
-
},
|
|
4240
|
-
limit: 40,
|
|
4241
|
-
order: ""
|
|
4242
|
-
},
|
|
4243
|
-
display_name: {},
|
|
4244
|
-
child_id: {
|
|
4245
|
-
fields: {},
|
|
4246
|
-
limit: 40,
|
|
4247
|
-
order: ""
|
|
4248
|
-
}
|
|
4249
|
-
},
|
|
4250
|
-
limit: 40,
|
|
4251
|
-
order: ""
|
|
4252
|
-
}
|
|
4253
|
-
},
|
|
4254
|
-
limit: 40,
|
|
4255
|
-
order: ""
|
|
4256
|
-
}
|
|
4257
|
-
},
|
|
4162
|
+
specification,
|
|
4258
4163
|
domain: [
|
|
4259
4164
|
"&",
|
|
4260
4165
|
["is_display", "=", true],
|
|
@@ -5006,8 +4911,8 @@ var import_react_query31 = require("@tanstack/react-query");
|
|
|
5006
4911
|
var useUploadImage = () => {
|
|
5007
4912
|
const { uploadImage } = useFormService();
|
|
5008
4913
|
return (0, import_react_query31.useMutation)({
|
|
5009
|
-
mutationFn: ({
|
|
5010
|
-
|
|
4914
|
+
mutationFn: ({ formData }) => uploadImage({
|
|
4915
|
+
formData
|
|
5011
4916
|
})
|
|
5012
4917
|
});
|
|
5013
4918
|
};
|
|
@@ -5487,11 +5392,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
5487
5392
|
|
|
5488
5393
|
// src/hooks/view/use-get-menu.ts
|
|
5489
5394
|
var import_react_query50 = require("@tanstack/react-query");
|
|
5490
|
-
var useGetMenu = (context, enabled) => {
|
|
5395
|
+
var useGetMenu = (context, specification, enabled) => {
|
|
5491
5396
|
const { getMenu } = useViewService();
|
|
5492
5397
|
return (0, import_react_query50.useQuery)({
|
|
5493
5398
|
queryKey: ["menus" /* MENU */, context],
|
|
5494
|
-
queryFn: () => getMenu(context).then((res) => {
|
|
5399
|
+
queryFn: () => getMenu(context, specification).then((res) => {
|
|
5495
5400
|
if (res && res?.records && res?.records?.length > 0) {
|
|
5496
5401
|
return res?.records;
|
|
5497
5402
|
}
|
package/dist/hooks.mjs
CHANGED
|
@@ -3239,11 +3239,7 @@ function useExcelService() {
|
|
|
3239
3239
|
const { env } = useEnv();
|
|
3240
3240
|
const uploadFile = useCallback5(
|
|
3241
3241
|
async ({ formData }) => {
|
|
3242
|
-
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData
|
|
3243
|
-
headers: {
|
|
3244
|
-
"Content-Type": "multipart/form-data"
|
|
3245
|
-
}
|
|
3246
|
-
});
|
|
3242
|
+
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData);
|
|
3247
3243
|
},
|
|
3248
3244
|
[env]
|
|
3249
3245
|
);
|
|
@@ -3487,12 +3483,8 @@ function useFormService() {
|
|
|
3487
3483
|
[env]
|
|
3488
3484
|
);
|
|
3489
3485
|
const uploadImage = useCallback6(
|
|
3490
|
-
async ({
|
|
3491
|
-
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */,
|
|
3492
|
-
headers: {
|
|
3493
|
-
"Content-Type": "multipart/form-data"
|
|
3494
|
-
}
|
|
3495
|
-
});
|
|
3486
|
+
async ({ formData }) => {
|
|
3487
|
+
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
|
|
3496
3488
|
},
|
|
3497
3489
|
[env]
|
|
3498
3490
|
);
|
|
@@ -4057,101 +4049,14 @@ function useViewService() {
|
|
|
4057
4049
|
[env]
|
|
4058
4050
|
);
|
|
4059
4051
|
const getMenu = useCallback10(
|
|
4060
|
-
async (context) => {
|
|
4052
|
+
async (context, specification) => {
|
|
4061
4053
|
const jsonData = {
|
|
4062
4054
|
model: "ir.ui.menu" /* MENU */,
|
|
4063
4055
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4064
4056
|
ids: [],
|
|
4065
4057
|
with_context: context,
|
|
4066
4058
|
kwargs: {
|
|
4067
|
-
specification
|
|
4068
|
-
active: {},
|
|
4069
|
-
name: {},
|
|
4070
|
-
is_display: {},
|
|
4071
|
-
sequence: {},
|
|
4072
|
-
complete_name: {},
|
|
4073
|
-
action: {
|
|
4074
|
-
fields: {
|
|
4075
|
-
display_name: {},
|
|
4076
|
-
type: {},
|
|
4077
|
-
binding_view_types: {}
|
|
4078
|
-
}
|
|
4079
|
-
},
|
|
4080
|
-
url_icon: {},
|
|
4081
|
-
web_icon: {},
|
|
4082
|
-
web_icon_data: {},
|
|
4083
|
-
groups_id: {
|
|
4084
|
-
fields: {
|
|
4085
|
-
full_name: {}
|
|
4086
|
-
},
|
|
4087
|
-
limit: 40,
|
|
4088
|
-
order: ""
|
|
4089
|
-
},
|
|
4090
|
-
display_name: {},
|
|
4091
|
-
child_id: {
|
|
4092
|
-
fields: {
|
|
4093
|
-
active: {},
|
|
4094
|
-
name: {},
|
|
4095
|
-
is_display: {},
|
|
4096
|
-
sequence: {},
|
|
4097
|
-
complete_name: {},
|
|
4098
|
-
action: {
|
|
4099
|
-
fields: {
|
|
4100
|
-
display_name: {},
|
|
4101
|
-
type: {},
|
|
4102
|
-
binding_view_types: {}
|
|
4103
|
-
}
|
|
4104
|
-
},
|
|
4105
|
-
url_icon: {},
|
|
4106
|
-
web_icon: {},
|
|
4107
|
-
web_icon_data: {},
|
|
4108
|
-
groups_id: {
|
|
4109
|
-
fields: {
|
|
4110
|
-
full_name: {}
|
|
4111
|
-
},
|
|
4112
|
-
limit: 40,
|
|
4113
|
-
order: ""
|
|
4114
|
-
},
|
|
4115
|
-
display_name: {},
|
|
4116
|
-
child_id: {
|
|
4117
|
-
fields: {
|
|
4118
|
-
active: {},
|
|
4119
|
-
name: {},
|
|
4120
|
-
is_display: {},
|
|
4121
|
-
sequence: {},
|
|
4122
|
-
complete_name: {},
|
|
4123
|
-
action: {
|
|
4124
|
-
fields: {
|
|
4125
|
-
display_name: {},
|
|
4126
|
-
type: {},
|
|
4127
|
-
binding_view_types: {}
|
|
4128
|
-
}
|
|
4129
|
-
},
|
|
4130
|
-
url_icon: {},
|
|
4131
|
-
web_icon: {},
|
|
4132
|
-
web_icon_data: {},
|
|
4133
|
-
groups_id: {
|
|
4134
|
-
fields: {
|
|
4135
|
-
full_name: {}
|
|
4136
|
-
},
|
|
4137
|
-
limit: 40,
|
|
4138
|
-
order: ""
|
|
4139
|
-
},
|
|
4140
|
-
display_name: {},
|
|
4141
|
-
child_id: {
|
|
4142
|
-
fields: {},
|
|
4143
|
-
limit: 40,
|
|
4144
|
-
order: ""
|
|
4145
|
-
}
|
|
4146
|
-
},
|
|
4147
|
-
limit: 40,
|
|
4148
|
-
order: ""
|
|
4149
|
-
}
|
|
4150
|
-
},
|
|
4151
|
-
limit: 40,
|
|
4152
|
-
order: ""
|
|
4153
|
-
}
|
|
4154
|
-
},
|
|
4059
|
+
specification,
|
|
4155
4060
|
domain: [
|
|
4156
4061
|
"&",
|
|
4157
4062
|
["is_display", "=", true],
|
|
@@ -4903,8 +4808,8 @@ import { useMutation as useMutation24 } from "@tanstack/react-query";
|
|
|
4903
4808
|
var useUploadImage = () => {
|
|
4904
4809
|
const { uploadImage } = useFormService();
|
|
4905
4810
|
return useMutation24({
|
|
4906
|
-
mutationFn: ({
|
|
4907
|
-
|
|
4811
|
+
mutationFn: ({ formData }) => uploadImage({
|
|
4812
|
+
formData
|
|
4908
4813
|
})
|
|
4909
4814
|
});
|
|
4910
4815
|
};
|
|
@@ -5384,11 +5289,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
5384
5289
|
|
|
5385
5290
|
// src/hooks/view/use-get-menu.ts
|
|
5386
5291
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
5387
|
-
var useGetMenu = (context, enabled) => {
|
|
5292
|
+
var useGetMenu = (context, specification, enabled) => {
|
|
5388
5293
|
const { getMenu } = useViewService();
|
|
5389
5294
|
return useQuery15({
|
|
5390
5295
|
queryKey: ["menus" /* MENU */, context],
|
|
5391
|
-
queryFn: () => getMenu(context).then((res) => {
|
|
5296
|
+
queryFn: () => getMenu(context, specification).then((res) => {
|
|
5392
5297
|
if (res && res?.records && res?.records?.length > 0) {
|
|
5393
5298
|
return res?.records;
|
|
5394
5299
|
}
|
package/dist/provider.js
CHANGED
|
@@ -3291,11 +3291,7 @@ function useExcelService() {
|
|
|
3291
3291
|
const { env } = useEnv();
|
|
3292
3292
|
const uploadFile = (0, import_react5.useCallback)(
|
|
3293
3293
|
async ({ formData }) => {
|
|
3294
|
-
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData
|
|
3295
|
-
headers: {
|
|
3296
|
-
"Content-Type": "multipart/form-data"
|
|
3297
|
-
}
|
|
3298
|
-
});
|
|
3294
|
+
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData);
|
|
3299
3295
|
},
|
|
3300
3296
|
[env]
|
|
3301
3297
|
);
|
|
@@ -3539,12 +3535,8 @@ function useFormService() {
|
|
|
3539
3535
|
[env]
|
|
3540
3536
|
);
|
|
3541
3537
|
const uploadImage = (0, import_react6.useCallback)(
|
|
3542
|
-
async ({
|
|
3543
|
-
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */,
|
|
3544
|
-
headers: {
|
|
3545
|
-
"Content-Type": "multipart/form-data"
|
|
3546
|
-
}
|
|
3547
|
-
});
|
|
3538
|
+
async ({ formData }) => {
|
|
3539
|
+
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
|
|
3548
3540
|
},
|
|
3549
3541
|
[env]
|
|
3550
3542
|
);
|
|
@@ -4109,101 +4101,14 @@ function useViewService() {
|
|
|
4109
4101
|
[env]
|
|
4110
4102
|
);
|
|
4111
4103
|
const getMenu = (0, import_react10.useCallback)(
|
|
4112
|
-
async (context) => {
|
|
4104
|
+
async (context, specification) => {
|
|
4113
4105
|
const jsonData = {
|
|
4114
4106
|
model: "ir.ui.menu" /* MENU */,
|
|
4115
4107
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4116
4108
|
ids: [],
|
|
4117
4109
|
with_context: context,
|
|
4118
4110
|
kwargs: {
|
|
4119
|
-
specification
|
|
4120
|
-
active: {},
|
|
4121
|
-
name: {},
|
|
4122
|
-
is_display: {},
|
|
4123
|
-
sequence: {},
|
|
4124
|
-
complete_name: {},
|
|
4125
|
-
action: {
|
|
4126
|
-
fields: {
|
|
4127
|
-
display_name: {},
|
|
4128
|
-
type: {},
|
|
4129
|
-
binding_view_types: {}
|
|
4130
|
-
}
|
|
4131
|
-
},
|
|
4132
|
-
url_icon: {},
|
|
4133
|
-
web_icon: {},
|
|
4134
|
-
web_icon_data: {},
|
|
4135
|
-
groups_id: {
|
|
4136
|
-
fields: {
|
|
4137
|
-
full_name: {}
|
|
4138
|
-
},
|
|
4139
|
-
limit: 40,
|
|
4140
|
-
order: ""
|
|
4141
|
-
},
|
|
4142
|
-
display_name: {},
|
|
4143
|
-
child_id: {
|
|
4144
|
-
fields: {
|
|
4145
|
-
active: {},
|
|
4146
|
-
name: {},
|
|
4147
|
-
is_display: {},
|
|
4148
|
-
sequence: {},
|
|
4149
|
-
complete_name: {},
|
|
4150
|
-
action: {
|
|
4151
|
-
fields: {
|
|
4152
|
-
display_name: {},
|
|
4153
|
-
type: {},
|
|
4154
|
-
binding_view_types: {}
|
|
4155
|
-
}
|
|
4156
|
-
},
|
|
4157
|
-
url_icon: {},
|
|
4158
|
-
web_icon: {},
|
|
4159
|
-
web_icon_data: {},
|
|
4160
|
-
groups_id: {
|
|
4161
|
-
fields: {
|
|
4162
|
-
full_name: {}
|
|
4163
|
-
},
|
|
4164
|
-
limit: 40,
|
|
4165
|
-
order: ""
|
|
4166
|
-
},
|
|
4167
|
-
display_name: {},
|
|
4168
|
-
child_id: {
|
|
4169
|
-
fields: {
|
|
4170
|
-
active: {},
|
|
4171
|
-
name: {},
|
|
4172
|
-
is_display: {},
|
|
4173
|
-
sequence: {},
|
|
4174
|
-
complete_name: {},
|
|
4175
|
-
action: {
|
|
4176
|
-
fields: {
|
|
4177
|
-
display_name: {},
|
|
4178
|
-
type: {},
|
|
4179
|
-
binding_view_types: {}
|
|
4180
|
-
}
|
|
4181
|
-
},
|
|
4182
|
-
url_icon: {},
|
|
4183
|
-
web_icon: {},
|
|
4184
|
-
web_icon_data: {},
|
|
4185
|
-
groups_id: {
|
|
4186
|
-
fields: {
|
|
4187
|
-
full_name: {}
|
|
4188
|
-
},
|
|
4189
|
-
limit: 40,
|
|
4190
|
-
order: ""
|
|
4191
|
-
},
|
|
4192
|
-
display_name: {},
|
|
4193
|
-
child_id: {
|
|
4194
|
-
fields: {},
|
|
4195
|
-
limit: 40,
|
|
4196
|
-
order: ""
|
|
4197
|
-
}
|
|
4198
|
-
},
|
|
4199
|
-
limit: 40,
|
|
4200
|
-
order: ""
|
|
4201
|
-
}
|
|
4202
|
-
},
|
|
4203
|
-
limit: 40,
|
|
4204
|
-
order: ""
|
|
4205
|
-
}
|
|
4206
|
-
},
|
|
4111
|
+
specification,
|
|
4207
4112
|
domain: [
|
|
4208
4113
|
"&",
|
|
4209
4114
|
["is_display", "=", true],
|
|
@@ -5343,8 +5248,8 @@ var import_react_query31 = require("@tanstack/react-query");
|
|
|
5343
5248
|
var useUploadImage = () => {
|
|
5344
5249
|
const { uploadImage } = useFormService();
|
|
5345
5250
|
return (0, import_react_query31.useMutation)({
|
|
5346
|
-
mutationFn: ({
|
|
5347
|
-
|
|
5251
|
+
mutationFn: ({ formData }) => uploadImage({
|
|
5252
|
+
formData
|
|
5348
5253
|
})
|
|
5349
5254
|
});
|
|
5350
5255
|
};
|
|
@@ -5824,11 +5729,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
5824
5729
|
|
|
5825
5730
|
// src/hooks/view/use-get-menu.ts
|
|
5826
5731
|
var import_react_query50 = require("@tanstack/react-query");
|
|
5827
|
-
var useGetMenu = (context, enabled) => {
|
|
5732
|
+
var useGetMenu = (context, specification, enabled) => {
|
|
5828
5733
|
const { getMenu } = useViewService();
|
|
5829
5734
|
return (0, import_react_query50.useQuery)({
|
|
5830
5735
|
queryKey: ["menus" /* MENU */, context],
|
|
5831
|
-
queryFn: () => getMenu(context).then((res) => {
|
|
5736
|
+
queryFn: () => getMenu(context, specification).then((res) => {
|
|
5832
5737
|
if (res && res?.records && res?.records?.length > 0) {
|
|
5833
5738
|
return res?.records;
|
|
5834
5739
|
}
|
package/dist/provider.mjs
CHANGED
|
@@ -3248,11 +3248,7 @@ function useExcelService() {
|
|
|
3248
3248
|
const { env } = useEnv();
|
|
3249
3249
|
const uploadFile = useCallback4(
|
|
3250
3250
|
async ({ formData }) => {
|
|
3251
|
-
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData
|
|
3252
|
-
headers: {
|
|
3253
|
-
"Content-Type": "multipart/form-data"
|
|
3254
|
-
}
|
|
3255
|
-
});
|
|
3251
|
+
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData);
|
|
3256
3252
|
},
|
|
3257
3253
|
[env]
|
|
3258
3254
|
);
|
|
@@ -3496,12 +3492,8 @@ function useFormService() {
|
|
|
3496
3492
|
[env]
|
|
3497
3493
|
);
|
|
3498
3494
|
const uploadImage = useCallback5(
|
|
3499
|
-
async ({
|
|
3500
|
-
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */,
|
|
3501
|
-
headers: {
|
|
3502
|
-
"Content-Type": "multipart/form-data"
|
|
3503
|
-
}
|
|
3504
|
-
});
|
|
3495
|
+
async ({ formData }) => {
|
|
3496
|
+
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
|
|
3505
3497
|
},
|
|
3506
3498
|
[env]
|
|
3507
3499
|
);
|
|
@@ -4066,101 +4058,14 @@ function useViewService() {
|
|
|
4066
4058
|
[env]
|
|
4067
4059
|
);
|
|
4068
4060
|
const getMenu = useCallback9(
|
|
4069
|
-
async (context) => {
|
|
4061
|
+
async (context, specification) => {
|
|
4070
4062
|
const jsonData = {
|
|
4071
4063
|
model: "ir.ui.menu" /* MENU */,
|
|
4072
4064
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4073
4065
|
ids: [],
|
|
4074
4066
|
with_context: context,
|
|
4075
4067
|
kwargs: {
|
|
4076
|
-
specification
|
|
4077
|
-
active: {},
|
|
4078
|
-
name: {},
|
|
4079
|
-
is_display: {},
|
|
4080
|
-
sequence: {},
|
|
4081
|
-
complete_name: {},
|
|
4082
|
-
action: {
|
|
4083
|
-
fields: {
|
|
4084
|
-
display_name: {},
|
|
4085
|
-
type: {},
|
|
4086
|
-
binding_view_types: {}
|
|
4087
|
-
}
|
|
4088
|
-
},
|
|
4089
|
-
url_icon: {},
|
|
4090
|
-
web_icon: {},
|
|
4091
|
-
web_icon_data: {},
|
|
4092
|
-
groups_id: {
|
|
4093
|
-
fields: {
|
|
4094
|
-
full_name: {}
|
|
4095
|
-
},
|
|
4096
|
-
limit: 40,
|
|
4097
|
-
order: ""
|
|
4098
|
-
},
|
|
4099
|
-
display_name: {},
|
|
4100
|
-
child_id: {
|
|
4101
|
-
fields: {
|
|
4102
|
-
active: {},
|
|
4103
|
-
name: {},
|
|
4104
|
-
is_display: {},
|
|
4105
|
-
sequence: {},
|
|
4106
|
-
complete_name: {},
|
|
4107
|
-
action: {
|
|
4108
|
-
fields: {
|
|
4109
|
-
display_name: {},
|
|
4110
|
-
type: {},
|
|
4111
|
-
binding_view_types: {}
|
|
4112
|
-
}
|
|
4113
|
-
},
|
|
4114
|
-
url_icon: {},
|
|
4115
|
-
web_icon: {},
|
|
4116
|
-
web_icon_data: {},
|
|
4117
|
-
groups_id: {
|
|
4118
|
-
fields: {
|
|
4119
|
-
full_name: {}
|
|
4120
|
-
},
|
|
4121
|
-
limit: 40,
|
|
4122
|
-
order: ""
|
|
4123
|
-
},
|
|
4124
|
-
display_name: {},
|
|
4125
|
-
child_id: {
|
|
4126
|
-
fields: {
|
|
4127
|
-
active: {},
|
|
4128
|
-
name: {},
|
|
4129
|
-
is_display: {},
|
|
4130
|
-
sequence: {},
|
|
4131
|
-
complete_name: {},
|
|
4132
|
-
action: {
|
|
4133
|
-
fields: {
|
|
4134
|
-
display_name: {},
|
|
4135
|
-
type: {},
|
|
4136
|
-
binding_view_types: {}
|
|
4137
|
-
}
|
|
4138
|
-
},
|
|
4139
|
-
url_icon: {},
|
|
4140
|
-
web_icon: {},
|
|
4141
|
-
web_icon_data: {},
|
|
4142
|
-
groups_id: {
|
|
4143
|
-
fields: {
|
|
4144
|
-
full_name: {}
|
|
4145
|
-
},
|
|
4146
|
-
limit: 40,
|
|
4147
|
-
order: ""
|
|
4148
|
-
},
|
|
4149
|
-
display_name: {},
|
|
4150
|
-
child_id: {
|
|
4151
|
-
fields: {},
|
|
4152
|
-
limit: 40,
|
|
4153
|
-
order: ""
|
|
4154
|
-
}
|
|
4155
|
-
},
|
|
4156
|
-
limit: 40,
|
|
4157
|
-
order: ""
|
|
4158
|
-
}
|
|
4159
|
-
},
|
|
4160
|
-
limit: 40,
|
|
4161
|
-
order: ""
|
|
4162
|
-
}
|
|
4163
|
-
},
|
|
4068
|
+
specification,
|
|
4164
4069
|
domain: [
|
|
4165
4070
|
"&",
|
|
4166
4071
|
["is_display", "=", true],
|
|
@@ -5300,8 +5205,8 @@ import { useMutation as useMutation24 } from "@tanstack/react-query";
|
|
|
5300
5205
|
var useUploadImage = () => {
|
|
5301
5206
|
const { uploadImage } = useFormService();
|
|
5302
5207
|
return useMutation24({
|
|
5303
|
-
mutationFn: ({
|
|
5304
|
-
|
|
5208
|
+
mutationFn: ({ formData }) => uploadImage({
|
|
5209
|
+
formData
|
|
5305
5210
|
})
|
|
5306
5211
|
});
|
|
5307
5212
|
};
|
|
@@ -5781,11 +5686,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
5781
5686
|
|
|
5782
5687
|
// src/hooks/view/use-get-menu.ts
|
|
5783
5688
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
5784
|
-
var useGetMenu = (context, enabled) => {
|
|
5689
|
+
var useGetMenu = (context, specification, enabled) => {
|
|
5785
5690
|
const { getMenu } = useViewService();
|
|
5786
5691
|
return useQuery15({
|
|
5787
5692
|
queryKey: ["menus" /* MENU */, context],
|
|
5788
|
-
queryFn: () => getMenu(context).then((res) => {
|
|
5693
|
+
queryFn: () => getMenu(context, specification).then((res) => {
|
|
5789
5694
|
if (res && res?.records && res?.records?.length > 0) {
|
|
5790
5695
|
return res?.records;
|
|
5791
5696
|
}
|
package/dist/services.d.mts
CHANGED
|
@@ -131,8 +131,8 @@ declare function useFormService(): {
|
|
|
131
131
|
getImage: ({ data }: {
|
|
132
132
|
data: any;
|
|
133
133
|
}) => Promise<any>;
|
|
134
|
-
uploadImage: ({
|
|
135
|
-
|
|
134
|
+
uploadImage: ({ formData }: {
|
|
135
|
+
formData: any;
|
|
136
136
|
}) => Promise<any>;
|
|
137
137
|
getFormView: ({ data }: {
|
|
138
138
|
data: TFormView;
|
|
@@ -196,7 +196,7 @@ declare function useUserService(): {
|
|
|
196
196
|
|
|
197
197
|
declare function useViewService(): {
|
|
198
198
|
getView: ({ model, views, context, options, aid, }: GetViewParams) => Promise<any>;
|
|
199
|
-
getMenu: (context: any) => Promise<any>;
|
|
199
|
+
getMenu: (context: any, specification: any) => Promise<any>;
|
|
200
200
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
201
201
|
getResequence: ({ model, ids, context, offset, }: {
|
|
202
202
|
model: string;
|
package/dist/services.d.ts
CHANGED
|
@@ -131,8 +131,8 @@ declare function useFormService(): {
|
|
|
131
131
|
getImage: ({ data }: {
|
|
132
132
|
data: any;
|
|
133
133
|
}) => Promise<any>;
|
|
134
|
-
uploadImage: ({
|
|
135
|
-
|
|
134
|
+
uploadImage: ({ formData }: {
|
|
135
|
+
formData: any;
|
|
136
136
|
}) => Promise<any>;
|
|
137
137
|
getFormView: ({ data }: {
|
|
138
138
|
data: TFormView;
|
|
@@ -196,7 +196,7 @@ declare function useUserService(): {
|
|
|
196
196
|
|
|
197
197
|
declare function useViewService(): {
|
|
198
198
|
getView: ({ model, views, context, options, aid, }: GetViewParams) => Promise<any>;
|
|
199
|
-
getMenu: (context: any) => Promise<any>;
|
|
199
|
+
getMenu: (context: any, specification: any) => Promise<any>;
|
|
200
200
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
201
201
|
getResequence: ({ model, ids, context, offset, }: {
|
|
202
202
|
model: string;
|
package/dist/services.js
CHANGED
|
@@ -3458,11 +3458,7 @@ function useExcelService() {
|
|
|
3458
3458
|
const { env } = useEnv();
|
|
3459
3459
|
const uploadFile = (0, import_react9.useCallback)(
|
|
3460
3460
|
async ({ formData }) => {
|
|
3461
|
-
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData
|
|
3462
|
-
headers: {
|
|
3463
|
-
"Content-Type": "multipart/form-data"
|
|
3464
|
-
}
|
|
3465
|
-
});
|
|
3461
|
+
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData);
|
|
3466
3462
|
},
|
|
3467
3463
|
[env]
|
|
3468
3464
|
);
|
|
@@ -3706,12 +3702,8 @@ function useFormService() {
|
|
|
3706
3702
|
[env]
|
|
3707
3703
|
);
|
|
3708
3704
|
const uploadImage = (0, import_react10.useCallback)(
|
|
3709
|
-
async ({
|
|
3710
|
-
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */,
|
|
3711
|
-
headers: {
|
|
3712
|
-
"Content-Type": "multipart/form-data"
|
|
3713
|
-
}
|
|
3714
|
-
});
|
|
3705
|
+
async ({ formData }) => {
|
|
3706
|
+
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
|
|
3715
3707
|
},
|
|
3716
3708
|
[env]
|
|
3717
3709
|
);
|
|
@@ -4276,101 +4268,14 @@ function useViewService() {
|
|
|
4276
4268
|
[env]
|
|
4277
4269
|
);
|
|
4278
4270
|
const getMenu = (0, import_react14.useCallback)(
|
|
4279
|
-
async (context) => {
|
|
4271
|
+
async (context, specification) => {
|
|
4280
4272
|
const jsonData = {
|
|
4281
4273
|
model: "ir.ui.menu" /* MENU */,
|
|
4282
4274
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4283
4275
|
ids: [],
|
|
4284
4276
|
with_context: context,
|
|
4285
4277
|
kwargs: {
|
|
4286
|
-
specification
|
|
4287
|
-
active: {},
|
|
4288
|
-
name: {},
|
|
4289
|
-
is_display: {},
|
|
4290
|
-
sequence: {},
|
|
4291
|
-
complete_name: {},
|
|
4292
|
-
action: {
|
|
4293
|
-
fields: {
|
|
4294
|
-
display_name: {},
|
|
4295
|
-
type: {},
|
|
4296
|
-
binding_view_types: {}
|
|
4297
|
-
}
|
|
4298
|
-
},
|
|
4299
|
-
url_icon: {},
|
|
4300
|
-
web_icon: {},
|
|
4301
|
-
web_icon_data: {},
|
|
4302
|
-
groups_id: {
|
|
4303
|
-
fields: {
|
|
4304
|
-
full_name: {}
|
|
4305
|
-
},
|
|
4306
|
-
limit: 40,
|
|
4307
|
-
order: ""
|
|
4308
|
-
},
|
|
4309
|
-
display_name: {},
|
|
4310
|
-
child_id: {
|
|
4311
|
-
fields: {
|
|
4312
|
-
active: {},
|
|
4313
|
-
name: {},
|
|
4314
|
-
is_display: {},
|
|
4315
|
-
sequence: {},
|
|
4316
|
-
complete_name: {},
|
|
4317
|
-
action: {
|
|
4318
|
-
fields: {
|
|
4319
|
-
display_name: {},
|
|
4320
|
-
type: {},
|
|
4321
|
-
binding_view_types: {}
|
|
4322
|
-
}
|
|
4323
|
-
},
|
|
4324
|
-
url_icon: {},
|
|
4325
|
-
web_icon: {},
|
|
4326
|
-
web_icon_data: {},
|
|
4327
|
-
groups_id: {
|
|
4328
|
-
fields: {
|
|
4329
|
-
full_name: {}
|
|
4330
|
-
},
|
|
4331
|
-
limit: 40,
|
|
4332
|
-
order: ""
|
|
4333
|
-
},
|
|
4334
|
-
display_name: {},
|
|
4335
|
-
child_id: {
|
|
4336
|
-
fields: {
|
|
4337
|
-
active: {},
|
|
4338
|
-
name: {},
|
|
4339
|
-
is_display: {},
|
|
4340
|
-
sequence: {},
|
|
4341
|
-
complete_name: {},
|
|
4342
|
-
action: {
|
|
4343
|
-
fields: {
|
|
4344
|
-
display_name: {},
|
|
4345
|
-
type: {},
|
|
4346
|
-
binding_view_types: {}
|
|
4347
|
-
}
|
|
4348
|
-
},
|
|
4349
|
-
url_icon: {},
|
|
4350
|
-
web_icon: {},
|
|
4351
|
-
web_icon_data: {},
|
|
4352
|
-
groups_id: {
|
|
4353
|
-
fields: {
|
|
4354
|
-
full_name: {}
|
|
4355
|
-
},
|
|
4356
|
-
limit: 40,
|
|
4357
|
-
order: ""
|
|
4358
|
-
},
|
|
4359
|
-
display_name: {},
|
|
4360
|
-
child_id: {
|
|
4361
|
-
fields: {},
|
|
4362
|
-
limit: 40,
|
|
4363
|
-
order: ""
|
|
4364
|
-
}
|
|
4365
|
-
},
|
|
4366
|
-
limit: 40,
|
|
4367
|
-
order: ""
|
|
4368
|
-
}
|
|
4369
|
-
},
|
|
4370
|
-
limit: 40,
|
|
4371
|
-
order: ""
|
|
4372
|
-
}
|
|
4373
|
-
},
|
|
4278
|
+
specification,
|
|
4374
4279
|
domain: [
|
|
4375
4280
|
"&",
|
|
4376
4281
|
["is_display", "=", true],
|
package/dist/services.mjs
CHANGED
|
@@ -3414,11 +3414,7 @@ function useExcelService() {
|
|
|
3414
3414
|
const { env } = useEnv();
|
|
3415
3415
|
const uploadFile = useCallback5(
|
|
3416
3416
|
async ({ formData }) => {
|
|
3417
|
-
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData
|
|
3418
|
-
headers: {
|
|
3419
|
-
"Content-Type": "multipart/form-data"
|
|
3420
|
-
}
|
|
3421
|
-
});
|
|
3417
|
+
return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData);
|
|
3422
3418
|
},
|
|
3423
3419
|
[env]
|
|
3424
3420
|
);
|
|
@@ -3662,12 +3658,8 @@ function useFormService() {
|
|
|
3662
3658
|
[env]
|
|
3663
3659
|
);
|
|
3664
3660
|
const uploadImage = useCallback6(
|
|
3665
|
-
async ({
|
|
3666
|
-
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */,
|
|
3667
|
-
headers: {
|
|
3668
|
-
"Content-Type": "multipart/form-data"
|
|
3669
|
-
}
|
|
3670
|
-
});
|
|
3661
|
+
async ({ formData }) => {
|
|
3662
|
+
return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, formData);
|
|
3671
3663
|
},
|
|
3672
3664
|
[env]
|
|
3673
3665
|
);
|
|
@@ -4232,101 +4224,14 @@ function useViewService() {
|
|
|
4232
4224
|
[env]
|
|
4233
4225
|
);
|
|
4234
4226
|
const getMenu = useCallback10(
|
|
4235
|
-
async (context) => {
|
|
4227
|
+
async (context, specification) => {
|
|
4236
4228
|
const jsonData = {
|
|
4237
4229
|
model: "ir.ui.menu" /* MENU */,
|
|
4238
4230
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4239
4231
|
ids: [],
|
|
4240
4232
|
with_context: context,
|
|
4241
4233
|
kwargs: {
|
|
4242
|
-
specification
|
|
4243
|
-
active: {},
|
|
4244
|
-
name: {},
|
|
4245
|
-
is_display: {},
|
|
4246
|
-
sequence: {},
|
|
4247
|
-
complete_name: {},
|
|
4248
|
-
action: {
|
|
4249
|
-
fields: {
|
|
4250
|
-
display_name: {},
|
|
4251
|
-
type: {},
|
|
4252
|
-
binding_view_types: {}
|
|
4253
|
-
}
|
|
4254
|
-
},
|
|
4255
|
-
url_icon: {},
|
|
4256
|
-
web_icon: {},
|
|
4257
|
-
web_icon_data: {},
|
|
4258
|
-
groups_id: {
|
|
4259
|
-
fields: {
|
|
4260
|
-
full_name: {}
|
|
4261
|
-
},
|
|
4262
|
-
limit: 40,
|
|
4263
|
-
order: ""
|
|
4264
|
-
},
|
|
4265
|
-
display_name: {},
|
|
4266
|
-
child_id: {
|
|
4267
|
-
fields: {
|
|
4268
|
-
active: {},
|
|
4269
|
-
name: {},
|
|
4270
|
-
is_display: {},
|
|
4271
|
-
sequence: {},
|
|
4272
|
-
complete_name: {},
|
|
4273
|
-
action: {
|
|
4274
|
-
fields: {
|
|
4275
|
-
display_name: {},
|
|
4276
|
-
type: {},
|
|
4277
|
-
binding_view_types: {}
|
|
4278
|
-
}
|
|
4279
|
-
},
|
|
4280
|
-
url_icon: {},
|
|
4281
|
-
web_icon: {},
|
|
4282
|
-
web_icon_data: {},
|
|
4283
|
-
groups_id: {
|
|
4284
|
-
fields: {
|
|
4285
|
-
full_name: {}
|
|
4286
|
-
},
|
|
4287
|
-
limit: 40,
|
|
4288
|
-
order: ""
|
|
4289
|
-
},
|
|
4290
|
-
display_name: {},
|
|
4291
|
-
child_id: {
|
|
4292
|
-
fields: {
|
|
4293
|
-
active: {},
|
|
4294
|
-
name: {},
|
|
4295
|
-
is_display: {},
|
|
4296
|
-
sequence: {},
|
|
4297
|
-
complete_name: {},
|
|
4298
|
-
action: {
|
|
4299
|
-
fields: {
|
|
4300
|
-
display_name: {},
|
|
4301
|
-
type: {},
|
|
4302
|
-
binding_view_types: {}
|
|
4303
|
-
}
|
|
4304
|
-
},
|
|
4305
|
-
url_icon: {},
|
|
4306
|
-
web_icon: {},
|
|
4307
|
-
web_icon_data: {},
|
|
4308
|
-
groups_id: {
|
|
4309
|
-
fields: {
|
|
4310
|
-
full_name: {}
|
|
4311
|
-
},
|
|
4312
|
-
limit: 40,
|
|
4313
|
-
order: ""
|
|
4314
|
-
},
|
|
4315
|
-
display_name: {},
|
|
4316
|
-
child_id: {
|
|
4317
|
-
fields: {},
|
|
4318
|
-
limit: 40,
|
|
4319
|
-
order: ""
|
|
4320
|
-
}
|
|
4321
|
-
},
|
|
4322
|
-
limit: 40,
|
|
4323
|
-
order: ""
|
|
4324
|
-
}
|
|
4325
|
-
},
|
|
4326
|
-
limit: 40,
|
|
4327
|
-
order: ""
|
|
4328
|
-
}
|
|
4329
|
-
},
|
|
4234
|
+
specification,
|
|
4330
4235
|
domain: [
|
|
4331
4236
|
"&",
|
|
4332
4237
|
["is_display", "=", true],
|
package/package.json
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"types": "dist/index.d.ts",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./configs": {
|
|
14
|
-
"types": "./dist/configs.d.ts",
|
|
15
|
-
"import": "./dist/configs.mjs",
|
|
16
|
-
"require": "./dist/configs.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./constants": {
|
|
19
|
-
"types": "./dist/constants.d.ts",
|
|
20
|
-
"import": "./dist/constants.mjs",
|
|
21
|
-
"require": "./dist/constants.cjs"
|
|
22
|
-
},
|
|
23
|
-
"./environment": {
|
|
24
|
-
"types": "./dist/environment.d.ts",
|
|
25
|
-
"import": "./dist/environment.mjs",
|
|
26
|
-
"require": "./dist/environment.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./hooks": {
|
|
29
|
-
"types": "./dist/hooks.d.ts",
|
|
30
|
-
"import": "./dist/hooks.mjs",
|
|
31
|
-
"require": "./dist/hooks.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./provider": {
|
|
34
|
-
"types": "./dist/provider.d.ts",
|
|
35
|
-
"import": "./dist/provider.mjs",
|
|
36
|
-
"require": "./dist/provider.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./services": {
|
|
39
|
-
"types": "./dist/services.d.ts",
|
|
40
|
-
"import": "./dist/services.mjs",
|
|
41
|
-
"require": "./dist/services.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./store": {
|
|
44
|
-
"types": "./dist/store.d.ts",
|
|
45
|
-
"import": "./dist/store.mjs",
|
|
46
|
-
"require": "./dist/store.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./utils": {
|
|
49
|
-
"types": "./dist/utils.d.ts",
|
|
50
|
-
"import": "./dist/utils.mjs",
|
|
51
|
-
"require": "./dist/utils.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./types": {
|
|
54
|
-
"types": "./dist/types.d.ts",
|
|
55
|
-
"import": "./dist/types.mjs",
|
|
56
|
-
"require": "./dist/types.cjs"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"files": [
|
|
60
|
-
"dist"
|
|
61
|
-
],
|
|
62
|
-
"scripts": {
|
|
63
|
-
"build": "tsup",
|
|
64
|
-
"test": "jest"
|
|
65
|
-
},
|
|
66
|
-
"peerDependencies": {
|
|
67
|
-
"react": "18.0.0",
|
|
68
|
-
"@tanstack/react-query": "^5.83.0"
|
|
69
|
-
},
|
|
70
|
-
"dependencies": {
|
|
71
|
-
"@reduxjs/toolkit": "^2.8.2",
|
|
72
|
-
"@tanstack/react-query": "^5.83.0",
|
|
73
|
-
"axios": "^1.11.0",
|
|
74
|
-
"moment": "^2.30.1",
|
|
75
|
-
"react-redux": "^9.2.0"
|
|
76
|
-
},
|
|
77
|
-
"devDependencies": {
|
|
78
|
-
"@types/react": "^18.3.1",
|
|
79
|
-
"react": "18.0.0",
|
|
80
|
-
"jest": "^29.7.0",
|
|
81
|
-
"tsup": "^8.0.0",
|
|
82
|
-
"typescript": "^5.8.2"
|
|
83
|
-
},
|
|
84
|
-
"packageManager": "yarn@1.22.0"
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/interface-logic",
|
|
3
|
+
"version": "2.0.5",
|
|
4
|
+
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./configs": {
|
|
14
|
+
"types": "./dist/configs.d.ts",
|
|
15
|
+
"import": "./dist/configs.mjs",
|
|
16
|
+
"require": "./dist/configs.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./constants": {
|
|
19
|
+
"types": "./dist/constants.d.ts",
|
|
20
|
+
"import": "./dist/constants.mjs",
|
|
21
|
+
"require": "./dist/constants.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./environment": {
|
|
24
|
+
"types": "./dist/environment.d.ts",
|
|
25
|
+
"import": "./dist/environment.mjs",
|
|
26
|
+
"require": "./dist/environment.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./hooks": {
|
|
29
|
+
"types": "./dist/hooks.d.ts",
|
|
30
|
+
"import": "./dist/hooks.mjs",
|
|
31
|
+
"require": "./dist/hooks.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./provider": {
|
|
34
|
+
"types": "./dist/provider.d.ts",
|
|
35
|
+
"import": "./dist/provider.mjs",
|
|
36
|
+
"require": "./dist/provider.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./services": {
|
|
39
|
+
"types": "./dist/services.d.ts",
|
|
40
|
+
"import": "./dist/services.mjs",
|
|
41
|
+
"require": "./dist/services.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./store": {
|
|
44
|
+
"types": "./dist/store.d.ts",
|
|
45
|
+
"import": "./dist/store.mjs",
|
|
46
|
+
"require": "./dist/store.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./utils": {
|
|
49
|
+
"types": "./dist/utils.d.ts",
|
|
50
|
+
"import": "./dist/utils.mjs",
|
|
51
|
+
"require": "./dist/utils.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./types": {
|
|
54
|
+
"types": "./dist/types.d.ts",
|
|
55
|
+
"import": "./dist/types.mjs",
|
|
56
|
+
"require": "./dist/types.cjs"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist"
|
|
61
|
+
],
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "tsup",
|
|
64
|
+
"test": "jest"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"react": "18.0.0",
|
|
68
|
+
"@tanstack/react-query": "^5.83.0"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@reduxjs/toolkit": "^2.8.2",
|
|
72
|
+
"@tanstack/react-query": "^5.83.0",
|
|
73
|
+
"axios": "^1.11.0",
|
|
74
|
+
"moment": "^2.30.1",
|
|
75
|
+
"react-redux": "^9.2.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@types/react": "^18.3.1",
|
|
79
|
+
"react": "18.0.0",
|
|
80
|
+
"jest": "^29.7.0",
|
|
81
|
+
"tsup": "^8.0.0",
|
|
82
|
+
"typescript": "^5.8.2"
|
|
83
|
+
},
|
|
84
|
+
"packageManager": "yarn@1.22.0"
|
|
85
|
+
}
|