@xy-planning-network/trees 0.9.8 → 0.9.9

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 (35) hide show
  1. package/package.json +7 -7
  2. package/types/lib-components/forms/BaseInput.vue.d.ts +30 -44
  3. package/types/lib-components/forms/Checkbox.vue.d.ts +30 -36
  4. package/types/lib-components/forms/DateRangePicker.vue.d.ts +37 -61
  5. package/types/lib-components/forms/DateTimeInput.vue.d.ts +30 -36
  6. package/types/lib-components/forms/FieldsetLegend.vue.d.ts +34 -27
  7. package/types/lib-components/forms/InputError.vue.d.ts +26 -11
  8. package/types/lib-components/forms/InputHelp.vue.d.ts +30 -19
  9. package/types/lib-components/forms/InputLabel.vue.d.ts +34 -27
  10. package/types/lib-components/forms/MultiCheckboxes.vue.d.ts +30 -62
  11. package/types/lib-components/forms/Radio.vue.d.ts +30 -50
  12. package/types/lib-components/forms/RadioCards.vue.d.ts +15 -12
  13. package/types/lib-components/forms/Select.vue.d.ts +30 -44
  14. package/types/lib-components/forms/TextArea.vue.d.ts +30 -36
  15. package/types/lib-components/forms/Toggle.vue.d.ts +33 -26
  16. package/types/lib-components/forms/YesOrNoRadio.vue.d.ts +30 -36
  17. package/types/lib-components/indicators/InlineAlert.vue.d.ts +51 -68
  18. package/types/lib-components/layout/DateFilter.vue.d.ts +17 -20
  19. package/types/lib-components/layout/SidebarLayout.vue.d.ts +33 -35
  20. package/types/lib-components/layout/StackedLayout.vue.d.ts +34 -43
  21. package/types/lib-components/lists/Cards.vue.d.ts +17 -14
  22. package/types/lib-components/lists/DataTable.vue.d.ts +34 -31
  23. package/types/lib-components/lists/DetailList.vue.d.ts +97 -60
  24. package/types/lib-components/lists/DownloadCell.vue.d.ts +15 -18
  25. package/types/lib-components/lists/DynamicTable.vue.d.ts +35 -32
  26. package/types/lib-components/lists/TableActionButtons.vue.d.ts +27 -12
  27. package/types/lib-components/navigation/ActionsDropdown.vue.d.ts +27 -11
  28. package/types/lib-components/navigation/Paginator.vue.d.ts +15 -12
  29. package/types/lib-components/navigation/Steps.vue.d.ts +43 -52
  30. package/types/lib-components/navigation/Tabs.vue.d.ts +35 -32
  31. package/types/lib-components/overlays/ContentModal.vue.d.ts +29 -20
  32. package/types/lib-components/overlays/Modal.vue.d.ts +46 -53
  33. package/types/lib-components/overlays/Popover/Popover.vue.d.ts +31 -20
  34. package/types/lib-components/overlays/Slideover.vue.d.ts +19 -28
  35. package/types/lib-components/overlays/Tooltip.vue.d.ts +31 -20
