nuance-ui 0.1.52 → 0.1.53
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/runtime/components/dialog/ui/dialog-root.vue +1 -0
- package/dist/runtime/components/drawer/drawer-root.vue +4 -2
- package/dist/runtime/components/modal/modal-root.vue +1 -1
- package/dist/runtime/components/modals/{modal-provider.vue → modals-provider.vue} +1 -2
- package/dist/runtime/composals/use-modal/use-modal.js +1 -1
- package/package.json +1 -1
- /package/dist/runtime/components/modals/{modal-provider.d.vue.ts → modals-provider.d.vue.ts} +0 -0
- /package/dist/runtime/components/modals/{modal-provider.vue.d.ts → modals-provider.vue.d.ts} +0 -0
package/dist/module.json
CHANGED
|
@@ -6,6 +6,7 @@ import Box from "../../box.vue";
|
|
|
6
6
|
import NTransition from "../../transition/transition.vue";
|
|
7
7
|
import { useProvideDialogState } from "../lib";
|
|
8
8
|
import css from "./dialog.module.css";
|
|
9
|
+
defineOptions({ inheritAttrs: false });
|
|
9
10
|
const {
|
|
10
11
|
withinPortal = false,
|
|
11
12
|
closeOnClickOutside = true,
|
|
@@ -4,9 +4,10 @@ import DialogRoot from "../dialog/ui/dialog-root.vue";
|
|
|
4
4
|
import css from "./drawer.module.css";
|
|
5
5
|
const {
|
|
6
6
|
position = "left",
|
|
7
|
-
withoutOverlay =
|
|
7
|
+
withoutOverlay = false,
|
|
8
|
+
withinPortal = false,
|
|
9
|
+
closeOnClickOutside = true,
|
|
8
10
|
mod,
|
|
9
|
-
withinPortal = true,
|
|
10
11
|
...rest
|
|
11
12
|
} = defineProps({
|
|
12
13
|
position: { type: String, required: false },
|
|
@@ -47,6 +48,7 @@ const transition = computed(() => {
|
|
|
47
48
|
:class='css.content'
|
|
48
49
|
:within-portal
|
|
49
50
|
:without-overlay
|
|
51
|
+
:close-on-click-outside
|
|
50
52
|
:transition
|
|
51
53
|
v-bind='rest'
|
|
52
54
|
@open='$emit("open")'
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { $modals } from "@nui/composals";
|
|
3
|
-
const activeModals = $modals.modals;
|
|
4
3
|
</script>
|
|
5
4
|
|
|
6
5
|
<template>
|
|
7
6
|
<div id='nui-modals-root'>
|
|
8
7
|
<component
|
|
9
8
|
:is='entry.component'
|
|
10
|
-
v-for='[id, entry] in
|
|
9
|
+
v-for='[id, entry] in $modals.modals'
|
|
11
10
|
:key='id'
|
|
12
11
|
v-bind='entry.props'
|
|
13
12
|
/>
|
|
@@ -4,7 +4,7 @@ export function useModal(id) {
|
|
|
4
4
|
const state = computed(() => $modals.state(id));
|
|
5
5
|
const opened = computed({
|
|
6
6
|
get: () => state.value?.opened,
|
|
7
|
-
set: (opened2) => opened2 ? $modals.show(id, state.value.props) : $modals.reject(id)
|
|
7
|
+
set: (opened2) => opened2 ? $modals.show(id, state.value.props) : $modals.reject(id, "cancel")
|
|
8
8
|
});
|
|
9
9
|
if (!state)
|
|
10
10
|
throw new Error(`Modal ${id} is not exist`);
|
package/package.json
CHANGED
/package/dist/runtime/components/modals/{modal-provider.d.vue.ts → modals-provider.d.vue.ts}
RENAMED
|
File without changes
|
/package/dist/runtime/components/modals/{modal-provider.vue.d.ts → modals-provider.vue.d.ts}
RENAMED
|
File without changes
|