@fctc/widget-logic 2.0.4 → 2.0.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/widget.mjs CHANGED
@@ -4091,7 +4091,7 @@ var statusDropdownController = (props) => {
4091
4091
  };
4092
4092
 
4093
4093
  // src/widget/basic/many2one-field/controller.ts
4094
- import { useCallback as useCallback2, useEffect as useEffect10, useMemo as useMemo9, useState as useState8 } from "react";
4094
+ import { useCallback as useCallback2, useEffect as useEffect10, useMemo as useMemo9, useState as useState7 } from "react";
4095
4095
 
4096
4096
  // src/hooks.ts
4097
4097
  var hooks_exports = {};
@@ -4106,7 +4106,6 @@ __export(hooks_exports, {
4106
4106
  useDetail: () => useDetail,
4107
4107
  useListData: () => useListData,
4108
4108
  useMenu: () => useMenu,
4109
- useMenuItem: () => useMenuItem,
4110
4109
  useProfile: () => useProfile,
4111
4110
  useUser: () => useUser,
4112
4111
  useViewV2: () => useViewV2
@@ -4889,68 +4888,6 @@ var useAppProvider = () => {
4889
4888
  return context;
4890
4889
  };
4891
4890
 
4892
- // src/hooks/core/use-menu-item.tsx
4893
- import { getEnv as getEnv6 } from "@fctc/interface-logic/environment";
4894
- import { useGetActionDetail } from "@fctc/interface-logic/hooks";
4895
- import { useState as useState6 } from "react";
4896
-
4897
- // src/utils.ts
4898
- var utils_exports = {};
4899
- __export(utils_exports, {
4900
- API_APP_URL: () => API_APP_URL,
4901
- API_PRESCHOOL_URL: () => API_PRESCHOOL_URL,
4902
- STORAGES: () => STORAGES,
4903
- combineContexts: () => combineContexts,
4904
- convertFieldsToArray: () => convertFieldsToArray,
4905
- countSum: () => countSum,
4906
- getDateRange: () => getDateRange,
4907
- languages: () => languages,
4908
- mergeButtons: () => mergeButtons,
4909
- setStorageItemAsync: () => setStorageItemAsync,
4910
- useGetRowIds: () => useGetRowIds,
4911
- useSelectionState: () => useSelectionState,
4912
- useStorageState: () => useStorageState
4913
- });
4914
- __reExport(utils_exports, utils_star);
4915
- import * as utils_star from "@fctc/interface-logic/utils";
4916
-
4917
- // src/hooks/core/use-menu-item.tsx
4918
- var useMenuItem = (props) => {
4919
- const { menu, activeMenuId } = props;
4920
- const model = menu?.action?.res_model;
4921
- const aid = menu?.action?.id?.id;
4922
- const id = menu?.id;
4923
- const context = getEnv6().context;
4924
- const queryActionDetail = useGetActionDetail({
4925
- aid,
4926
- id,
4927
- model,
4928
- context,
4929
- enabled: true,
4930
- queryKey: [`action-${aid}`]
4931
- }).data;
4932
- const [path, setPath] = useState6("");
4933
- const handleClick = () => {
4934
- if (location?.pathname === "/list/menu" && activeMenuId === menu?.id) {
4935
- return;
4936
- }
4937
- const hasListView = queryActionDetail.views.some(
4938
- ([id2, type]) => type === "list"
4939
- );
4940
- const viewType = hasListView ? "list" : "form";
4941
- const isAccountPayment = menu?.action?.res_model === "account.payment" && menu?.action?.id?.id === 1551;
4942
- const isConvertCurrencyMenu = menu?.action?.res_model === "currency.convert" && menu?.action?.id?.id === 1562;
4943
- const path2 = (0, utils_exports.formatUrlPath)({
4944
- viewType,
4945
- actionPath: isConvertCurrencyMenu ? "menu" : isAccountPayment ? "menu" : menu?.action?.path || "menu",
4946
- aid: menu?.action?.id?.id,
4947
- model: queryActionDetail.res_model
4948
- });
4949
- setPath(path2);
4950
- };
4951
- return { handleClick, path, queryActionDetail };
4952
- };
4953
-
4954
4891
  // src/hooks/utils/use-click-outside.ts
4955
4892
  import { useEffect as useEffect8, useRef as useRef3 } from "react";
4956
4893
  var DEFAULT_EVENTS = ["mousedown", "touchstart"];
@@ -4983,9 +4920,9 @@ var useClickOutside = ({
4983
4920
  };
4984
4921
 
4985
4922
  // src/hooks/utils/use-debounce.ts
4986
- import { useEffect as useEffect9, useState as useState7 } from "react";
4923
+ import { useEffect as useEffect9, useState as useState6 } from "react";
4987
4924
  function useDebounce(value, delay) {
4988
- const [debouncedValue, setDebouncedValue] = useState7(value);
4925
+ const [debouncedValue, setDebouncedValue] = useState6(value);
4989
4926
  useEffect9(() => {
4990
4927
  const handler = setTimeout(() => {
4991
4928
  setDebouncedValue(value);
@@ -5001,6 +4938,26 @@ function useDebounce(value, delay) {
5001
4938
  __reExport(hooks_exports, hooks_star);
5002
4939
  import * as hooks_star from "@fctc/interface-logic/hooks";
5003
4940
 
4941
+ // src/utils.ts
4942
+ var utils_exports = {};
4943
+ __export(utils_exports, {
4944
+ API_APP_URL: () => API_APP_URL,
4945
+ API_PRESCHOOL_URL: () => API_PRESCHOOL_URL,
4946
+ STORAGES: () => STORAGES,
4947
+ combineContexts: () => combineContexts,
4948
+ convertFieldsToArray: () => convertFieldsToArray,
4949
+ countSum: () => countSum,
4950
+ getDateRange: () => getDateRange,
4951
+ languages: () => languages,
4952
+ mergeButtons: () => mergeButtons,
4953
+ setStorageItemAsync: () => setStorageItemAsync,
4954
+ useGetRowIds: () => useGetRowIds,
4955
+ useSelectionState: () => useSelectionState,
4956
+ useStorageState: () => useStorageState
4957
+ });
4958
+ __reExport(utils_exports, utils_star2);
4959
+ import * as utils_star2 from "@fctc/interface-logic/utils";
4960
+
5004
4961
  // src/provider.ts
5005
4962
  var provider_exports = {};
5006
4963
  __reExport(provider_exports, provider_star);
@@ -5021,13 +4978,13 @@ var many2oneFieldController = (props) => {
5021
4978
  options: fieldOptions,
5022
4979
  showDetail
5023
4980
  } = props;
5024
- const [options, setOptions] = useState8([]);
5025
- const [inputValue, setInputValue] = useState8("");
4981
+ const [options, setOptions] = useState7([]);
4982
+ const [inputValue, setInputValue] = useState7("");
5026
4983
  const [debouncedInputValue] = useDebounce(inputValue, 1e3);
5027
- const [isShowModalMany2Many, setIsShowModalMany2Many] = useState8(false);
5028
- const [tempSelectedOption, setTempSelectedOption] = useState8(null);
5029
- const [domainModal, setDomainModal] = useState8(null);
5030
- const [domainObject, setDomainObject] = useState8(null);
4984
+ const [isShowModalMany2Many, setIsShowModalMany2Many] = useState7(false);
4985
+ const [tempSelectedOption, setTempSelectedOption] = useState7(null);
4986
+ const [domainModal, setDomainModal] = useState7(null);
4987
+ const [domainObject, setDomainObject] = useState7(null);
5031
4988
  const actionData = sessionStorageUtils.getActionData();
5032
4989
  const { menuList } = (0, store_exports.useAppSelector)(store_exports.selectNavbar);
5033
4990
  const { context } = (0, store_exports.useAppSelector)(store_exports.selectEnv);
@@ -5038,7 +4995,7 @@ var many2oneFieldController = (props) => {
5038
4995
  ...fieldContext,
5039
4996
  ...context
5040
4997
  };
5041
- const { useGetSelection: useGetSelection3 } = (0, provider_exports.useService)();
4998
+ const { useGetSelection: useGetSelection2 } = (0, provider_exports.useService)();
5042
4999
  const data = {
5043
5000
  model: relation,
5044
5001
  domain: domainObject,
@@ -5054,7 +5011,7 @@ var many2oneFieldController = (props) => {
5054
5011
  data: dataOfSelection,
5055
5012
  refetch,
5056
5013
  isFetching
5057
- } = useGetSelection3({
5014
+ } = useGetSelection2({
5058
5015
  data,
5059
5016
  queryKey,
5060
5017
  enabled: false
@@ -5180,13 +5137,13 @@ var many2oneFieldController = (props) => {
5180
5137
  };
5181
5138
 
5182
5139
  // src/widget/basic/many2one-button-field/controller.ts
5183
- import { getEnv as getEnv7 } from "@fctc/interface-logic/environment";
5140
+ import { getEnv as getEnv6 } from "@fctc/interface-logic/environment";
5184
5141
  import { useGetSelection } from "@fctc/interface-logic/hooks";
5185
5142
  import { evalJSONDomain as evalJSONDomain3, evalJSONContext as evalJSONContext3 } from "@fctc/interface-logic/utils";
5186
5143
  var many2oneButtonController = (props) => {
5187
5144
  const { domain, methods, relation } = props;
5188
5145
  const actionDataString = sessionStorage.getItem("actionData");
5189
- const env = getEnv7();
5146
+ const env = getEnv6();
5190
5147
  const domainObject = evalJSONDomain3(domain, methods?.getValues() || {});
5191
5148
  const actionData = actionDataString && actionDataString !== "undefined" ? JSON.parse(actionDataString) : {};
5192
5149
  const { data: dataOfSelection } = useGetSelection({
@@ -5207,7 +5164,7 @@ var many2oneButtonController = (props) => {
5207
5164
  };
5208
5165
 
5209
5166
  // src/widget/basic/many2many-field/controller.ts
5210
- import { useEffect as useEffect11, useMemo as useMemo10, useState as useState9 } from "react";
5167
+ import { useEffect as useEffect11, useMemo as useMemo10, useState as useState8 } from "react";
5211
5168
  import {
5212
5169
  useAppDispatch as useAppDispatch5,
5213
5170
  setFirstDomain,
@@ -5238,9 +5195,9 @@ var many2manyFieldController = (props) => {
5238
5195
  const appDispatch = useAppDispatch5();
5239
5196
  const actionData = sessionStorageUtils.getActionData();
5240
5197
  const [debouncedPage] = useDebounce(page, 500);
5241
- const [order, setOrder] = useState9();
5242
- const [isLoadedData, setIsLoadedData] = useState9(false);
5243
- const [domainMany2Many, setDomainMany2Many] = useState9(domain);
5198
+ const [order, setOrder] = useState8();
5199
+ const [isLoadedData, setIsLoadedData] = useState8(false);
5200
+ const [domainMany2Many, setDomainMany2Many] = useState8(domain);
5244
5201
  const { env } = (0, provider_exports.useEnv)();
5245
5202
  const { useGetView: useGetView2, useGetListData: useGetListData3, useGetFormView } = (0, provider_exports.useService)();
5246
5203
  const viewParams = {
@@ -5397,8 +5354,6 @@ var many2manyFieldController = (props) => {
5397
5354
  // src/widget/basic/many2many-tags-field/controller.ts
5398
5355
  import { useMemo as useMemo11 } from "react";
5399
5356
  import { WIDGETAVATAR, WIDGETCOLOR } from "@fctc/interface-logic/constants";
5400
- import { getEnv as getEnv8 } from "@fctc/interface-logic/environment";
5401
- import { useGetSelection as useGetSelection2 } from "@fctc/interface-logic/hooks";
5402
5357
  import { evalJSONContext as evalJSONContext5, evalJSONDomain as evalJSONDomain4 } from "@fctc/interface-logic/utils";
5403
5358
  var many2manyTagsController = (props) => {
5404
5359
  const {
@@ -5410,7 +5365,8 @@ var many2manyTagsController = (props) => {
5410
5365
  placeholderNoOption
5411
5366
  } = props;
5412
5367
  const isUser = relation === "res.users" || relation === "res.partner";
5413
- const env = getEnv8();
5368
+ const { env } = (0, provider_exports.useEnv)();
5369
+ const { useGetSelection: useGetSelection2 } = (0, provider_exports.useService)();
5414
5370
  const addtionalFields = optionsFields ? evalJSONContext5(optionsFields) : null;
5415
5371
  const domainObject = useMemo11(
5416
5372
  () => evalJSONDomain4(domain, JSON.parse(JSON.stringify(formValues || {}))),
@@ -5449,16 +5405,15 @@ var many2manyTagsController = (props) => {
5449
5405
  options,
5450
5406
  customNoOptionsMessage,
5451
5407
  tranfer,
5452
- dataOfSelection,
5453
5408
  isUser
5454
5409
  };
5455
5410
  };
5456
5411
 
5457
5412
  // src/widget/basic/status-bar-field/controller.ts
5458
- import { useState as useState10 } from "react";
5413
+ import { useState as useState9 } from "react";
5459
5414
  import { evalJSONDomain as evalJSONDomain5 } from "@fctc/interface-logic/utils";
5460
5415
  var durationController = (props) => {
5461
- const { relation, domain, formValues, name, id, model, onRefetch } = props;
5416
+ const { relation, domain, formValues, name, id, model, onRefetch, enabled } = props;
5462
5417
  const specification = {
5463
5418
  id: 0,
5464
5419
  name: "",
@@ -5466,8 +5421,8 @@ var durationController = (props) => {
5466
5421
  };
5467
5422
  const { useGetListData: useGetListData3, useChangeStatus } = (0, provider_exports.useService)();
5468
5423
  const { env } = (0, provider_exports.useEnv)();
5469
- const [disabled, setDisabled] = useState10(false);
5470
- const [modelStatus, setModalStatus] = useState10(false);
5424
+ const [disabled, setDisabled] = useState9(false);
5425
+ const [modelStatus, setModalStatus] = useState9(false);
5471
5426
  const queryKey = [`data-status-duration`, specification];
5472
5427
  const listDataProps = {
5473
5428
  model: relation,
@@ -5482,7 +5437,11 @@ var durationController = (props) => {
5482
5437
  },
5483
5438
  sort: ""
5484
5439
  };
5485
- const { data: dataResponse } = useGetListData3(listDataProps, queryKey);
5440
+ const { data: dataResponse } = useGetListData3(
5441
+ listDataProps,
5442
+ queryKey,
5443
+ enabled
5444
+ );
5486
5445
  const { mutate: fetchChangeStatus } = useChangeStatus();
5487
5446
  const handleClick = async (stage_id) => {
5488
5447
  setDisabled(true);
@@ -5518,32 +5477,18 @@ var durationController = (props) => {
5518
5477
  };
5519
5478
 
5520
5479
  // src/widget/basic/priority-field/controller.ts
5521
- import { useSave as useSave2 } from "@fctc/interface-logic/hooks";
5522
5480
  import { evalJSONContext as evalJSONContext6 } from "@fctc/interface-logic/utils";
5523
5481
  var priorityFieldController = (props) => {
5524
- const {
5525
- value,
5526
- isForm,
5527
- name,
5528
- methods,
5529
- onChange,
5530
- model,
5531
- selection,
5532
- id,
5533
- actionData,
5534
- viewData,
5535
- context
5536
- } = props;
5482
+ const { name, model, id, actionData, context, onChange } = props;
5537
5483
  const _context = { ...evalJSONContext6(actionData?.context) };
5538
5484
  const contextObject = { ...context, ..._context };
5539
- const defaultPriority = parseInt(value) + 1;
5540
- const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
5485
+ const { useSave: useSave2 } = (0, provider_exports.useService)();
5541
5486
  const { mutateAsync: fetchSave } = useSave2();
5542
5487
  const savePriorities = async ({
5543
- value: value2,
5488
+ value,
5544
5489
  resetPriority
5545
5490
  }) => {
5546
- const priorityValue = value2 <= 0 ? 0 : value2 - 1;
5491
+ const priorityValue = value <= 0 ? 0 : value - 1;
5547
5492
  try {
5548
5493
  fetchSave({
5549
5494
  ids: id ? [id] : [],
@@ -5561,22 +5506,15 @@ var priorityFieldController = (props) => {
5561
5506
  }
5562
5507
  };
5563
5508
  return {
5564
- selection,
5565
- isForm,
5566
- methods,
5567
- defaultPriority,
5568
- savePriorities,
5569
- label,
5570
- id,
5571
- onChange
5509
+ savePriorities
5572
5510
  };
5573
5511
  };
5574
5512
 
5575
5513
  // src/widget/basic/download-file-field/controller.ts
5576
- import { useId, useState as useState11 } from "react";
5514
+ import { useId, useState as useState10 } from "react";
5577
5515
  var downloadFileController = () => {
5578
5516
  const inputId = useId();
5579
- const [file, setFile] = useState11(null);
5517
+ const [file, setFile] = useState10(null);
5580
5518
  const handleFileChange = (e) => {
5581
5519
  setFile(e.target.files[0]);
5582
5520
  };
@@ -6508,11 +6446,11 @@ var dateFieldController = (props) => {
6508
6446
  };
6509
6447
 
6510
6448
  // src/widget/basic/copy-link-button/controller.ts
6511
- import { useState as useState12 } from "react";
6449
+ import { useState as useState11 } from "react";
6512
6450
  import { copyTextToClipboard } from "@fctc/interface-logic/utils";
6513
6451
  var copyLinkButtonController = (props) => {
6514
6452
  const { value, defaultValue } = props;
6515
- const [isCopied, setIsCopied] = useState12(false);
6453
+ const [isCopied, setIsCopied] = useState11(false);
6516
6454
  const handleCopyToClipboard = async (value2) => {
6517
6455
  await copyTextToClipboard(value2);
6518
6456
  setIsCopied(true);
@@ -6531,11 +6469,11 @@ import { evalJSONContext as evalJSONContext7 } from "@fctc/interface-logic/utils
6531
6469
  var colorFieldController = (props) => {
6532
6470
  const { value, isForm, name, formValues, idForm, model, actionData } = props;
6533
6471
  const { env } = (0, provider_exports.useEnv)();
6534
- const { useSave: useSave3 } = (0, provider_exports.useService)();
6472
+ const { useSave: useSave2 } = (0, provider_exports.useService)();
6535
6473
  const _context = { ...evalJSONContext7(actionData?.context) || {} };
6536
6474
  const contextObject = { ...env.context, ..._context };
6537
6475
  const idDefault = isForm ? idForm : formValues?.id;
6538
- const { mutate: onSave } = useSave3();
6476
+ const { mutate: onSave } = useSave2();
6539
6477
  const savePickColor = async (colorObject) => {
6540
6478
  const { id } = colorObject;
6541
6479
  if (value === id) return;
@@ -6560,14 +6498,14 @@ var colorFieldController = (props) => {
6560
6498
  };
6561
6499
 
6562
6500
  // src/widget/basic/binary-field/controller.ts
6563
- import { useEffect as useEffect12, useId as useId2, useRef as useRef4, useState as useState13 } from "react";
6501
+ import { useEffect as useEffect12, useId as useId2, useRef as useRef4, useState as useState12 } from "react";
6564
6502
  import { isBase64Image } from "@fctc/interface-logic/utils";
6565
6503
  var binaryFieldController = (props) => {
6566
6504
  const { name, methods, readonly = false, value } = props;
6567
6505
  const inputId = useId2();
6568
- const [selectedImage, setSelectedImage] = useState13(null);
6569
- const [initialImage, setInitialImage] = useState13(value || null);
6570
- const [isInsideTable, setIsInsideTable] = useState13(false);
6506
+ const [selectedImage, setSelectedImage] = useState12(null);
6507
+ const [initialImage, setInitialImage] = useState12(value || null);
6508
+ const [isInsideTable, setIsInsideTable] = useState12(false);
6571
6509
  const { setValue } = methods;
6572
6510
  const binaryRef = useRef4(null);
6573
6511
  const convertUrlToBase64 = async (url) => {
@@ -6658,20 +6596,25 @@ var binaryFieldController = (props) => {
6658
6596
  };
6659
6597
 
6660
6598
  // src/widget/advance/table/table-body/controller.ts
6661
- import { useAppDispatch as useAppDispatch6, setSelectedRowKeys } from "@fctc/interface-logic/store";
6599
+ import {
6600
+ useAppDispatch as useAppDispatch6,
6601
+ setSelectedRowKeys,
6602
+ useAppSelector as useAppSelector4,
6603
+ selectList as selectList3
6604
+ } from "@fctc/interface-logic/store";
6662
6605
  import { useEffect as useEffect13, useMemo as useMemo12 } from "react";
6663
6606
  var tableBodyController = (props) => {
6664
6607
  const {
6665
6608
  checkedAll,
6666
6609
  checkboxRef,
6667
6610
  setIsAutoSelect,
6668
- selectedRowKeys,
6669
6611
  row,
6670
6612
  isAutoSelect,
6671
6613
  selectedRowKeysRef,
6672
6614
  onClickRow
6673
6615
  } = props;
6674
6616
  const appDispatch = useAppDispatch6();
6617
+ const { selectedRowKeys } = useAppSelector4(selectList3);
6675
6618
  const checked = useMemo12(() => {
6676
6619
  if (!row?.id) return false;
6677
6620
  if (selectedRowKeys?.includes(row.id)) {
@@ -6687,7 +6630,6 @@ var tableBodyController = (props) => {
6687
6630
  return;
6688
6631
  }
6689
6632
  const newSelectedRowKeys = selectedRowKeys?.includes(row.id) ? selectedRowKeys?.filter((key) => key !== row.id) : [...selectedRowKeys, row.id];
6690
- console.log("newSelectedRowKeys", newSelectedRowKeys);
6691
6633
  appDispatch(setSelectedRowKeys(newSelectedRowKeys));
6692
6634
  };
6693
6635
  const handleClickRow = (col, row2) => {
@@ -6727,14 +6669,14 @@ var tableBodyController = (props) => {
6727
6669
  // src/widget/advance/table/table-head/controller.ts
6728
6670
  import {
6729
6671
  useAppDispatch as useAppDispatch7,
6730
- useAppSelector as useAppSelector4,
6672
+ useAppSelector as useAppSelector5,
6731
6673
  selectSearch as selectSearch3,
6732
6674
  setSelectedRowKeys as setSelectedRowKeys2
6733
6675
  } from "@fctc/interface-logic/store";
6734
6676
  var tableHeadController = (props) => {
6735
6677
  const { typeTable, rows, selectedRowKeysRef } = props;
6736
6678
  const appDispatch = useAppDispatch7();
6737
- const { groupByDomain } = useAppSelector4(selectSearch3);
6679
+ const { groupByDomain } = useAppSelector5(selectSearch3);
6738
6680
  const handleCheckBoxAll = (event) => {
6739
6681
  if (event?.target?.checked && typeTable === "list") {
6740
6682
  const allRowKeys = Array.isArray(rows) ? rows.map((record) => record?.id) : [];
@@ -6767,16 +6709,16 @@ var tableHeadController = (props) => {
6767
6709
  };
6768
6710
 
6769
6711
  // src/widget/advance/table/table-view/controller.ts
6770
- import { useEffect as useEffect14, useMemo as useMemo13, useRef as useRef5, useState as useState14 } from "react";
6712
+ import { useEffect as useEffect14, useMemo as useMemo13, useRef as useRef5, useState as useState13 } from "react";
6771
6713
  import {
6772
- useAppSelector as useAppSelector5,
6714
+ useAppSelector as useAppSelector6,
6773
6715
  selectSearch as selectSearch4,
6774
- selectList as selectList3
6716
+ selectList as selectList4
6775
6717
  } from "@fctc/interface-logic/store";
6776
6718
  import { domainHelper } from "@fctc/interface-logic/utils";
6777
6719
  var tableController = ({ data }) => {
6778
- const [rows, setRows] = useState14(data.records || []);
6779
- const [columns, setColumns] = useState14([]);
6720
+ const [rows, setRows] = useState13(data.records || []);
6721
+ const [columns, setColumns] = useState13([]);
6780
6722
  const dataModelFields = data.fields?.map((field) => {
6781
6723
  return {
6782
6724
  ...data.dataModel?.[field?.name],
@@ -6850,15 +6792,15 @@ var tableController = ({ data }) => {
6850
6792
  };
6851
6793
 
6852
6794
  // src/widget/advance/table/table-group/controller.ts
6853
- import { useEffect as useEffect15, useMemo as useMemo14, useState as useState15 } from "react";
6795
+ import { useEffect as useEffect15, useMemo as useMemo14, useState as useState14 } from "react";
6854
6796
  import {
6855
6797
  useOdooDataTransform,
6856
6798
  useGetListData as useGetListData2
6857
6799
  } from "@fctc/interface-logic/hooks";
6858
6800
  import {
6859
- useAppSelector as useAppSelector6,
6801
+ useAppSelector as useAppSelector7,
6860
6802
  selectSearch as selectSearch5,
6861
- selectList as selectList4,
6803
+ selectList as selectList5,
6862
6804
  useAppDispatch as useAppDispatch8,
6863
6805
  setSelectedRowKeys as setSelectedRowKeys3
6864
6806
  } from "@fctc/interface-logic/store";
@@ -6889,14 +6831,14 @@ var tableGroupController = (props) => {
6889
6831
  setIsAutoSelect,
6890
6832
  selectedRowKeysRef
6891
6833
  } = props;
6892
- const [pageGroup, setPageGroup] = useState15(0);
6893
- const { groupByDomain, selectedTags } = useAppSelector6(selectSearch5);
6894
- const { selectedRowKeys } = useAppSelector6(selectList4);
6834
+ const [pageGroup, setPageGroup] = useState14(0);
6835
+ const { groupByDomain, selectedTags } = useAppSelector7(selectSearch5);
6836
+ const { selectedRowKeys } = useAppSelector7(selectList5);
6895
6837
  const appDispatch = useAppDispatch8();
6896
6838
  const { toDataJS } = useOdooDataTransform();
6897
6839
  const initVal = toDataJS(row, viewData, model);
6898
- const [isShowGroup, setIsShowGroup] = useState15(false);
6899
- const [colEmptyGroup, setColEmptyGroup] = useState15({
6840
+ const [isShowGroup, setIsShowGroup] = useState14(false);
6841
+ const [colEmptyGroup, setColEmptyGroup] = useState14({
6900
6842
  fromStart: 1,
6901
6843
  fromEnd: 1
6902
6844
  });
@@ -7036,7 +6978,7 @@ import {
7036
6978
  evalJSONDomain as evalJSONDomain6,
7037
6979
  validateAndParseDate
7038
6980
  } from "@fctc/interface-logic/utils";
7039
- import { useCallback as useCallback3, useEffect as useEffect16, useState as useState16 } from "react";
6981
+ import { useCallback as useCallback3, useEffect as useEffect16, useState as useState15 } from "react";
7040
6982
  var searchController = ({
7041
6983
  viewData,
7042
6984
  actionData,
@@ -7045,11 +6987,11 @@ var searchController = ({
7045
6987
  setSearchMap,
7046
6988
  searchMap
7047
6989
  }) => {
7048
- const [filterBy, setFilterBy] = useState16(null);
7049
- const [searchBy, setSearchBy] = useState16(null);
7050
- const [groupBy, setGroupBy] = useState16(null);
7051
- const [selectedTags, setSelectedTags] = useState16(null);
7052
- const [searchString, setSearchString] = useState16("");
6990
+ const [filterBy, setFilterBy] = useState15(null);
6991
+ const [searchBy, setSearchBy] = useState15(null);
6992
+ const [groupBy, setGroupBy] = useState15(null);
6993
+ const [selectedTags, setSelectedTags] = useState15(null);
6994
+ const [searchString, setSearchString] = useState15("");
7053
6995
  const domainAction = actionData?.domain ? Array.isArray(actionData?.domain) ? [...actionData?.domain] : evalJSONDomain6(actionData?.domain, contextSearch) : [];
7054
6996
  const aid = actionData?.id;
7055
6997
  const model = actionData?.res_model;