@maltjoy/core-vue 1.0.0-beta.1 → 1.0.0-beta.3

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 (33) hide show
  1. package/README.md +1 -0
  2. package/dist/components/JoyBadge/JoyBadge.types.d.ts +2 -0
  3. package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +43 -0
  4. package/dist/components/JoyButton/JoyButton.types.d.ts +0 -4
  5. package/dist/components/JoyButton/VJoyButton.vue.d.ts +2 -15
  6. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +24 -1
  7. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +6 -6
  8. package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +4 -0
  9. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +180 -0
  10. package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +3 -0
  11. package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +84 -0
  12. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +1 -1
  13. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +3 -3
  14. package/dist/components/JoyInput/VJoyInput.vue.d.ts +4 -4
  15. package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +3 -3
  16. package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +11 -4
  17. package/dist/components/JoySelect/VJoySelect.vue.d.ts +4 -4
  18. package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +2 -2
  19. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +4 -4
  20. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +4 -4
  21. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +1 -1
  22. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +2 -2
  23. package/dist/components/index.d.ts +4 -1
  24. package/dist/composables/events.d.ts +5 -0
  25. package/dist/composables/index.d.ts +1 -0
  26. package/dist/composables/props.d.ts +1 -1
  27. package/dist/joy-vue.js +1627 -599
  28. package/dist/joy-vue.umd.cjs +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +1 -1
  31. package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +3 -3
  32. package/joy-components.d.ts +27 -24
  33. package/package.json +19 -15
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
39
39
  };
40
40
  label: StringConstructor;
41
41
  labelSize: {
42
- type: PropType<"small" | "large" | "medium">;
42
+ type: PropType<"small" | "medium" | "large">;
43
43
  default: string;
44
44
  };
45
45
  optionalLabel: StringConstructor;
@@ -74,7 +74,7 @@ declare const _default: import("vue").DefineComponent<{
74
74
  };
75
75
  label: StringConstructor;
76
76
  labelSize: {
77
- type: PropType<"small" | "large" | "medium">;
77
+ type: PropType<"small" | "medium" | "large">;
78
78
  default: string;
79
79
  };
80
80
  optionalLabel: StringConstructor;
@@ -87,9 +87,9 @@ declare const _default: import("vue").DefineComponent<{
87
87
  }, {
88
88
  value: string | unknown[];
89
89
  required: boolean;
90
- labelSize: "small" | "large" | "medium";
90
+ multiple: boolean;
91
+ labelSize: "small" | "medium" | "large";
91
92
  requiredMark: boolean;
92
93
  fullWidth: boolean;
93
- multiple: boolean;
94
94
  }>;
95
95
  export default _default;
@@ -20,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
20
20
  };
21
21
  label: StringConstructor;
22
22
  labelSize: {
23
- type: PropType<"small" | "large" | "medium">;
23
+ type: PropType<"small" | "medium" | "large">;
24
24
  default: string;
25
25
  };
26
26
  optionalLabel: StringConstructor;
@@ -70,7 +70,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
70
70
  };
71
71
  label: StringConstructor;
72
72
  labelSize: {
73
- type: PropType<"small" | "large" | "medium">;
73
+ type: PropType<"small" | "medium" | "large">;
74
74
  default: string;
75
75
  };
76
76
  optionalLabel: StringConstructor;
@@ -98,10 +98,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
98
98
  }, {
99
99
  disabled: boolean;
100
100
  required: boolean;
101
+ modelValue: string;
101
102
  invalid: boolean;
102
- labelSize: "small" | "large" | "medium";
103
+ labelSize: "small" | "medium" | "large";
103
104
  requiredMark: boolean;
104
- modelValue: string;
105
105
  autogrow: boolean;
106
106
  }>, {
107
107
  default: (_: {}) => any;
@@ -60,8 +60,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
60
60
  disabled: boolean;
61
61
  value: string;
62
62
  required: boolean;
63
- invalid: boolean;
64
63
  modelValue: boolean;
64
+ invalid: boolean;
65
65
  }>, {
66
66
  default: (_: {}) => any;
67
67
  }>;
