@maas/vue-equipment 1.0.0-beta.62 → 1.0.0-beta.63
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/nuxt/module.json +1 -1
- package/dist/plugins/MagicModal/src/components/MagicModalContent.d.vue.ts +2 -2
- package/dist/plugins/MagicModal/src/components/MagicModalContent.vue +15 -3
- package/dist/plugins/MagicModal/src/components/MagicModalContent.vue.d.ts +2 -2
- package/package.json +1 -1
- package/dist/plugins/MagicModal/src/composables/private/useModalStore.d.ts +0 -1
- package/dist/plugins/MagicModal/src/composables/private/useModalStore.mjs +0 -1
package/dist/nuxt/module.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@maas/vue-equipment/utils/css/keyframes/fade-in.css';
|
|
2
2
|
import '@maas/vue-equipment/utils/css/keyframes/fade-out.css';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_24: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_24) => any;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
8
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
:is="state.options.tag"
|
|
19
19
|
v-show="active.innerActive"
|
|
20
20
|
class="magic-modal-content__inner"
|
|
21
|
-
@
|
|
21
|
+
@pointerdown="onPointerdown"
|
|
22
|
+
@touchstart="onTouchstart"
|
|
23
|
+
@click.self="guardedClick"
|
|
22
24
|
>
|
|
23
25
|
<slot />
|
|
24
26
|
</component>
|
|
@@ -76,8 +78,17 @@ const {
|
|
|
76
78
|
releaseFocus,
|
|
77
79
|
active
|
|
78
80
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
let target = void 0;
|
|
82
|
+
function onPointerdown(e) {
|
|
83
|
+
target = e.target;
|
|
84
|
+
}
|
|
85
|
+
function onTouchstart(e) {
|
|
86
|
+
target = e.target;
|
|
87
|
+
}
|
|
88
|
+
function guardedClick(e) {
|
|
89
|
+
if (e.currentTarget === target) {
|
|
90
|
+
close();
|
|
91
|
+
}
|
|
81
92
|
}
|
|
82
93
|
onUnmounted(() => {
|
|
83
94
|
if (state.options.scrollLock) {
|
|
@@ -88,6 +99,7 @@ onUnmounted(() => {
|
|
|
88
99
|
if (state.options.focusTrap) {
|
|
89
100
|
releaseFocus();
|
|
90
101
|
}
|
|
102
|
+
target = void 0;
|
|
91
103
|
});
|
|
92
104
|
</script>
|
|
93
105
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@maas/vue-equipment/utils/css/keyframes/fade-in.css';
|
|
2
2
|
import '@maas/vue-equipment/utils/css/keyframes/fade-out.css';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_24: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_24) => any;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
8
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useModalState } from './useModalState.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useModalState } from "./useModalState.mjs";
|