@shwfed/nuxt 0.11.54 → 0.11.55
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/module.json +1 -1
- package/dist/module.mjs +2 -1
- package/dist/runtime/components/modal.d.vue.ts +1 -0
- package/dist/runtime/components/modal.vue +3 -1
- package/dist/runtime/components/modal.vue.d.ts +1 -0
- package/dist/runtime/components/ui/app/OverlayHost.vue +3 -1
- package/dist/runtime/composables/useOverlay.d.ts +1 -0
- package/dist/runtime/composables/useOverlay.js +2 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -29,7 +29,8 @@ const props = defineProps({
|
|
|
29
29
|
defaultOpen: { type: Boolean, required: false, default: false },
|
|
30
30
|
breakpoint: { type: String, required: false, default: "(min-width: 640px)" },
|
|
31
31
|
showCloseButton: { type: Boolean, required: false, default: true },
|
|
32
|
-
dismissible: { type: Boolean, required: false, default: true }
|
|
32
|
+
dismissible: { type: Boolean, required: false, default: true },
|
|
33
|
+
width: { type: String, required: false }
|
|
33
34
|
});
|
|
34
35
|
const emit = defineEmits(["update:open", "after-close"]);
|
|
35
36
|
const attrs = useAttrs();
|
|
@@ -98,6 +99,7 @@ function close() {
|
|
|
98
99
|
<component
|
|
99
100
|
:is="modalComponents.Content"
|
|
100
101
|
v-bind="attrs"
|
|
102
|
+
:style="isDesktop && props.width ? { maxWidth: props.width } : void 0"
|
|
101
103
|
:show-close-button="props.showCloseButton"
|
|
102
104
|
@after-close="emit('after-close')"
|
|
103
105
|
>
|
|
@@ -53,7 +53,8 @@ const renderedSessions = computed(() => {
|
|
|
53
53
|
description: session.shell.description,
|
|
54
54
|
showCloseButton: session.shell.showCloseButton,
|
|
55
55
|
breakpoint: session.shell.breakpoint,
|
|
56
|
-
dismissible: session.shell.dismissible
|
|
56
|
+
dismissible: session.shell.dismissible,
|
|
57
|
+
width: session.shell.width
|
|
57
58
|
},
|
|
58
59
|
descriptionSrOnly: session.shell.descriptionSrOnly,
|
|
59
60
|
props: session.props,
|
|
@@ -75,6 +76,7 @@ const renderedSessions = computed(() => {
|
|
|
75
76
|
:breakpoint="session.shell.breakpoint"
|
|
76
77
|
:show-close-button="session.shell.showCloseButton"
|
|
77
78
|
:dismissible="session.shell.dismissible"
|
|
79
|
+
:width="session.shell.width"
|
|
78
80
|
@update:open="handleOpenUpdate(session.sessionId, $event)"
|
|
79
81
|
@after-close="handleAfterClose(session.sessionId)"
|
|
80
82
|
>
|
|
@@ -176,7 +176,8 @@ function createOverlayRuntime() {
|
|
|
176
176
|
descriptionSrOnly,
|
|
177
177
|
showCloseButton: options?.shell?.showCloseButton ?? definitionShell?.showCloseButton,
|
|
178
178
|
breakpoint: options?.shell?.breakpoint ?? definitionShell?.breakpoint,
|
|
179
|
-
dismissible: options?.shell?.dismissible ?? definitionShell?.dismissible
|
|
179
|
+
dismissible: options?.shell?.dismissible ?? definitionShell?.dismissible,
|
|
180
|
+
width: options?.shell?.width ?? definitionShell?.width
|
|
180
181
|
},
|
|
181
182
|
props: {
|
|
182
183
|
...options?.props
|