@nil-/doc 0.2.44 → 0.2.46

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 (50) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/components/Layout.svelte +2 -1
  3. package/components/block/Controls.svelte +2 -1
  4. package/components/block/Controls.svelte.d.ts +3 -2
  5. package/components/block/Instance.svelte +35 -8
  6. package/components/block/Instance.svelte.d.ts +8 -7
  7. package/components/block/Template.svelte +2 -1
  8. package/components/block/Template.svelte.d.ts +1 -0
  9. package/components/block/context.d.ts +7 -2
  10. package/components/block/context.js +4 -1
  11. package/components/block/controls/events/Events.svelte +69 -0
  12. package/components/block/controls/events/Events.svelte.d.ts +21 -0
  13. package/components/block/controls/events/misc/Styler.svelte +83 -0
  14. package/components/block/controls/{misc → events/misc}/Styler.svelte.d.ts +0 -0
  15. package/components/block/controls/{Component.svelte → props/Component.svelte} +8 -7
  16. package/components/block/controls/{Component.svelte.d.ts → props/Component.svelte.d.ts} +3 -2
  17. package/components/block/controls/{Switch.svelte → props/Number.svelte} +8 -5
  18. package/components/block/controls/{Number.svelte.d.ts → props/Number.svelte.d.ts} +3 -2
  19. package/components/block/controls/{Object.svelte → props/Object.svelte} +12 -12
  20. package/components/block/controls/{Object.svelte.d.ts → props/Object.svelte.d.ts} +4 -3
  21. package/components/block/controls/{Controls.svelte → props/Props.svelte} +5 -3
  22. package/components/block/controls/props/Props.svelte.d.ts +22 -0
  23. package/components/block/controls/{Range.svelte → props/Range.svelte} +19 -16
  24. package/components/block/controls/{Range.svelte.d.ts → props/Range.svelte.d.ts} +3 -2
  25. package/components/block/controls/props/Select.svelte +26 -0
  26. package/components/block/controls/{Select.svelte.d.ts → props/Select.svelte.d.ts} +3 -2
  27. package/components/block/controls/{Number.svelte → props/Switch.svelte} +8 -5
  28. package/components/block/controls/{Switch.svelte.d.ts → props/Switch.svelte.d.ts} +3 -2
  29. package/components/block/controls/{Text.svelte → props/Text.svelte} +8 -5
  30. package/components/block/controls/{Text.svelte.d.ts → props/Text.svelte.d.ts} +3 -2
  31. package/components/block/controls/{Tuple.svelte → props/Tuple.svelte} +11 -11
  32. package/components/block/controls/{Tuple.svelte.d.ts → props/Tuple.svelte.d.ts} +4 -3
  33. package/components/block/controls/props/misc/GroupHeader.svelte +35 -0
  34. package/components/block/controls/{misc → props/misc}/GroupHeader.svelte.d.ts +1 -0
  35. package/components/block/controls/{misc → props/misc}/Name.svelte +0 -0
  36. package/components/block/controls/{misc → props/misc}/Name.svelte.d.ts +0 -0
  37. package/components/block/controls/props/misc/Styler.svelte +87 -0
  38. package/components/block/controls/props/misc/Styler.svelte.d.ts +16 -0
  39. package/components/block/controls/props/misc/defaulter.d.ts +10 -0
  40. package/components/block/controls/{misc → props/misc}/defaulter.js +0 -0
  41. package/components/block/controls/types.d.ts +28 -26
  42. package/index.d.ts +1 -1
  43. package/package.json +1 -1
  44. package/components/block/controls/Controls.svelte.d.ts +0 -19
  45. package/components/block/controls/Select.svelte +0 -23
  46. package/components/block/controls/misc/GroupHeader.svelte +0 -32
  47. package/components/block/controls/misc/Styler.svelte +0 -73
  48. package/components/block/controls/misc/TopHeader.svelte +0 -12
  49. package/components/block/controls/misc/TopHeader.svelte.d.ts +0 -23
  50. package/components/block/controls/misc/defaulter.d.ts +0 -10
