@xy-planning-network/trees 0.7.4 → 0.7.5-rc1

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 (58) hide show
  1. package/dist/trees.es.js +3939 -3561
  2. package/dist/trees.umd.js +10 -10
  3. package/package.json +2 -2
  4. package/src/index.css +0 -16
  5. package/src/lib-components/forms/BaseInput.vue +90 -75
  6. package/src/lib-components/forms/Checkbox.vue +50 -34
  7. package/src/lib-components/forms/DateRangePicker.vue +56 -32
  8. package/src/lib-components/forms/FieldsetLegend.vue +28 -8
  9. package/src/lib-components/forms/InputHelp.vue +2 -4
  10. package/src/lib-components/forms/InputLabel.vue +27 -12
  11. package/src/lib-components/forms/MultiCheckboxes.vue +117 -74
  12. package/src/lib-components/forms/Radio.vue +79 -66
  13. package/src/lib-components/forms/RadioCards.vue +72 -70
  14. package/src/lib-components/forms/Select.vue +59 -56
  15. package/src/lib-components/forms/TextArea.vue +54 -47
  16. package/src/lib-components/forms/Toggle.vue +61 -18
  17. package/src/lib-components/forms/YesOrNoRadio.vue +75 -67
  18. package/src/lib-components/lists/DynamicTable.vue +43 -20
  19. package/types/composables/forms.d.ts +118 -0
  20. package/types/helpers/Debounce.d.ts +1 -1
  21. package/types/lib-components/forms/BaseInput.vue.d.ts +58 -34
  22. package/types/lib-components/forms/Checkbox.vue.d.ts +50 -29
  23. package/types/lib-components/forms/DateRangePicker.vue.d.ts +71 -39
  24. package/types/lib-components/forms/FieldsetLegend.vue.d.ts +30 -31
  25. package/types/lib-components/forms/InputHelp.vue.d.ts +19 -27
  26. package/types/lib-components/forms/InputLabel.vue.d.ts +28 -32
  27. package/types/lib-components/forms/MultiCheckboxes.vue.d.ts +77 -56
  28. package/types/lib-components/forms/Radio.vue.d.ts +64 -56
  29. package/types/lib-components/forms/RadioCards.vue.d.ts +68 -71
  30. package/types/lib-components/forms/Select.vue.d.ts +55 -44
  31. package/types/lib-components/forms/TextArea.vue.d.ts +50 -32
  32. package/types/lib-components/forms/Toggle.vue.d.ts +29 -24
  33. package/types/lib-components/forms/YesOrNoRadio.vue.d.ts +51 -38
  34. package/types/lib-components/indicators/XYSpinner.vue.d.ts +1 -1
  35. package/types/lib-components/layout/DateFilter.vue.d.ts +28 -20
  36. package/types/lib-components/layout/SidebarLayout.vue.d.ts +38 -32
  37. package/types/lib-components/layout/StackedLayout.vue.d.ts +45 -33
  38. package/types/lib-components/lists/Cards.vue.d.ts +14 -17
  39. package/types/lib-components/lists/DataTable.vue.d.ts +31 -31
  40. package/types/lib-components/lists/DetailList.vue.d.ts +38 -34
  41. package/types/lib-components/lists/DownloadCell.vue.d.ts +18 -15
  42. package/types/lib-components/lists/DynamicTable.vue.d.ts +32 -32
  43. package/types/lib-components/lists/StaticTable.vue.d.ts +21 -0
  44. package/types/lib-components/lists/StaticTableActionSlot.vue.d.ts +27 -0
  45. package/types/lib-components/lists/Table.vue.d.ts +39 -0
  46. package/types/lib-components/lists/TableActionButtons.vue.d.ts +11 -23
  47. package/types/lib-components/navigation/ActionsDropdown.vue.d.ts +11 -23
  48. package/types/lib-components/navigation/ActionsDropdownCallback.vue.d.ts +18 -0
  49. package/types/lib-components/navigation/ActionsDropdownEmit.vue.d.ts +22 -0
  50. package/types/lib-components/navigation/Paginator.vue.d.ts +12 -15
  51. package/types/lib-components/navigation/Steps.vue.d.ts +54 -39
  52. package/types/lib-components/navigation/Tabs.vue.d.ts +34 -34
  53. package/types/lib-components/overlays/ContentModal.vue.d.ts +22 -28
  54. package/types/lib-components/overlays/Modal.vue.d.ts +48 -43
  55. package/types/lib-components/overlays/Popover/Popover.vue.d.ts +23 -31
  56. package/types/lib-components/overlays/Popover/PopoverContent.vue.d.ts +1 -1
  57. package/types/lib-components/overlays/Slideover.vue.d.ts +30 -22
  58. package/types/lib-components/overlays/Tooltip.vue.d.ts +20 -28