@@ -1,67 +1,18 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- label: {
3
- type: import("vue").PropType<string>;
4
- default: string;
5
- };
6
- max: {
7
- type: import("vue").PropType<number>;
8
- };
9
- min: {
10
- type: import("vue").PropType<number>;
11
- };
12
- modelValue: {
13
- type: import("vue").PropType<(string | number)[] | null>;
14
- default: undefined;
15
- };
16
- help: {
17
- type: import("vue").PropType<string>;
18
- default: string;
19
- };
20
- placeholder: {
21
- type: import("vue").PropType<string>;
22
- default: string;
23
- };
24
- options: {
25
- type: import("vue").PropType<import("../../composables/forms").InputOption[]>;
26
- required: true;
27
- };
28
- columns: {
29
- type: import("vue").PropType<2 | 3>;
30
- };
31
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import type { MultiChoiceInput, ColumnedInput } from "../../composables/forms";
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<MultiChoiceInput & ColumnedInput>, {
3
+ help: string;
4
+ label: string;
5
+ modelValue: undefined;
6
+ placeholder: string;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
8
  "update:modelValue": (...args: any[]) => void;
33
9
  "update:error": (...args: any[]) => void;
34
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
- label: {
36
- type: import("vue").PropType<string>;
37
- default: string;
38
- };
39
- max: {
40
- type: import("vue").PropType<number>;
41
- };
42
- min: {
43
- type: import("vue").PropType<number>;
44
- };
45
- modelValue: {
46
- type: import("vue").PropType<(string | number)[] | null>;
47
- default: undefined;
48
- };
49
- help: {
50
- type: import("vue").PropType<string>;
51
- default: string;
52
- };
53
- placeholder: {
54
- type: import("vue").PropType<string>;
55
- default: string;
56
- };
57
- options: {
58
- type: import("vue").PropType<import("../../composables/forms").InputOption[]>;
59
- required: true;
60
- };
61
- columns: {
62
- type: import("vue").PropType<2 | 3>;
63
- };
64
- }>> & {
10
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MultiChoiceInput & ColumnedInput>, {
11
+ help: string;
12
+ label: string;
13
+ modelValue: undefined;
14
+ placeholder: string;
15
+ }>>> & {
65
16
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
66
17
  "onUpdate:error"?: ((...args: any[]) => any) | undefined;
67
18
  }, {
@@ -71,3 +22,20 @@ declare const _default: import("vue").DefineComponent<{
71
22
  placeholder: string;
72
23
  }, {}>;
73
24
  export default _default;
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_Prettify<T> = {
31
+ [K in keyof T]: T[K];
32
+ } & {};
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToOption<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
@@ -1,55 +1,18 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- label: {
3
- type: import("vue").PropType<string>;
4
- default: string;
5
- };
6
- modelValue: {
7
- type: import("vue").PropType<string | number | null>;
8
- default: undefined;
9
- };
10
- help: {
11
- type: import("vue").PropType<string>;
12
- default: string;
13
- };
14
- placeholder: {
15
- type: import("vue").PropType<string>;
16
- default: string;
17
- };
18
- options: {
19
- type: import("vue").PropType<import("../../composables/forms").InputOption[]>;
20
- required: true;
21
- };
22
- columns: {
23
- type: import("vue").PropType<2 | 3>;
24
- };
25
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import type { OptionsInput, ColumnedInput } from "../../composables/forms";
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OptionsInput & ColumnedInput>, {
3
+ help: string;
4
+ label: string;
5
+ modelValue: undefined;
6
+ placeholder: string;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
8
  "update:modelValue": (...args: any[]) => void;
27
9
  "update:error": (...args: any[]) => void;
28
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
- label: {
30
- type: import("vue").PropType<string>;
31
- default: string;
32
- };
33
- modelValue: {
34
- type: import("vue").PropType<string | number | null>;
35
- default: undefined;
36
- };
37
- help: {
38
- type: import("vue").PropType<string>;
39
- default: string;
40
- };
41
- placeholder: {
42
- type: import("vue").PropType<string>;
43
- default: string;
44
- };
45
- options: {
46
- type: import("vue").PropType<import("../../composables/forms").InputOption[]>;
47
- required: true;
48
- };
49
- columns: {
50
- type: import("vue").PropType<2 | 3>;
51
- };
52
- }>> & {
10
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OptionsInput & ColumnedInput>, {
11
+ help: string;
12
+ label: string;
13
+ modelValue: undefined;
14
+ placeholder: string;
15
+ }>>> & {
53
16
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
54
17
  "onUpdate:error"?: ((...args: any[]) => any) | undefined;
55
18
  }, {
@@ -59,3 +22,20 @@ declare const _default: import("vue").DefineComponent<{
59
22
  placeholder: string;
60
23
  }, {}>;
61
24
  export default _default;
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_Prettify<T> = {
31
+ [K in keyof T]: T[K];
32
+ } & {};
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToOption<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
@@ -1,12 +1,12 @@
1
1
  import type { InputOption } from "../../composables/forms";
2
2
  declare const _default: <T extends InputOption>(__VLS_props: {
3
- label?: string | undefined;
4
- modelValue?: string | number | null | undefined;
5
- help?: string | undefined;
6
- placeholder?: string | undefined;
7
3
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
4
  "onUpdate:error"?: ((...args: any[]) => any) | undefined;
9
5
  options: T[];
6
+ modelValue?: string | number | null | undefined;
7
+ label?: string | undefined;
8
+ help?: string | undefined;
9
+ placeholder?: string | undefined;
10
10
  columns?: 2 | 3 | undefined;
11
11
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
12
12
  attrs: any;
@@ -21,13 +21,13 @@ declare const _default: <T extends InputOption>(__VLS_props: {
21
21
  emit: (event: "update:modelValue" | "update:error", ...args: any[]) => void;
22
22
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
23
23
  props: {
24
- label?: string | undefined;
25
- modelValue?: string | number | null | undefined;
26
- help?: string | undefined;
27
- placeholder?: string | undefined;
28
24
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
29
25
  "onUpdate:error"?: ((...args: any[]) => any) | undefined;
30
26
  options: T[];
27
+ modelValue?: string | number | null | undefined;
28
+ label?: string | undefined;
29
+ help?: string | undefined;
30
+ placeholder?: string | undefined;
31
31
  columns?: 2 | 3 | undefined;
32
32
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
33
33
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
@@ -46,13 +46,13 @@ declare const _default: <T extends InputOption>(__VLS_props: {
46
46
  }> & {
47
47
  __ctx?: {
48
48
  props: {
49
- label?: string | undefined;
50
- modelValue?: string | number | null | undefined;
51
- help?: string | undefined;
52
- placeholder?: string | undefined;
53
49
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
54
50
  "onUpdate:error"?: ((...args: any[]) => any) | undefined;
55
51
  options: T[];
52
+ modelValue?: string | number | null | undefined;
53
+ label?: string | undefined;
54
+ help?: string | undefined;
55
+ placeholder?: string | undefined;
56
56
  columns?: 2 | 3 | undefined;
57
57
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
58
58
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
@@ -69,3 +69,6 @@ declare const _default: <T extends InputOption>(__VLS_props: {
69
69
  } | undefined;
70
70
  };
71
71
  export default _default;
72
+ type __VLS_Prettify<T> = {
73
+ [K in keyof T]: T[K];
74
+ } & {};
@@ -1,49 +1,18 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- label: {
3
- type: import("vue").PropType<string>;
4
- default: string;
5
- };
6
- modelValue: {
7
- type: import("vue").PropType<string | number | null>;
8
- default: undefined;
9
- };
10
- help: {
11
- type: import("vue").PropType<string>;
12
- default: string;
13
- };
14
- placeholder: {
15
- type: import("vue").PropType<string>;
16
- default: string;
17
- };
18
- options: {
19
- type: import("vue").PropType<import("../../composables/forms").InputOption[]>;
20
- required: true;
21
- };
22
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import type { OptionsInput } from "../../composables/forms";
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OptionsInput>, {
3
+ placeholder: string;
4
+ help: string;
5
+ label: string;
6
+ modelValue: undefined;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
8
  "update:modelValue": (...args: any[]) => void;
24
9
  "update:error": (...args: any[]) => void;
25
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
- label: {
27
- type: import("vue").PropType<string>;
28
- default: string;
29
- };
30
- modelValue: {
31
- type: import("vue").PropType<string | number | null>;
32
- default: undefined;
33
- };
34
- help: {
35
- type: import("vue").PropType<string>;
36
- default: string;
37
- };
38
- placeholder: {
39
- type: import("vue").PropType<string>;
40
- default: string;
41
- };
42
- options: {
43
- type: import("vue").PropType<import("../../composables/forms").InputOption[]>;
44
- required: true;
45
- };
46
- }>> & {
10
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OptionsInput>, {
11
+ placeholder: string;
12
+ help: string;
13
+ label: string;
14
+ modelValue: undefined;
15
+ }>>> & {
47
16
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
48
17
  "onUpdate:error"?: ((...args: any[]) => any) | undefined;
49
18
  }, {
@@ -53,3 +22,20 @@ declare const _default: import("vue").DefineComponent<{
53
22
  placeholder: string;
54
23
  }, {}>;
55
24
  export default _default;
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_Prettify<T> = {
31
+ [K in keyof T]: T[K];
32
+ } & {};
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToOption<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
@@ -1,41 +1,18 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- label: {
3
- type: import("vue").PropType<string>;
4
- default: string;
5
- };
6
- modelValue: {
7
- type: import("vue").PropType<string | number | null>;
8
- default: undefined;
9
- };
10
- help: {
11
- type: import("vue").PropType<string>;
12
- default: string;
13
- };
14
- placeholder: {
15
- type: import("vue").PropType<string>;
16
- default: string;
17
- };
18
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import type { TextareaInput } from "../../composables/forms";
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TextareaInput>, {
3
+ help: string;
4
+ label: string;
5
+ modelValue: undefined;
6
+ placeholder: string;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
8
  "update:modelValue": (...args: any[]) => void;
20
9
  "update:error": (...args: any[]) => void;
21
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
- label: {
23
- type: import("vue").PropType<string>;
24
- default: string;
25
- };
26
- modelValue: {
27
- type: import("vue").PropType<string | number | null>;
28
- default: undefined;
29
- };
30
- help: {
31
- type: import("vue").PropType<string>;
32
- default: string;
33
- };
34
- placeholder: {
35
- type: import("vue").PropType<string>;
36
- default: string;
37
- };
38
- }>> & {
10
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TextareaInput>, {
11
+ help: string;
12
+ label: string;
13
+ modelValue: undefined;
14
+ placeholder: string;
15
+ }>>> & {
39
16
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
40
17
  "onUpdate:error"?: ((...args: any[]) => any) | undefined;
41
18
  }, {
@@ -45,3 +22,20 @@ declare const _default: import("vue").DefineComponent<{
45
22
  placeholder: string;
46
23
  }, {}>;
47
24
  export default _default;
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_Prettify<T> = {
31
+ [K in keyof T]: T[K];
32
+ } & {};
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToOption<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
@@ -1,33 +1,40 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- label: {
3
- type: import("vue").PropType<string>;
4
- default: string;
5
- };
6
- modelValue: {
7
- type: import("vue").PropType<boolean>;
8
- };
9
- help: {
10
- type: import("vue").PropType<string>;
11
- default: string;
12
- };
13
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ modelValue?: boolean | undefined;
3
+ label?: string | undefined;
4
+ help?: string | undefined;
5
+ }>, {
6
+ label: string;
7
+ help: string;
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
9
  "update:modelValue": (...args: any[]) => void;
15
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
- label: {
17
- type: import("vue").PropType<string>;
18
- default: string;
19
- };
20
- modelValue: {
21
- type: import("vue").PropType<boolean>;
22
- };
23
- help: {
24
- type: import("vue").PropType<string>;
25
- default: string;
26
- };
27
- }>> & {
10
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
11
+ modelValue?: boolean | undefined;
12
+ label?: string | undefined;
13
+ help?: string | undefined;
14
+ }>, {
15
+ label: string;
16
+ help: string;
17
+ }>>> & {
28
18
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
29
19
  }, {
30
20
  label: string;
31
21
  help: string;
32
22
  }, {}>;
33
23
  export default _default;
24
+ type __VLS_WithDefaults<P, D> = {
25
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
26
+ default: D[K];
27
+ }> : P[K];
28
+ };
29
+ type __VLS_Prettify<T> = {
30
+ [K in keyof T]: T[K];
31
+ } & {};
32
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
+ type __VLS_TypePropsToOption<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
35
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
36
+ } : {
37
+ type: import('vue').PropType<T[K]>;
38
+ required: true;
39
+ };
40
+ };
@@ -1,41 +1,18 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- label: {
3
- type: import("vue").PropType<string>;
4
- default: string;
5
- };
6
- modelValue: {
7
- type: import("vue").PropType<boolean | null>;
8
- default: undefined;
9
- };
10
- help: {
11
- type: import("vue").PropType<string>;
12
- default: string;
13
- };
14
- placeholder: {
15
- type: import("vue").PropType<string>;
16
- default: string;
17
- };
18
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import type { BooleanInput } from "../../composables/forms";
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BooleanInput>, {
3
+ help: string;
4
+ label: string;
5
+ modelValue: undefined;
6
+ placeholder: string;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
8
  "update:modelValue": (...args: any[]) => void;
20
9
  "update:error": (...args: any[]) => void;
21
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
- label: {
23
- type: import("vue").PropType<string>;
24
- default: string;
25
- };
26
- modelValue: {
27
- type: import("vue").PropType<boolean | null>;
28
- default: undefined;
29
- };
30
- help: {
31
- type: import("vue").PropType<string>;
32
- default: string;
33
- };
34
- placeholder: {
35
- type: import("vue").PropType<string>;
36
- default: string;
37
- };
38
- }>> & {
10
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<BooleanInput>, {
11
+ help: string;
12
+ label: string;
13
+ modelValue: undefined;
14
+ placeholder: string;
15
+ }>>> & {
39
16
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
40
17
  "onUpdate:error"?: ((...args: any[]) => any) | undefined;
41
18
  }, {
@@ -45,3 +22,20 @@ declare const _default: import("vue").DefineComponent<{
45
22
  placeholder: string;
46
23
  }, {}>;
47
24
  export default _default;
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_Prettify<T> = {
31
+ [K in keyof T]: T[K];
32
+ } & {};
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToOption<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };