maz-ui 3.28.2 → 3.28.4
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/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.d.ts +2 -2
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazSlider.mjs +13 -13
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazPickerTime.css +1 -1
- package/components/assets/MazSlider.css +1 -1
- package/components/chunks/{MazBtn-75uMWztZ.mjs → MazBtn-7F9Rioiz.mjs} +2 -2
- package/components/chunks/{MazBtn-ihybeYfj.mjs → MazBtn-N8P-Q8VF.mjs} +2 -2
- package/components/chunks/{MazBtn-aeOcptVQ.mjs → MazBtn-v6ANLVfx.mjs} +2 -2
- package/components/chunks/{MazDialog-4hwbB9Pu.mjs → MazDialog-PS3XQPuC.mjs} +53 -45
- package/components/chunks/{MazDialogPromise-S5KZWzcc.mjs → MazDialogPromise-EK4I6H_i.mjs} +78 -70
- package/components/chunks/{MazInput-ygxp70-3.mjs → MazInput-BJnR_H4m.mjs} +2 -2
- package/components/chunks/{MazPicker--SpH1ACw.mjs → MazPicker-DBOTnZbk.mjs} +2 -2
- package/components/chunks/{MazPickerCalendar-dq57Doac.mjs → MazPickerCalendar-flhTDFlr.mjs} +3 -3
- package/components/chunks/{MazPickerHeader-vADXyCp_.mjs → MazPickerHeader-s-Vi7Luu.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-aeRVlsoy.mjs → MazPickerMonthSwitcher-3XcYjNB4.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-2IhArlZ9.mjs → MazPickerShortcuts-7wPe2QOq.mjs} +2 -2
- package/components/chunks/{MazPickerTime-ImYGbQI8.mjs → MazPickerTime-BnE9Z2o_.mjs} +4 -4
- package/components/chunks/{MazPickerYearSwitcher-pXTsByr2.mjs → MazPickerYearSwitcher-QcFW_c-2.mjs} +3 -3
- package/components/chunks/{MazSpinner-o8W7u7BZ.mjs → MazSpinner-U4RTXx9S.mjs} +1 -1
- package/components/chunks/{MazSpinner-qBW8Wt2P.mjs → MazSpinner-njcLTql6.mjs} +1 -1
- package/components/chunks/{MazSpinner-QH5vPuqi.mjs → MazSpinner-zkOGM_fo.mjs} +1 -1
- package/modules/chunks/{MazBtn-pl1zplR1.cjs → MazBtn-5jYVOHi5.cjs} +1 -1
- package/modules/chunks/{MazBtn-vQMWTV0k.mjs → MazBtn-zKfVjg-f.mjs} +2 -2
- package/modules/chunks/{MazIcon-PpF58JqR.cjs → MazIcon-O-Sd2-b9.cjs} +1 -1
- package/modules/chunks/{MazIcon-iHejQyeA.mjs → MazIcon-osQoIva8.mjs} +1 -1
- package/modules/chunks/{MazSpinner-4FGq9uY1.cjs → MazSpinner-ElCcZG5D.cjs} +1 -1
- package/modules/chunks/{MazSpinner-DJzZmr-v.mjs → MazSpinner-IpRhoOeg.mjs} +1 -1
- package/modules/chunks/{index-eNQnoHF9.cjs → index-f0w7PwtX.cjs} +1 -1
- package/modules/chunks/{index-bXD69qtB.mjs → index-f8XjDm3D.mjs} +106 -108
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -0
- package/types/components/MazDialogPromise.vue.d.ts +2 -2
- package/types/modules/composables/index.d.ts +1 -1
- /package/{types/modules/composables → components/MazDialogPromise}/use-maz-dialog-promise.d.ts +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface DialogState {
|
|
2
|
+
id: string;
|
|
3
|
+
isActive: boolean;
|
|
4
|
+
resolve: (value: unknown) => void;
|
|
5
|
+
reject?: (reason?: unknown) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface DialogData {
|
|
8
|
+
title: string;
|
|
9
|
+
message: string;
|
|
10
|
+
cancelText?: string;
|
|
11
|
+
confirmText?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const useMazDialogPromise: () => {
|
|
14
|
+
confirmDialogData: import("vue").Ref<DialogData | undefined>;
|
|
15
|
+
dialogState: import("vue").Ref<{
|
|
16
|
+
id: string;
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
resolve: (value: unknown) => void;
|
|
19
|
+
reject?: ((reason?: unknown) => void) | undefined;
|
|
20
|
+
}[]>;
|
|
21
|
+
showDialogAndWaitChoice: (identifier: string, callback?: () => unknown) => Promise<unknown>;
|
|
22
|
+
removeDialogFromState: (identifier: string) => {
|
|
23
|
+
id: string;
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
resolve: (value: unknown) => void;
|
|
26
|
+
reject?: ((reason?: unknown) => void) | undefined;
|
|
27
|
+
}[];
|
|
28
|
+
rejectDialog: (currentDialog: DialogState, response?: string | boolean) => void;
|
|
29
|
+
resolveDialog: (currentDialog: DialogState, response?: string | boolean) => void;
|
|
30
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import { type Color, type Size } from './types';
|
|
3
|
-
import { type DialogData } from '
|
|
3
|
+
import { type DialogData } from './MazDialogPromise/use-maz-dialog-promise';
|
|
4
4
|
export type DialogButton = {
|
|
5
5
|
text: string;
|
|
6
6
|
type: 'resolve' | 'reject';
|
|
@@ -13,7 +13,7 @@ export type DialogButton = {
|
|
|
13
13
|
rounded?: boolean;
|
|
14
14
|
size?: Size;
|
|
15
15
|
};
|
|
16
|
-
export { useMazDialogPromise, type DialogState, type DialogData, } from '
|
|
16
|
+
export { useMazDialogPromise, type DialogState, type DialogData, } from './MazDialogPromise/use-maz-dialog-promise';
|
|
17
17
|
export type { Color, Size } from './types';
|
|
18
18
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
19
19
|
/** Dialog Data - type DialogData */
|
|
@@ -5,5 +5,5 @@ export * from './use-wait';
|
|
|
5
5
|
export * from './use-toast';
|
|
6
6
|
export * from './use-idle-timeout';
|
|
7
7
|
export * from './use-user-visibilty';
|
|
8
|
-
export * from '
|
|
8
|
+
export * from '../../components/MazDialogPromise/use-maz-dialog-promise';
|
|
9
9
|
export * from './use-timer';
|
/package/{types/modules/composables → components/MazDialogPromise}/use-maz-dialog-promise.d.ts
RENAMED
|
File without changes
|