maz-ui 4.1.7 → 4.1.8-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.
- 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 +9 -9
- 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,55 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'vue';
|
|
2
|
-
import { MazColor } from './types';
|
|
3
|
-
export interface MazReadingProgressBarProps {
|
|
4
|
-
/**
|
|
5
|
-
* Height of the progress bar
|
|
6
|
-
* @default 4px
|
|
7
|
-
*/
|
|
8
|
-
height?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Color of the progress bar
|
|
11
|
-
* @default primary
|
|
12
|
-
*/
|
|
13
|
-
color?: MazColor;
|
|
14
|
-
/**
|
|
15
|
-
* Selector of the element to teleport the progress bar
|
|
16
|
-
* @default body
|
|
17
|
-
*/
|
|
18
|
-
teleportSelector?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Selector of the element to get the height
|
|
21
|
-
* @default body
|
|
22
|
-
*/
|
|
23
|
-
contentSelector?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Offset of the progress bar
|
|
26
|
-
* @default 0
|
|
27
|
-
*/
|
|
28
|
-
offset?: number;
|
|
29
|
-
/**
|
|
30
|
-
* Class of the progress bar
|
|
31
|
-
* @default undefined
|
|
32
|
-
*/
|
|
33
|
-
barClass?: HTMLAttributes['class'];
|
|
34
|
-
/**
|
|
35
|
-
* Instead of using the height of the content with a selector, you can set a scroll distance
|
|
36
|
-
* @default undefined
|
|
37
|
-
*/
|
|
38
|
-
distance?: number;
|
|
39
|
-
}
|
|
40
|
-
declare const _default: import('vue').DefineComponent<MazReadingProgressBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
41
|
-
begin: () => any;
|
|
42
|
-
complete: () => any;
|
|
43
|
-
}, string, import('vue').PublicProps, Readonly<MazReadingProgressBarProps> & Readonly<{
|
|
44
|
-
onBegin?: (() => any) | undefined;
|
|
45
|
-
onComplete?: (() => any) | undefined;
|
|
46
|
-
}>, {
|
|
47
|
-
height: string;
|
|
48
|
-
color: MazColor;
|
|
49
|
-
offset: number;
|
|
50
|
-
teleportSelector: string;
|
|
51
|
-
distance: number;
|
|
52
|
-
contentSelector: string;
|
|
53
|
-
barClass: HTMLAttributes["class"];
|
|
54
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
55
|
-
export default _default;
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
2
|
-
import { HTMLAttributes } from 'vue';
|
|
3
|
-
import { MazInputValue } from './MazInput.vue';
|
|
4
|
-
import { MazPopoverProps } from './MazPopover.vue';
|
|
5
|
-
import { MazColor, MazSize } from './types';
|
|
6
|
-
export interface MazSelectNormalizedOption {
|
|
7
|
-
[key: string]: MazInputValue;
|
|
8
|
-
}
|
|
9
|
-
export interface MazSelectOptionWithOptGroup {
|
|
10
|
-
label: string;
|
|
11
|
-
options: (MazSelectNormalizedOption | string | number | boolean)[];
|
|
12
|
-
}
|
|
13
|
-
export type MazSelectOption = MazSelectNormalizedOption | string | number | boolean | MazSelectOptionWithOptGroup;
|
|
14
|
-
export interface MazSelectProps<Value extends MazInputValue, Option extends MazSelectOption, Multiple extends boolean> {
|
|
15
|
-
/**
|
|
16
|
-
* Style attribut of the component root element
|
|
17
|
-
* @type {HTMLAttributes['style']}
|
|
18
|
-
*/
|
|
19
|
-
style?: HTMLAttributes['style'];
|
|
20
|
-
/**
|
|
21
|
-
* Class attribut of the component root element
|
|
22
|
-
* @type {HTMLAttributes['class']}
|
|
23
|
-
*/
|
|
24
|
-
class?: HTMLAttributes['class'];
|
|
25
|
-
/** The id of the select */
|
|
26
|
-
id?: string;
|
|
27
|
-
/**
|
|
28
|
-
* The label of the select
|
|
29
|
-
*/
|
|
30
|
-
label?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The placeholder of the select
|
|
33
|
-
*/
|
|
34
|
-
placeholder?: string;
|
|
35
|
-
/**
|
|
36
|
-
* The value of the select
|
|
37
|
-
* @type {Value | Value[]}
|
|
38
|
-
*/
|
|
39
|
-
modelValue?: Multiple extends true ? Value[] : Value;
|
|
40
|
-
/**
|
|
41
|
-
* The options of the select
|
|
42
|
-
* @type {Option[]}
|
|
43
|
-
*/
|
|
44
|
-
options: Option[];
|
|
45
|
-
/**
|
|
46
|
-
* The key of the option value
|
|
47
|
-
* @default 'value'
|
|
48
|
-
*/
|
|
49
|
-
optionValueKey?: string;
|
|
50
|
-
/**
|
|
51
|
-
* The key of the option label
|
|
52
|
-
* @default 'label'
|
|
53
|
-
*/
|
|
54
|
-
optionLabelKey?: string;
|
|
55
|
-
/**
|
|
56
|
-
* The key of the option input value
|
|
57
|
-
* @default 'label'
|
|
58
|
-
*/
|
|
59
|
-
optionInputValueKey?: string;
|
|
60
|
-
/**
|
|
61
|
-
* The position of the list (auto by default - will switch between bottom-start and top-start)
|
|
62
|
-
* @type {MazPopoverProps['position']}
|
|
63
|
-
* @default 'auto'
|
|
64
|
-
*/
|
|
65
|
-
listPosition?: MazPopoverProps['position'];
|
|
66
|
-
/**
|
|
67
|
-
* The prefer position of the list
|
|
68
|
-
* @type {MazPopoverProps['preferPosition']}
|
|
69
|
-
* @default 'bottom-start'
|
|
70
|
-
*/
|
|
71
|
-
preferPosition?: MazPopoverProps['preferPosition'];
|
|
72
|
-
/**
|
|
73
|
-
* The fallback position of the list
|
|
74
|
-
* @type {MazPopoverProps['fallbackPosition']}
|
|
75
|
-
* @default 'top-start'
|
|
76
|
-
*/
|
|
77
|
-
fallbackPosition?: MazPopoverProps['fallbackPosition'];
|
|
78
|
-
/** The height of the option list item */
|
|
79
|
-
itemHeight?: number;
|
|
80
|
-
/**
|
|
81
|
-
* The max height of the option list
|
|
82
|
-
* @default 240
|
|
83
|
-
*/
|
|
84
|
-
maxListHeight?: number;
|
|
85
|
-
/** The max width of the option list */
|
|
86
|
-
maxListWidth?: number;
|
|
87
|
-
/** The min height of the option list */
|
|
88
|
-
minListHeight?: number;
|
|
89
|
-
/** The min width of the option list */
|
|
90
|
-
minListWidth?: number;
|
|
91
|
-
/**
|
|
92
|
-
* The size of the select
|
|
93
|
-
* @default 'md'
|
|
94
|
-
*/
|
|
95
|
-
size?: MazSize;
|
|
96
|
-
/**
|
|
97
|
-
* The color of the select
|
|
98
|
-
* @default 'primary'
|
|
99
|
-
*/
|
|
100
|
-
color?: MazColor;
|
|
101
|
-
/** Display search input in option list */
|
|
102
|
-
search?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Replace the default search function to provide a custom search function
|
|
105
|
-
* @default undefined
|
|
106
|
-
*/
|
|
107
|
-
searchFunction?: (query: string, options: Option[]) => Option[] | undefined;
|
|
108
|
-
/**
|
|
109
|
-
* The threshold for the search input where 1 is a perfect match and 0 is a match with any character
|
|
110
|
-
* @default 0.75
|
|
111
|
-
*/
|
|
112
|
-
searchThreshold?: number;
|
|
113
|
-
/** Enable the multiple selection */
|
|
114
|
-
multiple?: Multiple;
|
|
115
|
-
/** Make the input required in the form */
|
|
116
|
-
required?: boolean;
|
|
117
|
-
/** Disable the component */
|
|
118
|
-
disabled?: boolean;
|
|
119
|
-
/** The input will be displayed in full width */
|
|
120
|
-
block?: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* The autocomplete attribute of the input
|
|
123
|
-
* @default 'off'
|
|
124
|
-
*/
|
|
125
|
-
autocomplete?: string;
|
|
126
|
-
/**
|
|
127
|
-
* The translations of the component
|
|
128
|
-
* @type {Partial<MazUiTranslationsNestedSchema['select']>}
|
|
129
|
-
* @default {
|
|
130
|
-
* searchPlaceholder: 'Search in options',
|
|
131
|
-
* }
|
|
132
|
-
*/
|
|
133
|
-
translations?: Partial<MazUiTranslationsNestedSchema['select']>;
|
|
134
|
-
/**
|
|
135
|
-
* The function to format the input value
|
|
136
|
-
* @type {(value: Multiple extends true ? Value[] : Value) => string}
|
|
137
|
-
* @default undefined
|
|
138
|
-
*/
|
|
139
|
-
formatInputValue?: (value: Multiple extends true ? Value[] : Value) => string;
|
|
140
|
-
/**
|
|
141
|
-
* The transition name of the panel list options
|
|
142
|
-
* @type {MazPopoverProps['transition']}
|
|
143
|
-
* @default 'scale-fade'
|
|
144
|
-
*/
|
|
145
|
-
transition?: MazPopoverProps['transition'];
|
|
146
|
-
}
|
|
147
|
-
declare const _default: <Option extends MazSelectOption, Value extends MazInputValue, Multiple extends boolean>(__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<{
|
|
148
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
149
|
-
readonly onBlur?: ((value: Event) => any) | undefined;
|
|
150
|
-
readonly onChange?: ((value: Event) => any) | undefined;
|
|
151
|
-
readonly onClose?: (() => any) | undefined;
|
|
152
|
-
readonly onFocus?: ((value?: Event | undefined) => any) | undefined;
|
|
153
|
-
readonly onInput?: ((value: Event) => any) | undefined;
|
|
154
|
-
readonly onOpen?: (() => any) | undefined;
|
|
155
|
-
readonly "onUpdate:model-value"?: ((value: Multiple extends true ? Value[] : Value) => any) | undefined;
|
|
156
|
-
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
157
|
-
readonly "onSelected-option"?: ((value: Option) => any) | undefined;
|
|
158
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInput" | "onClose" | "onOpen" | "onUpdate:model-value" | "onUpdate:open" | "onSelected-option"> & ({
|
|
159
|
-
open?: boolean;
|
|
160
|
-
} & MazSelectProps<Value, Option, Multiple> & {
|
|
161
|
-
multiple?: boolean;
|
|
162
|
-
}) & Partial<{}>> & import('vue').PublicProps;
|
|
163
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
164
|
-
/**
|
|
165
|
-
* Open the select
|
|
166
|
-
* @description This is used to open the list options
|
|
167
|
-
*/
|
|
168
|
-
open: () => void;
|
|
169
|
-
/**
|
|
170
|
-
* Close the select
|
|
171
|
-
* @description This is used to close the list options
|
|
172
|
-
*/
|
|
173
|
-
close: () => void;
|
|
174
|
-
}>): void;
|
|
175
|
-
attrs: any;
|
|
176
|
-
slots: {
|
|
177
|
-
'left-icon'?(_: {
|
|
178
|
-
isOpen: boolean;
|
|
179
|
-
close: () => void;
|
|
180
|
-
open: () => void;
|
|
181
|
-
toggle: () => void;
|
|
182
|
-
}): any;
|
|
183
|
-
'right-icon'?(_: {
|
|
184
|
-
isOpen: boolean;
|
|
185
|
-
close: () => void;
|
|
186
|
-
open: () => void;
|
|
187
|
-
toggle: () => void;
|
|
188
|
-
}): any;
|
|
189
|
-
'no-results'?(_: {}): any;
|
|
190
|
-
optgroup?(_: {
|
|
191
|
-
label: string | number | true;
|
|
192
|
-
}): any;
|
|
193
|
-
default?(_: {
|
|
194
|
-
option: Option;
|
|
195
|
-
isSelected: boolean;
|
|
196
|
-
isOpen: boolean;
|
|
197
|
-
close: () => void;
|
|
198
|
-
open: () => void;
|
|
199
|
-
toggle: () => void;
|
|
200
|
-
}): any;
|
|
201
|
-
};
|
|
202
|
-
emit: (((evt: "blur", value: Event) => void) & ((evt: "change", value: Event) => void) & ((evt: "close") => void) & ((evt: "focus", value?: Event | undefined) => void) & ((evt: "input", value: Event) => void) & ((evt: "open") => void) & ((evt: "update:model-value", value: Multiple extends true ? Value[] : Value) => void) & ((evt: "selected-option", value: Option) => void)) & ((evt: "update:open", value: boolean) => void);
|
|
203
|
-
}>) => import('vue').VNode & {
|
|
204
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
205
|
-
};
|
|
206
|
-
export default _default;
|
|
207
|
-
type __VLS_PrettifyLocal<T> = {
|
|
208
|
-
[K in keyof T]: T[K];
|
|
209
|
-
} & {};
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
2
|
-
import { HTMLAttributes } from 'vue';
|
|
3
|
-
import { CodesType, DisplayNameCode, DisplayNamesOptions } from '../composables/useDisplayNames';
|
|
4
|
-
import { MazPopoverProps } from './MazPopover.vue';
|
|
5
|
-
import { MazSelectProps } from './MazSelect.vue';
|
|
6
|
-
import { MazColor, MazSize } from './types';
|
|
7
|
-
export interface MazSelectCountryProps<Option extends {
|
|
8
|
-
name: string;
|
|
9
|
-
code: DisplayNameCode | string;
|
|
10
|
-
} = {
|
|
11
|
-
name: string;
|
|
12
|
-
code: string;
|
|
13
|
-
}> extends Omit<MazSelectProps<Option['code'], Option, false>, 'options' | 'multiple'> {
|
|
14
|
-
/**
|
|
15
|
-
* Style attribut of the component root element
|
|
16
|
-
* @type {HTMLAttributes['style']}
|
|
17
|
-
*/
|
|
18
|
-
style?: HTMLAttributes['style'];
|
|
19
|
-
/**
|
|
20
|
-
* Class attribut of the component root element
|
|
21
|
-
* @type {HTMLAttributes['class']}
|
|
22
|
-
*/
|
|
23
|
-
class?: HTMLAttributes['class'];
|
|
24
|
-
/**
|
|
25
|
-
* Id of the component
|
|
26
|
-
*/
|
|
27
|
-
id?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Color of the component
|
|
30
|
-
* @type {MazColor}
|
|
31
|
-
* @default primary
|
|
32
|
-
*/
|
|
33
|
-
color?: MazColor;
|
|
34
|
-
/**
|
|
35
|
-
* Size of the component
|
|
36
|
-
* @type {MazSize}
|
|
37
|
-
* @default md
|
|
38
|
-
*/
|
|
39
|
-
size?: MazSize;
|
|
40
|
-
/**
|
|
41
|
-
* Preferred countries to display
|
|
42
|
-
* @type {Option['code'][]}
|
|
43
|
-
*/
|
|
44
|
-
preferredCodes?: Option['code'][];
|
|
45
|
-
/**
|
|
46
|
-
* Ignored countries to display
|
|
47
|
-
* @type {Option['code'][]}
|
|
48
|
-
*/
|
|
49
|
-
ignoredCodes?: Option['code'][];
|
|
50
|
-
/**
|
|
51
|
-
* Only countries to display
|
|
52
|
-
* @type {Option['code'][]}
|
|
53
|
-
*/
|
|
54
|
-
onlyCodes?: Option['code'][];
|
|
55
|
-
/**
|
|
56
|
-
* Position of the list
|
|
57
|
-
* @type {MazPopoverProps['position']}
|
|
58
|
-
* @default 'auto'
|
|
59
|
-
*/
|
|
60
|
-
listPosition?: MazPopoverProps['position'];
|
|
61
|
-
/**
|
|
62
|
-
* Hide flags
|
|
63
|
-
*/
|
|
64
|
-
hideFlags?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Display search input in options list
|
|
67
|
-
* @type {boolean}
|
|
68
|
-
* @default true
|
|
69
|
-
*/
|
|
70
|
-
search?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Show code on list
|
|
73
|
-
* @default false
|
|
74
|
-
*/
|
|
75
|
-
showCodeInList?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Locale
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @default locale defined within the maz-ui plugin or browser locale or en-US
|
|
80
|
-
*/
|
|
81
|
-
locale?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Success state
|
|
84
|
-
*/
|
|
85
|
-
success?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Error state
|
|
88
|
-
*/
|
|
89
|
-
error?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Warning state
|
|
92
|
-
*/
|
|
93
|
-
warning?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
displayCode?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Search threshold
|
|
100
|
-
*/
|
|
101
|
-
searchThreshold?: number;
|
|
102
|
-
/**
|
|
103
|
-
* Translations
|
|
104
|
-
* @type {Partial<MazUiTranslationsNestedSchema['selectCountry']>}
|
|
105
|
-
* @default MazUiTranslationsNestedSchema['selectCountry']
|
|
106
|
-
*/
|
|
107
|
-
translations?: Partial<MazUiTranslationsNestedSchema['selectCountry']>;
|
|
108
|
-
/**
|
|
109
|
-
* Hint message displayed
|
|
110
|
-
*/
|
|
111
|
-
hint?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Options
|
|
114
|
-
* @type {Option[]}
|
|
115
|
-
*/
|
|
116
|
-
options?: Option[];
|
|
117
|
-
/**
|
|
118
|
-
* Display name type
|
|
119
|
-
* @type {Intl.DisplayNamesOptions}
|
|
120
|
-
* @default { type: 'region', languageDisplay: 'standard', fallback: 'code', style: 'long' }
|
|
121
|
-
*/
|
|
122
|
-
displayNamesOptions?: DisplayNamesOptions;
|
|
123
|
-
/**
|
|
124
|
-
* Codes type
|
|
125
|
-
* @type {CodesType}
|
|
126
|
-
* @default defined by displayNamesOptions.type (if 'region', 'country' is used, otherwise 'iso')
|
|
127
|
-
* @values 'iso' | 'bcp' | 'country' | 'all'
|
|
128
|
-
*/
|
|
129
|
-
codesType?: CodesType;
|
|
130
|
-
/**
|
|
131
|
-
* Open the select
|
|
132
|
-
* @type {boolean}
|
|
133
|
-
* @default false
|
|
134
|
-
*/
|
|
135
|
-
open?: boolean;
|
|
136
|
-
}
|
|
137
|
-
declare const _default: <Option extends {
|
|
138
|
-
name: string;
|
|
139
|
-
code: DisplayNameCode | string;
|
|
140
|
-
}>(__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<{
|
|
141
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
142
|
-
readonly "onUpdate:model-value"?: ((value?: Option["code"] | undefined) => any) | undefined;
|
|
143
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value"> & MazSelectCountryProps<Option> & Partial<{}>> & import('vue').PublicProps;
|
|
144
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
145
|
-
attrs: any;
|
|
146
|
-
slots: {
|
|
147
|
-
'selector-flag'?(_: {
|
|
148
|
-
countryCode: Option["code"] | undefined;
|
|
149
|
-
}): any;
|
|
150
|
-
'no-results'?(_: {}): any;
|
|
151
|
-
'country-list-flag'?(_: {
|
|
152
|
-
option: Option;
|
|
153
|
-
isSelected: boolean;
|
|
154
|
-
}): any;
|
|
155
|
-
'country-list-code'?(_: {
|
|
156
|
-
option: Option;
|
|
157
|
-
isSelected: boolean;
|
|
158
|
-
}): any;
|
|
159
|
-
'country-list-name'?(_: {
|
|
160
|
-
option: Option;
|
|
161
|
-
isSelected: boolean;
|
|
162
|
-
}): any;
|
|
163
|
-
};
|
|
164
|
-
emit: (evt: "update:model-value", value?: Option["code"] | undefined) => void;
|
|
165
|
-
}>) => import('vue').VNode & {
|
|
166
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
167
|
-
};
|
|
168
|
-
export default _default;
|
|
169
|
-
type __VLS_PrettifyLocal<T> = {
|
|
170
|
-
[K in keyof T]: T[K];
|
|
171
|
-
} & {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
interface IPosObject {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
}
|
|
5
|
-
export declare function getOffset(elem: HTMLDivElement): IPosObject;
|
|
6
|
-
/**
|
|
7
|
-
* Get the position of the mouse/finger in the element
|
|
8
|
-
* @param e Trigger event
|
|
9
|
-
* @param elem Container element
|
|
10
|
-
* @param isReverse From the right/bottom
|
|
11
|
-
*/
|
|
12
|
-
export declare function getPos(e: MouseEvent | TouchEvent, elem: HTMLDivElement, isReverse?: boolean): IPosObject;
|
|
13
|
-
export declare function isBetween(value: number, prev: number, next: number, direction: string): boolean;
|
|
14
|
-
export declare function getOpacityCoeff(index: number, middle: number, length: number): number;
|
|
15
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { MazColor } from './types';
|
|
2
|
-
export interface MazSliderProps {
|
|
3
|
-
/** Array of cursors values */
|
|
4
|
-
modelValue: number | number[] | undefined | null;
|
|
5
|
-
/** array of cursors label */
|
|
6
|
-
labels?: string[];
|
|
7
|
-
/** min value of sliders */
|
|
8
|
-
min?: number;
|
|
9
|
-
/** max value of sliders */
|
|
10
|
-
max?: number;
|
|
11
|
-
/** step value for slider increments */
|
|
12
|
-
step?: number;
|
|
13
|
-
/** height size of slider bar */
|
|
14
|
-
size?: string;
|
|
15
|
-
/** remove div in different colors */
|
|
16
|
-
divider?: boolean;
|
|
17
|
-
/** become a logarithmic slider (exponential) */
|
|
18
|
-
log?: boolean;
|
|
19
|
-
/** main slider color */
|
|
20
|
-
color?: MazColor;
|
|
21
|
-
/** disables cursor animation when active */
|
|
22
|
-
cursorAnim?: boolean;
|
|
23
|
-
}
|
|
24
|
-
declare const _default: import('vue').DefineComponent<MazSliderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
-
"update:model-value": (...args: any[]) => void;
|
|
26
|
-
}, string, import('vue').PublicProps, Readonly<MazSliderProps> & Readonly<{
|
|
27
|
-
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
28
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
29
|
-
MazSlider: HTMLDivElement;
|
|
30
|
-
}, any>;
|
|
31
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { MazColor } from './types';
|
|
2
|
-
export interface MazSpinnerProps {
|
|
3
|
-
/**
|
|
4
|
-
* The size of the spinner
|
|
5
|
-
* @default 2em
|
|
6
|
-
*/
|
|
7
|
-
size?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The color of the spinner
|
|
10
|
-
* @default theme
|
|
11
|
-
*/
|
|
12
|
-
color?: MazColor;
|
|
13
|
-
}
|
|
14
|
-
declare const _default: import('vue').DefineComponent<MazSpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazSpinnerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
15
|
-
export default _default;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { IconComponent } from '@maz-ui/icons';
|
|
2
|
-
import { MazColor } from './types';
|
|
3
|
-
export interface MazStepperStep {
|
|
4
|
-
title?: string;
|
|
5
|
-
subtitle?: string;
|
|
6
|
-
titleInfo?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
error?: boolean;
|
|
9
|
-
success?: boolean;
|
|
10
|
-
warning?: boolean;
|
|
11
|
-
icon?: string | IconComponent;
|
|
12
|
-
}
|
|
13
|
-
export interface MazStepperProps {
|
|
14
|
-
/** The current step */
|
|
15
|
-
modelValue?: number;
|
|
16
|
-
/** The steps */
|
|
17
|
-
steps?: MazStepperStep[];
|
|
18
|
-
/**
|
|
19
|
-
* The color of the stepper
|
|
20
|
-
* @default primary
|
|
21
|
-
*/
|
|
22
|
-
color?: MazColor;
|
|
23
|
-
/** Disable the next steps */
|
|
24
|
-
disabledNextSteps?: boolean;
|
|
25
|
-
/** Disable the previous steps */
|
|
26
|
-
disabledPreviousSteps?: boolean;
|
|
27
|
-
/** Auto validate the steps */
|
|
28
|
-
autoValidateSteps?: boolean;
|
|
29
|
-
/** Open all steps */
|
|
30
|
-
allStepsOpened?: boolean;
|
|
31
|
-
/** Validate all steps */
|
|
32
|
-
allStepsValidated?: boolean;
|
|
33
|
-
/** Allow to close the steps */
|
|
34
|
-
canCloseSteps?: boolean;
|
|
35
|
-
}
|
|
36
|
-
declare function __VLS_template(): {
|
|
37
|
-
attrs: Partial<{}>;
|
|
38
|
-
slots: Partial<Record<`icon-${number}`, (_: {}) => any>> & Partial<Record<`title-${number}`, (_: {}) => any>> & Partial<Record<`subtitle-${number}`, (_: {}) => any>> & Partial<Record<`title-info-${number}`, (_: {}) => any>> & Partial<Record<`content-${number}`, (_: {
|
|
39
|
-
validated: boolean;
|
|
40
|
-
error: boolean | undefined;
|
|
41
|
-
warning: boolean | undefined;
|
|
42
|
-
nextStep: () => void;
|
|
43
|
-
previousStep: () => void;
|
|
44
|
-
}) => any>>;
|
|
45
|
-
refs: {};
|
|
46
|
-
rootEl: HTMLDivElement;
|
|
47
|
-
};
|
|
48
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
49
|
-
declare const __VLS_component: import('vue').DefineComponent<MazStepperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
-
"update:model-value": (value: number) => any;
|
|
51
|
-
}, string, import('vue').PublicProps, Readonly<MazStepperProps> & Readonly<{
|
|
52
|
-
"onUpdate:model-value"?: ((value: number) => any) | undefined;
|
|
53
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
54
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
55
|
-
export default _default;
|
|
56
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
-
new (): {
|
|
58
|
-
$slots: S;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'vue';
|
|
2
|
-
import { MazColor } from './types';
|
|
3
|
-
export interface MazSwitchProps {
|
|
4
|
-
/** Style attribut of the component root element */
|
|
5
|
-
style?: HTMLAttributes['style'];
|
|
6
|
-
/** Class attribut of the component root element */
|
|
7
|
-
class?: HTMLAttributes['class'];
|
|
8
|
-
/** The model value of the switch */
|
|
9
|
-
modelValue?: boolean;
|
|
10
|
-
/** The id of the switch */
|
|
11
|
-
id?: string;
|
|
12
|
-
/** If the switch is disabled */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/** The name of the switch */
|
|
15
|
-
name?: string;
|
|
16
|
-
/** Text label */
|
|
17
|
-
label?: string;
|
|
18
|
-
/** The color of the switch */
|
|
19
|
-
color?: MazColor;
|
|
20
|
-
/** Whether there is an error with the input. */
|
|
21
|
-
error?: boolean;
|
|
22
|
-
/** Whether the input is successful. */
|
|
23
|
-
success?: boolean;
|
|
24
|
-
/** Whether there is a warning with the input. */
|
|
25
|
-
warning?: boolean;
|
|
26
|
-
/** The hint text to display below the input. */
|
|
27
|
-
hint?: string;
|
|
28
|
-
}
|
|
29
|
-
declare function __VLS_template(): {
|
|
30
|
-
attrs: Partial<{}>;
|
|
31
|
-
slots: {
|
|
32
|
-
default?(_: {
|
|
33
|
-
value: boolean;
|
|
34
|
-
}): any;
|
|
35
|
-
};
|
|
36
|
-
refs: {
|
|
37
|
-
inputRef: HTMLInputElement;
|
|
38
|
-
};
|
|
39
|
-
rootEl: any;
|
|
40
|
-
};
|
|
41
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
42
|
-
declare const __VLS_component: import('vue').DefineComponent<MazSwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
-
blur: (value: FocusEvent) => any;
|
|
44
|
-
change: (value: boolean) => any;
|
|
45
|
-
focus: (value: FocusEvent) => any;
|
|
46
|
-
"update:model-value": (value: boolean) => any;
|
|
47
|
-
}, string, import('vue').PublicProps, Readonly<MazSwitchProps> & Readonly<{
|
|
48
|
-
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
49
|
-
onChange?: ((value: boolean) => any) | undefined;
|
|
50
|
-
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
51
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
52
|
-
}>, {
|
|
53
|
-
name: string;
|
|
54
|
-
style: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
55
|
-
class: HTMLAttributes["class"];
|
|
56
|
-
color: MazColor;
|
|
57
|
-
disabled: boolean;
|
|
58
|
-
id: string;
|
|
59
|
-
modelValue: boolean;
|
|
60
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
61
|
-
inputRef: HTMLInputElement;
|
|
62
|
-
}, any>;
|
|
63
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
64
|
-
export default _default;
|
|
65
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
-
new (): {
|
|
67
|
-
$slots: S;
|
|
68
|
-
};
|
|
69
|
-
};
|