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

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 (29) hide show
  1. package/dist/trees.es.js +2780 -2715
  2. package/dist/trees.umd.js +9 -9
  3. package/package.json +1 -1
  4. package/src/index.css +0 -16
  5. package/src/lib-components/forms/BaseInput.vue +49 -67
  6. package/src/lib-components/forms/Checkbox.vue +22 -16
  7. package/src/lib-components/forms/DateRangePicker.vue +11 -7
  8. package/src/lib-components/forms/FieldsetLegend.vue +7 -7
  9. package/src/lib-components/forms/InputHelp.vue +2 -4
  10. package/src/lib-components/forms/InputLabel.vue +5 -10
  11. package/src/lib-components/forms/MultiCheckboxes.vue +35 -43
  12. package/src/lib-components/forms/Radio.vue +36 -45
  13. package/src/lib-components/forms/RadioCards.vue +36 -22
  14. package/src/lib-components/forms/Select.vue +44 -38
  15. package/src/lib-components/forms/TextArea.vue +33 -34
  16. package/src/lib-components/forms/Toggle.vue +58 -18
  17. package/src/lib-components/forms/YesOrNoRadio.vue +42 -48
  18. package/types/composables/forms.d.ts +10 -8
  19. package/types/helpers/Debounce.d.ts +1 -1
  20. package/types/lib-components/forms/BaseInput.vue.d.ts +2 -2
  21. package/types/lib-components/forms/FieldsetLegend.vue.d.ts +7 -9
  22. package/types/lib-components/forms/InputLabel.vue.d.ts +0 -5
  23. package/types/lib-components/forms/MultiCheckboxes.vue.d.ts +10 -17
  24. package/types/lib-components/forms/Radio.vue.d.ts +10 -17
  25. package/types/lib-components/forms/RadioCards.vue.d.ts +8 -8
  26. package/types/lib-components/forms/Select.vue.d.ts +0 -5
  27. package/types/lib-components/forms/Toggle.vue.d.ts +14 -4
  28. package/types/lib-components/forms/YesOrNoRadio.vue.d.ts +5 -10
  29. package/types/lib-components/overlays/Modal.vue.d.ts +1 -1
@@ -1,22 +1,17 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- disabled?: boolean | undefined;
3
2
  label?: string | undefined;
4
3
  tag?: string | undefined;
5
4
  }>, {
6
- disabled: boolean;
7
5
  label: string;
8
6
  tag: string;
9
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<{
10
- disabled?: boolean | undefined;
11
8
  label?: string | undefined;
12
9
  tag?: string | undefined;
13
10
  }>, {
14
- disabled: boolean;
15
11
  label: string;
16
12
  tag: string;
17
13
  }>>>, {
18
14
  label: string;
19
- disabled: boolean;
20
15
  tag: string;
21
16
  }, {}>;
22
17
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  options: {
3
3
  disabled?: boolean | undefined;
4
4
  help?: string | undefined;
@@ -6,12 +6,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
6
6
  value: string | number;
7
7
  }[];
8
8
  help?: string | undefined;
9
- legend?: string | undefined;
9
+ label?: string | undefined;
10
10
  modelValue: (string | number)[];
11
- columns?: 2 | 3 | 4 | undefined;
11
+ columns?: 2 | 3 | undefined;
12
12
  }>, {
13
13
  help: string;
14
- legend: string;
14
+ label: string;
15
15
  columns: undefined;
16
16
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  "update:modelValue": (modelValue: (string | number)[]) => void;
@@ -23,22 +23,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
23
  value: string | number;
24
24
  }[];
25
25
  help?: string | undefined;
26
- legend?: string | undefined;
26
+ label?: string | undefined;
27
27
  modelValue: (string | number)[];
28
- columns?: 2 | 3 | 4 | undefined;
28
+ columns?: 2 | 3 | undefined;
29
29
  }>, {
30
30
  help: string;
31
- legend: string;
31
+ label: string;
32
32
  columns: undefined;
33
33
  }>>> & {
34
34
  "onUpdate:modelValue"?: ((modelValue: (string | number)[]) => any) | undefined;
35
35
  }, {
36
- legend: string;
36
+ label: string;
37
37
  help: string;
38
- columns: 2 | 3 | 4;
39
- }, {}>, {
40
- legend: (_: {}) => any;
41
- }>;
38
+ columns: 2 | 3;
39
+ }, {}>;
42
40
  export default _default;
43
41
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
42
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -54,8 +52,3 @@ type __VLS_WithDefaults<P, D> = {
54
52
  default: D[K];
55
53
  } : P[K];
56
54
  };
57
- type __VLS_WithTemplateSlots<T, S> = T & {
58
- new (): {
59
- $slots: S;
60
- };
61
- };
@@ -1,4 +1,4 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  options: {
3
3
  disabled?: boolean;
4
4
  help?: string;
@@ -6,12 +6,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
6
6
  value: string | number;
7
7
  }[];
8
8
  help?: string | undefined;
9
- legend?: string | undefined;
9
+ label?: string | undefined;
10
10
  modelValue?: string | number | undefined;
11
- columns?: 2 | 3 | 4 | undefined;
11
+ columns?: 2 | 3 | undefined;
12
12
  }>, {
13
13
  help: string;
14
- legend: string;
14
+ label: string;
15
15
  modelValue: undefined;
16
16
  columns: undefined;
17
17
  }>, {}, 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<{
@@ -22,24 +22,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
22
22
  value: string | number;
23
23
  }[];
24
24
  help?: string | undefined;
25
- legend?: string | undefined;
25
+ label?: string | undefined;
26
26
  modelValue?: string | number | undefined;
