@maltjoy/core-vue 3.16.2 → 3.16.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.
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  import { TJoyDropdownListSizes } from '../JoyDropdownList/JoyDropdownList.types';
3
3
  export interface Option {
4
- id?: string;
4
+ id: string;
5
5
  value?: string;
6
6
  label: string;
7
7
  href?: string;
@@ -47,12 +47,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
47
47
  * Use options to render a pre-designed list.
48
48
  *
49
49
  * ```
50
- * interface Option {id?: string; value?: string; label: string; href?: string; disabled?:boolean; checked?:boolean}
50
+ * interface Option {id: string; value?: string; label: string; href?: string; disabled?:boolean; checked?:boolean}
51
51
  * ```
52
52
  */
53
53
  options: {
54
54
  type: PropType<Option[]>;
55
- validator(value: Option[]): boolean;
56
55
  default(): never[];
57
56
  };
58
57
  size: {
@@ -138,12 +137,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
138
137
  * Use options to render a pre-designed list.
139
138
  *
140
139
  * ```
141
- * interface Option {id?: string; value?: string; label: string; href?: string; disabled?:boolean; checked?:boolean}
140
+ * interface Option {id: string; value?: string; label: string; href?: string; disabled?:boolean; checked?:boolean}
142
141
  * ```
143
142
  */
144
143
  options: {
145
144
  type: PropType<Option[]>;
146
- validator(value: Option[]): boolean;
147
145
  default(): never[];
148
146
  };
149
147
  size: {
@@ -213,7 +211,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
213
211
  "dropdown-items"?(_: {}): any;
214
212
  "dropdown-item"?(_: {
215
213
  [x: string]: any;
216
- id?: string | undefined;
214
+ id: string;
217
215
  value?: string | undefined;
218
216
  label: string;
219
217
  href?: string | undefined;
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  import { TJoyDropdownListSizes } from './JoyDropdownList.types';
3
3
  export interface Option {
4
- id?: string;
4
+ id: string;
5
5
  value?: string;
6
6
  label: string;
7
7
  href?: string;
@@ -17,11 +17,10 @@ export interface Option {
17
17
  }
18
18
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
19
19
  /**
20
- * In order to make it work with v-model, you need to pass for each option, a value or an ID.
20
+ * You need to pass an unique ID for each option. You can also pass a value if you want to customize the value of the v-model.
21
21
  */
22
22
  options: {
23
23
  type: PropType<Option[]>;
24
- validator(value: Option[]): boolean;
25
24
  default(): never[];
26
25
  };
27
26
  /** Customize the actual size of each items. */
@@ -62,11 +61,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
62
61
  "close:dropdownList": () => void;
63
62
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
64
63
  /**
65
- * In order to make it work with v-model, you need to pass for each option, a value or an ID.
64
+ * You need to pass an unique ID for each option. You can also pass a value if you want to customize the value of the v-model.
66
65
  */
67
66
  options: {
68
67
  type: PropType<Option[]>;
69
- validator(value: Option[]): boolean;
70
68
  default(): never[];
71
69
  };
72
70
  /** Customize the actual size of each items. */
@@ -114,7 +112,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
114
112
  "dropdown-list-items"?(_: {}): any;
115
113
  label?(_: {
116
114
  [x: string]: any;
117
- id?: string | undefined;
115
+ id: string;
118
116
  value?: string | undefined;
119
117
  label: string;
120
118
  href?: string | undefined;
@@ -3,7 +3,6 @@ export interface IJoyMenuItem {
3
3
  id?: string;
4
4
  label: string;
5
5
  href?: string;
6
- to?: string;
7
6
  icon?: JoyIconsId;
8
7
  current?: boolean;
9
8
  /**
@@ -48,7 +48,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
48
48
  id?: string | undefined;
49
49
  label: string;
50
50
  href?: string | undefined;
51
- to?: string | undefined;
52
51
  icon?: import("@maltjoy/icons").JoyIconsId | undefined;
53
52
  current?: boolean | undefined;
54
53
  disabled?: boolean | undefined;
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  value: {
22
22
  type: StringConstructor;
23
23
  required: true;
24
+ default: string;
24
25
  };
25
26
  draggable: {
26
27
  type: BooleanConstructor;
@@ -61,6 +62,7 @@ declare const _default: import("vue").DefineComponent<{
61
62
  value: {
62
63
  type: StringConstructor;
63
64
  required: true;
65
+ default: string;
64
66
  };
65
67
  draggable: {
66
68
  type: BooleanConstructor;
@@ -84,6 +86,7 @@ declare const _default: import("vue").DefineComponent<{
84
86
  link: boolean;
85
87
  size: TJoyTagSizes;
86
88
  variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing";
89
+ value: string;
87
90
  selected: boolean;
88
91
  selectable: boolean;
89
92
  draggable: boolean;
@@ -12,9 +12,9 @@ import VJoyDropdown from '@/components/JoyDropdown/VJoyDropdown.vue';
12
12
  import VJoyDropdownList from '@/components/JoyDropdownList/VJoyDropdownList.vue';
13
13
  import VJoyFilterBar from '@/components/JoyFilterBar/VJoyFilterBar.vue';
14
14
  import VJoyFilterBarButton from '@/components/JoyFilterBarButton/VJoyFilterBarButton.vue';
15
+ import VJoyFooter from '@/components/JoyFooter/VJoyFooter.vue';
15
16
  import VJoyFormError from '@/components/JoyFormError/VJoyFormError.vue';
16
17
  import VJoyFormFieldSkeleton from '@/components/JoyFormFieldSkeleton/VJoyFormFieldSkeleton.vue';
17
- import VJoyFooter from '@/components/JoyFooter/VJoyFooter.vue';
18
18
  import VJoyFunnel from '@/components/JoyFunnel/VJoyFunnel.vue';
19
19
  import VJoyHeader from '@/components/JoyHeader/VJoyHeader.vue';
20
20
  import VJoyHighlight from '@/components/JoyHighlight/VJoyHighlight.vue';
@@ -37,8 +37,8 @@ import VJoySelectableItem from '@/components/JoySelectableItem/VJoySelectableIte
37
37
  import VJoySelectableItemGroup from '@/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue';
38
38
  import VJoySeparator from '@/components/JoySeparator/VJoySeparator.vue';
39
39
  import VJoySpinner from '@/components/JoySpinner/VJoySpinner.vue';
40
- import VJoyTabs from '@/components/JoyTabs/VJoyTabs.vue';
41
40
  import VJoyTab from '@/components/JoyTab/VJoyTab.vue';
41
+ import VJoyTabs from '@/components/JoyTabs/VJoyTabs.vue';
42
42
  import VJoyTag from '@/components/JoyTag/VJoyTag.vue';
43
43
  import VJoyTagsList from '@/components/JoyTagsList/VJoyTagsList.vue';
44
44
  import VJoyTemplate from '@/components/JoyTemplate/VJoyTemplate.vue';
@@ -46,4 +46,4 @@ import VJoyTemplateShape from '@/components/JoyTemplateShape/VJoyTemplateShape.v
46
46
  import VJoyTextarea from '@/components/JoyTextarea/VJoyTextarea.vue';
47
47
  import VJoyToggle from '@/components/JoyToggle/VJoyToggle.vue';
48
48
  import VJoyWrapper from '@/components/JoyWrapper/VJoyWrapper.vue';
49
- export { VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyButton, VJoyCheckbox, VJoyCompanyAvatar, VJoyCounter, VJoyDividerCta, VJoyDropdown, VJoyDropdownList, VJoyFilterBar, VJoyFilterBarButton, VJoyFooter, VJoyFormError, VJoyFormFieldSkeleton, VJoyFunnel, VJoyHeader, 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, };
49
+ export { VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyButton, VJoyCheckbox, VJoyCompanyAvatar, VJoyCounter, VJoyDividerCta, VJoyDropdown, VJoyDropdownList, VJoyFilterBar, VJoyFilterBarButton, VJoyFooter, VJoyFormError, VJoyFormFieldSkeleton, VJoyFunnel, VJoyHeader, VJoyHighlight, VJoyIcon, VJoyInput, VJoyLabel, VJoyLink, VJoyMenu, VJoyMultiCheckbox, VJoyPagination, VJoyPanel, VJoyPanelSection, VJoyProgressBar, VJoyRadio, VJoyRadioGroup, VJoyRatingStars, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySeparator, VJoySpinner, VJoyTab, VJoyTabs, VJoyTag, VJoyTagsList, VJoyTemplate, VJoyTemplateShape, VJoyTextarea, VJoyToggle, VJoyWrapper, };