@reinosoft-ui/core 0.1.81 → 0.1.83
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/components/ConfirmModal/confirm.d.ts +30 -13
- package/dist/components/ConfirmModal/index.d.ts +10 -4
- package/dist/index.d.ts +3 -4
- package/dist/reinosoft-ui.es.js +1012 -991
- package/dist/reinosoft-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,38 @@
|
|
|
1
1
|
export type ConfirmType = 'success' | 'error' | 'warning';
|
|
2
|
-
export
|
|
2
|
+
export interface Confirm {
|
|
3
|
+
id: string;
|
|
3
4
|
title?: string;
|
|
4
5
|
text?: string;
|
|
5
|
-
type?: ConfirmType;
|
|
6
|
-
confirmText?: string;
|
|
7
|
-
cancelText?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const confirmState: {
|
|
10
|
-
title: string;
|
|
11
|
-
text: string;
|
|
12
6
|
type: ConfirmType;
|
|
13
7
|
confirmText: string;
|
|
14
8
|
cancelText: string;
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
}
|
|
10
|
+
export declare const confirmStore: {
|
|
11
|
+
current: {
|
|
12
|
+
id: string;
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
text?: string | undefined;
|
|
15
|
+
type: ConfirmType;
|
|
16
|
+
confirmText: string;
|
|
17
|
+
cancelText: string;
|
|
18
|
+
resolve: (v: boolean) => void;
|
|
19
|
+
} | null;
|
|
20
|
+
queue: {
|
|
21
|
+
id: string;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
text?: string | undefined;
|
|
24
|
+
type: ConfirmType;
|
|
25
|
+
confirmText: string;
|
|
26
|
+
cancelText: string;
|
|
27
|
+
resolve: (v: boolean) => void;
|
|
28
|
+
}[];
|
|
17
29
|
};
|
|
18
30
|
export declare function confirm(text: string): Promise<boolean>;
|
|
19
|
-
export declare function confirm(options:
|
|
20
|
-
export declare
|
|
21
|
-
|
|
31
|
+
export declare function confirm(options: Partial<Confirm>): Promise<boolean>;
|
|
32
|
+
export declare namespace confirm {
|
|
33
|
+
var success: (data: Partial<Confirm> | string) => Promise<boolean>;
|
|
34
|
+
var error: (data: Partial<Confirm> | string) => Promise<boolean>;
|
|
35
|
+
var warning: (data: Partial<Confirm> | string) => Promise<boolean>;
|
|
36
|
+
}
|
|
37
|
+
export declare const confirmOk: () => void;
|
|
38
|
+
export declare const confirmCancel: () => void;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
export interface ConfirmModalPluginOptions {
|
|
3
|
+
autoMount?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const ConfirmModalPlugin: {
|
|
6
|
+
install(app: App, options?: ConfirmModalPluginOptions): void;
|
|
7
|
+
};
|
|
8
|
+
export { ConfirmModalPlugin };
|
|
3
9
|
export { confirm } from './confirm';
|
|
4
|
-
export type {
|
|
5
|
-
export default ConfirmModal;
|
|
10
|
+
export type { Confirm, ConfirmType } from './confirm';
|
|
11
|
+
export { default as ConfirmModal } from './ConfirmModal.vue';
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export { default as ButtonMenu } from './components/ButtonMenu';
|
|
|
13
13
|
export { default as Input } from './components/Input/Input.vue';
|
|
14
14
|
export { default as Avatar } from './components/Avatar/Avatar.vue';
|
|
15
15
|
export { default as Select } from './components/Select/Select.vue';
|
|
16
|
-
export { default as ConfirmModal } from './components/ConfirmModal';
|
|
17
16
|
export { default as ImageGallery } from './components/ImageGallery';
|
|
18
17
|
export { default as Spinner } from './components/Spinner/Spinner.vue';
|
|
19
18
|
export { default as Checkbox } from './components/Checkbox/Checkbox.vue';
|
|
@@ -24,13 +23,13 @@ export { default as Breadcrumb } from './components/Breadcrumb/Breadcrumb.vue';
|
|
|
24
23
|
export { default as RadioButton } from './components/RadioButton/RadioButton.vue';
|
|
25
24
|
export { default as Autocomplete } from './components/Autocomplete/Autocomplete.vue';
|
|
26
25
|
export { ToastPlugin, ToastViewport, toast } from './components/Toast';
|
|
26
|
+
export { ConfirmModalPlugin, ConfirmModal, confirm } from './components/ConfirmModal';
|
|
27
|
+
export type { Toast, ToastVariant } from './components/Toast';
|
|
27
28
|
export type { EditorApi } from './components/Editor/useEditor';
|
|
28
29
|
export type { EditorButton, IconType } from './components/Editor';
|
|
29
|
-
export type { Toast, ToastVariant } from './components/Toast';
|
|
30
30
|
export type { OptionDefinition } from './components/Select/types';
|
|
31
|
+
export type { Confirm, ConfirmType } from './components/ConfirmModal/confirm';
|
|
31
32
|
export type { PasswordRule } from './components/PasswordValidator/PasswordValidator';
|
|
32
|
-
export type { ConfirmOptions, ConfirmType } from './components/ConfirmModal/confirm';
|
|
33
|
-
export { confirm } from './components/ConfirmModal/confirm';
|
|
34
33
|
export * from './components/Card';
|
|
35
34
|
export * from './components/Steps';
|
|
36
35
|
export * from './components/Timeline';
|