@maltjoy/core-vue 1.0.0-alpha.2 → 1.0.0-alpha.4

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 (44) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/components/JoyButton/JoyButton.types.d.ts +1 -1
  3. package/dist/components/JoyButton/JoyButton.vue.d.ts +18 -28
  4. package/dist/components/JoyButton/tests/JoyButton.spec.d.ts +1 -0
  5. package/dist/components/JoyCheckbox/JoyCheckbox.vue.d.ts +85 -0
  6. package/dist/components/JoyCheckbox/tests/JoyCheckbox.spec.d.ts +1 -0
  7. package/dist/components/JoyFormError/JoyFormError.vue.d.ts +23 -0
  8. package/dist/components/JoyFormError/tests/JoyFormError.spec.d.ts +1 -0
  9. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +3 -0
  10. package/dist/components/JoyHighlight/JoyHighlight.vue.d.ts +48 -0
  11. package/dist/components/JoyHighlight/tests/JoyHighlight.spec.d.ts +1 -0
  12. package/dist/components/JoyInput/JoyInput.vue.d.ts +56 -90
  13. package/dist/components/JoyLabel/JoyLabel.vue.d.ts +24 -10
  14. package/dist/components/JoyLabel/tests/JoyLabel.spec.d.ts +1 -0
  15. package/dist/components/JoyLink/JoyLink.types.d.ts +2 -0
  16. package/dist/components/JoyLink/JoyLink.vue.d.ts +35 -0
  17. package/dist/components/JoyRadio/JoyRadio.vue.d.ts +80 -0
  18. package/dist/components/JoyRadio/tests/JoyRadio.spec.d.ts +1 -0
  19. package/dist/components/JoyRadioGroup/JoyRadioGroup.vue.d.ts +50 -0
  20. package/dist/components/JoySelect/JoySelect.vue.d.ts +89 -0
  21. package/dist/components/JoySelect/tests/JoySelect.spec.d.ts +1 -0
  22. package/dist/components/JoySpinner/JoySpinner.vue.d.ts +6 -6
  23. package/dist/components/JoyTemplate/JoyTemplate.vue.d.ts +35 -0
  24. package/dist/components/JoyToggle/JoyToggle.vue.d.ts +71 -0
  25. package/dist/components/JoyToggle/tests/JoyToggle.spec.d.ts +1 -0
  26. package/dist/components/JoyWrapper/JoyWrapper.vue.d.ts +18 -11
  27. package/dist/components/index.d.ts +15 -6
  28. package/dist/components/main.d.ts +2 -3
  29. package/dist/composables/index.d.ts +1 -0
  30. package/dist/composables/props.d.ts +56 -0
  31. package/dist/helpers/index.d.ts +2 -0
  32. package/dist/joy-vue.js +646 -130
  33. package/dist/joy-vue.umd.cjs +1 -1
  34. package/dist/main.d.ts +1 -0
  35. package/dist/style.css +1 -1
  36. package/dist/tests/composables/prop.spec.d.ts +1 -0
  37. package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +62 -0
  38. package/dist/tests/composables/test-components/GenericFormProps.vue.d.ts +44 -0
  39. package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +55 -0
  40. package/dist/tests/helpers.spec.d.ts +1 -0
  41. package/dist/types/index.d.ts +1 -0
  42. package/joy-components.d.ts +15 -5
  43. package/package.json +50 -50
  44. package/dist/vite-env.d.ts +0 -1
