tweak-ui 0.5.0 → 0.8.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 (237) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/lib/builder.d.ts +76 -140
  4. package/dist/lib/builder.d.ts.map +1 -1
  5. package/dist/lib/color/adapter.d.ts +7 -0
  6. package/dist/lib/color/adapter.d.ts.map +1 -0
  7. package/dist/lib/color/array-format.d.ts +9 -0
  8. package/dist/lib/color/array-format.d.ts.map +1 -0
  9. package/dist/lib/color/converter.d.ts.map +1 -0
  10. package/dist/lib/color/css-string-format.d.ts +8 -0
  11. package/dist/lib/color/css-string-format.d.ts.map +1 -0
  12. package/dist/lib/color/formatter.d.ts +9 -0
  13. package/dist/lib/color/formatter.d.ts.map +1 -0
  14. package/dist/lib/color/hex-string-format.d.ts +9 -0
  15. package/dist/lib/color/hex-string-format.d.ts.map +1 -0
  16. package/dist/lib/color/index.d.ts.map +1 -0
  17. package/dist/lib/color/number-format.d.ts +9 -0
  18. package/dist/lib/color/number-format.d.ts.map +1 -0
  19. package/dist/lib/{color-formats → color}/object-format.d.ts +4 -4
  20. package/dist/lib/color/object-format.d.ts.map +1 -0
  21. package/dist/lib/{color-formats → color}/types.d.ts +15 -9
  22. package/dist/lib/color/types.d.ts.map +1 -0
  23. package/dist/lib/components/container/bar.d.ts +28 -0
  24. package/dist/lib/components/container/bar.d.ts.map +1 -0
  25. package/dist/lib/components/container/dialog.d.ts +14 -0
  26. package/dist/lib/components/container/dialog.d.ts.map +1 -0
  27. package/dist/lib/components/container/grid.d.ts +22 -0
  28. package/dist/lib/components/container/grid.d.ts.map +1 -0
  29. package/dist/lib/components/container/group.d.ts +55 -0
  30. package/dist/lib/components/container/group.d.ts.map +1 -0
  31. package/dist/lib/components/container/index.d.ts +10 -0
  32. package/dist/lib/components/container/index.d.ts.map +1 -0
  33. package/dist/lib/components/container/list.d.ts +25 -0
  34. package/dist/lib/components/container/list.d.ts.map +1 -0
  35. package/dist/lib/components/container/section.d.ts +28 -0
  36. package/dist/lib/components/container/section.d.ts.map +1 -0
  37. package/dist/lib/components/container/split.d.ts +40 -0
  38. package/dist/lib/components/container/split.d.ts.map +1 -0
  39. package/dist/lib/components/container/tabs.d.ts +23 -0
  40. package/dist/lib/components/container/tabs.d.ts.map +1 -0
  41. package/dist/lib/components/container/tree.d.ts +25 -0
  42. package/dist/lib/components/container/tree.d.ts.map +1 -0
  43. package/dist/lib/components/controls/angle.d.ts +29 -33
  44. package/dist/lib/components/controls/angle.d.ts.map +1 -1
  45. package/dist/lib/components/controls/bitmask.d.ts +41 -0
  46. package/dist/lib/components/controls/bitmask.d.ts.map +1 -0
  47. package/dist/lib/components/controls/bool.d.ts +52 -0
  48. package/dist/lib/components/controls/bool.d.ts.map +1 -0
  49. package/dist/lib/components/controls/color-picker.d.ts +12 -27
  50. package/dist/lib/components/controls/color-picker.d.ts.map +1 -1
  51. package/dist/lib/components/controls/color.d.ts +12 -26
  52. package/dist/lib/components/controls/color.d.ts.map +1 -1
  53. package/dist/lib/components/controls/index.d.ts +9 -5
  54. package/dist/lib/components/controls/index.d.ts.map +1 -1
  55. package/dist/lib/components/controls/input.d.ts +44 -0
  56. package/dist/lib/components/controls/input.d.ts.map +1 -0
  57. package/dist/lib/components/controls/matrix.d.ts +58 -0
  58. package/dist/lib/components/controls/matrix.d.ts.map +1 -0
  59. package/dist/lib/components/controls/point.d.ts +10 -16
  60. package/dist/lib/components/controls/point.d.ts.map +1 -1
  61. package/dist/lib/components/controls/poll.d.ts +12 -0
  62. package/dist/lib/components/controls/poll.d.ts.map +1 -0
  63. package/dist/lib/components/controls/scalar.d.ts +67 -0
  64. package/dist/lib/components/controls/scalar.d.ts.map +1 -0
  65. package/dist/lib/components/controls/select.d.ts +8 -14
  66. package/dist/lib/components/controls/select.d.ts.map +1 -1
  67. package/dist/lib/components/controls/spherical.d.ts +18 -55
  68. package/dist/lib/components/controls/spherical.d.ts.map +1 -1
  69. package/dist/lib/components/controls/string.d.ts +46 -0
  70. package/dist/lib/components/controls/string.d.ts.map +1 -0
  71. package/dist/lib/components/controls/vector.d.ts +54 -0
  72. package/dist/lib/components/controls/vector.d.ts.map +1 -0
  73. package/dist/lib/components/elements/button.d.ts +36 -0
  74. package/dist/lib/components/elements/button.d.ts.map +1 -0
  75. package/dist/lib/components/elements/divider.d.ts +4 -0
  76. package/dist/lib/components/elements/divider.d.ts.map +1 -0
  77. package/dist/lib/components/elements/graph.d.ts +8 -0
  78. package/dist/lib/components/elements/graph.d.ts.map +1 -0
  79. package/dist/lib/components/elements/image.d.ts +33 -0
  80. package/dist/lib/components/elements/image.d.ts.map +1 -0
  81. package/dist/lib/components/elements/index.d.ts +6 -0
  82. package/dist/lib/components/elements/index.d.ts.map +1 -0
  83. package/dist/lib/components/elements/widget.d.ts +27 -0
  84. package/dist/lib/components/elements/widget.d.ts.map +1 -0
  85. package/dist/lib/components/index.d.ts +2 -4
  86. package/dist/lib/components/index.d.ts.map +1 -1
  87. package/dist/lib/core/control.d.ts +20 -0
  88. package/dist/lib/core/control.d.ts.map +1 -0
  89. package/dist/lib/core/index.d.ts +1 -2
  90. package/dist/lib/core/index.d.ts.map +1 -1
  91. package/dist/lib/core/render.d.ts +7 -9
  92. package/dist/lib/core/render.d.ts.map +1 -1
  93. package/dist/lib/core/types.d.ts +46 -60
  94. package/dist/lib/core/types.d.ts.map +1 -1
  95. package/dist/lib/core/utils.d.ts +18 -33
  96. package/dist/lib/core/utils.d.ts.map +1 -1
  97. package/dist/lib/index.d.ts +2 -2
  98. package/dist/lib/index.d.ts.map +1 -1
  99. package/dist/lib/mount.d.ts +6 -16
  100. package/dist/lib/mount.d.ts.map +1 -1
  101. package/dist/lib/stats/index.d.ts +2 -0
  102. package/dist/lib/stats/index.d.ts.map +1 -0
  103. package/dist/lib/stats/sampler.d.ts +66 -0
  104. package/dist/lib/stats/sampler.d.ts.map +1 -0
  105. package/dist/lib/stats/stats-renderer.d.ts +16 -0
  106. package/dist/lib/stats/stats-renderer.d.ts.map +1 -0
  107. package/dist/style.css +1 -0
  108. package/dist/style.d.ts +4 -0
  109. package/dist/tweak-ui.module.js +2946 -2738
  110. package/dist/tweak-ui.module.js.map +1 -1
  111. package/dist/tweak-ui.umd.js +33 -2
  112. package/dist/tweak-ui.umd.js.map +1 -1
  113. package/package.json +23 -20
  114. package/dist/lib/builder.js +0 -250
  115. package/dist/lib/builder.js.map +0 -1
  116. package/dist/lib/color-formats/array-format.d.ts +0 -9
  117. package/dist/lib/color-formats/array-format.d.ts.map +0 -1
  118. package/dist/lib/color-formats/array-format.js +0 -18
  119. package/dist/lib/color-formats/array-format.js.map +0 -1
  120. package/dist/lib/color-formats/converter.d.ts.map +0 -1
  121. package/dist/lib/color-formats/converter.js +0 -85
  122. package/dist/lib/color-formats/converter.js.map +0 -1
  123. package/dist/lib/color-formats/css-string-format.d.ts +0 -8
  124. package/dist/lib/color-formats/css-string-format.d.ts.map +0 -1
  125. package/dist/lib/color-formats/css-string-format.js +0 -28
  126. package/dist/lib/color-formats/css-string-format.js.map +0 -1
  127. package/dist/lib/color-formats/formatter.d.ts +0 -9
  128. package/dist/lib/color-formats/formatter.d.ts.map +0 -1
  129. package/dist/lib/color-formats/formatter.js +0 -35
  130. package/dist/lib/color-formats/formatter.js.map +0 -1
  131. package/dist/lib/color-formats/hex-string-format.d.ts +0 -8
  132. package/dist/lib/color-formats/hex-string-format.d.ts.map +0 -1
  133. package/dist/lib/color-formats/hex-string-format.js +0 -28
  134. package/dist/lib/color-formats/hex-string-format.js.map +0 -1
  135. package/dist/lib/color-formats/index.d.ts.map +0 -1
  136. package/dist/lib/color-formats/index.js +0 -4
  137. package/dist/lib/color-formats/index.js.map +0 -1
  138. package/dist/lib/color-formats/number-format.d.ts +0 -9
  139. package/dist/lib/color-formats/number-format.d.ts.map +0 -1
  140. package/dist/lib/color-formats/number-format.js +0 -23
  141. package/dist/lib/color-formats/number-format.js.map +0 -1
  142. package/dist/lib/color-formats/object-format.d.ts.map +0 -1
  143. package/dist/lib/color-formats/object-format.js +0 -23
  144. package/dist/lib/color-formats/object-format.js.map +0 -1
  145. package/dist/lib/color-formats/types.d.ts.map +0 -1
  146. package/dist/lib/color-formats/types.js +0 -2
  147. package/dist/lib/color-formats/types.js.map +0 -1
  148. package/dist/lib/components/button.d.ts +0 -29
  149. package/dist/lib/components/button.d.ts.map +0 -1
  150. package/dist/lib/components/button.js +0 -15
  151. package/dist/lib/components/button.js.map +0 -1
  152. package/dist/lib/components/content.d.ts +0 -22
  153. package/dist/lib/components/content.d.ts.map +0 -1
  154. package/dist/lib/components/content.js +0 -10
  155. package/dist/lib/components/content.js.map +0 -1
  156. package/dist/lib/components/controls/angle.js +0 -201
  157. package/dist/lib/components/controls/angle.js.map +0 -1
  158. package/dist/lib/components/controls/checkbox.d.ts +0 -29
  159. package/dist/lib/components/controls/checkbox.d.ts.map +0 -1
  160. package/dist/lib/components/controls/checkbox.js +0 -31
  161. package/dist/lib/components/controls/checkbox.js.map +0 -1
  162. package/dist/lib/components/controls/color-picker.js +0 -267
  163. package/dist/lib/components/controls/color-picker.js.map +0 -1
  164. package/dist/lib/components/controls/color.js +0 -77
  165. package/dist/lib/components/controls/color.js.map +0 -1
  166. package/dist/lib/components/controls/index.js +0 -11
  167. package/dist/lib/components/controls/index.js.map +0 -1
  168. package/dist/lib/components/controls/number.d.ts +0 -48
  169. package/dist/lib/components/controls/number.d.ts.map +0 -1
  170. package/dist/lib/components/controls/number.js +0 -142
  171. package/dist/lib/components/controls/number.js.map +0 -1
  172. package/dist/lib/components/controls/point.js +0 -137
  173. package/dist/lib/components/controls/point.js.map +0 -1
  174. package/dist/lib/components/controls/position.d.ts +0 -56
  175. package/dist/lib/components/controls/position.d.ts.map +0 -1
  176. package/dist/lib/components/controls/position.js +0 -36
  177. package/dist/lib/components/controls/position.js.map +0 -1
  178. package/dist/lib/components/controls/select.js +0 -132
  179. package/dist/lib/components/controls/select.js.map +0 -1
  180. package/dist/lib/components/controls/spherical.js +0 -302
  181. package/dist/lib/components/controls/spherical.js.map +0 -1
  182. package/dist/lib/components/controls/text.d.ts +0 -36
  183. package/dist/lib/components/controls/text.d.ts.map +0 -1
  184. package/dist/lib/components/controls/text.js +0 -24
  185. package/dist/lib/components/controls/text.js.map +0 -1
  186. package/dist/lib/components/groups/accordion.d.ts +0 -22
  187. package/dist/lib/components/groups/accordion.d.ts.map +0 -1
  188. package/dist/lib/components/groups/accordion.js +0 -34
  189. package/dist/lib/components/groups/accordion.js.map +0 -1
  190. package/dist/lib/components/groups/container.d.ts +0 -25
  191. package/dist/lib/components/groups/container.d.ts.map +0 -1
  192. package/dist/lib/components/groups/container.js +0 -19
  193. package/dist/lib/components/groups/container.js.map +0 -1
  194. package/dist/lib/components/groups/group.d.ts +0 -49
  195. package/dist/lib/components/groups/group.d.ts.map +0 -1
  196. package/dist/lib/components/groups/group.js +0 -50
  197. package/dist/lib/components/groups/group.js.map +0 -1
  198. package/dist/lib/components/groups/index.d.ts +0 -5
  199. package/dist/lib/components/groups/index.d.ts.map +0 -1
  200. package/dist/lib/components/groups/index.js +0 -5
  201. package/dist/lib/components/groups/index.js.map +0 -1
  202. package/dist/lib/components/groups/tabs.d.ts +0 -22
  203. package/dist/lib/components/groups/tabs.d.ts.map +0 -1
  204. package/dist/lib/components/groups/tabs.js +0 -31
  205. package/dist/lib/components/groups/tabs.js.map +0 -1
  206. package/dist/lib/components/image.d.ts +0 -37
  207. package/dist/lib/components/image.d.ts.map +0 -1
  208. package/dist/lib/components/image.js +0 -46
  209. package/dist/lib/components/image.js.map +0 -1
  210. package/dist/lib/components/index.js +0 -6
  211. package/dist/lib/components/index.js.map +0 -1
  212. package/dist/lib/core/index.js +0 -5
  213. package/dist/lib/core/index.js.map +0 -1
  214. package/dist/lib/core/registry.d.ts +0 -18
  215. package/dist/lib/core/registry.d.ts.map +0 -1
  216. package/dist/lib/core/registry.js +0 -30
  217. package/dist/lib/core/registry.js.map +0 -1
  218. package/dist/lib/core/render.js +0 -19
  219. package/dist/lib/core/render.js.map +0 -1
  220. package/dist/lib/core/types.js +0 -2
  221. package/dist/lib/core/types.js.map +0 -1
  222. package/dist/lib/core/utils.js +0 -193
  223. package/dist/lib/core/utils.js.map +0 -1
  224. package/dist/lib/core/value-accessor.d.ts +0 -18
  225. package/dist/lib/core/value-accessor.d.ts.map +0 -1
  226. package/dist/lib/core/value-accessor.js +0 -52
  227. package/dist/lib/core/value-accessor.js.map +0 -1
  228. package/dist/lib/index.js +0 -29
  229. package/dist/lib/index.js.map +0 -1
  230. package/dist/lib/mount.js +0 -85
  231. package/dist/lib/mount.js.map +0 -1
  232. package/dist/tweak-ui.css +0 -648
  233. package/dist/tweak-ui.css.map +0 -1
  234. package/dist/tweak-ui.min.css +0 -1
  235. package/dist/tweak-ui.min.css.map +0 -1
  236. /package/dist/lib/{color-formats → color}/converter.d.ts +0 -0
  237. /package/dist/lib/{color-formats → color}/index.d.ts +0 -0
