@maltjoy/core-vue 1.0.0-alpha.3 → 1.0.0-alpha.5

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 (39) hide show
  1. package/dist/components/JoyButton/JoyButton.types.d.ts +3 -3
  2. package/dist/components/JoyButton/JoyButton.vue.d.ts +6 -6
  3. package/dist/components/JoyCheckbox/JoyCheckbox.vue.d.ts +91 -0
  4. package/dist/components/JoyCheckbox/tests/JoyCheckbox.spec.d.ts +1 -0
  5. package/dist/components/JoyFormError/JoyFormError.vue.d.ts +23 -0
  6. package/dist/components/JoyFormError/tests/JoyFormError.spec.d.ts +1 -0
  7. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +3 -0
  8. package/dist/components/JoyHighlight/JoyHighlight.vue.d.ts +48 -0
  9. package/dist/components/JoyHighlight/tests/JoyHighlight.spec.d.ts +1 -0
  10. package/dist/components/JoyInput/JoyInput.types.d.ts +3 -0
  11. package/dist/components/JoyInput/JoyInput.vue.d.ts +54 -33
  12. package/dist/components/JoyLabel/JoyLabel.vue.d.ts +1 -1
  13. package/dist/components/JoyRadio/JoyRadio.types.d.ts +2 -0
  14. package/dist/components/JoyRadio/JoyRadio.vue.d.ts +37 -13
  15. package/dist/components/JoyRadioGroup/JoyRadioGroup.vue.d.ts +0 -15
  16. package/dist/components/JoySelect/JoySelect.vue.d.ts +30 -43
  17. package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +2 -0
  18. package/dist/components/JoyTextarea/JoyTextarea.vue.d.ts +111 -0
  19. package/dist/components/JoyToggle/JoyToggle.vue.d.ts +73 -0
  20. package/dist/components/JoyToggle/tests/JoyToggle.spec.d.ts +1 -0
  21. package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +8 -0
  22. package/dist/components/JoyWrapper/JoyWrapper.vue.d.ts +9 -9
  23. package/dist/components/index.d.ts +6 -1
  24. package/dist/composables/index.d.ts +1 -0
  25. package/dist/composables/props.d.ts +67 -0
  26. package/dist/helpers/index.d.ts +2 -0
  27. package/dist/joy-vue.js +618 -321
  28. package/dist/joy-vue.umd.cjs +1 -1
  29. package/dist/stories/fixtures/index.d.ts +1 -0
  30. package/dist/style.css +1 -1
  31. package/dist/tests/composables/prop.spec.d.ts +1 -0
  32. package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +62 -0
  33. package/dist/tests/composables/test-components/GenericFormProps.vue.d.ts +44 -0
  34. package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +66 -0
  35. package/dist/tests/helpers.spec.d.ts +1 -0
  36. package/dist/types/index.d.ts +1 -0
  37. package/joy-components.d.ts +15 -10
  38. package/package.json +69 -50
  39. package/dist/components/JoySelect/JoySelect.types.d.ts +0 -2
