@fctc/interface-logic 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{hooks.d.mts → hook.d.mts} +3 -2
- package/dist/{hooks.d.ts → hook.d.ts} +3 -2
- package/dist/{hooks.js → hook.js} +16 -14
- package/dist/{hooks.mjs → hook.mjs} +12 -10
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +12 -10
- package/dist/index.mjs +12 -10
- package/dist/model.js +2 -2
- package/dist/model.mjs +2 -2
- package/dist/provider.d.mts +4 -3
- package/dist/provider.d.ts +4 -3
- package/dist/provider.js +2 -2
- package/dist/provider.mjs +2 -2
- package/dist/services.d.mts +3 -3
- package/dist/services.d.ts +3 -3
- package/dist/services.js +7 -6
- package/dist/services.mjs +7 -6
- package/dist/store.d.mts +247 -247
- package/dist/store.d.ts +247 -247
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{view-type-y6vtF3wg.d.mts → view-type-DodWYWDH.d.mts} +1 -0
- package/dist/{view-type-y6vtF3wg.d.ts → view-type-DodWYWDH.d.ts} +1 -0
- package/package.json +87 -87
|
@@ -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, f as ViewData, C as ContextApi, c as GetViewParams } from './view-type-
|
|
2
|
+
import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, f as ViewData, C as ContextApi, c as GetViewParams } from './view-type-DodWYWDH.mjs';
|
|
3
3
|
import { a as BaseModelInit, B as BaseModel } from './index-C_nK1Mii.mjs';
|
|
4
4
|
import './environment.mjs';
|
|
5
5
|
export { u as useGetSelection } from './use-get-selection-QZu1jKqa.mjs';
|
|
@@ -190,9 +190,10 @@ declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error,
|
|
|
190
190
|
data: any;
|
|
191
191
|
specification?: any;
|
|
192
192
|
context: any;
|
|
193
|
+
path?: string;
|
|
193
194
|
}, unknown>;
|
|
194
195
|
|
|
195
|
-
declare const useGetProfile: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
196
|
+
declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
196
197
|
|
|
197
198
|
declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
198
199
|
id: any;
|
|
@@ -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, f as ViewData, C as ContextApi, c as GetViewParams } from './view-type-
|
|
2
|
+
import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, f as ViewData, C as ContextApi, c as GetViewParams } from './view-type-DodWYWDH.js';
|
|
3
3
|
import { a as BaseModelInit, B as BaseModel } from './index-C_nK1Mii.js';
|
|
4
4
|
import './environment.js';
|
|
5
5
|
export { u as useGetSelection } from './use-get-selection-QZu1jKqa.js';
|
|
@@ -190,9 +190,10 @@ declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error,
|
|
|
190
190
|
data: any;
|
|
191
191
|
specification?: any;
|
|
192
192
|
context: any;
|
|
193
|
+
path?: string;
|
|
193
194
|
}, unknown>;
|
|
194
195
|
|
|
195
|
-
declare const useGetProfile: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
196
|
+
declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
196
197
|
|
|
197
198
|
declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
198
199
|
id: any;
|
|
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// src/
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
30
|
+
// src/hook.ts
|
|
31
|
+
var hook_exports = {};
|
|
32
|
+
__export(hook_exports, {
|
|
33
33
|
useButton: () => use_button_default,
|
|
34
34
|
useChangeStatus: () => use_change_status_default,
|
|
35
35
|
useDelete: () => use_delete_default,
|
|
@@ -99,7 +99,7 @@ __export(hooks_exports, {
|
|
|
99
99
|
useVerify2FA: () => use_verify_2FA_default,
|
|
100
100
|
useVerifyTotp: () => use_verify_totp_default
|
|
101
101
|
});
|
|
102
|
-
module.exports = __toCommonJS(
|
|
102
|
+
module.exports = __toCommonJS(hook_exports);
|
|
103
103
|
|
|
104
104
|
// src/hooks/auth/use-forgot-password.ts
|
|
105
105
|
var import_react_query = require("@tanstack/react-query");
|
|
@@ -4095,7 +4095,8 @@ var ModelService = {
|
|
|
4095
4095
|
ids = [],
|
|
4096
4096
|
data = {},
|
|
4097
4097
|
specification = {},
|
|
4098
|
-
context = {}
|
|
4098
|
+
context = {},
|
|
4099
|
+
path
|
|
4099
4100
|
}) {
|
|
4100
4101
|
const env2 = getEnv();
|
|
4101
4102
|
const jsonData = {
|
|
@@ -4108,7 +4109,7 @@ var ModelService = {
|
|
|
4108
4109
|
specification
|
|
4109
4110
|
}
|
|
4110
4111
|
};
|
|
4111
|
-
return env2?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
4112
|
+
return env2?.requests?.post(path ?? "/call" /* CALL_PATH */, jsonData, {
|
|
4112
4113
|
headers: {
|
|
4113
4114
|
"Content-Type": "application/json"
|
|
4114
4115
|
}
|
|
@@ -4226,9 +4227,9 @@ var model_service_default = ModelService;
|
|
|
4226
4227
|
|
|
4227
4228
|
// src/services/user-service/index.ts
|
|
4228
4229
|
var UserService = {
|
|
4229
|
-
async getProfile() {
|
|
4230
|
+
async getProfile(path) {
|
|
4230
4231
|
const env2 = getEnv();
|
|
4231
|
-
return env2.requests.get("/userinfo" /* PROFILE_PATH */, {
|
|
4232
|
+
return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
|
|
4232
4233
|
headers: {
|
|
4233
4234
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
4234
4235
|
}
|
|
@@ -4610,10 +4611,10 @@ var ViewService = {
|
|
|
4610
4611
|
});
|
|
4611
4612
|
const url = `${path}?${params.toString()}`;
|
|
4612
4613
|
return env2?.requests.get(url, {
|
|
4613
|
-
credentials: "include",
|
|
4614
4614
|
headers: {
|
|
4615
4615
|
"Content-Type": "application/json"
|
|
4616
|
-
}
|
|
4616
|
+
},
|
|
4617
|
+
withCredentials: true
|
|
4617
4618
|
});
|
|
4618
4619
|
},
|
|
4619
4620
|
async grantAccess({
|
|
@@ -5427,17 +5428,18 @@ var useSave = () => {
|
|
|
5427
5428
|
model,
|
|
5428
5429
|
data,
|
|
5429
5430
|
specification,
|
|
5430
|
-
context
|
|
5431
|
-
|
|
5431
|
+
context,
|
|
5432
|
+
path
|
|
5433
|
+
}) => model_service_default.save({ ids, model, data, specification, context, path })
|
|
5432
5434
|
});
|
|
5433
5435
|
};
|
|
5434
5436
|
var use_save_default = useSave;
|
|
5435
5437
|
|
|
5436
5438
|
// src/hooks/user/use-get-profile.ts
|
|
5437
5439
|
var import_react_query38 = require("@tanstack/react-query");
|
|
5438
|
-
var useGetProfile = () => {
|
|
5440
|
+
var useGetProfile = (path) => {
|
|
5439
5441
|
return (0, import_react_query38.useMutation)({
|
|
5440
|
-
mutationFn: () => user_service_default.getProfile()
|
|
5442
|
+
mutationFn: () => user_service_default.getProfile(path)
|
|
5441
5443
|
});
|
|
5442
5444
|
};
|
|
5443
5445
|
var use_get_profile_default = useGetProfile;
|
|
@@ -3992,7 +3992,8 @@ var ModelService = {
|
|
|
3992
3992
|
ids = [],
|
|
3993
3993
|
data = {},
|
|
3994
3994
|
specification = {},
|
|
3995
|
-
context = {}
|
|
3995
|
+
context = {},
|
|
3996
|
+
path
|
|
3996
3997
|
}) {
|
|
3997
3998
|
const env2 = getEnv();
|
|
3998
3999
|
const jsonData = {
|
|
@@ -4005,7 +4006,7 @@ var ModelService = {
|
|
|
4005
4006
|
specification
|
|
4006
4007
|
}
|
|
4007
4008
|
};
|
|
4008
|
-
return env2?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
4009
|
+
return env2?.requests?.post(path ?? "/call" /* CALL_PATH */, jsonData, {
|
|
4009
4010
|
headers: {
|
|
4010
4011
|
"Content-Type": "application/json"
|
|
4011
4012
|
}
|
|
@@ -4123,9 +4124,9 @@ var model_service_default = ModelService;
|
|
|
4123
4124
|
|
|
4124
4125
|
// src/services/user-service/index.ts
|
|
4125
4126
|
var UserService = {
|
|
4126
|
-
async getProfile() {
|
|
4127
|
+
async getProfile(path) {
|
|
4127
4128
|
const env2 = getEnv();
|
|
4128
|
-
return env2.requests.get("/userinfo" /* PROFILE_PATH */, {
|
|
4129
|
+
return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
|
|
4129
4130
|
headers: {
|
|
4130
4131
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
4131
4132
|
}
|
|
@@ -4507,10 +4508,10 @@ var ViewService = {
|
|
|
4507
4508
|
});
|
|
4508
4509
|
const url = `${path}?${params.toString()}`;
|
|
4509
4510
|
return env2?.requests.get(url, {
|
|
4510
|
-
credentials: "include",
|
|
4511
4511
|
headers: {
|
|
4512
4512
|
"Content-Type": "application/json"
|
|
4513
|
-
}
|
|
4513
|
+
},
|
|
4514
|
+
withCredentials: true
|
|
4514
4515
|
});
|
|
4515
4516
|
},
|
|
4516
4517
|
async grantAccess({
|
|
@@ -5324,17 +5325,18 @@ var useSave = () => {
|
|
|
5324
5325
|
model,
|
|
5325
5326
|
data,
|
|
5326
5327
|
specification,
|
|
5327
|
-
context
|
|
5328
|
-
|
|
5328
|
+
context,
|
|
5329
|
+
path
|
|
5330
|
+
}) => model_service_default.save({ ids, model, data, specification, context, path })
|
|
5329
5331
|
});
|
|
5330
5332
|
};
|
|
5331
5333
|
var use_save_default = useSave;
|
|
5332
5334
|
|
|
5333
5335
|
// src/hooks/user/use-get-profile.ts
|
|
5334
5336
|
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
5335
|
-
var useGetProfile = () => {
|
|
5337
|
+
var useGetProfile = (path) => {
|
|
5336
5338
|
return useMutation28({
|
|
5337
|
-
mutationFn: () => user_service_default.getProfile()
|
|
5339
|
+
mutationFn: () => user_service_default.getProfile(path)
|
|
5338
5340
|
});
|
|
5339
5341
|
};
|
|
5340
5342
|
var use_get_profile_default = useGetProfile;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export { axiosClient } from './config.mjs';
|
|
2
2
|
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS } from './constants.mjs';
|
|
3
3
|
export { EnvStore, env, getEnv, initEnv } from './environment.mjs';
|
|
4
|
-
export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFieldsViewSecurity, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage, useVerify2FA, useVerifyTotp } from './
|
|
4
|
+
export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFieldsViewSecurity, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage, useVerify2FA, useVerifyTotp } from './hook.mjs';
|
|
5
5
|
export { u as useGetSelection } from './use-get-selection-QZu1jKqa.mjs';
|
|
6
6
|
export { B as BaseModel } from './index-C_nK1Mii.mjs';
|
|
7
7
|
export { CompanyModel, UserModel } from './model.mjs';
|
|
8
8
|
export { MainProvider, ReactQueryProvider, VersionGate } from './provider.mjs';
|
|
9
9
|
export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanService, ModelService, UserService, ViewService } from './services.mjs';
|
|
10
10
|
export { AppDispatch, BreadcrumbsState, ExcelState, FormState, ListState, LoginStateType, NavbarStateType, ProfileStateType, RootState, SearchState, UserInfor, ViewDataStore, breadcrumbsSlice, clearSearchMap, envSlice, envStore, excelSlice, formSlice, headerSlice, listSlice, loginSlice, navbarSlice, profileSlice, removeKeyFromSearchMap, searchSlice, selectBreadCrumbs, selectEnv, selectExcel, selectForm, selectHeader, selectList, selectLogin, selectNavbar, selectProfile, selectSearch, selectSearchMap, setAllowCompanies, setAllowedCompanyIds, setBreadCrumbs, setCompanies, setConfig, setDataParse, setDataUser, setDb, setDefaultCompany, setDomainTable, setEnv, setEnvFile, setErrorData, setFieldTranslate, setFields, setFilterBy, setFirstDomain, setForgotPasswordUrl, setFormSubmitComponent, setGroupBy, setGroupByDomain, setHeader, setHoveredIndexSearchList, setIdFile, setIndexRowTableModal, setIsFileLoaded, setIsShowModalTranslate, setIsShowingModalDetail, setIsUpdateTableModal, setLang, setListSubject, setLoadingImport, setMenuFocus, setMenuFocusAction, setMenuList, setNavbarWidth, setOrder, setPage, setPageLimit, setProfile, setRedirectTo, setSearchBy, setSearchMap, setSearchString, setSelectedFile, setSelectedRadioKey, setSelectedRowKeys, setSelectedTags, setTransferDetail, setUid, setUser, setViewDataStore, updateSearchMap, useAppDispatch, useAppSelector } from './store.mjs';
|
|
11
|
-
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, V as View, f as ViewData, u as updatePasswordBody } from './view-type-
|
|
11
|
+
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, V as View, f as ViewData, u as updatePasswordBody } from './view-type-DodWYWDH.mjs';
|
|
12
12
|
export { B as BaseModelInit } from './base-model-type-DvO53Lwi.mjs';
|
|
13
13
|
export { Config } from './types.mjs';
|
|
14
14
|
export { C as Context } from './context-type-D5XefoL-.mjs';
|
|
@@ -16,6 +16,7 @@ export { WesapError, checkIsImageLink, convertFloatToTime, convertTimeToFloat, c
|
|
|
16
16
|
export { L as LocalStorageUtilsType, S as SessionStorageUtilsType, l as localStorageUtils, s as sessionStorageUtils } from './session-storage-CxkkEmQh.mjs';
|
|
17
17
|
import '@reduxjs/toolkit';
|
|
18
18
|
import '@tanstack/react-query';
|
|
19
|
+
import 'react/jsx-runtime';
|
|
19
20
|
import 'react';
|
|
20
21
|
import 'react-redux';
|
|
21
22
|
import 'redux-thunk';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export { axiosClient } from './config.js';
|
|
2
2
|
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS } from './constants.js';
|
|
3
3
|
export { EnvStore, env, getEnv, initEnv } from './environment.js';
|
|
4
|
-
export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFieldsViewSecurity, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage, useVerify2FA, useVerifyTotp } from './
|
|
4
|
+
export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFieldsViewSecurity, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage, useVerify2FA, useVerifyTotp } from './hook.js';
|
|
5
5
|
export { u as useGetSelection } from './use-get-selection-QZu1jKqa.js';
|
|
6
6
|
export { B as BaseModel } from './index-C_nK1Mii.js';
|
|
7
7
|
export { CompanyModel, UserModel } from './model.js';
|
|
8
8
|
export { MainProvider, ReactQueryProvider, VersionGate } from './provider.js';
|
|
9
9
|
export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanService, ModelService, UserService, ViewService } from './services.js';
|
|
10
10
|
export { AppDispatch, BreadcrumbsState, ExcelState, FormState, ListState, LoginStateType, NavbarStateType, ProfileStateType, RootState, SearchState, UserInfor, ViewDataStore, breadcrumbsSlice, clearSearchMap, envSlice, envStore, excelSlice, formSlice, headerSlice, listSlice, loginSlice, navbarSlice, profileSlice, removeKeyFromSearchMap, searchSlice, selectBreadCrumbs, selectEnv, selectExcel, selectForm, selectHeader, selectList, selectLogin, selectNavbar, selectProfile, selectSearch, selectSearchMap, setAllowCompanies, setAllowedCompanyIds, setBreadCrumbs, setCompanies, setConfig, setDataParse, setDataUser, setDb, setDefaultCompany, setDomainTable, setEnv, setEnvFile, setErrorData, setFieldTranslate, setFields, setFilterBy, setFirstDomain, setForgotPasswordUrl, setFormSubmitComponent, setGroupBy, setGroupByDomain, setHeader, setHoveredIndexSearchList, setIdFile, setIndexRowTableModal, setIsFileLoaded, setIsShowModalTranslate, setIsShowingModalDetail, setIsUpdateTableModal, setLang, setListSubject, setLoadingImport, setMenuFocus, setMenuFocusAction, setMenuList, setNavbarWidth, setOrder, setPage, setPageLimit, setProfile, setRedirectTo, setSearchBy, setSearchMap, setSearchString, setSelectedFile, setSelectedRadioKey, setSelectedRowKeys, setSelectedTags, setTransferDetail, setUid, setUser, setViewDataStore, updateSearchMap, useAppDispatch, useAppSelector } from './store.js';
|
|
11
|
-
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, V as View, f as ViewData, u as updatePasswordBody } from './view-type-
|
|
11
|
+
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, V as View, f as ViewData, u as updatePasswordBody } from './view-type-DodWYWDH.js';
|
|
12
12
|
export { B as BaseModelInit } from './base-model-type-DvO53Lwi.js';
|
|
13
13
|
export { Config } from './types.js';
|
|
14
14
|
export { C as Context } from './context-type-D5XefoL-.js';
|
|
@@ -16,6 +16,7 @@ export { WesapError, checkIsImageLink, convertFloatToTime, convertTimeToFloat, c
|
|
|
16
16
|
export { L as LocalStorageUtilsType, S as SessionStorageUtilsType, l as localStorageUtils, s as sessionStorageUtils } from './session-storage-CxkkEmQh.js';
|
|
17
17
|
import '@reduxjs/toolkit';
|
|
18
18
|
import '@tanstack/react-query';
|
|
19
|
+
import 'react/jsx-runtime';
|
|
19
20
|
import 'react';
|
|
20
21
|
import 'react-redux';
|
|
21
22
|
import 'redux-thunk';
|
package/dist/index.js
CHANGED
|
@@ -5090,7 +5090,8 @@ var ModelService = {
|
|
|
5090
5090
|
ids = [],
|
|
5091
5091
|
data = {},
|
|
5092
5092
|
specification = {},
|
|
5093
|
-
context = {}
|
|
5093
|
+
context = {},
|
|
5094
|
+
path
|
|
5094
5095
|
}) {
|
|
5095
5096
|
const env2 = getEnv();
|
|
5096
5097
|
const jsonData = {
|
|
@@ -5103,7 +5104,7 @@ var ModelService = {
|
|
|
5103
5104
|
specification
|
|
5104
5105
|
}
|
|
5105
5106
|
};
|
|
5106
|
-
return env2?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
5107
|
+
return env2?.requests?.post(path ?? "/call" /* CALL_PATH */, jsonData, {
|
|
5107
5108
|
headers: {
|
|
5108
5109
|
"Content-Type": "application/json"
|
|
5109
5110
|
}
|
|
@@ -5221,9 +5222,9 @@ var model_service_default = ModelService;
|
|
|
5221
5222
|
|
|
5222
5223
|
// src/services/user-service/index.ts
|
|
5223
5224
|
var UserService = {
|
|
5224
|
-
async getProfile() {
|
|
5225
|
+
async getProfile(path) {
|
|
5225
5226
|
const env2 = getEnv();
|
|
5226
|
-
return env2.requests.get("/userinfo" /* PROFILE_PATH */, {
|
|
5227
|
+
return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
|
|
5227
5228
|
headers: {
|
|
5228
5229
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
5229
5230
|
}
|
|
@@ -5605,10 +5606,10 @@ var ViewService = {
|
|
|
5605
5606
|
});
|
|
5606
5607
|
const url = `${path}?${params.toString()}`;
|
|
5607
5608
|
return env2?.requests.get(url, {
|
|
5608
|
-
credentials: "include",
|
|
5609
5609
|
headers: {
|
|
5610
5610
|
"Content-Type": "application/json"
|
|
5611
|
-
}
|
|
5611
|
+
},
|
|
5612
|
+
withCredentials: true
|
|
5612
5613
|
});
|
|
5613
5614
|
},
|
|
5614
5615
|
async grantAccess({
|
|
@@ -6422,17 +6423,18 @@ var useSave = () => {
|
|
|
6422
6423
|
model,
|
|
6423
6424
|
data,
|
|
6424
6425
|
specification,
|
|
6425
|
-
context
|
|
6426
|
-
|
|
6426
|
+
context,
|
|
6427
|
+
path
|
|
6428
|
+
}) => model_service_default.save({ ids, model, data, specification, context, path })
|
|
6427
6429
|
});
|
|
6428
6430
|
};
|
|
6429
6431
|
var use_save_default = useSave;
|
|
6430
6432
|
|
|
6431
6433
|
// src/hooks/user/use-get-profile.ts
|
|
6432
6434
|
var import_react_query38 = require("@tanstack/react-query");
|
|
6433
|
-
var useGetProfile = () => {
|
|
6435
|
+
var useGetProfile = (path) => {
|
|
6434
6436
|
return (0, import_react_query38.useMutation)({
|
|
6435
|
-
mutationFn: () => user_service_default.getProfile()
|
|
6437
|
+
mutationFn: () => user_service_default.getProfile(path)
|
|
6436
6438
|
});
|
|
6437
6439
|
};
|
|
6438
6440
|
var use_get_profile_default = useGetProfile;
|
package/dist/index.mjs
CHANGED
|
@@ -4843,7 +4843,8 @@ var ModelService = {
|
|
|
4843
4843
|
ids = [],
|
|
4844
4844
|
data = {},
|
|
4845
4845
|
specification = {},
|
|
4846
|
-
context = {}
|
|
4846
|
+
context = {},
|
|
4847
|
+
path
|
|
4847
4848
|
}) {
|
|
4848
4849
|
const env2 = getEnv();
|
|
4849
4850
|
const jsonData = {
|
|
@@ -4856,7 +4857,7 @@ var ModelService = {
|
|
|
4856
4857
|
specification
|
|
4857
4858
|
}
|
|
4858
4859
|
};
|
|
4859
|
-
return env2?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
4860
|
+
return env2?.requests?.post(path ?? "/call" /* CALL_PATH */, jsonData, {
|
|
4860
4861
|
headers: {
|
|
4861
4862
|
"Content-Type": "application/json"
|
|
4862
4863
|
}
|
|
@@ -4974,9 +4975,9 @@ var model_service_default = ModelService;
|
|
|
4974
4975
|
|
|
4975
4976
|
// src/services/user-service/index.ts
|
|
4976
4977
|
var UserService = {
|
|
4977
|
-
async getProfile() {
|
|
4978
|
+
async getProfile(path) {
|
|
4978
4979
|
const env2 = getEnv();
|
|
4979
|
-
return env2.requests.get("/userinfo" /* PROFILE_PATH */, {
|
|
4980
|
+
return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
|
|
4980
4981
|
headers: {
|
|
4981
4982
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
4982
4983
|
}
|
|
@@ -5358,10 +5359,10 @@ var ViewService = {
|
|
|
5358
5359
|
});
|
|
5359
5360
|
const url = `${path}?${params.toString()}`;
|
|
5360
5361
|
return env2?.requests.get(url, {
|
|
5361
|
-
credentials: "include",
|
|
5362
5362
|
headers: {
|
|
5363
5363
|
"Content-Type": "application/json"
|
|
5364
|
-
}
|
|
5364
|
+
},
|
|
5365
|
+
withCredentials: true
|
|
5365
5366
|
});
|
|
5366
5367
|
},
|
|
5367
5368
|
async grantAccess({
|
|
@@ -6175,17 +6176,18 @@ var useSave = () => {
|
|
|
6175
6176
|
model,
|
|
6176
6177
|
data,
|
|
6177
6178
|
specification,
|
|
6178
|
-
context
|
|
6179
|
-
|
|
6179
|
+
context,
|
|
6180
|
+
path
|
|
6181
|
+
}) => model_service_default.save({ ids, model, data, specification, context, path })
|
|
6180
6182
|
});
|
|
6181
6183
|
};
|
|
6182
6184
|
var use_save_default = useSave;
|
|
6183
6185
|
|
|
6184
6186
|
// src/hooks/user/use-get-profile.ts
|
|
6185
6187
|
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
6186
|
-
var useGetProfile = () => {
|
|
6188
|
+
var useGetProfile = (path) => {
|
|
6187
6189
|
return useMutation28({
|
|
6188
|
-
mutationFn: () => user_service_default.getProfile()
|
|
6190
|
+
mutationFn: () => user_service_default.getProfile(path)
|
|
6189
6191
|
});
|
|
6190
6192
|
};
|
|
6191
6193
|
var use_get_profile_default = useGetProfile;
|
package/dist/model.js
CHANGED
|
@@ -3264,9 +3264,9 @@ var company_service_default = CompanyService;
|
|
|
3264
3264
|
|
|
3265
3265
|
// src/services/user-service/index.ts
|
|
3266
3266
|
var UserService = {
|
|
3267
|
-
async getProfile() {
|
|
3267
|
+
async getProfile(path) {
|
|
3268
3268
|
const env2 = getEnv();
|
|
3269
|
-
return env2.requests.get("/userinfo" /* PROFILE_PATH */, {
|
|
3269
|
+
return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
|
|
3270
3270
|
headers: {
|
|
3271
3271
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
3272
3272
|
}
|
package/dist/model.mjs
CHANGED
|
@@ -3226,9 +3226,9 @@ var company_service_default = CompanyService;
|
|
|
3226
3226
|
|
|
3227
3227
|
// src/services/user-service/index.ts
|
|
3228
3228
|
var UserService = {
|
|
3229
|
-
async getProfile() {
|
|
3229
|
+
async getProfile(path) {
|
|
3230
3230
|
const env2 = getEnv();
|
|
3231
|
-
return env2.requests.get("/userinfo" /* PROFILE_PATH */, {
|
|
3231
|
+
return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
|
|
3232
3232
|
headers: {
|
|
3233
3233
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
3234
3234
|
}
|
package/dist/provider.d.mts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
|
|
3
4
|
declare const MainProvider: ({ children }: {
|
|
4
5
|
children: ReactNode;
|
|
5
|
-
}) => JSX.Element;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
6
7
|
|
|
7
8
|
declare const ReactQueryProvider: ({ children }: {
|
|
8
9
|
children: ReactNode;
|
|
9
|
-
}) => JSX.Element;
|
|
10
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
10
11
|
|
|
11
12
|
declare const VersionGate: ({ children }: {
|
|
12
13
|
children: ReactNode;
|
|
13
|
-
}) => JSX.Element | null;
|
|
14
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
14
15
|
|
|
15
16
|
export { MainProvider, ReactQueryProvider, VersionGate };
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
|
|
3
4
|
declare const MainProvider: ({ children }: {
|
|
4
5
|
children: ReactNode;
|
|
5
|
-
}) => JSX.Element;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
6
7
|
|
|
7
8
|
declare const ReactQueryProvider: ({ children }: {
|
|
8
9
|
children: ReactNode;
|
|
9
|
-
}) => JSX.Element;
|
|
10
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
10
11
|
|
|
11
12
|
declare const VersionGate: ({ children }: {
|
|
12
13
|
children: ReactNode;
|
|
13
|
-
}) => JSX.Element | null;
|
|
14
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
14
15
|
|
|
15
16
|
export { MainProvider, ReactQueryProvider, VersionGate };
|
package/dist/provider.js
CHANGED
|
@@ -3439,10 +3439,10 @@ var ViewService = {
|
|
|
3439
3439
|
});
|
|
3440
3440
|
const url = `${path}?${params.toString()}`;
|
|
3441
3441
|
return env2?.requests.get(url, {
|
|
3442
|
-
credentials: "include",
|
|
3443
3442
|
headers: {
|
|
3444
3443
|
"Content-Type": "application/json"
|
|
3445
|
-
}
|
|
3444
|
+
},
|
|
3445
|
+
withCredentials: true
|
|
3446
3446
|
});
|
|
3447
3447
|
},
|
|
3448
3448
|
async grantAccess({
|
package/dist/provider.mjs
CHANGED
|
@@ -3401,10 +3401,10 @@ var ViewService = {
|
|
|
3401
3401
|
});
|
|
3402
3402
|
const url = `${path}?${params.toString()}`;
|
|
3403
3403
|
return env2?.requests.get(url, {
|
|
3404
|
-
credentials: "include",
|
|
3405
3404
|
headers: {
|
|
3406
3405
|
"Content-Type": "application/json"
|
|
3407
|
-
}
|
|
3406
|
+
},
|
|
3407
|
+
withCredentials: true
|
|
3408
3408
|
});
|
|
3409
3409
|
},
|
|
3410
3410
|
async grantAccess({
|
package/dist/services.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, f as ViewData, c as GetViewParams } from './view-type-
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, f as ViewData, c as GetViewParams } from './view-type-DodWYWDH.mjs';
|
|
2
2
|
import { G as GetSelectionType } from './use-get-selection-QZu1jKqa.mjs';
|
|
3
3
|
import { C as Context } from './context-type-D5XefoL-.mjs';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -171,7 +171,7 @@ declare const ModelService: {
|
|
|
171
171
|
}): Promise<any>;
|
|
172
172
|
getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
|
|
173
173
|
getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
|
|
174
|
-
save({ model, ids, data, specification, context, }: SaveParams): Promise<any>;
|
|
174
|
+
save({ model, ids, data, specification, context, path, }: SaveParams): Promise<any>;
|
|
175
175
|
delete({ ids, model }: DeleteParams): Promise<any>;
|
|
176
176
|
onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
|
|
177
177
|
getListFieldsOnchange({ model }: {
|
|
@@ -182,7 +182,7 @@ declare const ModelService: {
|
|
|
182
182
|
};
|
|
183
183
|
|
|
184
184
|
declare const UserService: {
|
|
185
|
-
getProfile(): Promise<any>;
|
|
185
|
+
getProfile(path?: string): Promise<any>;
|
|
186
186
|
getUser({ context, id }: {
|
|
187
187
|
context: any;
|
|
188
188
|
id: any;
|
package/dist/services.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, f as ViewData, c as GetViewParams } from './view-type-
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, f as ViewData, c as GetViewParams } from './view-type-DodWYWDH.js';
|
|
2
2
|
import { G as GetSelectionType } from './use-get-selection-QZu1jKqa.js';
|
|
3
3
|
import { C as Context } from './context-type-D5XefoL-.js';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -171,7 +171,7 @@ declare const ModelService: {
|
|
|
171
171
|
}): Promise<any>;
|
|
172
172
|
getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
|
|
173
173
|
getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
|
|
174
|
-
save({ model, ids, data, specification, context, }: SaveParams): Promise<any>;
|
|
174
|
+
save({ model, ids, data, specification, context, path, }: SaveParams): Promise<any>;
|
|
175
175
|
delete({ ids, model }: DeleteParams): Promise<any>;
|
|
176
176
|
onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
|
|
177
177
|
getListFieldsOnchange({ model }: {
|
|
@@ -182,7 +182,7 @@ declare const ModelService: {
|
|
|
182
182
|
};
|
|
183
183
|
|
|
184
184
|
declare const UserService: {
|
|
185
|
-
getProfile(): Promise<any>;
|
|
185
|
+
getProfile(path?: string): Promise<any>;
|
|
186
186
|
getUser({ context, id }: {
|
|
187
187
|
context: any;
|
|
188
188
|
id: any;
|
package/dist/services.js
CHANGED
|
@@ -4011,7 +4011,8 @@ var ModelService = {
|
|
|
4011
4011
|
ids = [],
|
|
4012
4012
|
data = {},
|
|
4013
4013
|
specification = {},
|
|
4014
|
-
context = {}
|
|
4014
|
+
context = {},
|
|
4015
|
+
path
|
|
4015
4016
|
}) {
|
|
4016
4017
|
const env2 = getEnv();
|
|
4017
4018
|
const jsonData = {
|
|
@@ -4024,7 +4025,7 @@ var ModelService = {
|
|
|
4024
4025
|
specification
|
|
4025
4026
|
}
|
|
4026
4027
|
};
|
|
4027
|
-
return env2?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
4028
|
+
return env2?.requests?.post(path ?? "/call" /* CALL_PATH */, jsonData, {
|
|
4028
4029
|
headers: {
|
|
4029
4030
|
"Content-Type": "application/json"
|
|
4030
4031
|
}
|
|
@@ -4142,9 +4143,9 @@ var model_service_default = ModelService;
|
|
|
4142
4143
|
|
|
4143
4144
|
// src/services/user-service/index.ts
|
|
4144
4145
|
var UserService = {
|
|
4145
|
-
async getProfile() {
|
|
4146
|
+
async getProfile(path) {
|
|
4146
4147
|
const env2 = getEnv();
|
|
4147
|
-
return env2.requests.get("/userinfo" /* PROFILE_PATH */, {
|
|
4148
|
+
return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
|
|
4148
4149
|
headers: {
|
|
4149
4150
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
4150
4151
|
}
|
|
@@ -4526,10 +4527,10 @@ var ViewService = {
|
|
|
4526
4527
|
});
|
|
4527
4528
|
const url = `${path}?${params.toString()}`;
|
|
4528
4529
|
return env2?.requests.get(url, {
|
|
4529
|
-
credentials: "include",
|
|
4530
4530
|
headers: {
|
|
4531
4531
|
"Content-Type": "application/json"
|
|
4532
|
-
}
|
|
4532
|
+
},
|
|
4533
|
+
withCredentials: true
|
|
4533
4534
|
});
|
|
4534
4535
|
},
|
|
4535
4536
|
async grantAccess({
|
package/dist/services.mjs
CHANGED
|
@@ -3967,7 +3967,8 @@ var ModelService = {
|
|
|
3967
3967
|
ids = [],
|
|
3968
3968
|
data = {},
|
|
3969
3969
|
specification = {},
|
|
3970
|
-
context = {}
|
|
3970
|
+
context = {},
|
|
3971
|
+
path
|
|
3971
3972
|
}) {
|
|
3972
3973
|
const env2 = getEnv();
|
|
3973
3974
|
const jsonData = {
|
|
@@ -3980,7 +3981,7 @@ var ModelService = {
|
|
|
3980
3981
|
specification
|
|
3981
3982
|
}
|
|
3982
3983
|
};
|
|
3983
|
-
return env2?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
3984
|
+
return env2?.requests?.post(path ?? "/call" /* CALL_PATH */, jsonData, {
|
|
3984
3985
|
headers: {
|
|
3985
3986
|
"Content-Type": "application/json"
|
|
3986
3987
|
}
|
|
@@ -4098,9 +4099,9 @@ var model_service_default = ModelService;
|
|
|
4098
4099
|
|
|
4099
4100
|
// src/services/user-service/index.ts
|
|
4100
4101
|
var UserService = {
|
|
4101
|
-
async getProfile() {
|
|
4102
|
+
async getProfile(path) {
|
|
4102
4103
|
const env2 = getEnv();
|
|
4103
|
-
return env2.requests.get("/userinfo" /* PROFILE_PATH */, {
|
|
4104
|
+
return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
|
|
4104
4105
|
headers: {
|
|
4105
4106
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
4106
4107
|
}
|
|
@@ -4482,10 +4483,10 @@ var ViewService = {
|
|
|
4482
4483
|
});
|
|
4483
4484
|
const url = `${path}?${params.toString()}`;
|
|
4484
4485
|
return env2?.requests.get(url, {
|
|
4485
|
-
credentials: "include",
|
|
4486
4486
|
headers: {
|
|
4487
4487
|
"Content-Type": "application/json"
|
|
4488
|
-
}
|
|
4488
|
+
},
|
|
4489
|
+
withCredentials: true
|
|
4489
4490
|
});
|
|
4490
4491
|
},
|
|
4491
4492
|
async grantAccess({
|