@fastkit/vui 0.8.10 → 0.8.11
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/vui.cjs.js +2 -13
- package/dist/vui.cjs.prod.js +2 -13
- package/dist/vui.d.ts +0 -1
- package/dist/vui.mjs +3 -14
- package/package.json +6 -6
- package/src/plugin.tsx +3 -11
package/dist/vui.cjs.js
CHANGED
|
@@ -5694,15 +5694,7 @@ function mergeVuiPluginOptions(base, override) {
|
|
|
5694
5694
|
return merged;
|
|
5695
5695
|
}
|
|
5696
5696
|
class VuiPlugin {
|
|
5697
|
-
static installedApps = new Set();
|
|
5698
|
-
|
|
5699
5697
|
static install(app, opts) {
|
|
5700
|
-
const {
|
|
5701
|
-
installedApps
|
|
5702
|
-
} = this;
|
|
5703
|
-
if (installedApps.has(app)) return;
|
|
5704
|
-
const unmountApp = app.unmount;
|
|
5705
|
-
installedApps.add(app);
|
|
5706
5698
|
const {
|
|
5707
5699
|
colorScheme,
|
|
5708
5700
|
stack,
|
|
@@ -5737,12 +5729,9 @@ class VuiPlugin {
|
|
|
5737
5729
|
const $vui = new VuiService(opts, app.config.globalProperties.$vstack);
|
|
5738
5730
|
app.provide(VuiInjectionKey, $vui);
|
|
5739
5731
|
app.config.globalProperties.$vui = $vui;
|
|
5740
|
-
|
|
5741
|
-
app.unmount = function () {
|
|
5742
|
-
installedApps.delete(app);
|
|
5732
|
+
vueKit.onAppUnmount(app, () => {
|
|
5743
5733
|
delete app.config.globalProperties.$vui;
|
|
5744
|
-
|
|
5745
|
-
};
|
|
5734
|
+
});
|
|
5746
5735
|
}
|
|
5747
5736
|
|
|
5748
5737
|
}
|
package/dist/vui.cjs.prod.js
CHANGED
|
@@ -5694,15 +5694,7 @@ function mergeVuiPluginOptions(base, override) {
|
|
|
5694
5694
|
return merged;
|
|
5695
5695
|
}
|
|
5696
5696
|
class VuiPlugin {
|
|
5697
|
-
static installedApps = new Set();
|
|
5698
|
-
|
|
5699
5697
|
static install(app, opts) {
|
|
5700
|
-
const {
|
|
5701
|
-
installedApps
|
|
5702
|
-
} = this;
|
|
5703
|
-
if (installedApps.has(app)) return;
|
|
5704
|
-
const unmountApp = app.unmount;
|
|
5705
|
-
installedApps.add(app);
|
|
5706
5698
|
const {
|
|
5707
5699
|
colorScheme,
|
|
5708
5700
|
stack,
|
|
@@ -5737,12 +5729,9 @@ class VuiPlugin {
|
|
|
5737
5729
|
const $vui = new VuiService(opts, app.config.globalProperties.$vstack);
|
|
5738
5730
|
app.provide(VuiInjectionKey, $vui);
|
|
5739
5731
|
app.config.globalProperties.$vui = $vui;
|
|
5740
|
-
|
|
5741
|
-
app.unmount = function () {
|
|
5742
|
-
installedApps.delete(app);
|
|
5732
|
+
vueKit.onAppUnmount(app, () => {
|
|
5743
5733
|
delete app.config.globalProperties.$vui;
|
|
5744
|
-
|
|
5745
|
-
};
|
|
5734
|
+
});
|
|
5746
5735
|
}
|
|
5747
5736
|
|
|
5748
5737
|
}
|
package/dist/vui.d.ts
CHANGED
|
@@ -16348,7 +16348,6 @@ export declare interface VuiFormPromptSettings<T extends {
|
|
|
16348
16348
|
export declare const VuiInjectionKey: InjectionKey<VuiService>;
|
|
16349
16349
|
|
|
16350
16350
|
export declare class VuiPlugin {
|
|
16351
|
-
static readonly installedApps: Set<App<any>>;
|
|
16352
16351
|
static install(app: App, opts: VuiPluginOptions): void;
|
|
16353
16352
|
}
|
|
16354
16353
|
|
package/dist/vui.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createPropsOptions, createFormControlSettings, defineSlotsProps, useFormControl, VTooltip, renderSlotOrEmpty, createFormSelectorSettings, createFormControlProps, useFormSelectorControl, resolveVNodeChildOrSlots, createFormSelectorItemSettings, useFormSelectorItemControl, createFormSelectorItemGroupProps, useFormSelectorItemGroupControl, useParentFormNode, useKeybord, VMenu, createTextInputSettings, useTextInputControl, createTextareaSettings, useTextareaControl, createFormSettings, useForm, getDocumentScroller, useVScrollerRef, VScroller, useInjectTheme, VStackRoot, resolveVStackDynamicInput, VueColorSchemePlugin, installVueStackPlugin } from '@fastkit/vue-kit';
|
|
1
|
+
import { createPropsOptions, createFormControlSettings, defineSlotsProps, useFormControl, VTooltip, renderSlotOrEmpty, createFormSelectorSettings, createFormControlProps, useFormSelectorControl, resolveVNodeChildOrSlots, createFormSelectorItemSettings, useFormSelectorItemControl, createFormSelectorItemGroupProps, useFormSelectorItemGroupControl, useParentFormNode, useKeybord, VMenu, createTextInputSettings, useTextInputControl, createTextareaSettings, useTextareaControl, createFormSettings, useForm, getDocumentScroller, useVScrollerRef, VScroller, useInjectTheme, VStackRoot, resolveVStackDynamicInput, VueColorSchemePlugin, installVueStackPlugin, onAppUnmount } from '@fastkit/vue-kit';
|
|
2
2
|
export * from '@fastkit/vue-kit';
|
|
3
3
|
export { VDialog, VMenu, VSnackbar, VTooltip } from '@fastkit/vue-kit';
|
|
4
4
|
import { inject, computed, provide, createVNode, mergeProps, defineComponent, Fragment, isVNode, ref, watch, onMounted, onBeforeUnmount, cloneVNode, withDirectives, createTextVNode, vShow, onBeforeUpdate, vModelSelect, nextTick, Transition, reactive } from 'vue';
|
|
@@ -5688,15 +5688,7 @@ function mergeVuiPluginOptions(base, override) {
|
|
|
5688
5688
|
return merged;
|
|
5689
5689
|
}
|
|
5690
5690
|
class VuiPlugin {
|
|
5691
|
-
static installedApps = new Set();
|
|
5692
|
-
|
|
5693
5691
|
static install(app, opts) {
|
|
5694
|
-
const {
|
|
5695
|
-
installedApps
|
|
5696
|
-
} = this;
|
|
5697
|
-
if (installedApps.has(app)) return;
|
|
5698
|
-
const unmountApp = app.unmount;
|
|
5699
|
-
installedApps.add(app);
|
|
5700
5692
|
const {
|
|
5701
5693
|
colorScheme,
|
|
5702
5694
|
stack,
|
|
@@ -5731,12 +5723,9 @@ class VuiPlugin {
|
|
|
5731
5723
|
const $vui = new VuiService(opts, app.config.globalProperties.$vstack);
|
|
5732
5724
|
app.provide(VuiInjectionKey, $vui);
|
|
5733
5725
|
app.config.globalProperties.$vui = $vui;
|
|
5734
|
-
|
|
5735
|
-
app.unmount = function () {
|
|
5736
|
-
installedApps.delete(app);
|
|
5726
|
+
onAppUnmount(app, () => {
|
|
5737
5727
|
delete app.config.globalProperties.$vui;
|
|
5738
|
-
|
|
5739
|
-
};
|
|
5728
|
+
});
|
|
5740
5729
|
}
|
|
5741
5730
|
|
|
5742
5731
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastkit/vui",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.11",
|
|
4
4
|
"description": "@fastkit/vui",
|
|
5
5
|
"buildOptions": {
|
|
6
6
|
"name": "Vui",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"vue": "^3.2.26"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@fastkit/color-scheme": "0.8.
|
|
36
|
-
"@fastkit/icon-font": "0.8.
|
|
37
|
-
"@fastkit/tiny-logger": "0.8.
|
|
38
|
-
"@fastkit/vite-kit": "0.8.
|
|
39
|
-
"@fastkit/vue-kit": "0.8.
|
|
35
|
+
"@fastkit/color-scheme": "0.8.11",
|
|
36
|
+
"@fastkit/icon-font": "0.8.11",
|
|
37
|
+
"@fastkit/tiny-logger": "0.8.11",
|
|
38
|
+
"@fastkit/vite-kit": "0.8.11",
|
|
39
|
+
"@fastkit/vue-kit": "0.8.11",
|
|
40
40
|
"@tiptap/extension-link": "^2.0.0-beta.36",
|
|
41
41
|
"@tiptap/extension-underline": "^2.0.0-beta.23",
|
|
42
42
|
"@tiptap/extension-text-style": "^2.0.0-beta.23",
|
package/src/plugin.tsx
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
installVueStackPlugin,
|
|
11
11
|
VueStackServiceOptions,
|
|
12
12
|
VueColorSchemePlugin,
|
|
13
|
+
onAppUnmount,
|
|
13
14
|
} from '@fastkit/vue-kit';
|
|
14
15
|
import { VButton } from './components/VButton';
|
|
15
16
|
|
|
@@ -46,14 +47,7 @@ declare module '@vue/runtime-core' {
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
export class VuiPlugin {
|
|
49
|
-
static readonly installedApps = new Set<App>();
|
|
50
|
-
|
|
51
50
|
static install(app: App, opts: VuiPluginOptions) {
|
|
52
|
-
const { installedApps } = this;
|
|
53
|
-
if (installedApps.has(app)) return;
|
|
54
|
-
const unmountApp = app.unmount;
|
|
55
|
-
installedApps.add(app);
|
|
56
|
-
|
|
57
51
|
const { colorScheme, stack, uiSettings } = opts;
|
|
58
52
|
|
|
59
53
|
// ColorScheme
|
|
@@ -88,11 +82,9 @@ export class VuiPlugin {
|
|
|
88
82
|
app.provide(VuiInjectionKey, $vui);
|
|
89
83
|
app.config.globalProperties.$vui = $vui;
|
|
90
84
|
|
|
91
|
-
app
|
|
92
|
-
installedApps.delete(app);
|
|
85
|
+
onAppUnmount(app, () => {
|
|
93
86
|
delete app.config.globalProperties.$vui;
|
|
94
|
-
|
|
95
|
-
};
|
|
87
|
+
});
|
|
96
88
|
}
|
|
97
89
|
}
|
|
98
90
|
|