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,247 +0,0 @@
|
|
|
1
|
-
import { ComponentPublicInstance, HTMLAttributes, nextTick } from 'vue';
|
|
2
|
-
import { MazBackdropProps } from './MazBackdrop.vue';
|
|
3
|
-
type __VLS_Props = DialogProps & MazBackdropProps;
|
|
4
|
-
export interface DialogProps {
|
|
5
|
-
/** @model Modal's model value */
|
|
6
|
-
modelValue?: boolean;
|
|
7
|
-
/** Title of the modal in header */
|
|
8
|
-
title?: string;
|
|
9
|
-
/** Remove the close button in header */
|
|
10
|
-
hideCloseButton?: boolean;
|
|
11
|
-
/** Modal's max-width */
|
|
12
|
-
maxWidth?: string;
|
|
13
|
-
/** Modal's min-width */
|
|
14
|
-
minWidth?: string;
|
|
15
|
-
/** Modal's content becomes scrollable - warning: a overflow is applied */
|
|
16
|
-
scrollable?: boolean;
|
|
17
|
-
/** Persistent dialog (not closable by clicking outside and remove close button) */
|
|
18
|
-
persistent?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface MazDialogProps extends DialogProps, MazBackdropProps {
|
|
21
|
-
}
|
|
22
|
-
declare function __VLS_template(): {
|
|
23
|
-
attrs: Partial<{}>;
|
|
24
|
-
slots: {
|
|
25
|
-
header?(_: {
|
|
26
|
-
close: () => void;
|
|
27
|
-
}): any;
|
|
28
|
-
title?(_: {}): any;
|
|
29
|
-
default?(_: {
|
|
30
|
-
close: () => void;
|
|
31
|
-
}): any;
|
|
32
|
-
footer?(_: {
|
|
33
|
-
close: () => void;
|
|
34
|
-
}): any;
|
|
35
|
-
};
|
|
36
|
-
refs: {
|
|
37
|
-
backdrop: ({
|
|
38
|
-
$: import('vue').ComponentInternalInstance;
|
|
39
|
-
$data: {};
|
|
40
|
-
$props: {
|
|
41
|
-
readonly modelValue?: boolean | undefined;
|
|
42
|
-
readonly teleportSelector?: string | undefined;
|
|
43
|
-
readonly beforeClose?: (() => Promise<void> | void) | undefined;
|
|
44
|
-
readonly persistent?: boolean | undefined;
|
|
45
|
-
readonly closeOnEscape?: boolean | undefined;
|
|
46
|
-
readonly transitionName?: string | undefined;
|
|
47
|
-
readonly backdropClass?: HTMLAttributes["class"];
|
|
48
|
-
readonly backdropContentClass?: HTMLAttributes["class"];
|
|
49
|
-
readonly contentPadding?: boolean | undefined;
|
|
50
|
-
readonly justify?: "center" | "end" | "start" | "space-between" | "space-around" | "none" | undefined;
|
|
51
|
-
readonly align?: "center" | "end" | "start" | "none" | undefined;
|
|
52
|
-
readonly variant?: "bottom-sheet" | "dialog" | "drawer" | undefined;
|
|
53
|
-
readonly ariaLabelledby?: string | undefined;
|
|
54
|
-
readonly ariaDescribedby?: string | undefined;
|
|
55
|
-
readonly onClose?: ((value?: void | undefined) => any) | undefined;
|
|
56
|
-
readonly onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
57
|
-
readonly "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
58
|
-
readonly "onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
59
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
60
|
-
$attrs: {
|
|
61
|
-
[x: string]: unknown;
|
|
62
|
-
};
|
|
63
|
-
$refs: {
|
|
64
|
-
[x: string]: unknown;
|
|
65
|
-
};
|
|
66
|
-
$slots: Readonly<{
|
|
67
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
68
|
-
}>;
|
|
69
|
-
$root: ComponentPublicInstance | null;
|
|
70
|
-
$parent: ComponentPublicInstance | null;
|
|
71
|
-
$host: Element | null;
|
|
72
|
-
$emit: ((event: "close", value?: void | undefined) => void) & ((event: "open", value?: void | undefined) => void) & ((event: "update:model-value", value: boolean) => void) & ((event: "before-close", value?: void | undefined) => void);
|
|
73
|
-
$el: any;
|
|
74
|
-
$options: import('vue').ComponentOptionsBase<Readonly<MazBackdropProps> & Readonly<{
|
|
75
|
-
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
76
|
-
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
77
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
78
|
-
"onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
79
|
-
}>, {
|
|
80
|
-
onBackdropAnimationLeave: () => void;
|
|
81
|
-
close: () => void;
|
|
82
|
-
present: import('vue').Ref<boolean, boolean>;
|
|
83
|
-
toggleModal: (value?: boolean) => Promise<void>;
|
|
84
|
-
onKeyPress: (event: KeyboardEvent) => void;
|
|
85
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
86
|
-
close: (value: void) => any;
|
|
87
|
-
open: (value: void) => any;
|
|
88
|
-
"update:model-value": (value: boolean) => any;
|
|
89
|
-
"before-close": (value: void) => any;
|
|
90
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
91
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
92
|
-
created?: (() => void) | (() => void)[];
|
|
93
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
94
|
-
mounted?: (() => void) | (() => void)[];
|
|
95
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
96
|
-
updated?: (() => void) | (() => void)[];
|
|
97
|
-
activated?: (() => void) | (() => void)[];
|
|
98
|
-
deactivated?: (() => void) | (() => void)[];
|
|
99
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
100
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
101
|
-
destroyed?: (() => void) | (() => void)[];
|
|
102
|
-
unmounted?: (() => void) | (() => void)[];
|
|
103
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
104
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
105
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
106
|
-
};
|
|
107
|
-
$forceUpdate: () => void;
|
|
108
|
-
$nextTick: typeof nextTick;
|
|
109
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
110
|
-
} & Readonly<{}> & Omit<Readonly<MazBackdropProps> & Readonly<{
|
|
111
|
-
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
112
|
-
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
113
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
114
|
-
"onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
115
|
-
}>, "close" | "onBackdropAnimationLeave" | "present" | "toggleModal" | "onKeyPress"> & import('vue').ShallowUnwrapRef<{
|
|
116
|
-
onBackdropAnimationLeave: () => void;
|
|
117
|
-
close: () => void;
|
|
118
|
-
present: import('vue').Ref<boolean, boolean>;
|
|
119
|
-
toggleModal: (value?: boolean) => Promise<void>;
|
|
120
|
-
onKeyPress: (event: KeyboardEvent) => void;
|
|
121
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
122
|
-
$slots: {
|
|
123
|
-
default?(_: {
|
|
124
|
-
close: () => void;
|
|
125
|
-
}): any;
|
|
126
|
-
};
|
|
127
|
-
}) | null;
|
|
128
|
-
dialogContent: HTMLDivElement;
|
|
129
|
-
};
|
|
130
|
-
rootEl: any;
|
|
131
|
-
};
|
|
132
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
133
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
134
|
-
/**
|
|
135
|
-
* Close the dialog
|
|
136
|
-
* @description This is used to close the dialog
|
|
137
|
-
*/
|
|
138
|
-
close: () => any;
|
|
139
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
140
|
-
close: (value: void) => any;
|
|
141
|
-
open: (value: void) => any;
|
|
142
|
-
"update:model-value": (value: boolean) => any;
|
|
143
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
144
|
-
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
145
|
-
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
146
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
147
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
148
|
-
backdrop: ({
|
|
149
|
-
$: import('vue').ComponentInternalInstance;
|
|
150
|
-
$data: {};
|
|
151
|
-
$props: {
|
|
152
|
-
readonly modelValue?: boolean | undefined;
|
|
153
|
-
readonly teleportSelector?: string | undefined;
|
|
154
|
-
readonly beforeClose?: (() => Promise<void> | void) | undefined;
|
|
155
|
-
readonly persistent?: boolean | undefined;
|
|
156
|
-
readonly closeOnEscape?: boolean | undefined;
|
|
157
|
-
readonly transitionName?: string | undefined;
|
|
158
|
-
readonly backdropClass?: HTMLAttributes["class"];
|
|
159
|
-
readonly backdropContentClass?: HTMLAttributes["class"];
|
|
160
|
-
readonly contentPadding?: boolean | undefined;
|
|
161
|
-
readonly justify?: "center" | "end" | "start" | "space-between" | "space-around" | "none" | undefined;
|
|
162
|
-
readonly align?: "center" | "end" | "start" | "none" | undefined;
|
|
163
|
-
readonly variant?: "bottom-sheet" | "dialog" | "drawer" | undefined;
|
|
164
|
-
readonly ariaLabelledby?: string | undefined;
|
|
165
|
-
readonly ariaDescribedby?: string | undefined;
|
|
166
|
-
readonly onClose?: ((value?: void | undefined) => any) | undefined;
|
|
167
|
-
readonly onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
168
|
-
readonly "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
169
|
-
readonly "onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
170
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
171
|
-
$attrs: {
|
|
172
|
-
[x: string]: unknown;
|
|
173
|
-
};
|
|
174
|
-
$refs: {
|
|
175
|
-
[x: string]: unknown;
|
|
176
|
-
};
|
|
177
|
-
$slots: Readonly<{
|
|
178
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
179
|
-
}>;
|
|
180
|
-
$root: ComponentPublicInstance | null;
|
|
181
|
-
$parent: ComponentPublicInstance | null;
|
|
182
|
-
$host: Element | null;
|
|
183
|
-
$emit: ((event: "close", value?: void | undefined) => void) & ((event: "open", value?: void | undefined) => void) & ((event: "update:model-value", value: boolean) => void) & ((event: "before-close", value?: void | undefined) => void);
|
|
184
|
-
$el: any;
|
|
185
|
-
$options: import('vue').ComponentOptionsBase<Readonly<MazBackdropProps> & Readonly<{
|
|
186
|
-
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
187
|
-
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
188
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
189
|
-
"onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
190
|
-
}>, {
|
|
191
|
-
onBackdropAnimationLeave: () => void;
|
|
192
|
-
close: () => void;
|
|
193
|
-
present: import('vue').Ref<boolean, boolean>;
|
|
194
|
-
toggleModal: (value?: boolean) => Promise<void>;
|
|
195
|
-
onKeyPress: (event: KeyboardEvent) => void;
|
|
196
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
197
|
-
close: (value: void) => any;
|
|
198
|
-
open: (value: void) => any;
|
|
199
|
-
"update:model-value": (value: boolean) => any;
|
|
200
|
-
"before-close": (value: void) => any;
|
|
201
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
202
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
203
|
-
created?: (() => void) | (() => void)[];
|
|
204
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
205
|
-
mounted?: (() => void) | (() => void)[];
|
|
206
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
207
|
-
updated?: (() => void) | (() => void)[];
|
|
208
|
-
activated?: (() => void) | (() => void)[];
|
|
209
|
-
deactivated?: (() => void) | (() => void)[];
|
|
210
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
211
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
212
|
-
destroyed?: (() => void) | (() => void)[];
|
|
213
|
-
unmounted?: (() => void) | (() => void)[];
|
|
214
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
215
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
216
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
217
|
-
};
|
|
218
|
-
$forceUpdate: () => void;
|
|
219
|
-
$nextTick: typeof nextTick;
|
|
220
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
221
|
-
} & Readonly<{}> & Omit<Readonly<MazBackdropProps> & Readonly<{
|
|
222
|
-
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
223
|
-
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
224
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
225
|
-
"onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
226
|
-
}>, "close" | "onBackdropAnimationLeave" | "present" | "toggleModal" | "onKeyPress"> & import('vue').ShallowUnwrapRef<{
|
|
227
|
-
onBackdropAnimationLeave: () => void;
|
|
228
|
-
close: () => void;
|
|
229
|
-
present: import('vue').Ref<boolean, boolean>;
|
|
230
|
-
toggleModal: (value?: boolean) => Promise<void>;
|
|
231
|
-
onKeyPress: (event: KeyboardEvent) => void;
|
|
232
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
233
|
-
$slots: {
|
|
234
|
-
default?(_: {
|
|
235
|
-
close: () => void;
|
|
236
|
-
}): any;
|
|
237
|
-
};
|
|
238
|
-
}) | null;
|
|
239
|
-
dialogContent: HTMLDivElement;
|
|
240
|
-
}, any>;
|
|
241
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
242
|
-
export default _default;
|
|
243
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
244
|
-
new (): {
|
|
245
|
-
$slots: S;
|
|
246
|
-
};
|
|
247
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { MazBtnProps } from '../MazBtn.vue';
|
|
3
|
-
import { MazDialogConfirmInternalProps } from '../MazDialogConfirm.vue';
|
|
4
|
-
export interface MazDialogConfirmState {
|
|
5
|
-
id: string;
|
|
6
|
-
isActive: boolean;
|
|
7
|
-
accept: (value: unknown) => void;
|
|
8
|
-
reject?: (reason?: unknown) => void;
|
|
9
|
-
}
|
|
10
|
-
export interface MazDialogConfirmButtonAction extends Omit<MazBtnProps, 'type'> {
|
|
11
|
-
type: never;
|
|
12
|
-
text?: string;
|
|
13
|
-
onClick: () => unknown;
|
|
14
|
-
}
|
|
15
|
-
export interface MazDialogConfirmButtonPromised extends Omit<MazBtnProps, 'type'> {
|
|
16
|
-
text?: string;
|
|
17
|
-
type: 'accept' | 'reject';
|
|
18
|
-
response?: unknown;
|
|
19
|
-
}
|
|
20
|
-
export type MazDialogConfirmButton = MazDialogConfirmButtonPromised | MazDialogConfirmButtonAction;
|
|
21
|
-
export type MazDialogConfirmData = Omit<MazDialogConfirmInternalProps, 'identifier'>;
|
|
22
|
-
export declare const defaultData: {
|
|
23
|
-
buttons: undefined;
|
|
24
|
-
acceptText: string;
|
|
25
|
-
hideAcceptButton: false;
|
|
26
|
-
acceptProps: {
|
|
27
|
-
color: "success";
|
|
28
|
-
type: "accept";
|
|
29
|
-
response: string;
|
|
30
|
-
};
|
|
31
|
-
rejectText: string;
|
|
32
|
-
hideRejectButton: false;
|
|
33
|
-
rejectProps: {
|
|
34
|
-
color: "destructive";
|
|
35
|
-
type: "reject";
|
|
36
|
-
response: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
declare function showDialogAndWaitChoice(identifier: string, callback?: () => unknown): Promise<unknown>;
|
|
40
|
-
export declare function useMazDialogConfirm(): {
|
|
41
|
-
data: Ref<MazDialogConfirmData, MazDialogConfirmData>;
|
|
42
|
-
dialogState: Ref<MazDialogConfirmState[], MazDialogConfirmState[]>;
|
|
43
|
-
showDialogAndWaitChoice: typeof showDialogAndWaitChoice;
|
|
44
|
-
reject: (currentDialog: MazDialogConfirmState, response?: unknown, onClick?: () => unknown) => Promise<unknown>;
|
|
45
|
-
accept: (currentDialog: MazDialogConfirmState, response?: unknown, onClick?: () => unknown) => Promise<unknown>;
|
|
46
|
-
};
|
|
47
|
-
export {};
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { ComponentPublicInstance, ComputedRef } from 'vue';
|
|
2
|
-
import { MazBtnProps } from './MazBtn.vue';
|
|
3
|
-
import { MazDialogProps } from './MazDialog.vue';
|
|
4
|
-
import { MazDialogConfirmButton, MazDialogConfirmData } from './MazDialogConfirm/useMazDialogConfirm';
|
|
5
|
-
export interface MazDialogConfirmInternalProps {
|
|
6
|
-
/**
|
|
7
|
-
* Uniq identifier of the dialog
|
|
8
|
-
* @description This is used to identify the dialog in the state
|
|
9
|
-
*/
|
|
10
|
-
identifier: string;
|
|
11
|
-
/**
|
|
12
|
-
* Dialog title displayed in the header
|
|
13
|
-
*/
|
|
14
|
-
title?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Dialog message displayed in the body
|
|
17
|
-
*/
|
|
18
|
-
message?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Text for the reject button - will be applied only if buttons props is not provided
|
|
21
|
-
* @default undefined
|
|
22
|
-
*/
|
|
23
|
-
rejectText?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Props for the reject button - will be applied only if buttons props is not provided
|
|
26
|
-
* @default { color: 'destructive', type: 'reject', text: 'Cancel', response: 'reject' }
|
|
27
|
-
* @type {Omit<MazBtnProps, 'type'> & MazDialogConfirmButton}
|
|
28
|
-
*/
|
|
29
|
-
rejectProps?: Omit<MazBtnProps, 'type'> & MazDialogConfirmButton;
|
|
30
|
-
/**
|
|
31
|
-
* Whether to display the reject button
|
|
32
|
-
* @default true
|
|
33
|
-
*/
|
|
34
|
-
hideRejectButton?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Text for the accept button
|
|
37
|
-
* @default undefined
|
|
38
|
-
*/
|
|
39
|
-
acceptText?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Props for the accept button - will be applied only if buttons props is not provided
|
|
42
|
-
* @default { color: 'success', type: 'accept', text: 'Confirm', response: 'accept' }
|
|
43
|
-
* @type {Omit<MazBtnProps, 'type'> & MazDialogConfirmButton}
|
|
44
|
-
*/
|
|
45
|
-
acceptProps?: Omit<MazBtnProps, 'type'> & MazDialogConfirmButton;
|
|
46
|
-
/**
|
|
47
|
-
* Whether to display the accept button
|
|
48
|
-
* @default true
|
|
49
|
-
*/
|
|
50
|
-
hideAcceptButton?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Buttons to display in the footer
|
|
53
|
-
* @default undefined
|
|
54
|
-
*/
|
|
55
|
-
buttons?: MazDialogConfirmButton[];
|
|
56
|
-
}
|
|
57
|
-
export type MazDialogConfirmProps = MazDialogConfirmInternalProps & MazDialogConfirmData & MazDialogProps;
|
|
58
|
-
export { useMazDialogConfirm } from './MazDialogConfirm/useMazDialogConfirm';
|
|
59
|
-
export type { MazDialogConfirmButton, MazDialogConfirmData } from './MazDialogConfirm/useMazDialogConfirm';
|
|
60
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<MazDialogConfirmProps, {
|
|
61
|
-
close: () => void;
|
|
62
|
-
isActive: ComputedRef<boolean>;
|
|
63
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
|
-
close: (value: void) => any;
|
|
65
|
-
open: (value: void) => any;
|
|
66
|
-
}, string, import('vue').PublicProps, Readonly<MazDialogConfirmProps> & Readonly<{
|
|
67
|
-
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
68
|
-
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
69
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
70
|
-
dialog: ({
|
|
71
|
-
$: import('vue').ComponentInternalInstance;
|
|
72
|
-
$data: {};
|
|
73
|
-
$props: {
|
|
74
|
-
readonly modelValue?: boolean | undefined;
|
|
75
|
-
readonly title?: string | undefined;
|
|
76
|
-
readonly hideCloseButton?: boolean | undefined;
|
|
77
|
-
readonly maxWidth?: string | undefined;
|
|
78
|
-
readonly minWidth?: string | undefined;
|
|
79
|
-
readonly scrollable?: boolean | undefined;
|
|
80
|
-
readonly persistent?: boolean | undefined;
|
|
81
|
-
readonly teleportSelector?: string | undefined;
|
|
82
|
-
readonly beforeClose?: (() => Promise<void> | void) | undefined;
|
|
83
|
-
readonly closeOnEscape?: boolean | undefined;
|
|
84
|
-
readonly transitionName?: string | undefined;
|
|
85
|
-
readonly backdropClass?: import('vue').HTMLAttributes["class"];
|
|
86
|
-
readonly backdropContentClass?: import('vue').HTMLAttributes["class"];
|
|
87
|
-
readonly contentPadding?: boolean | undefined;
|
|
88
|
-
readonly justify?: "center" | "end" | "start" | "space-between" | "space-around" | "none" | undefined;
|
|
89
|
-
readonly align?: "center" | "end" | "start" | "none" | undefined;
|
|
90
|
-
readonly variant?: "bottom-sheet" | "dialog" | "drawer" | undefined;
|
|
91
|
-
readonly ariaLabelledby?: string | undefined;
|
|
92
|
-
readonly ariaDescribedby?: string | undefined;
|
|
93
|
-
readonly onClose?: ((value?: void | undefined) => any) | undefined;
|
|
94
|
-
readonly onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
95
|
-
readonly "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
96
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
97
|
-
$attrs: {
|
|
98
|
-
[x: string]: unknown;
|
|
99
|
-
};
|
|
100
|
-
$refs: {
|
|
101
|
-
[x: string]: unknown;
|
|
102
|
-
} & {
|
|
103
|
-
backdrop: ({
|
|
104
|
-
$: import('vue').ComponentInternalInstance;
|
|
105
|
-
$data: {};
|
|
106
|
-
$props: {
|
|
107
|
-
readonly modelValue?: boolean | undefined;
|
|
108
|
-
readonly teleportSelector?: string | undefined;
|
|
109
|
-
readonly beforeClose?: (() => Promise<void> | void) | undefined;
|
|
110
|
-
readonly persistent?: boolean | undefined;
|
|
111
|
-
readonly closeOnEscape?: boolean | undefined;
|
|
112
|
-
readonly transitionName?: string | undefined;
|
|
113
|
-
readonly backdropClass?: import('vue').HTMLAttributes["class"];
|
|
114
|
-
readonly backdropContentClass?: import('vue').HTMLAttributes["class"];
|
|
115
|
-
readonly contentPadding?: boolean | undefined;
|
|
116
|
-
readonly justify?: "center" | "end" | "start" | "space-between" | "space-around" | "none" | undefined;
|
|
117
|
-
readonly align?: "center" | "end" | "start" | "none" | undefined;
|
|
118
|
-
readonly variant?: "bottom-sheet" | "dialog" | "drawer" | undefined;
|
|
119
|
-
readonly ariaLabelledby?: string | undefined;
|
|
120
|
-
readonly ariaDescribedby?: string | undefined;
|
|
121
|
-
readonly onClose?: ((value?: void | undefined) => any) | undefined;
|
|
122
|
-
readonly onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
123
|
-
readonly "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
124
|
-
readonly "onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
125
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
126
|
-
$attrs: {
|
|
127
|
-
[x: string]: unknown;
|
|
128
|
-
};
|
|
129
|
-
$refs: {
|
|
130
|
-
[x: string]: unknown;
|
|
131
|
-
};
|
|
132
|
-
$slots: Readonly<{
|
|
133
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
134
|
-
}>;
|
|
135
|
-
$root: ComponentPublicInstance | null;
|
|
136
|
-
$parent: ComponentPublicInstance | null;
|
|
137
|
-
$host: Element | null;
|
|
138
|
-
$emit: ((event: "close", value?: void | undefined) => void) & ((event: "open", value?: void | undefined) => void) & ((event: "update:model-value", value: boolean) => void) & ((event: "before-close", value?: void | undefined) => void);
|
|
139
|
-
$el: any;
|
|
140
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('./MazBackdrop.vue').MazBackdropProps> & Readonly<{
|
|
141
|
-
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
142
|
-
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
143
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
144
|
-
"onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
145
|
-
}>, {
|
|
146
|
-
onBackdropAnimationLeave: () => void;
|
|
147
|
-
close: () => void;
|
|
148
|
-
present: import('vue').Ref<boolean, boolean>;
|
|
149
|
-
toggleModal: (value?: boolean) => Promise<void>;
|
|
150
|
-
onKeyPress: (event: KeyboardEvent) => void;
|
|
151
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
152
|
-
close: (value: void) => any;
|
|
153
|
-
open: (value: void) => any;
|
|
154
|
-
"update:model-value": (value: boolean) => any;
|
|
155
|
-
"before-close": (value: void) => any;
|
|
156
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
157
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
158
|
-
created?: (() => void) | (() => void)[];
|
|
159
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
160
|
-
mounted?: (() => void) | (() => void)[];
|
|
161
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
162
|
-
updated?: (() => void) | (() => void)[];
|
|
163
|
-
activated?: (() => void) | (() => void)[];
|
|
164
|
-
deactivated?: (() => void) | (() => void)[];
|
|
165
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
166
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
167
|
-
destroyed?: (() => void) | (() => void)[];
|
|
168
|
-
unmounted?: (() => void) | (() => void)[];
|
|
169
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
170
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
171
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
172
|
-
};
|
|
173
|
-
$forceUpdate: () => void;
|
|
174
|
-
$nextTick: typeof import('vue').nextTick;
|
|
175
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
176
|
-
} & Readonly<{}> & Omit<Readonly<import('./MazBackdrop.vue').MazBackdropProps> & Readonly<{
|
|
177
|
-
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
178
|
-
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
179
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
180
|
-
"onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
181
|
-
}>, "close" | "onBackdropAnimationLeave" | "present" | "toggleModal" | "onKeyPress"> & import('vue').ShallowUnwrapRef<{
|
|
182
|
-
onBackdropAnimationLeave: () => void;
|
|
183
|
-
close: () => void;
|
|
184
|
-
present: import('vue').Ref<boolean, boolean>;
|
|
185
|
-
toggleModal: (value?: boolean) => Promise<void>;
|
|
186
|
-
onKeyPress: (event: KeyboardEvent) => void;
|
|
187
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
188
|
-
$slots: {
|
|
189
|
-
default?(_: {
|
|
190
|
-
close: () => void;
|
|
191
|
-
}): any;
|
|
192
|
-
};
|
|
193
|
-
}) | null;
|
|
194
|
-
dialogContent: HTMLDivElement;
|
|
195
|
-
};
|
|
196
|
-
$slots: Readonly<{
|
|
197
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
198
|
-
}>;
|
|
199
|
-
$root: ComponentPublicInstance | null;
|
|
200
|
-
$parent: ComponentPublicInstance | null;
|
|
201
|
-
$host: Element | null;
|
|
202
|
-
$emit: ((event: "close", value?: void | undefined) => void) & ((event: "open", value?: void | undefined) => void) & ((event: "update:model-value", value: boolean) => void);
|
|
203
|
-
$el: any;
|
|
204
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('./MazDialog.vue').DialogProps & import('./MazBackdrop.vue').MazBackdropProps> & Readonly<{
|
|
205
|
-
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
206
|
-
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
207
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
208
|
-
}>, {
|
|
209
|
-
close: () => any;
|
|
210
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
211
|
-
close: (value: void) => any;
|
|
212
|
-
open: (value: void) => any;
|
|
213
|
-
"update:model-value": (value: boolean) => any;
|
|
214
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
215
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
216
|
-
created?: (() => void) | (() => void)[];
|
|
217
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
218
|
-
mounted?: (() => void) | (() => void)[];
|
|
219
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
220
|
-
updated?: (() => void) | (() => void)[];
|
|
221
|
-
activated?: (() => void) | (() => void)[];
|
|
222
|
-
deactivated?: (() => void) | (() => void)[];
|
|
223
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
224
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
225
|
-
destroyed?: (() => void) | (() => void)[];
|
|
226
|
-
unmounted?: (() => void) | (() => void)[];
|
|
227
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
228
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
229
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
230
|
-
};
|
|
231
|
-
$forceUpdate: () => void;
|
|
232
|
-
$nextTick: typeof import('vue').nextTick;
|
|
233
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
234
|
-
} & Readonly<{}> & Omit<Readonly<import('./MazDialog.vue').DialogProps & import('./MazBackdrop.vue').MazBackdropProps> & Readonly<{
|
|
235
|
-
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
236
|
-
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
237
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
238
|
-
}>, "close"> & import('vue').ShallowUnwrapRef<{
|
|
239
|
-
close: () => any;
|
|
240
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
241
|
-
$slots: {
|
|
242
|
-
header?(_: {
|
|
243
|
-
close: () => void;
|
|
244
|
-
}): any;
|
|
245
|
-
title?(_: {}): any;
|
|
246
|
-
default?(_: {
|
|
247
|
-
close: () => void;
|
|
248
|
-
}): any;
|
|
249
|
-
footer?(_: {
|
|
250
|
-
close: () => void;
|
|
251
|
-
}): any;
|
|
252
|
-
};
|
|
253
|
-
}) | null;
|
|
254
|
-
}, any>, {
|
|
255
|
-
title?(_: {}): any;
|
|
256
|
-
default?(_: {
|
|
257
|
-
accept: (reason?: unknown) => Promise<unknown>;
|
|
258
|
-
reject: (reason?: unknown) => Promise<unknown>;
|
|
259
|
-
}): any;
|
|
260
|
-
'footer-button'?(_: {
|
|
261
|
-
accept: (reason?: unknown) => Promise<unknown>;
|
|
262
|
-
reject: (reason?: unknown) => Promise<unknown>;
|
|
263
|
-
}): any;
|
|
264
|
-
}>;
|
|
265
|
-
export default _default;
|
|
266
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
267
|
-
new (): {
|
|
268
|
-
$slots: S;
|
|
269
|
-
};
|
|
270
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export interface MazDrawerProps {
|
|
2
|
-
/** The title of the drawer */
|
|
3
|
-
title?: string;
|
|
4
|
-
/**
|
|
5
|
-
* The variant of the drawer
|
|
6
|
-
* @values 'right', 'top', 'left', 'bottom'
|
|
7
|
-
*/
|
|
8
|
-
variant?: 'right' | 'top' | 'left' | 'bottom';
|
|
9
|
-
/** The size of the drawer */
|
|
10
|
-
size?: string;
|
|
11
|
-
/** The class of the backdrop */
|
|
12
|
-
backdropClass?: string;
|
|
13
|
-
/** Disable the close button */
|
|
14
|
-
hideCloseButton?: boolean;
|
|
15
|
-
}
|
|
16
|
-
declare function __VLS_template(): {
|
|
17
|
-
attrs: Partial<{}>;
|
|
18
|
-
slots: {
|
|
19
|
-
title?(_: {
|
|
20
|
-
close: () => void;
|
|
21
|
-
}): any;
|
|
22
|
-
default?(_: {
|
|
23
|
-
close: () => void;
|
|
24
|
-
}): any;
|
|
25
|
-
};
|
|
26
|
-
refs: {};
|
|
27
|
-
rootEl: any;
|
|
28
|
-
};
|
|
29
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
-
declare const __VLS_component: import('vue').DefineComponent<MazDrawerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
31
|
-
close: () => any;
|
|
32
|
-
open: () => any;
|
|
33
|
-
"update:model-value": (value: boolean) => any;
|
|
34
|
-
"before-close": () => any;
|
|
35
|
-
}, string, import('vue').PublicProps, Readonly<MazDrawerProps> & Readonly<{
|
|
36
|
-
onClose?: (() => any) | undefined;
|
|
37
|
-
onOpen?: (() => any) | undefined;
|
|
38
|
-
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
39
|
-
"onBefore-close"?: (() => any) | undefined;
|
|
40
|
-
}>, {
|
|
41
|
-
size: string;
|
|
42
|
-
title: string;
|
|
43
|
-
variant: "right" | "top" | "left" | "bottom";
|
|
44
|
-
backdropClass: string;
|
|
45
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
46
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
-
export default _default;
|
|
48
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
-
new (): {
|
|
50
|
-
$slots: S;
|
|
51
|
-
};
|
|
52
|
-
};
|