@fctc/widget-logic 4.7.1 → 4.7.3
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.d.mts +3 -2
- package/dist/hooks.d.ts +3 -2
- package/dist/hooks.js +2 -2
- package/dist/hooks.mjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/hooks.d.mts
CHANGED
|
@@ -58,6 +58,7 @@ interface RecordMenu {
|
|
|
58
58
|
res_model: string;
|
|
59
59
|
type: string;
|
|
60
60
|
context: string;
|
|
61
|
+
external_xml_id?: string;
|
|
61
62
|
};
|
|
62
63
|
active: boolean;
|
|
63
64
|
child_id?: RecordMenu[];
|
|
@@ -562,7 +563,7 @@ declare const AppProvider: ({ children, menuParams, aid, }: {
|
|
|
562
563
|
domain?: any;
|
|
563
564
|
context?: any;
|
|
564
565
|
};
|
|
565
|
-
aid?:
|
|
566
|
+
aid?: any;
|
|
566
567
|
}) => react_jsx_runtime.JSX.Element;
|
|
567
568
|
declare const useAppProvider: () => AppProviderType;
|
|
568
569
|
|
|
@@ -767,7 +768,7 @@ declare const useDetail: (sub?: number) => {
|
|
|
767
768
|
};
|
|
768
769
|
|
|
769
770
|
declare const useGetAction: ({ aid, context, }: {
|
|
770
|
-
aid:
|
|
771
|
+
aid: any;
|
|
771
772
|
context: any;
|
|
772
773
|
}) => {
|
|
773
774
|
onLoadAction: () => void;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ interface RecordMenu {
|
|
|
58
58
|
res_model: string;
|
|
59
59
|
type: string;
|
|
60
60
|
context: string;
|
|
61
|
+
external_xml_id?: string;
|
|
61
62
|
};
|
|
62
63
|
active: boolean;
|
|
63
64
|
child_id?: RecordMenu[];
|
|
@@ -562,7 +563,7 @@ declare const AppProvider: ({ children, menuParams, aid, }: {
|
|
|
562
563
|
domain?: any;
|
|
563
564
|
context?: any;
|
|
564
565
|
};
|
|
565
|
-
aid?:
|
|
566
|
+
aid?: any;
|
|
566
567
|
}) => react_jsx_runtime.JSX.Element;
|
|
567
568
|
declare const useAppProvider: () => AppProviderType;
|
|
568
569
|
|
|
@@ -767,7 +768,7 @@ declare const useDetail: (sub?: number) => {
|
|
|
767
768
|
};
|
|
768
769
|
|
|
769
770
|
declare const useGetAction: ({ aid, context, }: {
|
|
770
|
-
aid:
|
|
771
|
+
aid: any;
|
|
771
772
|
context: any;
|
|
772
773
|
}) => {
|
|
773
774
|
onLoadAction: () => void;
|
package/dist/hooks.js
CHANGED
|
@@ -410,13 +410,13 @@ var useMenu = ({
|
|
|
410
410
|
xNode: xNode2,
|
|
411
411
|
context: context2
|
|
412
412
|
}) => {
|
|
413
|
-
const aidMenu = menu?.action?.id?.id;
|
|
413
|
+
const aidMenu = menu?.action?.external_xml_id || menu?.action?.id?.id;
|
|
414
414
|
if (menu) {
|
|
415
415
|
setMenuId(menu.id?.toString() ?? "");
|
|
416
416
|
}
|
|
417
417
|
if (aidMenu) {
|
|
418
418
|
const actionResponse = await callAction({
|
|
419
|
-
aid:
|
|
419
|
+
aid: aidMenu,
|
|
420
420
|
service: service2 ?? "",
|
|
421
421
|
xNode: xNode2,
|
|
422
422
|
context: context2
|
package/dist/hooks.mjs
CHANGED
|
@@ -391,13 +391,13 @@ var useMenu = ({
|
|
|
391
391
|
xNode: xNode2,
|
|
392
392
|
context: context2
|
|
393
393
|
}) => {
|
|
394
|
-
const aidMenu = menu?.action?.id?.id;
|
|
394
|
+
const aidMenu = menu?.action?.external_xml_id || menu?.action?.id?.id;
|
|
395
395
|
if (menu) {
|
|
396
396
|
setMenuId(menu.id?.toString() ?? "");
|
|
397
397
|
}
|
|
398
398
|
if (aidMenu) {
|
|
399
399
|
const actionResponse = await callAction({
|
|
400
|
-
aid:
|
|
400
|
+
aid: aidMenu,
|
|
401
401
|
service: service2 ?? "",
|
|
402
402
|
xNode: xNode2,
|
|
403
403
|
context: context2
|
package/dist/index.js
CHANGED
|
@@ -4460,13 +4460,13 @@ var useMenu = ({
|
|
|
4460
4460
|
xNode: xNode2,
|
|
4461
4461
|
context: context2
|
|
4462
4462
|
}) => {
|
|
4463
|
-
const aidMenu = menu?.action?.id?.id;
|
|
4463
|
+
const aidMenu = menu?.action?.external_xml_id || menu?.action?.id?.id;
|
|
4464
4464
|
if (menu) {
|
|
4465
4465
|
setMenuId(menu.id?.toString() ?? "");
|
|
4466
4466
|
}
|
|
4467
4467
|
if (aidMenu) {
|
|
4468
4468
|
const actionResponse = await callAction({
|
|
4469
|
-
aid:
|
|
4469
|
+
aid: aidMenu,
|
|
4470
4470
|
service: service2 ?? "",
|
|
4471
4471
|
xNode: xNode2,
|
|
4472
4472
|
context: context2
|
package/dist/index.mjs
CHANGED
|
@@ -4550,13 +4550,13 @@ var useMenu = ({
|
|
|
4550
4550
|
xNode: xNode2,
|
|
4551
4551
|
context: context2
|
|
4552
4552
|
}) => {
|
|
4553
|
-
const aidMenu = menu?.action?.id?.id;
|
|
4553
|
+
const aidMenu = menu?.action?.external_xml_id || menu?.action?.id?.id;
|
|
4554
4554
|
if (menu) {
|
|
4555
4555
|
setMenuId(menu.id?.toString() ?? "");
|
|
4556
4556
|
}
|
|
4557
4557
|
if (aidMenu) {
|
|
4558
4558
|
const actionResponse = await callAction({
|
|
4559
|
-
aid:
|
|
4559
|
+
aid: aidMenu,
|
|
4560
4560
|
service: service2 ?? "",
|
|
4561
4561
|
xNode: xNode2,
|
|
4562
4562
|
context: context2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.3",
|
|
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": "^4.0.
|
|
77
|
+
"@fctc/interface-logic": "^4.0.6",
|
|
78
78
|
"@headlessui/react": "^2.2.6",
|
|
79
79
|
"@tanstack/react-query": "^5.84.0",
|
|
80
80
|
"i18next": "^25.3.2",
|