@@ -0,0 +1,2 @@
1
+ export * from './lib';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA;AACrB,cAAc,OAAO,CAAA"}
@@ -1,18 +1,6 @@
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;
1
+ import { Children } from 'mithril';
2
+ import { ButtonAttrs, GraphAttrs, GroupAttrs, ImageAttrs, TreeAttrs, WidgetAttrs } from './components';
3
+ import { Component, ComponentChildren, ComponentSchema, OmitIn, TweakableAttrs } from './core';
16
4
  /**
17
5
  * @public
18
6
  */
@@ -21,147 +9,95 @@ export type BuilderFn = (b: Builder) => void;
21
9
  * @public
22
10
  */
23
11
  export type TabsBuilderFn = (b: TabsBuilder) => void;
24
- /**
25
- * @public
26
- */
27
- export type AccordeonBuilderFn = (b: AccordeonBuilder) => void;
28
12
  /**
29
13
  * @public
30
14
  */
31
15
  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;
16
+ group(label: string, builder: BuilderFn): GroupAttrs;
54
17
  }
55
18
  /**
56
19
  *
57
20
  * @public
58
21
  */
59
22
  export declare class Builder {
23
+ static build(fn: BuilderFn): ComponentSchema;
24
+ schema: ComponentSchema;
25
+ close(): ComponentSchema;
26
+ group: GroupGenerator<GroupAttrs>;
27
+ flex: ComponentGenerator<import('./components').ListAttrs>;
28
+ grid: ComponentGenerator<import('./components').GridAttrs>;
29
+ tabs: ComponentGenerator<import('./components').TabsAttrs>;
30
+ split: ComponentGenerator<import('./components').SplitAttr>;
31
+ splitContent: ComponentGenerator<import('./components').SplitContentAttr>;
32
+ section: ComponentGenerator<import('mithril').Attributes>;
33
+ sectionHeader: ComponentGenerator<import('mithril').Attributes>;
34
+ sectionFooter: ComponentGenerator<import('mithril').Attributes>;
35
+ bar: ComponentGenerator<import('mithril').Attributes>;
36
+ barStart: ComponentGenerator<import('mithril').Attributes>;
37
+ barEnd: ComponentGenerator<import('mithril').Attributes>;
38
+ barContent: ComponentGenerator<import('mithril').Attributes>;
39
+ bool: FieldGenerator<import('./components').BooleanWidgetAttrs<unknown>>;
40
+ string: FieldGenerator<import('./components').StringWidgetAttrs<unknown>>;
41
+ scalar: FieldGenerator<import('./components').ScalarWidgetAttrs<unknown>>;
42
+ vector: FieldGenerator<import('./components').VectorWidgetAttrs<unknown>>;
43
+ matrix: FieldGenerator<import('./components').MatrixWidgetAttrs<unknown>>;
44
+ select: FieldGenerator<import('./components').SelectAttrs<unknown, any>>;
45
+ angle: FieldGenerator<import('./components').AngleWidgetAttrs<unknown>>;
46
+ bitmask: FieldGenerator<import('./components').BitmaskWidgetAttrs<unknown>>;
47
+ poll: FieldGenerator<import('./components').PollWidgetAttrs<unknown>>;
48
+ color: FieldGenerator<import('./components').ColorWidgetAttrs<unknown>>;
49
+ colorPicker: FieldGenerator<import('./components').ColorPickerWidgetAttrs<unknown>>;
50
+ boolInput: FieldGenerator<import('./components').BooleanInputAttrs<unknown>>;
51
+ stringInput: FieldGenerator<import('./components').StringInputAttrs<unknown>>;
52
+ scalarInput: FieldGenerator<import('./components').ScalarInputAttrs<unknown>>;
53
+ vectorInput: FieldGenerator<import('./components').VectorInputAttrs<unknown>>;
54
+ matrixInput: FieldGenerator<import('./components').MatrixInputAttrs<unknown>>;
55
+ selectInput: FieldGenerator<import('./components').SelectAttrs<unknown, any>>;
56
+ angleInput: FieldGenerator<import('./components').AngleInputAttrs<unknown>>;
57
+ bitmaskInput: FieldGenerator<import('./components').BitmaskInputAttrs<unknown>>;
58
+ pollInput: FieldGenerator<import('./components').PollWidgetAttrs<unknown>>;
59
+ colorInput: FieldGenerator<import('./components').ColorAttrs<unknown>>;
60
+ colorPickerInput: FieldGenerator<import('./components').ColorPickerAttrs<unknown>>;
61
+ point: FieldGenerator<import('./components').PointAttrs<unknown>>;
62
+ spherical: FieldGenerator<import('./components').SphericalAttrs<unknown>>;
63
+ button(text: string, opts?: ButtonAttrs): void;
64
+ image(opts: ImageAttrs): void;
65
+ divider(content?: Children): void;
66
+ tree<T>(opts: TreeAttrs<T>): void;
67
+ graph(opts: GraphAttrs): void;
68
+ widget(label: string, children?: ComponentChildren): void;
69
+ pre(label: string, children?: ComponentChildren): void;
60
70
  /**
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
71
+ * Adds a render function as a component
72
+ * This breaks out of the static builder schema and allows for dynamic content.
133
73
  */
134
- button(text: string, opts?: Partial<ButtonModel>): ButtonModel & Removable;
74
+ view(view: () => Children): void;
135
75
  /**
136
- * Adds an image control
137
- *
138
- * @param label - The control label
139
- * @param opts - Additional options for the control
76
+ * Adds a render function as a component
77
+ * This breaks out of the static builder schema and allows for dynamic content.
140
78
  */
141
- image(opts: Partial<ImageModel>): ImageModel & Removable;
142
- image(label: string, opts: Partial<ImageModel>): ImageModel & Removable;
79
+ control(attrs: WidgetAttrs, children?: ComponentChildren): void;
143
80
  /**
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
81
+ * Adds a component to the builder schema
149
82
  */
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;
83
+ add<Attrs extends Object>(component: Component<Attrs> | string, attributes?: Attrs, children?: ComponentChildren): void;
163
84
  }
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>;
85
+ export type GroupGenerator<T extends Object> = {
86
+ (builder: BuilderFn): void;
87
+ (opts: Partial<T>): void;
88
+ (opts: Partial<T>, builder: BuilderFn): void;
89
+ (label: string, builder: BuilderFn): void;
90
+ (label: string, opts: Partial<T>): void;
91
+ (label: string, opts: Partial<T>, builder: BuilderFn): void;
92
+ };
93
+ export type FieldGenerator<A extends TweakableAttrs<any, any>> = {
94
+ (opts: A): void;
95
+ <V, K extends keyof V>(target: V, property: K): void;
96
+ <V, K extends keyof V>(target: V, property: K, opts: OmitIn<A, 'value' | 'field'>): void;
97
+ };
98
+ export type ComponentGenerator<T extends Object> = {
99
+ (builder: BuilderFn): void;
100
+ (opts: Partial<T>): void;
101
+ (opts: Partial<T>, builder: BuilderFn): void;
166
102
  };
