tweak-ui 0.5.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.assetsignore +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/builder.d.ts +78 -140
- package/dist/lib/builder.d.ts.map +1 -1
- package/dist/lib/color/adapter.d.ts +7 -0
- package/dist/lib/color/adapter.d.ts.map +1 -0
- package/dist/lib/color/array-format.d.ts +9 -0
- package/dist/lib/color/array-format.d.ts.map +1 -0
- package/dist/lib/color/converter.d.ts.map +1 -0
- package/dist/lib/color/css-string-format.d.ts +8 -0
- package/dist/lib/color/css-string-format.d.ts.map +1 -0
- package/dist/lib/color/formatter.d.ts +9 -0
- package/dist/lib/color/formatter.d.ts.map +1 -0
- package/dist/lib/color/hex-string-format.d.ts +9 -0
- package/dist/lib/color/hex-string-format.d.ts.map +1 -0
- package/dist/lib/color/index.d.ts.map +1 -0
- package/dist/lib/color/number-format.d.ts +9 -0
- package/dist/lib/color/number-format.d.ts.map +1 -0
- package/dist/lib/{color-formats → color}/object-format.d.ts +4 -4
- package/dist/lib/color/object-format.d.ts.map +1 -0
- package/dist/lib/{color-formats → color}/types.d.ts +15 -9
- package/dist/lib/color/types.d.ts.map +1 -0
- package/dist/lib/components/container/bar.d.ts +28 -0
- package/dist/lib/components/container/bar.d.ts.map +1 -0
- package/dist/lib/components/container/dialog.d.ts +14 -0
- package/dist/lib/components/container/dialog.d.ts.map +1 -0
- package/dist/lib/components/container/grid.d.ts +22 -0
- package/dist/lib/components/container/grid.d.ts.map +1 -0
- package/dist/lib/components/container/group.d.ts +55 -0
- package/dist/lib/components/container/group.d.ts.map +1 -0
- package/dist/lib/components/container/index.d.ts +10 -0
- package/dist/lib/components/container/index.d.ts.map +1 -0
- package/dist/lib/components/container/list.d.ts +25 -0
- package/dist/lib/components/container/list.d.ts.map +1 -0
- package/dist/lib/components/container/section.d.ts +28 -0
- package/dist/lib/components/container/section.d.ts.map +1 -0
- package/dist/lib/components/container/split.d.ts +40 -0
- package/dist/lib/components/container/split.d.ts.map +1 -0
- package/dist/lib/components/container/tabs.d.ts +23 -0
- package/dist/lib/components/container/tabs.d.ts.map +1 -0
- package/dist/lib/components/container/tree.d.ts +25 -0
- package/dist/lib/components/container/tree.d.ts.map +1 -0
- package/dist/lib/components/controls/angle.d.ts +29 -33
- package/dist/lib/components/controls/angle.d.ts.map +1 -1
- package/dist/lib/components/controls/bitmask.d.ts +41 -0
- package/dist/lib/components/controls/bitmask.d.ts.map +1 -0
- package/dist/lib/components/controls/bool.d.ts +52 -0
- package/dist/lib/components/controls/bool.d.ts.map +1 -0
- package/dist/lib/components/controls/color-picker.d.ts +12 -27
- package/dist/lib/components/controls/color-picker.d.ts.map +1 -1
- package/dist/lib/components/controls/color.d.ts +12 -26
- package/dist/lib/components/controls/color.d.ts.map +1 -1
- package/dist/lib/components/controls/index.d.ts +9 -5
- package/dist/lib/components/controls/index.d.ts.map +1 -1
- package/dist/lib/components/controls/input.d.ts +44 -0
- package/dist/lib/components/controls/input.d.ts.map +1 -0
- package/dist/lib/components/controls/matrix.d.ts +58 -0
- package/dist/lib/components/controls/matrix.d.ts.map +1 -0
- package/dist/lib/components/controls/point.d.ts +15 -16
- package/dist/lib/components/controls/point.d.ts.map +1 -1
- package/dist/lib/components/controls/poll.d.ts +12 -0
- package/dist/lib/components/controls/poll.d.ts.map +1 -0
- package/dist/lib/components/controls/scalar.d.ts +67 -0
- package/dist/lib/components/controls/scalar.d.ts.map +1 -0
- package/dist/lib/components/controls/select.d.ts +8 -14
- package/dist/lib/components/controls/select.d.ts.map +1 -1
- package/dist/lib/components/controls/spherical.d.ts +23 -55
- package/dist/lib/components/controls/spherical.d.ts.map +1 -1
- package/dist/lib/components/controls/string.d.ts +46 -0
- package/dist/lib/components/controls/string.d.ts.map +1 -0
- package/dist/lib/components/controls/vector.d.ts +54 -0
- package/dist/lib/components/controls/vector.d.ts.map +1 -0
- package/dist/lib/components/elements/button.d.ts +36 -0
- package/dist/lib/components/elements/button.d.ts.map +1 -0
- package/dist/lib/components/elements/divider.d.ts +4 -0
- package/dist/lib/components/elements/divider.d.ts.map +1 -0
- package/dist/lib/components/elements/graph.d.ts +8 -0
- package/dist/lib/components/elements/graph.d.ts.map +1 -0
- package/dist/lib/components/elements/image.d.ts +33 -0
- package/dist/lib/components/elements/image.d.ts.map +1 -0
- package/dist/lib/components/elements/index.d.ts +6 -0
- package/dist/lib/components/elements/index.d.ts.map +1 -0
- package/dist/lib/components/elements/widget.d.ts +31 -0
- package/dist/lib/components/elements/widget.d.ts.map +1 -0
- package/dist/lib/components/index.d.ts +2 -4
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/core/control.d.ts +20 -0
- package/dist/lib/core/control.d.ts.map +1 -0
- package/dist/lib/core/index.d.ts +1 -2
- package/dist/lib/core/index.d.ts.map +1 -1
- package/dist/lib/core/render.d.ts +7 -9
- package/dist/lib/core/render.d.ts.map +1 -1
- package/dist/lib/core/types.d.ts +46 -60
- package/dist/lib/core/types.d.ts.map +1 -1
- package/dist/lib/core/utils.d.ts +19 -33
- package/dist/lib/core/utils.d.ts.map +1 -1
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/mount.d.ts +6 -16
- package/dist/lib/mount.d.ts.map +1 -1
- package/dist/lib/stats/index.d.ts +2 -0
- package/dist/lib/stats/index.d.ts.map +1 -0
- package/dist/lib/stats/sampler.d.ts +66 -0
- package/dist/lib/stats/sampler.d.ts.map +1 -0
- package/dist/lib/stats/stats-renderer.d.ts +16 -0
- package/dist/lib/stats/stats-renderer.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/dist/style.d.ts +4 -0
- package/dist/tweak-ui.module.js +2959 -2738
- package/dist/tweak-ui.module.js.map +1 -1
- package/dist/tweak-ui.umd.js +33 -2
- package/dist/tweak-ui.umd.js.map +1 -1
- package/dist/wrangler.json +1 -0
- package/package.json +34 -23
- package/dist/lib/builder.js +0 -250
- package/dist/lib/builder.js.map +0 -1
- package/dist/lib/color-formats/array-format.d.ts +0 -9
- package/dist/lib/color-formats/array-format.d.ts.map +0 -1
- package/dist/lib/color-formats/array-format.js +0 -18
- package/dist/lib/color-formats/array-format.js.map +0 -1
- package/dist/lib/color-formats/converter.d.ts.map +0 -1
- package/dist/lib/color-formats/converter.js +0 -85
- package/dist/lib/color-formats/converter.js.map +0 -1
- package/dist/lib/color-formats/css-string-format.d.ts +0 -8
- package/dist/lib/color-formats/css-string-format.d.ts.map +0 -1
- package/dist/lib/color-formats/css-string-format.js +0 -28
- package/dist/lib/color-formats/css-string-format.js.map +0 -1
- package/dist/lib/color-formats/formatter.d.ts +0 -9
- package/dist/lib/color-formats/formatter.d.ts.map +0 -1
- package/dist/lib/color-formats/formatter.js +0 -35
- package/dist/lib/color-formats/formatter.js.map +0 -1
- package/dist/lib/color-formats/hex-string-format.d.ts +0 -8
- package/dist/lib/color-formats/hex-string-format.d.ts.map +0 -1
- package/dist/lib/color-formats/hex-string-format.js +0 -28
- package/dist/lib/color-formats/hex-string-format.js.map +0 -1
- package/dist/lib/color-formats/index.d.ts.map +0 -1
- package/dist/lib/color-formats/index.js +0 -4
- package/dist/lib/color-formats/index.js.map +0 -1
- package/dist/lib/color-formats/number-format.d.ts +0 -9
- package/dist/lib/color-formats/number-format.d.ts.map +0 -1
- package/dist/lib/color-formats/number-format.js +0 -23
- package/dist/lib/color-formats/number-format.js.map +0 -1
- package/dist/lib/color-formats/object-format.d.ts.map +0 -1
- package/dist/lib/color-formats/object-format.js +0 -23
- package/dist/lib/color-formats/object-format.js.map +0 -1
- package/dist/lib/color-formats/types.d.ts.map +0 -1
- package/dist/lib/color-formats/types.js +0 -2
- package/dist/lib/color-formats/types.js.map +0 -1
- package/dist/lib/components/button.d.ts +0 -29
- package/dist/lib/components/button.d.ts.map +0 -1
- package/dist/lib/components/button.js +0 -15
- package/dist/lib/components/button.js.map +0 -1
- package/dist/lib/components/content.d.ts +0 -22
- package/dist/lib/components/content.d.ts.map +0 -1
- package/dist/lib/components/content.js +0 -10
- package/dist/lib/components/content.js.map +0 -1
- package/dist/lib/components/controls/angle.js +0 -201
- package/dist/lib/components/controls/angle.js.map +0 -1
- package/dist/lib/components/controls/checkbox.d.ts +0 -29
- package/dist/lib/components/controls/checkbox.d.ts.map +0 -1
- package/dist/lib/components/controls/checkbox.js +0 -31
- package/dist/lib/components/controls/checkbox.js.map +0 -1
- package/dist/lib/components/controls/color-picker.js +0 -267
- package/dist/lib/components/controls/color-picker.js.map +0 -1
- package/dist/lib/components/controls/color.js +0 -77
- package/dist/lib/components/controls/color.js.map +0 -1
- package/dist/lib/components/controls/index.js +0 -11
- package/dist/lib/components/controls/index.js.map +0 -1
- package/dist/lib/components/controls/number.d.ts +0 -48
- package/dist/lib/components/controls/number.d.ts.map +0 -1
- package/dist/lib/components/controls/number.js +0 -142
- package/dist/lib/components/controls/number.js.map +0 -1
- package/dist/lib/components/controls/point.js +0 -137
- package/dist/lib/components/controls/point.js.map +0 -1
- package/dist/lib/components/controls/position.d.ts +0 -56
- package/dist/lib/components/controls/position.d.ts.map +0 -1
- package/dist/lib/components/controls/position.js +0 -36
- package/dist/lib/components/controls/position.js.map +0 -1
- package/dist/lib/components/controls/select.js +0 -132
- package/dist/lib/components/controls/select.js.map +0 -1
- package/dist/lib/components/controls/spherical.js +0 -302
- package/dist/lib/components/controls/spherical.js.map +0 -1
- package/dist/lib/components/controls/text.d.ts +0 -36
- package/dist/lib/components/controls/text.d.ts.map +0 -1
- package/dist/lib/components/controls/text.js +0 -24
- package/dist/lib/components/controls/text.js.map +0 -1
- package/dist/lib/components/groups/accordion.d.ts +0 -22
- package/dist/lib/components/groups/accordion.d.ts.map +0 -1
- package/dist/lib/components/groups/accordion.js +0 -34
- package/dist/lib/components/groups/accordion.js.map +0 -1
- package/dist/lib/components/groups/container.d.ts +0 -25
- package/dist/lib/components/groups/container.d.ts.map +0 -1
- package/dist/lib/components/groups/container.js +0 -19
- package/dist/lib/components/groups/container.js.map +0 -1
- package/dist/lib/components/groups/group.d.ts +0 -49
- package/dist/lib/components/groups/group.d.ts.map +0 -1
- package/dist/lib/components/groups/group.js +0 -50
- package/dist/lib/components/groups/group.js.map +0 -1
- package/dist/lib/components/groups/index.d.ts +0 -5
- package/dist/lib/components/groups/index.d.ts.map +0 -1
- package/dist/lib/components/groups/index.js +0 -5
- package/dist/lib/components/groups/index.js.map +0 -1
- package/dist/lib/components/groups/tabs.d.ts +0 -22
- package/dist/lib/components/groups/tabs.d.ts.map +0 -1
- package/dist/lib/components/groups/tabs.js +0 -31
- package/dist/lib/components/groups/tabs.js.map +0 -1
- package/dist/lib/components/image.d.ts +0 -37
- package/dist/lib/components/image.d.ts.map +0 -1
- package/dist/lib/components/image.js +0 -46
- package/dist/lib/components/image.js.map +0 -1
- package/dist/lib/components/index.js +0 -6
- package/dist/lib/components/index.js.map +0 -1
- package/dist/lib/core/index.js +0 -5
- package/dist/lib/core/index.js.map +0 -1
- package/dist/lib/core/registry.d.ts +0 -18
- package/dist/lib/core/registry.d.ts.map +0 -1
- package/dist/lib/core/registry.js +0 -30
- package/dist/lib/core/registry.js.map +0 -1
- package/dist/lib/core/render.js +0 -19
- package/dist/lib/core/render.js.map +0 -1
- package/dist/lib/core/types.js +0 -2
- package/dist/lib/core/types.js.map +0 -1
- package/dist/lib/core/utils.js +0 -193
- package/dist/lib/core/utils.js.map +0 -1
- package/dist/lib/core/value-accessor.d.ts +0 -18
- package/dist/lib/core/value-accessor.d.ts.map +0 -1
- package/dist/lib/core/value-accessor.js +0 -52
- package/dist/lib/core/value-accessor.js.map +0 -1
- package/dist/lib/index.js +0 -29
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/mount.js +0 -85
- package/dist/lib/mount.js.map +0 -1
- package/dist/tweak-ui.css +0 -648
- package/dist/tweak-ui.css.map +0 -1
- package/dist/tweak-ui.min.css +0 -1
- package/dist/tweak-ui.min.css.map +0 -1
- /package/dist/lib/{color-formats → color}/converter.d.ts +0 -0
- /package/dist/lib/{color-formats → color}/index.d.ts +0 -0
package/dist/index.d.ts
ADDED
|
@@ -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"}
|
package/dist/lib/builder.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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,97 @@ 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):
|
|
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
|
+
point: FieldGenerator<import('./components').PointWidgetAttrs<unknown>>;
|
|
51
|
+
spherical: FieldGenerator<import('./components').SphericalWidgetAttrs<unknown>>;
|
|
52
|
+
boolInput: FieldGenerator<import('./components').BooleanInputAttrs<unknown>>;
|
|
53
|
+
stringInput: FieldGenerator<import('./components').StringInputAttrs<unknown>>;
|
|
54
|
+
scalarInput: FieldGenerator<import('./components').ScalarInputAttrs<unknown>>;
|
|
55
|
+
vectorInput: FieldGenerator<import('./components').VectorInputAttrs<unknown>>;
|
|
56
|
+
matrixInput: FieldGenerator<import('./components').MatrixInputAttrs<unknown>>;
|
|
57
|
+
selectInput: FieldGenerator<import('./components').SelectAttrs<unknown, any>>;
|
|
58
|
+
angleInput: FieldGenerator<import('./components').AngleInputAttrs<unknown>>;
|
|
59
|
+
bitmaskInput: FieldGenerator<import('./components').BitmaskInputAttrs<unknown>>;
|
|
60
|
+
pollInput: FieldGenerator<import('./components').PollAttrs<unknown>>;
|
|
61
|
+
colorInput: FieldGenerator<import('./components').ColorAttrs<unknown>>;
|
|
62
|
+
colorPickerInput: FieldGenerator<import('./components').ColorPickerAttrs<unknown>>;
|
|
63
|
+
pointInput: FieldGenerator<import('./components').PointInputAttrs<unknown>>;
|
|
64
|
+
sphericalInput: FieldGenerator<import('./components').SphericalInputAttrs<unknown>>;
|
|
65
|
+
button(text: string, opts?: ButtonAttrs): void;
|
|
66
|
+
image(opts: ImageAttrs): void;
|
|
67
|
+
divider(content?: Children): void;
|
|
68
|
+
tree<T>(opts: TreeAttrs<T>): void;
|
|
69
|
+
graph(opts: GraphAttrs): void;
|
|
70
|
+
widget(label: string | false, children?: ComponentChildren): void;
|
|
71
|
+
pre(label: string | false, children?: ComponentChildren): void;
|
|
60
72
|
/**
|
|
61
|
-
*
|
|
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
|
|
73
|
+
* Adds a render function as a component
|
|
74
|
+
* This breaks out of the static builder schema and allows for dynamic content.
|
|
133
75
|
*/
|
|
134
|
-
|
|
76
|
+
view(view: () => Children): void;
|
|
135
77
|
/**
|
|
136
|
-
* Adds
|
|
137
|
-
*
|
|
138
|
-
* @param label - The control label
|
|
139
|
-
* @param opts - Additional options for the control
|
|
78
|
+
* Adds a render function as a component
|
|
79
|
+
* This breaks out of the static builder schema and allows for dynamic content.
|
|
140
80
|
*/
|
|
141
|
-
|
|
142
|
-
image(label: string, opts: Partial<ImageModel>): ImageModel & Removable;
|
|
81
|
+
control(attrs: WidgetAttrs, children?: ComponentChildren): void;
|
|
143
82
|
/**
|
|
144
|
-
* Adds a
|
|
145
|
-
*
|
|
146
|
-
* @param label - The control label
|
|
147
|
-
* @param text - The text message
|
|
148
|
-
* @param opts - Additional options for the control
|
|
83
|
+
* Adds a component to the builder schema
|
|
149
84
|
*/
|
|
150
|
-
|
|
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;
|
|
85
|
+
add<Attrs extends Object>(component: Component<Attrs> | string, attributes?: Attrs, children?: ComponentChildren): void;
|
|
163
86
|
}
|
|
164
|
-
export type
|
|
165
|
-
|
|
87
|
+
export type GroupGenerator<T extends Object> = {
|
|
88
|
+
(builder: BuilderFn): void;
|
|
89
|
+
(opts: Partial<T>): void;
|
|
90
|
+
(opts: Partial<T>, builder: BuilderFn): void;
|
|
91
|
+
(label: string, builder: BuilderFn): void;
|
|
92
|
+
(label: string, opts: Partial<T>): void;
|
|
93
|
+
(label: string, opts: Partial<T>, builder: BuilderFn): void;
|
|
94
|
+
};
|
|
95
|
+
export type FieldGenerator<A extends TweakableAttrs<any, any>> = {
|
|
96
|
+
(opts: A): void;
|
|
97
|
+
<V, K extends keyof V>(target: V, property: K): void;
|
|
98
|
+
<V, K extends keyof V>(target: V, property: K, opts: OmitIn<A, 'value' | 'field'>): void;
|
|
99
|
+
};
|
|
100
|
+
export type ComponentGenerator<T extends Object> = {
|
|
101
|
+
(builder: BuilderFn): void;
|
|
102
|
+
(opts: Partial<T>): void;
|
|
103
|
+
(opts: Partial<T>, builder: BuilderFn): void;
|
|
166
104
|
};
|
|
167
105
|
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/lib/builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/lib/builder.ts"],"names":[],"mappings":"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"}
|
|
@@ -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 {
|
|
2
|
-
export declare class
|
|
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
|
-
|
|
8
|
+
toControl(v: {
|
|
9
9
|
[key: string]: number;
|
|
10
10
|
}): RGBA;
|
|
11
|
-
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
export interface OKLCH {
|
|
90
|
+
/**
|
|
91
|
+
* The lightness component [0,1]
|
|
92
|
+
*/
|
|
93
|
+
l: number;
|
|
93
94
|
/**
|
|
94
|
-
*
|
|
95
|
+
* The chroma component [0,1]
|
|
95
96
|
*/
|
|
96
|
-
|
|
97
|
+
c: number;
|
|
97
98
|
/**
|
|
98
|
-
*
|
|
99
|
+
* The hue component [0,1]
|
|
99
100
|
*/
|
|
100
|
-
|
|
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":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC;;;GAGG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,IAAK,SAAQ,GAAG;IAC/B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,IAAK,SAAQ,GAAG;IAC/B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,IAAK,SAAQ,GAAG;IAC/B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,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"}
|