@fctc/widget-logic 3.10.9 → 4.0.0
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 +2 -2
- package/dist/hooks.mjs +2 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/widget.js +1 -1
- package/dist/widget.mjs +1 -1
- package/package.json +2 -2
package/dist/hooks.js
CHANGED
|
@@ -369,7 +369,7 @@ var useMenu = ({
|
|
|
369
369
|
const menuData = useGetMenu2(
|
|
370
370
|
context,
|
|
371
371
|
specification,
|
|
372
|
-
!!context && !(0, utils_exports.isObjectEmpty)(context),
|
|
372
|
+
!!context && !(0, utils_exports.isObjectEmpty)(context) && !!context?.uid && !!context?.lang,
|
|
373
373
|
domain,
|
|
374
374
|
defaultService
|
|
375
375
|
);
|
|
@@ -620,7 +620,7 @@ var AppProvider = ({
|
|
|
620
620
|
...menuParams?.context ?? {}
|
|
621
621
|
}
|
|
622
622
|
]);
|
|
623
|
-
}, [user?.context]);
|
|
623
|
+
}, [user?.context, company?.companyInfo?.isFetched]);
|
|
624
624
|
const menu = useMenu({
|
|
625
625
|
context: {
|
|
626
626
|
...menuContext
|
package/dist/hooks.mjs
CHANGED
|
@@ -350,7 +350,7 @@ var useMenu = ({
|
|
|
350
350
|
const menuData = useGetMenu2(
|
|
351
351
|
context,
|
|
352
352
|
specification,
|
|
353
|
-
!!context && !(0, utils_exports.isObjectEmpty)(context),
|
|
353
|
+
!!context && !(0, utils_exports.isObjectEmpty)(context) && !!context?.uid && !!context?.lang,
|
|
354
354
|
domain,
|
|
355
355
|
defaultService
|
|
356
356
|
);
|
|
@@ -601,7 +601,7 @@ var AppProvider = ({
|
|
|
601
601
|
...menuParams?.context ?? {}
|
|
602
602
|
}
|
|
603
603
|
]);
|
|
604
|
-
}, [user?.context]);
|
|
604
|
+
}, [user?.context, company?.companyInfo?.isFetched]);
|
|
605
605
|
const menu = useMenu({
|
|
606
606
|
context: {
|
|
607
607
|
...menuContext
|
package/dist/index.js
CHANGED
|
@@ -4419,7 +4419,7 @@ var useMenu = ({
|
|
|
4419
4419
|
const menuData = useGetMenu2(
|
|
4420
4420
|
context,
|
|
4421
4421
|
specification,
|
|
4422
|
-
!!context && !(0, utils_exports.isObjectEmpty)(context),
|
|
4422
|
+
!!context && !(0, utils_exports.isObjectEmpty)(context) && !!context?.uid && !!context?.lang,
|
|
4423
4423
|
domain,
|
|
4424
4424
|
defaultService
|
|
4425
4425
|
);
|
|
@@ -4670,7 +4670,7 @@ var AppProvider = ({
|
|
|
4670
4670
|
...menuParams?.context ?? {}
|
|
4671
4671
|
}
|
|
4672
4672
|
]);
|
|
4673
|
-
}, [user?.context]);
|
|
4673
|
+
}, [user?.context, company?.companyInfo?.isFetched]);
|
|
4674
4674
|
const menu = useMenu({
|
|
4675
4675
|
context: {
|
|
4676
4676
|
...menuContext
|
|
@@ -5552,7 +5552,7 @@ var many2oneFieldController = (props) => {
|
|
|
5552
5552
|
},
|
|
5553
5553
|
[methods, name, onChange]
|
|
5554
5554
|
);
|
|
5555
|
-
const allowShowDetail = showDetail && contextObject?.form_view_ref && (!("no_open" in optionsObject) || optionsObject
|
|
5555
|
+
const allowShowDetail = showDetail && contextObject?.form_view_ref && (!optionsObject || !("no_open" in optionsObject) || optionsObject.no_open === false);
|
|
5556
5556
|
return {
|
|
5557
5557
|
isShowModalMany2Many,
|
|
5558
5558
|
isFetching,
|
package/dist/index.mjs
CHANGED
|
@@ -4494,7 +4494,7 @@ var useMenu = ({
|
|
|
4494
4494
|
const menuData = useGetMenu2(
|
|
4495
4495
|
context,
|
|
4496
4496
|
specification,
|
|
4497
|
-
!!context && !(0, utils_exports.isObjectEmpty)(context),
|
|
4497
|
+
!!context && !(0, utils_exports.isObjectEmpty)(context) && !!context?.uid && !!context?.lang,
|
|
4498
4498
|
domain,
|
|
4499
4499
|
defaultService
|
|
4500
4500
|
);
|
|
@@ -4745,7 +4745,7 @@ var AppProvider = ({
|
|
|
4745
4745
|
...menuParams?.context ?? {}
|
|
4746
4746
|
}
|
|
4747
4747
|
]);
|
|
4748
|
-
}, [user?.context]);
|
|
4748
|
+
}, [user?.context, company?.companyInfo?.isFetched]);
|
|
4749
4749
|
const menu = useMenu({
|
|
4750
4750
|
context: {
|
|
4751
4751
|
...menuContext
|
|
@@ -5632,7 +5632,7 @@ var many2oneFieldController = (props) => {
|
|
|
5632
5632
|
},
|
|
5633
5633
|
[methods, name, onChange]
|
|
5634
5634
|
);
|
|
5635
|
-
const allowShowDetail = showDetail && contextObject?.form_view_ref && (!("no_open" in optionsObject) || optionsObject
|
|
5635
|
+
const allowShowDetail = showDetail && contextObject?.form_view_ref && (!optionsObject || !("no_open" in optionsObject) || optionsObject.no_open === false);
|
|
5636
5636
|
return {
|
|
5637
5637
|
isShowModalMany2Many,
|
|
5638
5638
|
isFetching,
|
package/dist/widget.js
CHANGED
|
@@ -4793,7 +4793,7 @@ var many2oneFieldController = (props) => {
|
|
|
4793
4793
|
},
|
|
4794
4794
|
[methods, name, onChange]
|
|
4795
4795
|
);
|
|
4796
|
-
const allowShowDetail = showDetail && contextObject?.form_view_ref && (!("no_open" in optionsObject) || optionsObject
|
|
4796
|
+
const allowShowDetail = showDetail && contextObject?.form_view_ref && (!optionsObject || !("no_open" in optionsObject) || optionsObject.no_open === false);
|
|
4797
4797
|
return {
|
|
4798
4798
|
isShowModalMany2Many,
|
|
4799
4799
|
isFetching,
|
package/dist/widget.mjs
CHANGED
|
@@ -4850,7 +4850,7 @@ var many2oneFieldController = (props) => {
|
|
|
4850
4850
|
},
|
|
4851
4851
|
[methods, name, onChange]
|
|
4852
4852
|
);
|
|
4853
|
-
const allowShowDetail = showDetail && contextObject?.form_view_ref && (!("no_open" in optionsObject) || optionsObject
|
|
4853
|
+
const allowShowDetail = showDetail && contextObject?.form_view_ref && (!optionsObject || !("no_open" in optionsObject) || optionsObject.no_open === false);
|
|
4854
4854
|
return {
|
|
4855
4855
|
isShowModalMany2Many,
|
|
4856
4856
|
isFetching,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
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.5.
|
|
77
|
+
"@fctc/interface-logic": "^3.5.3",
|
|
78
78
|
"@headlessui/react": "^2.2.6",
|
|
79
79
|
"@tanstack/react-query": "^5.84.0",
|
|
80
80
|
"i18next": "^25.3.2",
|