@fctc/widget-logic 2.4.8 → 2.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 +5 -1
- package/dist/hooks.mjs +5 -1
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/dist/widget.js +0 -1
- package/dist/widget.mjs +0 -1
- package/package.json +96 -96
package/dist/hooks.js
CHANGED
|
@@ -170,7 +170,11 @@ var useMenu = ({
|
|
|
170
170
|
const { env } = (0, provider_exports.useEnv)();
|
|
171
171
|
const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
|
|
172
172
|
const [action, callAction] = useCallAction();
|
|
173
|
-
const menuData = useGetMenu2(
|
|
173
|
+
const menuData = useGetMenu2(
|
|
174
|
+
context,
|
|
175
|
+
specification,
|
|
176
|
+
!!context && Object.keys(context).length > 0
|
|
177
|
+
);
|
|
174
178
|
const [menuId, setMenuId] = (0, import_react2.useState)(void 0);
|
|
175
179
|
const configedIconData = (0, import_react2.useMemo)(() => {
|
|
176
180
|
const data = menuData.data;
|
package/dist/hooks.mjs
CHANGED
|
@@ -150,7 +150,11 @@ var useMenu = ({
|
|
|
150
150
|
const { env } = (0, provider_exports.useEnv)();
|
|
151
151
|
const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
|
|
152
152
|
const [action, callAction] = useCallAction();
|
|
153
|
-
const menuData = useGetMenu2(
|
|
153
|
+
const menuData = useGetMenu2(
|
|
154
|
+
context,
|
|
155
|
+
specification,
|
|
156
|
+
!!context && Object.keys(context).length > 0
|
|
157
|
+
);
|
|
154
158
|
const [menuId, setMenuId] = useState2(void 0);
|
|
155
159
|
const configedIconData = useMemo(() => {
|
|
156
160
|
const data = menuData.data;
|
package/dist/index.js
CHANGED
|
@@ -4220,7 +4220,11 @@ var useMenu = ({
|
|
|
4220
4220
|
const { env } = (0, provider_exports.useEnv)();
|
|
4221
4221
|
const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
|
|
4222
4222
|
const [action, callAction] = useCallAction();
|
|
4223
|
-
const menuData = useGetMenu2(
|
|
4223
|
+
const menuData = useGetMenu2(
|
|
4224
|
+
context,
|
|
4225
|
+
specification,
|
|
4226
|
+
!!context && Object.keys(context).length > 0
|
|
4227
|
+
);
|
|
4224
4228
|
const [menuId, setMenuId] = (0, import_react2.useState)(void 0);
|
|
4225
4229
|
const configedIconData = (0, import_react2.useMemo)(() => {
|
|
4226
4230
|
const data = menuData.data;
|
|
@@ -7131,7 +7135,6 @@ var tableGroupController = (props) => {
|
|
|
7131
7135
|
setSelectedRowKeys2([...clonedKeys, -1]);
|
|
7132
7136
|
setTimeout(() => setSelectedRowKeys2(clonedKeys), 500);
|
|
7133
7137
|
} else if (isShowGroup && selectedRowKeys?.length > 0 && typeTableGroup === "list" && !checkedAll && !allIdsNull) {
|
|
7134
|
-
console.log("abc");
|
|
7135
7138
|
const filteredKeys = selectedRowKeys.filter((id) => id > -1);
|
|
7136
7139
|
setSelectedRowKeys2(filteredKeys);
|
|
7137
7140
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4294,7 +4294,11 @@ var useMenu = ({
|
|
|
4294
4294
|
const { env } = (0, provider_exports.useEnv)();
|
|
4295
4295
|
const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
|
|
4296
4296
|
const [action, callAction] = useCallAction();
|
|
4297
|
-
const menuData = useGetMenu2(
|
|
4297
|
+
const menuData = useGetMenu2(
|
|
4298
|
+
context,
|
|
4299
|
+
specification,
|
|
4300
|
+
!!context && Object.keys(context).length > 0
|
|
4301
|
+
);
|
|
4298
4302
|
const [menuId, setMenuId] = useState2(void 0);
|
|
4299
4303
|
const configedIconData = useMemo(() => {
|
|
4300
4304
|
const data = menuData.data;
|
|
@@ -7219,7 +7223,6 @@ var tableGroupController = (props) => {
|
|
|
7219
7223
|
setSelectedRowKeys2([...clonedKeys, -1]);
|
|
7220
7224
|
setTimeout(() => setSelectedRowKeys2(clonedKeys), 500);
|
|
7221
7225
|
} else if (isShowGroup && selectedRowKeys?.length > 0 && typeTableGroup === "list" && !checkedAll && !allIdsNull) {
|
|
7222
|
-
console.log("abc");
|
|
7223
7226
|
const filteredKeys = selectedRowKeys.filter((id) => id > -1);
|
|
7224
7227
|
setSelectedRowKeys2(filteredKeys);
|
|
7225
7228
|
}
|
package/dist/widget.js
CHANGED
|
@@ -6286,7 +6286,6 @@ var tableGroupController = (props) => {
|
|
|
6286
6286
|
setSelectedRowKeys2([...clonedKeys, -1]);
|
|
6287
6287
|
setTimeout(() => setSelectedRowKeys2(clonedKeys), 500);
|
|
6288
6288
|
} else if (isShowGroup && selectedRowKeys?.length > 0 && typeTableGroup === "list" && !checkedAll && !allIdsNull) {
|
|
6289
|
-
console.log("abc");
|
|
6290
6289
|
const filteredKeys = selectedRowKeys.filter((id) => id > -1);
|
|
6291
6290
|
setSelectedRowKeys2(filteredKeys);
|
|
6292
6291
|
}
|
package/dist/widget.mjs
CHANGED
|
@@ -6351,7 +6351,6 @@ var tableGroupController = (props) => {
|
|
|
6351
6351
|
setSelectedRowKeys2([...clonedKeys, -1]);
|
|
6352
6352
|
setTimeout(() => setSelectedRowKeys2(clonedKeys), 500);
|
|
6353
6353
|
} else if (isShowGroup && selectedRowKeys?.length > 0 && typeTableGroup === "list" && !checkedAll && !allIdsNull) {
|
|
6354
|
-
console.log("abc");
|
|
6355
6354
|
const filteredKeys = selectedRowKeys.filter((id) => id > -1);
|
|
6356
6355
|
setSelectedRowKeys2(filteredKeys);
|
|
6357
6356
|
}
|
package/package.json
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "2.4.
|
|
4
|
-
"types": "dist/index.d.ts",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./hooks": {
|
|
14
|
-
"types": "./dist/hooks.d.ts",
|
|
15
|
-
"import": "./dist/hooks.mjs",
|
|
16
|
-
"require": "./dist/hooks.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./widget": {
|
|
19
|
-
"types": "./dist/widget.d.ts",
|
|
20
|
-
"import": "./dist/widget.mjs",
|
|
21
|
-
"require": "./dist/widget.cjs"
|
|
22
|
-
},
|
|
23
|
-
"./icons": {
|
|
24
|
-
"types": "./dist/icons.d.ts",
|
|
25
|
-
"import": "./dist/icons.mjs",
|
|
26
|
-
"require": "./dist/icons.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./utils": {
|
|
29
|
-
"types": "./dist/utils.d.ts",
|
|
30
|
-
"import": "./dist/utils.mjs",
|
|
31
|
-
"require": "./dist/utils.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./store": {
|
|
34
|
-
"types": "./dist/store.d.ts",
|
|
35
|
-
"import": "./dist/store.mjs",
|
|
36
|
-
"require": "./dist/store.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./config": {
|
|
39
|
-
"types": "./dist/config.d.ts",
|
|
40
|
-
"import": "./dist/config.mjs",
|
|
41
|
-
"require": "./dist/config.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./constants": {
|
|
44
|
-
"types": "./dist/constants.d.ts",
|
|
45
|
-
"import": "./dist/constants.mjs",
|
|
46
|
-
"require": "./dist/constants.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./environment": {
|
|
49
|
-
"types": "./dist/environment.d.ts",
|
|
50
|
-
"import": "./dist/environment.mjs",
|
|
51
|
-
"require": "./dist/environment.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./provider": {
|
|
54
|
-
"types": "./dist/provider.d.ts",
|
|
55
|
-
"import": "./dist/provider.mjs",
|
|
56
|
-
"require": "./dist/provider.cjs"
|
|
57
|
-
},
|
|
58
|
-
"./services": {
|
|
59
|
-
"types": "./dist/services.d.ts",
|
|
60
|
-
"import": "./dist/services.mjs",
|
|
61
|
-
"require": "./dist/services.cjs"
|
|
62
|
-
},
|
|
63
|
-
"./types": {
|
|
64
|
-
"types": "./dist/types.d.ts",
|
|
65
|
-
"import": "./dist/types.mjs",
|
|
66
|
-
"require": "./dist/types.cjs"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"files": [
|
|
70
|
-
"dist"
|
|
71
|
-
],
|
|
72
|
-
"scripts": {
|
|
73
|
-
"build": "tsup",
|
|
74
|
-
"test": "jest"
|
|
75
|
-
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"@fctc/interface-logic": "^2.4.
|
|
78
|
-
"@headlessui/react": "^2.2.6",
|
|
79
|
-
"@tanstack/react-query": "^5.84.0",
|
|
80
|
-
"i18next": "^25.3.2",
|
|
81
|
-
"i18next-browser-languagedetector": "^8.2.0",
|
|
82
|
-
"react-i18next": "^15.6.1",
|
|
83
|
-
"react-tooltip": "^5.29.1"
|
|
84
|
-
},
|
|
85
|
-
"devDependencies": {
|
|
86
|
-
"@types/react": "^18.3.1",
|
|
87
|
-
"jest": "^29.7.0",
|
|
88
|
-
"react": "18.0.0",
|
|
89
|
-
"tsup": "^8.0.0",
|
|
90
|
-
"typescript": "^5.8.2"
|
|
91
|
-
},
|
|
92
|
-
"packageManager": "yarn@1.22.0",
|
|
93
|
-
"peerDependencies": {
|
|
94
|
-
"@fctc/interface-logic": "^1.6.9"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/widget-logic",
|
|
3
|
+
"version": "2.4.10",
|
|
4
|
+
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./hooks": {
|
|
14
|
+
"types": "./dist/hooks.d.ts",
|
|
15
|
+
"import": "./dist/hooks.mjs",
|
|
16
|
+
"require": "./dist/hooks.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./widget": {
|
|
19
|
+
"types": "./dist/widget.d.ts",
|
|
20
|
+
"import": "./dist/widget.mjs",
|
|
21
|
+
"require": "./dist/widget.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./icons": {
|
|
24
|
+
"types": "./dist/icons.d.ts",
|
|
25
|
+
"import": "./dist/icons.mjs",
|
|
26
|
+
"require": "./dist/icons.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./utils": {
|
|
29
|
+
"types": "./dist/utils.d.ts",
|
|
30
|
+
"import": "./dist/utils.mjs",
|
|
31
|
+
"require": "./dist/utils.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./store": {
|
|
34
|
+
"types": "./dist/store.d.ts",
|
|
35
|
+
"import": "./dist/store.mjs",
|
|
36
|
+
"require": "./dist/store.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./config": {
|
|
39
|
+
"types": "./dist/config.d.ts",
|
|
40
|
+
"import": "./dist/config.mjs",
|
|
41
|
+
"require": "./dist/config.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./constants": {
|
|
44
|
+
"types": "./dist/constants.d.ts",
|
|
45
|
+
"import": "./dist/constants.mjs",
|
|
46
|
+
"require": "./dist/constants.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./environment": {
|
|
49
|
+
"types": "./dist/environment.d.ts",
|
|
50
|
+
"import": "./dist/environment.mjs",
|
|
51
|
+
"require": "./dist/environment.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./provider": {
|
|
54
|
+
"types": "./dist/provider.d.ts",
|
|
55
|
+
"import": "./dist/provider.mjs",
|
|
56
|
+
"require": "./dist/provider.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./services": {
|
|
59
|
+
"types": "./dist/services.d.ts",
|
|
60
|
+
"import": "./dist/services.mjs",
|
|
61
|
+
"require": "./dist/services.cjs"
|
|
62
|
+
},
|
|
63
|
+
"./types": {
|
|
64
|
+
"types": "./dist/types.d.ts",
|
|
65
|
+
"import": "./dist/types.mjs",
|
|
66
|
+
"require": "./dist/types.cjs"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"files": [
|
|
70
|
+
"dist"
|
|
71
|
+
],
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "tsup",
|
|
74
|
+
"test": "jest"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@fctc/interface-logic": "^2.4.7",
|
|
78
|
+
"@headlessui/react": "^2.2.6",
|
|
79
|
+
"@tanstack/react-query": "^5.84.0",
|
|
80
|
+
"i18next": "^25.3.2",
|
|
81
|
+
"i18next-browser-languagedetector": "^8.2.0",
|
|
82
|
+
"react-i18next": "^15.6.1",
|
|
83
|
+
"react-tooltip": "^5.29.1"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@types/react": "^18.3.1",
|
|
87
|
+
"jest": "^29.7.0",
|
|
88
|
+
"react": "18.0.0",
|
|
89
|
+
"tsup": "^8.0.0",
|
|
90
|
+
"typescript": "^5.8.2"
|
|
91
|
+
},
|
|
92
|
+
"packageManager": "yarn@1.22.0",
|
|
93
|
+
"peerDependencies": {
|
|
94
|
+
"@fctc/interface-logic": "^1.6.9"
|
|
95
|
+
}
|
|
96
|
+
}
|