@@ -0,0 +1,118 @@
1
+ import { Ref } from "vue";
2
+ export interface Input {
3
+ modelValue?: any;
4
+ error?: string;
5
+ label?: string;
6
+ help?: string;
7
+ placeholder?: string;
8
+ }
9
+ export interface InputOption {
10
+ disabled?: boolean;
11
+ help?: string;
12
+ label: string;
13
+ sublabel?: string;
14
+ value: string | number;
15
+ }
16
+ export interface BooleanInput extends Input {
17
+ modelValue?: boolean | null;
18
+ }
19
+ export interface DateRangeInput extends Input {
20
+ modelValue?: {
21
+ minDate: number;
22
+ maxDate: number;
23
+ };
24
+ maxRange?: number;
25
+ startDate?: number;
26
+ }
27
+ export interface TextLikeInput extends Input {
28
+ modelValue?: string | number | null;
29
+ type: TextInputType;
30
+ }
31
+ export interface TextareaInput extends Input {
32
+ modelValue?: string | number | null;
33
+ }
34
+ export interface OptionsInput extends Input {
35
+ modelValue?: string | number | null;
36
+ options: InputOption[];
37
+ }
38
+ export interface MultiChoiceInput extends Input {
39
+ max?: number;
40
+ min?: number;
41
+ modelValue?: (string | number)[] | null;
42
+ options: InputOption[];
43
+ }
44
+ export interface ColumnedInput {
45
+ columns?: 2 | 3;
46
+ }
47
+ export declare const defaultInputProps: {
48
+ error: string;
49
+ help: string;
50
+ label: string;
51
+ modelValue: undefined;
52
+ placeholder: string;
53
+ };
54
+ export type TextInputType = "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week";
55
+ interface UseInputFieldConfig<T extends Input> {
56
+ props: T;
57
+ targetInput: Ref<HTMLInputElement | null>;
58
+ }
59
+ /**
60
+ * useInputField provides a number of computed values, refs, and methods to support
61
+ * wiring up reactive inputs.
62
+ *
63
+ * @param config UseInputFieldConfig
64
+ */
65
+ export declare const useInputField: <T extends Input>(config: UseInputFieldConfig<T>) => {
66
+ attrs: {
67
+ [x: string]: unknown;
68
+ };
69
+ inputID: import("vue").ComputedRef<string>;
70
+ isDisabled: import("vue").ComputedRef<boolean>;
71
+ isRequired: import("vue").ComputedRef<boolean>;
72
+ nameAttr: import("vue").ComputedRef<string>;
73
+ modelState: Ref<T["modelValue"]>;
74
+ errorState: Ref<T["error"]>;
75
+ onInvalid: (e: Event) => void;
76
+ validate: (e: Event) => void;
77
+ inputValidation: (...args: any[]) => void;
78
+ };
79
+ /**
80
+ * hasAttribute determines if an HTML attribute value exists. The conditions are based on
81
+ * whether or not the attribute will be set on the HTML element.
82
+ * @param attrs
83
+ * @param name
84
+ */
85
+ export declare const hasAttribute: (attrs: Record<string, unknown>, name: string) => boolean;
86
+ /**
87
+ * email validation regex pattern
88
+ * used with input type="email" in the pattern attribute for html5 validation
89
+ * exported as a raw string to support the escape backslash characters
90
+ */
91
+ export declare const emailPattern: string;
92
+ /**
93
+ * password validation regex pattern
94
+ * used with input type="password" in the pattern attribute for html5 validation
95
+ * exported as a raw string to support the escape backslash characters
96
+ */
97
+ export declare const passwordPattern: string;
98
+ /**
99
+ * phone number validation regex pattern
100
+ * used with input type="tel" in the pattern attribute for html5 validation
101
+ */
102
+ export declare const phonePattern: string;
103
+ /**
104
+ * This is used for the .number modifier in v-model
105
+ */
106
+ export declare const looseToNumber: (val: any) => any;
107
+ /**
108
+ * useLocalModel supports a two-way binding between a reactive prop and
109
+ * a local ref. It effectively allows you to do prop mutations in a way that
110
+ * vue considers safe.
111
+ *
112
+ * vue/core has a version of this in it's experimental mode called useModel
113
+ *
114
+ * @param props component props
115
+ * @param name component prop name to sync
116
+ */
117
+ export declare const useLocalModel: <T extends Record<string, any>, K extends keyof T>(props: T, name: K) => Ref<T[K]>;
118
+ export {};
@@ -1,2 +1,2 @@
1
- export declare function debounce(func: () => void, timeout?: number): () => void;
1
+ export declare function debounce(fn: (...args: any[]) => void, wait?: number): (...args: any[]) => void;
2
2
  export declare function debounceLeading(func: () => void, timeout?: number): (...args: any[]) => void;