@@ -0,0 +1,111 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ autogrow: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ minlength: {
7
+ type: NumberConstructor;
8
+ };
9
+ minlengthLabel: StringConstructor;
10
+ maxlength: {
11
+ type: NumberConstructor;
12
+ };
13
+ modelValue: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ label: StringConstructor;
18
+ labelSize: {
19
+ type: import("vue").PropType<"small" | "large" | "medium">;
20
+ default: string;
21
+ };
22
+ optionalLabel: StringConstructor;
23
+ requiredMark: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ disabled: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ id: {
32
+ type: StringConstructor;
33
+ };
34
+ invalid: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ name: {
39
+ type: StringConstructor;
40
+ };
41
+ required: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ }, {
46
+ isInvalid: import("vue").Ref<boolean>;
47
+ valueOverMaxlength: import("vue").ComputedRef<boolean>;
48
+ valueUnderMinlength: import("vue").ComputedRef<boolean>;
49
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
50
+ autogrow: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ minlength: {
55
+ type: NumberConstructor;
56
+ };
57
+ minlengthLabel: StringConstructor;
58
+ maxlength: {
59
+ type: NumberConstructor;
60
+ };
61
+ modelValue: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ label: StringConstructor;
66
+ labelSize: {
67
+ type: import("vue").PropType<"small" | "large" | "medium">;
68
+ default: string;
69
+ };
70
+ optionalLabel: StringConstructor;
71
+ requiredMark: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ disabled: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ id: {
80
+ type: StringConstructor;
81
+ };
82
+ invalid: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ name: {
87
+ type: StringConstructor;
88
+ };
89
+ required: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ }>> & {
94
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
95
+ }, {
96
+ disabled: boolean;
97
+ invalid: boolean;
98
+ required: boolean;
99
+ modelValue: string;
100
+ labelSize: "small" | "large" | "medium";
101
+ requiredMark: boolean;
102
+ autogrow: boolean;
103
+ }>, {
104
+ default: (_: {}) => any;
105
+ }>;
106
+ export default _default;
107
+ type __VLS_WithTemplateSlots<T, S> = T & {
108
+ new (): {
109
+ $slots: S;
110
+ };
111
+ };
@@ -0,0 +1,73 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ label: StringConstructor;
3
+ disabled: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ id: {
8
+ type: StringConstructor;
9
+ };
10
+ invalid: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ name: {
15
+ type: StringConstructor;
16
+ };
17
+ required: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ modelValue: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ value: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
+ label: StringConstructor;
31
+ disabled: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ id: {
36
+ type: StringConstructor;
37
+ };
38
+ invalid: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ name: {
43
+ type: StringConstructor;
44
+ };
45
+ required: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ modelValue: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ value: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ }>> & {
58
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
59
+ }, {
60
+ disabled: boolean;
61
+ invalid: boolean;
62
+ required: boolean;
63
+ modelValue: boolean;
64
+ value: string;
65
+ }>, {
66
+ default: (_: {}) => any;
67
+ }>;
68
+ export default _default;
69
+ type __VLS_WithTemplateSlots<T, S> = T & {
70
+ new (): {
71
+ $slots: S;
72
+ };
73
+ };
@@ -0,0 +1,8 @@
1
+ export declare const JUSTIFY_WRAPPER: readonly ["center", "space-between", "flex-start", "flex-end"];
2
+ export type JustifyWrapper = (typeof JUSTIFY_WRAPPER)[number];
3
+ export declare const ALIGN_WRAPPER: readonly ["center", "flex-start", "flex-end", "stretch"];
4
+ export type AlignWrapper = (typeof ALIGN_WRAPPER)[number];
5
+ export declare const DIRECTION_WRAPPER: readonly ["row", "column"];
6
+ export type DirectionWrapper = (typeof DIRECTION_WRAPPER)[number];
7
+ export declare const WRAP_WRAPPER: readonly ["nowrap", "wrap"];
8
+ export type WrapWrapper = (typeof WRAP_WRAPPER)[number];
@@ -1,15 +1,15 @@
1
1
  import { PropType } from 'vue';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  justify: {
4
- type: PropType<"center" | "space-between" | "flex-start" | "flex-end">;
4
+ type: PropType<"flex-start" | "flex-end" | "center" | "space-between">;
5
5
  default: string;
6
6
  };
7
7
  align: {
8
- type: PropType<"center" | "flex-start" | "flex-end" | "stretch">;
8
+ type: PropType<"stretch" | "flex-start" | "flex-end" | "center">;
9
9
  default: string;
10
10
  };
11
11
  direction: {
12
- type: PropType<"row" | "column">;
12
+ type: PropType<"column" | "row">;
13
13
  default: string;
14
14
  };
15
15
  wrap: {
@@ -18,15 +18,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
18
18
  };
19
19
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
20
  justify: {
21
- type: PropType<"center" | "space-between" | "flex-start" | "flex-end">;
21
+ type: PropType<"flex-start" | "flex-end" | "center" | "space-between">;
22
22
  default: string;
23
23
  };
