maz-ui 4.1.7 → 4.1.8-beta.0
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.
- package/dist/assets/MazBackdrop.CO7YPR-g.css +1 -0
- package/dist/assets/{MazDropzone.B5e-z_Ba.css → MazDropzone.Ch5EPpDi.css} +1 -1
- package/dist/components/MazBackdrop.js +2 -2
- package/dist/components/MazDropzone.js +23 -29
- package/dist/types/components/MazDropzone.vue.d.ts +0 -5
- package/package.json +3 -3
- package/dist/assets/MazBackdrop.09bziTPM.css +0 -1
- package/dist/components/MazAccordion.vue.d.ts +0 -36
- package/dist/components/MazAnimatedCounter.vue.d.ts +0 -59
- package/dist/components/MazAnimatedElement.vue.d.ts +0 -44
- package/dist/components/MazAnimatedText.vue.d.ts +0 -57
- package/dist/components/MazAvatar.vue.d.ts +0 -99
- package/dist/components/MazBackdrop.vue.d.ts +0 -91
- package/dist/components/MazBadge.vue.d.ts +0 -61
- package/dist/components/MazBottomSheet.vue.d.ts +0 -35
- package/dist/components/MazBtn.vue.d.ts +0 -105
- package/dist/components/MazCard.vue.d.ts +0 -81
- package/dist/components/MazCardSpotlight.vue.d.ts +0 -57
- package/dist/components/MazCarousel.vue.d.ts +0 -48
- package/dist/components/MazChart.vue.d.ts +0 -53
- package/dist/components/MazCheckbox.vue.d.ts +0 -55
- package/dist/components/MazChecklist.vue.d.ts +0 -87
- package/dist/components/MazCircularProgressBar.vue.d.ts +0 -106
- package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +0 -28
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +0 -20
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +0 -133
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +0 -142
- package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.vue.d.ts +0 -42
- package/dist/components/MazDatePicker/MazPickerContainer.vue.d.ts +0 -38
- package/dist/components/MazDatePicker/MazPickerHeader.vue.d.ts +0 -15
- package/dist/components/MazDatePicker/MazPickerMonthSwitcher.vue.d.ts +0 -44
- package/dist/components/MazDatePicker/MazPickerShortcuts.vue.d.ts +0 -16
- package/dist/components/MazDatePicker/MazPickerTime.vue.d.ts +0 -107
- package/dist/components/MazDatePicker/MazPickerYearSwitcher.vue.d.ts +0 -36
- package/dist/components/MazDatePicker/types.d.ts +0 -14
- package/dist/components/MazDatePicker/utils.d.ts +0 -61
- package/dist/components/MazDatePicker.vue.d.ts +0 -567
- package/dist/components/MazDialog.vue.d.ts +0 -247
- package/dist/components/MazDialogConfirm/useMazDialogConfirm.d.ts +0 -47
- package/dist/components/MazDialogConfirm.vue.d.ts +0 -270
- package/dist/components/MazDrawer.vue.d.ts +0 -52
- package/dist/components/MazDropdown.vue.d.ts +0 -246
- package/dist/components/MazDropzone.vue.d.ts +0 -299
- package/dist/components/MazExpandAnimation.vue.d.ts +0 -44
- package/dist/components/MazFullscreenLoader.vue.d.ts +0 -26
- package/dist/components/MazGallery.vue.d.ts +0 -85
- package/dist/components/MazIcon.vue.d.ts +0 -33
- package/dist/components/MazInput.vue.d.ts +0 -225
- package/dist/components/MazInputCode.vue.d.ts +0 -49
- package/dist/components/MazInputNumber.vue.d.ts +0 -125
- package/dist/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +0 -29
- package/dist/components/MazInputPhoneNumber/useLibphonenumber.d.ts +0 -26
- package/dist/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +0 -26
- package/dist/components/MazInputPhoneNumber.vue.d.ts +0 -421
- package/dist/components/MazInputPrice.vue.d.ts +0 -48
- package/dist/components/MazInputTags.vue.d.ts +0 -51
- package/dist/components/MazLazyImg.vue.d.ts +0 -78
- package/dist/components/MazLink.vue.d.ts +0 -116
- package/dist/components/MazLoadingBar.vue.d.ts +0 -12
- package/dist/components/MazPagination.vue.d.ts +0 -83
- package/dist/components/MazPopover.vue.d.ts +0 -258
- package/dist/components/MazPullToRefresh.vue.d.ts +0 -52
- package/dist/components/MazRadio.vue.d.ts +0 -55
- package/dist/components/MazRadioButtons.vue.d.ts +0 -74
- package/dist/components/MazReadingProgressBar.vue.d.ts +0 -55
- package/dist/components/MazSelect.vue.d.ts +0 -209
- package/dist/components/MazSelectCountry.vue.d.ts +0 -171
- package/dist/components/MazSlider/utils.d.ts +0 -15
- package/dist/components/MazSlider.vue.d.ts +0 -31
- package/dist/components/MazSpinner.vue.d.ts +0 -15
- package/dist/components/MazStepper.vue.d.ts +0 -60
- package/dist/components/MazSwitch.vue.d.ts +0 -69
- package/dist/components/MazTable.vue.d.ts +0 -324
- package/dist/components/MazTableCell.vue.d.ts +0 -17
- package/dist/components/MazTableRow.vue.d.ts +0 -23
- package/dist/components/MazTableTitle.vue.d.ts +0 -17
- package/dist/components/MazTabs.vue.d.ts +0 -30
- package/dist/components/MazTabsBar.vue.d.ts +0 -96
- package/dist/components/MazTabsContent.vue.d.ts +0 -17
- package/dist/components/MazTabsContentItem.vue.d.ts +0 -31
- package/dist/components/MazTextarea.vue.d.ts +0 -88
- package/dist/components/constantes.d.ts +0 -2
- package/dist/components/index.d.ts +0 -109
- package/dist/components/types.d.ts +0 -4
- package/dist/composables/index.d.ts +0 -22
- package/dist/composables/useAos.d.ts +0 -2
- package/dist/composables/useBreakpoints.d.ts +0 -38
- package/dist/composables/useDialog.d.ts +0 -2
- package/dist/composables/useDisplayNames.d.ts +0 -101
- package/dist/composables/useDropzone.d.ts +0 -27
- package/dist/composables/useFormField.d.ts +0 -16
- package/dist/composables/useFormValidator/config.d.ts +0 -7
- package/dist/composables/useFormValidator/dom-events.d.ts +0 -19
- package/dist/composables/useFormValidator/state-management.d.ts +0 -72
- package/dist/composables/useFormValidator/types.d.ts +0 -98
- package/dist/composables/useFormValidator/validation.d.ts +0 -37
- package/dist/composables/useFormValidator.d.ts +0 -23
- package/dist/composables/useFreezeValue.d.ts +0 -5
- package/dist/composables/useIdleTimeout.d.ts +0 -5
- package/dist/composables/useInjectStrict.d.ts +0 -2
- package/dist/composables/useInstanceUniqId.d.ts +0 -4
- package/dist/composables/useMountComponent.d.ts +0 -14
- package/dist/composables/useMutationObserver.d.ts +0 -13
- package/dist/composables/useReadingTime.d.ts +0 -25
- package/dist/composables/useStringMatching.d.ts +0 -5
- package/dist/composables/useSwipe.d.ts +0 -14
- package/dist/composables/useTimer.d.ts +0 -30
- package/dist/composables/useToast.d.ts +0 -22
- package/dist/composables/useUserVisibility.d.ts +0 -5
- package/dist/composables/useWait.d.ts +0 -2
- package/dist/composables/useWindowSize.d.ts +0 -32
- package/dist/directives/index.d.ts +0 -5
- package/dist/directives/vClickOutside.d.ts +0 -36
- package/dist/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +0 -50
- package/dist/directives/vFullscreenImg/fullscreen-img.directive.d.ts +0 -5
- package/dist/directives/vFullscreenImg/fullscreen-img.handler.d.ts +0 -36
- package/dist/directives/vFullscreenImg.d.ts +0 -11
- package/dist/directives/vLazyImg/lazy-img.directive.d.ts +0 -5
- package/dist/directives/vLazyImg/lazy-img.handler.d.ts +0 -38
- package/dist/directives/vLazyImg/types.d.ts +0 -29
- package/dist/directives/vLazyImg.d.ts +0 -12
- package/dist/directives/vTooltip.d.ts +0 -54
- package/dist/directives/vZoomImg/style.d.ts +0 -1
- package/dist/directives/vZoomImg/svgs.d.ts +0 -3
- package/dist/directives/vZoomImg/zoom-img.directive.d.ts +0 -8
- package/dist/directives/vZoomImg/zoom-img.handler.d.ts +0 -46
- package/dist/directives/vZoomImg.d.ts +0 -10
- package/dist/index.d.ts +0 -1
- package/dist/plugins/aos.d.ts +0 -81
- package/dist/plugins/dialog/DialogHandler.d.ts +0 -16
- package/dist/plugins/dialog.d.ts +0 -26
- package/dist/plugins/index.d.ts +0 -5
- package/dist/plugins/maz-ui.d.ts +0 -43
- package/dist/plugins/toast/MazToast.vue.d.ts +0 -34
- package/dist/plugins/toast/ToastHandler.d.ts +0 -29
- package/dist/plugins/toast/types.d.ts +0 -104
- package/dist/plugins/toast.d.ts +0 -25
- package/dist/plugins/wait.d.ts +0 -33
- package/dist/resolvers/MazComponentsResolver.d.ts +0 -10
- package/dist/resolvers/MazDirectivesResolver.d.ts +0 -11
- package/dist/resolvers/MazModulesResolver.d.ts +0 -11
- package/dist/resolvers/index.d.ts +0 -3
- package/dist/tailwindcss/index.d.ts +0 -6
- package/dist/tailwindcss/tailwind.config.d.ts +0 -89
- package/dist/tailwindcss/utils/colors.d.ts +0 -7
- package/dist/tailwindcss/variables/breakpoints.d.ts +0 -15
- package/dist/tailwindcss/variables/colors.d.ts +0 -21
- package/dist/tailwindcss/variables/design-tokens.d.ts +0 -35
- package/dist/tailwindcss/variables/utilities.d.ts +0 -17
- package/dist/tailwindcss/variables/z-indexes.d.ts +0 -14
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { MazColor } from './types';
|
|
2
|
-
export type MazBadgeColor = MazColor | 'background';
|
|
3
|
-
export type MazBadgeRoundedSize = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
4
|
-
export interface MazBadgeProps {
|
|
5
|
-
/**
|
|
6
|
-
* Color of the badge
|
|
7
|
-
* @values `'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'destructive' | 'contrast' | 'background'`
|
|
8
|
-
* @default primary
|
|
9
|
-
*/
|
|
10
|
-
color?: MazBadgeColor;
|
|
11
|
-
/**
|
|
12
|
-
* Size of the badge
|
|
13
|
-
* @default 0.8em
|
|
14
|
-
*/
|
|
15
|
-
size?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Will not wrap the text
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
|
-
nowrap?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Will add a border to the badge
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
outlined?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Will add a pastel style to the badge
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
pastel?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Size radius of the component's border
|
|
33
|
-
* @values `'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full'`
|
|
34
|
-
* @default md
|
|
35
|
-
*/
|
|
36
|
-
roundedSize?: MazBadgeRoundedSize;
|
|
37
|
-
}
|
|
38
|
-
declare function __VLS_template(): {
|
|
39
|
-
attrs: Partial<{}>;
|
|
40
|
-
slots: {
|
|
41
|
-
default?(_: {}): any;
|
|
42
|
-
};
|
|
43
|
-
refs: {};
|
|
44
|
-
rootEl: HTMLSpanElement;
|
|
45
|
-
};
|
|
46
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
47
|
-
declare const __VLS_component: import('vue').DefineComponent<MazBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazBadgeProps> & Readonly<{}>, {
|
|
48
|
-
size: string;
|
|
49
|
-
color: MazBadgeColor;
|
|
50
|
-
roundedSize: MazBadgeRoundedSize;
|
|
51
|
-
outlined: boolean;
|
|
52
|
-
pastel: boolean;
|
|
53
|
-
nowrap: boolean;
|
|
54
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
55
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
56
|
-
export default _default;
|
|
57
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
|
-
new (): {
|
|
59
|
-
$slots: S;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface MazBottomSheetProps {
|
|
2
|
-
/** @model Modal's model value */
|
|
3
|
-
modelValue?: boolean;
|
|
4
|
-
/** Remove the close button */
|
|
5
|
-
hideCloseButton?: boolean;
|
|
6
|
-
/** Remove the padding on the container */
|
|
7
|
-
padding?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare function __VLS_template(): {
|
|
10
|
-
attrs: Partial<{}>;
|
|
11
|
-
slots: {
|
|
12
|
-
default?(_: {
|
|
13
|
-
close: () => void;
|
|
14
|
-
}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {};
|
|
17
|
-
rootEl: any;
|
|
18
|
-
};
|
|
19
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: import('vue').DefineComponent<MazBottomSheetProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
-
close: (value: void) => any;
|
|
22
|
-
open: (value: void) => any;
|
|
23
|
-
"update:model-value": (value: boolean) => any;
|
|
24
|
-
}, string, import('vue').PublicProps, Readonly<MazBottomSheetProps> & Readonly<{
|
|
25
|
-
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
26
|
-
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
27
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
28
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
-
export default _default;
|
|
31
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
-
new (): {
|
|
33
|
-
$slots: S;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { IconComponent } from '@maz-ui/icons';
|
|
2
|
-
import { MazColor, MazSize } from './types';
|
|
3
|
-
export interface MazBtnProps {
|
|
4
|
-
/**
|
|
5
|
-
* The text of the button, if not provided, the slot will be used
|
|
6
|
-
* @default undefined
|
|
7
|
-
*/
|
|
8
|
-
text?: string;
|
|
9
|
-
/**
|
|
10
|
-
* The size of the button
|
|
11
|
-
* @values `'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'mini'`
|
|
12
|
-
*/
|
|
13
|
-
size?: MazSize;
|
|
14
|
-
/**
|
|
15
|
-
* The color of the button
|
|
16
|
-
* @values `'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'destructive' | 'transparent' | 'contrast' | 'accent' | 'background'`
|
|
17
|
-
*/
|
|
18
|
-
color?: MazColor | 'background';
|
|
19
|
-
/**
|
|
20
|
-
* The type of the button
|
|
21
|
-
* @values `'submit' | 'reset' | 'button'`
|
|
22
|
-
*/
|
|
23
|
-
type?: 'submit' | 'reset' | 'button';
|
|
24
|
-
/**
|
|
25
|
-
* Size of the rounded
|
|
26
|
-
* @values `'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full'`
|
|
27
|
-
* @default 'lg'
|
|
28
|
-
*/
|
|
29
|
-
roundedSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
30
|
-
/**
|
|
31
|
-
* If true, the button have the "border" style
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
outlined?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* If true, the button will have a pastel color
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
|
-
pastel?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* If true, the button will have a full width
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
|
-
block?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Enable the button loader
|
|
47
|
-
* @default false
|
|
48
|
-
*/
|
|
49
|
-
loading?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Disable the button
|
|
52
|
-
* @default false
|
|
53
|
-
*/
|
|
54
|
-
disabled?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* If true, the button will have a fab style
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
fab?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* The name of the icon to display or component, only with fab
|
|
62
|
-
* `@type` `{string | FunctionalComponent<SVGAttributes> | ComponentPublicInstance | Component}`
|
|
63
|
-
*/
|
|
64
|
-
icon?: string | IconComponent;
|
|
65
|
-
/**
|
|
66
|
-
* The name of the icon or component to display on the left of the button
|
|
67
|
-
* `@type` `{string | FunctionalComponent<SVGAttributes> | ComponentPublicInstance | Component}`
|
|
68
|
-
*/
|
|
69
|
-
leftIcon?: string | IconComponent;
|
|
70
|
-
/**
|
|
71
|
-
* The name of the icon or component to display on the right of the button
|
|
72
|
-
* `@type` `{string | FunctionalComponent<SVGAttributes> | ComponentPublicInstance | Component}`
|
|
73
|
-
*/
|
|
74
|
-
rightIcon?: string | IconComponent;
|
|
75
|
-
/**
|
|
76
|
-
* If true, the button will have no padding
|
|
77
|
-
* @default true
|
|
78
|
-
*/
|
|
79
|
-
padding?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Choose how the elements are aligned in the button
|
|
82
|
-
*/
|
|
83
|
-
justify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
84
|
-
}
|
|
85
|
-
declare function __VLS_template(): {
|
|
86
|
-
attrs: Partial<{}>;
|
|
87
|
-
slots: {
|
|
88
|
-
'left-icon'?(_: {}): any;
|
|
89
|
-
icon?(_: {}): any;
|
|
90
|
-
default?(_: {}): any;
|
|
91
|
-
'right-icon'?(_: {}): any;
|
|
92
|
-
loader?(_: {}): any;
|
|
93
|
-
};
|
|
94
|
-
refs: {};
|
|
95
|
-
rootEl: any;
|
|
96
|
-
};
|
|
97
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
98
|
-
declare const __VLS_component: import('vue').DefineComponent<MazBtnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazBtnProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
99
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
100
|
-
export default _default;
|
|
101
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
102
|
-
new (): {
|
|
103
|
-
$slots: S;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'vue';
|
|
2
|
-
import { RouterLinkProps } from 'vue-router';
|
|
3
|
-
import { MazGalleryProps } from './MazGallery.vue';
|
|
4
|
-
type __VLS_Props = MazCardProps;
|
|
5
|
-
export interface MazCardProps {
|
|
6
|
-
/** Card variant: Must be `column | row | row-reverse | column-reverse` */
|
|
7
|
-
orientation?: 'column' | 'row' | 'row-reverse' | 'column-reverse';
|
|
8
|
-
/** Make card a link (footer area excluded) */
|
|
9
|
-
href?: string;
|
|
10
|
-
/** Make card a link with a router-link (footer area excluded) */
|
|
11
|
-
to?: RouterLinkProps['to'];
|
|
12
|
-
/** Target option of link: Muse be one of `_blank | _self | _parent | _top | framename` */
|
|
13
|
-
hrefTarget?: '_blank' | '_self' | '_parent' | '_top' | string;
|
|
14
|
-
/** Footer text alignment: `right | left` */
|
|
15
|
-
footerAlign?: 'right' | 'left';
|
|
16
|
-
/**
|
|
17
|
-
* Images gallery props options (see `MazGallery` component)
|
|
18
|
-
* @default `{ displayedCount: 3, remaining: false, zoom: !href && !to, width: 200, height: 150 }`
|
|
19
|
-
* If `href` or `to` is set, `zoom` is set to `false`
|
|
20
|
-
*/
|
|
21
|
-
gallery?: MazGalleryProps;
|
|
22
|
-
/** scale animation on hover (only linked cards) */
|
|
23
|
-
scale?: boolean;
|
|
24
|
-
/** Set elevation to card (box-shadow) */
|
|
25
|
-
elevation?: boolean;
|
|
26
|
-
/** Set radius to card */
|
|
27
|
-
radius?: boolean;
|
|
28
|
-
/** Set border to card (in dark mode, the card is always bordered) */
|
|
29
|
-
bordered?: boolean;
|
|
30
|
-
/** add classes to wrapper */
|
|
31
|
-
wrapperClass?: HTMLAttributes['class'];
|
|
32
|
-
/** Remove padding from content wrapper */
|
|
33
|
-
padding?: boolean;
|
|
34
|
-
/** Hide overflow */
|
|
35
|
-
overflowHidden?: boolean;
|
|
36
|
-
/** Make card collapsible */
|
|
37
|
-
collapsible?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Card is open by default if `true`
|
|
40
|
-
* @model
|
|
41
|
-
*/
|
|
42
|
-
collapseOpen?: boolean;
|
|
43
|
-
/** Title of the card in header */
|
|
44
|
-
title?: string;
|
|
45
|
-
/** The card will be displayed in full width */
|
|
46
|
-
block?: boolean;
|
|
47
|
-
}
|
|
48
|
-
type __VLS_PublicProps = {
|
|
49
|
-
'collapseOpen'?: boolean;
|
|
50
|
-
} & __VLS_Props;
|
|
51
|
-
declare function __VLS_template(): {
|
|
52
|
-
attrs: Partial<{}>;
|
|
53
|
-
slots: {
|
|
54
|
-
title?(_: {}): any;
|
|
55
|
-
'content-title'?(_: {
|
|
56
|
-
collapseOpen: boolean;
|
|
57
|
-
}): any;
|
|
58
|
-
'content-subtitle'?(_: {}): any;
|
|
59
|
-
'content-body'?(_: {}): any;
|
|
60
|
-
default?(_: {
|
|
61
|
-
collapseOpen: boolean;
|
|
62
|
-
}): any;
|
|
63
|
-
footer?(_: {}): any;
|
|
64
|
-
actions?(_: {}): any;
|
|
65
|
-
};
|
|
66
|
-
refs: {};
|
|
67
|
-
rootEl: HTMLDivElement;
|
|
68
|
-
};
|
|
69
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
70
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
71
|
-
"update:collapseOpen": (...args: unknown[]) => any;
|
|
72
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
73
|
-
"onUpdate:collapseOpen"?: ((...args: unknown[]) => any) | undefined;
|
|
74
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
75
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
76
|
-
export default _default;
|
|
77
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
78
|
-
new (): {
|
|
79
|
-
$slots: S;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, StyleValue } from 'vue';
|
|
2
|
-
import { MazColor } from './types';
|
|
3
|
-
export interface MazCardSpotlightProps {
|
|
4
|
-
/**
|
|
5
|
-
* The color of the component.
|
|
6
|
-
* @default primary
|
|
7
|
-
*/
|
|
8
|
-
color?: MazColor;
|
|
9
|
-
/**
|
|
10
|
-
* Add elevation to the component
|
|
11
|
-
* @default true
|
|
12
|
-
*/
|
|
13
|
-
elevation?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Add padding to the content
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
padding?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* The classes to apply to the content div
|
|
21
|
-
*/
|
|
22
|
-
contentClass?: HTMLAttributes['class'];
|
|
23
|
-
/**
|
|
24
|
-
* Style apply to the content div
|
|
25
|
-
*/
|
|
26
|
-
contentStyle?: StyleValue;
|
|
27
|
-
/**
|
|
28
|
-
* The opacity of the inner div - should be between 0 and 1
|
|
29
|
-
* When 0 the spotlight is completely visible
|
|
30
|
-
* When 1 the spotlight is only visible on borders
|
|
31
|
-
* @default 0.95
|
|
32
|
-
*/
|
|
33
|
-
innerOpacity?: number;
|
|
34
|
-
}
|
|
35
|
-
declare function __VLS_template(): {
|
|
36
|
-
attrs: Partial<{}>;
|
|
37
|
-
slots: {
|
|
38
|
-
default?(_: {}): any;
|
|
39
|
-
};
|
|
40
|
-
refs: {
|
|
41
|
-
blobElement: HTMLDivElement;
|
|
42
|
-
fakeblobElement: HTMLDivElement;
|
|
43
|
-
};
|
|
44
|
-
rootEl: HTMLDivElement;
|
|
45
|
-
};
|
|
46
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
47
|
-
declare const __VLS_component: import('vue').DefineComponent<MazCardSpotlightProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazCardSpotlightProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
48
|
-
blobElement: HTMLDivElement;
|
|
49
|
-
fakeblobElement: HTMLDivElement;
|
|
50
|
-
}, HTMLDivElement>;
|
|
51
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
52
|
-
export default _default;
|
|
53
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
-
new (): {
|
|
55
|
-
$slots: S;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
2
|
-
import { DeepPartial } from '@maz-ui/utils/ts-helpers/DeepPartial';
|
|
3
|
-
export interface MazCarouselProps {
|
|
4
|
-
/**
|
|
5
|
-
* Hide display the scroll buttons
|
|
6
|
-
* @default false
|
|
7
|
-
*/
|
|
8
|
-
hideScrollButtons?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Translations of the carousel
|
|
11
|
-
* @type {DeepPartial<MazUiTranslationsNestedSchema['carousel']>}
|
|
12
|
-
* @default Translations from @maz-ui/translations
|
|
13
|
-
*/
|
|
14
|
-
translations?: DeepPartial<MazUiTranslationsNestedSchema['carousel']>;
|
|
15
|
-
/**
|
|
16
|
-
* Hide the scrollbar when not active
|
|
17
|
-
* @default false
|
|
18
|
-
*/
|
|
19
|
-
hideScrollbar?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The title of the carousel
|
|
22
|
-
*/
|
|
23
|
-
title?: string;
|
|
24
|
-
}
|
|
25
|
-
declare function __VLS_template(): {
|
|
26
|
-
attrs: Partial<{}>;
|
|
27
|
-
slots: {
|
|
28
|
-
title?(_: {}): any;
|
|
29
|
-
'previous-icon'?(_: {}): any;
|
|
30
|
-
'next-icon'?(_: {}): any;
|
|
31
|
-
default?(_: {}): any;
|
|
32
|
-
};
|
|
33
|
-
refs: {
|
|
34
|
-
MazCarouselItems: HTMLDivElement;
|
|
35
|
-
};
|
|
36
|
-
rootEl: HTMLDivElement;
|
|
37
|
-
};
|
|
38
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
39
|
-
declare const __VLS_component: import('vue').DefineComponent<MazCarouselProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazCarouselProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
40
|
-
MazCarouselItems: HTMLDivElement;
|
|
41
|
-
}, HTMLDivElement>;
|
|
42
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
-
export default _default;
|
|
44
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
-
new (): {
|
|
46
|
-
$slots: S;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ChartData, ChartOptions, ChartType, DefaultDataPoint, Plugin, UpdateMode } from 'chart.js';
|
|
2
|
-
export type { ChartData as MazChartData, DefaultDataPoint as MazChartDefaultDataPoint, Plugin as MazChartPlugin, ChartType as MazChartType, UpdateMode as MazChartUpdateMode } from 'chart.js';
|
|
3
|
-
export interface MazChartProps<T extends ChartType = ChartType, TData = DefaultDataPoint<T>, TLabel = unknown> {
|
|
4
|
-
/**
|
|
5
|
-
* Type of the chart
|
|
6
|
-
* @type ChartType
|
|
7
|
-
* @values 'bar', 'line', 'scatter', 'bubble', 'pie', 'doughnut', 'polarArea', 'radar'
|
|
8
|
-
* @required
|
|
9
|
-
*/
|
|
10
|
-
type: T;
|
|
11
|
-
/**
|
|
12
|
-
* Data of the chart
|
|
13
|
-
* @type ChartData<T, TData, TLabel>
|
|
14
|
-
* @required
|
|
15
|
-
*/
|
|
16
|
-
data: ChartData<T, TData, TLabel>;
|
|
17
|
-
/**
|
|
18
|
-
* Options of the chart
|
|
19
|
-
* @type ChartOptions<T>
|
|
20
|
-
* @default {}
|
|
21
|
-
*/
|
|
22
|
-
options?: ChartOptions<T>;
|
|
23
|
-
/**
|
|
24
|
-
* Plugins of the chart
|
|
25
|
-
* @type Plugin[]
|
|
26
|
-
*/
|
|
27
|
-
plugins?: Plugin[];
|
|
28
|
-
/**
|
|
29
|
-
* Dataset ID key
|
|
30
|
-
* @type string
|
|
31
|
-
*/
|
|
32
|
-
datasetIdKey?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Update mode
|
|
35
|
-
* @type UpdateMode
|
|
36
|
-
* @values 'resize', 'reset', 'none', 'hide', 'show', 'default', 'active'
|
|
37
|
-
* @default 'default'
|
|
38
|
-
*/
|
|
39
|
-
updateMode?: UpdateMode;
|
|
40
|
-
}
|
|
41
|
-
declare const _default: <T extends ChartType, TData = DefaultDataPoint<T>, TLabel = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
42
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & MazChartProps<T, TData, TLabel> & Partial<{}>> & import('vue').PublicProps;
|
|
43
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
44
|
-
attrs: any;
|
|
45
|
-
slots: {};
|
|
46
|
-
emit: {};
|
|
47
|
-
}>) => import('vue').VNode & {
|
|
48
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
49
|
-
};
|
|
50
|
-
export default _default;
|
|
51
|
-
type __VLS_PrettifyLocal<T> = {
|
|
52
|
-
[K in keyof T]: T[K];
|
|
53
|
-
} & {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'vue';
|
|
2
|
-
import { MazColor, MazSize } from './types';
|
|
3
|
-
export type MazCheckboxValue = string | number | boolean;
|
|
4
|
-
export interface MazCheckboxProps<T = boolean | (string | number)[]> {
|
|
5
|
-
/** Style attribut of the component root element */
|
|
6
|
-
style?: HTMLAttributes['style'];
|
|
7
|
-
/** Class attribut of the component root element */
|
|
8
|
-
class?: HTMLAttributes['class'];
|
|
9
|
-
/** The model value of the checkbox */
|
|
10
|
-
modelValue?: T;
|
|
11
|
-
/** The id of the checkbox */
|
|
12
|
-
id?: string;
|
|
13
|
-
/** The color of the checkbox */
|
|
14
|
-
color?: MazColor;
|
|
15
|
-
/** The value of the checkbox when selected */
|
|
16
|
-
value?: MazCheckboxValue;
|
|
17
|
-
/** The name of the checkbox */
|
|
18
|
-
name?: string;
|
|
19
|
-
/** The size of the checkbox */
|
|
20
|
-
size?: MazSize;
|
|
21
|
-
/** Text label */
|
|
22
|
-
label?: string;
|
|
23
|
-
/** If the checkbox is disabled */
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
/** Whether there is an error with the input. */
|
|
26
|
-
error?: boolean;
|
|
27
|
-
/** Whether the input is successful. */
|
|
28
|
-
success?: boolean;
|
|
29
|
-
/** Whether there is a warning with the input. */
|
|
30
|
-
warning?: boolean;
|
|
31
|
-
/** The hint text to display below the input. */
|
|
32
|
-
hint?: string;
|
|
33
|
-
}
|
|
34
|
-
declare const _default: <T extends boolean | (string | number)[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
35
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
36
|
-
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
37
|
-
readonly onChange?: ((value: T) => any) | undefined;
|
|
38
|
-
readonly onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
39
|
-
readonly "onUpdate:model-value"?: ((value: T) => any) | undefined;
|
|
40
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:model-value"> & MazCheckboxProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
41
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
42
|
-
attrs: any;
|
|
43
|
-
slots: {
|
|
44
|
-
default?(_: {
|
|
45
|
-
value: MazCheckboxValue;
|
|
46
|
-
}): any;
|
|
47
|
-
};
|
|
48
|
-
emit: ((evt: "blur", value: FocusEvent) => void) & ((evt: "change", value: T) => void) & ((evt: "focus", value: FocusEvent) => void) & ((evt: "update:model-value", value: T) => void);
|
|
49
|
-
}>) => import('vue').VNode & {
|
|
50
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
51
|
-
};
|
|
52
|
-
export default _default;
|
|
53
|
-
type __VLS_PrettifyLocal<T> = {
|
|
54
|
-
[K in keyof T]: T[K];
|
|
55
|
-
} & {};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
2
|
-
import { NormalizeStringOptions } from '@maz-ui/utils/helpers/normalizeString';
|
|
3
|
-
import { DeepPartial } from '@maz-ui/utils/ts-helpers/DeepPartial';
|
|
4
|
-
import { MazInputProps } from './MazInput.vue';
|
|
5
|
-
import { MazColor } from './types';
|
|
6
|
-
export type MazChecklistItemOption = {
|
|
7
|
-
label: string;
|
|
8
|
-
value: string | number;
|
|
9
|
-
} & Record<string, any>;
|
|
10
|
-
export interface MazChecklistProps<T, O> {
|
|
11
|
-
/**
|
|
12
|
-
* The model value of the checklist (selected items)
|
|
13
|
-
* @type {(T extends unknown)[]}
|
|
14
|
-
*/
|
|
15
|
-
modelValue?: T[];
|
|
16
|
-
/**
|
|
17
|
-
* The query to filter the items (model)
|
|
18
|
-
* @type {string}
|
|
19
|
-
*/
|
|
20
|
-
query?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The list of items to display
|
|
23
|
-
* @type {(O extends MazChecklistItemOption)[]}
|
|
24
|
-
*/
|
|
25
|
-
items?: O[];
|
|
26
|
-
/**
|
|
27
|
-
* The title of the checklist
|
|
28
|
-
*/
|
|
29
|
-
title?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Add elevation to the card
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
elevation?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The search input options
|
|
37
|
-
* @default { enabled: false, debounce: 300, autoFocus: false }
|
|
38
|
-
*/
|
|
39
|
-
search?: boolean | MazInputProps<string>;
|
|
40
|
-
/**
|
|
41
|
-
* The options to normalize the search query (used by the default search function)
|
|
42
|
-
* By default, the threshold is 0.75
|
|
43
|
-
*/
|
|
44
|
-
searchOptions?: NormalizeStringOptions & {
|
|
45
|
-
threshold?: number;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Replace the default search function to provide a custom search function
|
|
49
|
-
* @default undefined
|
|
50
|
-
*/
|
|
51
|
-
searchFunction?: (query: string, items: O[]) => O[] | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* The color of the checklist (card, checkbox and search input)
|
|
54
|
-
* @default primary
|
|
55
|
-
*/
|
|
56
|
-
color?: MazColor;
|
|
57
|
-
/**
|
|
58
|
-
* Translations of the checklist component
|
|
59
|
-
* @type {DeepPartial<MazUiTranslationsNestedSchema['checklist']>}
|
|
60
|
-
* @default Translations from @maz-ui/translations
|
|
61
|
-
*/
|
|
62
|
-
translations?: DeepPartial<MazUiTranslationsNestedSchema['checklist']>;
|
|
63
|
-
}
|
|
64
|
-
declare const _default: <T extends string | number, O extends MazChecklistItemOption>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
65
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
66
|
-
readonly "onUpdate:model-value"?: ((value?: T[] | undefined) => any) | undefined;
|
|
67
|
-
readonly "onUpdate:query"?: ((value?: string | undefined) => any) | undefined;
|
|
68
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value" | "onUpdate:query"> & MazChecklistProps<T, O> & Partial<{}>> & import('vue').PublicProps;
|
|
69
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
70
|
-
attrs: any;
|
|
71
|
-
slots: {
|
|
72
|
-
title?(_: {}): any;
|
|
73
|
-
'no-results'?(_: {}): any;
|
|
74
|
-
'no-results-text'?(_: {}): any;
|
|
75
|
-
item?(_: {
|
|
76
|
-
selectedValues: T[] | undefined;
|
|
77
|
-
item: O;
|
|
78
|
-
}): any;
|
|
79
|
-
};
|
|
80
|
-
emit: ((evt: "update:model-value", value?: T[] | undefined) => void) & ((evt: "update:query", value?: string | undefined) => void);
|
|
81
|
-
}>) => import('vue').VNode & {
|
|
82
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
83
|
-
};
|
|
84
|
-
export default _default;
|
|
85
|
-
type __VLS_PrettifyLocal<T> = {
|
|
86
|
-
[K in keyof T]: T[K];
|
|
87
|
-
} & {};
|