@fctc/widget-logic 3.6.5 → 3.6.7

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/hooks.js CHANGED
@@ -439,7 +439,8 @@ var useDetail = (sub) => {
439
439
  return fetchGetDetail.mutateAsync({
440
440
  model: "res.users",
441
441
  ids: [sub],
442
- specification: { image_256: {} }
442
+ specification: { image_256: {} },
443
+ service: env?.default_service
443
444
  });
444
445
  },
445
446
  enabled: !!sub
@@ -921,6 +922,7 @@ var useListData = ({
921
922
  const sort = order ? order : (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order ? (0, import_utils5.formatSortingString)(
922
923
  (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order
923
924
  ) : "";
925
+ console.log("modeddd", mode);
924
926
  return {
925
927
  model: action?.res_model,
926
928
  specification,
@@ -939,7 +941,8 @@ var useListData = ({
939
941
  debouncedPage,
940
942
  pageLimit,
941
943
  debouncedDomain,
942
- context
944
+ context,
945
+ mode
943
946
  ]);
944
947
  const list = useGetListData2(
945
948
  { ...listDataProps },
@@ -949,7 +952,9 @@ var useListData = ({
949
952
  listDataProps?.limit,
950
953
  listDataProps?.offset,
951
954
  listDataProps?.sort,
952
- listDataProps?.context
955
+ listDataProps?.context,
956
+ listDataProps?.specification,
957
+ mode
953
958
  ],
954
959
  !!listDataProps && !!specification && !(0, import_utils5.isObjectEmpty)(specification) && !!domain,
955
960
  service,
package/dist/hooks.mjs CHANGED
@@ -420,7 +420,8 @@ var useDetail = (sub) => {
420
420
  return fetchGetDetail.mutateAsync({
421
421
  model: "res.users",
422
422
  ids: [sub],
423
- specification: { image_256: {} }
423
+ specification: { image_256: {} },
424
+ service: env?.default_service
424
425
  });
425
426
  },
426
427
  enabled: !!sub
@@ -906,6 +907,7 @@ var useListData = ({
906
907
  const sort = order ? order : (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order ? formatSortingString(
907
908
  (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order
908
909
  ) : "";
910
+ console.log("modeddd", mode);
909
911
  return {
910
912
  model: action?.res_model,
911
913
  specification,
@@ -924,7 +926,8 @@ var useListData = ({
924
926
  debouncedPage,
925
927
  pageLimit,
926
928
  debouncedDomain,
927
- context
929
+ context,
930
+ mode
928
931
  ]);
929
932
  const list = useGetListData2(
930
933
  { ...listDataProps },
@@ -934,7 +937,9 @@ var useListData = ({
934
937
  listDataProps?.limit,
935
938
  listDataProps?.offset,
936
939
  listDataProps?.sort,
937
- listDataProps?.context
940
+ listDataProps?.context,
941
+ listDataProps?.specification,
942
+ mode
938
943
  ],
939
944
  !!listDataProps && !!specification && !isObjectEmpty4(specification) && !!domain,
940
945
  service,
package/dist/index.js CHANGED
@@ -4489,7 +4489,8 @@ var useDetail = (sub) => {
4489
4489
  return fetchGetDetail.mutateAsync({
4490
4490
  model: "res.users",
4491
4491
  ids: [sub],
4492
- specification: { image_256: {} }
4492
+ specification: { image_256: {} },
4493
+ service: env?.default_service
4493
4494
  });
4494
4495
  },
4495
4496
  enabled: !!sub
@@ -4971,6 +4972,7 @@ var useListData = ({
4971
4972
  const sort = order ? order : (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order ? (0, import_utils5.formatSortingString)(
4972
4973
  (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order
4973
4974
  ) : "";
4975
+ console.log("modeddd", mode);
4974
4976
  return {
4975
4977
  model: action?.res_model,
4976
4978
  specification,
@@ -4989,7 +4991,8 @@ var useListData = ({
4989
4991
  debouncedPage,
4990
4992
  pageLimit,
4991
4993
  debouncedDomain,
4992
- context
4994
+ context,
4995
+ mode
4993
4996
  ]);
4994
4997
  const list = useGetListData2(
4995
4998
  { ...listDataProps },
@@ -4999,7 +5002,9 @@ var useListData = ({
4999
5002
  listDataProps?.limit,
5000
5003
  listDataProps?.offset,
5001
5004
  listDataProps?.sort,
5002
- listDataProps?.context
5005
+ listDataProps?.context,
5006
+ listDataProps?.specification,
5007
+ mode
5003
5008
  ],
5004
5009
  !!listDataProps && !!specification && !(0, import_utils5.isObjectEmpty)(specification) && !!domain,
5005
5010
  service,
package/dist/index.mjs CHANGED
@@ -4564,7 +4564,8 @@ var useDetail = (sub) => {
4564
4564
  return fetchGetDetail.mutateAsync({
4565
4565
  model: "res.users",
4566
4566
  ids: [sub],
4567
- specification: { image_256: {} }
4567
+ specification: { image_256: {} },
4568
+ service: env?.default_service
4568
4569
  });
4569
4570
  },
4570
4571
  enabled: !!sub
@@ -5050,6 +5051,7 @@ var useListData = ({
5050
5051
  const sort = order ? order : (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order ? formatSortingString(
5051
5052
  (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order
5052
5053
  ) : "";
5054
+ console.log("modeddd", mode);
5053
5055
  return {
5054
5056
  model: action?.res_model,
5055
5057
  specification,
@@ -5068,7 +5070,8 @@ var useListData = ({
5068
5070
  debouncedPage,
5069
5071
  pageLimit,
5070
5072
  debouncedDomain,
5071
- context
5073
+ context,
5074
+ mode
5072
5075
  ]);
5073
5076
  const list = useGetListData2(
5074
5077
  { ...listDataProps },
@@ -5078,7 +5081,9 @@ var useListData = ({
5078
5081
  listDataProps?.limit,
5079
5082
  listDataProps?.offset,
5080
5083
  listDataProps?.sort,
5081
- listDataProps?.context
5084
+ listDataProps?.context,
5085
+ listDataProps?.specification,
5086
+ mode
5082
5087
  ],
5083
5088
  !!listDataProps && !!specification && !isObjectEmpty4(specification) && !!domain,
5084
5089
  service,
package/dist/widget.js CHANGED
@@ -4501,6 +4501,7 @@ var useListData = ({
4501
4501
  const sort = order ? order : (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order ? (0, import_utils5.formatSortingString)(
4502
4502
  (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order
4503
4503
  ) : "";
4504
+ console.log("modeddd", mode);
4504
4505
  return {
4505
4506
  model: action?.res_model,
4506
4507
  specification,
@@ -4519,7 +4520,8 @@ var useListData = ({
4519
4520
  debouncedPage,
4520
4521
  pageLimit,
4521
4522
  debouncedDomain,
4522
- context
4523
+ context,
4524
+ mode
4523
4525
  ]);
4524
4526
  const list = useGetListData2(
4525
4527
  { ...listDataProps },
@@ -4529,7 +4531,9 @@ var useListData = ({
4529
4531
  listDataProps?.limit,
4530
4532
  listDataProps?.offset,
4531
4533
  listDataProps?.sort,
4532
- listDataProps?.context
4534
+ listDataProps?.context,
4535
+ listDataProps?.specification,
4536
+ mode
4533
4537
  ],
4534
4538
  !!listDataProps && !!specification && !(0, import_utils5.isObjectEmpty)(specification) && !!domain,
4535
4539
  service,
package/dist/widget.mjs CHANGED
@@ -4558,6 +4558,7 @@ var useListData = ({
4558
4558
  const sort = order ? order : (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order ? formatSortingString(
4559
4559
  (mode === "kanban" ? viewData?.views?.kanban : viewData?.views?.list)?.default_order
4560
4560
  ) : "";
4561
+ console.log("modeddd", mode);
4561
4562
  return {
4562
4563
  model: action?.res_model,
4563
4564
  specification,
@@ -4576,7 +4577,8 @@ var useListData = ({
4576
4577
  debouncedPage,
4577
4578
  pageLimit,
4578
4579
  debouncedDomain,
4579
- context
4580
+ context,
4581
+ mode
4580
4582
  ]);
4581
4583
  const list = useGetListData2(
4582
4584
  { ...listDataProps },
@@ -4586,7 +4588,9 @@ var useListData = ({
4586
4588
  listDataProps?.limit,
4587
4589
  listDataProps?.offset,
4588
4590
  listDataProps?.sort,
4589
- listDataProps?.context
4591
+ listDataProps?.context,
4592
+ listDataProps?.specification,
4593
+ mode
4590
4594
  ],
4591
4595
  !!listDataProps && !!specification && !isObjectEmpty4(specification) && !!domain,
4592
4596
  service,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "3.6.5",
3
+ "version": "3.6.7",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -74,7 +74,7 @@
74
74
  "test": "jest"
75
75
  },
76
76
  "dependencies": {
77
- "@fctc/interface-logic": "^3.2.2",
77
+ "@fctc/interface-logic": "^3.2.5",
78
78
  "@headlessui/react": "^2.2.6",
79
79
  "@tanstack/react-query": "^5.84.0",
80
80
  "i18next": "^25.3.2",