@fctc/widget-logic 1.3.6 → 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 +506 -130
- package/dist/index.mjs +513 -194
- 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 +182 -2
- package/dist/store.mjs +184 -2
- 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,73 +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,
|
|
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,
|
|
4065
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,
|
|
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,
|
|
4066
4202
|
setStorageItemAsync: () => setStorageItemAsync,
|
|
4203
|
+
setTransferDetail: () => import_store13.setTransferDetail,
|
|
4204
|
+
setUid: () => import_store13.setUid,
|
|
4205
|
+
setUser: () => import_store13.setUser,
|
|
4206
|
+
setViewDataStore: () => import_store13.setViewDataStore,
|
|
4067
4207
|
statusDropdownController: () => statusDropdownController,
|
|
4208
|
+
stringToColor: () => import_utils15.stringToColor,
|
|
4068
4209
|
tableBodyController: () => tableBodyController,
|
|
4069
4210
|
tableController: () => tableController,
|
|
4070
4211
|
tableGroupController: () => tableGroupController,
|
|
4071
4212
|
tableHeadController: () => tableHeadController,
|
|
4213
|
+
toQueryString: () => import_utils15.toQueryString,
|
|
4214
|
+
updateSearchMap: () => import_store13.updateSearchMap,
|
|
4215
|
+
updateTokenParamInOriginalRequest: () => import_utils15.updateTokenParamInOriginalRequest,
|
|
4216
|
+
useAppDispatch: () => import_store13.useAppDispatch,
|
|
4072
4217
|
useAppProvider: () => useAppProvider,
|
|
4218
|
+
useAppSelector: () => import_store13.useAppSelector,
|
|
4073
4219
|
useAuth: () => useAuth,
|
|
4220
|
+
useButton: () => import_hooks10.useButton,
|
|
4074
4221
|
useCallAction: () => useCallAction,
|
|
4222
|
+
useChangeStatus: () => import_hooks10.useChangeStatus,
|
|
4075
4223
|
useClickOutside: () => useClickOutside,
|
|
4076
4224
|
useConfig: () => useConfig,
|
|
4077
4225
|
useDebounce: () => useDebounce,
|
|
4226
|
+
useDelete: () => import_hooks10.useDelete,
|
|
4227
|
+
useDeleteComment: () => import_hooks10.useDeleteComment,
|
|
4078
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,
|
|
4079
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,
|
|
4080
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,
|
|
4081
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,
|
|
4082
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,
|
|
4083
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,
|
|
4084
4298
|
useUser: () => useUser,
|
|
4085
|
-
|
|
4299
|
+
useVerify2FA: () => import_hooks10.useVerify2FA,
|
|
4300
|
+
useVerifyTotp: () => import_hooks10.useVerifyTotp,
|
|
4301
|
+
useViewV2: () => useViewV2,
|
|
4302
|
+
validateAndParseDate: () => import_utils15.validateAndParseDate
|
|
4086
4303
|
});
|
|
4087
4304
|
module.exports = __toCommonJS(index_exports);
|
|
4088
4305
|
|
|
4089
|
-
// src/hooks.ts
|
|
4090
|
-
var hooks_exports = {};
|
|
4091
|
-
__export(hooks_exports, {
|
|
4092
|
-
AppProvider: () => AppProvider,
|
|
4093
|
-
useAppProvider: () => useAppProvider,
|
|
4094
|
-
useAuth: () => useAuth,
|
|
4095
|
-
useCallAction: () => useCallAction,
|
|
4096
|
-
useClickOutside: () => useClickOutside,
|
|
4097
|
-
useConfig: () => useConfig,
|
|
4098
|
-
useDebounce: () => useDebounce,
|
|
4099
|
-
useDetail: () => useDetail,
|
|
4100
|
-
useListData: () => useListData,
|
|
4101
|
-
useMenu: () => useMenu,
|
|
4102
|
-
useProfile: () => useProfile,
|
|
4103
|
-
useUser: () => useUser,
|
|
4104
|
-
useViewV2: () => useViewV2
|
|
4105
|
-
});
|
|
4106
|
-
|
|
4107
4306
|
// src/hooks/core/use-call-action.ts
|
|
4108
4307
|
var import_react = require("react");
|
|
4109
4308
|
var import_environment = require("@fctc/interface-logic/environment");
|
|
@@ -4167,8 +4366,8 @@ var useConfig = ({ localStorageUtils, sessionStorageUtils }) => {
|
|
|
4167
4366
|
}, []);
|
|
4168
4367
|
(0, import_react2.useEffect)(() => {
|
|
4169
4368
|
try {
|
|
4170
|
-
const
|
|
4171
|
-
|
|
4369
|
+
const env2 = (0, import_environment2.getEnv)();
|
|
4370
|
+
env2.setupEnv({
|
|
4172
4371
|
baseUrl: envConfig.baseUrl,
|
|
4173
4372
|
port: 3e3,
|
|
4174
4373
|
config: {
|
|
@@ -4298,7 +4497,7 @@ function useGetRowIds(tableRef) {
|
|
|
4298
4497
|
var getDateRange = (currentDate, unit) => {
|
|
4299
4498
|
const date = new Date(currentDate);
|
|
4300
4499
|
let dateStart, dateEnd;
|
|
4301
|
-
function
|
|
4500
|
+
function formatDate2(d) {
|
|
4302
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");
|
|
4303
4502
|
}
|
|
4304
4503
|
switch (unit) {
|
|
@@ -4370,8 +4569,8 @@ var getDateRange = (currentDate, unit) => {
|
|
|
4370
4569
|
);
|
|
4371
4570
|
}
|
|
4372
4571
|
return [
|
|
4373
|
-
["date_start", "<=",
|
|
4374
|
-
["date_end", ">=",
|
|
4572
|
+
["date_start", "<=", formatDate2(dateStart)],
|
|
4573
|
+
["date_end", ">=", formatDate2(dateEnd)]
|
|
4375
4574
|
];
|
|
4376
4575
|
};
|
|
4377
4576
|
var convertFieldsToArray = (fields) => {
|
|
@@ -4598,11 +4797,11 @@ var useProfile = (accessToken) => {
|
|
|
4598
4797
|
(0, import_react7.useEffect)(() => {
|
|
4599
4798
|
if (userInfoQuery.data) {
|
|
4600
4799
|
const userInfo = userInfoQuery.data;
|
|
4601
|
-
const
|
|
4602
|
-
|
|
4800
|
+
const env2 = (0, import_environment3.getEnv)();
|
|
4801
|
+
env2.setUid(userInfo?.sub);
|
|
4603
4802
|
dispatch((0, import_store4.setDataUser)(userInfo));
|
|
4604
4803
|
const userLocale = languages.find((lang) => lang?.id === userInfo?.locale);
|
|
4605
|
-
|
|
4804
|
+
env2.setLang(userLocale?.id);
|
|
4606
4805
|
i18n2.changeLanguage(userLocale?.id.split("_")[0]);
|
|
4607
4806
|
}
|
|
4608
4807
|
}, [dispatch, userInfoQuery.data]);
|
|
@@ -4728,9 +4927,9 @@ var useCompany = (accessToken) => {
|
|
|
4728
4927
|
(0, import_react9.useEffect)(() => {
|
|
4729
4928
|
if (current_company_id) {
|
|
4730
4929
|
const companyIDs = [current_company_id];
|
|
4731
|
-
const
|
|
4732
|
-
|
|
4733
|
-
|
|
4930
|
+
const env2 = (0, import_environment4.getEnv)();
|
|
4931
|
+
env2.setAllowCompanies([...companyIDs]);
|
|
4932
|
+
env2.setCompanies(companyIDs);
|
|
4734
4933
|
}
|
|
4735
4934
|
}, [current_company_id]);
|
|
4736
4935
|
const getCompanyInfo = (0, import_hooks8.useGetCompanyInfo)();
|
|
@@ -4743,8 +4942,8 @@ var useCompany = (accessToken) => {
|
|
|
4743
4942
|
if (companyInfo.data) {
|
|
4744
4943
|
const companyInfoData = companyInfo.data;
|
|
4745
4944
|
if (companyInfoData?.length) {
|
|
4746
|
-
const
|
|
4747
|
-
|
|
4945
|
+
const env2 = (0, import_environment4.getEnv)();
|
|
4946
|
+
env2.setDefaultCompany(companyInfoData[0]);
|
|
4748
4947
|
}
|
|
4749
4948
|
}
|
|
4750
4949
|
}, [companyInfo.data]);
|
|
@@ -4869,17 +5068,10 @@ function useDebounce(value, delay) {
|
|
|
4869
5068
|
}
|
|
4870
5069
|
|
|
4871
5070
|
// src/hooks.ts
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
// src/index.ts
|
|
4875
|
-
__reExport(index_exports, hooks_exports, module.exports);
|
|
5071
|
+
var import_hooks10 = require("@fctc/interface-logic/hooks");
|
|
4876
5072
|
|
|
4877
5073
|
// src/config.ts
|
|
4878
|
-
var
|
|
4879
|
-
__reExport(config_exports, require("@fctc/interface-logic/configs"));
|
|
4880
|
-
|
|
4881
|
-
// src/index.ts
|
|
4882
|
-
__reExport(index_exports, config_exports, module.exports);
|
|
5074
|
+
var import_configs = require("@fctc/interface-logic/configs");
|
|
4883
5075
|
|
|
4884
5076
|
// src/icons/eye-icon.tsx
|
|
4885
5077
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -4990,10 +5182,10 @@ var CloseIcon = ({ className = "" }) => {
|
|
|
4990
5182
|
// src/widget/basic/status-dropdown-field/controller.ts
|
|
4991
5183
|
var import_react13 = require("react");
|
|
4992
5184
|
var import_environment5 = require("@fctc/interface-logic/environment");
|
|
4993
|
-
var
|
|
5185
|
+
var import_hooks11 = require("@fctc/interface-logic/hooks");
|
|
4994
5186
|
var statusDropdownController = (props) => {
|
|
4995
5187
|
const { selection, isForm, id, model, name, state, onRefetch } = props;
|
|
4996
|
-
const
|
|
5188
|
+
const env2 = (0, import_environment5.getEnv)();
|
|
4997
5189
|
const colors = {
|
|
4998
5190
|
normal: "bg-[#e9ecef]",
|
|
4999
5191
|
done: "bg-primary",
|
|
@@ -5012,7 +5204,7 @@ var statusDropdownController = (props) => {
|
|
|
5012
5204
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
5013
5205
|
};
|
|
5014
5206
|
}, []);
|
|
5015
|
-
const { mutate: onSave } = (0,
|
|
5207
|
+
const { mutate: onSave } = (0, import_hooks11.useSave)();
|
|
5016
5208
|
const handleClick = async (status) => {
|
|
5017
5209
|
setIsOpen(!isOpen);
|
|
5018
5210
|
onSave(
|
|
@@ -5020,7 +5212,7 @@ var statusDropdownController = (props) => {
|
|
|
5020
5212
|
ids: id ? [id] : [],
|
|
5021
5213
|
model: model ?? "",
|
|
5022
5214
|
data: { [name ?? ""]: status },
|
|
5023
|
-
context:
|
|
5215
|
+
context: env2.context
|
|
5024
5216
|
},
|
|
5025
5217
|
{
|
|
5026
5218
|
onSuccess: () => {
|
|
@@ -5043,7 +5235,7 @@ var statusDropdownController = (props) => {
|
|
|
5043
5235
|
|
|
5044
5236
|
// src/widget/basic/many2one-field/controller.ts
|
|
5045
5237
|
var import_react14 = require("react");
|
|
5046
|
-
var
|
|
5238
|
+
var import_hooks12 = require("@fctc/interface-logic/hooks");
|
|
5047
5239
|
var import_store6 = require("@fctc/interface-logic/store");
|
|
5048
5240
|
var import_utils3 = require("@fctc/interface-logic/utils");
|
|
5049
5241
|
var many2oneFieldController = (props) => {
|
|
@@ -5100,7 +5292,7 @@ var many2oneFieldController = (props) => {
|
|
|
5100
5292
|
data: dataOfSelection,
|
|
5101
5293
|
// refetch,
|
|
5102
5294
|
isFetching
|
|
5103
|
-
} = (0,
|
|
5295
|
+
} = (0, import_hooks12.useGetSelection)({
|
|
5104
5296
|
data,
|
|
5105
5297
|
queryKey,
|
|
5106
5298
|
enabled: false
|
|
@@ -5216,19 +5408,19 @@ var many2oneFieldController = (props) => {
|
|
|
5216
5408
|
|
|
5217
5409
|
// src/widget/basic/many2one-button-field/controller.ts
|
|
5218
5410
|
var import_environment6 = require("@fctc/interface-logic/environment");
|
|
5219
|
-
var
|
|
5411
|
+
var import_hooks13 = require("@fctc/interface-logic/hooks");
|
|
5220
5412
|
var import_utils4 = require("@fctc/interface-logic/utils");
|
|
5221
5413
|
var many2oneButtonController = (props) => {
|
|
5222
5414
|
const { domain, methods, relation } = props;
|
|
5223
5415
|
const actionDataString = sessionStorage.getItem("actionData");
|
|
5224
|
-
const
|
|
5416
|
+
const env2 = (0, import_environment6.getEnv)();
|
|
5225
5417
|
const domainObject = (0, import_utils4.evalJSONDomain)(domain, methods?.getValues() || {});
|
|
5226
5418
|
const actionData = actionDataString && actionDataString !== "undefined" ? JSON.parse(actionDataString) : {};
|
|
5227
|
-
const { data: dataOfSelection } = (0,
|
|
5419
|
+
const { data: dataOfSelection } = (0, import_hooks13.useGetSelection)({
|
|
5228
5420
|
data: {
|
|
5229
5421
|
model: relation ?? "",
|
|
5230
5422
|
domain: domainObject,
|
|
5231
|
-
context: { ...
|
|
5423
|
+
context: { ...env2.context, ...(0, import_utils4.evalJSONContext)(actionData?.context) }
|
|
5232
5424
|
},
|
|
5233
5425
|
queryKey: [`data_${relation}`, domainObject]
|
|
5234
5426
|
});
|
|
@@ -6198,10 +6390,10 @@ var i18n_default = import_i18next.default;
|
|
|
6198
6390
|
|
|
6199
6391
|
// src/widget/advance/table/table-group/controller.ts
|
|
6200
6392
|
var import_environment7 = require("@fctc/interface-logic/environment");
|
|
6201
|
-
var
|
|
6393
|
+
var import_hooks14 = require("@fctc/interface-logic/hooks");
|
|
6202
6394
|
var import_store10 = require("@fctc/interface-logic/store");
|
|
6203
6395
|
var tableGroupController = (props) => {
|
|
6204
|
-
const
|
|
6396
|
+
const env2 = (0, import_environment7.getEnv)();
|
|
6205
6397
|
const {
|
|
6206
6398
|
rows,
|
|
6207
6399
|
columns,
|
|
@@ -6224,7 +6416,7 @@ var tableGroupController = (props) => {
|
|
|
6224
6416
|
const { groupByDomain, selectedTags } = (0, import_store10.useAppSelector)(import_store10.selectSearch);
|
|
6225
6417
|
const { selectedRowKeys } = (0, import_store10.useAppSelector)(import_store10.selectList);
|
|
6226
6418
|
const appDispatch = (0, import_store10.useAppDispatch)();
|
|
6227
|
-
const { toDataJS } = (0,
|
|
6419
|
+
const { toDataJS } = (0, import_hooks14.useOdooDataTransform)();
|
|
6228
6420
|
const initVal = toDataJS(row, viewData, model);
|
|
6229
6421
|
const [isShowGroup, setIsShowGroup] = (0, import_react17.useState)(false);
|
|
6230
6422
|
const [colEmptyGroup, setColEmptyGroup] = (0, import_react17.useState)({
|
|
@@ -6271,7 +6463,7 @@ var tableGroupController = (props) => {
|
|
|
6271
6463
|
isPlaceholderData,
|
|
6272
6464
|
isLoading,
|
|
6273
6465
|
isFetching
|
|
6274
|
-
} = (0,
|
|
6466
|
+
} = (0, import_hooks14.useGetListData)(listDataProps, queryKey, enabled);
|
|
6275
6467
|
const {
|
|
6276
6468
|
columns: columnsGroup,
|
|
6277
6469
|
rows: rowsGroup,
|
|
@@ -6281,7 +6473,7 @@ var tableGroupController = (props) => {
|
|
|
6281
6473
|
fields: viewData?.views?.list?.fields,
|
|
6282
6474
|
records: dataResponse?.records ?? dataResponse?.groups,
|
|
6283
6475
|
dataModel: viewData?.models?.[model],
|
|
6284
|
-
context:
|
|
6476
|
+
context: env2.context,
|
|
6285
6477
|
typeTable: dataResponse?.groups ? "group" : "list"
|
|
6286
6478
|
}
|
|
6287
6479
|
});
|
|
@@ -6371,9 +6563,9 @@ var many2manyFieldController = (props) => {
|
|
|
6371
6563
|
tab,
|
|
6372
6564
|
model,
|
|
6373
6565
|
aid,
|
|
6374
|
-
setSelectedRowKeys:
|
|
6566
|
+
setSelectedRowKeys: setSelectedRowKeys5,
|
|
6375
6567
|
fields,
|
|
6376
|
-
setFields,
|
|
6568
|
+
setFields: setFields2,
|
|
6377
6569
|
groupByDomain,
|
|
6378
6570
|
page,
|
|
6379
6571
|
options,
|
|
@@ -6382,10 +6574,10 @@ var many2manyFieldController = (props) => {
|
|
|
6382
6574
|
const appDispatch = (0, import_store11.useAppDispatch)();
|
|
6383
6575
|
const actionData = sessionStorageUtils.getActionData();
|
|
6384
6576
|
const [debouncedPage] = useDebounce(page, 500);
|
|
6385
|
-
const [order,
|
|
6577
|
+
const [order, setOrder2] = (0, import_react18.useState)();
|
|
6386
6578
|
const [isLoadedData, setIsLoadedData] = (0, import_react18.useState)(false);
|
|
6387
6579
|
const [domainMany2Many, setDomainMany2Many] = (0, import_react18.useState)(domain);
|
|
6388
|
-
const
|
|
6580
|
+
const env2 = (0, import_environment8.getEnv)();
|
|
6389
6581
|
const { selectedTags } = (0, import_store11.useAppSelector)(import_store11.selectSearch);
|
|
6390
6582
|
const viewParams = {
|
|
6391
6583
|
model: relation,
|
|
@@ -6395,7 +6587,7 @@ var many2manyFieldController = (props) => {
|
|
|
6395
6587
|
],
|
|
6396
6588
|
context
|
|
6397
6589
|
};
|
|
6398
|
-
const { data: viewResponse, isFetched: isViewReponseFetched } = (0,
|
|
6590
|
+
const { data: viewResponse, isFetched: isViewReponseFetched } = (0, import_hooks10.useGetView)(
|
|
6399
6591
|
viewParams,
|
|
6400
6592
|
actionData
|
|
6401
6593
|
);
|
|
@@ -6411,7 +6603,7 @@ var many2manyFieldController = (props) => {
|
|
|
6411
6603
|
}),
|
|
6412
6604
|
[model, viewResponse]
|
|
6413
6605
|
);
|
|
6414
|
-
const initModel = (0,
|
|
6606
|
+
const initModel = (0, import_hooks10.useModel)();
|
|
6415
6607
|
const modelInstance = (0, import_react18.useMemo)(() => {
|
|
6416
6608
|
if (viewResponse) {
|
|
6417
6609
|
return initModel.initModel(baseModel);
|
|
@@ -6436,7 +6628,7 @@ var many2manyFieldController = (props) => {
|
|
|
6436
6628
|
...field
|
|
6437
6629
|
}));
|
|
6438
6630
|
if (!fields?.[`${aid}_${relation}_popupmany2many`] && modalData) {
|
|
6439
|
-
|
|
6631
|
+
setFields2({
|
|
6440
6632
|
...fields,
|
|
6441
6633
|
[`${aid}_${relation}_popupmany2many`]: modalData
|
|
6442
6634
|
});
|
|
@@ -6471,19 +6663,19 @@ var many2manyFieldController = (props) => {
|
|
|
6471
6663
|
isLoading: isDataLoading,
|
|
6472
6664
|
isFetched: isDataResponseFetched,
|
|
6473
6665
|
isPlaceholderData
|
|
6474
|
-
} = (0,
|
|
6666
|
+
} = (0, import_hooks10.useGetListData)(data, queryKey, enabled);
|
|
6475
6667
|
(0, import_react18.useEffect)(() => {
|
|
6476
6668
|
if (viewResponse) {
|
|
6477
6669
|
fetchData();
|
|
6478
6670
|
}
|
|
6479
6671
|
return () => {
|
|
6480
6672
|
appDispatch((0, import_store11.setGroupByDomain)(null));
|
|
6481
|
-
|
|
6673
|
+
setFields2((prevFields) => ({
|
|
6482
6674
|
...prevFields,
|
|
6483
6675
|
[`${aid}_${relation}_popupmany2many`]: null
|
|
6484
6676
|
}));
|
|
6485
6677
|
appDispatch((0, import_store11.setPage)(0));
|
|
6486
|
-
|
|
6678
|
+
setSelectedRowKeys5([]);
|
|
6487
6679
|
setDomainMany2Many(null);
|
|
6488
6680
|
setIsLoadedData(false);
|
|
6489
6681
|
};
|
|
@@ -6493,7 +6685,7 @@ var many2manyFieldController = (props) => {
|
|
|
6493
6685
|
fields: fields?.[`${aid}_${relation}_popupmany2many`] || viewResponse?.views?.list?.fields,
|
|
6494
6686
|
records: dataResponse?.records ?? dataResponse?.groups,
|
|
6495
6687
|
dataModel: viewResponse?.models?.[String(relation)],
|
|
6496
|
-
context: { ...
|
|
6688
|
+
context: { ...env2.context, ...context },
|
|
6497
6689
|
typeTable: dataResponse?.groups ? "group" : "list"
|
|
6498
6690
|
}
|
|
6499
6691
|
});
|
|
@@ -6506,7 +6698,7 @@ var many2manyFieldController = (props) => {
|
|
|
6506
6698
|
refetch,
|
|
6507
6699
|
data: dataFormViewResponse,
|
|
6508
6700
|
isSuccess
|
|
6509
|
-
} = (0,
|
|
6701
|
+
} = (0, import_hooks10.useGetFormView)({
|
|
6510
6702
|
data: dataFormView,
|
|
6511
6703
|
queryKey: [`form-view-action-${relation}`],
|
|
6512
6704
|
enabled: false
|
|
@@ -6536,7 +6728,7 @@ var many2manyFieldController = (props) => {
|
|
|
6536
6728
|
var import_react19 = require("react");
|
|
6537
6729
|
var import_constants3 = require("@fctc/interface-logic/constants");
|
|
6538
6730
|
var import_environment9 = require("@fctc/interface-logic/environment");
|
|
6539
|
-
var
|
|
6731
|
+
var import_hooks16 = require("@fctc/interface-logic/hooks");
|
|
6540
6732
|
var import_utils7 = require("@fctc/interface-logic/utils");
|
|
6541
6733
|
var many2manyTagsController = (props) => {
|
|
6542
6734
|
const {
|
|
@@ -6548,7 +6740,7 @@ var many2manyTagsController = (props) => {
|
|
|
6548
6740
|
placeholderNoOption
|
|
6549
6741
|
} = props;
|
|
6550
6742
|
const isUser = relation === "res.users" || relation === "res.partner";
|
|
6551
|
-
const
|
|
6743
|
+
const env2 = (0, import_environment9.getEnv)();
|
|
6552
6744
|
const addtionalFields = optionsFields ? (0, import_utils7.evalJSONContext)(optionsFields) : null;
|
|
6553
6745
|
const domainObject = (0, import_react19.useMemo)(
|
|
6554
6746
|
() => (0, import_utils7.evalJSONDomain)(domain, JSON.parse(JSON.stringify(formValues || {}))),
|
|
@@ -6565,9 +6757,9 @@ var many2manyTagsController = (props) => {
|
|
|
6565
6757
|
...widget && import_constants3.WIDGETCOLOR[widget] && addtionalFields?.color_field ? { color: {} } : {}
|
|
6566
6758
|
},
|
|
6567
6759
|
enabled: true,
|
|
6568
|
-
context:
|
|
6760
|
+
context: env2.context
|
|
6569
6761
|
};
|
|
6570
|
-
const { data: dataOfSelection } = (0,
|
|
6762
|
+
const { data: dataOfSelection } = (0, import_hooks16.useGetSelection)({
|
|
6571
6763
|
data,
|
|
6572
6764
|
queryKey: [`data_${relation}`, domainObject]
|
|
6573
6765
|
});
|
|
@@ -6594,7 +6786,7 @@ var many2manyTagsController = (props) => {
|
|
|
6594
6786
|
|
|
6595
6787
|
// src/widget/basic/status-bar-field/controller.ts
|
|
6596
6788
|
var import_react20 = require("react");
|
|
6597
|
-
var
|
|
6789
|
+
var import_hooks17 = require("@fctc/interface-logic/hooks");
|
|
6598
6790
|
var import_store12 = require("@fctc/interface-logic/store");
|
|
6599
6791
|
var import_utils8 = require("@fctc/interface-logic/utils");
|
|
6600
6792
|
var durationController = (props) => {
|
|
@@ -6630,8 +6822,8 @@ var durationController = (props) => {
|
|
|
6630
6822
|
},
|
|
6631
6823
|
sort: ""
|
|
6632
6824
|
};
|
|
6633
|
-
const { data: dataResponse } = (0,
|
|
6634
|
-
const { mutate: fetchChangeStatus } = (0,
|
|
6825
|
+
const { data: dataResponse } = (0, import_hooks17.useGetListData)(listDataProps, queryKey);
|
|
6826
|
+
const { mutate: fetchChangeStatus } = (0, import_hooks17.useChangeStatus)();
|
|
6635
6827
|
const handleClick = async (stage_id) => {
|
|
6636
6828
|
setDisabled(true);
|
|
6637
6829
|
if (stage_id) {
|
|
@@ -6667,7 +6859,7 @@ var durationController = (props) => {
|
|
|
6667
6859
|
};
|
|
6668
6860
|
|
|
6669
6861
|
// src/widget/basic/priority-field/controller.ts
|
|
6670
|
-
var
|
|
6862
|
+
var import_hooks18 = require("@fctc/interface-logic/hooks");
|
|
6671
6863
|
var import_utils9 = require("@fctc/interface-logic/utils");
|
|
6672
6864
|
var priorityFieldController = (props) => {
|
|
6673
6865
|
const {
|
|
@@ -6687,7 +6879,7 @@ var priorityFieldController = (props) => {
|
|
|
6687
6879
|
const contextObject = { ...context, ..._context };
|
|
6688
6880
|
const defaultPriority = parseInt(value) + 1;
|
|
6689
6881
|
const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
|
|
6690
|
-
const { mutateAsync: fetchSave } = (0,
|
|
6882
|
+
const { mutateAsync: fetchSave } = (0, import_hooks18.useSave)();
|
|
6691
6883
|
const savePriorities = async ({
|
|
6692
6884
|
value: value2,
|
|
6693
6885
|
resetPriority
|
|
@@ -7010,7 +7202,7 @@ var dateFieldController = (props) => {
|
|
|
7010
7202
|
}
|
|
7011
7203
|
return arr;
|
|
7012
7204
|
};
|
|
7013
|
-
const
|
|
7205
|
+
const formatDate2 = showTime ? "DD/MM/YYYY HH:mm:ss" : "DD/MM/YYYY";
|
|
7014
7206
|
const formatDateParse = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
7015
7207
|
const fieldForCustom = widget === "datetime_custom" || widget === "date_custom";
|
|
7016
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);
|
|
@@ -7085,7 +7277,7 @@ var dateFieldController = (props) => {
|
|
|
7085
7277
|
return false;
|
|
7086
7278
|
};
|
|
7087
7279
|
return {
|
|
7088
|
-
formatDate,
|
|
7280
|
+
formatDate: formatDate2,
|
|
7089
7281
|
formatDateParse,
|
|
7090
7282
|
range,
|
|
7091
7283
|
years,
|
|
@@ -7118,15 +7310,15 @@ var copyLinkButtonController = (props) => {
|
|
|
7118
7310
|
|
|
7119
7311
|
// src/widget/basic/color-field/color-controller.ts
|
|
7120
7312
|
var import_environment10 = require("@fctc/interface-logic/environment");
|
|
7121
|
-
var
|
|
7313
|
+
var import_hooks19 = require("@fctc/interface-logic/hooks");
|
|
7122
7314
|
var import_utils12 = require("@fctc/interface-logic/utils");
|
|
7123
7315
|
var colorFieldController = (props) => {
|
|
7124
7316
|
const { value, isForm, name, formValues, idForm, model, actionData } = props;
|
|
7125
|
-
const
|
|
7317
|
+
const env2 = (0, import_environment10.getEnv)();
|
|
7126
7318
|
const _context = { ...(0, import_utils12.evalJSONContext)(actionData?.context) || {} };
|
|
7127
|
-
const contextObject = { ...
|
|
7319
|
+
const contextObject = { ...env2.context, ..._context };
|
|
7128
7320
|
const idDefault = isForm ? idForm : formValues?.id;
|
|
7129
|
-
const { mutate: onSave } = (0,
|
|
7321
|
+
const { mutate: onSave } = (0, import_hooks19.useSave)();
|
|
7130
7322
|
const savePickColor = async (colorObject) => {
|
|
7131
7323
|
const { id } = colorObject;
|
|
7132
7324
|
if (value === id) return;
|
|
@@ -7207,7 +7399,7 @@ var binaryFieldController = (props) => {
|
|
|
7207
7399
|
const isBlobUrl = (url) => {
|
|
7208
7400
|
return /^blob:/.test(url);
|
|
7209
7401
|
};
|
|
7210
|
-
const
|
|
7402
|
+
const checkIsImageLink2 = (url) => {
|
|
7211
7403
|
const imageExtensions = /\.(jpg|jpeg|png|gif|bmp|webp|svg|tiff|ico)$/i;
|
|
7212
7404
|
return imageExtensions.test(url) || (0, import_utils13.isBase64Image)(url) || isBlobUrl(url);
|
|
7213
7405
|
};
|
|
@@ -7243,112 +7435,296 @@ var binaryFieldController = (props) => {
|
|
|
7243
7435
|
binaryRef,
|
|
7244
7436
|
handleImageChange,
|
|
7245
7437
|
handleRemoveImage,
|
|
7246
|
-
checkIsImageLink,
|
|
7438
|
+
checkIsImageLink: checkIsImageLink2,
|
|
7247
7439
|
getImageBase64WithMimeType
|
|
7248
7440
|
};
|
|
7249
7441
|
};
|
|
7250
7442
|
|
|
7251
7443
|
// src/utils.ts
|
|
7252
|
-
var
|
|
7253
|
-
__export(utils_exports, {
|
|
7254
|
-
API_APP_URL: () => API_APP_URL,
|
|
7255
|
-
API_PRESCHOOL_URL: () => API_PRESCHOOL_URL,
|
|
7256
|
-
STORAGES: () => STORAGES,
|
|
7257
|
-
combineContexts: () => combineContexts,
|
|
7258
|
-
convertFieldsToArray: () => convertFieldsToArray,
|
|
7259
|
-
countSum: () => countSum,
|
|
7260
|
-
getDateRange: () => getDateRange,
|
|
7261
|
-
languages: () => languages,
|
|
7262
|
-
mergeButtons: () => mergeButtons,
|
|
7263
|
-
setStorageItemAsync: () => setStorageItemAsync,
|
|
7264
|
-
useGetRowIds: () => useGetRowIds,
|
|
7265
|
-
useStorageState: () => useStorageState
|
|
7266
|
-
});
|
|
7267
|
-
__reExport(utils_exports, require("@fctc/interface-logic/utils"));
|
|
7268
|
-
|
|
7269
|
-
// src/index.ts
|
|
7270
|
-
__reExport(index_exports, utils_exports, module.exports);
|
|
7444
|
+
var import_utils15 = require("@fctc/interface-logic/utils");
|
|
7271
7445
|
|
|
7272
7446
|
// src/store.ts
|
|
7273
7447
|
var import_store13 = require("@fctc/interface-logic/store");
|
|
7274
7448
|
|
|
7275
7449
|
// src/constants.ts
|
|
7276
|
-
var
|
|
7277
|
-
__reExport(constants_exports, require("@fctc/interface-logic/constants"));
|
|
7278
|
-
|
|
7279
|
-
// src/index.ts
|
|
7280
|
-
__reExport(index_exports, constants_exports, module.exports);
|
|
7450
|
+
var import_constants5 = require("@fctc/interface-logic/constants");
|
|
7281
7451
|
|
|
7282
7452
|
// src/environment.ts
|
|
7283
|
-
var
|
|
7284
|
-
__reExport(environment_exports, require("@fctc/interface-logic/environment"));
|
|
7285
|
-
|
|
7286
|
-
// src/index.ts
|
|
7287
|
-
__reExport(index_exports, environment_exports, module.exports);
|
|
7453
|
+
var import_environment11 = require("@fctc/interface-logic/environment");
|
|
7288
7454
|
|
|
7289
7455
|
// src/provider.ts
|
|
7290
|
-
var
|
|
7291
|
-
__reExport(provider_exports, require("@fctc/interface-logic/provider"));
|
|
7292
|
-
|
|
7293
|
-
// src/index.ts
|
|
7294
|
-
__reExport(index_exports, provider_exports, module.exports);
|
|
7456
|
+
var import_provider = require("@fctc/interface-logic/provider");
|
|
7295
7457
|
|
|
7296
7458
|
// src/services.ts
|
|
7297
|
-
var
|
|
7298
|
-
__reExport(services_exports, require("@fctc/interface-logic/services"));
|
|
7299
|
-
|
|
7300
|
-
// src/index.ts
|
|
7301
|
-
__reExport(index_exports, services_exports, module.exports);
|
|
7459
|
+
var import_services = require("@fctc/interface-logic/services");
|
|
7302
7460
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7303
7461
|
0 && (module.exports = {
|
|
7304
7462
|
API_APP_URL,
|
|
7305
7463
|
API_PRESCHOOL_URL,
|
|
7464
|
+
ActionService,
|
|
7465
|
+
AppDispatch,
|
|
7306
7466
|
AppProvider,
|
|
7467
|
+
AuthService,
|
|
7468
|
+
BreadcrumbsState,
|
|
7307
7469
|
CloseIcon,
|
|
7470
|
+
CompanyService,
|
|
7471
|
+
ComponentType,
|
|
7472
|
+
EnvStore,
|
|
7473
|
+
ExcelService,
|
|
7474
|
+
ExcelState,
|
|
7308
7475
|
EyeIcon,
|
|
7476
|
+
FieldTypeConstants,
|
|
7477
|
+
FormService,
|
|
7478
|
+
FormState,
|
|
7479
|
+
KanbanService,
|
|
7480
|
+
KeyConstants,
|
|
7481
|
+
ListState,
|
|
7309
7482
|
LoadingIcon,
|
|
7483
|
+
LoginStateType,
|
|
7484
|
+
MainProvider,
|
|
7485
|
+
MethodConstants,
|
|
7486
|
+
MethodType,
|
|
7487
|
+
ModelConstants,
|
|
7488
|
+
ModelService,
|
|
7489
|
+
NavbarStateType,
|
|
7490
|
+
ProfileStateType,
|
|
7491
|
+
ReactQueryProvider,
|
|
7492
|
+
RootState,
|
|
7310
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,
|
|
7311
7509
|
binaryFieldController,
|
|
7510
|
+
breadcrumbsSlice,
|
|
7511
|
+
checkIsImageLink,
|
|
7512
|
+
clearSearchMap,
|
|
7312
7513
|
colorFieldController,
|
|
7313
7514
|
combineContexts,
|
|
7314
7515
|
convertFieldsToArray,
|
|
7516
|
+
convertFloatToTime,
|
|
7517
|
+
convertTimeToFloat,
|
|
7315
7518
|
copyLinkButtonController,
|
|
7519
|
+
copyTextToClipboard,
|
|
7316
7520
|
countSum,
|
|
7317
7521
|
dateFieldController,
|
|
7522
|
+
domainHelper,
|
|
7318
7523
|
downLoadBinaryController,
|
|
7319
7524
|
downloadFileController,
|
|
7320
7525
|
durationController,
|
|
7526
|
+
env,
|
|
7527
|
+
envSlice,
|
|
7528
|
+
envStore,
|
|
7529
|
+
evalJSONContext,
|
|
7530
|
+
evalJSONDomain,
|
|
7531
|
+
excelSlice,
|
|
7532
|
+
filterFieldDirty,
|
|
7321
7533
|
floatController,
|
|
7322
7534
|
floatTimeFiledController,
|
|
7535
|
+
formSlice,
|
|
7536
|
+
formatCurrency,
|
|
7537
|
+
formatDate,
|
|
7538
|
+
formatFileSize,
|
|
7539
|
+
formatSortingString,
|
|
7540
|
+
formatUrlPath,
|
|
7323
7541
|
getDateRange,
|
|
7542
|
+
getEnv,
|
|
7543
|
+
getFieldsOnChange,
|
|
7544
|
+
getOffSet,
|
|
7545
|
+
getSubdomain,
|
|
7546
|
+
handleError,
|
|
7547
|
+
headerSlice,
|
|
7548
|
+
initEnv,
|
|
7549
|
+
isBase64File,
|
|
7550
|
+
isBase64Image,
|
|
7551
|
+
isObjectEmpty,
|
|
7324
7552
|
languages,
|
|
7553
|
+
listSlice,
|
|
7554
|
+
loginSlice,
|
|
7325
7555
|
many2manyFieldController,
|
|
7326
7556
|
many2manyTagsController,
|
|
7327
7557
|
many2oneButtonController,
|
|
7328
7558
|
many2oneFieldController,
|
|
7329
7559
|
mergeButtons,
|
|
7560
|
+
mergeObjects,
|
|
7561
|
+
navbarSlice,
|
|
7330
7562
|
priorityFieldController,
|
|
7563
|
+
profileSlice,
|
|
7564
|
+
removeKeyFromSearchMap,
|
|
7565
|
+
removeUndefinedFields,
|
|
7566
|
+
resequence,
|
|
7567
|
+
searchSlice,
|
|
7568
|
+
selectBreadCrumbs,
|
|
7569
|
+
selectEnv,
|
|
7570
|
+
selectExcel,
|
|
7571
|
+
selectForm,
|
|
7572
|
+
selectHeader,
|
|
7573
|
+
selectList,
|
|
7574
|
+
selectLogin,
|
|
7575
|
+
selectNavbar,
|
|
7331
7576
|
selectProfile,
|
|
7577
|
+
selectSearch,
|
|
7578
|
+
selectSearchMap,
|
|
7579
|
+
setAllowCompanies,
|
|
7580
|
+
setAllowedCompanyIds,
|
|
7581
|
+
setBreadCrumbs,
|
|
7582
|
+
setCompanies,
|
|
7583
|
+
setConfig,
|
|
7584
|
+
setDataParse,
|
|
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,
|
|
7332
7627
|
setStorageItemAsync,
|
|
7628
|
+
setTransferDetail,
|
|
7629
|
+
setUid,
|
|
7630
|
+
setUser,
|
|
7631
|
+
setViewDataStore,
|
|
7333
7632
|
statusDropdownController,
|
|
7633
|
+
stringToColor,
|
|
7334
7634
|
tableBodyController,
|
|
7335
7635
|
tableController,
|
|
7336
7636
|
tableGroupController,
|
|
7337
7637
|
tableHeadController,
|
|
7638
|
+
toQueryString,
|
|
7639
|
+
updateSearchMap,
|
|
7640
|
+
updateTokenParamInOriginalRequest,
|
|
7641
|
+
useAppDispatch,
|
|
7338
7642
|
useAppProvider,
|
|
7643
|
+
useAppSelector,
|
|
7339
7644
|
useAuth,
|
|
7645
|
+
useButton,
|
|
7340
7646
|
useCallAction,
|
|
7647
|
+
useChangeStatus,
|
|
7341
7648
|
useClickOutside,
|
|
7342
7649
|
useConfig,
|
|
7343
7650
|
useDebounce,
|
|
7651
|
+
useDelete,
|
|
7652
|
+
useDeleteComment,
|
|
7344
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,
|
|
7345
7687
|
useGetRowIds,
|
|
7688
|
+
useGetSelection,
|
|
7689
|
+
useGetUser,
|
|
7690
|
+
useGetView,
|
|
7691
|
+
useGrantAccess,
|
|
7692
|
+
useIsValidToken,
|
|
7346
7693
|
useListData,
|
|
7694
|
+
useLoadAction,
|
|
7695
|
+
useLoadMessage,
|
|
7696
|
+
useLoginCredential,
|
|
7697
|
+
useLoginSocial,
|
|
7698
|
+
useLogout,
|
|
7347
7699
|
useMenu,
|
|
7700
|
+
useModel,
|
|
7701
|
+
useOdooDataTransform,
|
|
7702
|
+
useOnChangeForm,
|
|
7703
|
+
useParsePreview,
|
|
7704
|
+
usePrint,
|
|
7348
7705
|
useProfile,
|
|
7706
|
+
useRemoveRow,
|
|
7707
|
+
useRemoveTotpSetup,
|
|
7708
|
+
useRequestSetupTotp,
|
|
7709
|
+
useResetPassword,
|
|
7710
|
+
useResetPasswordSSO,
|
|
7711
|
+
useRunAction,
|
|
7712
|
+
useSave,
|
|
7713
|
+
useSendComment,
|
|
7714
|
+
useSettingsWebRead2fa,
|
|
7715
|
+
useSignInSSO,
|
|
7349
7716
|
useStorageState,
|
|
7717
|
+
useSwitchLocale,
|
|
7718
|
+
useTabModel,
|
|
7719
|
+
useUpdatePassword,
|
|
7720
|
+
useUploadFile,
|
|
7721
|
+
useUploadIdFile,
|
|
7722
|
+
useUploadImage,
|
|
7350
7723
|
useUser,
|
|
7351
|
-
|
|
7724
|
+
useVerify2FA,
|
|
7725
|
+
useVerifyTotp,
|
|
7726
|
+
useViewV2,
|
|
7727
|
+
validateAndParseDate
|
|
7352
7728
|
});
|
|
7353
7729
|
/*! Bundled license information:
|
|
7354
7730
|
|