@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xy-planning-network/trees",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "repository": "github:xy-planning-network/trees",
@@ -40,19 +40,19 @@
40
40
  "@tailwindcss/typography": "^0.5.7",
41
41
  "@types/node": "^18.15.11",
42
42
  "@vitejs/plugin-vue": "^4.2.3",
43
- "@vue/eslint-config-prettier": "^7.1.0",
44
- "@vue/eslint-config-typescript": "^11.0.3",
43
+ "@vue/eslint-config-prettier": "~8.0.0",
44
+ "@vue/eslint-config-typescript": "~13.0.0",
45
45
  "autoprefixer": "^10.4.14",
46
46
  "copyfiles": "^2.4.1",
47
47
  "eslint": "^8.42.0",
48
48
  "eslint-plugin-vue": "^9.14.1",
49
49
  "postcss": "^8.4.21",
50
- "prettier": "^2.8.7",
50
+ "prettier": "^3.0.3",
51
51
  "tailwindcss": "^3.3.3",
52
52
  "tsc-alias": "^1.8.5",
53
- "typescript": "^5.0.4",
53
+ "typescript": "~5.4.5",
54
54
  "vite": "^4.3.9",
55
- "vue-tsc": "^1.8.18"
55
+ "vue-tsc": "^2.0.29"
56
56
  },
57
57
  "dependencies": {
58
58
  "@floating-ui/vue": "^1.0.1",
@@ -70,6 +70,6 @@
70
70
  "vue": "^3.3.4"
71
71
  },
72
72
  "engines": {
73
- "node": ">=12"
73
+ "node": ">=20"
74
74
  }
75
75
  }
