@bagelink/vue 1.15.172 → 1.15.176
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/dialog/DialogForm.vue.d.ts +1 -0
- package/dist/dialog/DialogForm.vue.d.ts.map +1 -1
- package/dist/dialog/dialogTypes.d.ts +2 -0
- package/dist/dialog/dialogTypes.d.ts.map +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.mjs +1699 -1691
- package/package.json +1 -1
- package/src/dialog/DialogForm.vue +5 -0
- package/src/dialog/dialogTypes.ts +2 -0
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ const props = withDefaults(defineProps<{
|
|
|
21
21
|
dismissable?: boolean
|
|
22
22
|
schema: SchemaDefinition
|
|
23
23
|
modelValue?: T
|
|
24
|
+
message?: string
|
|
24
25
|
onSubmit?: (data: T) => Promise<void> | void
|
|
25
26
|
onDelete?: (data: T) => Promise<void> | void
|
|
26
27
|
submitText?: string
|
|
@@ -113,6 +114,10 @@ function handleClose() {
|
|
|
113
114
|
{{ error }}
|
|
114
115
|
</div>
|
|
115
116
|
|
|
117
|
+
<p v-if="message" class="mb-1 mt-0">
|
|
118
|
+
{{ message }}
|
|
119
|
+
</p>
|
|
120
|
+
|
|
116
121
|
<!-- Form fields -->
|
|
117
122
|
<FormFlow ref="formFlowRef" v-model="formData" :schema="schema" @submit="handleSubmit" />
|
|
118
123
|
|
|
@@ -16,6 +16,8 @@ export interface DialogBaseOptions {
|
|
|
16
16
|
export interface DialogFormOptions<T extends Record<string, any> = Record<string, any>> extends DialogBaseOptions {
|
|
17
17
|
schema: SchemaDefinition
|
|
18
18
|
modelValue?: T
|
|
19
|
+
/** Optional body text above the form (same role as DialogConfirm `message`). */
|
|
20
|
+
message?: string
|
|
19
21
|
/** Runs before close on submit - throw to keep dialog open with error */
|
|
20
22
|
onSubmit?: (data: T) => Promise<void> | void
|
|
21
23
|
/** If provided, shows delete button - throw to keep dialog open with error */
|