tweak-ui 0.4.2 → 0.5.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.
Files changed (184) hide show
  1. package/LICENSE +7 -7
  2. package/README.md +32 -32
  3. package/dist/lib/builder.d.ts +166 -162
  4. package/dist/lib/builder.d.ts.map +1 -1
  5. package/dist/lib/builder.js +250 -0
  6. package/dist/lib/builder.js.map +1 -0
  7. package/dist/lib/color-formats/array-format.d.ts +8 -8
  8. package/dist/lib/color-formats/array-format.js +18 -0
  9. package/dist/lib/color-formats/array-format.js.map +1 -0
  10. package/dist/lib/color-formats/converter.d.ts +18 -18
  11. package/dist/lib/color-formats/converter.js +85 -0
  12. package/dist/lib/color-formats/converter.js.map +1 -0
  13. package/dist/lib/color-formats/css-string-format.d.ts +7 -7
  14. package/dist/lib/color-formats/css-string-format.js +28 -0
  15. package/dist/lib/color-formats/css-string-format.js.map +1 -0
  16. package/dist/lib/color-formats/formatter.d.ts +8 -8
  17. package/dist/lib/color-formats/formatter.js +35 -0
  18. package/dist/lib/color-formats/formatter.js.map +1 -0
  19. package/dist/lib/color-formats/hex-string-format.d.ts +7 -7
  20. package/dist/lib/color-formats/hex-string-format.js +28 -0
  21. package/dist/lib/color-formats/hex-string-format.js.map +1 -0
  22. package/dist/lib/color-formats/index.d.ts +3 -3
  23. package/dist/lib/color-formats/index.js +4 -0
  24. package/dist/lib/color-formats/index.js.map +1 -0
  25. package/dist/lib/color-formats/number-format.d.ts +8 -8
  26. package/dist/lib/color-formats/number-format.js +23 -0
  27. package/dist/lib/color-formats/number-format.js.map +1 -0
  28. package/dist/lib/color-formats/object-format.d.ts +14 -14
  29. package/dist/lib/color-formats/object-format.js +23 -0
  30. package/dist/lib/color-formats/object-format.js.map +1 -0
  31. package/dist/lib/color-formats/types.d.ts +101 -101
  32. package/dist/lib/color-formats/types.js +2 -0
  33. package/dist/lib/color-formats/types.js.map +1 -0
  34. package/dist/lib/components/button.d.ts +28 -28
  35. package/dist/lib/components/button.d.ts.map +1 -1
  36. package/dist/lib/components/button.js +15 -0
  37. package/dist/lib/components/button.js.map +1 -0
  38. package/dist/lib/components/content.d.ts +21 -21
  39. package/dist/lib/components/content.d.ts.map +1 -1
  40. package/dist/lib/components/content.js +10 -0
  41. package/dist/lib/components/content.js.map +1 -0
  42. package/dist/lib/components/controls/angle.d.ts +51 -51
  43. package/dist/lib/components/controls/angle.d.ts.map +1 -1
  44. package/dist/lib/components/controls/angle.js +201 -0
  45. package/dist/lib/components/controls/angle.js.map +1 -0
  46. package/dist/lib/components/controls/checkbox.d.ts +28 -28
  47. package/dist/lib/components/controls/checkbox.d.ts.map +1 -1
  48. package/dist/lib/components/controls/checkbox.js +31 -0
  49. package/dist/lib/components/controls/checkbox.js.map +1 -0
  50. package/dist/lib/components/controls/color-picker.d.ts +56 -56
  51. package/dist/lib/components/controls/color-picker.d.ts.map +1 -1
  52. package/dist/lib/components/controls/color-picker.js +267 -0
  53. package/dist/lib/components/controls/color-picker.js.map +1 -0
  54. package/dist/lib/components/controls/color.d.ts +51 -51
  55. package/dist/lib/components/controls/color.d.ts.map +1 -1
  56. package/dist/lib/components/controls/color.js +77 -0
  57. package/dist/lib/components/controls/color.js.map +1 -0
  58. package/dist/lib/components/controls/index.d.ts +10 -10
  59. package/dist/lib/components/controls/index.js +11 -0
  60. package/dist/lib/components/controls/index.js.map +1 -0
  61. package/dist/lib/components/controls/number.d.ts +47 -47
  62. package/dist/lib/components/controls/number.d.ts.map +1 -1
  63. package/dist/lib/components/controls/number.js +142 -0
  64. package/dist/lib/components/controls/number.js.map +1 -0
  65. package/dist/lib/components/controls/point.d.ts +47 -47
  66. package/dist/lib/components/controls/point.d.ts.map +1 -1
  67. package/dist/lib/components/controls/point.js +137 -0
  68. package/dist/lib/components/controls/point.js.map +1 -0
  69. package/dist/lib/components/controls/position.d.ts +55 -55
  70. package/dist/lib/components/controls/position.d.ts.map +1 -1
  71. package/dist/lib/components/controls/position.js +36 -0
  72. package/dist/lib/components/controls/position.js.map +1 -0
  73. package/dist/lib/components/controls/select.d.ts +59 -59
  74. package/dist/lib/components/controls/select.d.ts.map +1 -1
  75. package/dist/lib/components/controls/select.js +132 -0
  76. package/dist/lib/components/controls/select.js.map +1 -0
  77. package/dist/lib/components/controls/spherical.d.ts +74 -74
  78. package/dist/lib/components/controls/spherical.d.ts.map +1 -1
  79. package/dist/lib/components/controls/spherical.js +302 -0
  80. package/dist/lib/components/controls/spherical.js.map +1 -0
  81. package/dist/lib/components/controls/text.d.ts +35 -35
  82. package/dist/lib/components/controls/text.d.ts.map +1 -1
  83. package/dist/lib/components/controls/text.js +24 -0
  84. package/dist/lib/components/controls/text.js.map +1 -0
  85. package/dist/lib/components/groups/accordion.d.ts +21 -21
  86. package/dist/lib/components/groups/accordion.d.ts.map +1 -1
  87. package/dist/lib/components/groups/accordion.js +34 -0
  88. package/dist/lib/components/groups/accordion.js.map +1 -0
  89. package/dist/lib/components/groups/container.d.ts +24 -24
  90. package/dist/lib/components/groups/container.d.ts.map +1 -1
  91. package/dist/lib/components/groups/container.js +19 -0
  92. package/dist/lib/components/groups/container.js.map +1 -0
  93. package/dist/lib/components/groups/group.d.ts +48 -48
  94. package/dist/lib/components/groups/group.d.ts.map +1 -1
  95. package/dist/lib/components/groups/group.js +50 -0
  96. package/dist/lib/components/groups/group.js.map +1 -0
  97. package/dist/lib/components/groups/index.d.ts +4 -4
  98. package/dist/lib/components/groups/index.js +5 -0
  99. package/dist/lib/components/groups/index.js.map +1 -0
  100. package/dist/lib/components/groups/tabs.d.ts +21 -21
  101. package/dist/lib/components/groups/tabs.d.ts.map +1 -1
  102. package/dist/lib/components/groups/tabs.js +31 -0
  103. package/dist/lib/components/groups/tabs.js.map +1 -0
  104. package/dist/lib/components/image.d.ts +36 -36
  105. package/dist/lib/components/image.d.ts.map +1 -1
  106. package/dist/lib/components/image.js +46 -0
  107. package/dist/lib/components/image.js.map +1 -0
  108. package/dist/lib/components/index.d.ts +5 -5
  109. package/dist/lib/components/index.js +6 -0
  110. package/dist/lib/components/index.js.map +1 -0
  111. package/dist/lib/core/index.d.ts +4 -4
  112. package/dist/lib/core/index.js +5 -0
  113. package/dist/lib/core/index.js.map +1 -0
  114. package/dist/lib/core/registry.d.ts +17 -17
  115. package/dist/lib/core/registry.js +30 -0
  116. package/dist/lib/core/registry.js.map +1 -0
  117. package/dist/lib/core/render.d.ts +9 -9
  118. package/dist/lib/core/render.d.ts.map +1 -1
  119. package/dist/lib/core/render.js +19 -0
  120. package/dist/lib/core/render.js.map +1 -0
  121. package/dist/lib/core/types.d.ts +87 -87
  122. package/dist/lib/core/types.d.ts.map +1 -1
  123. package/dist/lib/core/types.js +2 -0
  124. package/dist/lib/core/types.js.map +1 -0
  125. package/dist/lib/core/utils.d.ts +93 -93
  126. package/dist/lib/core/utils.d.ts.map +1 -1
  127. package/dist/lib/core/utils.js +193 -0
  128. package/dist/lib/core/utils.js.map +1 -0
  129. package/dist/lib/core/value-accessor.d.ts +17 -17
  130. package/dist/lib/core/value-accessor.js +52 -0
  131. package/dist/lib/core/value-accessor.js.map +1 -0
  132. package/dist/lib/index.d.ts +21 -27
  133. package/dist/lib/index.d.ts.map +1 -1
  134. package/dist/lib/index.js +29 -0
  135. package/dist/lib/index.js.map +1 -0
  136. package/dist/lib/mount.d.ts +45 -45
  137. package/dist/lib/mount.js +85 -0
  138. package/dist/lib/mount.js.map +1 -0
  139. package/dist/tweak-ui.css +133 -138
  140. package/dist/tweak-ui.css.map +1 -1
  141. package/dist/tweak-ui.min.css +1 -1
  142. package/dist/tweak-ui.min.css.map +1 -1
  143. package/dist/tweak-ui.module.js +2733 -2380
  144. package/dist/tweak-ui.module.js.map +1 -1
  145. package/dist/tweak-ui.umd.js +1 -4403
  146. package/dist/tweak-ui.umd.js.map +1 -1
  147. package/package.json +25 -42
  148. package/dist/index.html +0 -1061
  149. package/dist/lib/color-formats/array-format.spec.d.ts +0 -2
  150. package/dist/lib/color-formats/array-format.spec.d.ts.map +0 -1
  151. package/dist/lib/color-formats/converter.spec.d.ts +0 -2
  152. package/dist/lib/color-formats/converter.spec.d.ts.map +0 -1
  153. package/dist/lib/color-formats/css-string-format.spec.d.ts +0 -2
  154. package/dist/lib/color-formats/css-string-format.spec.d.ts.map +0 -1
  155. package/dist/lib/color-formats/formatter.spec.d.ts +0 -2
  156. package/dist/lib/color-formats/formatter.spec.d.ts.map +0 -1
  157. package/dist/lib/color-formats/hex-string-format.spec.d.ts +0 -2
  158. package/dist/lib/color-formats/hex-string-format.spec.d.ts.map +0 -1
  159. package/dist/lib/color-formats/number-format.spec.d.ts +0 -2
  160. package/dist/lib/color-formats/number-format.spec.d.ts.map +0 -1
  161. package/dist/lib/color-formats/object-format.spec.d.ts +0 -2
  162. package/dist/lib/color-formats/object-format.spec.d.ts.map +0 -1
  163. package/dist/scss/_style.scss +0 -120
  164. package/dist/scss/_themes.scss +0 -23
  165. package/dist/scss/_utils.scss +0 -24
  166. package/dist/scss/_variables.scss +0 -30
  167. package/dist/scss/controls/_angle.scss +0 -64
  168. package/dist/scss/controls/_button.scss +0 -0
  169. package/dist/scss/controls/_checkbox.scss +0 -19
  170. package/dist/scss/controls/_color-picker.scss +0 -124
  171. package/dist/scss/controls/_color.scss +0 -14
  172. package/dist/scss/controls/_container.scss +0 -13
  173. package/dist/scss/controls/_group.scss +0 -69
  174. package/dist/scss/controls/_image.scss +0 -27
  175. package/dist/scss/controls/_number.scss +0 -38
  176. package/dist/scss/controls/_point.scss +0 -36
  177. package/dist/scss/controls/_position.scss +0 -9
  178. package/dist/scss/controls/_select.scss +0 -0
  179. package/dist/scss/controls/_spherical.scss +0 -87
  180. package/dist/scss/controls/_tabs.scss +0 -38
  181. package/dist/scss/controls/_text.scss +0 -0
  182. package/dist/scss/index.scss +0 -21
  183. package/dist/tweak-ui.umd.min.js +0 -17
  184. package/dist/tweak-ui.umd.min.js.map +0 -1
