@maltjoy/core-vue 6.4.0 → 6.5.0-beta.1

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 (163) hide show
  1. package/dist/core-vue.js +3176 -2959
  2. package/dist/core-vue.umd.cjs +3 -3
  3. package/dist/style.css +1 -1
  4. package/package.json +1 -1
  5. package/dist/App.vue.d.ts +0 -2
  6. package/dist/components/JoyAdminBanner/VJoyAdminBanner.vue.d.ts +0 -7
  7. package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +0 -1
  8. package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +0 -10
  9. package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +0 -5
  10. package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +0 -68
  11. package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +0 -27
  12. package/dist/components/JoyBadge/JoyBadge.types.d.ts +0 -2
  13. package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +0 -66
  14. package/dist/components/JoyBadgeLevel/JoyBadgeLevel.types.d.ts +0 -12
  15. package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +0 -49
  16. package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +0 -32
  17. package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +0 -49
  18. package/dist/components/JoyButton/JoyButton.types.d.ts +0 -6
  19. package/dist/components/JoyButton/VJoyButton.vue.d.ts +0 -101
  20. package/dist/components/JoyButtonCard/JoyButtonCard.types.d.ts +0 -13
  21. package/dist/components/JoyButtonCard/VJoyButtonCard.vue.d.ts +0 -18
  22. package/dist/components/JoyCheckbox/JoyCheckbox.types.d.ts +0 -26
  23. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +0 -36
  24. package/dist/components/JoyCheckboxCard/JoyCheckboxCard.types.d.ts +0 -7
  25. package/dist/components/JoyCheckboxCard/VJoyCheckboxCard.vue.d.ts +0 -35
  26. package/dist/components/JoyCheckboxGroup/VJoyCheckboxGroup.vue.d.ts +0 -67
  27. package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +0 -215
  28. package/dist/components/JoyCollapseItem/JoyCollapseItem.types.d.ts +0 -5
  29. package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +0 -101
  30. package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +0 -2
  31. package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +0 -39
  32. package/dist/components/JoyDialog/JoyDialog.types.d.ts +0 -2
  33. package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +0 -227
  34. package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +0 -563
  35. package/dist/components/JoyDot/VJoyDot.types.d.ts +0 -1
  36. package/dist/components/JoyDot/VJoyDot.vue.d.ts +0 -15
  37. package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +0 -1
  38. package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +0 -192
  39. package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +0 -497
  40. package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +0 -18
  41. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +0 -220
  42. package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +0 -2
  43. package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +0 -136
  44. package/dist/components/JoyDropzone/VJoyDropzone.vue.d.ts +0 -153
  45. package/dist/components/JoyDropzone/VJoyDropzoneFileItem.vue.d.ts +0 -84
  46. package/dist/components/JoyDropzone/VJoyDropzoneIcon.vue.d.ts +0 -26
  47. package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +0 -19
  48. package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +0 -43
  49. package/dist/components/JoyFloatingActionsBar/VJoyFloatingActionsBar.vue.d.ts +0 -30
  50. package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +0 -63
  51. package/dist/components/JoyFormFieldSkeleton/VJoyFormFieldSkeleton.vue.d.ts +0 -41
  52. package/dist/components/JoyFormGroup/VJoyFormGroup.vue.d.ts +0 -13
  53. package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +0 -3
  54. package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +0 -71
  55. package/dist/components/JoyFunnelFooter/VJoyFunnelFooter.vue.d.ts +0 -13
  56. package/dist/components/JoyFunnelHeader/VJoyFunnelHeader.vue.d.ts +0 -13
  57. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +0 -3
  58. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +0 -76
  59. package/dist/components/JoyIcon/JoyIcon.types.d.ts +0 -5
  60. package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +0 -62
  61. package/dist/components/JoyIconButton/JoyIconButton.types.d.ts +0 -5
  62. package/dist/components/JoyIconButton/VJoyIconButton.vue.d.ts +0 -80
  63. package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +0 -44
  64. package/dist/components/JoyIndicators/JoyIndicators.types.d.ts +0 -1
  65. package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +0 -74
  66. package/dist/components/JoyInput/JoyInput.types.d.ts +0 -33
  67. package/dist/components/JoyInput/VJoyInput.vue.d.ts +0 -38
  68. package/dist/components/JoyInputDigit/JoyInputDigit.types.d.ts +0 -14
  69. package/dist/components/JoyInputDigit/VJoyInputDigit.vue.d.ts +0 -24
  70. package/dist/components/JoyInputNumber/VJoyInputNumber.vue.d.ts +0 -33
  71. package/dist/components/JoyInputPassword/VJoyInputPassword.vue.d.ts +0 -31
  72. package/dist/components/JoyLabel/JoyLabel.types.d.ts +0 -3
  73. package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +0 -57
  74. package/dist/components/JoyLink/JoyLink.types.d.ts +0 -2
  75. package/dist/components/JoyLink/VJoyLink.vue.d.ts +0 -41
  76. package/dist/components/JoyListItem/VJoyListItem.vue.d.ts +0 -21
  77. package/dist/components/JoyMenu/JoyMenu.types.d.ts +0 -13
  78. package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +0 -59
  79. package/dist/components/JoyMenuItem/JoyMenuItem.types.d.ts +0 -13
  80. package/dist/components/JoyMenuItem/VJoyMenuItem.vue.d.ts +0 -73
  81. package/dist/components/JoyPagination/PaginationIcon.vue.d.ts +0 -35
  82. package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +0 -84
  83. package/dist/components/JoyPanel/JoyPanel.types.d.ts +0 -4
  84. package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +0 -103
  85. package/dist/components/JoyPanelSection/VJoyPanelSection.vue.d.ts +0 -10
  86. package/dist/components/JoyPasswordRequirement/JoyPasswordRequirement.types.d.ts +0 -7
  87. package/dist/components/JoyPasswordRequirement/VJoyPasswordRequirement.vue.d.ts +0 -13
  88. package/dist/components/JoyProductTour/JoyProductTour.store.d.ts +0 -174
  89. package/dist/components/JoyProductTour/JoyProductTour.types.d.ts +0 -38
  90. package/dist/components/JoyProductTour/JoyProductTourSpotlight/VJoyProductTourSpotlight.vue.d.ts +0 -6
  91. package/dist/components/JoyProductTour/VJoyProductTour.vue.d.ts +0 -21
  92. package/dist/components/JoyProductTour/VJoyProductTourInner.vue.d.ts +0 -27
  93. package/dist/components/JoyProductTourTrigger/VJoyProductTourTrigger.vue.d.ts +0 -167
  94. package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +0 -2
  95. package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +0 -67
  96. package/dist/components/JoyRadio/JoyRadio.types.d.ts +0 -1
  97. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +0 -117
  98. package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +0 -1
  99. package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +0 -33
  100. package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +0 -2
  101. package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +0 -51
  102. package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +0 -1
  103. package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +0 -44
  104. package/dist/components/JoySelect/JoySelect.types.d.ts +0 -2
  105. package/dist/components/JoySelect/VJoySelect.vue.d.ts +0 -121
  106. package/dist/components/JoySelectableItem/VJoySelectableItem.types.d.ts +0 -8
  107. package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +0 -76
  108. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +0 -93
  109. package/dist/components/JoySeparator/JoySeparator.types.d.ts +0 -3
  110. package/dist/components/JoySeparator/VJoySeparator.vue.d.ts +0 -24
  111. package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +0 -19
  112. package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +0 -104
  113. package/dist/components/JoySnackbar/VJoySnackbarService.d.ts +0 -25
  114. package/dist/components/JoySnackbar/index.d.ts +0 -1
  115. package/dist/components/JoySpinner/JoySpinner.types.d.ts +0 -1
  116. package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +0 -12
  117. package/dist/components/JoyStep/TJoyStep.types.d.ts +0 -1
  118. package/dist/components/JoyStep/VJoyStep.vue.d.ts +0 -86
  119. package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +0 -171
  120. package/dist/components/JoyTab/TabButton.vue.d.ts +0 -79
  121. package/dist/components/JoyTab/VJoyTab.vue.d.ts +0 -81
  122. package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +0 -103
  123. package/dist/components/JoyTag/JoyTag.types.d.ts +0 -14
  124. package/dist/components/JoyTag/VJoyTag.vue.d.ts +0 -52
  125. package/dist/components/JoyTagsInput/JoyTagsInput.service.d.ts +0 -5
  126. package/dist/components/JoyTagsInput/JoyTagsInput.types.d.ts +0 -4
  127. package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +0 -124
  128. package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +0 -4
  129. package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +0 -140
  130. package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +0 -1
  131. package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +0 -92
  132. package/dist/components/JoyTemplate/_JoyTemplateShape/TemplateShape.vue.d.ts +0 -2
  133. package/dist/components/JoyText/JoyText.types.d.ts +0 -4
  134. package/dist/components/JoyText/VJoyText.vue.d.ts +0 -40
  135. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +0 -155
  136. package/dist/components/JoyTitleBrand/VJoyTitleBrand.vue.d.ts +0 -19
  137. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +0 -104
  138. package/dist/components/JoyTooltip/VJoyTooltip.vue.d.ts +0 -112
  139. package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +0 -71
  140. package/dist/components/JoyWalkthrough/VJoyWalkthrough.vue.d.ts +0 -39
  141. package/dist/components/JoyWalkthroughTrigger/VJoyWalkthroughTrigger.vue.d.ts +0 -9
  142. package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +0 -5
  143. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +0 -100
  144. package/dist/components/compat.d.ts +0 -1
  145. package/dist/components/component-metadata.d.ts +0 -22
  146. package/dist/components/components.d.ts +0 -8
  147. package/dist/components/components.types.d.ts +0 -42
  148. package/dist/components/index.d.ts +0 -84
  149. package/dist/composables/events.d.ts +0 -5
  150. package/dist/composables/helpers.d.ts +0 -9
  151. package/dist/composables/index.d.ts +0 -4
  152. package/dist/directives/index.d.ts +0 -1
  153. package/dist/directives/ripple.d.ts +0 -4
  154. package/dist/events/bus.d.ts +0 -3
  155. package/dist/events/index.d.ts +0 -1
  156. package/dist/helpers/index.d.ts +0 -15
  157. package/dist/joy-core-vue-manifest.json +0 -96
  158. package/dist/main.d.ts +0 -1
  159. package/dist/pages/FunnelAndStepper.vue.d.ts +0 -2
  160. package/dist/pages/FunnelMode.vue.d.ts +0 -2
  161. package/dist/pages/IndexPage.vue.d.ts +0 -2
  162. package/dist/stories/fixtures/index.d.ts +0 -1
  163. package/dist/types/index.d.ts +0 -27
