react-toolkits 0.3.0 → 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 +16 -3
- package/README.md +20 -20
- package/{dist → lib}/index.css.map +1 -1
- package/{dist → lib}/index.d.mts +179 -115
- 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,18 @@
|
|
|
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
|
+
|
|
10
|
+
## 0.3.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 6ff6463: feat: add extras for FilterFormWrapper
|
|
15
|
+
|
|
3
16
|
## 0.3.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -46,14 +59,14 @@
|
|
|
46
59
|
|
|
47
60
|
### Patch Changes
|
|
48
61
|
|
|
49
|
-
- c6825d1: fix:
|
|
62
|
+
- c6825d1: fix: ContextProvider title value issue
|
|
50
63
|
- 99bd364: feat: cache ToolkitsContext config
|
|
51
64
|
|
|
52
65
|
## 0.2.22
|
|
53
66
|
|
|
54
67
|
### Patch Changes
|
|
55
68
|
|
|
56
|
-
- a9d0a28: feat: set default values for
|
|
69
|
+
- a9d0a28: feat: set default values for ContextProvider
|
|
57
70
|
|
|
58
71
|
## 0.2.21
|
|
59
72
|
|
|
@@ -65,7 +78,7 @@
|
|
|
65
78
|
|
|
66
79
|
### Patch Changes
|
|
67
80
|
|
|
68
|
-
- fceb92e: fix: missing isGlobalNS prop in
|
|
81
|
+
- fceb92e: fix: missing isGlobalNS prop in ContextProvider
|
|
69
82
|
|
|
70
83
|
## 0.2.19
|
|
71
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,
|
|
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,53 +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
|
-
afterConfirm?: () => void | Promise<void>;
|
|
28
|
-
afterReset?: () => void
|
|
29
|
-
|
|
89
|
+
afterConfirm?: (values: Values) => void | Promise<void>;
|
|
90
|
+
afterReset?: (values: Values) => void;
|
|
91
|
+
extras?: {
|
|
92
|
+
key: Key;
|
|
93
|
+
render: ((form: FormInstance<Values>) => ReactNode) | ReactNode;
|
|
94
|
+
}[];
|
|
30
95
|
}
|
|
31
|
-
declare const FilterFormWrapper: <Values = any>(props: FilterFormWrapperProps<Values>) => react_jsx_runtime.JSX.Element
|
|
32
|
-
|
|
33
|
-
interface FormModalProps<Values> extends Omit<ModalProps, 'onCancel' | 'children' | 'destroyOnClose' | 'forceRender' | 'getContainer' | 'footer' | 'confirmLoading'> {
|
|
34
|
-
renderFooter?: (form: FormInstance<Values>) => ReactNode;
|
|
35
|
-
onCancel?: VoidFunction;
|
|
36
|
-
onConfirm?: (values: Values) => Promise<void>;
|
|
37
|
-
initialValues?: DeepPartial<Values>;
|
|
38
|
-
}
|
|
39
|
-
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;
|
|
40
97
|
|
|
41
98
|
type FormModalFormProps<Values> = Pick<FormProps<Values>, 'labelAlign' | 'labelWrap' | 'labelCol' | 'wrapperCol' | 'layout'>;
|
|
42
|
-
type UseFormModalProps<Values> = Omit<FormModalProps<Values>, 'open' | 'onCancel'> & FormModalFormProps<Values> & {
|
|
99
|
+
type UseFormModalProps<Values extends object> = Omit<FormModalProps<Values>, 'open' | 'onCancel'> & FormModalFormProps<Values> & {
|
|
43
100
|
content?: ReactNode;
|
|
44
101
|
};
|
|
45
102
|
declare function useFormModal<Values extends object>(props: UseFormModalProps<Values>): {
|
|
46
103
|
Modal: react.ReactPortal;
|
|
47
104
|
showModal: (opts?: Omit<UseFormModalProps<Values>, 'footerRender' | 'onConfirm' | 'onCancel' | 'content' | keyof FormModalFormProps<Values>>) => void;
|
|
48
105
|
closeModal: () => void;
|
|
49
|
-
form:
|
|
106
|
+
form: FormInstance<Values>;
|
|
50
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;
|
|
51
138
|
|
|
52
139
|
interface HighlightTextsProps extends PropsWithChildren {
|
|
53
140
|
texts: Array<string | number>;
|
|
54
141
|
}
|
|
55
142
|
declare const Highlight: (props: HighlightTextsProps) => react_jsx_runtime.JSX.Element;
|
|
56
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
|
+
|
|
57
165
|
interface PermissionButtonProps extends Omit<ButtonProps, 'disabled'> {
|
|
58
166
|
code: string;
|
|
59
167
|
showLoading?: boolean;
|
|
60
168
|
}
|
|
61
169
|
declare const PermissionButton: FC<PropsWithChildren<PermissionButtonProps>>;
|
|
62
170
|
|
|
171
|
+
interface PermissionGuardProps {
|
|
172
|
+
code: string;
|
|
173
|
+
}
|
|
174
|
+
declare const PermissionGuard: FC<PropsWithChildren<PermissionGuardProps>>;
|
|
175
|
+
|
|
63
176
|
interface ListResponse<T = any> {
|
|
64
177
|
list: T[];
|
|
65
178
|
total: number;
|
|
66
179
|
}
|
|
67
180
|
|
|
68
181
|
declare enum QueryListAction {
|
|
69
|
-
|
|
70
|
-
Reset = "reset"
|
|
182
|
+
Confirm = "confirm",
|
|
183
|
+
Reset = "reset",
|
|
184
|
+
Jump = "jump",
|
|
185
|
+
Init = "init"
|
|
71
186
|
}
|
|
72
187
|
interface QueryListProps<Item, Values, Response> extends Pick<TableProps<Item>, 'columns' | 'rowKey' | 'tableLayout' | 'expandable' | 'rowSelection' | 'bordered'>, Pick<FilterFormWrapperProps<Values>, 'confirmText'> {
|
|
73
188
|
url: string;
|
|
@@ -81,75 +196,23 @@ interface QueryListProps<Item, Values, Response> extends Pick<TableProps<Item>,
|
|
|
81
196
|
}
|
|
82
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;
|
|
83
198
|
|
|
84
|
-
|
|
85
|
-
code /** 权限编号 **/?: string;
|
|
86
|
-
route /** 前端路由地址 **/?: string;
|
|
87
|
-
}>;
|
|
88
|
-
type SubMenuType2 = Merge<SubMenuType, {
|
|
89
|
-
children?: ItemType2[];
|
|
90
|
-
}>;
|
|
91
|
-
type MenuItemGroupType2 = Merge<MenuItemGroupType, {
|
|
92
|
-
children?: ItemType2[];
|
|
93
|
-
}>;
|
|
94
|
-
type ItemType2 = MenuItemType2 | SubMenuType2 | MenuItemGroupType2 | MenuDividerType | null;
|
|
95
|
-
declare const NavMenu: FC;
|
|
199
|
+
declare const RequireGame: FC<PropsWithChildren>;
|
|
96
200
|
|
|
97
|
-
interface
|
|
201
|
+
interface ContextState {
|
|
98
202
|
title: string;
|
|
99
|
-
menuItems:
|
|
203
|
+
menuItems: NavMenuItem[];
|
|
100
204
|
isGlobalNS: boolean;
|
|
101
205
|
usePermissionV2: boolean;
|
|
102
206
|
onlyDomesticGames: boolean;
|
|
207
|
+
locale?: Locale;
|
|
103
208
|
}
|
|
104
|
-
declare const
|
|
105
|
-
declare function
|
|
106
|
-
declare function
|
|
107
|
-
declare const
|
|
108
|
-
|
|
109
|
-
interface Game {
|
|
110
|
-
id: string;
|
|
111
|
-
name: string;
|
|
112
|
-
area: 'cn' | 'global';
|
|
113
|
-
Ctime: string;
|
|
114
|
-
}
|
|
115
|
-
interface GameState$1 {
|
|
116
|
-
game: Game | null;
|
|
117
|
-
setGame: (game: Game) => void;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
declare const GameSelect: () => react_jsx_runtime.JSX.Element;
|
|
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
|
-
}>;
|
|
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>>>;
|
|
137
213
|
|
|
138
214
|
declare const UserWidget: FC;
|
|
139
215
|
|
|
140
|
-
interface LayoutProps extends PropsWithChildren {
|
|
141
|
-
extra?: react.ReactNode[];
|
|
142
|
-
}
|
|
143
|
-
declare const Layout: FC<LayoutProps>;
|
|
144
|
-
|
|
145
|
-
interface PermissionGuardProps {
|
|
146
|
-
code: string;
|
|
147
|
-
}
|
|
148
|
-
declare const PermissionGuard: FC<PropsWithChildren<PermissionGuardProps>>;
|
|
149
|
-
|
|
150
|
-
interface PermissionCheckResult {
|
|
151
|
-
[k: string]: boolean;
|
|
152
|
-
}
|
|
153
216
|
declare function usePermissions(codes: string[], opts?: {
|
|
154
217
|
isGlobalNS?: boolean;
|
|
155
218
|
suspense?: boolean;
|
|
@@ -157,11 +220,26 @@ declare function usePermissions(codes: string[], opts?: {
|
|
|
157
220
|
data: Record<string, boolean> | undefined;
|
|
158
221
|
isValidating: boolean;
|
|
159
222
|
};
|
|
160
|
-
declare function usePermission(code: string | undefined,
|
|
223
|
+
declare function usePermission(code: string | undefined, opts?: {
|
|
224
|
+
isGlobalNS?: boolean;
|
|
225
|
+
suspense?: boolean;
|
|
226
|
+
}): {
|
|
161
227
|
accessible: boolean;
|
|
162
228
|
isValidating: boolean;
|
|
163
229
|
};
|
|
164
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
|
+
|
|
165
243
|
interface UserInfo {
|
|
166
244
|
authorityId: string;
|
|
167
245
|
exp: number;
|
|
@@ -189,44 +267,30 @@ declare const useTokenStore: zustand.UseBoundStore<Omit<zustand.StoreApi<TokenSt
|
|
|
189
267
|
}>;
|
|
190
268
|
declare function useValidateToken(): void;
|
|
191
269
|
|
|
192
|
-
interface QueryListStoreValue {
|
|
193
|
-
page: number;
|
|
194
|
-
size: number;
|
|
195
|
-
formValues?: any;
|
|
196
|
-
}
|
|
197
|
-
interface QueryListState {
|
|
198
|
-
params: Map<string, QueryListStoreValue>;
|
|
199
|
-
getParams: (key: string) => QueryListStoreValue;
|
|
200
|
-
setParams: (key: string, value?: Partial<QueryListStoreValue>) => void;
|
|
201
|
-
}
|
|
202
|
-
declare const useQueryListStore: zustand.UseBoundStore<zustand.StoreApi<QueryListState>>;
|
|
203
|
-
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>;
|
|
204
|
-
declare function useQueryListJump(): (key: string, page?: number) => void;
|
|
205
|
-
|
|
206
270
|
declare const routes$1: RouteObject;
|
|
207
271
|
|
|
208
272
|
declare const routes: RouteObject;
|
|
209
273
|
|
|
210
|
-
declare const
|
|
274
|
+
declare const mixedStorage: StateStorage;
|
|
211
275
|
|
|
212
276
|
declare class RequestError extends Error {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
data: T;
|
|
277
|
+
status?: number;
|
|
278
|
+
constructor(opts?: {
|
|
279
|
+
message?: string;
|
|
280
|
+
status?: number;
|
|
281
|
+
});
|
|
219
282
|
}
|
|
220
|
-
type RequestBody = Record<string | number, any> | FormData | null;
|
|
221
|
-
type RequestParams = Record<string | number, string | undefined | null> | URLSearchParams | null;
|
|
222
|
-
type RequestResponseType = 'json' | 'blob';
|
|
223
283
|
interface InitConfig extends Omit<RequestInit, 'body'> {
|
|
224
|
-
body?:
|
|
225
|
-
params?:
|
|
226
|
-
responseType?:
|
|
284
|
+
body?: Record<string | number, any> | FormData | null;
|
|
285
|
+
params?: Record<string | number, string | number | undefined | null> | URLSearchParams | null;
|
|
286
|
+
responseType?: 'json' | 'blob';
|
|
227
287
|
}
|
|
228
|
-
declare function request<T = any>(input:
|
|
229
|
-
|
|
230
|
-
|
|
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
|
+
}>;
|
|
231
295
|
|
|
232
|
-
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 };
|