react-toolkits 0.3.1 → 0.3.2
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/CHANGELOG.md +10 -3
- package/README.md +20 -20
- package/{dist → lib}/index.css.map +1 -1
- package/{dist → lib}/index.d.mts +174 -114
- package/lib/index.js +24 -0
- package/lib/index.js.map +1 -0
- package/locales/en_GB.d.mts +5 -0
- package/locales/en_GB.js +5 -0
- package/locales/en_GB.js.map +1 -0
- package/locales/index-b4a408d4.d.ts +63 -0
- package/locales/ja_JP.d.mts +5 -0
- package/locales/ja_JP.js +5 -0
- package/locales/ja_JP.js.map +1 -0
- package/locales/ko_KR.d.mts +5 -0
- package/locales/ko_KR.js +5 -0
- package/locales/ko_KR.js.map +1 -0
- package/locales/zh_CN.d.mts +5 -0
- package/locales/zh_CN.js +5 -0
- package/locales/zh_CN.js.map +1 -0
- package/package.json +21 -19
- package/dist/index.esm.js +0 -24
- package/dist/index.esm.js.map +0 -1
- /package/{dist → lib}/index.css +0 -0
- /package/{dist → lib}/logo-L6MFCL6M.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# react-toolkits
|
|
2
2
|
|
|
3
|
+
## 0.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 860eeec: feat: support i18n
|
|
8
|
+
- 3dbfca6: refactor: combine useQueryListJump and useQueryListMutate into useQueryListTrigger
|
|
9
|
+
|
|
3
10
|
## 0.3.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -52,14 +59,14 @@
|
|
|
52
59
|
|
|
53
60
|
### Patch Changes
|
|
54
61
|
|
|
55
|
-
- c6825d1: fix:
|
|
62
|
+
- c6825d1: fix: ContextProvider title value issue
|
|
56
63
|
- 99bd364: feat: cache ToolkitsContext config
|
|
57
64
|
|
|
58
65
|
## 0.2.22
|
|
59
66
|
|
|
60
67
|
### Patch Changes
|
|
61
68
|
|
|
62
|
-
- a9d0a28: feat: set default values for
|
|
69
|
+
- a9d0a28: feat: set default values for ContextProvider
|
|
63
70
|
|
|
64
71
|
## 0.2.21
|
|
65
72
|
|
|
@@ -71,7 +78,7 @@
|
|
|
71
78
|
|
|
72
79
|
### Patch Changes
|
|
73
80
|
|
|
74
|
-
- fceb92e: fix: missing isGlobalNS prop in
|
|
81
|
+
- fceb92e: fix: missing isGlobalNS prop in ContextProvider
|
|
75
82
|
|
|
76
83
|
## 0.2.19
|
|
77
84
|
|
package/README.md
CHANGED
|
@@ -10,32 +10,32 @@ pnpm install react-toolkits
|
|
|
10
10
|
|
|
11
11
|
```tsx
|
|
12
12
|
import 'react-toolkits/style.css'
|
|
13
|
-
import {createRoot} from 'react-dom/client'
|
|
14
|
-
import {ReactToolkitsProvider} from 'react-toolkits'
|
|
15
|
-
import type {
|
|
13
|
+
import { createRoot } from 'react-dom/client'
|
|
14
|
+
import { ReactToolkitsProvider } from 'react-toolkits'
|
|
15
|
+
import type { NavMenuItem } from "react-toolkits";
|
|
16
16
|
|
|
17
17
|
const container = document.getElementById('root') as HTMLElement
|
|
18
18
|
const root = createRoot(container)
|
|
19
19
|
|
|
20
|
-
const items:
|
|
20
|
+
const items: NavMenuItem[] = []
|
|
21
21
|
|
|
22
22
|
root.render(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
<ReactToolkitsProvider title="React Web" menuItems={items}>
|
|
24
|
+
<RouterProvider
|
|
25
|
+
router={router}
|
|
26
|
+
fallbackElement={
|
|
27
|
+
<Spin
|
|
28
|
+
style={{
|
|
29
|
+
display: 'flex',
|
|
30
|
+
justifyContent: 'center',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
width: '100vw',
|
|
33
|
+
height: '100vh',
|
|
34
|
+
}}
|
|
35
|
+
/>
|
|
36
|
+
}
|
|
37
|
+
/>
|
|
38
|
+
</ReactToolkitsProvider>,
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/styles/index.css"],"sourcesContent":["@import \"antd/dist/reset.css\";\n\n*, ::before, ::after{\n\n --tw-border-spacing-x: 0;\n\n --tw-border-spacing-y: 0;\n\n --tw-translate-x: 0;\n\n --tw-translate-y: 0;\n\n --tw-rotate: 0;\n\n --tw-skew-x: 0;\n\n --tw-skew-y: 0;\n\n --tw-scale-x: 1;\n\n --tw-scale-y: 1;\n\n --tw-pan-x: ;\n\n --tw-pan-y: ;\n\n --tw-pinch-zoom: ;\n\n --tw-scroll-snap-strictness: proximity;\n\n --tw-gradient-from-position: ;\n\n --tw-gradient-via-position: ;\n\n --tw-gradient-to-position: ;\n\n --tw-ordinal: ;\n\n --tw-slashed-zero: ;\n\n --tw-numeric-figure: ;\n\n --tw-numeric-spacing: ;\n\n --tw-numeric-fraction: ;\n\n --tw-ring-inset: ;\n\n --tw-ring-offset-width: 0px;\n\n --tw-ring-offset-color: #fff;\n\n --tw-ring-color: rgb(59 130 246 / 0.5);\n\n --tw-ring-offset-shadow: 0 0 #0000;\n\n --tw-ring-shadow: 0 0 #0000;\n\n --tw-shadow: 0 0 #0000;\n\n --tw-shadow-colored: 0 0 #0000;\n\n --tw-blur: ;\n\n --tw-brightness: ;\n\n --tw-contrast: ;\n\n --tw-grayscale: ;\n\n --tw-hue-rotate: ;\n\n --tw-invert: ;\n\n --tw-saturate: ;\n\n --tw-sepia: ;\n\n --tw-drop-shadow: ;\n\n --tw-backdrop-blur: ;\n\n --tw-backdrop-brightness: ;\n\n --tw-backdrop-contrast: ;\n\n --tw-backdrop-grayscale: ;\n\n --tw-backdrop-hue-rotate: ;\n\n --tw-backdrop-invert: ;\n\n --tw-backdrop-opacity: ;\n\n --tw-backdrop-saturate: ;\n\n --tw-backdrop-sepia: \n}\n\n::backdrop{\n\n --tw-border-spacing-x: 0;\n\n --tw-border-spacing-y: 0;\n\n --tw-translate-x: 0;\n\n --tw-translate-y: 0;\n\n --tw-rotate: 0;\n\n --tw-skew-x: 0;\n\n --tw-skew-y: 0;\n\n --tw-scale-x: 1;\n\n --tw-scale-y: 1;\n\n --tw-pan-x: ;\n\n --tw-pan-y: ;\n\n --tw-pinch-zoom: ;\n\n --tw-scroll-snap-strictness: proximity;\n\n --tw-gradient-from-position: ;\n\n --tw-gradient-via-position: ;\n\n --tw-gradient-to-position: ;\n\n --tw-ordinal: ;\n\n --tw-slashed-zero: ;\n\n --tw-numeric-figure: ;\n\n --tw-numeric-spacing: ;\n\n --tw-numeric-fraction: ;\n\n --tw-ring-inset: ;\n\n --tw-ring-offset-width: 0px;\n\n --tw-ring-offset-color: #fff;\n\n --tw-ring-color: rgb(59 130 246 / 0.5);\n\n --tw-ring-offset-shadow: 0 0 #0000;\n\n --tw-ring-shadow: 0 0 #0000;\n\n --tw-shadow: 0 0 #0000;\n\n --tw-shadow-colored: 0 0 #0000;\n\n --tw-blur: ;\n\n --tw-brightness: ;\n\n --tw-contrast: ;\n\n --tw-grayscale: ;\n\n --tw-hue-rotate: ;\n\n --tw-invert: ;\n\n --tw-saturate: ;\n\n --tw-sepia: ;\n\n --tw-drop-shadow: ;\n\n --tw-backdrop-blur: ;\n\n --tw-backdrop-brightness: ;\n\n --tw-backdrop-contrast: ;\n\n --tw-backdrop-grayscale: ;\n\n --tw-backdrop-hue-rotate: ;\n\n --tw-backdrop-invert: ;\n\n --tw-backdrop-opacity: ;\n\n --tw-backdrop-saturate: ;\n\n --tw-backdrop-sepia: \n}\n.container{\n\n width: 100%\n}\n@media (min-width: 640px){\n\n .container{\n\n max-width: 640px\n }\n}\n@media (min-width: 768px){\n\n .container{\n\n max-width: 768px\n }\n}\n@media (min-width: 1024px){\n\n .container{\n\n max-width: 1024px\n }\n}\n@media (min-width: 1280px){\n\n .container{\n\n max-width: 1280px\n }\n}\n@media (min-width: 1536px){\n\n .container{\n\n max-width: 1536px\n }\n}\n.fixed{\n\n position: fixed\n}\n.absolute{\n\n position: absolute\n}\n.relative{\n\n position: relative\n}\n.-top-12{\n\n top: -3rem\n}\n.left-0{\n\n left: 0px\n}\n.right-0{\n\n right: 0px\n}\n.top-1\\/2{\n\n top: 50%\n}\n.my-12{\n\n margin-top: 3rem;\n\n margin-bottom: 3rem\n}\n.mb-12{\n\n margin-bottom: 3rem\n}\n.mb-6{\n\n margin-bottom: 1.5rem\n}\n.ml-2{\n\n margin-left: 0.5rem\n}\n.ml-64{\n\n margin-left: 16rem\n}\n.ml-8{\n\n margin-left: 2rem\n}\n.block{\n\n display: block\n}\n.inline{\n\n display: inline\n}\n.flex{\n\n display: flex\n}\n.hidden{\n\n display: none\n}\n.h-8{\n\n height: 2rem\n}\n.h-full{\n\n height: 100%\n}\n.h-screen{\n\n height: 100vh\n}\n.w-8{\n\n width: 2rem\n}\n.w-full{\n\n width: 100%\n}\n.flex-1{\n\n flex: 1 1 0%\n}\n.-translate-y-1\\/2{\n\n --tw-translate-y: -50%;\n\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.transform{\n\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.flex-col{\n\n flex-direction: column\n}\n.items-end{\n\n align-items: flex-end\n}\n.items-center{\n\n align-items: center\n}\n.justify-end{\n\n justify-content: flex-end\n}\n.justify-center{\n\n justify-content: center\n}\n.justify-between{\n\n justify-content: space-between\n}\n.bg-gray-50{\n\n --tw-bg-opacity: 1;\n\n background-color: rgb(249 250 251 / var(--tw-bg-opacity))\n}\n.p-6{\n\n padding: 1.5rem\n}\n.px-6{\n\n padding-left: 1.5rem;\n\n padding-right: 1.5rem\n}\n.py-4{\n\n padding-top: 1rem;\n\n padding-bottom: 1rem\n}\n.text-center{\n\n text-align: center\n}\n.text-start{\n\n text-align: start\n}\n.text-lg{\n\n font-size: 1.125rem;\n\n line-height: 1.75rem\n}\n.font-bold{\n\n font-weight: 700\n}\n.filter{\n\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)\n}\n"],"mappings":"6BAEA,EAAG,QAAU,OAET,uBAAuB,EAEvB,uBAAuB,EAEvB,kBAAkB,EAElB,kBAAkB,EAElB,aAAa,EAEb,aAAa,EAEb,aAAa,EAEb,cAAc,EAEd,cAAc,EAEd,aAEA,aAEA,kBAEA,6BAA6B,UAE7B,8BAEA,6BAEA,4BAEA,eAEA,oBAEA,sBAEA,uBAEA,wBAEA,kBAEA,wBAAwB,IAExB,wBAAwB,KAExB,iBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE,IAElC,yBAAyB,EAAE,EAAE,MAE7B,kBAAkB,EAAE,EAAE,MAEtB,aAAa,EAAE,EAAE,MAEjB,qBAAqB,EAAE,EAAE,MAEzB,YAEA,kBAEA,gBAEA,iBAEA,kBAEA,cAEA,gBAEA,aAEA,mBAEA,qBAEA,2BAEA,yBAEA,0BAEA,2BAEA,uBAEA,wBAEA,yBAEA,qBACJ,CAEA,WAEI,uBAAuB,EAEvB,uBAAuB,EAEvB,kBAAkB,EAElB,kBAAkB,EAElB,aAAa,EAEb,aAAa,EAEb,aAAa,EAEb,cAAc,EAEd,cAAc,EAEd,aAEA,aAEA,kBAEA,6BAA6B,UAE7B,8BAEA,6BAEA,4BAEA,eAEA,oBAEA,sBAEA,uBAEA,wBAEA,kBAEA,wBAAwB,IAExB,wBAAwB,KAExB,iBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE,IAElC,yBAAyB,EAAE,EAAE,MAE7B,kBAAkB,EAAE,EAAE,MAEtB,aAAa,EAAE,EAAE,MAEjB,qBAAqB,EAAE,EAAE,MAEzB,YAEA,kBAEA,gBAEA,iBAEA,kBAEA,cAEA,gBAEA,aAEA,mBAEA,qBAEA,2BAEA,yBAEA,0BAEA,2BAEA,uBAEA,wBAEA,yBAEA,qBACJ,CACA,CAAC,UAEG,MAAO,IACX,CACA,OAAO,CAAC,SAAS,EAAE,OAEf,
|
|
1
|
+
{"version":3,"sources":["../src/styles/index.css"],"sourcesContent":["@import \"antd/dist/reset.css\";\n\n*, ::before, ::after{\n\n --tw-border-spacing-x: 0;\n\n --tw-border-spacing-y: 0;\n\n --tw-translate-x: 0;\n\n --tw-translate-y: 0;\n\n --tw-rotate: 0;\n\n --tw-skew-x: 0;\n\n --tw-skew-y: 0;\n\n --tw-scale-x: 1;\n\n --tw-scale-y: 1;\n\n --tw-pan-x: ;\n\n --tw-pan-y: ;\n\n --tw-pinch-zoom: ;\n\n --tw-scroll-snap-strictness: proximity;\n\n --tw-gradient-from-position: ;\n\n --tw-gradient-via-position: ;\n\n --tw-gradient-to-position: ;\n\n --tw-ordinal: ;\n\n --tw-slashed-zero: ;\n\n --tw-numeric-figure: ;\n\n --tw-numeric-spacing: ;\n\n --tw-numeric-fraction: ;\n\n --tw-ring-inset: ;\n\n --tw-ring-offset-width: 0px;\n\n --tw-ring-offset-color: #fff;\n\n --tw-ring-color: rgb(59 130 246 / 0.5);\n\n --tw-ring-offset-shadow: 0 0 #0000;\n\n --tw-ring-shadow: 0 0 #0000;\n\n --tw-shadow: 0 0 #0000;\n\n --tw-shadow-colored: 0 0 #0000;\n\n --tw-blur: ;\n\n --tw-brightness: ;\n\n --tw-contrast: ;\n\n --tw-grayscale: ;\n\n --tw-hue-rotate: ;\n\n --tw-invert: ;\n\n --tw-saturate: ;\n\n --tw-sepia: ;\n\n --tw-drop-shadow: ;\n\n --tw-backdrop-blur: ;\n\n --tw-backdrop-brightness: ;\n\n --tw-backdrop-contrast: ;\n\n --tw-backdrop-grayscale: ;\n\n --tw-backdrop-hue-rotate: ;\n\n --tw-backdrop-invert: ;\n\n --tw-backdrop-opacity: ;\n\n --tw-backdrop-saturate: ;\n\n --tw-backdrop-sepia: \n}\n\n::backdrop{\n\n --tw-border-spacing-x: 0;\n\n --tw-border-spacing-y: 0;\n\n --tw-translate-x: 0;\n\n --tw-translate-y: 0;\n\n --tw-rotate: 0;\n\n --tw-skew-x: 0;\n\n --tw-skew-y: 0;\n\n --tw-scale-x: 1;\n\n --tw-scale-y: 1;\n\n --tw-pan-x: ;\n\n --tw-pan-y: ;\n\n --tw-pinch-zoom: ;\n\n --tw-scroll-snap-strictness: proximity;\n\n --tw-gradient-from-position: ;\n\n --tw-gradient-via-position: ;\n\n --tw-gradient-to-position: ;\n\n --tw-ordinal: ;\n\n --tw-slashed-zero: ;\n\n --tw-numeric-figure: ;\n\n --tw-numeric-spacing: ;\n\n --tw-numeric-fraction: ;\n\n --tw-ring-inset: ;\n\n --tw-ring-offset-width: 0px;\n\n --tw-ring-offset-color: #fff;\n\n --tw-ring-color: rgb(59 130 246 / 0.5);\n\n --tw-ring-offset-shadow: 0 0 #0000;\n\n --tw-ring-shadow: 0 0 #0000;\n\n --tw-shadow: 0 0 #0000;\n\n --tw-shadow-colored: 0 0 #0000;\n\n --tw-blur: ;\n\n --tw-brightness: ;\n\n --tw-contrast: ;\n\n --tw-grayscale: ;\n\n --tw-hue-rotate: ;\n\n --tw-invert: ;\n\n --tw-saturate: ;\n\n --tw-sepia: ;\n\n --tw-drop-shadow: ;\n\n --tw-backdrop-blur: ;\n\n --tw-backdrop-brightness: ;\n\n --tw-backdrop-contrast: ;\n\n --tw-backdrop-grayscale: ;\n\n --tw-backdrop-hue-rotate: ;\n\n --tw-backdrop-invert: ;\n\n --tw-backdrop-opacity: ;\n\n --tw-backdrop-saturate: ;\n\n --tw-backdrop-sepia: \n}\n.container{\n\n width: 100%\n}\n@media (min-width: 640px){\n\n .container{\n\n max-width: 640px\n }\n}\n@media (min-width: 768px){\n\n .container{\n\n max-width: 768px\n }\n}\n@media (min-width: 1024px){\n\n .container{\n\n max-width: 1024px\n }\n}\n@media (min-width: 1280px){\n\n .container{\n\n max-width: 1280px\n }\n}\n@media (min-width: 1536px){\n\n .container{\n\n max-width: 1536px\n }\n}\n.fixed{\n\n position: fixed\n}\n.absolute{\n\n position: absolute\n}\n.relative{\n\n position: relative\n}\n.-top-12{\n\n top: -3rem\n}\n.left-0{\n\n left: 0px\n}\n.right-0{\n\n right: 0px\n}\n.top-1\\/2{\n\n top: 50%\n}\n.my-12{\n\n margin-top: 3rem;\n\n margin-bottom: 3rem\n}\n.mb-12{\n\n margin-bottom: 3rem\n}\n.mb-6{\n\n margin-bottom: 1.5rem\n}\n.ml-2{\n\n margin-left: 0.5rem\n}\n.ml-64{\n\n margin-left: 16rem\n}\n.ml-8{\n\n margin-left: 2rem\n}\n.block{\n\n display: block\n}\n.inline{\n\n display: inline\n}\n.flex{\n\n display: flex\n}\n.hidden{\n\n display: none\n}\n.h-8{\n\n height: 2rem\n}\n.h-full{\n\n height: 100%\n}\n.h-screen{\n\n height: 100vh\n}\n.w-8{\n\n width: 2rem\n}\n.w-full{\n\n width: 100%\n}\n.flex-1{\n\n flex: 1 1 0%\n}\n.-translate-y-1\\/2{\n\n --tw-translate-y: -50%;\n\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.transform{\n\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.flex-col{\n\n flex-direction: column\n}\n.items-end{\n\n align-items: flex-end\n}\n.items-center{\n\n align-items: center\n}\n.justify-end{\n\n justify-content: flex-end\n}\n.justify-center{\n\n justify-content: center\n}\n.justify-between{\n\n justify-content: space-between\n}\n.bg-gray-50{\n\n --tw-bg-opacity: 1;\n\n background-color: rgb(249 250 251 / var(--tw-bg-opacity))\n}\n.p-6{\n\n padding: 1.5rem\n}\n.px-6{\n\n padding-left: 1.5rem;\n\n padding-right: 1.5rem\n}\n.py-4{\n\n padding-top: 1rem;\n\n padding-bottom: 1rem\n}\n.text-center{\n\n text-align: center\n}\n.text-start{\n\n text-align: start\n}\n.text-lg{\n\n font-size: 1.125rem;\n\n line-height: 1.75rem\n}\n.font-bold{\n\n font-weight: 700\n}\n.filter{\n\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)\n}\n"],"mappings":"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","names":[]}
|
package/{dist → lib}/index.d.mts
RENAMED
|
@@ -1,17 +1,79 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { FC, ReactNode, Key
|
|
2
|
+
import { FC, PropsWithChildren, ReactNode, Key } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import * as antd from 'antd';
|
|
5
4
|
import { FormInstance, ModalProps, FormProps, ButtonProps } from 'antd';
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
5
|
+
import { Object as Object$1 } from 'ts-toolbelt';
|
|
6
|
+
import * as zustand_middleware from 'zustand/middleware';
|
|
8
7
|
import * as zustand from 'zustand';
|
|
9
8
|
import { MenuDividerType, MenuItemType, SubMenuType, MenuItemGroupType } from 'antd/es/menu/hooks/useItems';
|
|
10
|
-
import
|
|
9
|
+
import { Merge } from 'ts-toolbelt/out/Object/Merge';
|
|
10
|
+
import { TableProps } from 'antd/es/table';
|
|
11
11
|
import { MutatorCallback, MutatorOptions } from 'swr/_internal';
|
|
12
12
|
import { RouteObject } from 'react-router-dom';
|
|
13
13
|
import { StateStorage } from 'zustand/esm/middleware';
|
|
14
14
|
|
|
15
|
+
type Locale = {
|
|
16
|
+
noEntitlement: string;
|
|
17
|
+
name: string;
|
|
18
|
+
creationTime: string;
|
|
19
|
+
operation: string;
|
|
20
|
+
update: string;
|
|
21
|
+
edit: string;
|
|
22
|
+
delete: string;
|
|
23
|
+
selectAll: string;
|
|
24
|
+
game: string;
|
|
25
|
+
user: string;
|
|
26
|
+
role: string;
|
|
27
|
+
FilterFormWrapper: {
|
|
28
|
+
confirmText: string;
|
|
29
|
+
resetText: string;
|
|
30
|
+
};
|
|
31
|
+
FormModal: {
|
|
32
|
+
confirmText: string;
|
|
33
|
+
cancelText: string;
|
|
34
|
+
};
|
|
35
|
+
GameSelect: {
|
|
36
|
+
label: string;
|
|
37
|
+
placeholder: string;
|
|
38
|
+
};
|
|
39
|
+
RequireGame: {
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
UserWidget: {
|
|
43
|
+
logoutText: string;
|
|
44
|
+
};
|
|
45
|
+
UserList: {
|
|
46
|
+
createTitle: string;
|
|
47
|
+
createSuccessfully: string;
|
|
48
|
+
updateTitle: string;
|
|
49
|
+
updateSuccessfully: string;
|
|
50
|
+
deleteTitle: string;
|
|
51
|
+
deleteContent: string;
|
|
52
|
+
deleteSuccessfully: string;
|
|
53
|
+
};
|
|
54
|
+
RoleList: {
|
|
55
|
+
createTitle: string;
|
|
56
|
+
createSuccessfully: string;
|
|
57
|
+
updateTitle: string;
|
|
58
|
+
updateSuccessfully: string;
|
|
59
|
+
deleteTitle: string;
|
|
60
|
+
deleteContent: string;
|
|
61
|
+
deleteSuccessfully: string;
|
|
62
|
+
};
|
|
63
|
+
PermissionList: {
|
|
64
|
+
failedDescription: string;
|
|
65
|
+
baseSectionTitle: string;
|
|
66
|
+
gameSectionTitle: string;
|
|
67
|
+
gameSectionDescription: string;
|
|
68
|
+
gameSelectPlaceholder: string;
|
|
69
|
+
removeText: string;
|
|
70
|
+
addText: string;
|
|
71
|
+
};
|
|
72
|
+
RoleDetail: {
|
|
73
|
+
title: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
|
|
15
77
|
interface DynamicTagsProps {
|
|
16
78
|
initialTags?: string[];
|
|
17
79
|
addable?: boolean;
|
|
@@ -21,57 +83,106 @@ interface DynamicTagsProps {
|
|
|
21
83
|
}
|
|
22
84
|
declare const DynamicTags: FC<DynamicTagsProps>;
|
|
23
85
|
|
|
24
|
-
interface FilterFormWrapperProps<Values> {
|
|
25
|
-
form
|
|
86
|
+
interface FilterFormWrapperProps<Values> extends PropsWithChildren {
|
|
87
|
+
form: FormInstance<Values>;
|
|
26
88
|
confirmText?: ReactNode;
|
|
27
89
|
afterConfirm?: (values: Values) => void | Promise<void>;
|
|
28
|
-
afterReset?: () => void
|
|
29
|
-
children?: (form: FormInstance<Values>) => ReactNode;
|
|
90
|
+
afterReset?: (values: Values) => void;
|
|
30
91
|
extras?: {
|
|
31
92
|
key: Key;
|
|
32
93
|
render: ((form: FormInstance<Values>) => ReactNode) | ReactNode;
|
|
33
94
|
}[];
|
|
34
95
|
}
|
|
35
|
-
declare const FilterFormWrapper: <Values = any>(props: FilterFormWrapperProps<Values>) => react_jsx_runtime.JSX.Element
|
|
36
|
-
|
|
37
|
-
interface FormModalProps<Values> extends Omit<ModalProps, 'onCancel' | 'children' | 'destroyOnClose' | 'forceRender' | 'getContainer' | 'footer' | 'confirmLoading'> {
|
|
38
|
-
renderFooter?: (form: FormInstance<Values>) => ReactNode;
|
|
39
|
-
onCancel?: VoidFunction;
|
|
40
|
-
onConfirm?: (values: Values) => Promise<void>;
|
|
41
|
-
initialValues?: DeepPartial<Values>;
|
|
42
|
-
}
|
|
43
|
-
declare const FormModal: <Values extends object>(props: PropsWithChildren<FormModalProps<Values>>) => react_jsx_runtime.JSX.Element;
|
|
96
|
+
declare const FilterFormWrapper: <Values = any>(props: FilterFormWrapperProps<Values>) => react_jsx_runtime.JSX.Element;
|
|
44
97
|
|
|
45
98
|
type FormModalFormProps<Values> = Pick<FormProps<Values>, 'labelAlign' | 'labelWrap' | 'labelCol' | 'wrapperCol' | 'layout'>;
|
|
46
|
-
type UseFormModalProps<Values> = Omit<FormModalProps<Values>, 'open' | 'onCancel'> & FormModalFormProps<Values> & {
|
|
99
|
+
type UseFormModalProps<Values extends object> = Omit<FormModalProps<Values>, 'open' | 'onCancel'> & FormModalFormProps<Values> & {
|
|
47
100
|
content?: ReactNode;
|
|
48
101
|
};
|
|
49
102
|
declare function useFormModal<Values extends object>(props: UseFormModalProps<Values>): {
|
|
50
103
|
Modal: react.ReactPortal;
|
|
51
104
|
showModal: (opts?: Omit<UseFormModalProps<Values>, 'footerRender' | 'onConfirm' | 'onCancel' | 'content' | keyof FormModalFormProps<Values>>) => void;
|
|
52
105
|
closeModal: () => void;
|
|
53
|
-
form:
|
|
106
|
+
form: FormInstance<Values>;
|
|
54
107
|
};
|
|
108
|
+
interface FormModalProps<Values extends object> extends Omit<ModalProps, 'onCancel' | 'children' | 'destroyOnClose' | 'forceRender' | 'getContainer' | 'footer' | 'confirmLoading'> {
|
|
109
|
+
renderFooter?: (form: FormInstance<Values>) => ReactNode;
|
|
110
|
+
onCancel?: VoidFunction;
|
|
111
|
+
onConfirm?: (values: Values) => Promise<void>;
|
|
112
|
+
initialValues?: Object$1.Partial<Values, 'deep'>;
|
|
113
|
+
}
|
|
114
|
+
declare const FormModal: <Values extends object>(props: PropsWithChildren<FormModalProps<Values>>) => react_jsx_runtime.JSX.Element;
|
|
115
|
+
|
|
116
|
+
interface Game {
|
|
117
|
+
id: string;
|
|
118
|
+
name: string;
|
|
119
|
+
area: 'cn' | 'global';
|
|
120
|
+
Ctime: string;
|
|
121
|
+
}
|
|
122
|
+
interface GameState {
|
|
123
|
+
game: Game | null;
|
|
124
|
+
setGame: (game: Game) => void;
|
|
125
|
+
}
|
|
126
|
+
declare const useGameStore: zustand.UseBoundStore<Omit<zustand.StoreApi<GameState>, "persist"> & {
|
|
127
|
+
persist: {
|
|
128
|
+
setOptions: (options: Partial<zustand_middleware.PersistOptions<GameState, unknown>>) => void;
|
|
129
|
+
clearStorage: () => void;
|
|
130
|
+
rehydrate: () => void | Promise<void>;
|
|
131
|
+
hasHydrated: () => boolean;
|
|
132
|
+
onHydrate: (fn: (state: GameState) => void) => () => void;
|
|
133
|
+
onFinishHydration: (fn: (state: GameState) => void) => () => void;
|
|
134
|
+
getOptions: () => Partial<zustand_middleware.PersistOptions<GameState, unknown>>;
|
|
135
|
+
};
|
|
136
|
+
}>;
|
|
137
|
+
declare const GameSelect: () => react_jsx_runtime.JSX.Element;
|
|
55
138
|
|
|
56
139
|
interface HighlightTextsProps extends PropsWithChildren {
|
|
57
140
|
texts: Array<string | number>;
|
|
58
141
|
}
|
|
59
142
|
declare const Highlight: (props: HighlightTextsProps) => react_jsx_runtime.JSX.Element;
|
|
60
143
|
|
|
144
|
+
interface LayoutProps extends PropsWithChildren {
|
|
145
|
+
extras?: {
|
|
146
|
+
key: Key;
|
|
147
|
+
children: ReactNode;
|
|
148
|
+
}[];
|
|
149
|
+
}
|
|
150
|
+
declare const Layout: FC<LayoutProps>;
|
|
151
|
+
|
|
152
|
+
type MenuItemType2 = Merge<MenuItemType, {
|
|
153
|
+
code /** 权限编号 **/?: string;
|
|
154
|
+
route /** 前端路由地址 **/?: string;
|
|
155
|
+
}>;
|
|
156
|
+
type SubMenuType2 = Merge<SubMenuType, {
|
|
157
|
+
children?: NavMenuItem[];
|
|
158
|
+
}>;
|
|
159
|
+
type MenuItemGroupType2 = Merge<MenuItemGroupType, {
|
|
160
|
+
children?: NavMenuItem[];
|
|
161
|
+
}>;
|
|
162
|
+
type NavMenuItem = MenuItemType2 | SubMenuType2 | MenuItemGroupType2 | MenuDividerType | null;
|
|
163
|
+
declare const NavMenu: FC;
|
|
164
|
+
|
|
61
165
|
interface PermissionButtonProps extends Omit<ButtonProps, 'disabled'> {
|
|
62
166
|
code: string;
|
|
63
167
|
showLoading?: boolean;
|
|
64
168
|
}
|
|
65
169
|
declare const PermissionButton: FC<PropsWithChildren<PermissionButtonProps>>;
|
|
66
170
|
|
|
171
|
+
interface PermissionGuardProps {
|
|
172
|
+
code: string;
|
|
173
|
+
}
|
|
174
|
+
declare const PermissionGuard: FC<PropsWithChildren<PermissionGuardProps>>;
|
|
175
|
+
|
|
67
176
|
interface ListResponse<T = any> {
|
|
68
177
|
list: T[];
|
|
69
178
|
total: number;
|
|
70
179
|
}
|
|
71
180
|
|
|
72
181
|
declare enum QueryListAction {
|
|
73
|
-
|
|
74
|
-
Reset = "reset"
|
|
182
|
+
Confirm = "confirm",
|
|
183
|
+
Reset = "reset",
|
|
184
|
+
Jump = "jump",
|
|
185
|
+
Init = "init"
|
|
75
186
|
}
|
|
76
187
|
interface QueryListProps<Item, Values, Response> extends Pick<TableProps<Item>, 'columns' | 'rowKey' | 'tableLayout' | 'expandable' | 'rowSelection' | 'bordered'>, Pick<FilterFormWrapperProps<Values>, 'confirmText'> {
|
|
77
188
|
url: string;
|
|
@@ -85,75 +196,23 @@ interface QueryListProps<Item, Values, Response> extends Pick<TableProps<Item>,
|
|
|
85
196
|
}
|
|
86
197
|
declare const QueryList: <Item extends object, Values extends object | undefined, Response_1 = ListResponse<Item>>(props: QueryListProps<Item, Values, Response_1>) => react_jsx_runtime.JSX.Element;
|
|
87
198
|
|
|
88
|
-
|
|
89
|
-
code /** 权限编号 **/?: string;
|
|
90
|
-
route /** 前端路由地址 **/?: string;
|
|
91
|
-
}>;
|
|
92
|
-
type SubMenuType2 = Merge<SubMenuType, {
|
|
93
|
-
children?: ItemType2[];
|
|
94
|
-
}>;
|
|
95
|
-
type MenuItemGroupType2 = Merge<MenuItemGroupType, {
|
|
96
|
-
children?: ItemType2[];
|
|
97
|
-
}>;
|
|
98
|
-
type ItemType2 = MenuItemType2 | SubMenuType2 | MenuItemGroupType2 | MenuDividerType | null;
|
|
99
|
-
declare const NavMenu: FC;
|
|
199
|
+
declare const RequireGame: FC<PropsWithChildren>;
|
|
100
200
|
|
|
101
|
-
interface
|
|
201
|
+
interface ContextState {
|
|
102
202
|
title: string;
|
|
103
|
-
menuItems:
|
|
203
|
+
menuItems: NavMenuItem[];
|
|
104
204
|
isGlobalNS: boolean;
|
|
105
205
|
usePermissionV2: boolean;
|
|
106
206
|
onlyDomesticGames: boolean;
|
|
207
|
+
locale?: Locale;
|
|
107
208
|
}
|
|
108
|
-
declare const
|
|
109
|
-
declare function
|
|
110
|
-
declare function
|
|
111
|
-
declare const
|
|
112
|
-
|
|
113
|
-
interface Game {
|
|
114
|
-
id: string;
|
|
115
|
-
name: string;
|
|
116
|
-
area: 'cn' | 'global';
|
|
117
|
-
Ctime: string;
|
|
118
|
-
}
|
|
119
|
-
interface GameState$1 {
|
|
120
|
-
game: Game | null;
|
|
121
|
-
setGame: (game: Game) => void;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
declare const GameSelect: () => react_jsx_runtime.JSX.Element;
|
|
125
|
-
|
|
126
|
-
interface GameState {
|
|
127
|
-
game: Game | null;
|
|
128
|
-
setGame: (game: Game) => void;
|
|
129
|
-
}
|
|
130
|
-
declare const useGameStore: zustand.UseBoundStore<Omit<zustand.StoreApi<GameState>, "persist"> & {
|
|
131
|
-
persist: {
|
|
132
|
-
setOptions: (options: Partial<zustand_middleware.PersistOptions<GameState, unknown>>) => void;
|
|
133
|
-
clearStorage: () => void;
|
|
134
|
-
rehydrate: () => void | Promise<void>;
|
|
135
|
-
hasHydrated: () => boolean;
|
|
136
|
-
onHydrate: (fn: (state: GameState) => void) => () => void;
|
|
137
|
-
onFinishHydration: (fn: (state: GameState) => void) => () => void;
|
|
138
|
-
getOptions: () => Partial<zustand_middleware.PersistOptions<GameState, unknown>>;
|
|
139
|
-
};
|
|
140
|
-
}>;
|
|
209
|
+
declare const contextStore: zustand.UseBoundStore<zustand.StoreApi<ContextState>>;
|
|
210
|
+
declare function useContextStore<T>(selector: (state: ContextState) => T): T;
|
|
211
|
+
declare function useToolkitsContext(): ContextState;
|
|
212
|
+
declare const ContextProvider: FC<PropsWithChildren<Partial<ContextState>>>;
|
|
141
213
|
|
|
142
214
|
declare const UserWidget: FC;
|
|
143
215
|
|
|
144
|
-
interface LayoutProps extends PropsWithChildren {
|
|
145
|
-
extra?: react.ReactNode[];
|
|
146
|
-
}
|
|
147
|
-
declare const Layout: FC<LayoutProps>;
|
|
148
|
-
|
|
149
|
-
interface PermissionGuardProps {
|
|
150
|
-
code: string;
|
|
151
|
-
}
|
|
152
|
-
declare const PermissionGuard: FC<PropsWithChildren<PermissionGuardProps>>;
|
|
153
|
-
|
|
154
|
-
interface PermissionCheckResult {
|
|
155
|
-
[k: string]: boolean;
|
|
156
|
-
}
|
|
157
216
|
declare function usePermissions(codes: string[], opts?: {
|
|
158
217
|
isGlobalNS?: boolean;
|
|
159
218
|
suspense?: boolean;
|
|
@@ -161,11 +220,26 @@ declare function usePermissions(codes: string[], opts?: {
|
|
|
161
220
|
data: Record<string, boolean> | undefined;
|
|
162
221
|
isValidating: boolean;
|
|
163
222
|
};
|
|
164
|
-
declare function usePermission(code: string | undefined,
|
|
223
|
+
declare function usePermission(code: string | undefined, opts?: {
|
|
224
|
+
isGlobalNS?: boolean;
|
|
225
|
+
suspense?: boolean;
|
|
226
|
+
}): {
|
|
165
227
|
accessible: boolean;
|
|
166
228
|
isValidating: boolean;
|
|
167
229
|
};
|
|
168
230
|
|
|
231
|
+
interface QueryListPayload {
|
|
232
|
+
page?: number;
|
|
233
|
+
size?: number;
|
|
234
|
+
values?: any;
|
|
235
|
+
}
|
|
236
|
+
interface QueryListState {
|
|
237
|
+
payloadMap: Map<string, QueryListPayload>;
|
|
238
|
+
setPayload: (key: string, payload: Partial<QueryListPayload>, revalidate?: boolean) => void;
|
|
239
|
+
}
|
|
240
|
+
declare const useQueryListStore: zustand.UseBoundStore<zustand.StoreApi<QueryListState>>;
|
|
241
|
+
declare function useQueryListTrigger(): <T = any>(key: string, payload?: Partial<QueryListPayload>, data?: ListResponse<T> | Promise<ListResponse<T>> | MutatorCallback<ListResponse<T>> | undefined, opts?: MutatorOptions<ListResponse<T>> | undefined) => void;
|
|
242
|
+
|
|
169
243
|
interface UserInfo {
|
|
170
244
|
authorityId: string;
|
|
171
245
|
exp: number;
|
|
@@ -193,44 +267,30 @@ declare const useTokenStore: zustand.UseBoundStore<Omit<zustand.StoreApi<TokenSt
|
|
|
193
267
|
}>;
|
|
194
268
|
declare function useValidateToken(): void;
|
|
195
269
|
|
|
196
|
-
interface QueryListStoreValue {
|
|
197
|
-
page: number;
|
|
198
|
-
size: number;
|
|
199
|
-
formValues?: any;
|
|
200
|
-
}
|
|
201
|
-
interface QueryListState {
|
|
202
|
-
params: Map<string, QueryListStoreValue>;
|
|
203
|
-
getParams: (key: string) => QueryListStoreValue;
|
|
204
|
-
setParams: (key: string, value?: Partial<QueryListStoreValue>) => void;
|
|
205
|
-
}
|
|
206
|
-
declare const useQueryListStore: zustand.UseBoundStore<zustand.StoreApi<QueryListState>>;
|
|
207
|
-
declare function useQueryListMutate(): <T = any>(key: string, data?: ListResponse<T> | Promise<ListResponse<T>> | MutatorCallback<ListResponse<T>> | undefined, opts?: boolean | MutatorOptions<ListResponse<T>> | undefined) => Promise<ListResponse<T> | undefined>;
|
|
208
|
-
declare function useQueryListJump(): (key: string, page?: number) => void;
|
|
209
|
-
|
|
210
270
|
declare const routes$1: RouteObject;
|
|
211
271
|
|
|
212
272
|
declare const routes: RouteObject;
|
|
213
273
|
|
|
214
|
-
declare const
|
|
274
|
+
declare const mixedStorage: StateStorage;
|
|
215
275
|
|
|
216
276
|
declare class RequestError extends Error {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
data: T;
|
|
277
|
+
status?: number;
|
|
278
|
+
constructor(opts?: {
|
|
279
|
+
message?: string;
|
|
280
|
+
status?: number;
|
|
281
|
+
});
|
|
223
282
|
}
|
|
224
|
-
type RequestBody = Record<string | number, any> | FormData | null;
|
|
225
|
-
type RequestParams = Record<string | number, string | number | undefined | null> | URLSearchParams | null;
|
|
226
|
-
type RequestResponseType = 'json' | 'blob';
|
|
227
283
|
interface InitConfig extends Omit<RequestInit, 'body'> {
|
|
228
|
-
body?:
|
|
229
|
-
params?:
|
|
230
|
-
responseType?:
|
|
284
|
+
body?: Record<string | number, any> | FormData | null;
|
|
285
|
+
params?: Record<string | number, string | number | undefined | null> | URLSearchParams | null;
|
|
286
|
+
responseType?: 'json' | 'blob';
|
|
231
287
|
}
|
|
232
|
-
declare function request<T = any>(input:
|
|
233
|
-
|
|
234
|
-
|
|
288
|
+
declare function request<T = any>(input: string | URL, init?: InitConfig, isGlobalNS?: boolean): Promise<{
|
|
289
|
+
data: T;
|
|
290
|
+
headers: Headers;
|
|
291
|
+
status: number;
|
|
292
|
+
statusText: string;
|
|
293
|
+
url: string;
|
|
294
|
+
}>;
|
|
235
295
|
|
|
236
|
-
export { DynamicTags, DynamicTagsProps, FilterFormWrapper, FilterFormWrapperProps, FormModal,
|
|
296
|
+
export { ContextProvider, DynamicTags, DynamicTagsProps, FilterFormWrapper, FilterFormWrapperProps, FormModal, Game, GameSelect, GameState, Highlight, HighlightTextsProps, Layout, LayoutProps, Locale, NavMenu, NavMenuItem, PermissionButton, PermissionButtonProps, PermissionGuard, PermissionGuardProps, QueryList, QueryListAction, QueryListPayload, QueryListProps, RequestError, RequireGame, TokenState, UseFormModalProps, UserWidget, routes$1 as baseRoutes, contextStore, mixedStorage, routes as permissionRoutes, request, useContextStore, useFormModal, useGameStore, usePermission, usePermissions, useQueryListStore, useQueryListTrigger, useTokenStore, useToolkitsContext, useValidateToken };
|