@@ -0,0 +1,50 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ direction: {
4
+ type: PropType<"vertical" | "horizontal">;
5
+ default: string;
6
+ };
7
+ form: {
8
+ type: StringConstructor;
9
+ };
10
+ modelValue: {
11
+ type: StringConstructor;
12
+ };
13
+ name: {
14
+ type: StringConstructor;
15
+ };
16
+ invalid: BooleanConstructor;
17
+ invalidText: {
18
+ type: StringConstructor;
19
+ };
20
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ direction: {
22
+ type: PropType<"vertical" | "horizontal">;
23
+ default: string;
24
+ };
25
+ form: {
26
+ type: StringConstructor;
27
+ };
28
+ modelValue: {
29
+ type: StringConstructor;
30
+ };
31
+ name: {
32
+ type: StringConstructor;
33
+ };
34
+ invalid: BooleanConstructor;
35
+ invalidText: {
36
+ type: StringConstructor;
37
+ };
38
+ }>>, {
39
+ invalid: boolean;
40
+ direction: "vertical" | "horizontal";
41
+ }>, {
42
+ 'radio-group-legend': (_: {}) => any;
43
+ default: (_: {}) => any;
44
+ }>;
45
+ export default _default;
46
+ type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -0,0 +1,89 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ optionalLabel: {
7
+ type: StringConstructor;
8
+ };
9
+ requiredMark: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ label: StringConstructor;
14
+ labelSize: {
15
+ type: import("vue").PropType<"small" | "large" | "medium">;
16
+ default: string;
17
+ };
18
+ disabled: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ id: {
23
+ type: StringConstructor;
24
+ };
25
+ invalid: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ name: {
30
+ type: StringConstructor;
31
+ };
32
+ required: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
+ modelValue: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ optionalLabel: {
42
+ type: StringConstructor;
43
+ };
44
+ requiredMark: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ label: StringConstructor;
49
+ labelSize: {
50
+ type: import("vue").PropType<"small" | "large" | "medium">;
51
+ default: string;
52
+ };
53
+ disabled: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ id: {
58
+ type: StringConstructor;
59
+ };
60
+ invalid: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ name: {
65
+ type: StringConstructor;
66
+ };
67
+ required: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ }>> & {
72
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
73
+ }, {
74
+ disabled: boolean;
75
+ invalid: boolean;
76
+ required: boolean;
77
+ modelValue: string;
78
+ requiredMark: boolean;
79
+ labelSize: "small" | "large" | "medium";
80
+ }>, {
81
+ label: (_: {}) => any;
82
+ default: (_: {}) => any;
83
+ }>;
84
+ export default _default;
85
+ type __VLS_WithTemplateSlots<T, S> = T & {
86
+ new (): {
87
+ $slots: S;
88
+ };
89
+ };
@@ -1,14 +1,14 @@
1
- import { PropType } from "vue";
2
- import { SpinnerColors } from "./JoySpinner.types";
3
- declare const _sfc_main: import("vue").DefineComponent<{
1
+ import { PropType } from 'vue';
2
+ import { SpinnerColors } from './JoySpinner.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
4
  color: {
5
- type: PropType<"white" | "teal">;
5
+ type: PropType<"teal" | "white">;
6
6
  validator(color: SpinnerColors): boolean;
7
7
  };
8
8
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
9
  color: {
10
- type: PropType<"white" | "teal">;
10
+ type: PropType<"teal" | "white">;
11
11
  validator(color: SpinnerColors): boolean;
12
12
  };
13
13
  }>>, {}>;
14
- export default _sfc_main;
14
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ full: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ sidebar: {
8
+ type: PropType<"left" | "right">;
9
+ default: string;
10
+ };
11
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ full: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ sidebar: {
17
+ type: PropType<"left" | "right">;
18
+ default: string;
19
+ };
20
+ }>>, {
21
+ full: boolean;
22
+ sidebar: "left" | "right";
23
+ }>, {
24
+ 'template-back': (_: {}) => any;
25
+ 'template-title': (_: {}) => any;
26
+ 'template-subtitle': (_: {}) => any;
27
+ 'template-main': (_: {}) => any;
28
+ 'template-sidebar': (_: {}) => any;
29
+ }>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,71 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ disabled: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ id: {
7
+ type: StringConstructor;
8
+ };
9
+ invalid: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ name: {
14
+ type: StringConstructor;
15
+ };
16
+ required: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ modelValue: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ value: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
57
+ }, {
58
+ disabled: boolean;
59
+ invalid: boolean;
60
+ required: boolean;
61
+ modelValue: boolean;
62
+ value: string;
63
+ }>, {
64
+ default: (_: {}) => any;
65
+ }>;
66
+ export default _default;
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -1,15 +1,15 @@
1
1
  import { PropType } from 'vue';
