@fastkit/vui 0.16.9 → 0.16.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/vui",
3
- "version": "0.16.9",
3
+ "version": "0.16.10",
4
4
  "description": "A simple, extensible UI kit for Vue applications.",
5
5
  "keywords": [
6
6
  "fastkit",
@@ -59,7 +59,7 @@
59
59
  "@fastkit/vue-body-scroll-lock": "0.1.3",
60
60
  "@fastkit/vue-click-outside": "0.1.3",
61
61
  "@fastkit/vue-color-scheme": "0.14.2",
62
- "@fastkit/vue-form-control": "0.15.2",
62
+ "@fastkit/vue-form-control": "0.15.3",
63
63
  "@fastkit/vue-keyboard": "0.1.1",
64
64
  "@fastkit/vue-loading": "0.14.3",
65
65
  "@fastkit/vue-location": "0.1.3",
package/src/plugin.tsx CHANGED
@@ -10,6 +10,10 @@ import {
10
10
  installVueStackPlugin,
11
11
  VueStackServiceOptions,
12
12
  } from '@fastkit/vue-stack';
13
+ import {
14
+ installVueFormPlugin,
15
+ VueFormServiceOptions,
16
+ } from '@fastkit/vue-form-control';
13
17
  import { installBodyScrollLockDirective } from '@fastkit/vue-body-scroll-lock';
14
18
  import { installClickOutsideDirective } from '@fastkit/vue-click-outside';
15
19
  import { installResizeDirective } from '@fastkit/vue-resize';
@@ -22,10 +26,12 @@ export interface VuiPluginStackOptions extends VueStackServiceOptions {}
22
26
 
23
27
  export interface VuiPluginOptions extends VuiServiceOptions {
24
28
  stack?: VuiPluginStackOptions;
29
+ form?: VueFormServiceOptions;
25
30
  }
26
31
 
27
32
  export interface RawVuiPluginOptions extends RawVuiServiceOptions {
28
33
  stack?: VuiPluginStackOptions;
34
+ form?: VueFormServiceOptions;
29
35
  }
30
36
 
31
37
  export function mergeVuiPluginOptions(
@@ -40,6 +46,12 @@ export function mergeVuiPluginOptions(
40
46
  ...override.stack,
41
47
  };
42
48
  }
49
+ if (override.form) {
50
+ merged.form = {
51
+ ...merged.form,
52
+ ...override.form,
53
+ };
54
+ }
43
55
  return merged;
44
56
  }
45
57
 
@@ -51,15 +63,14 @@ declare module 'vue' {
51
63
 
52
64
  export class VuiPlugin {
53
65
  static install(app: App, opts: VuiPluginOptions) {
54
- const { colorScheme, stack } = opts;
66
+ const { colorScheme, stack, form } = opts;
55
67
 
56
68
  // ColorScheme
57
69
  const vueColorSchemePlugin = new VueColorSchemePlugin(colorScheme);
58
70
  app.use(vueColorSchemePlugin);
59
71
 
60
- // Stack
61
72
  installVueStackPlugin(app, stack);
62
-
73
+ installVueFormPlugin(app, form);
63
74
  installVueAppLayout(app);
64
75
  installBodyScrollLockDirective(app);
65
76
  installClickOutsideDirective(app);