@fctc/widget-logic 4.4.9 → 4.4.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/hooks.js +3 -3
- package/dist/hooks.mjs +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/widget.js +3 -3
- package/dist/widget.mjs +3 -3
- package/package.json +1 -1
package/dist/hooks.js
CHANGED
|
@@ -923,7 +923,7 @@ var useListData = ({
|
|
|
923
923
|
if (!viewData || !action || !context) {
|
|
924
924
|
return null;
|
|
925
925
|
}
|
|
926
|
-
const
|
|
926
|
+
const domainParsed = domain ? JSON.parse(JSON.stringify(domain)) : action?.domain ? Array.isArray(action.domain) ? [...action.domain] : (0, import_utils5.evalJSONDomain)(action.domain, context) : [];
|
|
927
927
|
const limit2 = pageLimit;
|
|
928
928
|
const offset = debouncedPage * pageLimit;
|
|
929
929
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
@@ -934,7 +934,7 @@ var useListData = ({
|
|
|
934
934
|
return {
|
|
935
935
|
model: action?.res_model,
|
|
936
936
|
specification,
|
|
937
|
-
domain:
|
|
937
|
+
domain: domainParsed,
|
|
938
938
|
limit: limit2,
|
|
939
939
|
offset,
|
|
940
940
|
fields,
|
|
@@ -956,7 +956,7 @@ var useListData = ({
|
|
|
956
956
|
const list = useGetListData2(
|
|
957
957
|
{ ...listDataProps },
|
|
958
958
|
[
|
|
959
|
-
listDataProps?.domain,
|
|
959
|
+
JSON.stringify(listDataProps?.domain),
|
|
960
960
|
listDataProps?.groupby,
|
|
961
961
|
listDataProps?.limit,
|
|
962
962
|
listDataProps?.offset,
|
package/dist/hooks.mjs
CHANGED
|
@@ -908,7 +908,7 @@ var useListData = ({
|
|
|
908
908
|
if (!viewData || !action || !context) {
|
|
909
909
|
return null;
|
|
910
910
|
}
|
|
911
|
-
const
|
|
911
|
+
const domainParsed = domain ? JSON.parse(JSON.stringify(domain)) : action?.domain ? Array.isArray(action.domain) ? [...action.domain] : evalJSONDomain(action.domain, context) : [];
|
|
912
912
|
const limit2 = pageLimit;
|
|
913
913
|
const offset = debouncedPage * pageLimit;
|
|
914
914
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
@@ -919,7 +919,7 @@ var useListData = ({
|
|
|
919
919
|
return {
|
|
920
920
|
model: action?.res_model,
|
|
921
921
|
specification,
|
|
922
|
-
domain:
|
|
922
|
+
domain: domainParsed,
|
|
923
923
|
limit: limit2,
|
|
924
924
|
offset,
|
|
925
925
|
fields,
|
|
@@ -941,7 +941,7 @@ var useListData = ({
|
|
|
941
941
|
const list = useGetListData2(
|
|
942
942
|
{ ...listDataProps },
|
|
943
943
|
[
|
|
944
|
-
listDataProps?.domain,
|
|
944
|
+
JSON.stringify(listDataProps?.domain),
|
|
945
945
|
listDataProps?.groupby,
|
|
946
946
|
listDataProps?.limit,
|
|
947
947
|
listDataProps?.offset,
|
package/dist/index.js
CHANGED
|
@@ -4973,7 +4973,7 @@ var useListData = ({
|
|
|
4973
4973
|
if (!viewData || !action || !context) {
|
|
4974
4974
|
return null;
|
|
4975
4975
|
}
|
|
4976
|
-
const
|
|
4976
|
+
const domainParsed = domain ? JSON.parse(JSON.stringify(domain)) : action?.domain ? Array.isArray(action.domain) ? [...action.domain] : (0, import_utils5.evalJSONDomain)(action.domain, context) : [];
|
|
4977
4977
|
const limit2 = pageLimit;
|
|
4978
4978
|
const offset = debouncedPage * pageLimit;
|
|
4979
4979
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
@@ -4984,7 +4984,7 @@ var useListData = ({
|
|
|
4984
4984
|
return {
|
|
4985
4985
|
model: action?.res_model,
|
|
4986
4986
|
specification,
|
|
4987
|
-
domain:
|
|
4987
|
+
domain: domainParsed,
|
|
4988
4988
|
limit: limit2,
|
|
4989
4989
|
offset,
|
|
4990
4990
|
fields,
|
|
@@ -5006,7 +5006,7 @@ var useListData = ({
|
|
|
5006
5006
|
const list = useGetListData2(
|
|
5007
5007
|
{ ...listDataProps },
|
|
5008
5008
|
[
|
|
5009
|
-
listDataProps?.domain,
|
|
5009
|
+
JSON.stringify(listDataProps?.domain),
|
|
5010
5010
|
listDataProps?.groupby,
|
|
5011
5011
|
listDataProps?.limit,
|
|
5012
5012
|
listDataProps?.offset,
|
package/dist/index.mjs
CHANGED
|
@@ -5067,7 +5067,7 @@ var useListData = ({
|
|
|
5067
5067
|
if (!viewData || !action || !context) {
|
|
5068
5068
|
return null;
|
|
5069
5069
|
}
|
|
5070
|
-
const
|
|
5070
|
+
const domainParsed = domain ? JSON.parse(JSON.stringify(domain)) : action?.domain ? Array.isArray(action.domain) ? [...action.domain] : evalJSONDomain(action.domain, context) : [];
|
|
5071
5071
|
const limit2 = pageLimit;
|
|
5072
5072
|
const offset = debouncedPage * pageLimit;
|
|
5073
5073
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
@@ -5078,7 +5078,7 @@ var useListData = ({
|
|
|
5078
5078
|
return {
|
|
5079
5079
|
model: action?.res_model,
|
|
5080
5080
|
specification,
|
|
5081
|
-
domain:
|
|
5081
|
+
domain: domainParsed,
|
|
5082
5082
|
limit: limit2,
|
|
5083
5083
|
offset,
|
|
5084
5084
|
fields,
|
|
@@ -5100,7 +5100,7 @@ var useListData = ({
|
|
|
5100
5100
|
const list = useGetListData2(
|
|
5101
5101
|
{ ...listDataProps },
|
|
5102
5102
|
[
|
|
5103
|
-
listDataProps?.domain,
|
|
5103
|
+
JSON.stringify(listDataProps?.domain),
|
|
5104
5104
|
listDataProps?.groupby,
|
|
5105
5105
|
listDataProps?.limit,
|
|
5106
5106
|
listDataProps?.offset,
|
package/dist/widget.js
CHANGED
|
@@ -4491,7 +4491,7 @@ var useListData = ({
|
|
|
4491
4491
|
if (!viewData || !action || !context) {
|
|
4492
4492
|
return null;
|
|
4493
4493
|
}
|
|
4494
|
-
const
|
|
4494
|
+
const domainParsed = domain ? JSON.parse(JSON.stringify(domain)) : action?.domain ? Array.isArray(action.domain) ? [...action.domain] : (0, import_utils5.evalJSONDomain)(action.domain, context) : [];
|
|
4495
4495
|
const limit2 = pageLimit;
|
|
4496
4496
|
const offset = debouncedPage * pageLimit;
|
|
4497
4497
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
@@ -4502,7 +4502,7 @@ var useListData = ({
|
|
|
4502
4502
|
return {
|
|
4503
4503
|
model: action?.res_model,
|
|
4504
4504
|
specification,
|
|
4505
|
-
domain:
|
|
4505
|
+
domain: domainParsed,
|
|
4506
4506
|
limit: limit2,
|
|
4507
4507
|
offset,
|
|
4508
4508
|
fields,
|
|
@@ -4524,7 +4524,7 @@ var useListData = ({
|
|
|
4524
4524
|
const list = useGetListData2(
|
|
4525
4525
|
{ ...listDataProps },
|
|
4526
4526
|
[
|
|
4527
|
-
listDataProps?.domain,
|
|
4527
|
+
JSON.stringify(listDataProps?.domain),
|
|
4528
4528
|
listDataProps?.groupby,
|
|
4529
4529
|
listDataProps?.limit,
|
|
4530
4530
|
listDataProps?.offset,
|
package/dist/widget.mjs
CHANGED
|
@@ -4563,7 +4563,7 @@ var useListData = ({
|
|
|
4563
4563
|
if (!viewData || !action || !context) {
|
|
4564
4564
|
return null;
|
|
4565
4565
|
}
|
|
4566
|
-
const
|
|
4566
|
+
const domainParsed = domain ? JSON.parse(JSON.stringify(domain)) : action?.domain ? Array.isArray(action.domain) ? [...action.domain] : evalJSONDomain(action.domain, context) : [];
|
|
4567
4567
|
const limit2 = pageLimit;
|
|
4568
4568
|
const offset = debouncedPage * pageLimit;
|
|
4569
4569
|
const fields = typeof groupByList === "object" ? groupByList?.fields : void 0;
|
|
@@ -4574,7 +4574,7 @@ var useListData = ({
|
|
|
4574
4574
|
return {
|
|
4575
4575
|
model: action?.res_model,
|
|
4576
4576
|
specification,
|
|
4577
|
-
domain:
|
|
4577
|
+
domain: domainParsed,
|
|
4578
4578
|
limit: limit2,
|
|
4579
4579
|
offset,
|
|
4580
4580
|
fields,
|
|
@@ -4596,7 +4596,7 @@ var useListData = ({
|
|
|
4596
4596
|
const list = useGetListData2(
|
|
4597
4597
|
{ ...listDataProps },
|
|
4598
4598
|
[
|
|
4599
|
-
listDataProps?.domain,
|
|
4599
|
+
JSON.stringify(listDataProps?.domain),
|
|
4600
4600
|
listDataProps?.groupby,
|
|
4601
4601
|
listDataProps?.limit,
|
|
4602
4602
|
listDataProps?.offset,
|