@fctc/widget-logic 1.3.7 → 1.3.8
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/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +9 -3
- package/dist/config.mjs +4 -1
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +33 -3
- package/dist/constants.mjs +30 -1
- package/dist/environment.d.mts +1 -1
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +15 -3
- package/dist/environment.mjs +12 -1
- package/dist/hooks.d.mts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +138 -4
- package/dist/hooks.mjs +138 -1
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +498 -130
- package/dist/index.mjs +503 -198
- package/dist/provider.d.mts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +13 -3
- package/dist/provider.mjs +10 -1
- package/dist/services.d.mts +1 -1
- package/dist/services.d.ts +1 -1
- package/dist/services.js +25 -3
- package/dist/services.mjs +22 -1
- package/dist/store.d.mts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/store.js +172 -0
- package/dist/store.mjs +173 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +65 -7
- package/dist/utils.mjs +66 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
}
|
|
21
21
|
return to;
|
|
22
22
|
};
|
|
23
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
24
23
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
24
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
25
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -55,7 +54,7 @@ var require_moment = __commonJS({
|
|
|
55
54
|
function hasOwnProp(a, b) {
|
|
56
55
|
return Object.prototype.hasOwnProperty.call(a, b);
|
|
57
56
|
}
|
|
58
|
-
function
|
|
57
|
+
function isObjectEmpty2(obj) {
|
|
59
58
|
if (Object.getOwnPropertyNames) {
|
|
60
59
|
return Object.getOwnPropertyNames(obj).length === 0;
|
|
61
60
|
} else {
|
|
@@ -2194,7 +2193,7 @@ var require_moment = __commonJS({
|
|
|
2194
2193
|
strict = locale2;
|
|
2195
2194
|
locale2 = void 0;
|
|
2196
2195
|
}
|
|
2197
|
-
if (isObject(input) &&
|
|
2196
|
+
if (isObject(input) && isObjectEmpty2(input) || isArray(input) && input.length === 0) {
|
|
2198
2197
|
input = void 0;
|
|
2199
2198
|
}
|
|
2200
2199
|
c._isAMomentObject = true;
|
|
@@ -2613,7 +2612,7 @@ var require_moment = __commonJS({
|
|
|
2613
2612
|
return isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
|
|
2614
2613
|
}
|
|
2615
2614
|
function isMomentInputObject(input) {
|
|
2616
|
-
var objectTest = isObject(input) && !
|
|
2615
|
+
var objectTest = isObject(input) && !isObjectEmpty2(input), propertyTest = false, properties = [
|
|
2617
2616
|
"years",
|
|
2618
2617
|
"year",
|
|
2619
2618
|
"y",
|
|
@@ -2655,7 +2654,7 @@ var require_moment = __commonJS({
|
|
|
2655
2654
|
return arrayTest && dataTypeTest;
|
|
2656
2655
|
}
|
|
2657
2656
|
function isCalendarSpec(input) {
|
|
2658
|
-
var objectTest = isObject(input) && !
|
|
2657
|
+
var objectTest = isObject(input) && !isObjectEmpty2(input), propertyTest = false, properties = [
|
|
2659
2658
|
"sameDay",
|
|
2660
2659
|
"nextDay",
|
|
2661
2660
|
"lastDay",
|
|
@@ -4037,77 +4036,273 @@ var index_exports = {};
|
|
|
4037
4036
|
__export(index_exports, {
|
|
4038
4037
|
API_APP_URL: () => API_APP_URL,
|
|
4039
4038
|
API_PRESCHOOL_URL: () => API_PRESCHOOL_URL,
|
|
4039
|
+
ActionService: () => import_services.ActionService,
|
|
4040
|
+
AppDispatch: () => import_store13.AppDispatch,
|
|
4040
4041
|
AppProvider: () => AppProvider,
|
|
4042
|
+
AuthService: () => import_services.AuthService,
|
|
4043
|
+
BreadcrumbsState: () => import_store13.BreadcrumbsState,
|
|
4041
4044
|
CloseIcon: () => CloseIcon,
|
|
4045
|
+
CompanyService: () => import_services.CompanyService,
|
|
4046
|
+
ComponentType: () => import_constants5.ComponentType,
|
|
4047
|
+
EnvStore: () => import_environment11.EnvStore,
|
|
4048
|
+
ExcelService: () => import_services.ExcelService,
|
|
4049
|
+
ExcelState: () => import_store13.ExcelState,
|
|
4042
4050
|
EyeIcon: () => EyeIcon,
|
|
4051
|
+
FieldTypeConstants: () => import_constants5.FieldTypeConstants,
|
|
4052
|
+
FormService: () => import_services.FormService,
|
|
4053
|
+
FormState: () => import_store13.FormState,
|
|
4054
|
+
KanbanService: () => import_services.KanbanService,
|
|
4055
|
+
KeyConstants: () => import_constants5.KeyConstants,
|
|
4056
|
+
ListState: () => import_store13.ListState,
|
|
4043
4057
|
LoadingIcon: () => LoadingIcon,
|
|
4058
|
+
LoginStateType: () => import_store13.LoginStateType,
|
|
4059
|
+
MainProvider: () => import_provider.MainProvider,
|
|
4060
|
+
MethodConstants: () => import_constants5.MethodConstants,
|
|
4061
|
+
MethodType: () => import_constants5.MethodType,
|
|
4062
|
+
ModelConstants: () => import_constants5.ModelConstants,
|
|
4063
|
+
ModelService: () => import_services.ModelService,
|
|
4064
|
+
NavbarStateType: () => import_store13.NavbarStateType,
|
|
4065
|
+
ProfileStateType: () => import_store13.ProfileStateType,
|
|
4066
|
+
ReactQueryProvider: () => import_provider.ReactQueryProvider,
|
|
4067
|
+
RootState: () => import_store13.RootState,
|
|
4044
4068
|
STORAGES: () => STORAGES,
|
|
4069
|
+
SearchState: () => import_store13.SearchState,
|
|
4070
|
+
SearchType: () => import_constants5.SearchType,
|
|
4071
|
+
UriConstants: () => import_constants5.UriConstants,
|
|
4072
|
+
UserInfor: () => import_store13.UserInfor,
|
|
4073
|
+
UserService: () => import_services.UserService,
|
|
4074
|
+
VersionGate: () => import_provider.VersionGate,
|
|
4075
|
+
ViewDataStore: () => import_store13.ViewDataStore,
|
|
4076
|
+
ViewService: () => import_services.ViewService,
|
|
4077
|
+
WIDGETAVATAR: () => import_constants5.WIDGETAVATAR,
|
|
4078
|
+
WIDGETCOLOR: () => import_constants5.WIDGETCOLOR,
|
|
4079
|
+
WIDGETCURRENCY: () => import_constants5.WIDGETCURRENCY,
|
|
4080
|
+
WIDGETNOSTRING: () => import_constants5.WIDGETNOSTRING,
|
|
4081
|
+
WIDGETSTATUS: () => import_constants5.WIDGETSTATUS,
|
|
4082
|
+
WesapError: () => import_utils15.WesapError,
|
|
4083
|
+
axiosClient: () => import_configs.axiosClient,
|
|
4045
4084
|
binaryFieldController: () => binaryFieldController,
|
|
4085
|
+
breadcrumbsSlice: () => import_store13.breadcrumbsSlice,
|
|
4086
|
+
checkIsImageLink: () => import_utils15.checkIsImageLink,
|
|
4087
|
+
clearSearchMap: () => import_store13.clearSearchMap,
|
|
4046
4088
|
colorFieldController: () => colorFieldController,
|
|
4047
4089
|
combineContexts: () => combineContexts,
|
|
4048
4090
|
convertFieldsToArray: () => convertFieldsToArray,
|
|
4091
|
+
convertFloatToTime: () => import_utils15.convertFloatToTime,
|
|
4092
|
+
convertTimeToFloat: () => import_utils15.convertTimeToFloat,
|
|
4049
4093
|
copyLinkButtonController: () => copyLinkButtonController,
|
|
4094
|
+
copyTextToClipboard: () => import_utils15.copyTextToClipboard,
|
|
4050
4095
|
countSum: () => countSum,
|
|
4051
4096
|
dateFieldController: () => dateFieldController,
|
|
4097
|
+
domainHelper: () => import_utils15.domainHelper,
|
|
4052
4098
|
downLoadBinaryController: () => downLoadBinaryController,
|
|
4053
4099
|
downloadFileController: () => downloadFileController,
|
|
4054
4100
|
durationController: () => durationController,
|
|
4101
|
+
env: () => import_environment11.env,
|
|
4102
|
+
envSlice: () => import_store13.envSlice,
|
|
4103
|
+
envStore: () => import_store13.envStore,
|
|
4104
|
+
evalJSONContext: () => import_utils15.evalJSONContext,
|
|
4105
|
+
evalJSONDomain: () => import_utils15.evalJSONDomain,
|
|
4106
|
+
excelSlice: () => import_store13.excelSlice,
|
|
4107
|
+
filterFieldDirty: () => import_utils15.filterFieldDirty,
|
|
4055
4108
|
floatController: () => floatController,
|
|
4056
4109
|
floatTimeFiledController: () => floatTimeFiledController,
|
|
4110
|
+
formSlice: () => import_store13.formSlice,
|
|
4111
|
+
formatCurrency: () => import_utils15.formatCurrency,
|
|
4112
|
+
formatDate: () => import_utils15.formatDate,
|
|
4113
|
+
formatFileSize: () => import_utils15.formatFileSize,
|
|
4114
|
+
formatSortingString: () => import_utils15.formatSortingString,
|
|
4115
|
+
formatUrlPath: () => import_utils15.formatUrlPath,
|
|
4057
4116
|
getDateRange: () => getDateRange,
|
|
4117
|
+
getEnv: () => import_environment11.getEnv,
|
|
4118
|
+
getFieldsOnChange: () => import_utils15.getFieldsOnChange,
|
|
4119
|
+
getOffSet: () => import_utils15.getOffSet,
|
|
4120
|
+
getSubdomain: () => import_utils15.getSubdomain,
|
|
4121
|
+
handleError: () => import_utils15.handleError,
|
|
4122
|
+
headerSlice: () => import_store13.headerSlice,
|
|
4123
|
+
initEnv: () => import_environment11.initEnv,
|
|
4124
|
+
isBase64File: () => import_utils15.isBase64File,
|
|
4125
|
+
isBase64Image: () => import_utils15.isBase64Image,
|
|
4126
|
+
isObjectEmpty: () => import_utils15.isObjectEmpty,
|
|
4058
4127
|
languages: () => languages,
|
|
4128
|
+
listSlice: () => import_store13.listSlice,
|
|
4129
|
+
loginSlice: () => import_store13.loginSlice,
|
|
4059
4130
|
many2manyFieldController: () => many2manyFieldController,
|
|
4060
4131
|
many2manyTagsController: () => many2manyTagsController,
|
|
4061
4132
|
many2oneButtonController: () => many2oneButtonController,
|
|
4062
4133
|
many2oneFieldController: () => many2oneFieldController,
|
|
4063
4134
|
mergeButtons: () => mergeButtons,
|
|
4135
|
+
mergeObjects: () => import_utils15.mergeObjects,
|
|
4136
|
+
navbarSlice: () => import_store13.navbarSlice,
|
|
4064
4137
|
priorityFieldController: () => priorityFieldController,
|
|
4138
|
+
profileSlice: () => import_store13.profileSlice,
|
|
4139
|
+
removeKeyFromSearchMap: () => import_store13.removeKeyFromSearchMap,
|
|
4140
|
+
removeUndefinedFields: () => import_utils15.removeUndefinedFields,
|
|
4141
|
+
resequence: () => import_utils15.resequence,
|
|
4142
|
+
searchSlice: () => import_store13.searchSlice,
|
|
4143
|
+
selectBreadCrumbs: () => import_store13.selectBreadCrumbs,
|
|
4065
4144
|
selectEnv: () => import_store13.selectEnv,
|
|
4145
|
+
selectExcel: () => import_store13.selectExcel,
|
|
4146
|
+
selectForm: () => import_store13.selectForm,
|
|
4147
|
+
selectHeader: () => import_store13.selectHeader,
|
|
4148
|
+
selectList: () => import_store13.selectList,
|
|
4149
|
+
selectLogin: () => import_store13.selectLogin,
|
|
4150
|
+
selectNavbar: () => import_store13.selectNavbar,
|
|
4066
4151
|
selectProfile: () => import_store13.selectProfile,
|
|
4152
|
+
selectSearch: () => import_store13.selectSearch,
|
|
4153
|
+
selectSearchMap: () => import_store13.selectSearchMap,
|
|
4154
|
+
setAllowCompanies: () => import_store13.setAllowCompanies,
|
|
4155
|
+
setAllowedCompanyIds: () => import_store13.setAllowedCompanyIds,
|
|
4156
|
+
setBreadCrumbs: () => import_store13.setBreadCrumbs,
|
|
4157
|
+
setCompanies: () => import_store13.setCompanies,
|
|
4158
|
+
setConfig: () => import_store13.setConfig,
|
|
4159
|
+
setDataParse: () => import_store13.setDataParse,
|
|
4067
4160
|
setDataUser: () => import_store13.setDataUser,
|
|
4161
|
+
setDb: () => import_store13.setDb,
|
|
4162
|
+
setDefaultCompany: () => import_store13.setDefaultCompany,
|
|
4163
|
+
setDomainTable: () => import_store13.setDomainTable,
|
|
4164
|
+
setEnv: () => import_store13.setEnv,
|
|
4165
|
+
setEnvFile: () => import_store13.setEnvFile,
|
|
4166
|
+
setErrorData: () => import_store13.setErrorData,
|
|
4167
|
+
setFieldTranslate: () => import_store13.setFieldTranslate,
|
|
4168
|
+
setFields: () => import_store13.setFields,
|
|
4169
|
+
setFilterBy: () => import_store13.setFilterBy,
|
|
4170
|
+
setFirstDomain: () => import_store13.setFirstDomain,
|
|
4171
|
+
setForgotPasswordUrl: () => import_store13.setForgotPasswordUrl,
|
|
4172
|
+
setFormSubmitComponent: () => import_store13.setFormSubmitComponent,
|
|
4173
|
+
setGroupBy: () => import_store13.setGroupBy,
|
|
4174
|
+
setGroupByDomain: () => import_store13.setGroupByDomain,
|
|
4175
|
+
setHeader: () => import_store13.setHeader,
|
|
4176
|
+
setHoveredIndexSearchList: () => import_store13.setHoveredIndexSearchList,
|
|
4177
|
+
setIdFile: () => import_store13.setIdFile,
|
|
4178
|
+
setIndexRowTableModal: () => import_store13.setIndexRowTableModal,
|
|
4179
|
+
setIsFileLoaded: () => import_store13.setIsFileLoaded,
|
|
4180
|
+
setIsShowModalTranslate: () => import_store13.setIsShowModalTranslate,
|
|
4181
|
+
setIsShowingModalDetail: () => import_store13.setIsShowingModalDetail,
|
|
4182
|
+
setIsUpdateTableModal: () => import_store13.setIsUpdateTableModal,
|
|
4183
|
+
setLang: () => import_store13.setLang,
|
|
4184
|
+
setListSubject: () => import_store13.setListSubject,
|
|
4185
|
+
setLoadingImport: () => import_store13.setLoadingImport,
|
|
4186
|
+
setMenuFocus: () => import_store13.setMenuFocus,
|
|
4187
|
+
setMenuFocusAction: () => import_store13.setMenuFocusAction,
|
|
4188
|
+
setMenuList: () => import_store13.setMenuList,
|
|
4189
|
+
setNavbarWidth: () => import_store13.setNavbarWidth,
|
|
4190
|
+
setOrder: () => import_store13.setOrder,
|
|
4191
|
+
setPage: () => import_store13.setPage,
|
|
4192
|
+
setPageLimit: () => import_store13.setPageLimit,
|
|
4193
|
+
setProfile: () => import_store13.setProfile,
|
|
4194
|
+
setRedirectTo: () => import_store13.setRedirectTo,
|
|
4195
|
+
setSearchBy: () => import_store13.setSearchBy,
|
|
4196
|
+
setSearchMap: () => import_store13.setSearchMap,
|
|
4197
|
+
setSearchString: () => import_store13.setSearchString,
|
|
4198
|
+
setSelectedFile: () => import_store13.setSelectedFile,
|
|
4199
|
+
setSelectedRadioKey: () => import_store13.setSelectedRadioKey,
|
|
4200
|
+
setSelectedRowKeys: () => import_store13.setSelectedRowKeys,
|
|
4201
|
+
setSelectedTags: () => import_store13.setSelectedTags,
|
|
4068
4202
|
setStorageItemAsync: () => setStorageItemAsync,
|
|
4203
|
+
setTransferDetail: () => import_store13.setTransferDetail,
|
|
4204
|
+
setUid: () => import_store13.setUid,
|
|
4205
|
+
setUser: () => import_store13.setUser,
|
|
4206
|
+
setViewDataStore: () => import_store13.setViewDataStore,
|
|
4069
4207
|
statusDropdownController: () => statusDropdownController,
|
|
4208
|
+
stringToColor: () => import_utils15.stringToColor,
|
|
4070
4209
|
tableBodyController: () => tableBodyController,
|
|
4071
4210
|
tableController: () => tableController,
|
|
4072
4211
|
tableGroupController: () => tableGroupController,
|
|
4073
4212
|
tableHeadController: () => tableHeadController,
|
|
4213
|
+
toQueryString: () => import_utils15.toQueryString,
|
|
4214
|
+
updateSearchMap: () => import_store13.updateSearchMap,
|
|
4215
|
+
updateTokenParamInOriginalRequest: () => import_utils15.updateTokenParamInOriginalRequest,
|
|
4074
4216
|
useAppDispatch: () => import_store13.useAppDispatch,
|
|
4075
4217
|
useAppProvider: () => useAppProvider,
|
|
4076
4218
|
useAppSelector: () => import_store13.useAppSelector,
|
|
4077
4219
|
useAuth: () => useAuth,
|
|
4220
|
+
useButton: () => import_hooks10.useButton,
|
|
4078
4221
|
useCallAction: () => useCallAction,
|
|
4222
|
+
useChangeStatus: () => import_hooks10.useChangeStatus,
|
|
4079
4223
|
useClickOutside: () => useClickOutside,
|
|
4080
4224
|
useConfig: () => useConfig,
|
|
4081
4225
|
useDebounce: () => useDebounce,
|
|
4226
|
+
useDelete: () => import_hooks10.useDelete,
|
|
4227
|
+
useDeleteComment: () => import_hooks10.useDeleteComment,
|
|
4082
4228
|
useDetail: () => useDetail,
|
|
4229
|
+
useDuplicateRecord: () => import_hooks10.useDuplicateRecord,
|
|
4230
|
+
useExecuteImport: () => import_hooks10.useExecuteImport,
|
|
4231
|
+
useExportExcel: () => import_hooks10.useExportExcel,
|
|
4232
|
+
useField: () => import_utils15.useField,
|
|
4233
|
+
useForgotPassword: () => import_hooks10.useForgotPassword,
|
|
4234
|
+
useForgotPasswordSSO: () => import_hooks10.useForgotPasswordSSO,
|
|
4235
|
+
useGet2FAMethods: () => import_hooks10.useGet2FAMethods,
|
|
4236
|
+
useGetAccessByCode: () => import_hooks10.useGetAccessByCode,
|
|
4237
|
+
useGetActionDetail: () => import_hooks10.useGetActionDetail,
|
|
4238
|
+
useGetAll: () => import_hooks10.useGetAll,
|
|
4239
|
+
useGetCalendar: () => import_hooks10.useGetCalendar,
|
|
4240
|
+
useGetComment: () => import_hooks10.useGetComment,
|
|
4241
|
+
useGetCompanyInfo: () => import_hooks10.useGetCompanyInfo,
|
|
4242
|
+
useGetConversionRate: () => import_hooks10.useGetConversionRate,
|
|
4243
|
+
useGetCurrency: () => import_hooks10.useGetCurrency,
|
|
4244
|
+
useGetCurrentCompany: () => import_hooks10.useGetCurrentCompany,
|
|
4245
|
+
useGetDetail: () => import_hooks10.useGetDetail,
|
|
4246
|
+
useGetFieldExport: () => import_hooks10.useGetFieldExport,
|
|
4247
|
+
useGetFieldOnChange: () => import_hooks10.useGetFieldOnChange,
|
|
4248
|
+
useGetFieldsViewSecurity: () => import_hooks10.useGetFieldsViewSecurity,
|
|
4249
|
+
useGetFileExcel: () => import_hooks10.useGetFileExcel,
|
|
4250
|
+
useGetFormView: () => import_hooks10.useGetFormView,
|
|
4251
|
+
useGetGroups: () => import_hooks10.useGetGroups,
|
|
4252
|
+
useGetImage: () => import_hooks10.useGetImage,
|
|
4253
|
+
useGetListCompany: () => import_hooks10.useGetListCompany,
|
|
4254
|
+
useGetListData: () => import_hooks10.useGetListData,
|
|
4255
|
+
useGetListMyBankAccount: () => import_hooks10.useGetListMyBankAccount,
|
|
4256
|
+
useGetMenu: () => import_hooks10.useGetMenu,
|
|
4257
|
+
useGetPrintReport: () => import_hooks10.useGetPrintReport,
|
|
4258
|
+
useGetProGressBar: () => import_hooks10.useGetProGressBar,
|
|
4259
|
+
useGetProfile: () => import_hooks10.useGetProfile,
|
|
4260
|
+
useGetProvider: () => import_hooks10.useGetProvider,
|
|
4261
|
+
useGetResequence: () => import_hooks10.useGetResequence,
|
|
4083
4262
|
useGetRowIds: () => useGetRowIds,
|
|
4263
|
+
useGetSelection: () => import_hooks10.useGetSelection,
|
|
4264
|
+
useGetUser: () => import_hooks10.useGetUser,
|
|
4265
|
+
useGetView: () => import_hooks10.useGetView,
|
|
4266
|
+
useGrantAccess: () => import_hooks10.useGrantAccess,
|
|
4267
|
+
useIsValidToken: () => import_hooks10.useIsValidToken,
|
|
4084
4268
|
useListData: () => useListData,
|
|
4269
|
+
useLoadAction: () => import_hooks10.useLoadAction,
|
|
4270
|
+
useLoadMessage: () => import_hooks10.useLoadMessage,
|
|
4271
|
+
useLoginCredential: () => import_hooks10.useLoginCredential,
|
|
4272
|
+
useLoginSocial: () => import_hooks10.useLoginSocial,
|
|
4273
|
+
useLogout: () => import_hooks10.useLogout,
|
|
4085
4274
|
useMenu: () => useMenu,
|
|
4275
|
+
useModel: () => import_hooks10.useModel,
|
|
4276
|
+
useOdooDataTransform: () => import_hooks10.useOdooDataTransform,
|
|
4277
|
+
useOnChangeForm: () => import_hooks10.useOnChangeForm,
|
|
4278
|
+
useParsePreview: () => import_hooks10.useParsePreview,
|
|
4279
|
+
usePrint: () => import_hooks10.usePrint,
|
|
4086
4280
|
useProfile: () => useProfile,
|
|
4281
|
+
useRemoveRow: () => import_hooks10.useRemoveRow,
|
|
4282
|
+
useRemoveTotpSetup: () => import_hooks10.useRemoveTotpSetup,
|
|
4283
|
+
useRequestSetupTotp: () => import_hooks10.useRequestSetupTotp,
|
|
4284
|
+
useResetPassword: () => import_hooks10.useResetPassword,
|
|
4285
|
+
useResetPasswordSSO: () => import_hooks10.useResetPasswordSSO,
|
|
4286
|
+
useRunAction: () => import_hooks10.useRunAction,
|
|
4287
|
+
useSave: () => import_hooks10.useSave,
|
|
4288
|
+
useSendComment: () => import_hooks10.useSendComment,
|
|
4289
|
+
useSettingsWebRead2fa: () => import_hooks10.useSettingsWebRead2fa,
|
|
4290
|
+
useSignInSSO: () => import_hooks10.useSignInSSO,
|
|
4087
4291
|
useStorageState: () => useStorageState,
|
|
4292
|
+
useSwitchLocale: () => import_hooks10.useSwitchLocale,
|
|
4293
|
+
useTabModel: () => import_utils15.useTabModel,
|
|
4294
|
+
useUpdatePassword: () => import_hooks10.useUpdatePassword,
|
|
4295
|
+
useUploadFile: () => import_hooks10.useUploadFile,
|
|
4296
|
+
useUploadIdFile: () => import_hooks10.useUploadIdFile,
|
|
4297
|
+
useUploadImage: () => import_hooks10.useUploadImage,
|
|
4088
4298
|
useUser: () => useUser,
|
|
4089
|
-
|
|
4299
|
+
useVerify2FA: () => import_hooks10.useVerify2FA,
|
|
4300
|
+
useVerifyTotp: () => import_hooks10.useVerifyTotp,
|
|
4301
|
+
useViewV2: () => useViewV2,
|
|
4302
|
+
validateAndParseDate: () => import_utils15.validateAndParseDate
|
|
4090
4303
|
});
|
|
4091
4304
|
module.exports = __toCommonJS(index_exports);
|
|
4092
4305
|
|
|
4093
|
-
// src/hooks.ts
|
|
4094
|
-
var hooks_exports = {};
|
|
4095
|
-
__export(hooks_exports, {
|
|
4096
|
-
AppProvider: () => AppProvider,
|
|
4097
|
-
useAppProvider: () => useAppProvider,
|
|
4098
|
-
useAuth: () => useAuth,
|
|
4099
|
-
useCallAction: () => useCallAction,
|
|
4100
|
-
useClickOutside: () => useClickOutside,
|
|
4101
|
-
useConfig: () => useConfig,
|
|
4102
|
-
useDebounce: () => useDebounce,
|
|
4103
|
-
useDetail: () => useDetail,
|
|
4104
|
-
useListData: () => useListData,
|
|
4105
|
-
useMenu: () => useMenu,
|
|
4106
|
-
useProfile: () => useProfile,
|
|
4107
|
-
useUser: () => useUser,
|
|
4108
|
-
useViewV2: () => useViewV2
|
|
4109
|
-
});
|
|
4110
|
-
|
|
4111
4306
|
// src/hooks/core/use-call-action.ts
|
|
4112
4307
|
var import_react = require("react");
|
|
4113
4308
|
var import_environment = require("@fctc/interface-logic/environment");
|
|
@@ -4171,8 +4366,8 @@ var useConfig = ({ localStorageUtils, sessionStorageUtils }) => {
|
|
|
4171
4366
|
}, []);
|
|
4172
4367
|
(0, import_react2.useEffect)(() => {
|
|
4173
4368
|
try {
|
|
4174
|
-
const
|
|
4175
|
-
|
|
4369
|
+
const env2 = (0, import_environment2.getEnv)();
|
|
4370
|
+
env2.setupEnv({
|
|
4176
4371
|
baseUrl: envConfig.baseUrl,
|
|
4177
4372
|
port: 3e3,
|
|
4178
4373
|
config: {
|
|
@@ -4302,7 +4497,7 @@ function useGetRowIds(tableRef) {
|
|
|
4302
4497
|
var getDateRange = (currentDate, unit) => {
|
|
4303
4498
|
const date = new Date(currentDate);
|
|
4304
4499
|
let dateStart, dateEnd;
|
|
4305
|
-
function
|
|
4500
|
+
function formatDate2(d) {
|
|
4306
4501
|
return d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, "0") + "-" + String(d.getDate()).padStart(2, "0") + " " + String(d.getHours()).padStart(2, "0") + ":" + String(d.getMinutes()).padStart(2, "0") + ":" + String(d.getSeconds()).padStart(2, "0");
|
|
4307
4502
|
}
|
|
4308
4503
|
switch (unit) {
|
|
@@ -4374,8 +4569,8 @@ var getDateRange = (currentDate, unit) => {
|
|
|
4374
4569
|
);
|
|
4375
4570
|
}
|
|
4376
4571
|
return [
|
|
4377
|
-
["date_start", "<=",
|
|
4378
|
-
["date_end", ">=",
|
|
4572
|
+
["date_start", "<=", formatDate2(dateStart)],
|
|
4573
|
+
["date_end", ">=", formatDate2(dateEnd)]
|
|
4379
4574
|
];
|
|
4380
4575
|
};
|
|
4381
4576
|
var convertFieldsToArray = (fields) => {
|
|
@@ -4602,11 +4797,11 @@ var useProfile = (accessToken) => {
|
|
|
4602
4797
|
(0, import_react7.useEffect)(() => {
|
|
4603
4798
|
if (userInfoQuery.data) {
|
|
4604
4799
|
const userInfo = userInfoQuery.data;
|
|
4605
|
-
const
|
|
4606
|
-
|
|
4800
|
+
const env2 = (0, import_environment3.getEnv)();
|
|
4801
|
+
env2.setUid(userInfo?.sub);
|
|
4607
4802
|
dispatch((0, import_store4.setDataUser)(userInfo));
|
|
4608
4803
|
const userLocale = languages.find((lang) => lang?.id === userInfo?.locale);
|
|
4609
|
-
|
|
4804
|
+
env2.setLang(userLocale?.id);
|
|
4610
4805
|
i18n2.changeLanguage(userLocale?.id.split("_")[0]);
|
|
4611
4806
|
}
|
|
4612
4807
|
}, [dispatch, userInfoQuery.data]);
|
|
@@ -4732,9 +4927,9 @@ var useCompany = (accessToken) => {
|
|
|
4732
4927
|
(0, import_react9.useEffect)(() => {
|
|
4733
4928
|
if (current_company_id) {
|
|
4734
4929
|
const companyIDs = [current_company_id];
|
|
4735
|
-
const
|
|
4736
|
-
|
|
4737
|
-
|
|
4930
|
+
const env2 = (0, import_environment4.getEnv)();
|
|
4931
|
+
env2.setAllowCompanies([...companyIDs]);
|
|
4932
|
+
env2.setCompanies(companyIDs);
|
|
4738
4933
|
}
|
|
4739
4934
|
}, [current_company_id]);
|
|
4740
4935
|
const getCompanyInfo = (0, import_hooks8.useGetCompanyInfo)();
|
|
@@ -4747,8 +4942,8 @@ var useCompany = (accessToken) => {
|
|
|
4747
4942
|
if (companyInfo.data) {
|
|
4748
4943
|
const companyInfoData = companyInfo.data;
|
|
4749
4944
|
if (companyInfoData?.length) {
|
|
4750
|
-
const
|
|
4751
|
-
|
|
4945
|
+
const env2 = (0, import_environment4.getEnv)();
|
|
4946
|
+
env2.setDefaultCompany(companyInfoData[0]);
|
|
4752
4947
|
}
|
|
4753
4948
|
}
|
|
4754
4949
|
}, [companyInfo.data]);
|
|
@@ -4873,17 +5068,10 @@ function useDebounce(value, delay) {
|
|
|
4873
5068
|
}
|
|
4874
5069
|
|
|
4875
5070
|
// src/hooks.ts
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
// src/index.ts
|
|
4879
|
-
__reExport(index_exports, hooks_exports, module.exports);
|
|
5071
|
+
var import_hooks10 = require("@fctc/interface-logic/hooks");
|
|
4880
5072
|
|
|
4881
5073
|
// src/config.ts
|
|
4882
|
-
var
|
|
4883
|
-
__reExport(config_exports, require("@fctc/interface-logic/configs"));
|
|
4884
|
-
|
|
4885
|
-
// src/index.ts
|
|
4886
|
-
__reExport(index_exports, config_exports, module.exports);
|
|
5074
|
+
var import_configs = require("@fctc/interface-logic/configs");
|
|
4887
5075
|
|
|
4888
5076
|
// src/icons/eye-icon.tsx
|
|
4889
5077
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -4994,10 +5182,10 @@ var CloseIcon = ({ className = "" }) => {
|
|
|
4994
5182
|
// src/widget/basic/status-dropdown-field/controller.ts
|
|
4995
5183
|
var import_react13 = require("react");
|
|
4996
5184
|
var import_environment5 = require("@fctc/interface-logic/environment");
|
|
4997
|
-
var
|
|
5185
|
+
var import_hooks11 = require("@fctc/interface-logic/hooks");
|
|
4998
5186
|
var statusDropdownController = (props) => {
|
|
4999
5187
|
const { selection, isForm, id, model, name, state, onRefetch } = props;
|
|
5000
|
-
const
|
|
5188
|
+
const env2 = (0, import_environment5.getEnv)();
|
|
5001
5189
|
const colors = {
|
|
5002
5190
|
normal: "bg-[#e9ecef]",
|
|
5003
5191
|
done: "bg-primary",
|
|
@@ -5016,7 +5204,7 @@ var statusDropdownController = (props) => {
|
|
|
5016
5204
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
5017
5205
|
};
|
|
5018
5206
|
}, []);
|
|
5019
|
-
const { mutate: onSave } = (0,
|
|
5207
|
+
const { mutate: onSave } = (0, import_hooks11.useSave)();
|
|
5020
5208
|
const handleClick = async (status) => {
|
|
5021
5209
|
setIsOpen(!isOpen);
|
|
5022
5210
|
onSave(
|
|
@@ -5024,7 +5212,7 @@ var statusDropdownController = (props) => {
|
|
|
5024
5212
|
ids: id ? [id] : [],
|
|
5025
5213
|
model: model ?? "",
|
|
5026
5214
|
data: { [name ?? ""]: status },
|
|
5027
|
-
context:
|
|
5215
|
+
context: env2.context
|
|
5028
5216
|
},
|
|
5029
5217
|
{
|
|
5030
5218
|
onSuccess: () => {
|
|
@@ -5047,7 +5235,7 @@ var statusDropdownController = (props) => {
|
|
|
5047
5235
|
|
|
5048
5236
|
// src/widget/basic/many2one-field/controller.ts
|
|
5049
5237
|
var import_react14 = require("react");
|
|
5050
|
-
var
|
|
5238
|
+
var import_hooks12 = require("@fctc/interface-logic/hooks");
|
|
5051
5239
|
var import_store6 = require("@fctc/interface-logic/store");
|
|
5052
5240
|
var import_utils3 = require("@fctc/interface-logic/utils");
|
|
5053
5241
|
var many2oneFieldController = (props) => {
|
|
@@ -5104,7 +5292,7 @@ var many2oneFieldController = (props) => {
|
|
|
5104
5292
|
data: dataOfSelection,
|
|
5105
5293
|
// refetch,
|
|
5106
5294
|
isFetching
|
|
5107
|
-
} = (0,
|
|
5295
|
+
} = (0, import_hooks12.useGetSelection)({
|
|
5108
5296
|
data,
|
|
5109
5297
|
queryKey,
|
|
5110
5298
|
enabled: false
|
|
@@ -5220,19 +5408,19 @@ var many2oneFieldController = (props) => {
|
|
|
5220
5408
|
|
|
5221
5409
|
// src/widget/basic/many2one-button-field/controller.ts
|
|
5222
5410
|
var import_environment6 = require("@fctc/interface-logic/environment");
|
|
5223
|
-
var
|
|
5411
|
+
var import_hooks13 = require("@fctc/interface-logic/hooks");
|
|
5224
5412
|
var import_utils4 = require("@fctc/interface-logic/utils");
|
|
5225
5413
|
var many2oneButtonController = (props) => {
|
|
5226
5414
|
const { domain, methods, relation } = props;
|
|
5227
5415
|
const actionDataString = sessionStorage.getItem("actionData");
|
|
5228
|
-
const
|
|
5416
|
+
const env2 = (0, import_environment6.getEnv)();
|
|
5229
5417
|
const domainObject = (0, import_utils4.evalJSONDomain)(domain, methods?.getValues() || {});
|
|
5230
5418
|
const actionData = actionDataString && actionDataString !== "undefined" ? JSON.parse(actionDataString) : {};
|
|
5231
|
-
const { data: dataOfSelection } = (0,
|
|
5419
|
+
const { data: dataOfSelection } = (0, import_hooks13.useGetSelection)({
|
|
5232
5420
|
data: {
|
|
5233
5421
|
model: relation ?? "",
|
|
5234
5422
|
domain: domainObject,
|
|
5235
|
-
context: { ...
|
|
5423
|
+
context: { ...env2.context, ...(0, import_utils4.evalJSONContext)(actionData?.context) }
|
|
5236
5424
|
},
|
|
5237
5425
|
queryKey: [`data_${relation}`, domainObject]
|
|
5238
5426
|
});
|
|
@@ -6202,10 +6390,10 @@ var i18n_default = import_i18next.default;
|
|
|
6202
6390
|
|
|
6203
6391
|
// src/widget/advance/table/table-group/controller.ts
|
|
6204
6392
|
var import_environment7 = require("@fctc/interface-logic/environment");
|
|
6205
|
-
var
|
|
6393
|
+
var import_hooks14 = require("@fctc/interface-logic/hooks");
|
|
6206
6394
|
var import_store10 = require("@fctc/interface-logic/store");
|
|
6207
6395
|
var tableGroupController = (props) => {
|
|
6208
|
-
const
|
|
6396
|
+
const env2 = (0, import_environment7.getEnv)();
|
|
6209
6397
|
const {
|
|
6210
6398
|
rows,
|
|
6211
6399
|
columns,
|
|
@@ -6228,7 +6416,7 @@ var tableGroupController = (props) => {
|
|
|
6228
6416
|
const { groupByDomain, selectedTags } = (0, import_store10.useAppSelector)(import_store10.selectSearch);
|
|
6229
6417
|
const { selectedRowKeys } = (0, import_store10.useAppSelector)(import_store10.selectList);
|
|
6230
6418
|
const appDispatch = (0, import_store10.useAppDispatch)();
|
|
6231
|
-
const { toDataJS } = (0,
|
|
6419
|
+
const { toDataJS } = (0, import_hooks14.useOdooDataTransform)();
|
|
6232
6420
|
const initVal = toDataJS(row, viewData, model);
|
|
6233
6421
|
const [isShowGroup, setIsShowGroup] = (0, import_react17.useState)(false);
|
|
6234
6422
|
const [colEmptyGroup, setColEmptyGroup] = (0, import_react17.useState)({
|
|
@@ -6275,7 +6463,7 @@ var tableGroupController = (props) => {
|
|
|
6275
6463
|
isPlaceholderData,
|
|
6276
6464
|
isLoading,
|
|
6277
6465
|
isFetching
|
|
6278
|
-
} = (0,
|
|
6466
|
+
} = (0, import_hooks14.useGetListData)(listDataProps, queryKey, enabled);
|
|
6279
6467
|
const {
|
|
6280
6468
|
columns: columnsGroup,
|
|
6281
6469
|
rows: rowsGroup,
|
|
@@ -6285,7 +6473,7 @@ var tableGroupController = (props) => {
|
|
|
6285
6473
|
fields: viewData?.views?.list?.fields,
|
|
6286
6474
|
records: dataResponse?.records ?? dataResponse?.groups,
|
|
6287
6475
|
dataModel: viewData?.models?.[model],
|
|
6288
|
-
context:
|
|
6476
|
+
context: env2.context,
|
|
6289
6477
|
typeTable: dataResponse?.groups ? "group" : "list"
|
|
6290
6478
|
}
|
|
6291
6479
|
});
|
|
@@ -6375,9 +6563,9 @@ var many2manyFieldController = (props) => {
|
|
|
6375
6563
|
tab,
|
|
6376
6564
|
model,
|
|
6377
6565
|
aid,
|
|
6378
|
-
setSelectedRowKeys:
|
|
6566
|
+
setSelectedRowKeys: setSelectedRowKeys5,
|
|
6379
6567
|
fields,
|
|
6380
|
-
setFields,
|
|
6568
|
+
setFields: setFields2,
|
|
6381
6569
|
groupByDomain,
|
|
6382
6570
|
page,
|
|
6383
6571
|
options,
|
|
@@ -6386,10 +6574,10 @@ var many2manyFieldController = (props) => {
|
|
|
6386
6574
|
const appDispatch = (0, import_store11.useAppDispatch)();
|
|
6387
6575
|
const actionData = sessionStorageUtils.getActionData();
|
|
6388
6576
|
const [debouncedPage] = useDebounce(page, 500);
|
|
6389
|
-
const [order,
|
|
6577
|
+
const [order, setOrder2] = (0, import_react18.useState)();
|
|
6390
6578
|
const [isLoadedData, setIsLoadedData] = (0, import_react18.useState)(false);
|
|
6391
6579
|
const [domainMany2Many, setDomainMany2Many] = (0, import_react18.useState)(domain);
|
|
6392
|
-
const
|
|
6580
|
+
const env2 = (0, import_environment8.getEnv)();
|
|
6393
6581
|
const { selectedTags } = (0, import_store11.useAppSelector)(import_store11.selectSearch);
|
|
6394
6582
|
const viewParams = {
|
|
6395
6583
|
model: relation,
|
|
@@ -6399,7 +6587,7 @@ var many2manyFieldController = (props) => {
|
|
|
6399
6587
|
],
|
|
6400
6588
|
context
|
|
6401
6589
|
};
|
|
6402
|
-
const { data: viewResponse, isFetched: isViewReponseFetched } = (0,
|
|
6590
|
+
const { data: viewResponse, isFetched: isViewReponseFetched } = (0, import_hooks10.useGetView)(
|
|
6403
6591
|
viewParams,
|
|
6404
6592
|
actionData
|
|
6405
6593
|
);
|
|
@@ -6415,7 +6603,7 @@ var many2manyFieldController = (props) => {
|
|
|
6415
6603
|
}),
|
|
6416
6604
|
[model, viewResponse]
|
|
6417
6605
|
);
|
|
6418
|
-
const initModel = (0,
|
|
6606
|
+
const initModel = (0, import_hooks10.useModel)();
|
|
6419
6607
|
const modelInstance = (0, import_react18.useMemo)(() => {
|
|
6420
6608
|
if (viewResponse) {
|
|
6421
6609
|
return initModel.initModel(baseModel);
|
|
@@ -6440,7 +6628,7 @@ var many2manyFieldController = (props) => {
|
|
|
6440
6628
|
...field
|
|
6441
6629
|
}));
|
|
6442
6630
|
if (!fields?.[`${aid}_${relation}_popupmany2many`] && modalData) {
|
|
6443
|
-
|
|
6631
|
+
setFields2({
|
|
6444
6632
|
...fields,
|
|
6445
6633
|
[`${aid}_${relation}_popupmany2many`]: modalData
|
|
6446
6634
|
});
|
|
@@ -6475,19 +6663,19 @@ var many2manyFieldController = (props) => {
|
|
|
6475
6663
|
isLoading: isDataLoading,
|
|
6476
6664
|
isFetched: isDataResponseFetched,
|
|
6477
6665
|
isPlaceholderData
|
|
6478
|
-
} = (0,
|
|
6666
|
+
} = (0, import_hooks10.useGetListData)(data, queryKey, enabled);
|
|
6479
6667
|
(0, import_react18.useEffect)(() => {
|
|
6480
6668
|
if (viewResponse) {
|
|
6481
6669
|
fetchData();
|
|
6482
6670
|
}
|
|
6483
6671
|
return () => {
|
|
6484
6672
|
appDispatch((0, import_store11.setGroupByDomain)(null));
|
|
6485
|
-
|
|
6673
|
+
setFields2((prevFields) => ({
|
|
6486
6674
|
...prevFields,
|
|
6487
6675
|
[`${aid}_${relation}_popupmany2many`]: null
|
|
6488
6676
|
}));
|
|
6489
6677
|
appDispatch((0, import_store11.setPage)(0));
|
|
6490
|
-
|
|
6678
|
+
setSelectedRowKeys5([]);
|
|
6491
6679
|
setDomainMany2Many(null);
|
|
6492
6680
|
setIsLoadedData(false);
|
|
6493
6681
|
};
|
|
@@ -6497,7 +6685,7 @@ var many2manyFieldController = (props) => {
|
|
|
6497
6685
|
fields: fields?.[`${aid}_${relation}_popupmany2many`] || viewResponse?.views?.list?.fields,
|
|
6498
6686
|
records: dataResponse?.records ?? dataResponse?.groups,
|
|
6499
6687
|
dataModel: viewResponse?.models?.[String(relation)],
|
|
6500
|
-
context: { ...
|
|
6688
|
+
context: { ...env2.context, ...context },
|
|
6501
6689
|
typeTable: dataResponse?.groups ? "group" : "list"
|
|
6502
6690
|
}
|
|
6503
6691
|
});
|
|
@@ -6510,7 +6698,7 @@ var many2manyFieldController = (props) => {
|
|
|
6510
6698
|
refetch,
|
|
6511
6699
|
data: dataFormViewResponse,
|
|
6512
6700
|
isSuccess
|
|
6513
|
-
} = (0,
|
|
6701
|
+
} = (0, import_hooks10.useGetFormView)({
|
|
6514
6702
|
data: dataFormView,
|
|
6515
6703
|
queryKey: [`form-view-action-${relation}`],
|
|
6516
6704
|
enabled: false
|
|
@@ -6540,7 +6728,7 @@ var many2manyFieldController = (props) => {
|
|
|
6540
6728
|
var import_react19 = require("react");
|
|
6541
6729
|
var import_constants3 = require("@fctc/interface-logic/constants");
|
|
6542
6730
|
var import_environment9 = require("@fctc/interface-logic/environment");
|
|
6543
|
-
var
|
|
6731
|
+
var import_hooks16 = require("@fctc/interface-logic/hooks");
|
|
6544
6732
|
var import_utils7 = require("@fctc/interface-logic/utils");
|
|
6545
6733
|
var many2manyTagsController = (props) => {
|
|
6546
6734
|
const {
|
|
@@ -6552,7 +6740,7 @@ var many2manyTagsController = (props) => {
|
|
|
6552
6740
|
placeholderNoOption
|
|
6553
6741
|
} = props;
|
|
6554
6742
|
const isUser = relation === "res.users" || relation === "res.partner";
|
|
6555
|
-
const
|
|
6743
|
+
const env2 = (0, import_environment9.getEnv)();
|
|
6556
6744
|
const addtionalFields = optionsFields ? (0, import_utils7.evalJSONContext)(optionsFields) : null;
|
|
6557
6745
|
const domainObject = (0, import_react19.useMemo)(
|
|
6558
6746
|
() => (0, import_utils7.evalJSONDomain)(domain, JSON.parse(JSON.stringify(formValues || {}))),
|
|
@@ -6569,9 +6757,9 @@ var many2manyTagsController = (props) => {
|
|
|
6569
6757
|
...widget && import_constants3.WIDGETCOLOR[widget] && addtionalFields?.color_field ? { color: {} } : {}
|
|
6570
6758
|
},
|
|
6571
6759
|
enabled: true,
|
|
6572
|
-
context:
|
|
6760
|
+
context: env2.context
|
|
6573
6761
|
};
|
|
6574
|
-
const { data: dataOfSelection } = (0,
|
|
6762
|
+
const { data: dataOfSelection } = (0, import_hooks16.useGetSelection)({
|
|
6575
6763
|
data,
|
|
6576
6764
|
queryKey: [`data_${relation}`, domainObject]
|
|
6577
6765
|
});
|
|
@@ -6598,7 +6786,7 @@ var many2manyTagsController = (props) => {
|
|
|
6598
6786
|
|
|
6599
6787
|
// src/widget/basic/status-bar-field/controller.ts
|
|
6600
6788
|
var import_react20 = require("react");
|
|
6601
|
-
var
|
|
6789
|
+
var import_hooks17 = require("@fctc/interface-logic/hooks");
|
|
6602
6790
|
var import_store12 = require("@fctc/interface-logic/store");
|
|
6603
6791
|
var import_utils8 = require("@fctc/interface-logic/utils");
|
|
6604
6792
|
var durationController = (props) => {
|
|
@@ -6634,8 +6822,8 @@ var durationController = (props) => {
|
|
|
6634
6822
|
},
|
|
6635
6823
|
sort: ""
|
|
6636
6824
|
};
|
|
6637
|
-
const { data: dataResponse } = (0,
|
|
6638
|
-
const { mutate: fetchChangeStatus } = (0,
|
|
6825
|
+
const { data: dataResponse } = (0, import_hooks17.useGetListData)(listDataProps, queryKey);
|
|
6826
|
+
const { mutate: fetchChangeStatus } = (0, import_hooks17.useChangeStatus)();
|
|
6639
6827
|
const handleClick = async (stage_id) => {
|
|
6640
6828
|
setDisabled(true);
|
|
6641
6829
|
if (stage_id) {
|
|
@@ -6671,7 +6859,7 @@ var durationController = (props) => {
|
|
|
6671
6859
|
};
|
|
6672
6860
|
|
|
6673
6861
|
// src/widget/basic/priority-field/controller.ts
|
|
6674
|
-
var
|
|
6862
|
+
var import_hooks18 = require("@fctc/interface-logic/hooks");
|
|
6675
6863
|
var import_utils9 = require("@fctc/interface-logic/utils");
|
|
6676
6864
|
var priorityFieldController = (props) => {
|
|
6677
6865
|
const {
|
|
@@ -6691,7 +6879,7 @@ var priorityFieldController = (props) => {
|
|
|
6691
6879
|
const contextObject = { ...context, ..._context };
|
|
6692
6880
|
const defaultPriority = parseInt(value) + 1;
|
|
6693
6881
|
const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
|
|
6694
|
-
const { mutateAsync: fetchSave } = (0,
|
|
6882
|
+
const { mutateAsync: fetchSave } = (0, import_hooks18.useSave)();
|
|
6695
6883
|
const savePriorities = async ({
|
|
6696
6884
|
value: value2,
|
|
6697
6885
|
resetPriority
|
|
@@ -7014,7 +7202,7 @@ var dateFieldController = (props) => {
|
|
|
7014
7202
|
}
|
|
7015
7203
|
return arr;
|
|
7016
7204
|
};
|
|
7017
|
-
const
|
|
7205
|
+
const formatDate2 = showTime ? "DD/MM/YYYY HH:mm:ss" : "DD/MM/YYYY";
|
|
7018
7206
|
const formatDateParse = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
7019
7207
|
const fieldForCustom = widget === "datetime_custom" || widget === "date_custom";
|
|
7020
7208
|
const minNowValue = fieldForCustom && (min === DURATIONS.NOW ? true : typeof min === "string" && Object.keys(formValues)?.includes(min) && formValues?.[min] ? (0, import_moment.default)(formValues?.[min], formatDateParse).add(7, "hours") : null);
|
|
@@ -7089,7 +7277,7 @@ var dateFieldController = (props) => {
|
|
|
7089
7277
|
return false;
|
|
7090
7278
|
};
|
|
7091
7279
|
return {
|
|
7092
|
-
formatDate,
|
|
7280
|
+
formatDate: formatDate2,
|
|
7093
7281
|
formatDateParse,
|
|
7094
7282
|
range,
|
|
7095
7283
|
years,
|
|
@@ -7122,15 +7310,15 @@ var copyLinkButtonController = (props) => {
|
|
|
7122
7310
|
|
|
7123
7311
|
// src/widget/basic/color-field/color-controller.ts
|
|
7124
7312
|
var import_environment10 = require("@fctc/interface-logic/environment");
|
|
7125
|
-
var
|
|
7313
|
+
var import_hooks19 = require("@fctc/interface-logic/hooks");
|
|
7126
7314
|
var import_utils12 = require("@fctc/interface-logic/utils");
|
|
7127
7315
|
var colorFieldController = (props) => {
|
|
7128
7316
|
const { value, isForm, name, formValues, idForm, model, actionData } = props;
|
|
7129
|
-
const
|
|
7317
|
+
const env2 = (0, import_environment10.getEnv)();
|
|
7130
7318
|
const _context = { ...(0, import_utils12.evalJSONContext)(actionData?.context) || {} };
|
|
7131
|
-
const contextObject = { ...
|
|
7319
|
+
const contextObject = { ...env2.context, ..._context };
|
|
7132
7320
|
const idDefault = isForm ? idForm : formValues?.id;
|
|
7133
|
-
const { mutate: onSave } = (0,
|
|
7321
|
+
const { mutate: onSave } = (0, import_hooks19.useSave)();
|
|
7134
7322
|
const savePickColor = async (colorObject) => {
|
|
7135
7323
|
const { id } = colorObject;
|
|
7136
7324
|
if (value === id) return;
|
|
@@ -7211,7 +7399,7 @@ var binaryFieldController = (props) => {
|
|
|
7211
7399
|
const isBlobUrl = (url) => {
|
|
7212
7400
|
return /^blob:/.test(url);
|
|
7213
7401
|
};
|
|
7214
|
-
const
|
|
7402
|
+
const checkIsImageLink2 = (url) => {
|
|
7215
7403
|
const imageExtensions = /\.(jpg|jpeg|png|gif|bmp|webp|svg|tiff|ico)$/i;
|
|
7216
7404
|
return imageExtensions.test(url) || (0, import_utils13.isBase64Image)(url) || isBlobUrl(url);
|
|
7217
7405
|
};
|
|
@@ -7247,116 +7435,296 @@ var binaryFieldController = (props) => {
|
|
|
7247
7435
|
binaryRef,
|
|
7248
7436
|
handleImageChange,
|
|
7249
7437
|
handleRemoveImage,
|
|
7250
|
-
checkIsImageLink,
|
|
7438
|
+
checkIsImageLink: checkIsImageLink2,
|
|
7251
7439
|
getImageBase64WithMimeType
|
|
7252
7440
|
};
|
|
7253
7441
|
};
|
|
7254
7442
|
|
|
7255
7443
|
// src/utils.ts
|
|
7256
|
-
var
|
|
7257
|
-
__export(utils_exports, {
|
|
7258
|
-
API_APP_URL: () => API_APP_URL,
|
|
7259
|
-
API_PRESCHOOL_URL: () => API_PRESCHOOL_URL,
|
|
7260
|
-
STORAGES: () => STORAGES,
|
|
7261
|
-
combineContexts: () => combineContexts,
|
|
7262
|
-
convertFieldsToArray: () => convertFieldsToArray,
|
|
7263
|
-
countSum: () => countSum,
|
|
7264
|
-
getDateRange: () => getDateRange,
|
|
7265
|
-
languages: () => languages,
|
|
7266
|
-
mergeButtons: () => mergeButtons,
|
|
7267
|
-
setStorageItemAsync: () => setStorageItemAsync,
|
|
7268
|
-
useGetRowIds: () => useGetRowIds,
|
|
7269
|
-
useStorageState: () => useStorageState
|
|
7270
|
-
});
|
|
7271
|
-
__reExport(utils_exports, require("@fctc/interface-logic/utils"));
|
|
7272
|
-
|
|
7273
|
-
// src/index.ts
|
|
7274
|
-
__reExport(index_exports, utils_exports, module.exports);
|
|
7444
|
+
var import_utils15 = require("@fctc/interface-logic/utils");
|
|
7275
7445
|
|
|
7276
7446
|
// src/store.ts
|
|
7277
7447
|
var import_store13 = require("@fctc/interface-logic/store");
|
|
7278
7448
|
|
|
7279
7449
|
// src/constants.ts
|
|
7280
|
-
var
|
|
7281
|
-
__reExport(constants_exports, require("@fctc/interface-logic/constants"));
|
|
7282
|
-
|
|
7283
|
-
// src/index.ts
|
|
7284
|
-
__reExport(index_exports, constants_exports, module.exports);
|
|
7450
|
+
var import_constants5 = require("@fctc/interface-logic/constants");
|
|
7285
7451
|
|
|
7286
7452
|
// src/environment.ts
|
|
7287
|
-
var
|
|
7288
|
-
__reExport(environment_exports, require("@fctc/interface-logic/environment"));
|
|
7289
|
-
|
|
7290
|
-
// src/index.ts
|
|
7291
|
-
__reExport(index_exports, environment_exports, module.exports);
|
|
7453
|
+
var import_environment11 = require("@fctc/interface-logic/environment");
|
|
7292
7454
|
|
|
7293
7455
|
// src/provider.ts
|
|
7294
|
-
var
|
|
7295
|
-
__reExport(provider_exports, require("@fctc/interface-logic/provider"));
|
|
7296
|
-
|
|
7297
|
-
// src/index.ts
|
|
7298
|
-
__reExport(index_exports, provider_exports, module.exports);
|
|
7456
|
+
var import_provider = require("@fctc/interface-logic/provider");
|
|
7299
7457
|
|
|
7300
7458
|
// src/services.ts
|
|
7301
|
-
var
|
|
7302
|
-
__reExport(services_exports, require("@fctc/interface-logic/services"));
|
|
7303
|
-
|
|
7304
|
-
// src/index.ts
|
|
7305
|
-
__reExport(index_exports, services_exports, module.exports);
|
|
7459
|
+
var import_services = require("@fctc/interface-logic/services");
|
|
7306
7460
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7307
7461
|
0 && (module.exports = {
|
|
7308
7462
|
API_APP_URL,
|
|
7309
7463
|
API_PRESCHOOL_URL,
|
|
7464
|
+
ActionService,
|
|
7465
|
+
AppDispatch,
|
|
7310
7466
|
AppProvider,
|
|
7467
|
+
AuthService,
|
|
7468
|
+
BreadcrumbsState,
|
|
7311
7469
|
CloseIcon,
|
|
7470
|
+
CompanyService,
|
|
7471
|
+
ComponentType,
|
|
7472
|
+
EnvStore,
|
|
7473
|
+
ExcelService,
|
|
7474
|
+
ExcelState,
|
|
7312
7475
|
EyeIcon,
|
|
7476
|
+
FieldTypeConstants,
|
|
7477
|
+
FormService,
|
|
7478
|
+
FormState,
|
|
7479
|
+
KanbanService,
|
|
7480
|
+
KeyConstants,
|
|
7481
|
+
ListState,
|
|
7313
7482
|
LoadingIcon,
|
|
7483
|
+
LoginStateType,
|
|
7484
|
+
MainProvider,
|
|
7485
|
+
MethodConstants,
|
|
7486
|
+
MethodType,
|
|
7487
|
+
ModelConstants,
|
|
7488
|
+
ModelService,
|
|
7489
|
+
NavbarStateType,
|
|
7490
|
+
ProfileStateType,
|
|
7491
|
+
ReactQueryProvider,
|
|
7492
|
+
RootState,
|
|
7314
7493
|
STORAGES,
|
|
7494
|
+
SearchState,
|
|
7495
|
+
SearchType,
|
|
7496
|
+
UriConstants,
|
|
7497
|
+
UserInfor,
|
|
7498
|
+
UserService,
|
|
7499
|
+
VersionGate,
|
|
7500
|
+
ViewDataStore,
|
|
7501
|
+
ViewService,
|
|
7502
|
+
WIDGETAVATAR,
|
|
7503
|
+
WIDGETCOLOR,
|
|
7504
|
+
WIDGETCURRENCY,
|
|
7505
|
+
WIDGETNOSTRING,
|
|
7506
|
+
WIDGETSTATUS,
|
|
7507
|
+
WesapError,
|
|
7508
|
+
axiosClient,
|
|
7315
7509
|
binaryFieldController,
|
|
7510
|
+
breadcrumbsSlice,
|
|
7511
|
+
checkIsImageLink,
|
|
7512
|
+
clearSearchMap,
|
|
7316
7513
|
colorFieldController,
|
|
7317
7514
|
combineContexts,
|
|
7318
7515
|
convertFieldsToArray,
|
|
7516
|
+
convertFloatToTime,
|
|
7517
|
+
convertTimeToFloat,
|
|
7319
7518
|
copyLinkButtonController,
|
|
7519
|
+
copyTextToClipboard,
|
|
7320
7520
|
countSum,
|
|
7321
7521
|
dateFieldController,
|
|
7522
|
+
domainHelper,
|
|
7322
7523
|
downLoadBinaryController,
|
|
7323
7524
|
downloadFileController,
|
|
7324
7525
|
durationController,
|
|
7526
|
+
env,
|
|
7527
|
+
envSlice,
|
|
7528
|
+
envStore,
|
|
7529
|
+
evalJSONContext,
|
|
7530
|
+
evalJSONDomain,
|
|
7531
|
+
excelSlice,
|
|
7532
|
+
filterFieldDirty,
|
|
7325
7533
|
floatController,
|
|
7326
7534
|
floatTimeFiledController,
|
|
7535
|
+
formSlice,
|
|
7536
|
+
formatCurrency,
|
|
7537
|
+
formatDate,
|
|
7538
|
+
formatFileSize,
|
|
7539
|
+
formatSortingString,
|
|
7540
|
+
formatUrlPath,
|
|
7327
7541
|
getDateRange,
|
|
7542
|
+
getEnv,
|
|
7543
|
+
getFieldsOnChange,
|
|
7544
|
+
getOffSet,
|
|
7545
|
+
getSubdomain,
|
|
7546
|
+
handleError,
|
|
7547
|
+
headerSlice,
|
|
7548
|
+
initEnv,
|
|
7549
|
+
isBase64File,
|
|
7550
|
+
isBase64Image,
|
|
7551
|
+
isObjectEmpty,
|
|
7328
7552
|
languages,
|
|
7553
|
+
listSlice,
|
|
7554
|
+
loginSlice,
|
|
7329
7555
|
many2manyFieldController,
|
|
7330
7556
|
many2manyTagsController,
|
|
7331
7557
|
many2oneButtonController,
|
|
7332
7558
|
many2oneFieldController,
|
|
7333
7559
|
mergeButtons,
|
|
7560
|
+
mergeObjects,
|
|
7561
|
+
navbarSlice,
|
|
7334
7562
|
priorityFieldController,
|
|
7563
|
+
profileSlice,
|
|
7564
|
+
removeKeyFromSearchMap,
|
|
7565
|
+
removeUndefinedFields,
|
|
7566
|
+
resequence,
|
|
7567
|
+
searchSlice,
|
|
7568
|
+
selectBreadCrumbs,
|
|
7335
7569
|
selectEnv,
|
|
7570
|
+
selectExcel,
|
|
7571
|
+
selectForm,
|
|
7572
|
+
selectHeader,
|
|
7573
|
+
selectList,
|
|
7574
|
+
selectLogin,
|
|
7575
|
+
selectNavbar,
|
|
7336
7576
|
selectProfile,
|
|
7577
|
+
selectSearch,
|
|
7578
|
+
selectSearchMap,
|
|
7579
|
+
setAllowCompanies,
|
|
7580
|
+
setAllowedCompanyIds,
|
|
7581
|
+
setBreadCrumbs,
|
|
7582
|
+
setCompanies,
|
|
7583
|
+
setConfig,
|
|
7584
|
+
setDataParse,
|
|
7337
7585
|
setDataUser,
|
|
7586
|
+
setDb,
|
|
7587
|
+
setDefaultCompany,
|
|
7588
|
+
setDomainTable,
|
|
7589
|
+
setEnv,
|
|
7590
|
+
setEnvFile,
|
|
7591
|
+
setErrorData,
|
|
7592
|
+
setFieldTranslate,
|
|
7593
|
+
setFields,
|
|
7594
|
+
setFilterBy,
|
|
7595
|
+
setFirstDomain,
|
|
7596
|
+
setForgotPasswordUrl,
|
|
7597
|
+
setFormSubmitComponent,
|
|
7598
|
+
setGroupBy,
|
|
7599
|
+
setGroupByDomain,
|
|
7600
|
+
setHeader,
|
|
7601
|
+
setHoveredIndexSearchList,
|
|
7602
|
+
setIdFile,
|
|
7603
|
+
setIndexRowTableModal,
|
|
7604
|
+
setIsFileLoaded,
|
|
7605
|
+
setIsShowModalTranslate,
|
|
7606
|
+
setIsShowingModalDetail,
|
|
7607
|
+
setIsUpdateTableModal,
|
|
7608
|
+
setLang,
|
|
7609
|
+
setListSubject,
|
|
7610
|
+
setLoadingImport,
|
|
7611
|
+
setMenuFocus,
|
|
7612
|
+
setMenuFocusAction,
|
|
7613
|
+
setMenuList,
|
|
7614
|
+
setNavbarWidth,
|
|
7615
|
+
setOrder,
|
|
7616
|
+
setPage,
|
|
7617
|
+
setPageLimit,
|
|
7618
|
+
setProfile,
|
|
7619
|
+
setRedirectTo,
|
|
7620
|
+
setSearchBy,
|
|
7621
|
+
setSearchMap,
|
|
7622
|
+
setSearchString,
|
|
7623
|
+
setSelectedFile,
|
|
7624
|
+
setSelectedRadioKey,
|
|
7625
|
+
setSelectedRowKeys,
|
|
7626
|
+
setSelectedTags,
|
|
7338
7627
|
setStorageItemAsync,
|
|
7628
|
+
setTransferDetail,
|
|
7629
|
+
setUid,
|
|
7630
|
+
setUser,
|
|
7631
|
+
setViewDataStore,
|
|
7339
7632
|
statusDropdownController,
|
|
7633
|
+
stringToColor,
|
|
7340
7634
|
tableBodyController,
|
|
7341
7635
|
tableController,
|
|
7342
7636
|
tableGroupController,
|
|
7343
7637
|
tableHeadController,
|
|
7638
|
+
toQueryString,
|
|
7639
|
+
updateSearchMap,
|
|
7640
|
+
updateTokenParamInOriginalRequest,
|
|
7344
7641
|
useAppDispatch,
|
|
7345
7642
|
useAppProvider,
|
|
7346
7643
|
useAppSelector,
|
|
7347
7644
|
useAuth,
|
|
7645
|
+
useButton,
|
|
7348
7646
|
useCallAction,
|
|
7647
|
+
useChangeStatus,
|
|
7349
7648
|
useClickOutside,
|
|
7350
7649
|
useConfig,
|
|
7351
7650
|
useDebounce,
|
|
7651
|
+
useDelete,
|
|
7652
|
+
useDeleteComment,
|
|
7352
7653
|
useDetail,
|
|
7654
|
+
useDuplicateRecord,
|
|
7655
|
+
useExecuteImport,
|
|
7656
|
+
useExportExcel,
|
|
7657
|
+
useField,
|
|
7658
|
+
useForgotPassword,
|
|
7659
|
+
useForgotPasswordSSO,
|
|
7660
|
+
useGet2FAMethods,
|
|
7661
|
+
useGetAccessByCode,
|
|
7662
|
+
useGetActionDetail,
|
|
7663
|
+
useGetAll,
|
|
7664
|
+
useGetCalendar,
|
|
7665
|
+
useGetComment,
|
|
7666
|
+
useGetCompanyInfo,
|
|
7667
|
+
useGetConversionRate,
|
|
7668
|
+
useGetCurrency,
|
|
7669
|
+
useGetCurrentCompany,
|
|
7670
|
+
useGetDetail,
|
|
7671
|
+
useGetFieldExport,
|
|
7672
|
+
useGetFieldOnChange,
|
|
7673
|
+
useGetFieldsViewSecurity,
|
|
7674
|
+
useGetFileExcel,
|
|
7675
|
+
useGetFormView,
|
|
7676
|
+
useGetGroups,
|
|
7677
|
+
useGetImage,
|
|
7678
|
+
useGetListCompany,
|
|
7679
|
+
useGetListData,
|
|
7680
|
+
useGetListMyBankAccount,
|
|
7681
|
+
useGetMenu,
|
|
7682
|
+
useGetPrintReport,
|
|
7683
|
+
useGetProGressBar,
|
|
7684
|
+
useGetProfile,
|
|
7685
|
+
useGetProvider,
|
|
7686
|
+
useGetResequence,
|
|
7353
7687
|
useGetRowIds,
|
|
7688
|
+
useGetSelection,
|
|
7689
|
+
useGetUser,
|
|
7690
|
+
useGetView,
|
|
7691
|
+
useGrantAccess,
|
|
7692
|
+
useIsValidToken,
|
|
7354
7693
|
useListData,
|
|
7694
|
+
useLoadAction,
|
|
7695
|
+
useLoadMessage,
|
|
7696
|
+
useLoginCredential,
|
|
7697
|
+
useLoginSocial,
|
|
7698
|
+
useLogout,
|
|
7355
7699
|
useMenu,
|
|
7700
|
+
useModel,
|
|
7701
|
+
useOdooDataTransform,
|
|
7702
|
+
useOnChangeForm,
|
|
7703
|
+
useParsePreview,
|
|
7704
|
+
usePrint,
|
|
7356
7705
|
useProfile,
|
|
7706
|
+
useRemoveRow,
|
|
7707
|
+
useRemoveTotpSetup,
|
|
7708
|
+
useRequestSetupTotp,
|
|
7709
|
+
useResetPassword,
|
|
7710
|
+
useResetPasswordSSO,
|
|
7711
|
+
useRunAction,
|
|
7712
|
+
useSave,
|
|
7713
|
+
useSendComment,
|
|
7714
|
+
useSettingsWebRead2fa,
|
|
7715
|
+
useSignInSSO,
|
|
7357
7716
|
useStorageState,
|
|
7717
|
+
useSwitchLocale,
|
|
7718
|
+
useTabModel,
|
|
7719
|
+
useUpdatePassword,
|
|
7720
|
+
useUploadFile,
|
|
7721
|
+
useUploadIdFile,
|
|
7722
|
+
useUploadImage,
|
|
7358
7723
|
useUser,
|
|
7359
|
-
|
|
7724
|
+
useVerify2FA,
|
|
7725
|
+
useVerifyTotp,
|
|
7726
|
+
useViewV2,
|
|
7727
|
+
validateAndParseDate
|
|
7360
7728
|
});
|
|
7361
7729
|
/*! Bundled license information:
|
|
7362
7730
|
|