nuance-ui 0.1.58 → 0.1.60
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 +0 -1
- package/dist/runtime/modals/modal-manager.d.ts +1 -2
- package/dist/runtime/modals/modal-manager.js +1 -1
- package/dist/runtime/modals/modals-provider.d.vue.ts +7 -1
- package/dist/runtime/modals/modals-provider.vue +7 -1
- package/dist/runtime/modals/modals-provider.vue.d.ts +7 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -38,7 +38,6 @@ const module$1 = defineNuxtModule({
|
|
|
38
38
|
nuxt.options.alias["@nui/helpers"] = resolve("./runtime/helpers");
|
|
39
39
|
nuxt.options.alias["@nui/types"] = resolve("./runtime/types");
|
|
40
40
|
nuxt.options.alias["@nui/modals"] = resolve("./runtime/modals");
|
|
41
|
-
nuxt.options.appConfig.nui = defu(nuxt.options.appConfig.nui || {}, defaultConfig);
|
|
42
41
|
nuxt.options.postcss = nuxt.options.postcss || {};
|
|
43
42
|
nuxt.options.postcss.plugins = nuxt.options.postcss.plugins || {};
|
|
44
43
|
nuxt.options.postcss.plugins = defu(nuxt.options.postcss.plugins, {
|
|
@@ -29,7 +29,7 @@ export interface ModalState<Props extends object = object, Resolve = unknown, Re
|
|
|
29
29
|
* const result = await open({ foo: 'bar' }) // result: string
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare class ModalManager {
|
|
32
|
+
export declare class ModalManager {
|
|
33
33
|
#private;
|
|
34
34
|
/** Reactive map of active modals */
|
|
35
35
|
readonly modals: import("vue").Reactive<Map<string, ModalState<object, unknown, unknown>>>;
|
|
@@ -79,4 +79,3 @@ declare class ModalManager {
|
|
|
79
79
|
state<Props extends object = object, Resolve = unknown, Reject = unknown>(id: string): ModalState<Props, Resolve, Reject>;
|
|
80
80
|
}
|
|
81
81
|
export declare const $modals: import("vue").Raw<ModalManager>;
|
|
82
|
-
export {};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ModalManager } from './modal-manager.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
manager?: ModalManager;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
6
|
+
manager: import("vue").Raw<ModalManager>;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
8
|
declare const _default: typeof __VLS_export;
|
|
3
9
|
export default _default;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { $modals } from "./modal-manager";
|
|
3
|
+
defineProps({
|
|
4
|
+
manager: { type: Object, required: false }
|
|
5
|
+
});
|
|
6
|
+
defineExpose({
|
|
7
|
+
manager: $modals
|
|
8
|
+
});
|
|
3
9
|
</script>
|
|
4
10
|
|
|
5
11
|
<template>
|
|
@@ -7,7 +13,7 @@ import { $modals } from "./modal-manager";
|
|
|
7
13
|
<div id='nui-modals-root'>
|
|
8
14
|
<component
|
|
9
15
|
:is='entry.component'
|
|
10
|
-
v-for='[id, entry] in $modals.modals'
|
|
16
|
+
v-for='[id, entry] in $props.manager?.modals ?? $modals.modals'
|
|
11
17
|
:key='id'
|
|
12
18
|
v-bind='entry.props'
|
|
13
19
|
/>
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ModalManager } from './modal-manager.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
manager?: ModalManager;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
6
|
+
manager: import("vue").Raw<ModalManager>;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
8
|
declare const _default: typeof __VLS_export;
|
|
3
9
|
export default _default;
|