27
- columns?: 2 | 3 | 4 | undefined;
27
+ columns?: 2 | 3 | undefined;
28
28
  }>, {
29
29
  help: string;
30
- legend: string;
30
+ label: string;
31
31
  modelValue: undefined;
32
32
  columns: undefined;
33
33
  }>>> & {
34
34
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
35
35
  }, {
36
- legend: string;
36
+ label: string;
37
37
  help: string;
38
38
  modelValue: string | number;
39
- columns: 2 | 3 | 4;
40
- }, {}>, {
41
- legend: (_: {}) => any;
42
- }>;
39
+ columns: 2 | 3;
40
+ }, {}>;
43
41
  export default _default;
44
42
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
43
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -55,8 +53,3 @@ type __VLS_WithDefaults<P, D> = {
55
53
  default: D[K];
56
54
  } : P[K];
57
55
  };
58
- type __VLS_WithTemplateSlots<T, S> = T & {
59
- new (): {
60
- $slots: S;
61
- };
62
- };
@@ -1,7 +1,7 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  columns?: 2 | 3 | undefined;
3
3
  help?: string | undefined;
4
- legend?: string | undefined;
4
+ label?: string | undefined;
5
5
  modelValue?: (string | number) | undefined;
6
6
  options: {
7
7
  disabled?: boolean | undefined;
@@ -13,14 +13,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
13
13
  }>, {
14
14
  columns: undefined;
15
15
  help: string;
16
- legend: string;
16
+ label: string;
17
17
  modelValue: undefined;
18
18
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
19
  "update:modelValue": (modelValue: string | number) => void;
20
20
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
21
21
  columns?: 2 | 3 | undefined;
22
22
  help?: string | undefined;
23
- legend?: string | undefined;
23
+ label?: string | undefined;
24
24
  modelValue?: (string | number) | undefined;
25
25
  options: {
26
26
  disabled?: boolean | undefined;
@@ -32,20 +32,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
32
32
  }>, {
33
33
  columns: undefined;
34
34
  help: string;
35
- legend: string;
35
+ label: string;
36
36
  modelValue: undefined;
37
37
  }>>> & {
38
38
  "onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
39
39
  }, {
40
- legend: string;
40
+ label: string;
41
41
  help: string;
42
42
  modelValue: string | number;
43
43
  columns: 2 | 3;
44
44
  }, {}>, {
45
45
  sublabel: (_: {
46
- active: any;
47
- checked: any;
48
- disabled: any;
46
+ active: boolean;
47
+ checked: boolean;
48
+ disabled: boolean;
49
49
  option: {
50
50
  disabled?: boolean | undefined;
51
51
  help?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- design?: "standard" | "compressed" | undefined;
3
2
  label?: string | undefined;
4
3
  help?: string | undefined;
5
4
  placeholder?: string | undefined;
@@ -9,12 +8,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
9
8
  }[];
10
9
  modelValue: string | number | undefined;
11
10
  }>, {
12
- design: string;
13
11
  label: string;
14
12
  help: string;
15
13
  placeholder: string;
16
14
  }>, {}, 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
- design?: "standard" | "compressed" | undefined;
18
15
  label?: string | undefined;
19
16
  help?: string | undefined;
20
17
  placeholder?: string | undefined;
@@ -24,7 +21,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
24
21
  }[];
25
22
  modelValue: string | number | undefined;
26
23
  }>, {
27
- design: string;
28
24
  label: string;
29
25
  help: string;
30
26
  placeholder: string;
@@ -34,7 +30,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
34
30
  label: string;
35
31
  help: string;
36
32
  placeholder: string;
37
- design: "standard" | "compressed";
38
33
  }, {}>;
39
34
  export default _default;
40
35
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,14 +1,24 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- modelValue: boolean;
2
+ modelValue?: boolean | undefined;
3
+ label?: string | undefined;
4
+ help?: string | undefined;
3
5
  }>, {
4
- modelValue: boolean;
6
+ modelValue: undefined;
7
+ label: string;
8
+ help: string;
5
9
  }>, {}, 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<{
6
- modelValue: boolean;
10
+ modelValue?: boolean | undefined;
11
+ label?: string | undefined;
12
+ help?: string | undefined;
7
13
  }>, {
8
- modelValue: boolean;
14
+ modelValue: undefined;
15
+ label: string;
16
+ help: string;
9
17
  }>>> & {
10
18
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
11
19
  }, {
20
+ label: string;
21
+ help: string;
12
22
  modelValue: boolean;
13
23
  }, {}>;
14
24
  export default _default;
@@ -1,30 +1,25 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  modelValue?: boolean | undefined;
3
3
  help?: string | undefined;
4
- legend?: string | undefined;
5
- name?: string | undefined;
4
+ label?: string | undefined;
6
5
  }>, {
7
6
  modelValue: undefined;
8
7
  help: string;
9
- legend: string;
10
- name: string;
8
+ label: string;
11
9
  }>, {}, 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<{
12
10
  modelValue?: boolean | undefined;
13
11
  help?: string | undefined;
14
- legend?: string | undefined;
15
- name?: string | undefined;
12
+ label?: string | undefined;
16
13
  }>, {
17
14
  modelValue: undefined;
18
15
  help: string;
19
- legend: string;
20
- name: string;
16
+ label: string;
21
17
  }>>> & {
22
18
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
23
19
  }, {
24
- legend: string;
20
+ label: string;
25
21
  help: string;
26
22
  modelValue: boolean;
27
- name: string;
28
23
  }, {}>;
29
24
  export default _default;
30
25
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -28,8 +28,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
28
28
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
29
29
  onSubmit?: (() => any) | undefined;
30
30
  }, {
31
- disabled: boolean;
32
31
  title: string;
32
+ disabled: boolean;
33
33
  destructive: boolean;
34
34
  submitText: string;
35
35
  }, {}>, {