@fringeworks/react-utils 0.8.1 → 0.9.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/README.ja.md +307 -0
- package/README.md +307 -3
- package/_helpers/_traverseChildren.cjs +32 -0
- package/_helpers/_traverseChildren.d.cts +24 -0
- package/_helpers/_traverseChildren.d.mts +24 -0
- package/_helpers/_traverseChildren.mjs +30 -0
- package/hooks/index.cjs +21 -40
- package/hooks/index.d.cts +5 -7
- package/hooks/index.d.mts +5 -7
- package/hooks/index.mjs +1 -14
- package/hooks/useCombinedRefs/index.cjs +4 -2
- package/hooks/useCombinedRefs/index.d.cts +1 -1
- package/hooks/useCombinedRefs/index.d.mts +1 -1
- package/hooks/useCombinedRefs/index.mjs +1 -1
- package/hooks/useCombinedRefs/useCombinedRefs.cjs +7 -6
- package/hooks/useCombinedRefs/useCombinedRefs.d.cts +0 -1
- package/hooks/useCombinedRefs/useCombinedRefs.d.mts +2 -4
- package/hooks/useConstant/index.cjs +4 -2
- package/hooks/useConstant/index.d.cts +1 -1
- package/hooks/useConstant/index.d.mts +1 -1
- package/hooks/useConstant/index.mjs +1 -1
- package/hooks/useConstant/useConstant.cjs +2 -1
- package/hooks/useConstant/useConstant.d.mts +2 -3
- package/hooks/useExecutionAt/index.cjs +4 -2
- package/hooks/useExecutionAt/index.d.cts +1 -1
- package/hooks/useExecutionAt/index.d.mts +1 -1
- package/hooks/useExecutionAt/index.mjs +1 -1
- package/hooks/useExecutionAt/types.cjs +1 -0
- package/hooks/useExecutionAt/types.d.cts +5 -7
- package/hooks/useExecutionAt/types.d.mts +5 -7
- package/hooks/useExecutionAt/useExecutionAt.cjs +4 -3
- package/hooks/useExecutionAt/useExecutionAt.d.cts +0 -1
- package/hooks/useExecutionAt/useExecutionAt.d.mts +2 -4
- package/hooks/useIsMounted/index.cjs +4 -2
- package/hooks/useIsMounted/index.d.cts +1 -1
- package/hooks/useIsMounted/index.d.mts +1 -1
- package/hooks/useIsMounted/index.mjs +1 -1
- package/hooks/useIsMounted/useIsMounted.cjs +8 -3
- package/hooks/useIsMounted/useIsMounted.d.cts +5 -1
- package/hooks/useIsMounted/useIsMounted.d.mts +7 -4
- package/hooks/useIsMounted/useIsMounted.mjs +7 -3
- package/hooks/useLatestRef/index.cjs +4 -2
- package/hooks/useLatestRef/index.d.cts +1 -1
- package/hooks/useLatestRef/index.d.mts +1 -1
- package/hooks/useLatestRef/index.mjs +1 -1
- package/hooks/useLatestRef/types.cjs +1 -0
- package/hooks/useLatestRef/types.d.cts +2 -3
- package/hooks/useLatestRef/types.d.mts +2 -3
- package/hooks/useLatestRef/useLatestRef.cjs +2 -1
- package/hooks/useLatestRef/useLatestRef.d.cts +0 -1
- package/hooks/useLatestRef/useLatestRef.d.mts +2 -4
- package/hooks/usePreviousValue/index.cjs +4 -2
- package/hooks/usePreviousValue/index.d.cts +1 -1
- package/hooks/usePreviousValue/index.d.mts +1 -1
- package/hooks/usePreviousValue/index.mjs +1 -1
- package/hooks/usePreviousValue/types.cjs +1 -0
- package/hooks/usePreviousValue/types.d.cts +8 -9
- package/hooks/usePreviousValue/types.d.mts +8 -9
- package/hooks/usePreviousValue/usePreviousValue.cjs +10 -5
- package/hooks/usePreviousValue/usePreviousValue.d.cts +6 -2
- package/hooks/usePreviousValue/usePreviousValue.d.mts +8 -5
- package/hooks/usePreviousValue/usePreviousValue.mjs +8 -4
- package/hooks/useStableLength/index.cjs +4 -2
- package/hooks/useStableLength/index.d.cts +1 -1
- package/hooks/useStableLength/index.d.mts +1 -1
- package/hooks/useStableLength/index.mjs +1 -1
- package/hooks/useStableLength/useStableLength.cjs +2 -1
- package/hooks/useStableLength/useStableLength.d.cts +1 -1
- package/hooks/useStableLength/useStableLength.d.mts +2 -3
- package/index.cjs +34 -14
- package/index.d.cts +25 -3
- package/index.d.mts +25 -3
- package/index.mjs +19 -3
- package/package.json +160 -38
- package/types.cjs +1 -0
- package/types.d.cts +2 -4
- package/types.d.mts +2 -4
- package/utils/applyDefaultProps/applyDefaultProps.cjs +6 -2
- package/utils/applyDefaultProps/applyDefaultProps.d.cts +6 -3
- package/utils/applyDefaultProps/applyDefaultProps.d.mts +8 -5
- package/utils/applyDefaultProps/applyDefaultProps.mjs +4 -0
- package/utils/applyDefaultProps/index.cjs +4 -2
- package/utils/applyDefaultProps/index.d.cts +1 -1
- package/utils/applyDefaultProps/index.d.mts +1 -1
- package/utils/applyDefaultProps/index.mjs +1 -1
- package/utils/applyDefaultProps/types.cjs +1 -0
- package/utils/applyDefaultProps/types.d.cts +6 -6
- package/utils/applyDefaultProps/types.d.mts +6 -6
- package/utils/ensureComponent/ensureComponent.cjs +2 -1
- package/utils/ensureComponent/ensureComponent.d.cts +0 -1
- package/utils/ensureComponent/ensureComponent.d.mts +2 -4
- package/utils/ensureComponent/index.cjs +4 -2
- package/utils/ensureComponent/index.d.cts +1 -1
- package/utils/ensureComponent/index.d.mts +1 -1
- package/utils/ensureComponent/index.mjs +1 -1
- package/utils/extendElement/extendElement.cjs +21 -17
- package/utils/extendElement/extendElement.d.cts +11 -6
- package/utils/extendElement/extendElement.d.mts +12 -8
- package/utils/extendElement/extendElement.mjs +19 -16
- package/utils/extendElement/index.cjs +4 -2
- package/utils/extendElement/index.d.cts +2 -1
- package/utils/extendElement/index.d.mts +2 -1
- package/utils/extendElement/index.mjs +1 -1
- package/utils/extendElement/types.cjs +1 -0
- package/utils/extendElement/types.d.cts +16 -0
- package/utils/extendElement/types.d.mts +16 -0
- package/utils/extendElement/types.mjs +1 -0
- package/utils/forEachContent/forEachContent.cjs +5 -4
- package/utils/forEachContent/forEachContent.d.cts +1 -2
- package/utils/forEachContent/forEachContent.d.mts +3 -5
- package/utils/forEachContent/forEachContent.mjs +3 -3
- package/utils/forEachContent/index.cjs +4 -2
- package/utils/forEachContent/index.d.cts +1 -1
- package/utils/forEachContent/index.d.mts +1 -1
- package/utils/forEachContent/index.mjs +1 -1
- package/utils/forEachElement/forEachElement.cjs +6 -4
- package/utils/forEachElement/forEachElement.d.cts +1 -2
- package/utils/forEachElement/forEachElement.d.mts +3 -5
- package/utils/forEachElement/forEachElement.mjs +4 -3
- package/utils/forEachElement/index.cjs +4 -2
- package/utils/forEachElement/index.d.cts +1 -1
- package/utils/forEachElement/index.d.mts +1 -1
- package/utils/forEachElement/index.mjs +1 -1
- package/utils/index.cjs +24 -45
- package/utils/index.d.cts +11 -5
- package/utils/index.d.mts +11 -5
- package/utils/index.mjs +1 -16
- package/utils/markAt/index.cjs +4 -2
- package/utils/markAt/index.d.cts +1 -1
- package/utils/markAt/index.d.mts +1 -1
- package/utils/markAt/index.mjs +1 -1
- package/utils/markAt/markAt.cjs +2 -2
- package/utils/markAt/markAt.d.cts +0 -1
- package/utils/markAt/markAt.d.mts +2 -4
- package/utils/markAt/types.cjs +1 -0
- package/utils/markAt/types.d.cts +2 -3
- package/utils/markAt/types.d.mts +2 -3
- package/utils/setRefCurrent/index.cjs +4 -2
- package/utils/setRefCurrent/index.d.cts +1 -1
- package/utils/setRefCurrent/index.d.mts +1 -1
- package/utils/setRefCurrent/index.mjs +1 -1
- package/utils/setRefCurrent/setRefCurrent.cjs +2 -2
- package/utils/setRefCurrent/setRefCurrent.d.cts +0 -1
- package/utils/setRefCurrent/setRefCurrent.d.mts +2 -4
- package/utils/transformContent/index.cjs +4 -2
- package/utils/transformContent/index.d.cts +1 -1
- package/utils/transformContent/index.d.mts +1 -1
- package/utils/transformContent/index.mjs +1 -1
- package/utils/transformContent/transformContent.cjs +11 -4
- package/utils/transformContent/transformContent.d.cts +7 -2
- package/utils/transformContent/transformContent.d.mts +9 -5
- package/utils/transformContent/transformContent.mjs +9 -3
- package/utils/transformElement/index.cjs +4 -2
- package/utils/transformElement/index.d.cts +1 -1
- package/utils/transformElement/index.d.mts +1 -1
- package/utils/transformElement/index.mjs +1 -1
- package/utils/transformElement/transformElement.cjs +12 -4
- package/utils/transformElement/transformElement.d.cts +7 -2
- package/utils/transformElement/transformElement.d.mts +9 -5
- package/utils/transformElement/transformElement.mjs +10 -3
- package/_helpers/_traverseContent.cjs +0 -24
- package/_helpers/_traverseContent.d.cts +0 -15
- package/_helpers/_traverseContent.d.mts +0 -16
- package/_helpers/_traverseContent.mjs +0 -22
- package/_helpers/_traverseElement.cjs +0 -23
- package/_helpers/_traverseElement.d.cts +0 -15
- package/_helpers/_traverseElement.d.mts +0 -16
- package/_helpers/_traverseElement.mjs +0 -21
- package/_virtual/_rolldown/runtime.cjs +0 -43
- package/_virtual/_rolldown/runtime.mjs +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fringeworks/react-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "A library some will find handy, providing utilities for React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"author": "Mitsuhiro Seino",
|
|
14
|
+
"sideEffects": false,
|
|
14
15
|
"type": "module",
|
|
15
16
|
"exports": {
|
|
16
17
|
".": {
|
|
@@ -23,71 +24,192 @@
|
|
|
23
24
|
"default": "./index.cjs"
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
|
-
"./
|
|
27
|
-
"./constants": {
|
|
27
|
+
"./hooks": {
|
|
28
28
|
"import": {
|
|
29
|
-
"types": "./
|
|
30
|
-
"default": "./
|
|
29
|
+
"types": "./hooks/index.d.mts",
|
|
30
|
+
"default": "./hooks/index.mjs"
|
|
31
31
|
},
|
|
32
32
|
"require": {
|
|
33
|
-
"types": "./
|
|
34
|
-
"default": "./
|
|
33
|
+
"types": "./hooks/index.d.cts",
|
|
34
|
+
"default": "./hooks/index.cjs"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"
|
|
37
|
+
"./hooks/useCombinedRefs": {
|
|
38
38
|
"import": {
|
|
39
|
-
"types": "
|
|
40
|
-
"default": "
|
|
39
|
+
"types": "./hooks/useCombinedRefs/index.d.mts",
|
|
40
|
+
"default": "./hooks/useCombinedRefs/index.mjs"
|
|
41
41
|
},
|
|
42
42
|
"require": {
|
|
43
|
-
"types": "
|
|
44
|
-
"default": "
|
|
43
|
+
"types": "./hooks/useCombinedRefs/index.d.cts",
|
|
44
|
+
"default": "./hooks/useCombinedRefs/index.cjs"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
"./
|
|
47
|
+
"./hooks/useConstant": {
|
|
48
48
|
"import": {
|
|
49
|
-
"types": "./
|
|
50
|
-
"default": "./
|
|
49
|
+
"types": "./hooks/useConstant/index.d.mts",
|
|
50
|
+
"default": "./hooks/useConstant/index.mjs"
|
|
51
51
|
},
|
|
52
52
|
"require": {
|
|
53
|
-
"types": "./
|
|
54
|
-
"default": "./
|
|
53
|
+
"types": "./hooks/useConstant/index.d.cts",
|
|
54
|
+
"default": "./hooks/useConstant/index.cjs"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
"
|
|
57
|
+
"./hooks/useExecutionAt": {
|
|
58
58
|
"import": {
|
|
59
|
-
"types": "
|
|
60
|
-
"default": "
|
|
59
|
+
"types": "./hooks/useExecutionAt/index.d.mts",
|
|
60
|
+
"default": "./hooks/useExecutionAt/index.mjs"
|
|
61
61
|
},
|
|
62
62
|
"require": {
|
|
63
|
-
"types": "
|
|
64
|
-
"default": "
|
|
63
|
+
"types": "./hooks/useExecutionAt/index.d.cts",
|
|
64
|
+
"default": "./hooks/useExecutionAt/index.cjs"
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
"
|
|
67
|
+
"./hooks/useIsMounted": {
|
|
68
68
|
"import": {
|
|
69
|
-
"types": "
|
|
70
|
-
"default": "
|
|
69
|
+
"types": "./hooks/useIsMounted/index.d.mts",
|
|
70
|
+
"default": "./hooks/useIsMounted/index.mjs"
|
|
71
71
|
},
|
|
72
72
|
"require": {
|
|
73
|
-
"types": "
|
|
74
|
-
"default": "
|
|
73
|
+
"types": "./hooks/useIsMounted/index.d.cts",
|
|
74
|
+
"default": "./hooks/useIsMounted/index.cjs"
|
|
75
75
|
}
|
|
76
|
-
}
|
|
76
|
+
},
|
|
77
|
+
"./hooks/useLatestRef": {
|
|
78
|
+
"import": {
|
|
79
|
+
"types": "./hooks/useLatestRef/index.d.mts",
|
|
80
|
+
"default": "./hooks/useLatestRef/index.mjs"
|
|
81
|
+
},
|
|
82
|
+
"require": {
|
|
83
|
+
"types": "./hooks/useLatestRef/index.d.cts",
|
|
84
|
+
"default": "./hooks/useLatestRef/index.cjs"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"./hooks/usePreviousValue": {
|
|
88
|
+
"import": {
|
|
89
|
+
"types": "./hooks/usePreviousValue/index.d.mts",
|
|
90
|
+
"default": "./hooks/usePreviousValue/index.mjs"
|
|
91
|
+
},
|
|
92
|
+
"require": {
|
|
93
|
+
"types": "./hooks/usePreviousValue/index.d.cts",
|
|
94
|
+
"default": "./hooks/usePreviousValue/index.cjs"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"./hooks/useStableLength": {
|
|
98
|
+
"import": {
|
|
99
|
+
"types": "./hooks/useStableLength/index.d.mts",
|
|
100
|
+
"default": "./hooks/useStableLength/index.mjs"
|
|
101
|
+
},
|
|
102
|
+
"require": {
|
|
103
|
+
"types": "./hooks/useStableLength/index.d.cts",
|
|
104
|
+
"default": "./hooks/useStableLength/index.cjs"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"./utils": {
|
|
108
|
+
"import": {
|
|
109
|
+
"types": "./utils/index.d.mts",
|
|
110
|
+
"default": "./utils/index.mjs"
|
|
111
|
+
},
|
|
112
|
+
"require": {
|
|
113
|
+
"types": "./utils/index.d.cts",
|
|
114
|
+
"default": "./utils/index.cjs"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"./utils/applyDefaultProps": {
|
|
118
|
+
"import": {
|
|
119
|
+
"types": "./utils/applyDefaultProps/index.d.mts",
|
|
120
|
+
"default": "./utils/applyDefaultProps/index.mjs"
|
|
121
|
+
},
|
|
122
|
+
"require": {
|
|
123
|
+
"types": "./utils/applyDefaultProps/index.d.cts",
|
|
124
|
+
"default": "./utils/applyDefaultProps/index.cjs"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"./utils/ensureComponent": {
|
|
128
|
+
"import": {
|
|
129
|
+
"types": "./utils/ensureComponent/index.d.mts",
|
|
130
|
+
"default": "./utils/ensureComponent/index.mjs"
|
|
131
|
+
},
|
|
132
|
+
"require": {
|
|
133
|
+
"types": "./utils/ensureComponent/index.d.cts",
|
|
134
|
+
"default": "./utils/ensureComponent/index.cjs"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"./utils/extendElement": {
|
|
138
|
+
"import": {
|
|
139
|
+
"types": "./utils/extendElement/index.d.mts",
|
|
140
|
+
"default": "./utils/extendElement/index.mjs"
|
|
141
|
+
},
|
|
142
|
+
"require": {
|
|
143
|
+
"types": "./utils/extendElement/index.d.cts",
|
|
144
|
+
"default": "./utils/extendElement/index.cjs"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"./utils/forEachContent": {
|
|
148
|
+
"import": {
|
|
149
|
+
"types": "./utils/forEachContent/index.d.mts",
|
|
150
|
+
"default": "./utils/forEachContent/index.mjs"
|
|
151
|
+
},
|
|
152
|
+
"require": {
|
|
153
|
+
"types": "./utils/forEachContent/index.d.cts",
|
|
154
|
+
"default": "./utils/forEachContent/index.cjs"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"./utils/forEachElement": {
|
|
158
|
+
"import": {
|
|
159
|
+
"types": "./utils/forEachElement/index.d.mts",
|
|
160
|
+
"default": "./utils/forEachElement/index.mjs"
|
|
161
|
+
},
|
|
162
|
+
"require": {
|
|
163
|
+
"types": "./utils/forEachElement/index.d.cts",
|
|
164
|
+
"default": "./utils/forEachElement/index.cjs"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"./utils/markAt": {
|
|
168
|
+
"import": {
|
|
169
|
+
"types": "./utils/markAt/index.d.mts",
|
|
170
|
+
"default": "./utils/markAt/index.mjs"
|
|
171
|
+
},
|
|
172
|
+
"require": {
|
|
173
|
+
"types": "./utils/markAt/index.d.cts",
|
|
174
|
+
"default": "./utils/markAt/index.cjs"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"./utils/setRefCurrent": {
|
|
178
|
+
"import": {
|
|
179
|
+
"types": "./utils/setRefCurrent/index.d.mts",
|
|
180
|
+
"default": "./utils/setRefCurrent/index.mjs"
|
|
181
|
+
},
|
|
182
|
+
"require": {
|
|
183
|
+
"types": "./utils/setRefCurrent/index.d.cts",
|
|
184
|
+
"default": "./utils/setRefCurrent/index.cjs"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"./utils/transformContent": {
|
|
188
|
+
"import": {
|
|
189
|
+
"types": "./utils/transformContent/index.d.mts",
|
|
190
|
+
"default": "./utils/transformContent/index.mjs"
|
|
191
|
+
},
|
|
192
|
+
"require": {
|
|
193
|
+
"types": "./utils/transformContent/index.d.cts",
|
|
194
|
+
"default": "./utils/transformContent/index.cjs"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"./utils/transformElement": {
|
|
198
|
+
"import": {
|
|
199
|
+
"types": "./utils/transformElement/index.d.mts",
|
|
200
|
+
"default": "./utils/transformElement/index.mjs"
|
|
201
|
+
},
|
|
202
|
+
"require": {
|
|
203
|
+
"types": "./utils/transformElement/index.d.cts",
|
|
204
|
+
"default": "./utils/transformElement/index.cjs"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"./package.json": "./package.json"
|
|
77
208
|
},
|
|
78
209
|
"main": "./index.cjs",
|
|
79
210
|
"module": "./index.mjs",
|
|
80
211
|
"types": "./index.d.cts",
|
|
81
|
-
"dependencies": {
|
|
82
|
-
"@fringeworks/utils": "^0.9.2"
|
|
83
|
-
},
|
|
84
212
|
"peerDependencies": {
|
|
85
|
-
"react": "^18.0.0 || ^19.0.0"
|
|
86
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
87
|
-
},
|
|
88
|
-
"peerDependenciesMeta": {
|
|
89
|
-
"react-dom": {
|
|
90
|
-
"optional": true
|
|
91
|
-
}
|
|
213
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
92
214
|
}
|
|
93
215
|
}
|
package/types.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/types.d.cts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/types.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* CSS変数を許容するCSSProperties
|
|
6
5
|
*/
|
|
7
|
-
type CSSPropertiesWithVars = CSSProperties & {
|
|
6
|
+
export type CSSPropertiesWithVars = CSSProperties & {
|
|
8
7
|
[key: `--${string}`]: string | number | undefined;
|
|
9
8
|
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { CSSPropertiesWithVars };
|
|
9
|
+
//#endregion
|
package/types.d.mts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/types.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* CSS変数を許容するCSSProperties
|
|
6
5
|
*/
|
|
7
|
-
type CSSPropertiesWithVars = CSSProperties & {
|
|
6
|
+
export type CSSPropertiesWithVars = CSSProperties & {
|
|
8
7
|
[key: `--${string}`]: string | number | undefined;
|
|
9
8
|
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { CSSPropertiesWithVars };
|
|
9
|
+
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
//#region src/utils/applyDefaultProps/applyDefaultProps.ts
|
|
3
3
|
/**
|
|
4
4
|
* props のプロパティが undefined または null で、
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
* applyDefaultProps(props, isCompact && compactDefaults, baseDefaults)
|
|
22
22
|
*
|
|
23
|
+
* 制限事項
|
|
24
|
+
* - defaults のキーは文字列のもののみ反映する(symbol のキーは無視する)
|
|
25
|
+
* - props の型がユニオン型の場合、defaults に書けるのはすべての型に共通するキーのみ
|
|
26
|
+
*
|
|
23
27
|
* @param props コンポーネントに渡された props
|
|
24
28
|
* @param defaults props の一部のプロパティにデフォルト値を設定したオブジェクト
|
|
25
29
|
* (複数可、先の引数ほど優先。null / undefined / false はスキップ)
|
|
@@ -38,4 +42,4 @@ function applyDefaultProps(props, ...defaults) {
|
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
//#endregion
|
|
41
|
-
|
|
45
|
+
exports.default = applyDefaultProps;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { AppliedProps, SkippedDefaults } from "./types.cjs";
|
|
2
|
-
|
|
3
2
|
//#region src/utils/applyDefaultProps/applyDefaultProps.d.ts
|
|
4
3
|
/** props に存在しないキーを含む defaults を型エラーにする */
|
|
5
|
-
type NoExtraKeys<P, Ds extends readonly unknown[]> = { [I in keyof Ds]: CheckKeys<P, Ds[I]
|
|
4
|
+
type NoExtraKeys<P, Ds extends readonly unknown[]> = { [I in keyof Ds]: CheckKeys<P, Ds[I]>; };
|
|
6
5
|
/** 要素がオブジェクトの場合のみキーを検査する(ユニオンの各要素ごとに分配) */
|
|
7
|
-
type CheckKeys<P, T> = T extends SkippedDefaults ? T : T & { [K in Exclude<keyof T, keyof P>]: never };
|
|
6
|
+
type CheckKeys<P, T> = T extends SkippedDefaults ? T : T & { [K in Exclude<keyof T, keyof P>]: never; };
|
|
8
7
|
/**
|
|
9
8
|
* props のプロパティが undefined または null で、
|
|
10
9
|
* かつデフォルト値が undefined 以外の場合に、デフォルト値を反映した新しいオブジェクトを返す。
|
|
@@ -25,6 +24,10 @@ type CheckKeys<P, T> = T extends SkippedDefaults ? T : T & { [K in Exclude<keyof
|
|
|
25
24
|
*
|
|
26
25
|
* applyDefaultProps(props, isCompact && compactDefaults, baseDefaults)
|
|
27
26
|
*
|
|
27
|
+
* 制限事項
|
|
28
|
+
* - defaults のキーは文字列のもののみ反映する(symbol のキーは無視する)
|
|
29
|
+
* - props の型がユニオン型の場合、defaults に書けるのはすべての型に共通するキーのみ
|
|
30
|
+
*
|
|
28
31
|
* @param props コンポーネントに渡された props
|
|
29
32
|
* @param defaults props の一部のプロパティにデフォルト値を設定したオブジェクト
|
|
30
33
|
* (複数可、先の引数ほど優先。null / undefined / false はスキップ)
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { AppliedProps, SkippedDefaults } from "./types.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/utils/applyDefaultProps/applyDefaultProps.d.ts
|
|
4
3
|
/** props に存在しないキーを含む defaults を型エラーにする */
|
|
5
|
-
type NoExtraKeys<P, Ds extends readonly unknown[]> = { [I in keyof Ds]: CheckKeys<P, Ds[I]
|
|
4
|
+
type NoExtraKeys<P, Ds extends readonly unknown[]> = { [I in keyof Ds]: CheckKeys<P, Ds[I]>; };
|
|
6
5
|
/** 要素がオブジェクトの場合のみキーを検査する(ユニオンの各要素ごとに分配) */
|
|
7
|
-
type CheckKeys<P, T> = T extends SkippedDefaults ? T : T & { [K in Exclude<keyof T, keyof P>]: never };
|
|
6
|
+
type CheckKeys<P, T> = T extends SkippedDefaults ? T : T & { [K in Exclude<keyof T, keyof P>]: never; };
|
|
8
7
|
/**
|
|
9
8
|
* props のプロパティが undefined または null で、
|
|
10
9
|
* かつデフォルト値が undefined 以外の場合に、デフォルト値を反映した新しいオブジェクトを返す。
|
|
@@ -25,10 +24,14 @@ type CheckKeys<P, T> = T extends SkippedDefaults ? T : T & { [K in Exclude<keyof
|
|
|
25
24
|
*
|
|
26
25
|
* applyDefaultProps(props, isCompact && compactDefaults, baseDefaults)
|
|
27
26
|
*
|
|
27
|
+
* 制限事項
|
|
28
|
+
* - defaults のキーは文字列のもののみ反映する(symbol のキーは無視する)
|
|
29
|
+
* - props の型がユニオン型の場合、defaults に書けるのはすべての型に共通するキーのみ
|
|
30
|
+
*
|
|
28
31
|
* @param props コンポーネントに渡された props
|
|
29
32
|
* @param defaults props の一部のプロパティにデフォルト値を設定したオブジェクト
|
|
30
33
|
* (複数可、先の引数ほど優先。null / undefined / false はスキップ)
|
|
31
34
|
*/
|
|
32
|
-
|
|
35
|
+
export default function applyDefaultProps<P extends object, const Ds extends readonly (Partial<P> | SkippedDefaults)[]>(props: P, ...defaults: Ds & NoExtraKeys<P, Ds>): AppliedProps<P, Ds>;
|
|
33
36
|
//#endregion
|
|
34
|
-
export {
|
|
37
|
+
export {};
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
*
|
|
20
20
|
* applyDefaultProps(props, isCompact && compactDefaults, baseDefaults)
|
|
21
21
|
*
|
|
22
|
+
* 制限事項
|
|
23
|
+
* - defaults のキーは文字列のもののみ反映する(symbol のキーは無視する)
|
|
24
|
+
* - props の型がユニオン型の場合、defaults に書けるのはすべての型に共通するキーのみ
|
|
25
|
+
*
|
|
22
26
|
* @param props コンポーネントに渡された props
|
|
23
27
|
* @param defaults props の一部のプロパティにデフォルト値を設定したオブジェクト
|
|
24
28
|
* (複数可、先の引数ほど優先。null / undefined / false はスキップ)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_utils_applyDefaultProps_applyDefaultProps = require("./applyDefaultProps.cjs");
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
exports.applyDefaultProps = require_utils_applyDefaultProps_applyDefaultProps.default;
|
|
5
|
+
exports.default = require_utils_applyDefaultProps_applyDefaultProps.default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AppliedProps, SkippedDefaults } from "./types.cjs";
|
|
2
2
|
import applyDefaultProps from "./applyDefaultProps.cjs";
|
|
3
|
-
export { type AppliedProps, type SkippedDefaults, applyDefaultProps as default };
|
|
3
|
+
export { type AppliedProps, type SkippedDefaults, applyDefaultProps, applyDefaultProps as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AppliedProps, SkippedDefaults } from "./types.mjs";
|
|
2
2
|
import applyDefaultProps from "./applyDefaultProps.mjs";
|
|
3
|
-
export { type AppliedProps, type SkippedDefaults, applyDefaultProps as default };
|
|
3
|
+
export { type AppliedProps, type SkippedDefaults, applyDefaultProps, applyDefaultProps as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* 交差型を1つのオブジェクト型に展開して、エディタ上の型表示を見やすくする
|
|
4
4
|
*/
|
|
5
|
-
type Simplify<T> = { [K in keyof T]: T[K] } & {};
|
|
5
|
+
type Simplify<T> = { [K in keyof T]: T[K]; } & {};
|
|
6
6
|
/** defaults として渡されてもスキップされる値 */
|
|
7
|
-
type SkippedDefaults = null | undefined | false;
|
|
7
|
+
export type SkippedDefaults = null | undefined | false;
|
|
8
8
|
/** スキップされる値を除いた defaults の要素の和集合 */
|
|
9
9
|
type DefaultsOf<Ds extends readonly unknown[]> = Exclude<Ds[number], SkippedDefaults>;
|
|
10
10
|
/** defaults 群のいずれかに含まれるキーの和集合 */
|
|
11
|
-
type KeysOf<Ds extends readonly unknown[]> = DefaultsOf<Ds> extends infer U ? U extends unknown ? keyof U : never : never;
|
|
11
|
+
type KeysOf<Ds extends readonly unknown[]> = DefaultsOf<Ds> extends (infer U) ? U extends unknown ? keyof U : never : never;
|
|
12
12
|
/**
|
|
13
13
|
* キー K について、undefined にならない値を確実に持つ defaults があるか。
|
|
14
14
|
* スキップされ得る要素(`cond && defaults` など)は確実とはみなさない。
|
|
15
15
|
*/
|
|
16
16
|
type IsDefinitelyDefined<Ds extends readonly unknown[], K> = Ds extends readonly [infer Head, ...infer Rest] ? [Head] extends [object] ? K extends keyof Head ? undefined extends Head[K] ? IsDefinitelyDefined<Rest, K> : true : IsDefinitelyDefined<Rest, K> : IsDefinitelyDefined<Rest, K> : false;
|
|
17
17
|
/** キー K について、defaults 群から採用され得る値の型(undefined を除く) */
|
|
18
|
-
type DefaultValueOf<Ds extends readonly unknown[], K> = DefaultsOf<Ds> extends infer U ? U extends unknown ? K extends keyof U ? Exclude<U[K], undefined> : never : never : never;
|
|
18
|
+
type DefaultValueOf<Ds extends readonly unknown[], K> = DefaultsOf<Ds> extends (infer U) ? U extends unknown ? K extends keyof U ? Exclude<U[K], undefined> : never : never : never;
|
|
19
19
|
/**
|
|
20
20
|
* マージ後の props の型
|
|
21
21
|
* - どの defaults にも含まれないキー: props の型をそのまま維持
|
|
22
22
|
* - いずれかの defaults が確実に値を持つキー: null / undefined が取り除かれ、デフォルト値の型が加わる
|
|
23
23
|
* - defaults の値が undefined になり得るキー: props の型にデフォルト値の型が加わる
|
|
24
24
|
*/
|
|
25
|
-
type AppliedProps<P, Ds extends readonly unknown[]> = Simplify<Omit<P, KeysOf<Ds>> & { [K in KeysOf<Ds> & keyof P]: IsDefinitelyDefined<Ds, K> extends true ? NonNullable<P[K]> | DefaultValueOf<Ds, K> : P[K] | DefaultValueOf<Ds, K
|
|
25
|
+
export type AppliedProps<P, Ds extends readonly unknown[]> = Simplify<Omit<P, KeysOf<Ds>> & { [K in KeysOf<Ds> & keyof P]: IsDefinitelyDefined<Ds, K> extends true ? NonNullable<P[K]> | DefaultValueOf<Ds, K> : P[K] | DefaultValueOf<Ds, K>; }>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export {
|
|
27
|
+
export {};
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* 交差型を1つのオブジェクト型に展開して、エディタ上の型表示を見やすくする
|
|
4
4
|
*/
|
|
5
|
-
type Simplify<T> = { [K in keyof T]: T[K] } & {};
|
|
5
|
+
type Simplify<T> = { [K in keyof T]: T[K]; } & {};
|
|
6
6
|
/** defaults として渡されてもスキップされる値 */
|
|
7
|
-
type SkippedDefaults = null | undefined | false;
|
|
7
|
+
export type SkippedDefaults = null | undefined | false;
|
|
8
8
|
/** スキップされる値を除いた defaults の要素の和集合 */
|
|
9
9
|
type DefaultsOf<Ds extends readonly unknown[]> = Exclude<Ds[number], SkippedDefaults>;
|
|
10
10
|
/** defaults 群のいずれかに含まれるキーの和集合 */
|
|
11
|
-
type KeysOf<Ds extends readonly unknown[]> = DefaultsOf<Ds> extends infer U ? U extends unknown ? keyof U : never : never;
|
|
11
|
+
type KeysOf<Ds extends readonly unknown[]> = DefaultsOf<Ds> extends (infer U) ? U extends unknown ? keyof U : never : never;
|
|
12
12
|
/**
|
|
13
13
|
* キー K について、undefined にならない値を確実に持つ defaults があるか。
|
|
14
14
|
* スキップされ得る要素(`cond && defaults` など)は確実とはみなさない。
|
|
15
15
|
*/
|
|
16
16
|
type IsDefinitelyDefined<Ds extends readonly unknown[], K> = Ds extends readonly [infer Head, ...infer Rest] ? [Head] extends [object] ? K extends keyof Head ? undefined extends Head[K] ? IsDefinitelyDefined<Rest, K> : true : IsDefinitelyDefined<Rest, K> : IsDefinitelyDefined<Rest, K> : false;
|
|
17
17
|
/** キー K について、defaults 群から採用され得る値の型(undefined を除く) */
|
|
18
|
-
type DefaultValueOf<Ds extends readonly unknown[], K> = DefaultsOf<Ds> extends infer U ? U extends unknown ? K extends keyof U ? Exclude<U[K], undefined> : never : never : never;
|
|
18
|
+
type DefaultValueOf<Ds extends readonly unknown[], K> = DefaultsOf<Ds> extends (infer U) ? U extends unknown ? K extends keyof U ? Exclude<U[K], undefined> : never : never : never;
|
|
19
19
|
/**
|
|
20
20
|
* マージ後の props の型
|
|
21
21
|
* - どの defaults にも含まれないキー: props の型をそのまま維持
|
|
22
22
|
* - いずれかの defaults が確実に値を持つキー: null / undefined が取り除かれ、デフォルト値の型が加わる
|
|
23
23
|
* - defaults の値が undefined になり得るキー: props の型にデフォルト値の型が加わる
|
|
24
24
|
*/
|
|
25
|
-
type AppliedProps<P, Ds extends readonly unknown[]> = Simplify<Omit<P, KeysOf<Ds>> & { [K in KeysOf<Ds> & keyof P]: IsDefinitelyDefined<Ds, K> extends true ? NonNullable<P[K]> | DefaultValueOf<Ds, K> : P[K] | DefaultValueOf<Ds, K
|
|
25
|
+
export type AppliedProps<P, Ds extends readonly unknown[]> = Simplify<Omit<P, KeysOf<Ds>> & { [K in KeysOf<Ds> & keyof P]: IsDefinitelyDefined<Ds, K> extends true ? NonNullable<P[K]> | DefaultValueOf<Ds, K> : P[K] | DefaultValueOf<Ds, K>; }>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export {
|
|
27
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
1
2
|
let react = require("react");
|
|
2
3
|
|
|
3
4
|
//#region src/utils/ensureComponent/ensureComponent.ts
|
|
@@ -25,4 +26,4 @@ function ensureComponent(component) {
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
//#endregion
|
|
28
|
-
|
|
29
|
+
exports.default = ensureComponent;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ComponentType, ElementType } from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/utils/ensureComponent/ensureComponent.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* 組み込みタグの場合はコンポーネントに変換して返す
|
|
6
5
|
* @param component 組み込みタグ or コンポーネント
|
|
7
6
|
* @returns コンポーネント
|
|
8
7
|
*/
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { ensureComponent as default };
|
|
8
|
+
export default function ensureComponent<C extends ElementType>(component: C): ComponentType<ComponentPropsWithRef<C>>;
|
|
9
|
+
//#endregion
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_utils_ensureComponent_ensureComponent = require("./ensureComponent.cjs");
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
exports.default = require_utils_ensureComponent_ensureComponent.default;
|
|
5
|
+
exports.ensureComponent = require_utils_ensureComponent_ensureComponent.default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import ensureComponent from "./ensureComponent.cjs";
|
|
2
|
-
export
|
|
2
|
+
export { ensureComponent as default, ensureComponent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import ensureComponent from "./ensureComponent.mjs";
|
|
2
|
-
export { ensureComponent as default };
|
|
2
|
+
export { ensureComponent as default, ensureComponent };
|
|
@@ -1,30 +1,34 @@
|
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
1
2
|
let react = require("react");
|
|
2
3
|
|
|
3
4
|
//#region src/utils/extendElement/extendElement.ts
|
|
4
5
|
/**
|
|
5
|
-
* classNameとstyleはマージ、それ以外のプロパティは
|
|
6
|
+
* classNameとstyleはマージ、それ以外のプロパティはoverridePropsの値で上書きしてcloneElementを実行する
|
|
7
|
+
*
|
|
8
|
+
* - className: 元のclassNameの後ろに空白区切りで追加する(空文字は無視する)
|
|
9
|
+
* - style: 元のstyleにプロパティ単位で上書きする(値がundefinedのプロパティは無視する)
|
|
10
|
+
* - それ以外: overridePropsの値で上書きする(値がundefinedのプロパティは無視する)
|
|
11
|
+
*
|
|
6
12
|
* @param element エレメント
|
|
7
13
|
* @param overrideProps 新しいエレメントのプロパティをオーバーライドするプロパティ
|
|
8
|
-
* @param children
|
|
9
|
-
* @returns
|
|
14
|
+
* @param children 子要素。省略した場合は元の子要素を引き継ぐ
|
|
15
|
+
* @returns 新しいエレメント
|
|
10
16
|
*/
|
|
11
17
|
function extendElement(element, overrideProps, ...children) {
|
|
12
|
-
const { className
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
const { className, style, ...rest } = overrideProps ?? {};
|
|
19
|
+
const props = {};
|
|
20
|
+
for (const [key, value] of Object.entries(rest)) if (value !== void 0) props[key] = value;
|
|
21
|
+
if (className) {
|
|
22
|
+
const baseClassName = element.props.className;
|
|
23
|
+
props.className = baseClassName ? `${baseClassName} ${className}` : className;
|
|
24
|
+
}
|
|
25
|
+
if (style) {
|
|
26
|
+
const mergedStyle = { ...element.props.style };
|
|
27
|
+
for (const [key, value] of Object.entries(style)) if (value !== void 0) mergedStyle[key] = value;
|
|
28
|
+
props.style = mergedStyle;
|
|
19
29
|
}
|
|
20
|
-
const props = {
|
|
21
|
-
className,
|
|
22
|
-
style,
|
|
23
|
-
...elRest
|
|
24
|
-
};
|
|
25
|
-
for (const [key, value] of Object.entries(orRest)) if (value !== void 0) props[key] = value;
|
|
26
30
|
return (0, react.cloneElement)(element, props, ...children);
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
//#endregion
|
|
30
|
-
|
|
34
|
+
exports.default = extendElement;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ExtendableProps } from "./types.cjs";
|
|
2
|
+
import { ReactElement, ReactNode } from "react";
|
|
3
3
|
//#region src/utils/extendElement/extendElement.d.ts
|
|
4
4
|
/**
|
|
5
|
-
* classNameとstyleはマージ、それ以外のプロパティは
|
|
5
|
+
* classNameとstyleはマージ、それ以外のプロパティはoverridePropsの値で上書きしてcloneElementを実行する
|
|
6
|
+
*
|
|
7
|
+
* - className: 元のclassNameの後ろに空白区切りで追加する(空文字は無視する)
|
|
8
|
+
* - style: 元のstyleにプロパティ単位で上書きする(値がundefinedのプロパティは無視する)
|
|
9
|
+
* - それ以外: overridePropsの値で上書きする(値がundefinedのプロパティは無視する)
|
|
10
|
+
*
|
|
6
11
|
* @param element エレメント
|
|
7
12
|
* @param overrideProps 新しいエレメントのプロパティをオーバーライドするプロパティ
|
|
8
|
-
* @param children
|
|
9
|
-
* @returns
|
|
13
|
+
* @param children 子要素。省略した場合は元の子要素を引き継ぐ
|
|
14
|
+
* @returns 新しいエレメント
|
|
10
15
|
*/
|
|
11
|
-
declare function extendElement<P extends
|
|
16
|
+
declare function extendElement<P extends ExtendableProps>(element: ReactElement<P>, overrideProps?: Partial<P>, ...children: ReactNode[]): ReactElement<P>;
|
|
12
17
|
export = extendElement;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ExtendableProps } from "./types.mjs";
|
|
2
|
+
import { ReactElement, ReactNode } from "react";
|
|
3
3
|
//#region src/utils/extendElement/extendElement.d.ts
|
|
4
4
|
/**
|
|
5
|
-
* classNameとstyleはマージ、それ以外のプロパティは
|
|
5
|
+
* classNameとstyleはマージ、それ以外のプロパティはoverridePropsの値で上書きしてcloneElementを実行する
|
|
6
|
+
*
|
|
7
|
+
* - className: 元のclassNameの後ろに空白区切りで追加する(空文字は無視する)
|
|
8
|
+
* - style: 元のstyleにプロパティ単位で上書きする(値がundefinedのプロパティは無視する)
|
|
9
|
+
* - それ以外: overridePropsの値で上書きする(値がundefinedのプロパティは無視する)
|
|
10
|
+
*
|
|
6
11
|
* @param element エレメント
|
|
7
12
|
* @param overrideProps 新しいエレメントのプロパティをオーバーライドするプロパティ
|
|
8
|
-
* @param children
|
|
9
|
-
* @returns
|
|
13
|
+
* @param children 子要素。省略した場合は元の子要素を引き継ぐ
|
|
14
|
+
* @returns 新しいエレメント
|
|
10
15
|
*/
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { extendElement as default };
|
|
16
|
+
export default function extendElement<P extends ExtendableProps>(element: ReactElement<P>, overrideProps?: Partial<P>, ...children: ReactNode[]): ReactElement<P>;
|
|
17
|
+
//#endregion
|