@@ -1,67 +0,0 @@
1
- import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
2
- export interface Option {
3
- id: string;
4
- name?: string;
5
- value: string;
6
- label: string;
7
- subLabel?: string;
8
- /**
9
- * @default false
10
- */
11
- disabled?: boolean;
12
- /**
13
- * @default false
14
- */
15
- required?: boolean;
16
- }
17
- export type CheckboxGroupDirection = 'vertical' | 'horizontal';
18
- export interface CheckboxGroupProps {
19
- options?: Option[];
20
- id?: string;
21
- /** TODO: better typings */
22
- value?: any[];
23
- /** Switch checkboxes layout direction. */
24
- direction?: CheckboxGroupDirection;
25
- required?: boolean;
26
- /** Use VJoyLabel if you need to customize the label HTML. */
27
- label?: string;
28
- labelSize?: TJoyLabelSizes;
29
- optionalLabel?: string;
30
- requiredMark?: boolean;
31
- }
32
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<CheckboxGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
33
- "update:value": (value: any[]) => any;
34
- }, string, import("vue").PublicProps, Readonly<CheckboxGroupProps> & Readonly<{
35
- "onUpdate:value"?: ((value: any[]) => any) | undefined;
36
- }>, {
37
- required: boolean;
38
- value: any[];
39
- direction: CheckboxGroupDirection;
40
- options: Option[];
41
- labelSize: TJoyLabelSizes;
42
- requiredMark: boolean;
43
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
44
- /**
45
- * Allows explicit declaration of VJoyCheckbox / VJoyCheckboxCard children in the group.
46
- *
47
- * **Important**: v-model has to be handled by consumer.
48
- */
49
- default?: (() => any) | undefined;
50
- /** Customize the inner content of each checkboxes */
51
- checkbox?: ((option: Option) => any) | undefined;
52
- }> & {
53
- /**
54
- * Allows explicit declaration of VJoyCheckbox / VJoyCheckboxCard children in the group.
55
- *
56
- * **Important**: v-model has to be handled by consumer.
57
- */
58
- default?: (() => any) | undefined;
59
- /** Customize the inner content of each checkboxes */
60
- checkbox?: ((option: Option) => any) | undefined;
61
- }>;
62
- export default _default;
63
- type __VLS_WithTemplateSlots<T, S> = T & {
64
- new (): {
65
- $slots: S;
66
- };
67
- };
@@ -1,215 +0,0 @@
1
- import { PropType } from 'vue';
2
- import VJoyCollapseItem from '../JoyCollapseItem/VJoyCollapseItem.vue';
3
- declare function isItem(child: any): boolean;
4
- declare function isOpen(item: typeof VJoyCollapseItem): any;
5
- declare function getValForModel(item: typeof VJoyCollapseItem): any;
6
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
- /** Open one item at a time. Works with modelValue */
8
- accordion: {
9
- type: BooleanConstructor;
10
- default: boolean;
11
- };
12
- /** Use v-model to handle */
13
- modelValue: {
14
- type: PropType<string[]>;
15
- default(): never[];
16
- };
17
- /**
18
- * Experimental: outline mode may be the default one in near future
19
- */
20
- mode: {
21
- type: PropType<"default" | "outline">;
22
- default: string;
23
- };
24
- }>, {
25
- getValForModel: typeof getValForModel;
26
- isItem: typeof isItem;
27
- isOpen: typeof isOpen;
28
- items: import("vue").ComputedRef<({
29
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
30
- header: {
31
- type: StringConstructor;
32
- required: true;
33
- };
34
- subheader: {
35
- type: StringConstructor;
36
- };
37
- open: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
41
- summaryIcon: {
42
- type: PropType<import("@maltjoy/icons").JoyIconsId>;
43
- };
44
- id: {
45
- type: StringConstructor;
46
- };
47
- mode: {
48
- type: PropType<"default" | "outline">;
49
- default: string;
50
- };
51
- }>> & Readonly<{
52
- "onCollapse-item:open"?: (() => any) | undefined;
53
- "onCollapse-item:close"?: (() => any) | undefined;
54
- }>, {
55
- isOpen: import("vue").Ref<boolean, boolean>;
56
- onToggle: () => void;
57
- props: {
58
- readonly header: string;
59
- readonly open: boolean;
60
- readonly mode: "default" | "outline";
61
- readonly id?: string | undefined;
62
- readonly subheader?: string | undefined;
63
- readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
64
- };
65
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
66
- "collapse-item:open": () => any;
67
- "collapse-item:close": () => any;
68
- }, import("vue").PublicProps, {
69
- open: boolean;
70
- mode: "default" | "outline";
71
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
72
- P: {};
73
- B: {};
74
- D: {};
75
- C: {};
76
- M: {};
77
- Defaults: {};
78
- }, Readonly<import("vue").ExtractPropTypes<{
79
- header: {
80
- type: StringConstructor;
81
- required: true;
82
- };
83
- subheader: {
84
- type: StringConstructor;
85
- };
86
- open: {
87
- type: BooleanConstructor;
88
- default: boolean;
89
- };
90
- summaryIcon: {
91
- type: PropType<import("@maltjoy/icons").JoyIconsId>;
92
- };
93
- id: {
94
- type: StringConstructor;
95
- };
96
- mode: {
97
- type: PropType<"default" | "outline">;
98
- default: string;
99
- };
100
- }>> & Readonly<{
101
- "onCollapse-item:open"?: (() => any) | undefined;
102
- "onCollapse-item:close"?: (() => any) | undefined;
103
- }>, {
104
- isOpen: import("vue").Ref<boolean, boolean>;
105
- onToggle: () => void;
106
- props: {
107
- readonly header: string;
108
- readonly open: boolean;
109
- readonly mode: "default" | "outline";
110
- readonly id?: string | undefined;
111
- readonly subheader?: string | undefined;
112
- readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
113
- };
114
- }, {}, {}, {}, {
115
- open: boolean;
116
- mode: "default" | "outline";
117
- }>;
118
- __isFragment?: undefined;
119
- __isTeleport?: undefined;
120
- __isSuspense?: undefined;
121
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
122
- header: {
123
- type: StringConstructor;
124
- required: true;
125
- };
126
- subheader: {
127
- type: StringConstructor;
128
- };
129
- open: {
130
- type: BooleanConstructor;
131
- default: boolean;
132
- };
133
- summaryIcon: {
134
- type: PropType<import("@maltjoy/icons").JoyIconsId>;
135
- };
136
- id: {
137
- type: StringConstructor;
138
- };
139
- mode: {
140
- type: PropType<"default" | "outline">;
141
- default: string;
142
- };
143
- }>> & Readonly<{
144
- "onCollapse-item:open"?: (() => any) | undefined;
145
- "onCollapse-item:close"?: (() => any) | undefined;
146
- }>, {
147
- isOpen: import("vue").Ref<boolean, boolean>;
148
- onToggle: () => void;
149
- props: {
150
- readonly header: string;
151
- readonly open: boolean;
152
- readonly mode: "default" | "outline";
153
- readonly id?: string | undefined;
154
- readonly subheader?: string | undefined;
155
- readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
156
- };
157
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
158
- "collapse-item:open": () => any;
159
- "collapse-item:close": () => any;
160
- }, string, {
161
- open: boolean;
162
- mode: "default" | "outline";
163
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
164
- $slots: Readonly<{
165
- default(): any;
166
- 'collapse-header-right'?: (() => any) | undefined;
167
- 'collapse-subheader'?: (() => any) | undefined;
168
- 'collapse-preview'?: (() => any) | undefined;
169
- }> & {
170
- default(): any;
171
- 'collapse-header-right'?: (() => any) | undefined;
172
- 'collapse-subheader'?: (() => any) | undefined;
173
- 'collapse-preview'?: (() => any) | undefined;
174
- };
175
- }))[]>;
176
- openedCollapseItem: import("vue").Ref<string[], string[]>;
177
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
178
- "update:modelValue": (model: string[]) => any;
179
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
180
- /** Open one item at a time. Works with modelValue */
181
- accordion: {
182
- type: BooleanConstructor;
183
- default: boolean;
184
- };
185
- /** Use v-model to handle */
186
- modelValue: {
187
- type: PropType<string[]>;
188
- default(): never[];
189
- };
190
- /**
191
- * Experimental: outline mode may be the default one in near future
192
- */
193
- mode: {
194
- type: PropType<"default" | "outline">;
195
- default: string;
196
- };
197
- }>> & Readonly<{
198
- "onUpdate:modelValue"?: ((model: string[]) => any) | undefined;
199
- }>, {
200
- mode: "default" | "outline";
201
- accordion: boolean;
202
- modelValue: string[];
203
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
204
- /** Inject your VJoyCollapseItem here */
205
- default: () => any;
206
- }> & {
207
- /** Inject your VJoyCollapseItem here */
208
- default: () => any;
209
- }>;
210
- export default _default;
211
- type __VLS_WithTemplateSlots<T, S> = T & {
212
- new (): {
213
- $slots: S;
214
- };
215
- };
@@ -1,5 +0,0 @@
1
- import VJoyCollapseItem from './VJoyCollapseItem.vue';
2
- export type TJoyCollapseItemProps = InstanceType<typeof VJoyCollapseItem>['$props'];
3
- export type TJoyCollapseItems = TJoyCollapseItemProps[];
4
- export declare const COLLAPSE_ITEM_MODES: readonly ["outline", "default"];
5
- export type TJoyCollapseItemModes = (typeof COLLAPSE_ITEM_MODES)[number];
@@ -1,101 +0,0 @@
1
- import { PropType } from 'vue';
2
- declare function onToggle(): void;
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- /** Title of the collapse item */
5
- header: {
6
- type: StringConstructor;
7
- required: true;
8
- };
9
- subheader: {
10
- type: StringConstructor;
11
- };
12
- open: {
13
- type: BooleanConstructor;
14
- default: boolean;
15
- };
16
- /** Pick the icon you want to display in front of the header/title */
17
- summaryIcon: {
18
- type: PropType<import("@maltjoy/icons").JoyIconsId>;
19
- };
20
- id: {
21
- type: StringConstructor;
22
- };
23
- /**
24
- * Experimental: outline mode may be the default one in near future
25
- */
26
- mode: {
27
- type: PropType<"default" | "outline">;
28
- default: string;
29
- };
30
- }>, {
31
- isOpen: import("vue").Ref<boolean, boolean>;
32
- onToggle: typeof onToggle;
33
- props: {
34
- readonly header: string;
35
- readonly open: boolean;
36
- readonly mode: "default" | "outline";
37
- readonly id?: string | undefined;
38
- readonly subheader?: string | undefined;
39
- readonly summaryIcon?: import("@maltjoy/icons").JoyIconsId | undefined;
40
- };
41
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
42
- "collapse-item:open": () => any;
43
- "collapse-item:close": () => any;
44
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
- /** Title of the collapse item */
46
- header: {
47
- type: StringConstructor;
48
- required: true;
49
- };
50
- subheader: {
51
- type: StringConstructor;
52
- };
53
- open: {
54
- type: BooleanConstructor;
55
- default: boolean;
56
- };
57
- /** Pick the icon you want to display in front of the header/title */
58
- summaryIcon: {
59
- type: PropType<import("@maltjoy/icons").JoyIconsId>;
60
- };
61
- id: {
62
- type: StringConstructor;
63
- };
64
- /**
65
- * Experimental: outline mode may be the default one in near future
66
- */
67
- mode: {
68
- type: PropType<"default" | "outline">;
69
- default: string;
70
- };
71
- }>> & Readonly<{
72
- "onCollapse-item:open"?: (() => any) | undefined;
73
- "onCollapse-item:close"?: (() => any) | undefined;
74
- }>, {
75
- open: boolean;
76
- mode: "default" | "outline";
77
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
78
- /** Main content, hidden by default */
79
- default(): any;
80
- /** Inject the content you need on the right side, between the header/title and the arrow */
81
- 'collapse-header-right'?: (() => any) | undefined;
82
- /** Not mandatory */
83
- 'collapse-subheader'?: (() => any) | undefined;
84
- /** If you need to inject a small snippet of what includes the collapse, you can use this slot */
85
- 'collapse-preview'?: (() => any) | undefined;
86
- }> & {
87
- /** Main content, hidden by default */
88
- default(): any;
89
- /** Inject the content you need on the right side, between the header/title and the arrow */
90
- 'collapse-header-right'?: (() => any) | undefined;
91
- /** Not mandatory */
92
- 'collapse-subheader'?: (() => any) | undefined;
93
- /** If you need to inject a small snippet of what includes the collapse, you can use this slot */
94
- 'collapse-preview'?: (() => any) | undefined;
95
- }>;
96
- export default _default;
97
- type __VLS_WithTemplateSlots<T, S> = T & {
98
- new (): {
99
- $slots: S;
100
- };
101
- };
@@ -1,2 +0,0 @@
1
- import { TSizes } from '../../types';
2
- export type TJoyCompanyAvatarSizes = Extract<TSizes, 'large' | 'medium' | 'small'>;
@@ -1,39 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { TJoyCompanyAvatarSizes } from './JoyCompanyAvatar.types';
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- /** Inject the URL of your image. Fallback will be the icon */
5
- imgSrc: StringConstructor;
6
- /** Mostly for accessibility, use this to add an alternative text. */
7
- imgAlt: StringConstructor;
8
- /** Used as "title" attribute for the img. */
9
- companyName: StringConstructor;
10
- size: {
11
- type: PropType<TJoyCompanyAvatarSizes>;
12
- default: string;
13
- };
14
- /** Only applied if you set a imgSrc */
15
- loading: {
16
- type: PropType<"lazy" | "eager">;
17
- default: string;
18
- };
19
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
- /** Inject the URL of your image. Fallback will be the icon */
21
- imgSrc: StringConstructor;
22
- /** Mostly for accessibility, use this to add an alternative text. */
23
- imgAlt: StringConstructor;
24
- /** Used as "title" attribute for the img. */
25
- companyName: StringConstructor;
26
- size: {
27
- type: PropType<TJoyCompanyAvatarSizes>;
28
- default: string;
29
- };
30
- /** Only applied if you set a imgSrc */
31
- loading: {
32
- type: PropType<"lazy" | "eager">;
33
- default: string;
34
- };
35
- }>> & Readonly<{}>, {
36
- size: TJoyCompanyAvatarSizes;
37
- loading: "lazy" | "eager";
38
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39
- export default _default;
@@ -1,2 +0,0 @@
1
- import { TSizes } from '../../types';
2
- export type TJoyDialogSizes = Extract<TSizes, 'large'> | 'default';
@@ -1,227 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { TJoyButtonSizes } from '../JoyButton/JoyButton.types';
3
- import { TJoyDialogSizes } from './JoyDialog.types';
4
- declare function hide(options?: {
5
- fireHideEvent?: boolean;
6
- }): Promise<void>;
7
- declare function show(): Promise<void>;
8
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
- id: {
10
- type: StringConstructor;
11
- };
12
- size: {
13
- type: PropType<TJoyDialogSizes>;
14
- default: string;
15
- };
16
- /** By default the dialog is teleported to the end of body tag */
17
- teleport: {
18
- type: PropType<string | import("vue").RendererElement | null | undefined>;
19
- default: string;
20
- };
21
- open: {
22
- type: BooleanConstructor;
23
- default: boolean;
24
- };
25
- /**
26
- * Mostly for documentation purpose
27
- */
28
- preventBodyScroll: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
32
- disableTeleport: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- /** Mostly for documentation purpose, it prevents the component from being hidden */
37
- demoMode: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
41
- /** **For accessibility purpose**. Label associated with the top right corner icon. */
42
- closeLabel: {
43
- type: StringConstructor;
44
- default: string;
45
- };
46
- /** Display the dialog without the top right icon to close it.
47
- * Click on backdrop is disabled and pressing Escape does not trigger anything.
48
- */
49
- patternConfirm: {
50
- type: BooleanConstructor;
51
- default: boolean;
52
- };
53
- /**
54
- * EXPERIMENTAL: activates a new centered layout and display decorative colored shapes. Shapes can't be disabled.
55
- */
56
- patternBrand: {
57
- type: BooleanConstructor;
58
- default: boolean;
59
- };
60
- /** Use this property to directly create a cancel CTA (VJoyButton), if you don't need to customize the CTA. */
61
- cancelText: {
62
- type: StringConstructor;
63
- };
64
- /** Use this property to directly create a confirm CTA (VJoyButton), if you don't need to customize the CTA. */
65
- confirmText: {
66
- type: StringConstructor;
67
- };
68
- buttonSize: {
69
- type: PropType<TJoyButtonSizes>;
70
- default: string;
71
- };
72
- /** Link to inject an image on top of the dialog */
73
- bannerSrc: {
74
- type: StringConstructor;
75
- };
76
- /** Based on CSS propetty background-position. https://developer.mozilla.org/en-US/docs/Web/CSS/background-position */
77
- bannerPosition: {
78
- type: StringConstructor;
79
- };
80
- bannerHeight: {
81
- type: NumberConstructor;
82
- default: number;
83
- };
84
- }>, {
85
- hasFooterSlots: import("vue").ComputedRef<boolean>;
86
- hide: typeof hide;
87
- isOpen: import("vue").Ref<boolean, boolean>;
88
- show: typeof show;
89
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
90
- "dialog:open": () => any;
91
- "dialog:after-open": () => any;
92
- "dialog:hide": () => any;
93
- "dialog:after-hide": () => any;
94
- "dialog:before-unmount": () => any;
95
- "dialog:confirm": () => any;
96
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
97
- id: {
98
- type: StringConstructor;
99
- };
100
- size: {
101
- type: PropType<TJoyDialogSizes>;
102
- default: string;
103
- };
104
- /** By default the dialog is teleported to the end of body tag */
105
- teleport: {
106
- type: PropType<string | import("vue").RendererElement | null | undefined>;
107
- default: string;
108
- };
109
- open: {
110
- type: BooleanConstructor;
111
- default: boolean;
112
- };
113
- /**
114
- * Mostly for documentation purpose
115
- */
116
- preventBodyScroll: {
117
- type: BooleanConstructor;
118
- default: boolean;
119
- };
120
- disableTeleport: {
121
- type: BooleanConstructor;
122
- default: boolean;
123
- };
124
- /** Mostly for documentation purpose, it prevents the component from being hidden */
125
- demoMode: {
126
- type: BooleanConstructor;
127
- default: boolean;
128
- };
129
- /** **For accessibility purpose**. Label associated with the top right corner icon. */
130
- closeLabel: {
131
- type: StringConstructor;
132
- default: string;
133
- };
134
- /** Display the dialog without the top right icon to close it.
135
- * Click on backdrop is disabled and pressing Escape does not trigger anything.
136
- */
137
- patternConfirm: {
138
- type: BooleanConstructor;
139
- default: boolean;
140
- };
141
- /**
142
- * EXPERIMENTAL: activates a new centered layout and display decorative colored shapes. Shapes can't be disabled.
143
- */
144
- patternBrand: {
145
- type: BooleanConstructor;
146
- default: boolean;
147
- };
148
- /** Use this property to directly create a cancel CTA (VJoyButton), if you don't need to customize the CTA. */
149
- cancelText: {
150
- type: StringConstructor;
151
- };
152
- /** Use this property to directly create a confirm CTA (VJoyButton), if you don't need to customize the CTA. */
153
- confirmText: {
154
- type: StringConstructor;
155
- };
156
- buttonSize: {
157
- type: PropType<TJoyButtonSizes>;
158
- default: string;
159
- };
160
- /** Link to inject an image on top of the dialog */
161
- bannerSrc: {
162
- type: StringConstructor;
163
- };
164
- /** Based on CSS propetty background-position. https://developer.mozilla.org/en-US/docs/Web/CSS/background-position */
165
- bannerPosition: {
166
- type: StringConstructor;
167
- };
168
- bannerHeight: {
169
- type: NumberConstructor;
170
- default: number;
171
- };
172
- }>> & Readonly<{
173
- "onDialog:open"?: (() => any) | undefined;
174
- "onDialog:after-open"?: (() => any) | undefined;
175
- "onDialog:hide"?: (() => any) | undefined;
176
- "onDialog:after-hide"?: (() => any) | undefined;
177
- "onDialog:before-unmount"?: (() => any) | undefined;
178
- "onDialog:confirm"?: (() => any) | undefined;
179
- }>, {
180
- size: TJoyDialogSizes;
181
- closeLabel: string;
182
- open: boolean;
183
- preventBodyScroll: boolean;
184
- teleport: string | import("vue").RendererElement | null | undefined;
185
- disableTeleport: boolean;
186
- demoMode: boolean;
187
- patternConfirm: boolean;
188
- patternBrand: boolean;
189
- buttonSize: TJoyButtonSizes;
190
- bannerHeight: number;
191
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
192
- /** Made for short informations */
193
- 'dialog-preheader': () => any;
194
- /** Header to inject your title */
195
- 'dialog-header': () => any;
196
- /** Subheader to inject additionnal informtion */
197
- 'dialog-subheader': () => any;
198
- /** Body content to inject whatever you need */
199
- 'dialog-body': () => any;
200
- /** Used to render the cancel CTA */
201
- 'dialog-cancel': () => any;
202
- /** Used to render the confirm CTA */
203
- 'dialog-confirm': () => any;
204
- /** When navigating with multiple dialogs */
205
- 'dialog-indicators': () => any;
206
- }> & {
207
- /** Made for short informations */
208
- 'dialog-preheader': () => any;
209
- /** Header to inject your title */
210
- 'dialog-header': () => any;
211
- /** Subheader to inject additionnal informtion */
212
- 'dialog-subheader': () => any;
213
- /** Body content to inject whatever you need */
214
- 'dialog-body': () => any;
215
- /** Used to render the cancel CTA */
216
- 'dialog-cancel': () => any;
217
- /** Used to render the confirm CTA */
218
- 'dialog-confirm': () => any;
219
- /** When navigating with multiple dialogs */
220
- 'dialog-indicators': () => any;
221
- }>;
222
- export default _default;
223
- type __VLS_WithTemplateSlots<T, S> = T & {
224
- new (): {
225
- $slots: S;
226
- };
227
- };