@@ -0,0 +1,26 @@
1
+
2
+ <script>import { getDefault } from "./misc/defaulter";
3
+ import Name from "./misc/Name.svelte";
4
+ export let value;
5
+ export let info;
6
+ export let depth;
7
+ export let disabled = false;
8
+ export let visible = false;
9
+ let ivalue = value ?? getDefault(info);
10
+ let enabled = value !== void 0;
11
+ $:
12
+ value = enabled && !disabled ? ivalue : void 0;
13
+ </script>
14
+ {#if visible}
15
+ <div>
16
+ <Name name={info.name} {depth} />
17
+ <div>
18
+ <select bind:value={ivalue} disabled={!enabled || disabled}>
19
+ {#each info.values as value}
20
+ <option {value}>{value}</option>
21
+ {/each}
22
+ </select>
23
+ </div>
24
+ <div><input type="checkbox" bind:checked={enabled} {disabled} /></div>
25
+ </div>
26
+ {/if}
@@ -1,11 +1,12 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { ControlSelect } from "./types";
2
+ import type { PropSelect } from "../types";
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  value: string | undefined;
6
- info: ControlSelect;
6
+ info: PropSelect;
7
7
  depth: number;
8
8
  disabled?: boolean | undefined;
9
+ visible?: boolean | undefined;
9
10
  };
10
11
  events: {
11
12
  [evt: string]: CustomEvent<any>;
@@ -5,13 +5,16 @@ export let value;
5
5
  export let info;
6
6
  export let depth;
7
7
  export let disabled = false;
8
+ export let visible = false;
8
9
  let ivalue = value ?? getDefault(info);
9
10
  let enabled = value !== void 0;
10
11
  $:
11
12
  value = enabled && !disabled ? ivalue : void 0;
12
13
  </script>
13
- <div>
14
- <Name name={info.name} {depth} />
15
- <div><input type="number" bind:value={ivalue} disabled={!enabled || disabled} /></div>
16
- <div><input type="checkbox" bind:checked={enabled} {disabled} /></div>
17
- </div>
14
+ {#if visible}
15
+ <div>
16
+ <Name name={info.name} {depth} />
17
+ <div><input type="checkbox" bind:checked={ivalue} disabled={!enabled || disabled} /></div>
18
+ <div><input type="checkbox" bind:checked={enabled} {disabled} /></div>
19
+ </div>
20
+ {/if}
@@ -1,11 +1,12 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { ControlSwitch } from "./types";
2
+ import type { PropSwitch } from "../types";
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  value: boolean | undefined;
6
- info: ControlSwitch;
6
+ info: PropSwitch;
7
7
  depth: number;
8
8
  disabled?: boolean | undefined;
9
+ visible?: boolean | undefined;
9
10
  };
10
11
  events: {
11
12
  [evt: string]: CustomEvent<any>;
@@ -5,13 +5,16 @@ export let value;
5
5
  export let info;
6
6
  export let depth;
7
7
  export let disabled = false;
8
+ export let visible = false;
8
9
  let ivalue = value ?? getDefault(info);
9
10
  let ienabled = value !== void 0;
10
11
  $:
11
12
  value = ienabled && !disabled ? ivalue : void 0;
12
13
  </script>
13
- <div>
14
- <Name name={info.name} {depth} />
15
- <div><input type="text" bind:value={ivalue} disabled={!ienabled || disabled} /></div>
16
- <div><input type="checkbox" bind:checked={ienabled} {disabled} /></div>
17
- </div>
14
+ {#if visible}
15
+ <div>
16
+ <Name name={info.name} {depth} />
17
+ <div><input type="text" bind:value={ivalue} disabled={!ienabled || disabled} /></div>
18
+ <div><input type="checkbox" bind:checked={ienabled} {disabled} /></div>
19
+ </div>
20
+ {/if}
@@ -1,11 +1,12 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { ControlText } from "./types";
2
+ import type { PropText } from "../types";
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  value: string | undefined;
6
- info: ControlText;
6
+ info: PropText;
7
7
  depth: number;
8
8
  disabled?: boolean | undefined;
9
+ visible?: boolean | undefined;
9
10
  };
10
11
  events: {
11
12
  [evt: string]: CustomEvent<any>;
@@ -6,6 +6,7 @@ export let value;
6
6
  export let info;
7
7
  export let depth;
8
8
  export let disabled = false;
9
+ export let visible = false;
9
10
  let ivalue = value ?? getDefault(info);
10
11
  let enabled = value !== void 0;
11
12
  $:
@@ -14,14 +15,13 @@ $:
14
15
  values = info.values;
15
16
  let expand = info.values.length > 0 ? true : void 0;
16
17
  </script>
17
- <Header name={info.name} bind:expand bind:checked={enabled} {depth} {disabled} />
18
- {#if expand && enabled && !disabled}
19
- {#each values as info, i (i)}
20
- <Component
21
- info={{ ...info, name: `${i}` }}
22
- bind:value={ivalue[i]}
23
- depth={depth + 10}
24
- disabled={!enabled || disabled}
25
- />
26
- {/each}
27
- {/if}
18
+ <Header name={info.name} bind:expand bind:checked={enabled} {depth} {disabled} {visible} />
19
+ {#each values as info, i (i)}
20
+ <Component
21
+ info={{ ...info, name: `${i}` }}
22
+ bind:value={ivalue[i]}
23
+ depth={depth + 10}
24
+ disabled={!enabled || disabled}
25
+ visible={visible && expand && enabled && !disabled}
26
+ />
27
+ {/each}
@@ -1,12 +1,13 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { ValueType } from "../types";
3
- import type { ControlTuple } from "./types";
2
+ import type { ValueType } from "../../types";
3
+ import type { PropTuple } from "../types";
4
4
  declare const __propDef: {
5
5
  props: {
6
6
  value: ValueType[] | undefined;
7
- info: ControlTuple;
7
+ info: PropTuple;
8
8
  depth: number;
9
9
  disabled?: boolean | undefined;
10
+ visible?: boolean | undefined;
10
11
  };
11
12
  events: {
12
13
  [evt: string]: CustomEvent<any>;
@@ -0,0 +1,35 @@
1
+ <style>
2
+ .value {
3
+ text-align: center;
4
+ }
5
+ </style>
6
+
7
+ <script>import Name from "./Name.svelte";
8
+ export let name;
9
+ export let depth;
10
+ export let checked;
11
+ export let disabled = false;
12
+ export let expand = void 0;
13
+ export let visible = false;
14
+ const flip = () => {
15
+ if (!disabled && checked) {
16
+ if (expand !== void 0) {
17
+ expand = !expand;
18
+ }
19
+ }
20
+ };
21
+ </script>
22
+ {#if visible}
23
+ <div class="root" on:click={flip} on:keypress={null}>
24
+ <Name
25
+ expand={expand === undefined ? undefined : expand && checked && !disabled}
26
+ {name}
27
+ {depth}
28
+ />
29
+ <div class="value">-</div>
30
+ <div>
31
+ <input type="checkbox" {disabled} bind:checked on:click={(e) => e.stopPropagation()} />
32
+ </div>
33
+ </div>
34
+ {/if}
35
+
@@ -6,6 +6,7 @@ declare const __propDef: {
6
6
  checked: boolean;
7
7
  disabled?: boolean | undefined;
8
8
  expand?: boolean | undefined;
9
+ visible?: boolean | undefined;
9
10
  };
10
11
  events: {
11
12
  [evt: string]: CustomEvent<any>;
@@ -0,0 +1,87 @@
1
+ <script>import { getTheme } from "../../../../context";
2
+ const dark = getTheme();
3
+ </script>
4
+ <style>
5
+ div {
6
+ width: 100%;
7
+ min-width: 500px;
8
+ overflow: hidden;
9
+ display: grid;
10
+ grid-auto-rows: 30px;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ div :global(*),
15
+ div :global(*::before),
16
+ div :global(*::after) {
17
+ box-sizing: inherit;
18
+ }
19
+
20
+ div > :global(div) {
21
+ display: grid;
22
+ width: 100%;
23
+ padding: 2px 0px;
24
+ grid-template-columns: minmax(250px, 1fr) 200px 40px;
25
+ }
26
+
27
+ div > :global(div:first-child) {
28
+ text-align: center;
29
+ }
30
+
31
+ div > :global(div > div:not(:first-child) > *) {
32
+ width: 100%;
33
+ height: 100%;
34
+ }
35
+
36
+ /* colors */
37
+ div {
38
+ --pri-color: hsl(0, 0%, 100%);
39
+ --sec-color: hsl(210, 29%, 97%);
40
+ --hover-color: hsl(210, 100%, 90%);
41
+ --outline-color: hsl(0, 0%, 0%);
42
+ }
43
+
44
+ div.dark {
45
+ --pri-color: hsl(213, 26%, 7%);
46
+ --sec-color: hsl(213, 26%, 11%);
47
+ --hover-color: hsl(203, 100%, 15%);
48
+ --outline-color: hsl(200, 6%, 80%);
49
+ }
50
+
51
+ div {
52
+ transition: background-color 150ms;
53
+ background-repeat: repeat;
54
+ background-size: 100% 60px;
55
+ background-image: linear-gradient(to bottom, var(--pri-color) 30px, var(--sec-color) 30px);
56
+ }
57
+
58
+ div > :global(div:nth-child(n + 2):hover) {
59
+ background-color: var(--hover-color);
60
+ }
61
+
62
+ div > :global(div:hover .tooltip) {
63
+ background-color: var(--pri-color);
64
+ outline: var(--outline-color) 1px solid;
65
+ }
66
+ </style>
67
+
68
+
69
+ <!--
70
+ <div> this component
71
+ <div> Header
72
+ <div></div>
73
+ <div></div>
74
+ <div></div>
75
+ </div>
76
+ <div> Controls
77
+ <div></div>
78
+ <div></div>
79
+ <div></div>
80
+ </div>
81
+ ...
82
+ </div>
83
+ -->
84
+ <div class:dark={$dark}>
85
+ <slot />
86
+ </div>
87
+
@@ -0,0 +1,16 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: Record<string, never>;
4
+ events: {
5
+ [evt: string]: CustomEvent<any>;
6
+ };
7
+ slots: {
8
+ default: {};
9
+ };
10
+ };
11
+ export type StylerProps = typeof __propDef.props;
12
+ export type StylerEvents = typeof __propDef.events;
13
+ export type StylerSlots = typeof __propDef.slots;
14
+ export default class Styler extends SvelteComponentTyped<StylerProps, StylerEvents, StylerSlots> {
15
+ }
16
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ValueType } from "../../../types";
2
+ import type { Prop, PropNumber, PropRange, PropSelect, PropSwitch, PropText, PropTuple, PropObject } from "../../types";
3
+ export declare function getDefault(i: PropTuple): ValueType[];
4
+ export declare function getDefault(i: PropObject): Record<string, ValueType>;
5
+ export declare function getDefault(i: PropNumber): number;
6
+ export declare function getDefault(i: PropRange): number;
7
+ export declare function getDefault(i: PropSelect): string;
8
+ export declare function getDefault(i: PropText): string;
9
+ export declare function getDefault(i: PropSwitch): boolean;
10
+ export declare function getDefault(i: Prop): ValueType;
@@ -1,28 +1,28 @@
1
- export type ControlTuple = {
1
+ export type PropTuple = {
2
2
  name: string;
3
3
  type: "tuple";
4
4
  // eslint-disable-next-line no-use-before-define
5
- values: NonNamedControl[];
5
+ values: NonNamedProp[];
6
6
  };
7
7
 
8
- export type ControlObject = {
8
+ export type PropObject = {
9
9
  name: string;
10
10
  type: "object";
11
11
  // eslint-disable-next-line no-use-before-define
12
- values: Control[];
12
+ values: Prop[];
13
13
  };
14
14
 
15
- export type ControlText = {
15
+ export type PropText = {
16
16
  name: string;
17
17
  type: "text";
18
18
  };
19
19
 
20
- export type ControlNumber = {
20
+ export type PropNumber = {
21
21
  name: string;
22
22
  type: "number";
23
23
  };
24
24
 
25
- export type ControlRange = {
25
+ export type PropRange = {
26
26
  name: string;
27
27
  type: "range";
28
28
  min: number;
@@ -30,31 +30,33 @@ export type ControlRange = {
30
30
  step: number;
31
31
  };
32
32
 
33
- export type ControlSelect = {
33
+ export type PropSelect = {
34
34
  name: string;
35
35
  type: "select";
36
36
  values: string[];
37
37
  };
38
38
 
39
- export type ControlSwitch = {
39
+ export type PropSwitch = {
40
40
  name: string;
41
41
  type: "switch";
42
42
  };
43
43
 
44
- export type Control =
45
- | ControlTuple
46
- | ControlObject
47
- | ControlText
48
- | ControlNumber
49
- | ControlRange
50
- | ControlSelect
51
- | ControlSwitch;
52
-
53
- type NonNamedControl =
54
- | Omit<ControlTuple, "name">
55
- | Omit<ControlObject, "name">
56
- | Omit<ControlText, "name">
57
- | Omit<ControlNumber, "name">
58
- | Omit<ControlRange, "name">
59
- | Omit<ControlSelect, "name">
60
- | Omit<ControlSwitch, "name">;
44
+ export type Prop =
45
+ | PropTuple
46
+ | PropObject
47
+ | PropText
48
+ | PropNumber
49
+ | PropRange
50
+ | PropSelect
51
+ | PropSwitch;
52
+
53
+ type NonNamedProp =
54
+ | Omit<PropTuple, "name">
55
+ | Omit<PropObject, "name">
56
+ | Omit<PropText, "name">
57
+ | Omit<PropNumber, "name">
58
+ | Omit<PropRange, "name">
59
+ | Omit<PropSelect, "name">
60
+ | Omit<PropSwitch, "name">;
61
+
62
+ export type Event = string;
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { renamer } from "./components/navigation/utils/renamer";
2
2
  export { sorter } from "./components/navigation/utils/sorter";
3
- export type { Control } from "./components/block/controls/types";
3
+ export type { Prop, Event } from "./components/block/controls/types";
4
4
  export { default as Layout } from "./components/Layout.svelte";
5
5
  export { default as Instance } from "./components/block/Instance.svelte";
6
6
  export { default as Block } from "./components/block/Block.svelte";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nil-/doc",
3
- "version": "0.2.44",
3
+ "version": "0.2.46",
4
4
  "author": {
5
5
  "email": "njaldea@gmail.com",
6
6
  "name": "Neil Aldea"
@@ -1,19 +0,0 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- import type { ValueType } from "../types";
3
- import type { Control } from "./types";
4
- declare const __propDef: {
5
- props: {
6
- infos: Control[];
7
- values: Record<string, ValueType>;
8
- };
9
- events: {
10
- [evt: string]: CustomEvent<any>;
11
- };
12
- slots: {};
13
- };
14
- export type ControlsProps = typeof __propDef.props;
15
- export type ControlsEvents = typeof __propDef.events;
16
- export type ControlsSlots = typeof __propDef.slots;
17
- export default class Controls extends SvelteComponentTyped<ControlsProps, ControlsEvents, ControlsSlots> {
18
- }
19
- export {};
@@ -1,23 +0,0 @@
1
-
2
- <script>import { getDefault } from "./misc/defaulter";
3
- import Name from "./misc/Name.svelte";
4
- export let value;
5
- export let info;
6
- export let depth;
7
- export let disabled = false;
8
- let ivalue = value ?? getDefault(info);
9
- let enabled = value !== void 0;
10
- $:
11
- value = enabled && !disabled ? ivalue : void 0;
12
- </script>
13
- <div>
14
- <Name name={info.name} {depth} />
15
- <div>
16
- <select bind:value={ivalue} disabled={!enabled || disabled}>
17
- {#each info.values as value}
18
- <option {value}>{value}</option>
19
- {/each}
20
- </select>
21
- </div>
22
- <div><input type="checkbox" bind:checked={enabled} {disabled} /></div>
23
- </div>
@@ -1,32 +0,0 @@
1
- <style>
2
- .value {
3
- text-align: center;
4
- }
5
- </style>
6
-
7
- <script>import Name from "./Name.svelte";
8
- export let name;
9
- export let depth;
10
- export let checked;
11
- export let disabled = false;
12
- export let expand = void 0;
13
- const flip = () => {
14
- if (!disabled && checked) {
15
- if (expand !== void 0) {
16
- expand = !expand;
17
- }
18
- }
19
- };
20
- </script>
21
- <div on:click={flip} on:keypress={null}>
22
- <Name
23
- expand={expand === undefined ? undefined : expand && checked && !disabled}
24
- {name}
25
- {depth}
26
- />
27
- <div class="value">-</div>
28
- <div>
29
- <input type="checkbox" {disabled} bind:checked on:click={(e) => e.stopPropagation()} />
30
- </div>
31
- </div>
32
-
@@ -1,73 +0,0 @@
1
- <script>import { getTheme } from "../../../context";
2
- const dark = getTheme();
3
- </script>
4
- <style>
5
- div {
6
- width: 100%;
7
- min-width: 500px;
8
- overflow: hidden;
9
- display: grid;
10
- grid-auto-rows: 30px;
11
- box-sizing: border-box;
12
- }
13
-
14
- div :global(*),
15
- div :global(*::before),
16
- div :global(*::after) {
17
- box-sizing: inherit;
18
- }
19
-
20
- div > :global(div) {
21
- width: 100%;
22
- display: grid;
23
- padding: 2px 0px;
24
- grid-template-columns: minmax(250px, 1fr) 200px 40px;
25
- }
26
-
27
- div > :global(div > div:not(:first-child) > *) {
28
- width: 100%;
29
- height: 100%;
30
- }
31
-
32
- /* colors */
33
- div > :global(div) {
34
- transition: background-color 350ms;
35
- background-color: hsl(0, 0%, 100%);
36
- }
37
-
38
- div > :global(div:nth-child(even)) {
39
- background-color: hsl(210, 29%, 97%);
40
- }
41
-
42
- div > :global(div:nth-child(n + 2):hover) {
43
- background-color: hsl(210, 100%, 90%);
44
- }
45
-
46
- div > :global(div:hover .tooltip) {
47
- background-color: hsl(0, 0%, 100%);
48
- outline: hsl(0, 100%, 0%) 1px solid;
49
- }
50
-
51
- div.dark > :global(div) {
52
- background-color: hsl(213, 26%, 7%);
53
- }
54
-
55
- div.dark > :global(div:nth-child(even)) {
56
- background-color: hsl(213, 26%, 11%);
57
- }
58
-
59
- div.dark > :global(div:nth-child(n + 2):hover) {
60
- background-color: hsl(203, 100%, 15%);
61
- }
62
-
63
- div.dark > :global(div:hover .tooltip) {
64
- background-color: hsl(213, 26%, 7%);
65
- outline: hsl(200, 6%, 80%) 1px solid;
66
- }
67
- </style>
68
-
69
-
70
- <div class:dark={$dark}>
71
- <slot />
72
- </div>
73
-
@@ -1,12 +0,0 @@
1
- <style>
2
- div > div {
3
- text-align: center;
4
- }
5
- </style>
6
-
7
- <div>
8
- <div>Name</div>
9
- <div>Value</div>
10
- <div>Use</div>
11
- </div>
12
-
@@ -1,23 +0,0 @@
1
- /** @typedef {typeof __propDef.props} TopHeaderProps */
2
- /** @typedef {typeof __propDef.events} TopHeaderEvents */
3
- /** @typedef {typeof __propDef.slots} TopHeaderSlots */
4
- export default class TopHeader extends SvelteComponentTyped<{
5
- [x: string]: never;
6
- }, {
7
- [evt: string]: CustomEvent<any>;
8
- }, {}> {
9
- }
10
- export type TopHeaderProps = typeof __propDef.props;
11
- export type TopHeaderEvents = typeof __propDef.events;
12
- export type TopHeaderSlots = typeof __propDef.slots;
13
- import { SvelteComponentTyped } from "svelte";
14
- declare const __propDef: {
15
- props: {
16
- [x: string]: never;
17
- };
18
- events: {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {};
22
- };
23
- export {};
@@ -1,10 +0,0 @@
1
- import type { ValueType } from "../../types";
2
- import type { Control, ControlNumber, ControlRange, ControlSelect, ControlSwitch, ControlText, ControlTuple, ControlObject } from "../types";
3
- export declare function getDefault(i: ControlTuple): ValueType[];
4
- export declare function getDefault(i: ControlObject): Record<string, ValueType>;
5
- export declare function getDefault(i: ControlNumber): number;
6
- export declare function getDefault(i: ControlRange): number;
7
- export declare function getDefault(i: ControlSelect): string;
8
- export declare function getDefault(i: ControlText): string;
9
- export declare function getDefault(i: ControlSwitch): boolean;
10
- export declare function getDefault(i: Control): ValueType;