@@ -1,40 +1,64 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- type: string;
3
- help?: string | undefined;
4
- label?: string | undefined;
5
- modelValue?: string | number | undefined;
6
- }>, {
7
- help: string;
8
- label: string;
9
- modelValue: string;
10
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
- type: string;
12
- help?: string | undefined;
13
- label?: string | undefined;
14
- modelValue?: string | number | undefined;
15
- }>, {
16
- help: string;
17
- label: string;
18
- modelValue: string;
19
- }>>> & {
1
+ declare const _default: import("vue").DefineComponent<{
2
+ label: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ type: {
7
+ type: import("vue").PropType<import("../../composables/forms").TextInputType>;
8
+ required: true;
9
+ };
10
+ modelValue: {
11
+ type: import("vue").PropType<string | number | null>;
12
+ default: undefined;
13
+ };
14
+ error: {
15
+ type: import("vue").PropType<string>;
16
+ default: string;
17
+ };
18
+ help: {
19
+ type: import("vue").PropType<string>;
20
+ default: string;
21
+ };
22
+ placeholder: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ "update:modelValue": (...args: any[]) => void;
28
+ "update:error": (...args: any[]) => void;
29
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
+ label: {
31
+ type: import("vue").PropType<string>;
32
+ default: string;
33
+ };
34
+ type: {
35
+ type: import("vue").PropType<import("../../composables/forms").TextInputType>;
36
+ required: true;
37
+ };
38
+ modelValue: {
39
+ type: import("vue").PropType<string | number | null>;
40
+ default: undefined;
41
+ };
42
+ error: {
43
+ type: import("vue").PropType<string>;
44
+ default: string;
45
+ };
46
+ help: {
47
+ type: import("vue").PropType<string>;
48
+ default: string;
49
+ };
50
+ placeholder: {
51
+ type: import("vue").PropType<string>;
52
+ default: string;
53
+ };
54
+ }>> & {
20
55
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
56
+ "onUpdate:error"?: ((...args: any[]) => any) | undefined;
21
57
  }, {
22
58
  label: string;
59
+ modelValue: string | number | null;
60
+ error: string;
23
61
  help: string;
24
- modelValue: string | number;
62
+ placeholder: string;
25
63
  }, {}>;
26
64
  export default _default;
27
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
- type __VLS_TypePropsToRuntimeProps<T> = {
29
- [K in keyof T]-?: {} extends Pick<T, K> ? {
30
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
- } : {
32
- type: import('vue').PropType<T[K]>;
33
- required: true;
34
- };
35
- };
36
- type __VLS_WithDefaults<P, D> = {
37
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
38
- default: D[K];
39
- } : P[K];
40
- };
@@ -1,35 +1,56 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- label?: string | undefined;
3
- help?: string | undefined;
4
- modelValue: boolean;
5
- }>, {
6
- label: string;
7
- help: string;
8
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
- label?: string | undefined;
10
- help?: string | undefined;
11
- modelValue: boolean;
12
- }>, {
13
- label: string;
14
- help: string;
15
- }>>> & {
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
+ error: {
11
+ type: import("vue").PropType<string>;
12
+ default: string;
13
+ };
14
+ help: {
15
+ type: import("vue").PropType<string>;
16
+ default: string;
17
+ };
18
+ placeholder: {
19
+ type: import("vue").PropType<string>;
20
+ default: string;
21
+ };
22
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ "update:modelValue": (...args: any[]) => void;
24
+ "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<boolean | null>;
32
+ default: undefined;
33
+ };
34
+ error: {
35
+ type: import("vue").PropType<string>;
36
+ default: string;
37
+ };
38
+ help: {
39
+ type: import("vue").PropType<string>;
40
+ default: string;
41
+ };
42
+ placeholder: {
43
+ type: import("vue").PropType<string>;
44
+ default: string;
45
+ };
46
+ }>> & {
16
47
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
48
+ "onUpdate:error"?: ((...args: any[]) => any) | undefined;
17
49
  }, {
18
50
  label: string;
51
+ modelValue: boolean | null;
52
+ error: string;
19
53
  help: string;
54
+ placeholder: string;
20
55
  }, {}>;
