@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.mjs
CHANGED
|
@@ -13,10 +13,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
13
13
|
var __commonJS = (cb, mod) => function __require2() {
|
|
14
14
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
15
|
};
|
|
16
|
-
var __export = (target, all) => {
|
|
17
|
-
for (var name in all)
|
|
18
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
-
};
|
|
20
16
|
var __copyProps = (to, from, except, desc) => {
|
|
21
17
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
18
|
for (let key of __getOwnPropNames(from))
|
|
@@ -25,7 +21,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
25
21
|
}
|
|
26
22
|
return to;
|
|
27
23
|
};
|
|
28
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
29
24
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
25
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
26
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -59,7 +54,7 @@ var require_moment = __commonJS({
|
|
|
59
54
|
function hasOwnProp(a, b) {
|
|
60
55
|
return Object.prototype.hasOwnProperty.call(a, b);
|
|
61
56
|
}
|
|
62
|
-
function
|
|
57
|
+
function isObjectEmpty2(obj) {
|
|
63
58
|
if (Object.getOwnPropertyNames) {
|
|
64
59
|
return Object.getOwnPropertyNames(obj).length === 0;
|
|
65
60
|
} else {
|
|
@@ -2198,7 +2193,7 @@ var require_moment = __commonJS({
|
|
|
2198
2193
|
strict = locale2;
|
|
2199
2194
|
locale2 = void 0;
|
|
2200
2195
|
}
|
|
2201
|
-
if (isObject(input) &&
|
|
2196
|
+
if (isObject(input) && isObjectEmpty2(input) || isArray(input) && input.length === 0) {
|
|
2202
2197
|
input = void 0;
|
|
2203
2198
|
}
|
|
2204
2199
|
c._isAMomentObject = true;
|
|
@@ -2617,7 +2612,7 @@ var require_moment = __commonJS({
|
|
|
2617
2612
|
return isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
|
|
2618
2613
|
}
|
|
2619
2614
|
function isMomentInputObject(input) {
|
|
2620
|
-
var objectTest = isObject(input) && !
|
|
2615
|
+
var objectTest = isObject(input) && !isObjectEmpty2(input), propertyTest = false, properties = [
|
|
2621
2616
|
"years",
|
|
2622
2617
|
"year",
|
|
2623
2618
|
"y",
|
|
@@ -2659,7 +2654,7 @@ var require_moment = __commonJS({
|
|
|
2659
2654
|
return arrayTest && dataTypeTest;
|
|
2660
2655
|
}
|
|
2661
2656
|
function isCalendarSpec(input) {
|
|
2662
|
-
var objectTest = isObject(input) && !
|
|
2657
|
+
var objectTest = isObject(input) && !isObjectEmpty2(input), propertyTest = false, properties = [
|
|
2663
2658
|
"sameDay",
|
|
2664
2659
|
"nextDay",
|
|
2665
2660
|
"lastDay",
|
|
@@ -4036,77 +4031,6 @@ var require_moment = __commonJS({
|
|
|
4036
4031
|
}
|
|
4037
4032
|
});
|
|
4038
4033
|
|
|
4039
|
-
// src/index.ts
|
|
4040
|
-
var index_exports = {};
|
|
4041
|
-
__export(index_exports, {
|
|
4042
|
-
API_APP_URL: () => API_APP_URL,
|
|
4043
|
-
API_PRESCHOOL_URL: () => API_PRESCHOOL_URL,
|
|
4044
|
-
AppProvider: () => AppProvider,
|
|
4045
|
-
CloseIcon: () => CloseIcon,
|
|
4046
|
-
EyeIcon: () => EyeIcon,
|
|
4047
|
-
LoadingIcon: () => LoadingIcon,
|
|
4048
|
-
STORAGES: () => STORAGES,
|
|
4049
|
-
binaryFieldController: () => binaryFieldController,
|
|
4050
|
-
colorFieldController: () => colorFieldController,
|
|
4051
|
-
combineContexts: () => combineContexts,
|
|
4052
|
-
convertFieldsToArray: () => convertFieldsToArray,
|
|
4053
|
-
copyLinkButtonController: () => copyLinkButtonController,
|
|
4054
|
-
countSum: () => countSum,
|
|
4055
|
-
dateFieldController: () => dateFieldController,
|
|
4056
|
-
downLoadBinaryController: () => downLoadBinaryController,
|
|
4057
|
-
downloadFileController: () => downloadFileController,
|
|
4058
|
-
durationController: () => durationController,
|
|
4059
|
-
floatController: () => floatController,
|
|
4060
|
-
floatTimeFiledController: () => floatTimeFiledController,
|
|
4061
|
-
getDateRange: () => getDateRange,
|
|
4062
|
-
languages: () => languages,
|
|
4063
|
-
many2manyFieldController: () => many2manyFieldController,
|
|
4064
|
-
many2manyTagsController: () => many2manyTagsController,
|
|
4065
|
-
many2oneButtonController: () => many2oneButtonController,
|
|
4066
|
-
many2oneFieldController: () => many2oneFieldController,
|
|
4067
|
-
mergeButtons: () => mergeButtons,
|
|
4068
|
-
priorityFieldController: () => priorityFieldController,
|
|
4069
|
-
selectProfile: () => selectProfile,
|
|
4070
|
-
setStorageItemAsync: () => setStorageItemAsync,
|
|
4071
|
-
statusDropdownController: () => statusDropdownController,
|
|
4072
|
-
tableBodyController: () => tableBodyController,
|
|
4073
|
-
tableController: () => tableController,
|
|
4074
|
-
tableGroupController: () => tableGroupController,
|
|
4075
|
-
tableHeadController: () => tableHeadController,
|
|
4076
|
-
useAppProvider: () => useAppProvider,
|
|
4077
|
-
useAuth: () => useAuth,
|
|
4078
|
-
useCallAction: () => useCallAction,
|
|
4079
|
-
useClickOutside: () => useClickOutside,
|
|
4080
|
-
useConfig: () => useConfig,
|
|
4081
|
-
useDebounce: () => useDebounce,
|
|
4082
|
-
useDetail: () => useDetail,
|
|
4083
|
-
useGetRowIds: () => useGetRowIds,
|
|
4084
|
-
useListData: () => useListData,
|
|
4085
|
-
useMenu: () => useMenu,
|
|
4086
|
-
useProfile: () => useProfile,
|
|
4087
|
-
useStorageState: () => useStorageState,
|
|
4088
|
-
useUser: () => useUser,
|
|
4089
|
-
useViewV2: () => useViewV2
|
|
4090
|
-
});
|
|
4091
|
-
|
|
4092
|
-
// src/hooks.ts
|
|
4093
|
-
var hooks_exports = {};
|
|
4094
|
-
__export(hooks_exports, {
|
|
4095
|
-
AppProvider: () => AppProvider,
|
|
4096
|
-
useAppProvider: () => useAppProvider,
|
|
4097
|
-
useAuth: () => useAuth,
|
|
4098
|
-
useCallAction: () => useCallAction,
|
|
4099
|
-
useClickOutside: () => useClickOutside,
|
|
4100
|
-
useConfig: () => useConfig,
|
|
4101
|
-
useDebounce: () => useDebounce,
|
|
4102
|
-
useDetail: () => useDetail,
|
|
4103
|
-
useListData: () => useListData,
|
|
4104
|
-
useMenu: () => useMenu,
|
|
4105
|
-
useProfile: () => useProfile,
|
|
4106
|
-
useUser: () => useUser,
|
|
4107
|
-
useViewV2: () => useViewV2
|
|
4108
|
-
});
|
|
4109
|
-
|
|
4110
4034
|
// src/hooks/core/use-call-action.ts
|
|
4111
4035
|
import { useState } from "react";
|
|
4112
4036
|
import { getEnv } from "@fctc/interface-logic/environment";
|
|
@@ -4170,8 +4094,8 @@ var useConfig = ({ localStorageUtils, sessionStorageUtils }) => {
|
|
|
4170
4094
|
}, []);
|
|
4171
4095
|
useEffect(() => {
|
|
4172
4096
|
try {
|
|
4173
|
-
const
|
|
4174
|
-
|
|
4097
|
+
const env2 = getEnv2();
|
|
4098
|
+
env2.setupEnv({
|
|
4175
4099
|
baseUrl: envConfig.baseUrl,
|
|
4176
4100
|
port: 3e3,
|
|
4177
4101
|
config: {
|
|
@@ -4301,7 +4225,7 @@ function useGetRowIds(tableRef) {
|
|
|
4301
4225
|
var getDateRange = (currentDate, unit) => {
|
|
4302
4226
|
const date = new Date(currentDate);
|
|
4303
4227
|
let dateStart, dateEnd;
|
|
4304
|
-
function
|
|
4228
|
+
function formatDate2(d) {
|
|
4305
4229
|
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");
|
|
4306
4230
|
}
|
|
4307
4231
|
switch (unit) {
|
|
@@ -4373,8 +4297,8 @@ var getDateRange = (currentDate, unit) => {
|
|
|
4373
4297
|
);
|
|
4374
4298
|
}
|
|
4375
4299
|
return [
|
|
4376
|
-
["date_start", "<=",
|
|
4377
|
-
["date_end", ">=",
|
|
4300
|
+
["date_start", "<=", formatDate2(dateStart)],
|
|
4301
|
+
["date_end", ">=", formatDate2(dateEnd)]
|
|
4378
4302
|
];
|
|
4379
4303
|
};
|
|
4380
4304
|
var convertFieldsToArray = (fields) => {
|
|
@@ -4608,11 +4532,11 @@ var useProfile = (accessToken) => {
|
|
|
4608
4532
|
useEffect5(() => {
|
|
4609
4533
|
if (userInfoQuery.data) {
|
|
4610
4534
|
const userInfo = userInfoQuery.data;
|
|
4611
|
-
const
|
|
4612
|
-
|
|
4535
|
+
const env2 = getEnv3();
|
|
4536
|
+
env2.setUid(userInfo?.sub);
|
|
4613
4537
|
dispatch(setDataUser(userInfo));
|
|
4614
4538
|
const userLocale = languages.find((lang) => lang?.id === userInfo?.locale);
|
|
4615
|
-
|
|
4539
|
+
env2.setLang(userLocale?.id);
|
|
4616
4540
|
i18n2.changeLanguage(userLocale?.id.split("_")[0]);
|
|
4617
4541
|
}
|
|
4618
4542
|
}, [dispatch, userInfoQuery.data]);
|
|
@@ -4746,9 +4670,9 @@ var useCompany = (accessToken) => {
|
|
|
4746
4670
|
useEffect6(() => {
|
|
4747
4671
|
if (current_company_id) {
|
|
4748
4672
|
const companyIDs = [current_company_id];
|
|
4749
|
-
const
|
|
4750
|
-
|
|
4751
|
-
|
|
4673
|
+
const env2 = getEnv4();
|
|
4674
|
+
env2.setAllowCompanies([...companyIDs]);
|
|
4675
|
+
env2.setCompanies(companyIDs);
|
|
4752
4676
|
}
|
|
4753
4677
|
}, [current_company_id]);
|
|
4754
4678
|
const getCompanyInfo = useGetCompanyInfo();
|
|
@@ -4761,8 +4685,8 @@ var useCompany = (accessToken) => {
|
|
|
4761
4685
|
if (companyInfo.data) {
|
|
4762
4686
|
const companyInfoData = companyInfo.data;
|
|
4763
4687
|
if (companyInfoData?.length) {
|
|
4764
|
-
const
|
|
4765
|
-
|
|
4688
|
+
const env2 = getEnv4();
|
|
4689
|
+
env2.setDefaultCompany(companyInfoData[0]);
|
|
4766
4690
|
}
|
|
4767
4691
|
}
|
|
4768
4692
|
}, [companyInfo.data]);
|
|
@@ -4887,19 +4811,79 @@ function useDebounce(value, delay) {
|
|
|
4887
4811
|
}
|
|
4888
4812
|
|
|
4889
4813
|
// src/hooks.ts
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4814
|
+
import {
|
|
4815
|
+
useButton,
|
|
4816
|
+
useChangeStatus,
|
|
4817
|
+
useDelete,
|
|
4818
|
+
useDeleteComment,
|
|
4819
|
+
useDuplicateRecord,
|
|
4820
|
+
useExecuteImport,
|
|
4821
|
+
useExportExcel,
|
|
4822
|
+
useForgotPassword,
|
|
4823
|
+
useForgotPasswordSSO,
|
|
4824
|
+
useGet2FAMethods,
|
|
4825
|
+
useGetActionDetail,
|
|
4826
|
+
useGetAll,
|
|
4827
|
+
useGetCalendar,
|
|
4828
|
+
useGetComment,
|
|
4829
|
+
useGetCompanyInfo as useGetCompanyInfo2,
|
|
4830
|
+
useGetConversionRate,
|
|
4831
|
+
useGetCurrency,
|
|
4832
|
+
useGetCurrentCompany as useGetCurrentCompany2,
|
|
4833
|
+
useGetDetail as useGetDetail2,
|
|
4834
|
+
useGetFieldExport,
|
|
4835
|
+
useGetFieldOnChange,
|
|
4836
|
+
useGetFileExcel,
|
|
4837
|
+
useGetFormView,
|
|
4838
|
+
useGetGroups,
|
|
4839
|
+
useGetImage,
|
|
4840
|
+
useGetListCompany,
|
|
4841
|
+
useGetListData as useGetListData2,
|
|
4842
|
+
useGetListMyBankAccount,
|
|
4843
|
+
useGetMenu as useGetMenu2,
|
|
4844
|
+
useGetPrintReport,
|
|
4845
|
+
useGetProfile as useGetProfile2,
|
|
4846
|
+
useGetProGressBar,
|
|
4847
|
+
useGetProvider,
|
|
4848
|
+
useGetResequence,
|
|
4849
|
+
useGetSelection,
|
|
4850
|
+
useGetUser,
|
|
4851
|
+
useGetView as useGetView2,
|
|
4852
|
+
useIsValidToken,
|
|
4853
|
+
useLoadAction as useLoadAction2,
|
|
4854
|
+
useLoadMessage,
|
|
4855
|
+
useLoginCredential as useLoginCredential2,
|
|
4856
|
+
useLoginSocial,
|
|
4857
|
+
useModel as useModel2,
|
|
4858
|
+
useOdooDataTransform,
|
|
4859
|
+
useOnChangeForm,
|
|
4860
|
+
useParsePreview,
|
|
4861
|
+
usePrint,
|
|
4862
|
+
useRemoveRow,
|
|
4863
|
+
useResetPassword,
|
|
4864
|
+
useResetPasswordSSO,
|
|
4865
|
+
useRunAction as useRunAction2,
|
|
4866
|
+
useSave,
|
|
4867
|
+
useSendComment,
|
|
4868
|
+
useSignInSSO,
|
|
4869
|
+
useSwitchLocale,
|
|
4870
|
+
useUpdatePassword,
|
|
4871
|
+
useUploadFile,
|
|
4872
|
+
useUploadIdFile,
|
|
4873
|
+
useUploadImage,
|
|
4874
|
+
useVerify2FA,
|
|
4875
|
+
useGetAccessByCode,
|
|
4876
|
+
useLogout,
|
|
4877
|
+
useGrantAccess,
|
|
4878
|
+
useGetFieldsViewSecurity,
|
|
4879
|
+
useRemoveTotpSetup,
|
|
4880
|
+
useRequestSetupTotp,
|
|
4881
|
+
useSettingsWebRead2fa,
|
|
4882
|
+
useVerifyTotp
|
|
4883
|
+
} from "@fctc/interface-logic/hooks";
|
|
4895
4884
|
|
|
4896
4885
|
// src/config.ts
|
|
4897
|
-
|
|
4898
|
-
__reExport(config_exports, configs_star);
|
|
4899
|
-
import * as configs_star from "@fctc/interface-logic/configs";
|
|
4900
|
-
|
|
4901
|
-
// src/index.ts
|
|
4902
|
-
__reExport(index_exports, config_exports);
|
|
4886
|
+
import { axiosClient } from "@fctc/interface-logic/configs";
|
|
4903
4887
|
|
|
4904
4888
|
// src/icons/eye-icon.tsx
|
|
4905
4889
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
@@ -5010,10 +4994,10 @@ var CloseIcon = ({ className = "" }) => {
|
|
|
5010
4994
|
// src/widget/basic/status-dropdown-field/controller.ts
|
|
5011
4995
|
import { useEffect as useEffect9, useRef as useRef3, useState as useState6 } from "react";
|
|
5012
4996
|
import { getEnv as getEnv5 } from "@fctc/interface-logic/environment";
|
|
5013
|
-
import { useSave } from "@fctc/interface-logic/hooks";
|
|
4997
|
+
import { useSave as useSave2 } from "@fctc/interface-logic/hooks";
|
|
5014
4998
|
var statusDropdownController = (props) => {
|
|
5015
4999
|
const { selection, isForm, id, model, name, state, onRefetch } = props;
|
|
5016
|
-
const
|
|
5000
|
+
const env2 = getEnv5();
|
|
5017
5001
|
const colors = {
|
|
5018
5002
|
normal: "bg-[#e9ecef]",
|
|
5019
5003
|
done: "bg-primary",
|
|
@@ -5032,7 +5016,7 @@ var statusDropdownController = (props) => {
|
|
|
5032
5016
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
5033
5017
|
};
|
|
5034
5018
|
}, []);
|
|
5035
|
-
const { mutate: onSave } =
|
|
5019
|
+
const { mutate: onSave } = useSave2();
|
|
5036
5020
|
const handleClick = async (status) => {
|
|
5037
5021
|
setIsOpen(!isOpen);
|
|
5038
5022
|
onSave(
|
|
@@ -5040,7 +5024,7 @@ var statusDropdownController = (props) => {
|
|
|
5040
5024
|
ids: id ? [id] : [],
|
|
5041
5025
|
model: model ?? "",
|
|
5042
5026
|
data: { [name ?? ""]: status },
|
|
5043
|
-
context:
|
|
5027
|
+
context: env2.context
|
|
5044
5028
|
},
|
|
5045
5029
|
{
|
|
5046
5030
|
onSuccess: () => {
|
|
@@ -5063,7 +5047,7 @@ var statusDropdownController = (props) => {
|
|
|
5063
5047
|
|
|
5064
5048
|
// src/widget/basic/many2one-field/controller.ts
|
|
5065
5049
|
import { useCallback as useCallback2, useEffect as useEffect10, useMemo as useMemo8, useState as useState7 } from "react";
|
|
5066
|
-
import { useGetSelection } from "@fctc/interface-logic/hooks";
|
|
5050
|
+
import { useGetSelection as useGetSelection2 } from "@fctc/interface-logic/hooks";
|
|
5067
5051
|
import {
|
|
5068
5052
|
useAppSelector as useAppSelector2,
|
|
5069
5053
|
selectNavbar,
|
|
@@ -5125,7 +5109,7 @@ var many2oneFieldController = (props) => {
|
|
|
5125
5109
|
data: dataOfSelection,
|
|
5126
5110
|
// refetch,
|
|
5127
5111
|
isFetching
|
|
5128
|
-
} =
|
|
5112
|
+
} = useGetSelection2({
|
|
5129
5113
|
data,
|
|
5130
5114
|
queryKey,
|
|
5131
5115
|
enabled: false
|
|
@@ -5241,19 +5225,19 @@ var many2oneFieldController = (props) => {
|
|
|
5241
5225
|
|
|
5242
5226
|
// src/widget/basic/many2one-button-field/controller.ts
|
|
5243
5227
|
import { getEnv as getEnv6 } from "@fctc/interface-logic/environment";
|
|
5244
|
-
import { useGetSelection as
|
|
5228
|
+
import { useGetSelection as useGetSelection3 } from "@fctc/interface-logic/hooks";
|
|
5245
5229
|
import { evalJSONDomain as evalJSONDomain3, evalJSONContext as evalJSONContext3 } from "@fctc/interface-logic/utils";
|
|
5246
5230
|
var many2oneButtonController = (props) => {
|
|
5247
5231
|
const { domain, methods, relation } = props;
|
|
5248
5232
|
const actionDataString = sessionStorage.getItem("actionData");
|
|
5249
|
-
const
|
|
5233
|
+
const env2 = getEnv6();
|
|
5250
5234
|
const domainObject = evalJSONDomain3(domain, methods?.getValues() || {});
|
|
5251
5235
|
const actionData = actionDataString && actionDataString !== "undefined" ? JSON.parse(actionDataString) : {};
|
|
5252
|
-
const { data: dataOfSelection } =
|
|
5236
|
+
const { data: dataOfSelection } = useGetSelection3({
|
|
5253
5237
|
data: {
|
|
5254
5238
|
model: relation ?? "",
|
|
5255
5239
|
domain: domainObject,
|
|
5256
|
-
context: { ...
|
|
5240
|
+
context: { ...env2.context, ...evalJSONContext3(actionData?.context) }
|
|
5257
5241
|
},
|
|
5258
5242
|
queryKey: [`data_${relation}`, domainObject]
|
|
5259
5243
|
});
|
|
@@ -6233,8 +6217,8 @@ var i18n_default = i18n;
|
|
|
6233
6217
|
// src/widget/advance/table/table-group/controller.ts
|
|
6234
6218
|
import { getEnv as getEnv7 } from "@fctc/interface-logic/environment";
|
|
6235
6219
|
import {
|
|
6236
|
-
useOdooDataTransform,
|
|
6237
|
-
useGetListData as
|
|
6220
|
+
useOdooDataTransform as useOdooDataTransform2,
|
|
6221
|
+
useGetListData as useGetListData3
|
|
6238
6222
|
} from "@fctc/interface-logic/hooks";
|
|
6239
6223
|
import {
|
|
6240
6224
|
useAppSelector as useAppSelector5,
|
|
@@ -6244,7 +6228,7 @@ import {
|
|
|
6244
6228
|
setSelectedRowKeys as setSelectedRowKeys3
|
|
6245
6229
|
} from "@fctc/interface-logic/store";
|
|
6246
6230
|
var tableGroupController = (props) => {
|
|
6247
|
-
const
|
|
6231
|
+
const env2 = getEnv7();
|
|
6248
6232
|
const {
|
|
6249
6233
|
rows,
|
|
6250
6234
|
columns,
|
|
@@ -6267,7 +6251,7 @@ var tableGroupController = (props) => {
|
|
|
6267
6251
|
const { groupByDomain, selectedTags } = useAppSelector5(selectSearch4);
|
|
6268
6252
|
const { selectedRowKeys } = useAppSelector5(selectList3);
|
|
6269
6253
|
const appDispatch = useAppDispatch7();
|
|
6270
|
-
const { toDataJS } =
|
|
6254
|
+
const { toDataJS } = useOdooDataTransform2();
|
|
6271
6255
|
const initVal = toDataJS(row, viewData, model);
|
|
6272
6256
|
const [isShowGroup, setIsShowGroup] = useState9(false);
|
|
6273
6257
|
const [colEmptyGroup, setColEmptyGroup] = useState9({
|
|
@@ -6314,7 +6298,7 @@ var tableGroupController = (props) => {
|
|
|
6314
6298
|
isPlaceholderData,
|
|
6315
6299
|
isLoading,
|
|
6316
6300
|
isFetching
|
|
6317
|
-
} =
|
|
6301
|
+
} = useGetListData3(listDataProps, queryKey, enabled);
|
|
6318
6302
|
const {
|
|
6319
6303
|
columns: columnsGroup,
|
|
6320
6304
|
rows: rowsGroup,
|
|
@@ -6324,7 +6308,7 @@ var tableGroupController = (props) => {
|
|
|
6324
6308
|
fields: viewData?.views?.list?.fields,
|
|
6325
6309
|
records: dataResponse?.records ?? dataResponse?.groups,
|
|
6326
6310
|
dataModel: viewData?.models?.[model],
|
|
6327
|
-
context:
|
|
6311
|
+
context: env2.context,
|
|
6328
6312
|
typeTable: dataResponse?.groups ? "group" : "list"
|
|
6329
6313
|
}
|
|
6330
6314
|
});
|
|
@@ -6425,9 +6409,9 @@ var many2manyFieldController = (props) => {
|
|
|
6425
6409
|
tab,
|
|
6426
6410
|
model,
|
|
6427
6411
|
aid,
|
|
6428
|
-
setSelectedRowKeys:
|
|
6412
|
+
setSelectedRowKeys: setSelectedRowKeys5,
|
|
6429
6413
|
fields,
|
|
6430
|
-
setFields,
|
|
6414
|
+
setFields: setFields2,
|
|
6431
6415
|
groupByDomain,
|
|
6432
6416
|
page,
|
|
6433
6417
|
options,
|
|
@@ -6436,10 +6420,10 @@ var many2manyFieldController = (props) => {
|
|
|
6436
6420
|
const appDispatch = useAppDispatch8();
|
|
6437
6421
|
const actionData = sessionStorageUtils.getActionData();
|
|
6438
6422
|
const [debouncedPage] = useDebounce(page, 500);
|
|
6439
|
-
const [order,
|
|
6423
|
+
const [order, setOrder2] = useState10();
|
|
6440
6424
|
const [isLoadedData, setIsLoadedData] = useState10(false);
|
|
6441
6425
|
const [domainMany2Many, setDomainMany2Many] = useState10(domain);
|
|
6442
|
-
const
|
|
6426
|
+
const env2 = getEnv8();
|
|
6443
6427
|
const { selectedTags } = useAppSelector6(selectSearch5);
|
|
6444
6428
|
const viewParams = {
|
|
6445
6429
|
model: relation,
|
|
@@ -6449,7 +6433,7 @@ var many2manyFieldController = (props) => {
|
|
|
6449
6433
|
],
|
|
6450
6434
|
context
|
|
6451
6435
|
};
|
|
6452
|
-
const { data: viewResponse, isFetched: isViewReponseFetched } = (
|
|
6436
|
+
const { data: viewResponse, isFetched: isViewReponseFetched } = useGetView2(
|
|
6453
6437
|
viewParams,
|
|
6454
6438
|
actionData
|
|
6455
6439
|
);
|
|
@@ -6465,7 +6449,7 @@ var many2manyFieldController = (props) => {
|
|
|
6465
6449
|
}),
|
|
6466
6450
|
[model, viewResponse]
|
|
6467
6451
|
);
|
|
6468
|
-
const initModel = (
|
|
6452
|
+
const initModel = useModel2();
|
|
6469
6453
|
const modelInstance = useMemo12(() => {
|
|
6470
6454
|
if (viewResponse) {
|
|
6471
6455
|
return initModel.initModel(baseModel);
|
|
@@ -6490,7 +6474,7 @@ var many2manyFieldController = (props) => {
|
|
|
6490
6474
|
...field
|
|
6491
6475
|
}));
|
|
6492
6476
|
if (!fields?.[`${aid}_${relation}_popupmany2many`] && modalData) {
|
|
6493
|
-
|
|
6477
|
+
setFields2({
|
|
6494
6478
|
...fields,
|
|
6495
6479
|
[`${aid}_${relation}_popupmany2many`]: modalData
|
|
6496
6480
|
});
|
|
@@ -6525,19 +6509,19 @@ var many2manyFieldController = (props) => {
|
|
|
6525
6509
|
isLoading: isDataLoading,
|
|
6526
6510
|
isFetched: isDataResponseFetched,
|
|
6527
6511
|
isPlaceholderData
|
|
6528
|
-
} = (
|
|
6512
|
+
} = useGetListData2(data, queryKey, enabled);
|
|
6529
6513
|
useEffect14(() => {
|
|
6530
6514
|
if (viewResponse) {
|
|
6531
6515
|
fetchData();
|
|
6532
6516
|
}
|
|
6533
6517
|
return () => {
|
|
6534
6518
|
appDispatch(setGroupByDomain(null));
|
|
6535
|
-
|
|
6519
|
+
setFields2((prevFields) => ({
|
|
6536
6520
|
...prevFields,
|
|
6537
6521
|
[`${aid}_${relation}_popupmany2many`]: null
|
|
6538
6522
|
}));
|
|
6539
6523
|
appDispatch(setPage(0));
|
|
6540
|
-
|
|
6524
|
+
setSelectedRowKeys5([]);
|
|
6541
6525
|
setDomainMany2Many(null);
|
|
6542
6526
|
setIsLoadedData(false);
|
|
6543
6527
|
};
|
|
@@ -6547,7 +6531,7 @@ var many2manyFieldController = (props) => {
|
|
|
6547
6531
|
fields: fields?.[`${aid}_${relation}_popupmany2many`] || viewResponse?.views?.list?.fields,
|
|
6548
6532
|
records: dataResponse?.records ?? dataResponse?.groups,
|
|
6549
6533
|
dataModel: viewResponse?.models?.[String(relation)],
|
|
6550
|
-
context: { ...
|
|
6534
|
+
context: { ...env2.context, ...context },
|
|
6551
6535
|
typeTable: dataResponse?.groups ? "group" : "list"
|
|
6552
6536
|
}
|
|
6553
6537
|
});
|
|
@@ -6560,7 +6544,7 @@ var many2manyFieldController = (props) => {
|
|
|
6560
6544
|
refetch,
|
|
6561
6545
|
data: dataFormViewResponse,
|
|
6562
6546
|
isSuccess
|
|
6563
|
-
} =
|
|
6547
|
+
} = useGetFormView({
|
|
6564
6548
|
data: dataFormView,
|
|
6565
6549
|
queryKey: [`form-view-action-${relation}`],
|
|
6566
6550
|
enabled: false
|
|
@@ -6590,7 +6574,7 @@ var many2manyFieldController = (props) => {
|
|
|
6590
6574
|
import { useMemo as useMemo13 } from "react";
|
|
6591
6575
|
import { WIDGETAVATAR, WIDGETCOLOR } from "@fctc/interface-logic/constants";
|
|
6592
6576
|
import { getEnv as getEnv9 } from "@fctc/interface-logic/environment";
|
|
6593
|
-
import { useGetSelection as
|
|
6577
|
+
import { useGetSelection as useGetSelection4 } from "@fctc/interface-logic/hooks";
|
|
6594
6578
|
import { evalJSONContext as evalJSONContext5, evalJSONDomain as evalJSONDomain4 } from "@fctc/interface-logic/utils";
|
|
6595
6579
|
var many2manyTagsController = (props) => {
|
|
6596
6580
|
const {
|
|
@@ -6602,7 +6586,7 @@ var many2manyTagsController = (props) => {
|
|
|
6602
6586
|
placeholderNoOption
|
|
6603
6587
|
} = props;
|
|
6604
6588
|
const isUser = relation === "res.users" || relation === "res.partner";
|
|
6605
|
-
const
|
|
6589
|
+
const env2 = getEnv9();
|
|
6606
6590
|
const addtionalFields = optionsFields ? evalJSONContext5(optionsFields) : null;
|
|
6607
6591
|
const domainObject = useMemo13(
|
|
6608
6592
|
() => evalJSONDomain4(domain, JSON.parse(JSON.stringify(formValues || {}))),
|
|
@@ -6619,9 +6603,9 @@ var many2manyTagsController = (props) => {
|
|
|
6619
6603
|
...widget && WIDGETCOLOR[widget] && addtionalFields?.color_field ? { color: {} } : {}
|
|
6620
6604
|
},
|
|
6621
6605
|
enabled: true,
|
|
6622
|
-
context:
|
|
6606
|
+
context: env2.context
|
|
6623
6607
|
};
|
|
6624
|
-
const { data: dataOfSelection } =
|
|
6608
|
+
const { data: dataOfSelection } = useGetSelection4({
|
|
6625
6609
|
data,
|
|
6626
6610
|
queryKey: [`data_${relation}`, domainObject]
|
|
6627
6611
|
});
|
|
@@ -6648,7 +6632,7 @@ var many2manyTagsController = (props) => {
|
|
|
6648
6632
|
|
|
6649
6633
|
// src/widget/basic/status-bar-field/controller.ts
|
|
6650
6634
|
import { useState as useState11 } from "react";
|
|
6651
|
-
import { useGetListData as useGetListData4, useChangeStatus } from "@fctc/interface-logic/hooks";
|
|
6635
|
+
import { useGetListData as useGetListData4, useChangeStatus as useChangeStatus2 } from "@fctc/interface-logic/hooks";
|
|
6652
6636
|
import { useAppSelector as useAppSelector7, selectEnv as selectEnv2 } from "@fctc/interface-logic/store";
|
|
6653
6637
|
import { evalJSONDomain as evalJSONDomain5 } from "@fctc/interface-logic/utils";
|
|
6654
6638
|
var durationController = (props) => {
|
|
@@ -6685,7 +6669,7 @@ var durationController = (props) => {
|
|
|
6685
6669
|
sort: ""
|
|
6686
6670
|
};
|
|
6687
6671
|
const { data: dataResponse } = useGetListData4(listDataProps, queryKey);
|
|
6688
|
-
const { mutate: fetchChangeStatus } =
|
|
6672
|
+
const { mutate: fetchChangeStatus } = useChangeStatus2();
|
|
6689
6673
|
const handleClick = async (stage_id) => {
|
|
6690
6674
|
setDisabled(true);
|
|
6691
6675
|
if (stage_id) {
|
|
@@ -6721,7 +6705,7 @@ var durationController = (props) => {
|
|
|
6721
6705
|
};
|
|
6722
6706
|
|
|
6723
6707
|
// src/widget/basic/priority-field/controller.ts
|
|
6724
|
-
import { useSave as
|
|
6708
|
+
import { useSave as useSave3 } from "@fctc/interface-logic/hooks";
|
|
6725
6709
|
import { evalJSONContext as evalJSONContext6 } from "@fctc/interface-logic/utils";
|
|
6726
6710
|
var priorityFieldController = (props) => {
|
|
6727
6711
|
const {
|
|
@@ -6741,7 +6725,7 @@ var priorityFieldController = (props) => {
|
|
|
6741
6725
|
const contextObject = { ...context, ..._context };
|
|
6742
6726
|
const defaultPriority = parseInt(value) + 1;
|
|
6743
6727
|
const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
|
|
6744
|
-
const { mutateAsync: fetchSave } =
|
|
6728
|
+
const { mutateAsync: fetchSave } = useSave3();
|
|
6745
6729
|
const savePriorities = async ({
|
|
6746
6730
|
value: value2,
|
|
6747
6731
|
resetPriority
|
|
@@ -7067,7 +7051,7 @@ var dateFieldController = (props) => {
|
|
|
7067
7051
|
}
|
|
7068
7052
|
return arr;
|
|
7069
7053
|
};
|
|
7070
|
-
const
|
|
7054
|
+
const formatDate2 = showTime ? "DD/MM/YYYY HH:mm:ss" : "DD/MM/YYYY";
|
|
7071
7055
|
const formatDateParse = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
7072
7056
|
const fieldForCustom = widget === "datetime_custom" || widget === "date_custom";
|
|
7073
7057
|
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);
|
|
@@ -7142,7 +7126,7 @@ var dateFieldController = (props) => {
|
|
|
7142
7126
|
return false;
|
|
7143
7127
|
};
|
|
7144
7128
|
return {
|
|
7145
|
-
formatDate,
|
|
7129
|
+
formatDate: formatDate2,
|
|
7146
7130
|
formatDateParse,
|
|
7147
7131
|
range,
|
|
7148
7132
|
years,
|
|
@@ -7175,15 +7159,15 @@ var copyLinkButtonController = (props) => {
|
|
|
7175
7159
|
|
|
7176
7160
|
// src/widget/basic/color-field/color-controller.ts
|
|
7177
7161
|
import { getEnv as getEnv10 } from "@fctc/interface-logic/environment";
|
|
7178
|
-
import { useSave as
|
|
7162
|
+
import { useSave as useSave4 } from "@fctc/interface-logic/hooks";
|
|
7179
7163
|
import { evalJSONContext as evalJSONContext7 } from "@fctc/interface-logic/utils";
|
|
7180
7164
|
var colorFieldController = (props) => {
|
|
7181
7165
|
const { value, isForm, name, formValues, idForm, model, actionData } = props;
|
|
7182
|
-
const
|
|
7166
|
+
const env2 = getEnv10();
|
|
7183
7167
|
const _context = { ...evalJSONContext7(actionData?.context) || {} };
|
|
7184
|
-
const contextObject = { ...
|
|
7168
|
+
const contextObject = { ...env2.context, ..._context };
|
|
7185
7169
|
const idDefault = isForm ? idForm : formValues?.id;
|
|
7186
|
-
const { mutate: onSave } =
|
|
7170
|
+
const { mutate: onSave } = useSave4();
|
|
7187
7171
|
const savePickColor = async (colorObject) => {
|
|
7188
7172
|
const { id } = colorObject;
|
|
7189
7173
|
if (value === id) return;
|
|
@@ -7264,7 +7248,7 @@ var binaryFieldController = (props) => {
|
|
|
7264
7248
|
const isBlobUrl = (url) => {
|
|
7265
7249
|
return /^blob:/.test(url);
|
|
7266
7250
|
};
|
|
7267
|
-
const
|
|
7251
|
+
const checkIsImageLink2 = (url) => {
|
|
7268
7252
|
const imageExtensions = /\.(jpg|jpeg|png|gif|bmp|webp|svg|tiff|ico)$/i;
|
|
7269
7253
|
return imageExtensions.test(url) || isBase64Image(url) || isBlobUrl(url);
|
|
7270
7254
|
};
|
|
@@ -7300,116 +7284,451 @@ var binaryFieldController = (props) => {
|
|
|
7300
7284
|
binaryRef,
|
|
7301
7285
|
handleImageChange,
|
|
7302
7286
|
handleRemoveImage,
|
|
7303
|
-
checkIsImageLink,
|
|
7287
|
+
checkIsImageLink: checkIsImageLink2,
|
|
7304
7288
|
getImageBase64WithMimeType
|
|
7305
7289
|
};
|
|
7306
7290
|
};
|
|
7307
7291
|
|
|
7308
7292
|
// src/utils.ts
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7293
|
+
import {
|
|
7294
|
+
checkIsImageLink,
|
|
7295
|
+
convertFloatToTime as convertFloatToTime2,
|
|
7296
|
+
convertTimeToFloat as convertTimeToFloat2,
|
|
7297
|
+
copyTextToClipboard as copyTextToClipboard2,
|
|
7298
|
+
domainHelper as domainHelper2,
|
|
7299
|
+
evalJSONContext as evalJSONContext8,
|
|
7300
|
+
evalJSONDomain as evalJSONDomain6,
|
|
7301
|
+
filterFieldDirty,
|
|
7302
|
+
formatCurrency,
|
|
7303
|
+
formatDate,
|
|
7304
|
+
formatFileSize,
|
|
7305
|
+
formatSortingString as formatSortingString3,
|
|
7306
|
+
formatUrlPath,
|
|
7307
|
+
getFieldsOnChange,
|
|
7308
|
+
getOffSet,
|
|
7309
|
+
getSubdomain,
|
|
7310
|
+
handleError,
|
|
7311
|
+
isBase64File,
|
|
7312
|
+
isBase64Image as isBase64Image2,
|
|
7313
|
+
isObjectEmpty,
|
|
7314
|
+
mergeObjects,
|
|
7315
|
+
removeUndefinedFields,
|
|
7316
|
+
resequence,
|
|
7317
|
+
stringToColor,
|
|
7318
|
+
toQueryString,
|
|
7319
|
+
useTabModel,
|
|
7320
|
+
validateAndParseDate,
|
|
7321
|
+
WesapError,
|
|
7322
|
+
useField,
|
|
7323
|
+
updateTokenParamInOriginalRequest
|
|
7324
|
+
} from "@fctc/interface-logic/utils";
|
|
7329
7325
|
|
|
7330
7326
|
// src/store.ts
|
|
7331
|
-
import {
|
|
7327
|
+
import {
|
|
7328
|
+
AppDispatch,
|
|
7329
|
+
breadcrumbsSlice,
|
|
7330
|
+
clearSearchMap,
|
|
7331
|
+
envSlice,
|
|
7332
|
+
excelSlice,
|
|
7333
|
+
formSlice,
|
|
7334
|
+
headerSlice,
|
|
7335
|
+
listSlice,
|
|
7336
|
+
loginSlice,
|
|
7337
|
+
navbarSlice,
|
|
7338
|
+
profileSlice,
|
|
7339
|
+
removeKeyFromSearchMap,
|
|
7340
|
+
RootState,
|
|
7341
|
+
searchSlice,
|
|
7342
|
+
selectBreadCrumbs,
|
|
7343
|
+
selectEnv as selectEnv3,
|
|
7344
|
+
selectExcel,
|
|
7345
|
+
selectForm,
|
|
7346
|
+
selectHeader,
|
|
7347
|
+
selectList as selectList4,
|
|
7348
|
+
selectLogin,
|
|
7349
|
+
selectNavbar as selectNavbar2,
|
|
7350
|
+
selectProfile,
|
|
7351
|
+
selectSearch as selectSearch6,
|
|
7352
|
+
selectSearchMap,
|
|
7353
|
+
setAllowCompanies,
|
|
7354
|
+
setAllowedCompanyIds,
|
|
7355
|
+
setBreadCrumbs,
|
|
7356
|
+
setCompanies,
|
|
7357
|
+
setConfig,
|
|
7358
|
+
setDataParse,
|
|
7359
|
+
setDataUser as setDataUser3,
|
|
7360
|
+
setDb,
|
|
7361
|
+
setDefaultCompany,
|
|
7362
|
+
setDomainTable,
|
|
7363
|
+
setEnv,
|
|
7364
|
+
setEnvFile as setEnvFile2,
|
|
7365
|
+
setErrorData,
|
|
7366
|
+
setFields,
|
|
7367
|
+
setFieldTranslate,
|
|
7368
|
+
setFilterBy,
|
|
7369
|
+
setFirstDomain as setFirstDomain2,
|
|
7370
|
+
setForgotPasswordUrl,
|
|
7371
|
+
setFormSubmitComponent,
|
|
7372
|
+
setGroupBy,
|
|
7373
|
+
setGroupByDomain as setGroupByDomain2,
|
|
7374
|
+
setHeader,
|
|
7375
|
+
setHoveredIndexSearchList,
|
|
7376
|
+
setIdFile,
|
|
7377
|
+
setIndexRowTableModal,
|
|
7378
|
+
setIsFileLoaded,
|
|
7379
|
+
setIsShowingModalDetail,
|
|
7380
|
+
setIsShowModalTranslate,
|
|
7381
|
+
setIsUpdateTableModal,
|
|
7382
|
+
setLang,
|
|
7383
|
+
setListSubject as setListSubject2,
|
|
7384
|
+
setLoadingImport,
|
|
7385
|
+
setMenuFocus,
|
|
7386
|
+
setMenuFocusAction,
|
|
7387
|
+
setMenuList as setMenuList2,
|
|
7388
|
+
setNavbarWidth,
|
|
7389
|
+
setSearchBy,
|
|
7390
|
+
setOrder,
|
|
7391
|
+
setPage as setPage2,
|
|
7392
|
+
setPageLimit,
|
|
7393
|
+
setProfile as setProfile3,
|
|
7394
|
+
setRedirectTo,
|
|
7395
|
+
setSearchMap,
|
|
7396
|
+
setSearchString,
|
|
7397
|
+
setSelectedFile,
|
|
7398
|
+
setSelectedRadioKey,
|
|
7399
|
+
setSelectedRowKeys as setSelectedRowKeys4,
|
|
7400
|
+
setSelectedTags,
|
|
7401
|
+
setTransferDetail,
|
|
7402
|
+
setUid,
|
|
7403
|
+
setUser,
|
|
7404
|
+
setViewDataStore as setViewDataStore2,
|
|
7405
|
+
updateSearchMap,
|
|
7406
|
+
useAppDispatch as useAppDispatch9,
|
|
7407
|
+
useAppSelector as useAppSelector8,
|
|
7408
|
+
BreadcrumbsState,
|
|
7409
|
+
ExcelState,
|
|
7410
|
+
FormState,
|
|
7411
|
+
ListState,
|
|
7412
|
+
LoginStateType,
|
|
7413
|
+
NavbarStateType,
|
|
7414
|
+
ProfileStateType,
|
|
7415
|
+
SearchState,
|
|
7416
|
+
UserInfor,
|
|
7417
|
+
ViewDataStore,
|
|
7418
|
+
envStore
|
|
7419
|
+
} from "@fctc/interface-logic/store";
|
|
7332
7420
|
|
|
7333
7421
|
// src/constants.ts
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7422
|
+
import {
|
|
7423
|
+
ComponentType,
|
|
7424
|
+
FieldTypeConstants,
|
|
7425
|
+
KeyConstants,
|
|
7426
|
+
MethodConstants,
|
|
7427
|
+
MethodType,
|
|
7428
|
+
ModelConstants,
|
|
7429
|
+
SearchType,
|
|
7430
|
+
UriConstants,
|
|
7431
|
+
WIDGETAVATAR as WIDGETAVATAR2,
|
|
7432
|
+
WIDGETCOLOR as WIDGETCOLOR2,
|
|
7433
|
+
WIDGETCURRENCY,
|
|
7434
|
+
WIDGETNOSTRING,
|
|
7435
|
+
WIDGETSTATUS
|
|
7436
|
+
} from "@fctc/interface-logic/constants";
|
|
7340
7437
|
|
|
7341
7438
|
// src/environment.ts
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7439
|
+
import {
|
|
7440
|
+
EnvStore as EnvStore2,
|
|
7441
|
+
env,
|
|
7442
|
+
getEnv as getEnv11,
|
|
7443
|
+
initEnv
|
|
7444
|
+
} from "@fctc/interface-logic/environment";
|
|
7348
7445
|
|
|
7349
7446
|
// src/provider.ts
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
__reExport(index_exports, provider_exports);
|
|
7447
|
+
import {
|
|
7448
|
+
MainProvider,
|
|
7449
|
+
ReactQueryProvider,
|
|
7450
|
+
VersionGate
|
|
7451
|
+
} from "@fctc/interface-logic/provider";
|
|
7356
7452
|
|
|
7357
7453
|
// src/services.ts
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7454
|
+
import {
|
|
7455
|
+
ViewService,
|
|
7456
|
+
ActionService,
|
|
7457
|
+
AuthService,
|
|
7458
|
+
CompanyService,
|
|
7459
|
+
ExcelService,
|
|
7460
|
+
FormService,
|
|
7461
|
+
KanbanService,
|
|
7462
|
+
ModelService,
|
|
7463
|
+
UserService
|
|
7464
|
+
} from "@fctc/interface-logic/services";
|
|
7364
7465
|
export {
|
|
7365
7466
|
API_APP_URL,
|
|
7366
7467
|
API_PRESCHOOL_URL,
|
|
7468
|
+
ActionService,
|
|
7469
|
+
AppDispatch,
|
|
7367
7470
|
AppProvider,
|
|
7471
|
+
AuthService,
|
|
7472
|
+
BreadcrumbsState,
|
|
7368
7473
|
CloseIcon,
|
|
7474
|
+
CompanyService,
|
|
7475
|
+
ComponentType,
|
|
7476
|
+
EnvStore2 as EnvStore,
|
|
7477
|
+
ExcelService,
|
|
7478
|
+
ExcelState,
|
|
7369
7479
|
EyeIcon,
|
|
7480
|
+
FieldTypeConstants,
|
|
7481
|
+
FormService,
|
|
7482
|
+
FormState,
|
|
7483
|
+
KanbanService,
|
|
7484
|
+
KeyConstants,
|
|
7485
|
+
ListState,
|
|
7370
7486
|
LoadingIcon,
|
|
7487
|
+
LoginStateType,
|
|
7488
|
+
MainProvider,
|
|
7489
|
+
MethodConstants,
|
|
7490
|
+
MethodType,
|
|
7491
|
+
ModelConstants,
|
|
7492
|
+
ModelService,
|
|
7493
|
+
NavbarStateType,
|
|
7494
|
+
ProfileStateType,
|
|
7495
|
+
ReactQueryProvider,
|
|
7496
|
+
RootState,
|
|
7371
7497
|
STORAGES,
|
|
7498
|
+
SearchState,
|
|
7499
|
+
SearchType,
|
|
7500
|
+
UriConstants,
|
|
7501
|
+
UserInfor,
|
|
7502
|
+
UserService,
|
|
7503
|
+
VersionGate,
|
|
7504
|
+
ViewDataStore,
|
|
7505
|
+
ViewService,
|
|
7506
|
+
WIDGETAVATAR2 as WIDGETAVATAR,
|
|
7507
|
+
WIDGETCOLOR2 as WIDGETCOLOR,
|
|
7508
|
+
WIDGETCURRENCY,
|
|
7509
|
+
WIDGETNOSTRING,
|
|
7510
|
+
WIDGETSTATUS,
|
|
7511
|
+
WesapError,
|
|
7512
|
+
axiosClient,
|
|
7372
7513
|
binaryFieldController,
|
|
7514
|
+
breadcrumbsSlice,
|
|
7515
|
+
checkIsImageLink,
|
|
7516
|
+
clearSearchMap,
|
|
7373
7517
|
colorFieldController,
|
|
7374
7518
|
combineContexts,
|
|
7375
7519
|
convertFieldsToArray,
|
|
7520
|
+
convertFloatToTime2 as convertFloatToTime,
|
|
7521
|
+
convertTimeToFloat2 as convertTimeToFloat,
|
|
7376
7522
|
copyLinkButtonController,
|
|
7523
|
+
copyTextToClipboard2 as copyTextToClipboard,
|
|
7377
7524
|
countSum,
|
|
7378
7525
|
dateFieldController,
|
|
7526
|
+
domainHelper2 as domainHelper,
|
|
7379
7527
|
downLoadBinaryController,
|
|
7380
7528
|
downloadFileController,
|
|
7381
7529
|
durationController,
|
|
7530
|
+
env,
|
|
7531
|
+
envSlice,
|
|
7532
|
+
envStore,
|
|
7533
|
+
evalJSONContext8 as evalJSONContext,
|
|
7534
|
+
evalJSONDomain6 as evalJSONDomain,
|
|
7535
|
+
excelSlice,
|
|
7536
|
+
filterFieldDirty,
|
|
7382
7537
|
floatController,
|
|
7383
7538
|
floatTimeFiledController,
|
|
7539
|
+
formSlice,
|
|
7540
|
+
formatCurrency,
|
|
7541
|
+
formatDate,
|
|
7542
|
+
formatFileSize,
|
|
7543
|
+
formatSortingString3 as formatSortingString,
|
|
7544
|
+
formatUrlPath,
|
|
7384
7545
|
getDateRange,
|
|
7546
|
+
getEnv11 as getEnv,
|
|
7547
|
+
getFieldsOnChange,
|
|
7548
|
+
getOffSet,
|
|
7549
|
+
getSubdomain,
|
|
7550
|
+
handleError,
|
|
7551
|
+
headerSlice,
|
|
7552
|
+
initEnv,
|
|
7553
|
+
isBase64File,
|
|
7554
|
+
isBase64Image2 as isBase64Image,
|
|
7555
|
+
isObjectEmpty,
|
|
7385
7556
|
languages,
|
|
7557
|
+
listSlice,
|
|
7558
|
+
loginSlice,
|
|
7386
7559
|
many2manyFieldController,
|
|
7387
7560
|
many2manyTagsController,
|
|
7388
7561
|
many2oneButtonController,
|
|
7389
7562
|
many2oneFieldController,
|
|
7390
7563
|
mergeButtons,
|
|
7564
|
+
mergeObjects,
|
|
7565
|
+
navbarSlice,
|
|
7391
7566
|
priorityFieldController,
|
|
7567
|
+
profileSlice,
|
|
7568
|
+
removeKeyFromSearchMap,
|
|
7569
|
+
removeUndefinedFields,
|
|
7570
|
+
resequence,
|
|
7571
|
+
searchSlice,
|
|
7572
|
+
selectBreadCrumbs,
|
|
7573
|
+
selectEnv3 as selectEnv,
|
|
7574
|
+
selectExcel,
|
|
7575
|
+
selectForm,
|
|
7576
|
+
selectHeader,
|
|
7577
|
+
selectList4 as selectList,
|
|
7578
|
+
selectLogin,
|
|
7579
|
+
selectNavbar2 as selectNavbar,
|
|
7392
7580
|
selectProfile,
|
|
7581
|
+
selectSearch6 as selectSearch,
|
|
7582
|
+
selectSearchMap,
|
|
7583
|
+
setAllowCompanies,
|
|
7584
|
+
setAllowedCompanyIds,
|
|
7585
|
+
setBreadCrumbs,
|
|
7586
|
+
setCompanies,
|
|
7587
|
+
setConfig,
|
|
7588
|
+
setDataParse,
|
|
7589
|
+
setDataUser3 as setDataUser,
|
|
7590
|
+
setDb,
|
|
7591
|
+
setDefaultCompany,
|
|
7592
|
+
setDomainTable,
|
|
7593
|
+
setEnv,
|
|
7594
|
+
setEnvFile2 as setEnvFile,
|
|
7595
|
+
setErrorData,
|
|
7596
|
+
setFieldTranslate,
|
|
7597
|
+
setFields,
|
|
7598
|
+
setFilterBy,
|
|
7599
|
+
setFirstDomain2 as setFirstDomain,
|
|
7600
|
+
setForgotPasswordUrl,
|
|
7601
|
+
setFormSubmitComponent,
|
|
7602
|
+
setGroupBy,
|
|
7603
|
+
setGroupByDomain2 as setGroupByDomain,
|
|
7604
|
+
setHeader,
|
|
7605
|
+
setHoveredIndexSearchList,
|
|
7606
|
+
setIdFile,
|
|
7607
|
+
setIndexRowTableModal,
|
|
7608
|
+
setIsFileLoaded,
|
|
7609
|
+
setIsShowModalTranslate,
|
|
7610
|
+
setIsShowingModalDetail,
|
|
7611
|
+
setIsUpdateTableModal,
|
|
7612
|
+
setLang,
|
|
7613
|
+
setListSubject2 as setListSubject,
|
|
7614
|
+
setLoadingImport,
|
|
7615
|
+
setMenuFocus,
|
|
7616
|
+
setMenuFocusAction,
|
|
7617
|
+
setMenuList2 as setMenuList,
|
|
7618
|
+
setNavbarWidth,
|
|
7619
|
+
setOrder,
|
|
7620
|
+
setPage2 as setPage,
|
|
7621
|
+
setPageLimit,
|
|
7622
|
+
setProfile3 as setProfile,
|
|
7623
|
+
setRedirectTo,
|
|
7624
|
+
setSearchBy,
|
|
7625
|
+
setSearchMap,
|
|
7626
|
+
setSearchString,
|
|
7627
|
+
setSelectedFile,
|
|
7628
|
+
setSelectedRadioKey,
|
|
7629
|
+
setSelectedRowKeys4 as setSelectedRowKeys,
|
|
7630
|
+
setSelectedTags,
|
|
7393
7631
|
setStorageItemAsync,
|
|
7632
|
+
setTransferDetail,
|
|
7633
|
+
setUid,
|
|
7634
|
+
setUser,
|
|
7635
|
+
setViewDataStore2 as setViewDataStore,
|
|
7394
7636
|
statusDropdownController,
|
|
7637
|
+
stringToColor,
|
|
7395
7638
|
tableBodyController,
|
|
7396
7639
|
tableController,
|
|
7397
7640
|
tableGroupController,
|
|
7398
7641
|
tableHeadController,
|
|
7642
|
+
toQueryString,
|
|
7643
|
+
updateSearchMap,
|
|
7644
|
+
updateTokenParamInOriginalRequest,
|
|
7645
|
+
useAppDispatch9 as useAppDispatch,
|
|
7399
7646
|
useAppProvider,
|
|
7647
|
+
useAppSelector8 as useAppSelector,
|
|
7400
7648
|
useAuth,
|
|
7649
|
+
useButton,
|
|
7401
7650
|
useCallAction,
|
|
7651
|
+
useChangeStatus,
|
|
7402
7652
|
useClickOutside,
|
|
7403
7653
|
useConfig,
|
|
7404
7654
|
useDebounce,
|
|
7655
|
+
useDelete,
|
|
7656
|
+
useDeleteComment,
|
|
7405
7657
|
useDetail,
|
|
7658
|
+
useDuplicateRecord,
|
|
7659
|
+
useExecuteImport,
|
|
7660
|
+
useExportExcel,
|
|
7661
|
+
useField,
|
|
7662
|
+
useForgotPassword,
|
|
7663
|
+
useForgotPasswordSSO,
|
|
7664
|
+
useGet2FAMethods,
|
|
7665
|
+
useGetAccessByCode,
|
|
7666
|
+
useGetActionDetail,
|
|
7667
|
+
useGetAll,
|
|
7668
|
+
useGetCalendar,
|
|
7669
|
+
useGetComment,
|
|
7670
|
+
useGetCompanyInfo2 as useGetCompanyInfo,
|
|
7671
|
+
useGetConversionRate,
|
|
7672
|
+
useGetCurrency,
|
|
7673
|
+
useGetCurrentCompany2 as useGetCurrentCompany,
|
|
7674
|
+
useGetDetail2 as useGetDetail,
|
|
7675
|
+
useGetFieldExport,
|
|
7676
|
+
useGetFieldOnChange,
|
|
7677
|
+
useGetFieldsViewSecurity,
|
|
7678
|
+
useGetFileExcel,
|
|
7679
|
+
useGetFormView,
|
|
7680
|
+
useGetGroups,
|
|
7681
|
+
useGetImage,
|
|
7682
|
+
useGetListCompany,
|
|
7683
|
+
useGetListData2 as useGetListData,
|
|
7684
|
+
useGetListMyBankAccount,
|
|
7685
|
+
useGetMenu2 as useGetMenu,
|
|
7686
|
+
useGetPrintReport,
|
|
7687
|
+
useGetProGressBar,
|
|
7688
|
+
useGetProfile2 as useGetProfile,
|
|
7689
|
+
useGetProvider,
|
|
7690
|
+
useGetResequence,
|
|
7406
7691
|
useGetRowIds,
|
|
7692
|
+
useGetSelection,
|
|
7693
|
+
useGetUser,
|
|
7694
|
+
useGetView2 as useGetView,
|
|
7695
|
+
useGrantAccess,
|
|
7696
|
+
useIsValidToken,
|
|
7407
7697
|
useListData,
|
|
7698
|
+
useLoadAction2 as useLoadAction,
|
|
7699
|
+
useLoadMessage,
|
|
7700
|
+
useLoginCredential2 as useLoginCredential,
|
|
7701
|
+
useLoginSocial,
|
|
7702
|
+
useLogout,
|
|
7408
7703
|
useMenu,
|
|
7704
|
+
useModel2 as useModel,
|
|
7705
|
+
useOdooDataTransform,
|
|
7706
|
+
useOnChangeForm,
|
|
7707
|
+
useParsePreview,
|
|
7708
|
+
usePrint,
|
|
7409
7709
|
useProfile,
|
|
7710
|
+
useRemoveRow,
|
|
7711
|
+
useRemoveTotpSetup,
|
|
7712
|
+
useRequestSetupTotp,
|
|
7713
|
+
useResetPassword,
|
|
7714
|
+
useResetPasswordSSO,
|
|
7715
|
+
useRunAction2 as useRunAction,
|
|
7716
|
+
useSave,
|
|
7717
|
+
useSendComment,
|
|
7718
|
+
useSettingsWebRead2fa,
|
|
7719
|
+
useSignInSSO,
|
|
7410
7720
|
useStorageState,
|
|
7721
|
+
useSwitchLocale,
|
|
7722
|
+
useTabModel,
|
|
7723
|
+
useUpdatePassword,
|
|
7724
|
+
useUploadFile,
|
|
7725
|
+
useUploadIdFile,
|
|
7726
|
+
useUploadImage,
|
|
7411
7727
|
useUser,
|
|
7412
|
-
|
|
7728
|
+
useVerify2FA,
|
|
7729
|
+
useVerifyTotp,
|
|
7730
|
+
useViewV2,
|
|
7731
|
+
validateAndParseDate
|
|
7413
7732
|
};
|
|
7414
7733
|
/*! Bundled license information:
|
|
7415
7734
|
|