167
103
  //# 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,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AA;IACvC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAAA;CAC5D,CAAA;AAYD,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI;IAC/D,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAA;IACf,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAA;IACpD,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,IAAI,CAAA;CACzF,CAAA;AAWD,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,MAAM,IAAI;IACjD,CAAC,OAAO,EAAE,SAAS,GAAG,IAAI,CAAA;IAC1B,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;IACxB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAAA;CAC7C,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { ColorAdapter } from './types';
2
+ export declare const ColorVec3Adapter: ColorAdapter<{
3
+ x: number;
4
+ y: number;
5
+ z: number;
6
+ }>;
7
+ //# sourceMappingURL=adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/lib/color/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAiB9E,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { ColorAdapter, RGBA } from './types';
2
+ export declare class ArrayColorAdapter implements ColorAdapter<number[]> {
3
+ private components;
4
+ private normalized;
5
+ constructor(components: string[], normalized: boolean);
6
+ toControl(v: number[]): RGBA;
7
+ fromControl(rgba: RGBA): number[];
8
+ }
9
+ //# sourceMappingURL=array-format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array-format.d.ts","sourceRoot":"","sources":["../../../src/lib/color/array-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE5C,qBAAa,iBAAkB,YAAW,YAAY,CAAC,MAAM,EAAE,CAAC;IAE5D,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,UAAU;gBADV,UAAU,EAAE,MAAM,EAAE,EACpB,UAAU,EAAE,OAAO;IAItB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE;IASrB,WAAW,CAAC,IAAI,EAAE,IAAI;CAK9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../src/lib/color/converter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAyCrC;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAyBrC"}
@@ -0,0 +1,8 @@
1
+ import { ColorAdapter, RGBA } from './types';
2
+ export declare class CssColorAdapter implements ColorAdapter<string> {
3
+ private components;
4
+ constructor(components: string[]);
5
+ toControl(value: string): RGBA;
6
+ fromControl(rgba: RGBA): string;
7
+ }
8
+ //# sourceMappingURL=css-string-format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css-string-format.d.ts","sourceRoot":"","sources":["../../../src/lib/color/css-string-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE5C,qBAAa,eAAgB,YAAW,YAAY,CAAC,MAAM,CAAC;IAC1D,OAAO,CAAC,UAAU,CAAiC;gBAEhC,UAAU,EAAE,MAAM,EAAE;IAIhC,SAAS,CAAC,KAAK,EAAE,MAAM;IAavB,WAAW,CAAC,IAAI,EAAE,IAAI;CAY9B"}
@@ -0,0 +1,9 @@
1
+ import { ColorAdapter } from './types';
2
+ /**
3
+ * Gets a formatter implementation for the given format
4
+ *
5
+ * @public
6
+ * @param format - The format code
7
+ */
8
+ export declare function getColorAdapter(format?: string): ColorAdapter<any>;
9
+ //# sourceMappingURL=formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../../src/lib/color/formatter.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAItC;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAE,MAAgB,GAAG,YAAY,CAAC,GAAG,CAAC,CA6E3E"}
@@ -0,0 +1,9 @@
1
+ import { ColorAdapter, RGBA } from './types';
2
+ export declare class HexColorAdapter implements ColorAdapter<string> {
3
+ private components;
4
+ private prefix;
5
+ constructor(components: string[], prefix?: string);
6
+ toControl(value?: string): RGBA;
7
+ fromControl(rgba: RGBA): string;
8
+ }
9
+ //# sourceMappingURL=hex-string-format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hex-string-format.d.ts","sourceRoot":"","sources":["../../../src/lib/color/hex-string-format.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE5C,qBAAa,eAAgB,YAAW,YAAY,CAAC,MAAM,CAAC;IAExD,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,MAAM;gBADN,UAAU,EAAE,MAAM,EAAE,EACpB,MAAM,SAAM;IAEf,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM;IAmBxB,WAAW,CAAC,IAAI,EAAE,IAAI;CAQ9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/color/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { ColorAdapter, RGBA } from './types';
2
+ export declare class NumberColorAdapter implements ColorAdapter<number> {
3
+ private components;
4
+ private componentsRev;
5
+ constructor(components: string[]);
6
+ toControl(v: number): RGBA;
7
+ fromControl(rgba: RGBA): number;
8
+ }
9
+ //# sourceMappingURL=number-format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number-format.d.ts","sourceRoot":"","sources":["../../../src/lib/color/number-format.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE5C,qBAAa,kBAAmB,YAAW,YAAY,CAAC,MAAM,CAAC;IAEjD,OAAO,CAAC,UAAU;IAD9B,OAAO,CAAC,aAAa,CAAU;gBACX,UAAU,EAAE,MAAM,EAAE;IAGjC,SAAS,CAAC,CAAC,EAAE,MAAM;IASnB,WAAW,CAAC,IAAI,EAAE,IAAI;CAM9B"}
@@ -1,14 +1,14 @@
1
- import { ColorFormatter, RGBA } from './types';
2
- export declare class ObjectColorFormat implements ColorFormatter<{
1
+ import { ColorAdapter, RGBA } from './types';
2
+ export declare class ObjectColorCodec implements ColorAdapter<{
3
3
  [key: string]: number;
4
4
  }> {
5
5
  private components;
6
6
  private normalized;
7
7
  constructor(components: string[], normalized: boolean);
8
- parse(v: {
8
+ toControl(v: {
9
9
  [key: string]: number;
10
10
  }): RGBA;
11
- format(rgba: RGBA): {
11
+ fromControl(rgba: RGBA): {
12
12
  [key: string]: number;
13
13
  };
14
14
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-format.d.ts","sourceRoot":"","sources":["../../../src/lib/color/object-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG5C,qBAAa,gBAAiB,YAAW,YAAY,CAAC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;IAE5E,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,UAAU;gBADV,UAAU,EAAE,MAAM,EAAE,EACpB,UAAU,EAAE,OAAO;IAItB,SAAS,CAAC,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;IAStC,WAAW,CAAC,IAAI,EAAE,IAAI;;;CAO9B"}
@@ -1,3 +1,4 @@
1
+ import { ControlAdapter } from '../core';
1
2
  /**
2
3
  * Describes a HSV color value
3
4
  * @public
@@ -85,18 +86,23 @@ export interface RGBA extends RGB {
85
86
  */
86
87
  a: number;
87
88
  }
88
- /**
89
- * An implementation to parse and format specific color format
90
- * @public
91
- */
92
- export interface ColorFormatter<T> {
89
+ export interface OKLCH {
90
+ /**
91
+ * The lightness component [0,1]
92
+ */
93
+ l: number;
93
94
  /**
94
- * Parses a color value and returns an RGBA object with all components normalized to [0:1]
95
+ * The chroma component [0,1]
95
96
  */
96
- parse: (v: T) => RGBA;
97
+ c: number;
97
98
  /**
98
- * Formats an RGBA color value into a target color format
99
+ * The hue component [0,1]
99
100
  */
100
- format: (rgba: RGBA) => T;
101
+ h: number;
102
+ /**
103
+ * The alpha component [0,1]
104
+ */
105
+ a: number;
101
106
  }
107
+ export type ColorAdapter<T> = ControlAdapter<T, RGBA>;
102
108
  //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/color/types.ts"],"names":[],"m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AAC,EAAE,IAAI,CAAC,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { Attributes, Children, FactoryComponent, Vnode } from 'mithril';
2
+ /**
3
+ * Bar component model
4
+ * @public
5
+ */
6
+ export type BarAttrs = Attributes & {
7
+ /**
8
+ * Custom CSS Style
9
+ */
10
+ style?: Partial<CSSStyleDeclaration>;
11
+ /**
12
+ * Start children
13
+ */
14
+ start?: Children;
15
+ /**
16
+ * End children
17
+ */
18
+ end?: Children;
19
+ };
20
+ export declare function uiBar<T>(attrs: Attributes, children?: Children): Vnode<Attributes>;
21
+ export declare function uiBarStart<T>(attrs: Attributes, children?: Children): Vnode<Attributes>;
22
+ export declare function uiBarEnd<T>(attrs: Attributes, children?: Children): Vnode<Attributes>;
23
+ export declare function uiBarContent<T>(attrs: Attributes, children?: Children): Vnode<Attributes>;
24
+ export declare const BarComponent: FactoryComponent<Attributes>;
25
+ export declare const BarStartComponent: FactoryComponent<Attributes>;
26
+ export declare const BarEndComponent: FactoryComponent<Attributes>;
27
+ export declare const BarContentComponent: FactoryComponent<Attributes>;
28
+ //# sourceMappingURL=bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bar.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/container/bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAgB,KAAK,EAAE,MAAM,SAAS,CAAA;AAErF;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAA;IAEhB;;OAEG;IACH,GAAG,CAAC,EAAE,QAAQ,CAAA;CACf,CAAA;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAElF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAEvF;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAErF;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAEzF;AAED,eAAO,MAAM,YAAY,EAAE,gBAAgB,CAAC,UAAU,CAUrD,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,UAAU,CAM1D,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,gBAAgB,CAAC,UAAU,CAMxD,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,gBAAgB,CAAC,UAAU,CAM5D,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { Attributes, Children, FactoryComponent, Vnode } from 'mithril';
2
+ /**
3
+ * Bar component model
4
+ * @public
5
+ */
6
+ export type DialogAttrs = Attributes & {
7
+ /**
8
+ * Custom CSS Style
9
+ */
10
+ style?: Partial<CSSStyleDeclaration>;
11
+ };
12
+ export declare function uiDialog<T>(attrs: DialogAttrs, children?: Children): Vnode<DialogAttrs>;
13
+ export declare const DialogComponent: FactoryComponent<DialogAttrs>;
14
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/container/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAgB,KAAK,EAAE,MAAM,SAAS,CAAA;AAGrF;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;CACrC,CAAA;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC,WAAW,CAAC,CAEvF;AAED,eAAO,MAAM,eAAe,EAAE,gBAAgB,CAAC,WAAW,CAezD,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { Children, FactoryComponent, Vnode } from 'mithril';
2
+ /**
3
+ * Grid component model
4
+ * @public
5
+ */
6
+ export type GridAttrs = {
7
+ /**
8
+ * Grit template columns specification, e.g. "1fr 2fr 1fr" or "3"
9
+ */
10
+ columns?: number | string;
11
+ /**
12
+ * Grit template rows specification
13
+ */
14
+ rows?: number | string;
15
+ /**
16
+ * Custom CSS Style
17
+ */
18
+ style?: Partial<CSSStyleDeclaration>;
19
+ };
20
+ export declare function uiGrid<T>(attrs: GridAttrs, children?: Children): Vnode<GridAttrs>;
21
+ export declare const GridComponent: FactoryComponent<GridAttrs>;
22
+ //# sourceMappingURL=grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/container/grid.ts"],"names":[],"mappings":"AAAA,OAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE9D;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;CACrC,CAAA;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC,CAEjF;AAED,eAAO,MAAM,aAAa,EAAE,gBAAgB,CAAC,SAAS,CAqBrD,CAAA"}
@@ -0,0 +1,55 @@
1
+ import { Child, Children, FactoryComponent, Vnode } from 'mithril';
2
+ import { ClassValue } from '../../core/utils';
3
+ /**
4
+ * Group component model
5
+ * @public
6
+ */
7
+ export type GroupAttrs = {
8
+ /**
9
+ * Group icon
10
+ */
11
+ icon?: Child;
12
+ /**
13
+ * Group title
14
+ */
15
+ title?: Child;
16
+ /**
17
+ * Group CSS Style
18
+ */
19
+ style?: Partial<CSSStyleDeclaration>;
20
+ /**
21
+ * Additional CSS class for the group element
22
+ */
23
+ class?: ClassValue;
24
+ /**
25
+ * Whether the child elements can be collapsed
26
+ */
27
+ collapsible?: boolean;
28
+ /**
29
+ * Whether the child elements are collapsed
30
+ */
31
+ collapsed?: boolean;
32
+ /**
33
+ * WHether the group is disabled. Disabled groups can not be expanded.
34
+ */
35
+ disabled?: boolean;
36
+ /**
37
+ * Adds an offset to the left side
38
+ */
39
+ inset?: boolean;
40
+ /**
41
+ * Is called when this Group has been collapsed or expanded
42
+ */
43
+ onToggle?: (node: Vnode<GroupAttrs>) => void;
44
+ /**
45
+ * Is called when this Group has been expanded
46
+ */
47
+ onExpand?: (node: Vnode<GroupAttrs>) => void;
48
+ /**
49
+ * Is called when this Group has been collapsed
50
+ */
51
+ onCollapse?: (node: Vnode<GroupAttrs>) => void;
52
+ };
53
+ export declare function uiGroup<T>(attrs: GroupAttrs, children?: Children): Vnode<GroupAttrs>;
54
+ export declare const GroupComponent: FactoryComponent<GroupAttrs>;
55
+ //# sourceMappingURL=group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/container/group.ts"],"names":[],"mappings":"AAAA,OAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AACrE,OAAO,EAAE,UAAU,EAA4B,MAAM,kBAAkB,CAAA;AAEvE;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAA;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAA;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,IAAI,CAAA;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,IAAI,CAAA;IAC5C;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,IAAI,CAAA;CAC/C,CAAA;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAEpF;AAED,eAAO,MAAM,cAAc,EAAE,gBAAgB,CAAC,UAAU,CAuDvD,CAAA"}
@@ -0,0 +1,10 @@
1
+ export * from './bar';
2
+ export * from './grid';
3
+ export * from './group';
4
+ export * from './list';
5
+ export * from './section';
6
+ export * from './split';
7
+ export * from './tabs';
8
+ export * from './tree';
9
+ export * from './dialog';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/container/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA"}