21
56
  export default _default;
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToRuntimeProps<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: import('vue').PropType<T[K]>;
28
- required: true;
29
- };
30
- };
31
- type __VLS_WithDefaults<P, D> = {
32
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
33
- default: D[K];
34
- } : P[K];
35
- };
@@ -1,52 +1,84 @@
1
1
  import "flatpickr/dist/flatpickr.min.css";
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: import("vue").DefineComponent<{
3
+ label: {
4
+ type: import("vue").PropType<string>;
5
+ default: string;
6
+ };
3
7
  modelValue: {
4
- minDate: number;
5
- maxDate: number;
8
+ type: import("vue").PropType<{
9
+ minDate: number;
10
+ maxDate: number;
11
+ }>;
12
+ default: () => {
13
+ maxDate: number;
14
+ minDate: number;
15
+ };
6
16
  };
7
- maxRange?: number | undefined;
8
- startDate?: number | undefined;
9
- label?: string | undefined;
10
- help?: string | undefined;
11
- }>, {
12
- maxRange: number;
13
- startDate: number;
17
+ error: {
18
+ type: import("vue").PropType<string>;
19
+ default: string;
20
+ };
21
+ help: {
22
+ type: import("vue").PropType<string>;
23
+ default: string;
24
+ };
25
+ placeholder: {
26
+ type: import("vue").PropType<string>;
27
+ default: string;
28
+ };
29
+ maxRange: {
30
+ type: import("vue").PropType<number>;
31
+ default: number;
32
+ };
33
+ startDate: {
34
+ type: import("vue").PropType<number>;
35
+ default: number;
36
+ };
37
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
38
+ label: {
39
+ type: import("vue").PropType<string>;
40
+ default: string;
41
+ };
42
+ modelValue: {
43
+ type: import("vue").PropType<{
44
+ minDate: number;
45
+ maxDate: number;
46
+ }>;
47
+ default: () => {
48
+ maxDate: number;
49
+ minDate: number;
50
+ };
51
+ };
52
+ error: {
53
+ type: import("vue").PropType<string>;
54
+ default: string;
55
+ };
56
+ help: {
57
+ type: import("vue").PropType<string>;
58
+ default: string;
59
+ };
60
+ placeholder: {
61
+ type: import("vue").PropType<string>;
62
+ default: string;
63
+ };
64
+ maxRange: {
65
+ type: import("vue").PropType<number>;
66
+ default: number;
67
+ };
68
+ startDate: {
69
+ type: import("vue").PropType<number>;
70
+ default: number;
71
+ };
72
+ }>>, {
14
73
  label: string;
15
- help: string;
16
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
74
  modelValue: {
18
75
  minDate: number;
19
76
  maxDate: number;
20
77
  };
21
- maxRange?: number | undefined;
22
- startDate?: number | undefined;
23
- label?: string | undefined;
24
- help?: string | undefined;
25
- }>, {
26
- maxRange: number;
27
- startDate: number;
28
- label: string;
29
- help: string;
30
- }>>> & {
31
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
32
- }, {
33
- label: string;
78
+ error: string;
34
79
  help: string;
80
+ placeholder: string;
35
81
  maxRange: number;
36
82
  startDate: number;
37
83
  }, {}>;
38
84
  export default _default;
