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