@ramathibodi/nuxt-commons 0.1.74 → 4.0.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/README.md +9 -2
- package/dist/module.json +4 -4
- package/dist/module.mjs +4 -4
- package/dist/runtime/bridges/authentication.d.ts +21 -0
- package/dist/runtime/bridges/authentication.js +20 -0
- package/dist/runtime/bridges/graphql.d.ts +17 -0
- package/dist/runtime/bridges/graphql.js +45 -0
- package/dist/runtime/components/Alert.d.vue.ts +3 -0
- package/dist/runtime/components/Alert.vue +17 -26
- package/dist/runtime/components/Alert.vue.d.ts +3 -0
- package/dist/runtime/components/BarcodeReader.d.vue.ts +9 -0
- package/dist/runtime/components/BarcodeReader.vue +56 -81
- package/dist/runtime/components/BarcodeReader.vue.d.ts +9 -0
- package/dist/runtime/components/ExportCSV.d.vue.ts +55 -0
- package/dist/runtime/components/ExportCSV.vue +39 -76
- package/dist/runtime/components/ExportCSV.vue.d.ts +55 -0
- package/dist/runtime/components/FileBtn.d.vue.ts +53 -0
- package/dist/runtime/components/FileBtn.vue +23 -50
- package/dist/runtime/components/FileBtn.vue.d.ts +53 -0
- package/dist/runtime/components/ImportCSV.d.vue.ts +52 -0
- package/dist/runtime/components/ImportCSV.vue +60 -111
- package/dist/runtime/components/ImportCSV.vue.d.ts +52 -0
- package/dist/runtime/components/MrzReader.d.vue.ts +19 -0
- package/dist/runtime/components/MrzReader.vue +69 -109
- package/dist/runtime/components/MrzReader.vue.d.ts +19 -0
- package/dist/runtime/components/SplitterPanel.d.vue.ts +15 -0
- package/dist/runtime/components/SplitterPanel.vue +18 -35
- package/dist/runtime/components/SplitterPanel.vue.d.ts +15 -0
- package/dist/runtime/components/TabsGroup.d.vue.ts +19 -0
- package/dist/runtime/components/TabsGroup.vue +8 -20
- package/dist/runtime/components/TabsGroup.vue.d.ts +19 -0
- package/dist/runtime/components/TextBarcode.d.vue.ts +12 -0
- package/dist/runtime/components/TextBarcode.vue +22 -45
- package/dist/runtime/components/TextBarcode.vue.d.ts +12 -0
- package/dist/runtime/components/device/IdCardButton.d.vue.ts +57 -0
- package/dist/runtime/components/device/IdCardButton.vue +30 -67
- package/dist/runtime/components/device/IdCardButton.vue.d.ts +57 -0
- package/dist/runtime/components/device/IdCardWebSocket.d.vue.ts +55 -0
- package/dist/runtime/components/device/IdCardWebSocket.vue +104 -165
- package/dist/runtime/components/device/IdCardWebSocket.vue.d.ts +55 -0
- package/dist/runtime/components/device/Scanner.d.vue.ts +66 -0
- package/dist/runtime/components/device/Scanner.vue +97 -178
- package/dist/runtime/components/device/Scanner.vue.d.ts +66 -0
- package/dist/runtime/components/dialog/Confirm.d.vue.ts +37 -0
- package/dist/runtime/components/dialog/Confirm.vue +30 -59
- package/dist/runtime/components/dialog/Confirm.vue.d.ts +37 -0
- package/dist/runtime/components/dialog/Host.d.vue.ts +9 -0
- package/dist/runtime/components/dialog/Host.vue +34 -57
- package/dist/runtime/components/dialog/Host.vue.d.ts +9 -0
- package/dist/runtime/components/dialog/Index.d.vue.ts +24 -0
- package/dist/runtime/components/dialog/Index.vue +20 -40
- package/dist/runtime/components/dialog/Index.vue.d.ts +24 -0
- package/dist/runtime/components/dialog/Loading.d.vue.ts +21 -0
- package/dist/runtime/components/dialog/Loading.vue +12 -29
- package/dist/runtime/components/dialog/Loading.vue.d.ts +21 -0
- package/dist/runtime/components/dialog/default/Confirm.d.vue.ts +40 -0
- package/dist/runtime/components/dialog/default/Confirm.vue +29 -62
- package/dist/runtime/components/dialog/default/Confirm.vue.d.ts +40 -0
- package/dist/runtime/components/dialog/default/Loading.d.vue.ts +23 -0
- package/dist/runtime/components/dialog/default/Loading.vue +12 -29
- package/dist/runtime/components/dialog/default/Loading.vue.d.ts +23 -0
- package/dist/runtime/components/dialog/default/Notify.d.vue.ts +23 -0
- package/dist/runtime/components/dialog/default/Notify.vue +19 -48
- package/dist/runtime/components/dialog/default/Notify.vue.d.ts +23 -0
- package/dist/runtime/components/dialog/default/Printing.d.vue.ts +21 -0
- package/dist/runtime/components/dialog/default/Printing.vue +13 -29
- package/dist/runtime/components/dialog/default/Printing.vue.d.ts +21 -0
- package/dist/runtime/components/dialog/default/VerifyUser.d.vue.ts +29 -0
- package/dist/runtime/components/dialog/default/VerifyUser.vue +44 -82
- package/dist/runtime/components/dialog/default/VerifyUser.vue.d.ts +29 -0
- package/dist/runtime/components/document/Form.d.vue.ts +9 -0
- package/dist/runtime/components/document/Form.vue +27 -42
- package/dist/runtime/components/document/Form.vue.d.ts +9 -0
- package/dist/runtime/components/document/TemplateBuilder.d.vue.ts +24 -0
- package/dist/runtime/components/document/TemplateBuilder.vue +154 -194
- package/dist/runtime/components/document/TemplateBuilder.vue.d.ts +24 -0
- package/dist/runtime/components/form/ActionPad.d.vue.ts +114 -0
- package/dist/runtime/components/form/ActionPad.vue +48 -85
- package/dist/runtime/components/form/ActionPad.vue.d.ts +114 -0
- package/dist/runtime/components/form/Birthdate.d.vue.ts +38 -0
- package/dist/runtime/components/form/Birthdate.vue +44 -76
- package/dist/runtime/components/form/Birthdate.vue.d.ts +38 -0
- package/dist/runtime/components/form/CheckboxGroup.d.vue.ts +41 -0
- package/dist/runtime/components/form/CheckboxGroup.vue +34 -64
- package/dist/runtime/components/form/CheckboxGroup.vue.d.ts +41 -0
- package/dist/runtime/components/form/CodeEditor.d.vue.ts +25 -0
- package/dist/runtime/components/form/CodeEditor.vue +18 -36
- package/dist/runtime/components/form/CodeEditor.vue.d.ts +25 -0
- package/dist/runtime/components/form/Date.d.vue.ts +86 -0
- package/dist/runtime/components/form/Date.vue +109 -162
- package/dist/runtime/components/form/Date.vue.d.ts +86 -0
- package/dist/runtime/components/form/DateTime.d.vue.ts +36 -0
- package/dist/runtime/components/form/DateTime.vue +94 -143
- package/dist/runtime/components/form/DateTime.vue.d.ts +36 -0
- package/dist/runtime/components/form/Dialog.d.vue.ts +69 -0
- package/dist/runtime/components/form/Dialog.vue +60 -96
- package/dist/runtime/components/form/Dialog.vue.d.ts +69 -0
- package/dist/runtime/components/form/EditPad.d.vue.ts +113 -0
- package/dist/runtime/components/form/EditPad.vue +49 -85
- package/dist/runtime/components/form/EditPad.vue.d.ts +113 -0
- package/dist/runtime/components/form/File.d.vue.ts +65 -0
- package/dist/runtime/components/form/File.vue +112 -186
- package/dist/runtime/components/form/File.vue.d.ts +65 -0
- package/dist/runtime/components/form/Hidden.d.vue.ts +12 -0
- package/dist/runtime/components/form/Hidden.vue +17 -34
- package/dist/runtime/components/form/Hidden.vue.d.ts +12 -0
- package/dist/runtime/components/form/Iterator.d.vue.ts +279 -0
- package/dist/runtime/components/form/Iterator.vue +162 -252
- package/dist/runtime/components/form/Iterator.vue.d.ts +279 -0
- package/dist/runtime/components/form/Login.d.vue.ts +32 -0
- package/dist/runtime/components/form/Login.vue +23 -55
- package/dist/runtime/components/form/Login.vue.d.ts +32 -0
- package/dist/runtime/components/form/Pad.d.vue.ts +674 -0
- package/dist/runtime/components/form/Pad.vue +166 -265
- package/dist/runtime/components/form/Pad.vue.d.ts +674 -0
- package/dist/runtime/components/form/SignPad.d.vue.ts +62 -0
- package/dist/runtime/components/form/SignPad.vue +80 -126
- package/dist/runtime/components/form/SignPad.vue.d.ts +62 -0
- package/dist/runtime/components/form/System.d.vue.ts +34 -0
- package/dist/runtime/components/form/System.vue +18 -32
- package/dist/runtime/components/form/System.vue.d.ts +34 -0
- package/dist/runtime/components/form/Table.d.vue.ts +221 -0
- package/dist/runtime/components/form/Table.vue +123 -182
- package/dist/runtime/components/form/Table.vue.d.ts +221 -0
- package/dist/runtime/components/form/TableData.d.vue.ts +102 -0
- package/dist/runtime/components/form/TableData.vue +109 -139
- package/dist/runtime/components/form/TableData.vue.d.ts +102 -0
- package/dist/runtime/components/form/Time.d.vue.ts +49 -0
- package/dist/runtime/components/form/Time.vue +64 -99
- package/dist/runtime/components/form/Time.vue.d.ts +49 -0
- package/dist/runtime/components/form/images/Capture.d.vue.ts +96 -0
- package/dist/runtime/components/form/images/Capture.vue +104 -147
- package/dist/runtime/components/form/images/Capture.vue.d.ts +96 -0
- package/dist/runtime/components/form/images/Edit.d.vue.ts +29 -0
- package/dist/runtime/components/form/images/Edit.vue +57 -81
- package/dist/runtime/components/form/images/Edit.vue.d.ts +29 -0
- package/dist/runtime/components/form/images/Field.d.vue.ts +27 -0
- package/dist/runtime/components/form/images/Field.vue +136 -205
- package/dist/runtime/components/form/images/Field.vue.d.ts +27 -0
- package/dist/runtime/components/form/images/Pad.d.vue.ts +13 -0
- package/dist/runtime/components/form/images/Pad.vue +23 -40
- package/dist/runtime/components/form/images/Pad.vue.d.ts +13 -0
- package/dist/runtime/components/label/Date.d.vue.ts +13 -0
- package/dist/runtime/components/label/Date.vue +13 -29
- package/dist/runtime/components/label/Date.vue.d.ts +13 -0
- package/dist/runtime/components/label/DateAgo.d.vue.ts +20 -0
- package/dist/runtime/components/label/DateAgo.vue +43 -75
- package/dist/runtime/components/label/DateAgo.vue.d.ts +20 -0
- package/dist/runtime/components/label/DateCount.d.vue.ts +22 -0
- package/dist/runtime/components/label/DateCount.vue +58 -105
- package/dist/runtime/components/label/DateCount.vue.d.ts +22 -0
- package/dist/runtime/components/label/Field.d.vue.ts +38 -0
- package/dist/runtime/components/label/Field.vue +18 -40
- package/dist/runtime/components/label/Field.vue.d.ts +38 -0
- package/dist/runtime/components/label/FormatMoney.d.vue.ts +12 -0
- package/dist/runtime/components/label/FormatMoney.vue +12 -28
- package/dist/runtime/components/label/FormatMoney.vue.d.ts +12 -0
- package/dist/runtime/components/label/Mask.d.vue.ts +10 -0
- package/dist/runtime/components/label/Mask.vue +21 -38
- package/dist/runtime/components/label/Mask.vue.d.ts +10 -0
- package/dist/runtime/components/label/Object.d.vue.ts +8 -0
- package/dist/runtime/components/label/Object.vue +10 -20
- package/dist/runtime/components/label/Object.vue.d.ts +8 -0
- package/dist/runtime/components/master/Autocomplete.d.vue.ts +70 -0
- package/dist/runtime/components/master/Autocomplete.vue +25 -34
- package/dist/runtime/components/master/Autocomplete.vue.d.ts +70 -0
- package/dist/runtime/components/master/Combobox.d.vue.ts +70 -0
- package/dist/runtime/components/master/Combobox.vue +26 -35
- package/dist/runtime/components/master/Combobox.vue.d.ts +70 -0
- package/dist/runtime/components/master/RadioGroup.d.vue.ts +51 -0
- package/dist/runtime/components/master/RadioGroup.vue +44 -59
- package/dist/runtime/components/master/RadioGroup.vue.d.ts +51 -0
- package/dist/runtime/components/master/Select.d.vue.ts +68 -0
- package/dist/runtime/components/master/Select.vue +25 -34
- package/dist/runtime/components/master/Select.vue.d.ts +68 -0
- package/dist/runtime/components/master/label.d.vue.ts +24 -0
- package/dist/runtime/components/master/label.vue +22 -42
- package/dist/runtime/components/master/label.vue.d.ts +24 -0
- package/dist/runtime/components/model/Autocomplete.d.vue.ts +82 -0
- package/dist/runtime/components/model/Autocomplete.vue +50 -49
- package/dist/runtime/components/model/Autocomplete.vue.d.ts +82 -0
- package/dist/runtime/components/model/Combobox.d.vue.ts +82 -0
- package/dist/runtime/components/model/Combobox.vue +51 -49
- package/dist/runtime/components/model/Combobox.vue.d.ts +82 -0
- package/dist/runtime/components/model/Pad.d.vue.ts +72 -0
- package/dist/runtime/components/model/Pad.vue +50 -65
- package/dist/runtime/components/model/Pad.vue.d.ts +72 -0
- package/dist/runtime/components/model/Select.d.vue.ts +72 -0
- package/dist/runtime/components/model/Select.vue +42 -44
- package/dist/runtime/components/model/Select.vue.d.ts +72 -0
- package/dist/runtime/components/model/Table.d.vue.ts +272 -0
- package/dist/runtime/components/model/Table.vue +121 -145
- package/dist/runtime/components/model/Table.vue.d.ts +272 -0
- package/dist/runtime/components/model/iterator.d.vue.ts +321 -0
- package/dist/runtime/components/model/iterator.vue +148 -183
- package/dist/runtime/components/model/iterator.vue.d.ts +321 -0
- package/dist/runtime/components/model/label.d.vue.ts +26 -0
- package/dist/runtime/components/model/label.vue +25 -43
- package/dist/runtime/components/model/label.vue.d.ts +26 -0
- package/dist/runtime/components/pdf/Print.d.vue.ts +17 -0
- package/dist/runtime/components/pdf/Print.vue +27 -50
- package/dist/runtime/components/pdf/Print.vue.d.ts +17 -0
- package/dist/runtime/components/pdf/View.d.vue.ts +52 -0
- package/dist/runtime/components/pdf/View.vue +58 -95
- package/dist/runtime/components/pdf/View.vue.d.ts +52 -0
- package/dist/runtime/composables/api.js +4 -2
- package/dist/runtime/composables/assetFile.js +4 -2
- package/dist/runtime/composables/dialog.d.ts +1 -1
- package/dist/runtime/composables/document/template.js +3 -3
- package/dist/runtime/composables/document/templateFormTable.js +1 -0
- package/dist/runtime/composables/graphql.d.ts +2 -2
- package/dist/runtime/composables/graphql.js +5 -5
- package/dist/runtime/composables/graphqlModel.d.ts +6 -6
- package/dist/runtime/composables/graphqlModelItem.d.ts +4 -4
- package/dist/runtime/composables/graphqlModelOperation.d.ts +6 -6
- package/dist/runtime/composables/graphqlModelOperation.js +2 -1
- package/dist/runtime/composables/graphqlOperation.js +5 -1
- package/dist/runtime/composables/hostAgentWs.d.ts +1 -1
- package/dist/runtime/composables/lookupListMaster.js +3 -3
- package/dist/runtime/composables/menu.js +2 -2
- package/dist/runtime/composables/userPermission.d.ts +1 -1
- package/dist/runtime/composables/utils/fuzzy.d.ts +2 -1
- package/dist/runtime/labs/Calendar.d.vue.ts +35 -0
- package/dist/runtime/labs/Calendar.vue +47 -75
- package/dist/runtime/labs/Calendar.vue.d.ts +35 -0
- package/dist/runtime/labs/form/EditMobile.d.vue.ts +12 -0
- package/dist/runtime/labs/form/EditMobile.vue +19 -36
- package/dist/runtime/labs/form/EditMobile.vue.d.ts +12 -0
- package/dist/runtime/labs/form/TextFieldMask.d.vue.ts +21 -0
- package/dist/runtime/labs/form/TextFieldMask.vue +19 -25
- package/dist/runtime/labs/form/TextFieldMask.vue.d.ts +21 -0
- package/dist/runtime/plugins/dialogManager.js +2 -2
- package/dist/runtime/plugins/permission.js +3 -3
- package/dist/runtime/types/bridge.d.ts +14 -0
- package/dist/runtime/utils/datetime.js +1 -1
- package/dist/types.d.mts +2 -6
- package/package.json +71 -58
- package/scripts/ci-release.mjs +125 -0
- package/scripts/release-version.mjs +68 -0
- package/scripts/release.mjs +49 -0
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -8
- package/dist/types.d.ts +0 -7
|
@@ -1,79 +1,56 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
interface DialogEntry {
|
|
11
|
-
id: number
|
|
12
|
-
component: any
|
|
13
|
-
props: Record<string, any>
|
|
14
|
-
resolve: (val: any) => void
|
|
15
|
-
reject: (val: any) => void
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const dialogs = shallowReactive<DialogEntry[]>([])
|
|
19
|
-
let idCounter = 0
|
|
20
|
-
|
|
21
|
-
function open(component: any, inputProps: Record<string, any> = {}) : DialogOpenResult {
|
|
22
|
-
const id = ++idCounter
|
|
23
|
-
|
|
24
|
-
const promise = new Promise<any>((resolve,reject) => {
|
|
1
|
+
<script setup>
|
|
2
|
+
import { shallowReactive, onMounted } from "vue";
|
|
3
|
+
import { useDialog } from "../../composables/dialog";
|
|
4
|
+
const dialogs = shallowReactive([]);
|
|
5
|
+
let idCounter = 0;
|
|
6
|
+
function open(component, inputProps = {}) {
|
|
7
|
+
const id = ++idCounter;
|
|
8
|
+
const promise = new Promise((resolve, reject) => {
|
|
25
9
|
const dialogProps = {
|
|
26
10
|
...inputProps,
|
|
27
11
|
modelValue: true,
|
|
28
|
-
|
|
29
|
-
if (!v) close(id, null)
|
|
12
|
+
"onUpdate:modelValue": (v) => {
|
|
13
|
+
if (!v) close(id, null);
|
|
30
14
|
},
|
|
31
|
-
onResolve: (val
|
|
32
|
-
onReject: (val
|
|
33
|
-
}
|
|
34
|
-
|
|
15
|
+
onResolve: (val) => close(id, val),
|
|
16
|
+
onReject: (val) => closeWithReject(id, val)
|
|
17
|
+
};
|
|
35
18
|
dialogs.push({
|
|
36
19
|
id,
|
|
37
20
|
component,
|
|
38
21
|
props: dialogProps,
|
|
39
22
|
resolve,
|
|
40
23
|
reject
|
|
41
|
-
})
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return { id, promise, closeInstance, rejectInstance}
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
const closeInstance = (val) => {
|
|
27
|
+
close(id, val);
|
|
28
|
+
};
|
|
29
|
+
const rejectInstance = (val) => {
|
|
30
|
+
closeWithReject(id, val);
|
|
31
|
+
};
|
|
32
|
+
return { id, promise, closeInstance, rejectInstance };
|
|
53
33
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const index = dialogs.findIndex((d) => d.id === id)
|
|
34
|
+
function close(id, val) {
|
|
35
|
+
const index = dialogs.findIndex((d) => d.id === id);
|
|
57
36
|
if (index !== -1) {
|
|
58
|
-
dialogs[index].resolve(val)
|
|
59
|
-
dialogs.splice(index, 1)
|
|
37
|
+
dialogs[index].resolve(val);
|
|
38
|
+
dialogs.splice(index, 1);
|
|
60
39
|
}
|
|
61
40
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const index = dialogs.findIndex((d) => d.id === id)
|
|
41
|
+
function closeWithReject(id, val) {
|
|
42
|
+
const index = dialogs.findIndex((d) => d.id === id);
|
|
65
43
|
if (index !== -1) {
|
|
66
|
-
dialogs[index].reject(val)
|
|
67
|
-
dialogs.splice(index, 1)
|
|
44
|
+
dialogs[index].reject(val);
|
|
45
|
+
dialogs.splice(index, 1);
|
|
68
46
|
}
|
|
69
47
|
}
|
|
70
|
-
|
|
71
48
|
onMounted(() => {
|
|
72
|
-
useDialog()?.setDialogHost(open, close)
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
defineExpose({ open, close })
|
|
49
|
+
useDialog()?.setDialogHost(open, close);
|
|
50
|
+
});
|
|
51
|
+
defineExpose({ open, close });
|
|
76
52
|
</script>
|
|
53
|
+
|
|
77
54
|
<template>
|
|
78
55
|
<Teleport to="body">
|
|
79
56
|
<div>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DialogOpenResult } from "../../types/dialogManager.js";
|
|
2
|
+
declare function open(component: any, inputProps?: Record<string, any>): DialogOpenResult;
|
|
3
|
+
declare function close(id: number, val: any): void;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
5
|
+
open: typeof open;
|
|
6
|
+
close: typeof close;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface DialogProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
type?: 'success' | 'error' | 'warning' | 'info';
|
|
6
|
+
width?: number | string;
|
|
7
|
+
}
|
|
8
|
+
declare var __VLS_46: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_46) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (...args: any[]) => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -1,43 +1,27 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
message?: string // main message body shown in UI
|
|
12
|
-
type?: 'success' | 'error' | 'warning' | 'info' // visual variant controlling color and intent semantics
|
|
13
|
-
width?: number | string // dialog/component width in CSS-compatible units
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Public props accepted by DialogIndex.
|
|
18
|
-
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
19
|
-
*/
|
|
20
|
-
const props = defineProps<DialogProps>()
|
|
21
|
-
/**
|
|
22
|
-
* Custom events emitted by DialogIndex.
|
|
23
|
-
* Parents can listen to these events to react to user actions and internal state changes.
|
|
24
|
-
*/
|
|
25
|
-
const emit = defineEmits(['update:modelValue'])
|
|
26
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
modelValue: { type: Boolean, required: false },
|
|
5
|
+
title: { type: String, required: false },
|
|
6
|
+
message: { type: String, required: false },
|
|
7
|
+
type: { type: String, required: false },
|
|
8
|
+
width: { type: [Number, String], required: false }
|
|
9
|
+
});
|
|
10
|
+
const emit = defineEmits(["update:modelValue"]);
|
|
27
11
|
const dialogIcon = computed(() => {
|
|
28
12
|
switch (props.type) {
|
|
29
|
-
case
|
|
30
|
-
return
|
|
31
|
-
case
|
|
32
|
-
return
|
|
33
|
-
case
|
|
34
|
-
return
|
|
35
|
-
case
|
|
36
|
-
return
|
|
13
|
+
case "success":
|
|
14
|
+
return "mdi mdi-check-circle";
|
|
15
|
+
case "error":
|
|
16
|
+
return "mdi mdi-alert-circle";
|
|
17
|
+
case "warning":
|
|
18
|
+
return "mdi mdi-alert";
|
|
19
|
+
case "info":
|
|
20
|
+
return "mdi mdi-information-variant-circle";
|
|
37
21
|
default:
|
|
38
|
-
return
|
|
22
|
+
return "";
|
|
39
23
|
}
|
|
40
|
-
})
|
|
24
|
+
});
|
|
41
25
|
</script>
|
|
42
26
|
|
|
43
27
|
<template>
|
|
@@ -78,7 +62,3 @@ const dialogIcon = computed(() => {
|
|
|
78
62
|
</VCard>
|
|
79
63
|
</VDialog>
|
|
80
64
|
</template>
|
|
81
|
-
|
|
82
|
-
<style lang="">
|
|
83
|
-
|
|
84
|
-
</style>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface DialogProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
type?: 'success' | 'error' | 'warning' | 'info';
|
|
6
|
+
width?: number | string;
|
|
7
|
+
}
|
|
8
|
+
declare var __VLS_46: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_46) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (...args: any[]) => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface DialogProps {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_32: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_32) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (...args: any[]) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -1,34 +1,17 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
modelValue: boolean // Bound value for v-model synchronization with the parent component.
|
|
10
|
-
color?: string // Vuetify color name applied to the visual element.
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Custom events emitted by DialogLoading.
|
|
14
|
-
* Parents can listen to these events to react to user actions and internal state changes.
|
|
15
|
-
*/
|
|
16
|
-
const emit = defineEmits(['update:modelValue'])
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Public props accepted by DialogLoading.
|
|
20
|
-
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
21
|
-
*/
|
|
22
|
-
const props = defineProps<DialogProps>()
|
|
23
|
-
const dialogVisible = ref<boolean>(props.modelValue)
|
|
24
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, watch } from "vue";
|
|
3
|
+
const emit = defineEmits(["update:modelValue"]);
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
modelValue: { type: Boolean, required: true },
|
|
6
|
+
color: { type: String, required: false }
|
|
7
|
+
});
|
|
8
|
+
const dialogVisible = ref(props.modelValue);
|
|
25
9
|
watch(() => props.modelValue, (newValue) => {
|
|
26
|
-
dialogVisible.value = newValue
|
|
27
|
-
})
|
|
28
|
-
|
|
10
|
+
dialogVisible.value = newValue;
|
|
11
|
+
});
|
|
29
12
|
watch(() => dialogVisible.value, (newValue) => {
|
|
30
|
-
emit(
|
|
31
|
-
})
|
|
13
|
+
emit("update:modelValue", newValue);
|
|
14
|
+
});
|
|
32
15
|
</script>
|
|
33
16
|
|
|
34
17
|
<template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface DialogProps {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_32: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_32) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (...args: any[]) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
interface DialogProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
message?: string;
|
|
5
|
+
buttonTrueText?: string;
|
|
6
|
+
buttonFalseText?: string;
|
|
7
|
+
type?: 'primary' | 'success' | 'warning' | 'info' | 'error';
|
|
8
|
+
confirmData?: string;
|
|
9
|
+
width?: string;
|
|
10
|
+
}
|
|
11
|
+
declare var __VLS_44: {
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
labelTextConfirm?: (props: typeof __VLS_44) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
+
"update:modelValue": (value: boolean) => any;
|
|
19
|
+
resolve: (value: boolean) => any;
|
|
20
|
+
reject: (value: any) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
23
|
+
onResolve?: ((value: boolean) => any) | undefined;
|
|
24
|
+
onReject?: ((value: any) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
message: string;
|
|
27
|
+
width: string;
|
|
28
|
+
title: string;
|
|
29
|
+
type: "primary" | "success" | "warning" | "info" | "error";
|
|
30
|
+
buttonTrueText: string;
|
|
31
|
+
buttonFalseText: string;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -1,67 +1,34 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
confirmData?: string // confirmation text that users must type before continue
|
|
17
|
-
width?: string // dialog/component width in CSS-compatible units
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Public props accepted by DialogDefaultConfirm.
|
|
22
|
-
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
23
|
-
*/
|
|
24
|
-
const props = withDefaults(defineProps<DialogProps>(), {
|
|
25
|
-
title: 'Confirm',
|
|
26
|
-
message: 'Do you want to proceed?',
|
|
27
|
-
buttonTrueText: 'Ok',
|
|
28
|
-
buttonFalseText: 'Cancel',
|
|
29
|
-
type: 'primary',
|
|
30
|
-
width: 'auto',
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Custom events emitted by DialogDefaultConfirm.
|
|
35
|
-
* Parents can listen to these events to react to user actions and internal state changes.
|
|
36
|
-
*/
|
|
37
|
-
const emit = defineEmits<{
|
|
38
|
-
(e: 'update:modelValue', value: boolean): void
|
|
39
|
-
(e: 'resolve', value: boolean): void
|
|
40
|
-
(e: 'reject', value: any): void
|
|
41
|
-
}>()
|
|
42
|
-
|
|
43
|
-
const dialogVisible: Ref<boolean> = ref(props.modelValue)
|
|
44
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, watch, computed } from "vue";
|
|
3
|
+
import { isEqual, isUndefined, isEmpty } from "lodash-es";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
title: { type: String, required: false, default: "Confirm" },
|
|
6
|
+
modelValue: { type: Boolean, required: true },
|
|
7
|
+
message: { type: String, required: false, default: "Do you want to proceed?" },
|
|
8
|
+
buttonTrueText: { type: String, required: false, default: "Ok" },
|
|
9
|
+
buttonFalseText: { type: String, required: false, default: "Cancel" },
|
|
10
|
+
type: { type: String, required: false, default: "primary" },
|
|
11
|
+
confirmData: { type: String, required: false },
|
|
12
|
+
width: { type: String, required: false, default: "auto" }
|
|
13
|
+
});
|
|
14
|
+
const emit = defineEmits(["update:modelValue", "resolve", "reject"]);
|
|
15
|
+
const dialogVisible = ref(props.modelValue);
|
|
45
16
|
watch(() => props.modelValue, (val) => {
|
|
46
|
-
dialogVisible.value = val
|
|
47
|
-
})
|
|
48
|
-
|
|
17
|
+
dialogVisible.value = val;
|
|
18
|
+
});
|
|
49
19
|
watch(dialogVisible, (val) => {
|
|
50
|
-
if (!val) emit(
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
const txtConfirm = ref<string>('')
|
|
54
|
-
|
|
20
|
+
if (!val) emit("update:modelValue", false);
|
|
21
|
+
});
|
|
22
|
+
const txtConfirm = ref("");
|
|
55
23
|
const isDisabled = computed(() => {
|
|
56
|
-
if (isUndefined(props.confirmData)) return false
|
|
57
|
-
if (isEmpty(props.confirmData)) return true
|
|
58
|
-
return !isEqual(txtConfirm.value, props.confirmData)
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
24
|
+
if (isUndefined(props.confirmData)) return false;
|
|
25
|
+
if (isEmpty(props.confirmData)) return true;
|
|
26
|
+
return !isEqual(txtConfirm.value, props.confirmData);
|
|
27
|
+
});
|
|
28
|
+
const handleResult = (result) => {
|
|
29
|
+
dialogVisible.value = false;
|
|
30
|
+
emit("resolve", result);
|
|
31
|
+
};
|
|
65
32
|
</script>
|
|
66
33
|
|
|
67
34
|
<template>
|
|
@@ -110,4 +77,4 @@ const handleResult = (result: boolean) => {
|
|
|
110
77
|
</v-card>
|
|
111
78
|
</v-dialog>
|
|
112
79
|
</v-row>
|
|
113
|
-
</template>
|
|
80
|
+
</template>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
interface DialogProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
message?: string;
|
|
5
|
+
buttonTrueText?: string;
|
|
6
|
+
buttonFalseText?: string;
|
|
7
|
+
type?: 'primary' | 'success' | 'warning' | 'info' | 'error';
|
|
8
|
+
confirmData?: string;
|
|
9
|
+
width?: string;
|
|
10
|
+
}
|
|
11
|
+
declare var __VLS_44: {
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
labelTextConfirm?: (props: typeof __VLS_44) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
+
"update:modelValue": (value: boolean) => any;
|
|
19
|
+
resolve: (value: boolean) => any;
|
|
20
|
+
reject: (value: any) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
23
|
+
onResolve?: ((value: boolean) => any) | undefined;
|
|
24
|
+
onReject?: ((value: any) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
message: string;
|
|
27
|
+
width: string;
|
|
28
|
+
title: string;
|
|
29
|
+
type: "primary" | "success" | "warning" | "info" | "error";
|
|
30
|
+
buttonTrueText: string;
|
|
31
|
+
buttonFalseText: string;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface DialogProps {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_20: {}, __VLS_33: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
title?: (props: typeof __VLS_20) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_33) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (...args: any[]) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,34 +1,17 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
modelValue: boolean // Bound value for v-model synchronization with the parent component.
|
|
10
|
-
color?: string // Vuetify color name applied to the visual element.
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Custom events emitted by DialogDefaultLoading.
|
|
14
|
-
* Parents can listen to these events to react to user actions and internal state changes.
|
|
15
|
-
*/
|
|
16
|
-
const emit = defineEmits(['update:modelValue'])
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Public props accepted by DialogDefaultLoading.
|
|
20
|
-
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
21
|
-
*/
|
|
22
|
-
const props = defineProps<DialogProps>()
|
|
23
|
-
const dialogVisible = ref<boolean>(props.modelValue)
|
|
24
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, watch } from "vue";
|
|
3
|
+
const emit = defineEmits(["update:modelValue"]);
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
modelValue: { type: Boolean, required: true },
|
|
6
|
+
color: { type: String, required: false }
|
|
7
|
+
});
|
|
8
|
+
const dialogVisible = ref(props.modelValue);
|
|
25
9
|
watch(() => props.modelValue, (newValue) => {
|
|
26
|
-
dialogVisible.value = newValue
|
|
27
|
-
})
|
|
28
|
-
|
|
10
|
+
dialogVisible.value = newValue;
|
|
11
|
+
});
|
|
29
12
|
watch(() => dialogVisible.value, (newValue) => {
|
|
30
|
-
emit(
|
|
31
|
-
})
|
|
13
|
+
emit("update:modelValue", newValue);
|
|
14
|
+
});
|
|
32
15
|
</script>
|
|
33
16
|
|
|
34
17
|
<template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface DialogProps {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_20: {}, __VLS_33: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
title?: (props: typeof __VLS_20) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_33) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (...args: any[]) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface DialogProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
message?: string;
|
|
5
|
+
buttonText?: string;
|
|
6
|
+
type?: 'primary' | 'success' | 'warning' | 'info' | 'error';
|
|
7
|
+
width?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<DialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
+
"update:modelValue": (value: boolean) => any;
|
|
11
|
+
resolve: (value: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
onResolve?: ((value: boolean) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
message: string;
|
|
17
|
+
width: string;
|
|
18
|
+
title: string;
|
|
19
|
+
type: "primary" | "success" | "warning" | "info" | "error";
|
|
20
|
+
buttonText: string;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|