package/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
- Copyright 2018 Alexander Gräfenstein
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
-
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright 2018 Alexander Gräfenstein
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,32 +1,32 @@
1
- ![Latest NPM release][version-shield]
2
- [![License][license-shield]][license-url]
3
-
4
- # Tweak UI
5
- Tweak UI is a lightweight js library providing simple tweak controls
6
-
7
- It provides a set of common ui components built with mithriljs. The main objective
8
- is to allow a developer to rapidly scaffold input interfaces for manipulating javascript objects
9
- at runtime.
10
-
11
- ## Installation
12
-
13
- ### NPM
14
-
15
- `npm -i tweak-ui`
16
-
17
- ### CDN
18
-
19
- ```html
20
- <style link="https://unpkg.com/tweak-ui@x.x.x/dist/tweakui.min.css"></style>
21
- <script src="https://unpkg.com/tweak-ui@x.x.x/dist/tweakui.umd.min.js"></script>
22
- ```
23
-
24
- ## Alternatives
25
-
26
- * [dat.gui](https://github.com/dataarts/dat.gui)
27
- * [controlkit.js](https://github.com/automat/controlkit.js)
28
- * [guify](https://github.com/colejd/guify)
29
-
30
- [license-url]: ./LICENSE
31
- [license-shield]: https://img.shields.io/npm/l/tweak-ui.svg
32
- [version-shield]: https://img.shields.io/npm/v/tweak-ui.svg
1
+ ![Latest NPM release][version-shield]
2
+ [![License][license-shield]][license-url]
3
+
4
+ # Tweak UI
5
+ Tweak UI is a lightweight js library providing simple tweak controls
6
+
7
+ It provides a set of common ui components built with mithriljs. The main objective
8
+ is to allow a developer to rapidly scaffold input interfaces for manipulating javascript objects
9
+ at runtime.
10
+
11
+ ## Installation
12
+
13
+ ### NPM
14
+
15
+ `npm -i tweak-ui`
16
+
17
+ ### CDN
18
+
19
+ ```html
20
+ <style link="https://unpkg.com/tweak-ui@x.x.x/dist/tweakui.min.css"></style>
21
+ <script src="https://unpkg.com/tweak-ui@x.x.x/dist/tweakui.umd.min.js"></script>
22
+ ```
23
+
24
+ ## Alternatives
25
+
26
+ * [dat.gui](https://github.com/dataarts/dat.gui)
27
+ * [controlkit.js](https://github.com/automat/controlkit.js)
28
+ * [guify](https://github.com/colejd/guify)
29
+
30
+ [license-url]: ./LICENSE
31
+ [license-shield]: https://img.shields.io/npm/l/tweak-ui.svg
32
+ [version-shield]: https://img.shields.io/npm/v/tweak-ui.svg
@@ -1,163 +1,167 @@
1
- import { ComponentModel } from './core';
2
- import { AccordeonModel, AngleModel, ButtonModel, CheckboxModel, ContainerModel, ColorModel, ColorPickerModel, ContentModel, GroupModel, ImageModel, NumberModel, PointModel, SelectModel, SphericalModel, TabsModel, TextModel, PositionModel } from './components';
3
- import { Child } from 'mithril';
4
- /**
5
- *
6
- * @public
7
- */
8
- export interface Removable {
9
- remove?: () => void;
10
- }
11
- /**
12
- * Union type of all build in models
13
- * @public
14
- */
15
- export declare type BuildInComponent = AccordeonModel | AngleModel | ButtonModel | CheckboxModel | ColorModel | ColorPickerModel | ContainerModel | ContentModel | GroupModel | ImageModel | NumberModel | PointModel | SelectModel | SphericalModel | TabsModel | TextModel | PositionModel;
16
- /**
17
- * @public
18
- */
19
- export declare type BuilderFn = (b: Builder) => void;
20
- /**
21
- * @public
22
- */
23
- export declare type TabsBuilderFn = (b: TabsBuilder) => void;
24
- /**
25
- * @public
26
- */
27
- export declare type AccordeonBuilderFn = (b: AccordeonBuilder) => void;
28
- /**
29
- * @public
30
- */
31
- export interface TabsBuilder {
32
- group(label: string, builder: BuilderFn): GroupModel & Removable;
33
- }
34
- /**
35
- * @public
36
- */
37
- export interface AccordeonBuilder {
38
- /**
39
- * Adds a control group
40
- *
41
- * @param title - The group label
42
- * @param builder - A callback allowing to build sub controls
43
- */
44
- group(title: string, builder: BuilderFn): GroupModel & Removable;
45
- /**
46
- * Adds a control group
47
- *
48
- * @param title - The group label
49
- * @param opts - Additional control options
50
- * @param builder - A callback allowing to build sub controls
51
- */
52
- group(title: string, opts: Partial<GroupModel>, builder?: BuilderFn): GroupModel & Removable;
53
- group(title: string, builder: BuilderFn): GroupModel & Removable;
54
- }
55
- /**
56
- *
57
- * @public
58
- */
59
- export declare class Builder {
60
- /**
61
- * Collection of created controls
62
- */
63
- controls: ComponentModel[];
64
- group(builder: BuilderFn): GroupModel & Removable;
65
- group(opts: Partial<GroupModel>): GroupModel & Removable;
66
- group(opts: Partial<GroupModel>, builder: BuilderFn): GroupModel & Removable;
67
- group(label: string, builder: BuilderFn): GroupModel & Removable;
68
- group(label: string, opts: Partial<GroupModel>): GroupModel & Removable;
69
- group(label: string, opts: Partial<GroupModel>, builder: BuilderFn): GroupModel & Removable;
70
- collapsible(builder: BuilderFn): GroupModel & Removable;
71
- collapsible(opts: Partial<GroupModel>): GroupModel & Removable;
72
- collapsible(opts: Partial<GroupModel>, builder: BuilderFn): GroupModel & Removable;
73
- collapsible(label: string, builder: BuilderFn): GroupModel & Removable;
74
- collapsible(label: string, opts: Partial<GroupModel>): GroupModel & Removable;
75
- collapsible(label: string, opts: Partial<GroupModel>, builder: BuilderFn): GroupModel & Removable;
76
- container(builder: BuilderFn): ContainerModel & Removable;
77
- container(opts: Partial<ContainerModel>): ContainerModel & Removable;
78
- container(opts: Partial<ContainerModel>, builder: BuilderFn): ContainerModel & Removable;
79
- container(label: string, builder: BuilderFn): ContainerModel & Removable;
80
- container(label: string, opts: Partial<ContainerModel>): ContainerModel & Removable;
81
- container(label: string, opts: Partial<ContainerModel>, builder: BuilderFn): ContainerModel & Removable;
82
- tabs(builder: TabsBuilderFn): TabsModel & Removable;
83
- tabs(opts: Partial<TabsModel>): TabsModel & Removable;
84
- tabs(opts: Partial<TabsModel>, builder: TabsBuilderFn): TabsModel & Removable;
85
- tabs(label: string, builder: TabsBuilderFn): TabsModel & Removable;
86
- tabs(label: string, opts: Partial<TabsModel>): TabsModel & Removable;
87
- tabs(label: string, opts: Partial<TabsModel>, builder: TabsBuilderFn): TabsModel & Removable;
88
- accordion(builder: AccordeonBuilderFn): AccordeonModel & Removable;
89
- accordion(opts: Partial<AccordeonModel>): AccordeonModel & Removable;
90
- accordion(opts: Partial<AccordeonModel>, builder: AccordeonBuilderFn): AccordeonModel & Removable;
91
- accordion(label: string, builder: AccordeonBuilderFn): AccordeonModel & Removable;
92
- accordion(label: string, opts: Partial<AccordeonModel>): AccordeonModel & Removable;
93
- accordion(label: string, opts: Partial<AccordeonModel>, builder: AccordeonBuilderFn): AccordeonModel & Removable;
94
- checkbox(opts: Partial<CheckboxModel>): CheckboxModel;
95
- checkbox<T>(target: T, property: keyof T): CheckboxModel<T>;
96
- checkbox<T>(target: T, property: keyof T, opts: Partial<CheckboxModel<T>>): CheckboxModel<T>;
97
- text(opts: Partial<TextModel>): TextModel;
98
- text<T>(target: T, property: keyof T): TextModel<T>;
99
- text<T>(target: T, property: keyof T, opts: Partial<TextModel<T>>): TextModel<T>;
100
- number(opts: Partial<NumberModel>): NumberModel;
101
- number<T>(target: T, property: keyof T): NumberModel<T>;
102
- number<T>(target: T, property: keyof T, opts: Partial<NumberModel<T>>): NumberModel<T>;
103
- slider(opts: Partial<NumberModel>): NumberModel;
104
- slider<T>(target: T, property: keyof T): NumberModel<T>;
105
- slider<T>(target: T, property: keyof T, opts: Partial<NumberModel<T>>): NumberModel<T>;
106
- position(opts: Partial<PositionModel>): PositionModel;
107
- position<T>(target: T, property: keyof T): PositionModel<T>;
108
- position<T>(target: T, property: keyof T, opts: Partial<PositionModel<T>>): PositionModel<T>;
109
- select(opts: Partial<SelectModel>): SelectModel;
110
- select<T>(target: T, property: keyof T): SelectModel<T>;
111
- select<T>(target: T, property: keyof T, opts: Partial<SelectModel<T>>): SelectModel<T>;
112
- color(opts: Partial<ColorModel>): ColorModel;
113
- color<T>(target: T, property: keyof T): ColorModel<T>;
114
- color<T>(target: T, property: keyof T, opts: Partial<ColorModel<T>>): ColorModel<T>;
115
- colorPicker(opts: Partial<ColorPickerModel>): ColorPickerModel;
116
- colorPicker<T>(target: T, property: keyof T): ColorPickerModel<T>;
117
- colorPicker<T>(target: T, property: keyof T, opts: Partial<ColorPickerModel<T>>): ColorPickerModel<T>;
118
- point(opts: Partial<PointModel>): PointModel;
119
- point<T>(target: T, property: keyof T): PointModel<T>;
120
- point<T>(target: T, property: keyof T, opts: Partial<PointModel<T>>): PointModel<T>;
121
- spherical(opts: Partial<SphericalModel>): SphericalModel;
122
- spherical<T>(target: T, property: keyof T): SphericalModel<T>;
123
- spherical<T>(target: T, property: keyof T, opts: Partial<SphericalModel<T>>): SphericalModel<T>;
124
- angle(opts: Partial<AngleModel>): AngleModel;
125
- angle<T>(target: T, property: keyof T): AngleModel<T>;
126
- angle<T>(target: T, property: keyof T, opts: Partial<AngleModel<T>>): AngleModel<T>;
127
- /**
128
- * Adds a button control
129
- *
130
- * @param text - The button text
131
- * @param opts - Additional options for the control
132
- */
133
- button(text: string, opts?: Partial<ButtonModel>): ButtonModel & Removable;
134
- /**
135
- * Adds an image control
136
- *
137
- * @param label - The control label
138
- * @param opts - Additional options for the control
139
- */
140
- image(opts: Partial<ImageModel>): ImageModel & Removable;
141
- image(label: string, opts: Partial<ImageModel>): ImageModel & Removable;
142
- /**
143
- * Adds a description text
144
- *
145
- * @param label - The control label
146
- * @param text - The text message
147
- * @param opts - Additional options for the control
148
- */
149
- content(label: string, content: Child, opts?: Partial<ContentModel>): ContentModel & Removable;
150
- /**
151
- * Adds a build in control
152
- *
153
- * @param def - The control definition
154
- */
155
- add<T extends BuildInComponent>(def: T): T & Removable;
156
- /**
157
- * Adds a control
158
- *
159
- * @param def - The control definition
160
- */
161
- add<T extends ComponentModel>(def: T): T & Removable;
162
- }
1
+ import { ComponentModel } from './core';
2
+ import { AccordeonModel, AngleModel, ButtonModel, CheckboxModel, ContainerModel, ColorModel, ColorPickerModel, ContentModel, GroupModel, ImageModel, NumberModel, PointModel, SelectModel, SphericalModel, TabsModel, TextModel, PositionModel } from './components';
3
+ import { Child } from 'mithril';
4
+ /**
5
+ *
6
+ * @public
7
+ */
8
+ export interface Removable {
9
+ remove?: () => void;
10
+ }
11
+ /**
12
+ * Union type of all build in models
13
+ * @public
14
+ */
15
+ export type BuildInComponent = AccordeonModel | AngleModel | ButtonModel | CheckboxModel | ColorModel | ColorPickerModel | ContainerModel | ContentModel | GroupModel | ImageModel | NumberModel | PointModel | SelectModel | SphericalModel | TabsModel | TextModel | PositionModel;
16
+ /**
17
+ * @public
18
+ */
19
+ export type BuilderFn = (b: Builder) => void;
20
+ /**
21
+ * @public
22
+ */
23
+ export type TabsBuilderFn = (b: TabsBuilder) => void;
24
+ /**
25
+ * @public
26
+ */
27
+ export type AccordeonBuilderFn = (b: AccordeonBuilder) => void;
28
+ /**
29
+ * @public
30
+ */
31
+ export interface TabsBuilder {
32
+ group(label: string, builder: BuilderFn): GroupModel & Removable;
33
+ }
34
+ /**
35
+ * @public
36
+ */
37
+ export interface AccordeonBuilder {
38
+ /**
39
+ * Adds a control group
40
+ *
41
+ * @param title - The group label
42
+ * @param builder - A callback allowing to build sub controls
43
+ */
44
+ group(title: string, builder: BuilderFn): GroupModel & Removable;
45
+ /**
46
+ * Adds a control group
47
+ *
48
+ * @param title - The group label
49
+ * @param opts - Additional control options
50
+ * @param builder - A callback allowing to build sub controls
51
+ */
52
+ group(title: string, opts: Partial<GroupModel>, builder?: BuilderFn): GroupModel & Removable;
53
+ group(title: string, builder: BuilderFn): GroupModel & Removable;
54
+ }
55
+ /**
56
+ *
57
+ * @public
58
+ */
59
+ export declare class Builder {
60
+ /**
61
+ * Collection of created controls
62
+ */
63
+ controls: ComponentModel[];
64
+ group(builder: BuilderFn): GroupModel & Removable;
65
+ group(opts: Partial<GroupModel>): GroupModel & Removable;
66
+ group(opts: Partial<GroupModel>, builder: BuilderFn): GroupModel & Removable;
67
+ group(label: string, builder: BuilderFn): GroupModel & Removable;
68
+ group(label: string, opts: Partial<GroupModel>): GroupModel & Removable;
69
+ group(label: string, opts: Partial<GroupModel>, builder: BuilderFn): GroupModel & Removable;
70
+ collapsible(builder: BuilderFn): GroupModel & Removable;
71
+ collapsible(opts: Partial<GroupModel>): GroupModel & Removable;
72
+ collapsible(opts: Partial<GroupModel>, builder: BuilderFn): GroupModel & Removable;
73
+ collapsible(label: string, builder: BuilderFn): GroupModel & Removable;
74
+ collapsible(label: string, opts: Partial<GroupModel>): GroupModel & Removable;
75
+ collapsible(label: string, opts: Partial<GroupModel>, builder: BuilderFn): GroupModel & Removable;
76
+ container(builder: BuilderFn): ContainerModel & Removable;
77
+ container(opts: Partial<ContainerModel>): ContainerModel & Removable;
78
+ container(opts: Partial<ContainerModel>, builder: BuilderFn): ContainerModel & Removable;
79
+ container(label: string, builder: BuilderFn): ContainerModel & Removable;
80
+ container(label: string, opts: Partial<ContainerModel>): ContainerModel & Removable;
81
+ container(label: string, opts: Partial<ContainerModel>, builder: BuilderFn): ContainerModel & Removable;
82
+ tabs(builder: TabsBuilderFn): TabsModel & Removable;
83
+ tabs(opts: Partial<TabsModel>): TabsModel & Removable;
84
+ tabs(opts: Partial<TabsModel>, builder: TabsBuilderFn): TabsModel & Removable;
85
+ tabs(label: string, builder: TabsBuilderFn): TabsModel & Removable;
86
+ tabs(label: string, opts: Partial<TabsModel>): TabsModel & Removable;
87
+ tabs(label: string, opts: Partial<TabsModel>, builder: TabsBuilderFn): TabsModel & Removable;
88
+ accordion(builder: AccordeonBuilderFn): AccordeonModel & Removable;
89
+ accordion(opts: Partial<AccordeonModel>): AccordeonModel & Removable;
90
+ accordion(opts: Partial<AccordeonModel>, builder: AccordeonBuilderFn): AccordeonModel & Removable;
91
+ accordion(label: string, builder: AccordeonBuilderFn): AccordeonModel & Removable;
92
+ accordion(label: string, opts: Partial<AccordeonModel>): AccordeonModel & Removable;
93
+ accordion(label: string, opts: Partial<AccordeonModel>, builder: AccordeonBuilderFn): AccordeonModel & Removable;
94
+ checkbox<T>(opts: Partial<CheckboxModel<T>>): CheckboxModel<T>;
95
+ checkbox<T>(target: T, property: keyof T): CheckboxModel<T>;
96
+ checkbox<T>(target: T, property: keyof T, opts: Partial<CheckboxModel<T>>): CheckboxModel<T>;
97
+ text<T>(opts: Partial<TextModel<T>>): TextModel<T>;
98
+ text<T>(target: T, property: keyof T): TextModel<T>;
99
+ text<T>(target: T, property: keyof T, opts: Partial<TextModel<T>>): TextModel<T>;
100
+ number<T>(opts: Partial<NumberModel<T>>): NumberModel<T>;
101
+ number<T>(target: T, property: keyof T): NumberModel<T>;
102
+ number<T>(target: T, property: keyof T, opts: Partial<NumberModel<T>>): NumberModel<T>;
103
+ slider<T>(opts: Partial<NumberModel<T>>): NumberModel<T>;
104
+ slider<T>(target: T, property: keyof T): NumberModel<T>;
105
+ slider<T>(target: T, property: keyof T, opts: Partial<NumberModel<T>>): NumberModel<T>;
106
+ position<T>(opts: Partial<PositionModel<T>>): PositionModel<T>;
107
+ position<T>(target: T, property: keyof T): PositionModel<T>;
108
+ position<T>(target: T, property: keyof T, opts: Partial<PositionModel<T>>): PositionModel<T>;
109
+ select<T>(opts: Partial<SelectModel<T>>): SelectModel<T>;
110
+ select<T>(target: T, property: keyof T): SelectModel<T>;
111
+ select<T>(target: T, property: keyof T, opts: Partial<SelectModel<T>>): SelectModel<T>;
112
+ color<T>(opts: Partial<ColorModel<T>>): ColorModel<T>;
113
+ color<T>(target: T, property: keyof T): ColorModel<T>;
114
+ color<T>(target: T, property: keyof T, opts: Partial<ColorModel<T>>): ColorModel<T>;
115
+ colorPicker<T>(opts: Partial<ColorPickerModel<T>>): ColorPickerModel<T>;
116
+ colorPicker<T>(target: T, property: keyof T): ColorPickerModel<T>;
117
+ colorPicker<T>(target: T, property: keyof T, opts: Partial<ColorPickerModel<T>>): ColorPickerModel<T>;
118
+ point<T>(opts: Partial<PointModel<T>>): PointModel<T>;
119
+ point<T>(target: T, property: keyof T): PointModel<T>;
120
+ point<T>(target: T, property: keyof T, opts: Partial<PointModel<T>>): PointModel<T>;
121
+ spherical<T>(opts: Partial<SphericalModel<T>>): SphericalModel<T>;
122
+ spherical<T>(target: T, property: keyof T): SphericalModel<T>;
123
+ spherical<T>(target: T, property: keyof T, opts: Partial<SphericalModel<T>>): SphericalModel<T>;
124
+ angle<T>(opts: Partial<AngleModel<T>>): AngleModel<T>;
125
+ angle<T>(target: T, property: keyof T): AngleModel<T>;
126
+ angle<T>(target: T, property: keyof T, opts: Partial<AngleModel<T>>): AngleModel<T>;
127
+ object<T>(label: string, target: T, config?: ObjectConfig<T>): GroupModel & Removable;
128
+ /**
129
+ * Adds a button control
130
+ *
131
+ * @param text - The button text
132
+ * @param opts - Additional options for the control
133
+ */
134
+ button(text: string, opts?: Partial<ButtonModel>): ButtonModel & Removable;
135
+ /**
136
+ * Adds an image control
137
+ *
138
+ * @param label - The control label
139
+ * @param opts - Additional options for the control
140
+ */
141
+ image(opts: Partial<ImageModel>): ImageModel & Removable;
142
+ image(label: string, opts: Partial<ImageModel>): ImageModel & Removable;
143
+ /**
144
+ * Adds a description text
145
+ *
146
+ * @param label - The control label
147
+ * @param text - The text message
148
+ * @param opts - Additional options for the control
149
+ */
150
+ content(label: string, content: Child, opts?: Partial<ContentModel>): ContentModel & Removable;
151
+ /**
152
+ * Adds a build in control
153
+ *
154
+ * @param def - The control definition
155
+ */
156
+ add<T extends BuildInComponent>(def: T): T & Removable;
157
+ /**
158
+ * Adds a control
159
+ *
160
+ * @param def - The control definition
161
+ */
162
+ add<T extends ComponentModel>(def: T): T & Removable;
163
+ }
164
+ export type ObjectConfig<T> = {
165
+ [K in keyof T]?: TextModel<T> | NumberModel<T> | CheckboxModel<T> | SelectModel<T> | ColorModel<T> | ColorPickerModel<T> | PointModel<T> | SphericalModel<T> | AngleModel<T>;
166
+ };
163
167
  //# sourceMappingURL=builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/lib/builder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAoC,MAAM,QAAQ,CAAA;AAEzE,OAAO,EACL,cAAc,EACd,UAAU,EACV,WAAW,EACX,aAAa,EACb,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,cAAc,EACd,SAAS,EACT,SAAS,EACT,aAAa,EACd,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,KAAK,EAAE,MAAM,SAA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