24
24
  align: {
25
- type: PropType<"center" | "flex-start" | "flex-end" | "stretch">;
25
+ type: PropType<"stretch" | "flex-start" | "flex-end" | "center">;
26
26
  default: string;
27
27
  };
28
28
  direction: {
29
- type: PropType<"row" | "column">;
29
+ type: PropType<"column" | "row">;
30
30
  default: string;
31
31
  };
32
32
  wrap: {
@@ -34,10 +34,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
34
34
  default: string;
35
35
  };
36
36
  }>>, {
37
- direction: "row" | "column";
37
+ direction: "column" | "row";
38
38
  wrap: "nowrap" | "wrap";
39
- justify: "center" | "space-between" | "flex-start" | "flex-end";
40
- align: "center" | "flex-start" | "flex-end" | "stretch";
39
+ justify: "flex-start" | "flex-end" | "center" | "space-between";
40
+ align: "stretch" | "flex-start" | "flex-end" | "center";
41
41
  }>, {
42
42
  default: (_: {}) => any;
43
43
  }>;
@@ -1,4 +1,7 @@
1
1
  import JoyButton from '@/components/JoyButton/JoyButton.vue';
2
+ import JoyCheckbox from '@/components/JoyCheckbox/JoyCheckbox.vue';
3
+ import JoyFormError from '@/components/JoyFormError/JoyFormError.vue';
4
+ import JoyHighlight from '@/components/JoyHighlight/JoyHighlight.vue';
2
5
  import JoyInput from '@/components/JoyInput/JoyInput.vue';
3
6
  import JoyLabel from '@/components/JoyLabel/JoyLabel.vue';
4
7
  import JoyLink from '@/components/JoyLink/JoyLink.vue';
@@ -8,4 +11,6 @@ import JoySelect from '@/components/JoySelect/JoySelect.vue';
8
11
  import JoySpinner from '@/components/JoySpinner/JoySpinner.vue';
9
12
  import JoyWrapper from '@/components/JoyWrapper/JoyWrapper.vue';
10
13
  import JoyTemplate from '@/components/JoyTemplate/JoyTemplate.vue';
11
- export { JoyButton, JoyInput, JoyLabel, JoyLink, JoyRadio, JoyRadioGroup, JoySelect, JoySpinner, JoyTemplate, JoyWrapper };
14
+ import JoyTextarea from '@/components/JoyTextarea/JoyTextarea.vue';
15
+ import JoyToggle from '@/components/JoyToggle/JoyToggle.vue';
16
+ export { JoyButton, JoyCheckbox, JoyFormError, JoyHighlight, JoyInput, JoyLabel, JoyLink, JoyRadio, JoyRadioGroup, JoySelect, JoySpinner, JoyTemplate, JoyTextarea, JoyToggle, JoyWrapper, };
@@ -0,0 +1 @@
1
+ export * from './props';
@@ -0,0 +1,67 @@
1
+ import { PropType } from 'vue';
2
+ export declare const FORM_BASED_PROPS: {
3
+ disabled: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ id: {
8
+ type: StringConstructor;
9
+ };
10
+ invalid: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ name: {
15
+ type: StringConstructor;
16
+ };
17
+ required: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ };
22
+ export declare const TEXT_BASED_PROPS: {
23
+ modelValue: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ };
28
+ export declare const CHECKBOX_BASED_PROPS: {
29
+ disabled: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ id: {
34
+ type: StringConstructor;
35
+ };
36
+ invalid: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ name: {
41
+ type: StringConstructor;
42
+ };
43
+ required: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ modelValue: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ value: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ };
56
+ export declare const LABEL_BASED_PROPS: {
57
+ label: StringConstructor;
58
+ labelSize: {
59
+ type: PropType<"small" | "large" | "medium">;
60
+ default: string;
61
+ };
62
+ optionalLabel: StringConstructor;
63
+ requiredMark: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ };
@@ -0,0 +1,2 @@
1
+ import { LEVELS } from '../types';
2
+ export declare function iconLevel(level: (typeof LEVELS)[number]): string;