uiconfig-blueprint 0.1.0-dev.14 → 0.1.0-dev.16
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/LICENSE +21 -190
- package/README.md +26 -15
- package/dist/ConfigObject.d.ts +7 -7
- package/dist/UiConfigRendererBlueprint.d.ts +3 -3
- package/dist/bpComponents/BPButtonComponent.d.ts +4 -4
- package/dist/bpComponents/BPColorInputComponent.d.ts +4 -4
- package/dist/bpComponents/BPComponent.d.ts +4 -4
- package/dist/bpComponents/BPContainerComponent.d.ts +4 -4
- package/dist/bpComponents/BPDropdownInputComponent.d.ts +5 -4
- package/dist/bpComponents/BPFileComponent.d.ts +5 -5
- package/dist/bpComponents/BPFolderComponent.d.ts +6 -6
- package/dist/bpComponents/BPInputComponent.d.ts +5 -5
- package/dist/bpComponents/BPLabelledComponent.d.ts +1 -1
- package/dist/bpComponents/BPNumberInputComponent.d.ts +5 -4
- package/dist/bpComponents/BPPanelComponent.d.ts +5 -5
- package/dist/bpComponents/BPSliderInputComponent.d.ts +4 -4
- package/dist/bpComponents/BPTextInputComponent.d.ts +7 -4
- package/dist/bpComponents/BPToggleInputComponent.d.ts +4 -4
- package/dist/bpComponents/BPValueComponent.d.ts +3 -3
- package/dist/bpComponents/BPVectorInputComponent.d.ts +6 -5
- package/dist/bpComponents/InputGroup2.d.ts +2 -2
- package/dist/components/AppToaster.d.ts +2 -2
- package/dist/components/ConfigurationPanelComponent.d.ts +2 -1
- package/dist/components/DialogContext.d.ts +4 -4
- package/dist/components/DraggableIcon.d.ts +2 -2
- package/dist/components/ExtendedNumericInput.d.ts +3 -3
- package/dist/components/FileComponent.d.ts +3 -3
- package/dist/components/FormGroupComponent.d.ts +2 -2
- package/dist/components/InspectorStackComponent.d.ts +5 -4
- package/dist/components/NumericInput.d.ts +4 -3
- package/dist/components/VisualStyleContext.d.ts +3 -3
- package/dist/components/axesIcons.d.ts +7 -7
- package/dist/components/bpIconWrapper.d.ts +2 -2
- package/dist/components/iconMapping.d.ts +195 -195
- package/dist/components/shapesIcons.d.ts +100 -100
- package/dist/components/variableIcons.d.ts +40 -40
- package/dist/index.cjs +101 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +41 -41
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2500 -6
- package/dist/index.mjs.map +1 -1
- package/dist/lib.d.ts +35 -35
- package/docs/assets/icons.js +15 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +4 -4
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +40 -22
- package/docs/classes/UI.html +27 -27
- package/docs/classes/UiConfigRendererBlueprint.html +27 -27
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +22 -15
- package/docs/modules.html +3 -3
- package/lib/css/renderer.css +4 -2
- package/lib/css/renderer.css.map +1 -1
- package/lib/esm/ConfigObject.d.ts +3 -3
- package/lib/esm/UiConfigRendererBlueprint.d.ts +1 -1
- package/lib/esm/UiConfigRendererBlueprint.js +25 -23
- package/lib/esm/UiConfigRendererBlueprint.js.map +1 -1
- package/lib/esm/bpComponents/BPButtonComponent.d.ts +3 -3
- package/lib/esm/bpComponents/BPColorInputComponent.d.ts +4 -3
- package/lib/esm/bpComponents/BPColorInputComponent.js +1 -1
- package/lib/esm/bpComponents/BPColorInputComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPComponent.d.ts +2 -1
- package/lib/esm/bpComponents/BPComponent.js +15 -4
- package/lib/esm/bpComponents/BPComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPContainerComponent.d.ts +4 -4
- package/lib/esm/bpComponents/BPDropdownInputComponent.d.ts +6 -4
- package/lib/esm/bpComponents/BPDropdownInputComponent.js +2 -2
- package/lib/esm/bpComponents/BPDropdownInputComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPFileComponent.d.ts +6 -5
- package/lib/esm/bpComponents/BPFileComponent.js +1 -1
- package/lib/esm/bpComponents/BPFileComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPFolderComponent.d.ts +3 -3
- package/lib/esm/bpComponents/BPFolderComponent.js +1 -2
- package/lib/esm/bpComponents/BPFolderComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPInputComponent.d.ts +3 -3
- package/lib/esm/bpComponents/BPLabelledComponent.d.ts +1 -1
- package/lib/esm/bpComponents/BPNumberInputComponent.d.ts +5 -4
- package/lib/esm/bpComponents/BPNumberInputComponent.js +1 -1
- package/lib/esm/bpComponents/BPNumberInputComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPPanelComponent.d.ts +5 -4
- package/lib/esm/bpComponents/BPSliderInputComponent.d.ts +5 -4
- package/lib/esm/bpComponents/BPTextInputComponent.d.ts +7 -4
- package/lib/esm/bpComponents/BPTextInputComponent.js +11 -2
- package/lib/esm/bpComponents/BPTextInputComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPToggleInputComponent.d.ts +5 -4
- package/lib/esm/bpComponents/BPValueComponent.d.ts +2 -2
- package/lib/esm/bpComponents/BPValueComponent.js +4 -4
- package/lib/esm/bpComponents/BPValueComponent.js.map +1 -1
- package/lib/esm/bpComponents/BPVectorInputComponent.d.ts +5 -4
- package/lib/esm/bpComponents/BPVectorInputComponent.js +1 -1
- package/lib/esm/bpComponents/BPVectorInputComponent.js.map +1 -1
- package/lib/esm/components/AppToaster.d.ts +2 -1
- package/lib/esm/components/ConfigurationPanelComponent.d.ts +2 -1
- package/lib/esm/components/ConfigurationPanelComponent.js +1 -2
- package/lib/esm/components/ConfigurationPanelComponent.js.map +1 -1
- package/lib/esm/components/DialogContext.d.ts +3 -3
- package/lib/esm/components/DialogContext.js +1 -2
- package/lib/esm/components/DialogContext.js.map +1 -1
- package/lib/esm/components/DraggableIcon.d.ts +1 -1
- package/lib/esm/components/ExtendedNumericInput.d.ts +1 -1
- package/lib/esm/components/FileComponent.d.ts +2 -2
- package/lib/esm/components/FormGroupComponent.d.ts +1 -1
- package/lib/esm/components/InspectorStackComponent.d.ts +3 -2
- package/lib/esm/components/NumericInput.d.ts +2 -1
- package/lib/esm/components/VisualStyleContext.d.ts +2 -2
- package/lib/esm/components/VisualStyleContext.js +1 -2
- package/lib/esm/components/VisualStyleContext.js.map +1 -1
- package/lib/esm/components/axesIcons.d.ts +8 -7
- package/lib/esm/components/bpIconWrapper.d.ts +1 -1
- package/lib/esm/components/iconMapping.d.ts +146 -146
- package/lib/esm/components/shapesIcons.d.ts +99 -99
- package/lib/esm/components/variableIcons.d.ts +41 -40
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/lib.d.ts +35 -35
- package/lib/esm/renderer.css.js +1 -1
- package/package.json +29 -26
- package/src/UiConfigRendererBlueprint.tsx +26 -23
- package/src/bpComponents/BPComponent.tsx +20 -7
- package/src/bpComponents/BPDropdownInputComponent.tsx +3 -2
- package/src/bpComponents/BPFolderComponent.tsx +2 -2
- package/src/bpComponents/BPTextInputComponent.tsx +15 -2
- package/src/components/ConfigurationPanelComponent.tsx +1 -2
- package/src/components/DialogContext.tsx +1 -2
- package/src/components/VisualStyleContext.tsx +1 -2
- package/dist/allPaths-DANRR6MZ.js +0 -23
- package/dist/allPaths-DANRR6MZ.js.map +0 -1
- package/dist/allPathsLoader-BdHGVD6B.js +0 -27
- package/dist/allPathsLoader-BdHGVD6B.js.map +0 -1
- package/dist/index-6kveHKKU.js +0 -695
- package/dist/index-6kveHKKU.js.map +0 -1
- package/dist/index-D9WNL8Mc.js +0 -695
- package/dist/index-D9WNL8Mc.js.map +0 -1
- package/dist/index-t3WzvX5M.js +0 -13501
- package/dist/index-t3WzvX5M.js.map +0 -1
- package/dist/splitPathsBySizeLoader-Bhwx_O-M.js +0 -36
- package/dist/splitPathsBySizeLoader-Bhwx_O-M.js.map +0 -1
- package/lib/esm/bpComponents/BPTreeComponent.d.ts +0 -46
- package/lib/esm/bpComponents/BPTreeComponent.js +0 -221
- package/lib/esm/bpComponents/BPTreeComponent.js.map +0 -1
- package/lib/esm/bpComponents/BPTreeFolderComponent.d.ts +0 -10
- package/lib/esm/bpComponents/BPTreeFolderComponent.js +0 -37
- package/lib/esm/bpComponents/BPTreeFolderComponent.js.map +0 -1
- package/lib/esm/components/Tree2.d.ts +0 -52
- package/lib/esm/components/Tree2.js +0 -177
- package/lib/esm/components/Tree2.js.map +0 -1
- package/lib/esm/components/TreeNode2.d.ts +0 -43
- package/lib/esm/components/TreeNode2.js +0 -113
- package/lib/esm/components/TreeNode2.js.map +0 -1
- package/lib/esm/components/treeTypes.d.ts +0 -19
- package/lib/esm/components/treeTypes.js +0 -2
- package/lib/esm/components/treeTypes.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,190 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
Copyright 2023 Palash Bansal <palash@shaders.app>
|
|
179
|
-
|
|
180
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
-
you may not use this file except in compliance with the License.
|
|
182
|
-
You may obtain a copy of the License at
|
|
183
|
-
|
|
184
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
-
|
|
186
|
-
Unless required by applicable law or agreed to in writing, software
|
|
187
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
-
See the License for the specific language governing permissions and
|
|
190
|
-
limitations under the License.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 repalash
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# UiConfig Blueprint.js
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/uiconfig-blueprint)
|
|
4
|
-
[](./LICENSE)
|
|
5
5
|
|
|
6
6
|
Blueprint.js theme/wrapper library for [uiconfig.js](https://github.com/repalash/uiconfig.js): A UI renderer framework to dynamically generate website/configuration UIs from a JSON-like configurations and/or typescript decorators.
|
|
7
7
|
|
|
@@ -11,7 +11,9 @@ The UI components are bound to javascript/typescript objects and properties t
|
|
|
11
11
|
|
|
12
12
|
### Examples
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Examples: https://repalash.com/uiconfig.js/examples/ (pick Blueprint on an example page)
|
|
15
|
+
|
|
16
|
+
API docs: https://repalash.com/uiconfig.js/docs/modules/uiconfig-blueprint.html
|
|
15
17
|
|
|
16
18
|
Threepipe Basic UI: https://threepipe.org/examples/#blueprintjs-ui-plugin/
|
|
17
19
|
|
|
@@ -29,8 +31,7 @@ npm install uiconfig-blueprint
|
|
|
29
31
|
Use in any javascript/typescript file.
|
|
30
32
|
```typescript
|
|
31
33
|
import { UI } from 'uiconfig-blueprint';
|
|
32
|
-
//
|
|
33
|
-
// import { UI } from 'https://unpkg.com/uiconfig-blueprint/dist/index.mjs';
|
|
34
|
+
// in a browser without a bundler, use the CDN link below
|
|
34
35
|
|
|
35
36
|
const config = {
|
|
36
37
|
type: "slider",
|
|
@@ -72,6 +73,15 @@ The module can be accessed with the short-form `bpui`
|
|
|
72
73
|
</script>
|
|
73
74
|
```
|
|
74
75
|
|
|
76
|
+
### Builds
|
|
77
|
+
|
|
78
|
+
- `dist/index.mjs` (`import`, `module`): ES module. It imports its dependencies `uiconfig.js`, `ts-browser-helpers`, `react`, `react-dom`, `@blueprintjs/core`, `@blueprintjs/icons`, `@blueprintjs/select`, `react-colorful` and `classnames` instead of bundling them, so the bundler of the app keeps one copy of each. The styles and a few internal modules of `@blueprintjs/core` stay in the bundle. `react`, `react-dom` and `@blueprintjs/core` are peer dependencies: npm 7 and later install them, other package managers can need them in the app's `package.json`.
|
|
79
|
+
- `lib/esm`: the TypeScript output, one file per source module.
|
|
80
|
+
- `dist/index.js` (`browser`, the CDN link): UMD bundle with all dependencies included, for a `<script>` tag.
|
|
81
|
+
- `dist/index.cjs` (`main`, `require`): the same bundle as CommonJS, for `require()`.
|
|
82
|
+
|
|
83
|
+
The UMD and CommonJS builds are legacy and will be removed in the next major version.
|
|
84
|
+
|
|
75
85
|
## Configuration
|
|
76
86
|
|
|
77
87
|
Check the documentation at [uiconfig.js](https://github.com/repalash/uiconfig.js) on how to create a configuration for the UI.
|
|
@@ -105,30 +115,31 @@ ui.THREE = {Color, Vector4, Vector3, Vector2}
|
|
|
105
115
|
|
|
106
116
|
## Development
|
|
107
117
|
|
|
108
|
-
|
|
118
|
+
This package lives in the [uiconfig monorepo](https://github.com/repalash/uiconfig.js). Clone it and install the dependencies at the root.
|
|
109
119
|
```bash
|
|
110
|
-
git clone
|
|
120
|
+
git clone https://github.com/repalash/uiconfig.js.git
|
|
121
|
+
cd uiconfig.js
|
|
111
122
|
npm install
|
|
123
|
+
npm run build -w uiconfig.js
|
|
112
124
|
```
|
|
113
125
|
|
|
114
|
-
|
|
126
|
+
The examples are pages of the website ([website/README.md](https://github.com/repalash/uiconfig.js/blob/master/website/README.md)), which uses the built `dist` of this
|
|
127
|
+
package: build it, then run the website's dev server and open its examples.
|
|
115
128
|
```bash
|
|
116
|
-
npm run
|
|
129
|
+
npm run build -w uiconfig-blueprint
|
|
130
|
+
npm run dev -w uiconfig-website
|
|
117
131
|
```
|
|
118
|
-
|
|
132
|
+
After a change in `src`, build the package again.
|
|
119
133
|
|
|
120
134
|
Build the project.
|
|
121
135
|
```bash
|
|
122
|
-
npm run build
|
|
136
|
+
npm run build -w uiconfig-blueprint
|
|
123
137
|
```
|
|
124
138
|
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
npm publish
|
|
128
|
-
```
|
|
139
|
+
Releases are published to npm from GitHub Actions: see the root README.
|
|
129
140
|
|
|
130
141
|
## License
|
|
131
|
-
|
|
142
|
+
MIT, see [LICENSE](LICENSE). Releases up to 0.1.0-dev.15 were licensed under Apache 2.0.
|
|
132
143
|
|
|
133
144
|
## Library usage in react
|
|
134
145
|
|
package/dist/ConfigObject.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Class, PartialRecord } from
|
|
3
|
-
import { BPComponentProps, BPComponentState, UiConfigRendererContext } from
|
|
4
|
-
import { PanelActions } from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Class, PartialRecord } from 'ts-browser-helpers';
|
|
3
|
+
import { BPComponentProps, BPComponentState, UiConfigRendererContext } from './bpComponents/BPComponent.js';
|
|
4
|
+
import { PanelActions } from '@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes';
|
|
5
5
|
import { UiObjectConfig } from 'uiconfig.js';
|
|
6
|
-
import { IconName, MaybeElement } from
|
|
6
|
+
import { IconName, MaybeElement } from '@blueprintjs/core';
|
|
7
7
|
export type UiConfigTypes = 'input' | 'button' | 'folder' | 'checkbox' | 'toggle' | 'dropdown' | 'slider' | 'color' | 'image' | 'number' | 'panel' | 'tree' | 'hierarchy' | 'materials' | 'textures' | 'vec' | 'vec2' | 'vec3' | 'vec4' | 'monitor' | 'vector' | 'select' | 'textarea' | 'tabs';
|
|
8
8
|
export interface ConfigProps extends PanelActions {
|
|
9
9
|
config: UiObjectConfig;
|
|
@@ -14,8 +14,8 @@ export interface ConfigProps extends PanelActions {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const ConfigObjectGenerators: PartialRecord<UiConfigTypes, Class<React.Component<BPComponentProps<any>, BPComponentState>>>;
|
|
16
16
|
export declare class ConfigObject extends React.Component<ConfigProps, {}> {
|
|
17
|
-
static contextType: React.Context<import(
|
|
17
|
+
static contextType: React.Context<import('./bpComponents/BPComponent.js').UiConfigRendererBaseBp>;
|
|
18
18
|
context: React.ContextType<typeof UiConfigRendererContext>;
|
|
19
19
|
state: {};
|
|
20
|
-
render():
|
|
20
|
+
render(): React.JSX.Element;
|
|
21
21
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { JSUndoManager } from
|
|
2
|
-
import { UiConfigRenderer, UiObjectConfig } from
|
|
1
|
+
import { JSUndoManager } from 'ts-browser-helpers';
|
|
2
|
+
import { UiConfigRenderer, UiObjectConfig } from 'uiconfig.js';
|
|
3
3
|
import { Root } from 'react-dom/client';
|
|
4
|
-
import { THREE } from
|
|
4
|
+
import { THREE } from './threejs.js';
|
|
5
5
|
export declare class UiConfigRendererBlueprint extends UiConfigRenderer {
|
|
6
6
|
constructor(container?: HTMLElement, { autoPostFrame }?: {
|
|
7
7
|
autoPostFrame?: boolean | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BPComponentProps, UiConfigRendererContextType } from
|
|
2
|
-
import React from
|
|
3
|
-
import { BPLabelledComponent, BPLabelledComponentState } from
|
|
1
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { BPLabelledComponent, BPLabelledComponentState } from './BPLabelledComponent.js';
|
|
4
4
|
export declare class BPButtonComponent extends BPLabelledComponent<() => void, BPLabelledComponentState> {
|
|
5
5
|
constructor(props: BPComponentProps<() => void>, context: UiConfigRendererContextType);
|
|
6
6
|
onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
7
7
|
protected flexBasis: string;
|
|
8
|
-
render():
|
|
8
|
+
render(): React.JSX.Element | null;
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BPComponentProps, UiConfigRendererContextType } from
|
|
2
|
-
import { BPValueComponent, BPValueComponentState } from
|
|
3
|
-
import
|
|
1
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
2
|
+
import { BPValueComponent, BPValueComponentState } from './BPValueComponent.js';
|
|
3
|
+
import { ColorRepresentation } from 'three';
|
|
4
4
|
export type BPColorComponentState = BPValueComponentState<string> & {
|
|
5
5
|
mode: 'number' | 'string' | 'Color';
|
|
6
6
|
lastValue?: ColorRepresentation;
|
|
@@ -22,5 +22,5 @@ export declare class BPColorInputComponent extends BPValueComponent<ColorReprese
|
|
|
22
22
|
private _mouseUp;
|
|
23
23
|
refreshConfigState(state?: BPColorComponentState): Promise<void>;
|
|
24
24
|
protected flexBasis: string;
|
|
25
|
-
render(): import("react
|
|
25
|
+
render(): import("react").JSX.Element | null;
|
|
26
26
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
3
|
-
import { UiObjectConfig } from 'uiconfig.js';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UiConfigRendererBase, UiObjectConfig } from 'uiconfig.js';
|
|
4
3
|
import { ValOrFunc } from 'ts-browser-helpers';
|
|
5
|
-
import { THREE } from
|
|
4
|
+
import { THREE } from '../threejs.js';
|
|
6
5
|
export type BPComponentProps<T> = {
|
|
7
6
|
config: UiObjectConfig<T>;
|
|
8
7
|
level?: number;
|
|
@@ -27,6 +26,7 @@ export declare abstract class BPComponent<TValue, TState extends BPComponentStat
|
|
|
27
26
|
keyVersion: number;
|
|
28
27
|
getUpdatedState(state: TState): TState;
|
|
29
28
|
private _refreshing;
|
|
29
|
+
private _refreshAgain;
|
|
30
30
|
refreshConfigState(state?: TState): Promise<void>;
|
|
31
31
|
componentDidMount(): void;
|
|
32
32
|
componentWillUnmount(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BPLabelledComponent, BPLabelledComponentState } from './BPLabelledComponent';
|
|
2
|
-
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent';
|
|
1
|
+
import { BPLabelledComponent, BPLabelledComponentState } from './BPLabelledComponent.js';
|
|
2
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
3
3
|
import { PanelActions } from '@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes';
|
|
4
4
|
import { UiObjectConfig } from 'uiconfig.js';
|
|
5
|
-
declare module '../ConfigObject' {
|
|
5
|
+
declare module '../ConfigObject.js' {
|
|
6
6
|
interface ConfigProps {
|
|
7
7
|
filter?: (child: UiObjectConfig) => boolean;
|
|
8
8
|
}
|
|
@@ -19,7 +19,7 @@ export declare class BPContainerComponent<TState extends BPContainerComponentSta
|
|
|
19
19
|
protected _registerChild(child: UiObjectConfig): void;
|
|
20
20
|
protected _unregisterChild(child: UiObjectConfig): void;
|
|
21
21
|
constructor(props: BPComponentProps<void> & PanelActions & TProps, context: UiConfigRendererContextType, state: TState);
|
|
22
|
-
getUpdatedState(state: TState): TState & import(
|
|
22
|
+
getUpdatedState(state: TState): TState & import('./BPComponent.js').BPComponentState & {
|
|
23
23
|
children: any[];
|
|
24
24
|
expanded: boolean;
|
|
25
25
|
label: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { BPComponentProps, UiConfigRendererContextType } from
|
|
2
|
-
import { BPInputComponent } from
|
|
3
|
-
import { BPValueComponentState } from
|
|
1
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
2
|
+
import { BPInputComponent } from './BPInputComponent.js';
|
|
3
|
+
import { BPValueComponentState } from './BPValueComponent.js';
|
|
4
4
|
export interface DropdownItem {
|
|
5
5
|
label: string;
|
|
6
6
|
value: string | number;
|
|
7
|
+
uuid?: string;
|
|
7
8
|
}
|
|
8
9
|
export type BPDropdownComponentState = BPValueComponentState<string | number> & {
|
|
9
10
|
options: DropdownItem[];
|
|
@@ -11,5 +12,5 @@ export type BPDropdownComponentState = BPValueComponentState<string | number> &
|
|
|
11
12
|
export declare class BPDropdownInputComponent extends BPInputComponent<string | number, BPDropdownComponentState> {
|
|
12
13
|
constructor(props: BPComponentProps<string | number>, context: UiConfigRendererContextType);
|
|
13
14
|
getUpdatedState(state: BPDropdownComponentState): BPDropdownComponentState;
|
|
14
|
-
renderInput(): import("react
|
|
15
|
+
renderInput(): import("react").JSX.Element;
|
|
15
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FileComponentProps } from
|
|
2
|
-
import { BPComponentProps, UiConfigRendererContextType } from
|
|
3
|
-
import { BPValueComponent, BPValueComponentState } from
|
|
1
|
+
import { FileComponentProps } from '../components/FileComponent.js';
|
|
2
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
3
|
+
import { BPValueComponent, BPValueComponentState } from './BPValueComponent.js';
|
|
4
4
|
type StateValue = string | File | null;
|
|
5
5
|
type FileImportType = any;
|
|
6
6
|
export type BPFileComponentState<TSV = never> = BPValueComponentState<TSV | StateValue> & {
|
|
@@ -23,8 +23,8 @@ export declare class BPFileComponent<T extends FileImportType = FileImportType,
|
|
|
23
23
|
constructor(props: BPComponentProps<T | null> & BPFileComponentProps<TSV> & TP, context: BPFileComponentContextType<TSV>);
|
|
24
24
|
convertValueToState(_val: T | null, _state: BPFileComponentState<TSV>): BPFileComponentState<TSV>;
|
|
25
25
|
convertStateToValue(state: BPFileComponentState<TSV>): Promise<T | null>;
|
|
26
|
-
renderPreviewSlot(): import("react
|
|
26
|
+
renderPreviewSlot(): import("react").JSX.Element;
|
|
27
27
|
protected flexBasis: string;
|
|
28
|
-
render(): import("react
|
|
28
|
+
render(): import("react").JSX.Element | null;
|
|
29
29
|
}
|
|
30
30
|
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { BPComponentProps, UiConfigRendererContextType } from
|
|
3
|
-
import { Collapse, IconName, MaybeElement } from
|
|
4
|
-
import { PanelActions } from
|
|
5
|
-
import { BPContainerComponent, BPContainerComponentState, BPContainerComponentProps } from './BPContainerComponent';
|
|
1
|
+
import { default as React, ChangeEventHandler, DOMAttributes } from 'react';
|
|
2
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
3
|
+
import { Collapse, IconName, MaybeElement } from '@blueprintjs/core';
|
|
4
|
+
import { PanelActions } from '@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes';
|
|
5
|
+
import { BPContainerComponent, BPContainerComponentState, BPContainerComponentProps } from './BPContainerComponent.js';
|
|
6
6
|
export type BPFolderComponentState = BPContainerComponentState & {};
|
|
7
7
|
export type BPFolderComponentProps = BPContainerComponentProps & {
|
|
8
8
|
icon?: IconName | MaybeElement;
|
|
9
9
|
};
|
|
10
10
|
export declare class BPFolderComponent extends BPContainerComponent<BPFolderComponentState, BPFolderComponentProps> {
|
|
11
11
|
constructor(props: BPComponentProps<void> & PanelActions & BPFolderComponentProps, context: UiConfigRendererContextType);
|
|
12
|
-
render():
|
|
12
|
+
render(): React.JSX.Element | null;
|
|
13
13
|
}
|
|
14
14
|
export declare const FolderHeadCard: React.FC<React.PropsWithChildren<{
|
|
15
15
|
open: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BPValueComponent, BPValueComponentState } from
|
|
2
|
-
import { BPComponentProps, UiConfigRendererContextType } from
|
|
3
|
-
import { ReactNode } from
|
|
4
|
-
import { PrimitiveVal } from
|
|
1
|
+
import { BPValueComponent, BPValueComponentState } from './BPValueComponent.js';
|
|
2
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { PrimitiveVal } from 'uiconfig.js';
|
|
5
5
|
export declare abstract class BPInputComponent<TStateValue extends PrimitiveVal, TState extends BPValueComponentState<TStateValue> = BPValueComponentState<TStateValue>> extends BPValueComponent<TStateValue, TState, TStateValue> {
|
|
6
6
|
protected constructor(props: BPComponentProps<TStateValue>, context: UiConfigRendererContextType, state: TState);
|
|
7
7
|
convertValueToState(value: TStateValue, state: TState): TState;
|
|
8
8
|
convertStateToValue(state: TState): Promise<TStateValue>;
|
|
9
9
|
abstract renderInput(): ReactNode;
|
|
10
10
|
protected flexBasis: string;
|
|
11
|
-
render(): import("react
|
|
11
|
+
render(): import("react").JSX.Element | null;
|
|
12
12
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BPComponent, BPComponentProps, BPComponentState, UiConfigRendererContextType } from
|
|
1
|
+
import { BPComponent, BPComponentProps, BPComponentState, UiConfigRendererContextType } from './BPComponent.js';
|
|
2
2
|
export type BPLabelledComponentState = BPComponentState & {
|
|
3
3
|
label: string;
|
|
4
4
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
3
|
+
import { BPInputComponent } from './BPInputComponent.js';
|
|
4
|
+
import { BPValueComponentState } from './BPValueComponent.js';
|
|
4
5
|
export declare class BPNumberInputComponent extends BPInputComponent<number, BPValueComponentState<number> & {
|
|
5
6
|
unit?: string;
|
|
6
7
|
}> {
|
|
@@ -8,5 +9,5 @@ export declare class BPNumberInputComponent extends BPInputComponent<number, BPV
|
|
|
8
9
|
private _inputs;
|
|
9
10
|
refreshConfigState(state?: BPValueComponentState<number>): Promise<void>;
|
|
10
11
|
private _onChange;
|
|
11
|
-
renderInput():
|
|
12
|
+
renderInput(): React.JSX.Element;
|
|
12
13
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BPComponentProps, UiConfigRendererContextType } from
|
|
2
|
-
import { BPLabelledComponentState } from
|
|
3
|
-
import { PanelActions } from
|
|
1
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
2
|
+
import { BPLabelledComponentState } from './BPLabelledComponent.js';
|
|
3
|
+
import { PanelActions } from '@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes';
|
|
4
4
|
import { UiObjectConfig } from 'uiconfig.js';
|
|
5
|
-
import { BPContainerComponent, BPContainerComponentProps } from './BPContainerComponent';
|
|
5
|
+
import { BPContainerComponent, BPContainerComponentProps } from './BPContainerComponent.js';
|
|
6
6
|
export type BPPanelComponentState = BPLabelledComponentState & {
|
|
7
7
|
children: UiObjectConfig[];
|
|
8
8
|
expanded: boolean;
|
|
@@ -12,5 +12,5 @@ export declare class BPPanelComponent extends BPContainerComponent<BPPanelCompon
|
|
|
12
12
|
setExpanded: (e: boolean) => void;
|
|
13
13
|
componentDidMount(): void;
|
|
14
14
|
componentWillUnmount(): void;
|
|
15
|
-
render(): import("react
|
|
15
|
+
render(): import("react").JSX.Element | null;
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BPComponentProps, UiConfigRendererContextType } from
|
|
2
|
-
import { BPInputComponent } from
|
|
3
|
-
import { BPValueComponentState } from
|
|
1
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
2
|
+
import { BPInputComponent } from './BPInputComponent.js';
|
|
3
|
+
import { BPValueComponentState } from './BPValueComponent.js';
|
|
4
4
|
export type BPSliderComponentState = BPValueComponentState<number> & {
|
|
5
5
|
min: number;
|
|
6
6
|
max: number;
|
|
@@ -11,5 +11,5 @@ export declare class BPSliderInputComponent extends BPInputComponent<number, BPS
|
|
|
11
11
|
constructor(props: BPComponentProps<number>, context: UiConfigRendererContextType);
|
|
12
12
|
getUpdatedState(state: BPSliderComponentState): BPSliderComponentState;
|
|
13
13
|
flexBasis: string;
|
|
14
|
-
renderInput(): import("react
|
|
14
|
+
renderInput(): import("react").JSX.Element[];
|
|
15
15
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
3
|
+
import { BPInputComponent } from './BPInputComponent.js';
|
|
4
|
+
import { BPValueComponentState } from './BPValueComponent.js';
|
|
4
5
|
export declare class BPTextInputComponent extends BPInputComponent<string> {
|
|
5
6
|
constructor(props: BPComponentProps<string>, context: UiConfigRendererContextType);
|
|
6
7
|
private _inputRef;
|
|
7
8
|
private _iv;
|
|
8
9
|
refreshConfigState(state?: BPValueComponentState<string>): Promise<void>;
|
|
10
|
+
private _edited;
|
|
9
11
|
private _onChange;
|
|
10
|
-
|
|
12
|
+
private _onBlur;
|
|
13
|
+
renderInput(): React.JSX.Element;
|
|
11
14
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BPComponentProps, UiConfigRendererContextType } from
|
|
2
|
-
import { BPInputComponent } from
|
|
1
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
2
|
+
import { BPInputComponent } from './BPInputComponent.js';
|
|
3
3
|
export declare class BPToggleInputComponent extends BPInputComponent<boolean> {
|
|
4
4
|
constructor(props: BPComponentProps<boolean>, context: UiConfigRendererContextType);
|
|
5
5
|
private _onChange;
|
|
6
|
-
renderInput(): import("react
|
|
7
|
-
render(): import("react
|
|
6
|
+
renderInput(): import("react").JSX.Element;
|
|
7
|
+
render(): import("react").JSX.Element | null;
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BPComponentProps, UiConfigRendererContextType } from
|
|
2
|
-
import { BPLabelledComponent, BPLabelledComponentState } from
|
|
3
|
-
import { PrimitiveVal } from
|
|
1
|
+
import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
|
|
2
|
+
import { BPLabelledComponent, BPLabelledComponentState } from './BPLabelledComponent.js';
|
|
3
|
+
import { PrimitiveVal } from 'uiconfig.js';
|
|
4
4
|
export type BPValueComponentState<TStateValue> = BPLabelledComponentState & {
|
|
5
5
|
value: TStateValue;
|
|
6
6
|
};
|