2
- declare const _sfc_main: import("vue").DefineComponent<{
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 _sfc_main: 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,9 +34,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
34
34
  default: string;
35
35
  };
36
36
  }>>, {
37
+ direction: "column" | "row";
37
38
  wrap: "nowrap" | "wrap";
38
- justify: "center" | "space-between" | "flex-start" | "flex-end";
39
- align: "center" | "flex-start" | "flex-end" | "stretch";
40
- direction: "row" | "column";
39
+ justify: "flex-start" | "flex-end" | "center" | "space-between";
40
+ align: "stretch" | "flex-start" | "flex-end" | "center";
41
+ }>, {
42
+ default: (_: {}) => any;
41
43
  }>;
42
- export default _sfc_main;
44
+ export default _default;
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -1,6 +1,15 @@
1
- import JoyButton from '../components/JoyButton/JoyButton.vue';
2
- import JoySpinner from '../components/JoySpinner/JoySpinner.vue';
3
- import JoyInput from '../components/JoyInput/JoyInput.vue';
4
- import JoyLabel from '../components/JoyLabel/JoyLabel.vue';
5
- import JoyWrapper from '../components/JoyWrapper/JoyWrapper.vue';
6
- export { JoyButton, JoyInput, JoyLabel, JoySpinner, JoyWrapper };
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';
5
+ import JoyInput from '@/components/JoyInput/JoyInput.vue';
6
+ import JoyLabel from '@/components/JoyLabel/JoyLabel.vue';
7
+ import JoyLink from '@/components/JoyLink/JoyLink.vue';
8
+ import JoyRadio from '@/components/JoyRadio/JoyRadio.vue';
9
+ import JoyRadioGroup from '@/components/JoyRadioGroup/JoyRadioGroup.vue';
10
+ import JoySelect from '@/components/JoySelect/JoySelect.vue';
11
+ import JoySpinner from '@/components/JoySpinner/JoySpinner.vue';
12
+ import JoyWrapper from '@/components/JoyWrapper/JoyWrapper.vue';
13
+ import JoyTemplate from '@/components/JoyTemplate/JoyTemplate.vue';
14
+ import JoyToggle from '@/components/JoyToggle/JoyToggle.vue';
15
+ export { JoyButton, JoyCheckbox, JoyFormError, JoyHighlight, JoyInput, JoyLabel, JoyLink, JoyRadio, JoyRadioGroup, JoySelect, JoySpinner, JoyTemplate, JoyToggle, JoyWrapper };
@@ -1,6 +1,5 @@
1
1
  import type { App } from 'vue';
2
- import { JoyButton, JoySpinner, JoyInput, JoyLabel, JoyWrapper } from './';
3
- declare const JoyVuePlugin: {
2
+ export * from './';
3
+ export declare const JoyVuePlugin: {
4
4
  install: (app: App) => void;
5
5
  };
6
- export { JoyVuePlugin, JoyButton, JoySpinner, JoyInput, JoyLabel, JoyWrapper, };
@@ -0,0 +1 @@
1
+ export * from './props';
@@ -0,0 +1,56 @@
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 CHECKBOX_BASED_PROPS: {
23
+ disabled: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ id: {
28
+ type: StringConstructor;
29
+ };
30
+ invalid: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ name: {
35
+ type: StringConstructor;
36
+ };
37
+ required: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ modelValue: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ value: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ };
50
+ export declare const LABEL_BASED_PROPS: {
51
+ label: StringConstructor;
52
+ labelSize: {
53
+ type: PropType<"small" | "large" | "medium">;
54
+ default: string;
55
+ };
56
+ };
@@ -0,0 +1,2 @@
1
+ import { LEVELS } from '../types';
2
+ export declare function iconLevel(level: (typeof LEVELS)[number]): string;