@@ -34,10 +34,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
34
34
  default: string;
35
35
  };
36
36
  }>>, {
37
+ align: "flex-end" | "stretch" | "center" | "flex-start";
37
38
  direction: "column" | "row";
38
- wrap: "nowrap" | "wrap";
39
39
  justify: "flex-end" | "center" | "space-between" | "flex-start";
40
- align: "flex-end" | "stretch" | "center" | "flex-start";
40
+ wrap: "nowrap" | "wrap";
41
41
  }>, {
42
42
  default: (_: {}) => any;
43
43
  }>;
@@ -1,6 +1,9 @@
1
+ import VJoyBadge from '@/components/JoyBadge/VJoyBadge.vue';
1
2
  import VJoyButton from '@/components/JoyButton/VJoyButton.vue';
2
3
  import VJoyCheckbox from '@/components/JoyCheckbox/VJoyCheckbox.vue';
3
4
  import VJoyCounter from '@/components/JoyCounter/VJoyCounter.vue';
5
+ import VJoyDropdown from '@/components/JoyDropdown/VJoyDropdown.vue';
6
+ import VJoyDropdownList from '@/components/JoyDropdownList/VJoyDropdownList.vue';
4
7
  import VJoyFormError from '@/components/JoyFormError/VJoyFormError.vue';
5
8
  import VJoyHighlight from '@/components/JoyHighlight/VJoyHighlight.vue';
6
9
  import VJoyInput from '@/components/JoyInput/VJoyInput.vue';
@@ -19,4 +22,4 @@ import VJoyWrapper from '@/components/JoyWrapper/VJoyWrapper.vue';
19
22
  import VJoyTemplate from '@/components/JoyTemplate/VJoyTemplate.vue';
20
23
  import VJoyTextarea from '@/components/JoyTextarea/VJoyTextarea.vue';
21
24
  import VJoyToggle from '@/components/JoyToggle/VJoyToggle.vue';
22
- export { VJoyButton, VJoyCheckbox, VJoyCounter, VJoyFormError, VJoyHighlight, VJoyInput, VJoyLabel, VJoyLink, VJoyMultiCheckbox, VJoyPanel, VJoyPanelSection, VJoyRadio, VJoyRadioGroup, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySpinner, VJoyTemplate, VJoyTextarea, VJoyToggle, VJoyWrapper, };
25
+ export { VJoyBadge, VJoyButton, VJoyCheckbox, VJoyCounter, VJoyDropdown, VJoyDropdownList, VJoyFormError, VJoyHighlight, VJoyInput, VJoyLabel, VJoyLink, VJoyMultiCheckbox, VJoyPanel, VJoyPanelSection, VJoyRadio, VJoyRadioGroup, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySpinner, VJoyTemplate, VJoyTextarea, VJoyToggle, VJoyWrapper, };
@@ -0,0 +1,5 @@
1
+ import { Ref } from 'vue';
2
+ export declare function useDetectOutsideClick<T>(component: Ref, callback: () => T | void): {
3
+ listener: (event: Event) => void;
4
+ } | undefined;
5
+ export declare function useDetectWindowResize<T>(callback: () => T | void): void;
@@ -1 +1,2 @@
1
1
  export * from './props';
2
+ export * from './events';
@@ -61,7 +61,7 @@ export declare const CHECKBOX_BASED_PROPS: {
61
61
  export declare const LABEL_BASED_PROPS: {
62
62
  label: StringConstructor;
63
63
  labelSize: {
64
- type: PropType<"small" | "large" | "medium">;
64
+ type: PropType<"small" | "medium" | "large">;
65
65
  default: string;
66
66
  };
67
67
  optionalLabel: StringConstructor;