39
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
- type __VLS_TypePropsToRuntimeProps<T> = {
41
- [K in keyof T]-?: {} extends Pick<T, K> ? {
42
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
43
- } : {
44
- type: import('vue').PropType<T[K]>;
45
- required: true;
46
- };
47
- };
48
- type __VLS_WithDefaults<P, D> = {
49
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
50
- default: D[K];
51
- } : P[K];
52
- };
@@ -1,33 +1,32 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- tag?: string | undefined;
3
- }>, {
4
- tag: string;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
- tag?: string | undefined;
7
- }>, {
8
- tag: string;
9
- }>>>, {
10
- tag: string;
11
- }, {}>, {
12
- default: (_: {}) => any;
13
- }>;
14
- export default _default;
15
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
- type __VLS_TypePropsToRuntimeProps<T> = {
17
- [K in keyof T]-?: {} extends Pick<T, K> ? {
18
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
- } : {
20
- type: import('vue').PropType<T[K]>;
21
- required: true;
1
+ declare const _default: import("vue").DefineComponent<{
2
+ label: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ required: {
7
+ type: import("vue").PropType<boolean>;
8
+ default: boolean;
22
9
  };
23
- };
24
- type __VLS_WithDefaults<P, D> = {
25
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
26
- default: D[K];
27
- } : P[K];
28
- };
29
- type __VLS_WithTemplateSlots<T, S> = T & {
30
- new (): {
31
- $slots: S;
10
+ tag: {
11
+ type: import("vue").PropType<string>;
12
+ default: string;
32
13
  };
33
- };
14
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ label: {
16
+ type: import("vue").PropType<string>;
17
+ default: string;
18
+ };
19
+ required: {
20
+ type: import("vue").PropType<boolean>;
21
+ default: boolean;
22
+ };
23
+ tag: {
24
+ type: import("vue").PropType<string>;
25
+ default: string;
26
+ };
27
+ }>>, {
28
+ label: string;
29
+ required: boolean;
30
+ tag: string;
31
+ }, {}>;
32
+ export default _default;
@@ -1,31 +1,23 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- tag?: string | undefined;
3
- text?: string | undefined;
4
- }>, {
5
- tag: string;
6
- text: string;
7
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
- tag?: string | undefined;
9
- text?: string | undefined;
10
- }>, {
11
- tag: string;
12
- text: string;
13
- }>>>, {
1
+ declare const _default: import("vue").DefineComponent<{
2
+ tag: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ text: {
7
+ type: import("vue").PropType<string>;
8
+ default: string;
9
+ };
10
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
+ tag: {
12
+ type: import("vue").PropType<string>;
13
+ default: string;
14
+ };
15
+ text: {
16
+ type: import("vue").PropType<string>;
17
+ default: string;
18
+ };
19
+ }>>, {
14
20
  tag: string;
15
21
  text: string;
16
22
  }, {}>;
17
23
  export default _default;
18
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
- type __VLS_TypePropsToRuntimeProps<T> = {
20
- [K in keyof T]-?: {} extends Pick<T, K> ? {
21
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
- } : {
23
- type: import('vue').PropType<T[K]>;
24
- required: true;
25
- };
26
- };
27
- type __VLS_WithDefaults<P, D> = {
28
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
29
- default: D[K];
30
- } : P[K];
31
- };
@@ -1,36 +1,32 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- disabled?: boolean | undefined;
3
- label?: string | undefined;
4
- tag?: string | undefined;
5
- }>, {
6
- disabled: boolean;
7
- label: string;
8
- tag: string;
9
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
- disabled?: boolean | undefined;
11
- label?: string | undefined;
12
- tag?: string | undefined;
13
- }>, {
14
- disabled: boolean;
15
- label: string;
16
- tag: string;
17
- }>>>, {
1
+ declare const _default: import("vue").DefineComponent<{
2
+ label: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ required: {
7
+ type: import("vue").PropType<boolean>;
8
+ default: boolean;
9
+ };
10
+ tag: {
11
+ type: import("vue").PropType<string>;
12
+ default: string;
13
+ };
14
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ label: {
16
+ type: import("vue").PropType<string>;
17
+ default: string;
18
+ };
19
+ required: {
20
+ type: import("vue").PropType<boolean>;
21
+ default: boolean;
22
+ };
23
+ tag: {
24
+ type: import("vue").PropType<string>;
25
+ default: string;
26
+ };
27
+ }>>, {
18
28
  label: string;
19
- disabled: boolean;
29
+ required: boolean;
20
30
  tag: string;
21
31
  }, {}>;
22
32
  export default _default;
23
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
- type __VLS_TypePropsToRuntimeProps<T> = {
25
- [K in keyof T]-?: {} extends Pick<T, K> ? {
26
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
- } : {
28
- type: import('vue').PropType<T[K]>;
29
- required: true;
30
- };
31
- };
32
- type __VLS_WithDefaults<P, D> = {
33
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
34
- default: D[K];
35
- } : P[K];
36
- };