@@ -1,51 +1,20 @@
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<"number" | "time" | "text" | "search" | "date" | "email" | "month" | "password" | "tel" | "url" | "week">;
8
- required: true;
9
- };
10
- modelValue: {
11
- type: import("vue").PropType<string | number | null>;
12
- default: undefined;
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
- }, {
1
+ import type { TextLikeInput } from "../../composables/forms";
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TextLikeInput>, {
3
+ help: string;
4
+ label: string;
5
+ modelValue: undefined;
6
+ placeholder: string;
7
+ }>, {
23
8
  input: import("vue").Ref<HTMLInputElement | null>;
24
9
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
10
  "update:modelValue": (...args: any[]) => void;
26
11
  "update:error": (...args: any[]) => void;
27
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
- label: {
29
- type: import("vue").PropType<string>;
30
- default: string;
31
- };
32
- type: {
33
- type: import("vue").PropType<"number" | "time" | "text" | "search" | "date" | "email" | "month" | "password" | "tel" | "url" | "week">;
34
- required: true;
35
- };
36
- modelValue: {
37
- type: import("vue").PropType<string | number | null>;
38
- default: undefined;
39
- };
40
- help: {
41
- type: import("vue").PropType<string>;
42
- default: string;
43
- };
44
- placeholder: {
45
- type: import("vue").PropType<string>;
46
- default: string;
47
- };
48
- }>> & {
12
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TextLikeInput>, {
13
+ help: string;
14
+ label: string;
15
+ modelValue: undefined;
16
+ placeholder: string;
17
+ }>>> & {
49
18
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
50
19
  "onUpdate:error"?: ((...args: any[]) => any) | undefined;
51
20
  }, {
@@ -55,3 +24,20 @@ declare const _default: import("vue").DefineComponent<{
55
24
  placeholder: string;
56
25
  }, {}>;
57
26
  export default _default;
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
35
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
+ type __VLS_TypePropsToOption<T> = {
37
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
38
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
+ } : {
40
+ type: import('vue').PropType<T[K]>;
41
+ required: true;
42
+ };
43
+ };
@@ -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
+ };
@@ -1,67 +1,26 @@
1
1
  import "flatpickr/dist/flatpickr.min.css";
2
- declare const _default: import("vue").DefineComponent<{
3
- label: {
4
- type: import("vue").PropType<string>;
5
- default: string;
6
- };
7
- modelValue: {
8
- type: import("vue").PropType<{
9
- minDate: number;
10
- maxDate: number;
11
- }>;
12
- default: () => {
13
- maxDate: number;
14
- minDate: number;
15
- };
16
- };
17
- help: {
18
- type: import("vue").PropType<string>;
19
- default: string;
20
- };
21
- placeholder: {
22
- type: import("vue").PropType<string>;
23
- default: string;
24
- };
25
- maxRange: {
26
- type: import("vue").PropType<number>;
27
- default: number;
28
- };
29
- startDate: {
30
- type: import("vue").PropType<number>;
31
- default: number;
32
- };
33
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
- label: {
35
- type: import("vue").PropType<string>;
36
- default: string;
37
- };
38
- modelValue: {
39
- type: import("vue").PropType<{
40
- minDate: number;
41
- maxDate: number;
42
- }>;
43
- default: () => {
44
- maxDate: number;
45
- minDate: number;
46
- };
47
- };
48
- help: {
49
- type: import("vue").PropType<string>;
50
- default: string;
51
- };
52
- placeholder: {
53
- type: import("vue").PropType<string>;
54
- default: string;
55
- };
56
- maxRange: {
57
- type: import("vue").PropType<number>;
58
- default: number;
2
+ import type { DateRangeInput } from "../../composables/forms";
3
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<DateRangeInput>, {
4
+ maxRange: number;
5
+ modelValue: () => {
6
+ maxDate: number;
7
+ minDate: number;
59
8
  };
60
- startDate: {
61
- type: import("vue").PropType<number>;
62
- default: number;
9
+ placeholder: string;
10
+ startDate: number;
11
+ help: string;
12
+ label: string;
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<DateRangeInput>, {
14
+ maxRange: number;
15
+ modelValue: () => {
16
+ maxDate: number;
17
+ minDate: number;
63
18
  };
64
- }>>, {
19
+ placeholder: string;
20
+ startDate: number;
21
+ help: string;
22
+ label: string;
23
+ }>>>, {
65
24
  label: string;
66
25
  modelValue: {
67
26
  minDate: number;
@@ -73,3 +32,20 @@ declare const _default: import("vue").DefineComponent<{
73
32
  startDate: number;
74
33
  }, {}>;
75
34
  export default _default;
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
+ default: D[K];
38
+ }> : P[K];
39
+ };
40
+ type __VLS_Prettify<T> = {
41
+ [K in keyof T]: T[K];
42
+ } & {};
43
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
+ type __VLS_TypePropsToOption<T> = {
45
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
46
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
47
+ } : {
48
+ type: import('vue').PropType<T[K]>;
49
+ required: true;
50
+ };
51
+ };
@@ -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 | 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 { DateTimeInput } from "../../composables/forms";
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<DateTimeInput>, {
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 | 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<DateTimeInput>, {
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,32 +1,39 @@
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
- }>>, {
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ label?: string | undefined;
3
+ required?: boolean | undefined;
4
+ tag?: string | undefined;
5
+ }>, {
6
+ label: string;
7
+ required: boolean;
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_TypePropsToOption<{
10
+ label?: string | undefined;
11
+ required?: boolean | undefined;
12
+ tag?: string | undefined;
13
+ }>, {
14
+ label: string;
15
+ required: boolean;
16
+ tag: string;
17
+ }>>>, {
28
18
  label: string;
29
19
  required: boolean;
30
20
  tag: string;
31
21
  }, {}>;
32
22
  export default _default;
23
+ type __VLS_WithDefaults<P, D> = {
24
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
+ default: D[K];
26
+ }> : P[K];
27
+ };
28
+ type __VLS_Prettify<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToOption<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: import('vue').PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
@@ -1,14 +1,29 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- text: {
3
- type: import("vue").PropType<string>;
4
- default: string;
5
- };
6
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
- text: {
8
- type: import("vue").PropType<string>;
9
- default: string;
10
- };
11
- }>>, {
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ text?: string | undefined;
3
+ }>, {
4
+ text: 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_TypePropsToOption<{
6
+ text?: string | undefined;
7
+ }>, {
8
+ text: string;
9
+ }>>>, {
12
10
  text: string;
13
11
  }, {}>;
14
12
  export default _default;
13
+ type __VLS_WithDefaults<P, D> = {
14
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
15
+ default: D[K];
16
+ }> : P[K];
17
+ };
18
+ type __VLS_Prettify<T> = {
19
+ [K in keyof T]: T[K];
20
+ } & {};
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToOption<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
@@ -1,23 +1,34 @@
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
- }>>, {
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ tag?: string | undefined;
3
+ text?: string | undefined;
4
+ }>, {
20
5
  tag: string;
21
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_TypePropsToOption<{
8
+ tag?: string | undefined;
9
+ text?: string | undefined;
10
+ }>, {
11
+ tag: string;
12
+ text: string;
13
+ }>>>, {
14
+ text: string;
15
+ tag: string;
22
16
  }, {}>;
23
17
  export default _default;
18
+ type __VLS_WithDefaults<P, D> = {
19
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
20
+ default: D[K];
21
+ }> : P[K];
22
+ };
23
+ type __VLS_Prettify<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToOption<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
@@ -1,32 +1,39 @@
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
- }>>, {
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ label?: string | undefined;
3
+ required?: boolean | undefined;
4
+ tag?: string | undefined;
5
+ }>, {
6
+ label: string;
7
+ required: boolean;
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_TypePropsToOption<{
10
+ label?: string | undefined;
11
+ required?: boolean | undefined;
12
+ tag?: string | undefined;
13
+ }>, {
14
+ label: string;
15
+ required: boolean;
16
+ tag: string;
17
+ }>>>, {
28
18
  label: string;
29
19
  required: boolean;
30
20
  tag: string;
31
21
  }, {}>;
32
22
  export default _default;
23
+ type __VLS_WithDefaults<P, D> = {
24
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
+ default: D[K];
26
+ }> : P[K];
27
+ };
28
+ type __VLS_Prettify<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToOption<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: import('vue').PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };