@maltjoy/core-vue 3.15.0 → 3.15.2

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.
@@ -111,9 +111,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
111
111
  onBlur?: (() => any) | undefined;
112
112
  "onUpdate:checked"?: ((value: boolean) => any) | undefined;
113
113
  }, {
114
+ disabled: boolean;
114
115
  required: boolean;
115
116
  value: string;
116
- disabled: boolean;
117
117
  indeterminate: boolean;
118
118
  displayFocus: boolean;
119
119
  checked: boolean;
@@ -63,8 +63,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
63
63
  };
64
64
  }, {
65
65
  props: {
66
- readonly required: boolean;
67
66
  readonly disabled: boolean;
67
+ readonly required: boolean;
68
68
  readonly invalid: boolean;
69
69
  readonly labelSize: "small" | "large" | "medium";
70
70
  readonly requiredMark: boolean;
@@ -72,8 +72,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
72
72
  readonly modelValue: number;
73
73
  readonly step: number;
74
74
  readonly label?: string | undefined;
75
- readonly name?: string | undefined;
76
75
  readonly id?: string | undefined;
76
+ readonly name?: string | undefined;
77
77
  readonly optionalLabel?: string | undefined;
78
78
  readonly labelDecrement?: string | undefined;
79
79
  readonly labelIncrement?: string | undefined;
@@ -147,8 +147,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
147
147
  }>> & {
148
148
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
149
149
  }, {
150
- required: boolean;
151
150
  disabled: boolean;
151
+ required: boolean;
152
152
  invalid: boolean;
153
153
  labelSize: "small" | "large" | "medium";
154
154
  requiredMark: boolean;
@@ -127,8 +127,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
127
127
  }>>, {
128
128
  type: string;
129
129
  size: InputSizes;
130
- required: boolean;
131
130
  disabled: boolean;
131
+ required: boolean;
132
132
  invalid: boolean;
133
133
  labelSize: "small" | "large" | "medium";
134
134
  requiredMark: boolean;
@@ -0,0 +1,14 @@
1
+ import { JoyIconsId } from '@maltjoy/icons';
2
+ export interface IJoyMenuItem {
3
+ id?: string;
4
+ label: string;
5
+ href?: string;
6
+ to?: string;
7
+ icon?: JoyIconsId;
8
+ current?: boolean;
9
+ /**
10
+ * @default false
11
+ */
12
+ disabled?: boolean;
13
+ [k: string]: any;
14
+ }
@@ -1,23 +1,11 @@
1
- import { JoyIconsId } from '@maltjoy/icons';
2
1
  import { PropType } from 'vue';
3
- export interface MenuItem {
4
- id?: string;
5
- label: string;
6
- href?: string;
7
- icon?: JoyIconsId;
8
- current?: boolean;
9
- /**
10
- * @default false
11
- */
12
- disabled?: boolean;
13
- [k: string]: any;
14
- }
2
+ import { IJoyMenuItem } from './JoyMenu.types';
15
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
16
4
  /**
17
5
  * In order to make it work with v-model, you need to pass for each option, a value or an ID.
18
6
  */
19
7
  items: {
20
- type: PropType<MenuItem[]>;
8
+ type: PropType<IJoyMenuItem[]>;
21
9
  default(): never[];
22
10
  };
23
11
  modelValue: {
@@ -29,14 +17,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
29
17
  }, {
30
18
  activeMenuItemId: import("vue").Ref<string | undefined>;
31
19
  getItems: () => HTMLElement[];
32
- getItemId: (item: MenuItem) => string;
20
+ getItemId: (item: IJoyMenuItem) => string;
33
21
  getFocusedItem: () => HTMLElement | undefined;
34
22
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
23
  /**
36
24
  * In order to make it work with v-model, you need to pass for each option, a value or an ID.
37
25
  */
38
26
  items: {
39
- type: PropType<MenuItem[]>;
27
+ type: PropType<IJoyMenuItem[]>;
40
28
  default(): never[];
41
29
  };
42
30
  modelValue: {
@@ -46,9 +34,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
46
34
  type: StringConstructor;
47
35
  };
48
36
  }>>, {
49
- items: MenuItem[];
37
+ items: IJoyMenuItem[];
50
38
  }, {}>, {
51
- 'menu-item': (_: MenuItem) => any;
39
+ 'menu-item': (_: IJoyMenuItem) => any;
52
40
  }>;
53
41
  export default _default;
54
42
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -67,8 +67,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
67
67
  }>> & {
68
68
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
69
69
  }, {
70
- required: boolean;
71
70
  disabled: boolean;
71
+ required: boolean;
72
72
  invalid: boolean;
73
73
  theme: "default" | "outline";
74
74
  }, {}>, {
@@ -78,8 +78,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
78
78
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
79
79
  }, {
80
80
  size: SelectSizes;
81
- required: boolean;
82
81
  disabled: boolean;
82
+ required: boolean;
83
83
  invalid: boolean;
84
84
  requiredMark: boolean;
85
85
  }, {}>, {
@@ -67,8 +67,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
67
67
  }>> & {
68
68
  "onUpdate:checked"?: ((value: string | boolean) => any) | undefined;
69
69
  }, {
70
- required: boolean;
71
70
  disabled: boolean;
71
+ required: boolean;
72
72
  checked: boolean;
73
73
  invalid: boolean;
74
74
  multiple: boolean;
@@ -106,8 +106,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
106
106
  }>> & {
107
107
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
108
108
  }, {
109
- required: boolean;
110
109
  disabled: boolean;
110
+ required: boolean;
111
111
  invalid: boolean;
112
112
  labelSize: "small" | "large" | "medium";
113
113
  requiredMark: boolean;
@@ -57,9 +57,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
57
57
  }>> & {
58
58
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
59
59
  }, {
60
+ disabled: boolean;
60
61
  required: boolean;
61
62
  value: string;
62
- disabled: boolean;
63
63
  invalid: boolean;
64
64
  modelValue: boolean;
65
65
  }, {}>, {
@@ -13,6 +13,7 @@ export * from './JoyInput/JoyInput.types';
13
13
  export * from './JoyLabel/JoyLabel.types';
14
14
  export * from './JoyLink/JoyLink.types';
15
15
  export * from './JoyLink/JoyLink.types';
16
+ export * from './JoyMenu/JoyMenu.types';
16
17
  export * from './JoyPanel/JoyPanel.types';
17
18
  export * from './JoyProgressBar/JoyProgressBar.types';
18
19
  export * from './JoyRadio/JoyRadio.types';
@@ -19,6 +19,7 @@ import VJoyIcon from '@/components/JoyIcon/VJoyIcon.vue';
19
19
  import VJoyInput from '@/components/JoyInput/VJoyInput.vue';
20
20
  import VJoyLabel from '@/components/JoyLabel/VJoyLabel.vue';
21
21
  import VJoyLink from '@/components/JoyLink/VJoyLink.vue';
22
+ import VJoyMenu from '@/components/JoyMenu/VJoyMenu.vue';
22
23
  import VJoyMultiCheckbox from '@/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue';
23
24
  import VJoyPagination from '@/components/JoyPagination/VJoyPagination.vue';
24
25
  import VJoyPanel from '@/components/JoyPanel/VJoyPanel.vue';
@@ -33,7 +34,6 @@ import VJoySelectableItem from '@/components/JoySelectableItem/VJoySelectableIte
33
34
  import VJoySelectableItemGroup from '@/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue';
34
35
  import VJoySeparator from '@/components/JoySeparator/VJoySeparator.vue';
35
36
  import VJoySpinner from '@/components/JoySpinner/VJoySpinner.vue';
36
- import VJoyWrapper from '@/components/JoyWrapper/VJoyWrapper.vue';
37
37
  import VJoyTabs from '@/components/JoyTabs/VJoyTabs.vue';
38
38
  import VJoyTab from '@/components/JoyTab/VJoyTab.vue';
39
39
  import VJoyTag from '@/components/JoyTag/VJoyTag.vue';
@@ -42,4 +42,5 @@ import VJoyTemplate from '@/components/JoyTemplate/VJoyTemplate.vue';
42
42
  import VJoyTemplateShape from '@/components/JoyTemplateShape/VJoyTemplateShape.vue';
43
43
  import VJoyTextarea from '@/components/JoyTextarea/VJoyTextarea.vue';
44
44
  import VJoyToggle from '@/components/JoyToggle/VJoyToggle.vue';
45
- export { VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyButton, VJoyCheckbox, VJoyCompanyAvatar, VJoyCounter, VJoyDividerCta, VJoyDropdown, VJoyDropdownList, VJoyFilterBar, VJoyFilterBarButton, VJoyFormError, VJoyFormFieldSkeleton, VJoyHighlight, VJoyIcon, VJoyInput, VJoyLabel, VJoyLink, VJoyMultiCheckbox, VJoyPagination, VJoyPanel, VJoyPanelSection, VJoyProgressBar, VJoyRadio, VJoyRadioGroup, VJoyRatingStars, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySeparator, VJoySpinner, VJoyTabs, VJoyTab, VJoyTag, VJoyTagsList, VJoyTemplate, VJoyTemplateShape, VJoyTextarea, VJoyToggle, VJoyWrapper, };
45
+ import VJoyWrapper from '@/components/JoyWrapper/VJoyWrapper.vue';
46
+ export { VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyButton, VJoyCheckbox, VJoyCompanyAvatar, VJoyCounter, VJoyDividerCta, VJoyDropdown, VJoyDropdownList, VJoyFilterBar, VJoyFilterBarButton, VJoyFormError, VJoyFormFieldSkeleton, VJoyHighlight, VJoyIcon, VJoyInput, VJoyLabel, VJoyLink, VJoyMenu, VJoyMultiCheckbox, VJoyPagination, VJoyPanel, VJoyPanelSection, VJoyProgressBar, VJoyRadio, VJoyRadioGroup, VJoyRatingStars, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySeparator, VJoySpinner, VJoyTabs, VJoyTab, VJoyTag, VJoyTagsList, VJoyTemplate, VJoyTemplateShape, VJoyTextarea, VJoyToggle, VJoyWrapper, };
@@ -0,0 +1 @@
1
+ export { vJoyRipple } from './ripple';
@@ -0,0 +1,4 @@
1
+ export declare const vJoyRipple: {
2
+ mounted: (el: HTMLElement) => void;
3
+ beforeUnmount: (el: HTMLElement) => void;
4
+ };