@fastkit/vui 0.11.0 → 0.12.1

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.css CHANGED
@@ -1544,10 +1544,10 @@ thead th {
1544
1544
  }
1545
1545
  .v-drawer-layout__header {
1546
1546
  display: flex;
1547
- flex: 0 0 var(--v-app-layout-vertial-fixed-height);
1547
+ flex: 0 0 var(--val-topToolbar-height);
1548
1548
  align-items: center;
1549
1549
  justify-content: center;
1550
- height: var(--v-app-layout-vertial-fixed-height);
1550
+ height: var(--val-topToolbar-height);
1551
1551
  }
1552
1552
  .v-drawer-layout__body {
1553
1553
  flex: 1 1 100%;
package/dist/vui.d.ts CHANGED
@@ -1,9 +1,13 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import { AnyExtension } from '@tiptap/vue-3';
3
3
  import { App } from 'vue';
4
+ import { BodyScrollLockDirectiveBindingValue } from '@fastkit/vue-utils';
5
+ import { BodyScrollLockDirectiveBindingValue as BodyScrollLockDirectiveBindingValue_2 } from '@fastkit/vue-kit';
4
6
  import { BoldOptions } from '@tiptap/extension-bold';
5
7
  import { BulletListOptions } from '@tiptap/extension-bullet-list';
6
8
  import { ChainedCommands } from '@tiptap/vue-3';
9
+ import { ClickOutsideDirectiveBindingValue } from '@fastkit/vue-utils';
10
+ import { ClickOutsideDirectiveBindingValue as ClickOutsideDirectiveBindingValue_2 } from '@fastkit/vue-kit';
7
11
  import { ColorVariant , ThemeName, PaletteName } from '@fastkit/color-scheme';
8
12
  import { ComponentCustomProps } from 'vue';
9
13
  import { ComponentOptionsMixin } from 'vue';
@@ -54,6 +58,8 @@ import { OrderedListOptions } from '@tiptap/extension-ordered-list';
54
58
  import { Prop } from 'vue';
55
59
  import { PropType } from 'vue';
56
60
  import { RawFormSelectorItems } from '@fastkit/vue-kit';
61
+ import { RawResizeDirectiveBindingValue } from '@fastkit/vue-utils';
62
+ import { RawResizeDirectiveBindingValue as RawResizeDirectiveBindingValue_2 } from '@fastkit/vue-kit';
57
63
  import { RawTextableFinishingProp } from '@fastkit/vue-kit';
58
64
  import { RawTextareaAutosizeSettings } from '@fastkit/vue-kit';
59
65
  import { Ref } from 'vue';
@@ -419,6 +425,9 @@ export declare function createCardProps(): {
419
425
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
420
426
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
421
427
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
428
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
429
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
430
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
422
431
  elevation: PropType<VuiElevationValue>;
423
432
  };
424
433
 
@@ -762,6 +771,9 @@ export declare function createPaperBaseProps(): {
762
771
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
763
772
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
764
773
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
774
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
775
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
776
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
765
777
  };
766
778
 
767
779
  export declare function createPaperProps(): {
@@ -949,6 +961,9 @@ export declare function createPaperProps(): {
949
961
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
950
962
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
951
963
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
964
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
965
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
966
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
952
967
  elevation: PropType<VuiElevationValue>;
953
968
  };
954
969
 
@@ -2707,6 +2722,9 @@ export declare const VBusyImage: DefineComponent<{
2707
2722
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
2708
2723
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
2709
2724
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
2725
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
2726
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
2727
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
2710
2728
  }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2711
2729
  load: (ev: Event) => true;
2712
2730
  error: (ev: Event) => true;
@@ -2895,6 +2913,9 @@ export declare const VBusyImage: DefineComponent<{
2895
2913
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
2896
2914
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
2897
2915
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
2916
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
2917
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
2918
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
2898
2919
  }>> & {
2899
2920
  onLoad?: ((ev: Event) => any) | undefined;
2900
2921
  onError?: ((ev: Event) => any) | undefined;
@@ -3114,6 +3135,9 @@ export declare const VButton: DefineComponent<{
3114
3135
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
3115
3136
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
3116
3137
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
3138
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
3139
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
3140
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
3117
3141
  }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
3118
3142
  size: {
3119
3143
  type: PropType<"sm" | "md" | "lg">;
@@ -3326,6 +3350,9 @@ export declare const VButton: DefineComponent<{
3326
3350
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
3327
3351
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
3328
3352
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
3353
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
3354
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
3355
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
3329
3356
  }>>, {
3330
3357
  rounded: boolean;
3331
3358
  align: "left" | "right" | "center";
@@ -3576,6 +3603,9 @@ export declare const VCard: DefineComponent<{
3576
3603
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
3577
3604
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
3578
3605
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
3606
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
3607
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
3608
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
3579
3609
  elevation: PropType<VuiElevationValue>;
3580
3610
  }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
3581
3611
  disabled: BooleanConstructor;
@@ -3781,6 +3811,9 @@ export declare const VCard: DefineComponent<{
3781
3811
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
3782
3812
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
3783
3813
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
3814
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
3815
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
3816
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
3784
3817
  elevation: PropType<VuiElevationValue>;
3785
3818
  }>>, {
3786
3819
  disabled: boolean;
@@ -4643,6 +4676,9 @@ export declare const VDrawerLayout: DefineComponent<{
4643
4676
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
4644
4677
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
4645
4678
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
4679
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue_2 | undefined>;
4680
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue_2>;
4681
+ 'v-resize': PropType<RawResizeDirectiveBindingValue_2 | undefined>;
4646
4682
  }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
4647
4683
  'v-slots': PropType<ResolveRawSlots<{
4648
4684
  header: void;
@@ -4823,6 +4859,9 @@ export declare const VDrawerLayout: DefineComponent<{
4823
4859
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
4824
4860
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
4825
4861
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
4862
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue_2 | undefined>;
4863
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue_2>;
4864
+ 'v-resize': PropType<RawResizeDirectiveBindingValue_2 | undefined>;
4826
4865
  }>>, {
4827
4866
  tag: any;
4828
4867
  }>;
@@ -5251,6 +5290,9 @@ export declare const VGridContainer: DefineComponent<{
5251
5290
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
5252
5291
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
5253
5292
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
5293
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
5294
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
5295
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
5254
5296
  }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
5255
5297
  wrapperTag: {
5256
5298
  type: StringConstructor;
@@ -5437,6 +5479,9 @@ export declare const VGridContainer: DefineComponent<{
5437
5479
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
5438
5480
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
5439
5481
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
5482
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
5483
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
5484
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
5440
5485
  }>>, {
5441
5486
  wrapperTag: string;
5442
5487
  tag: string;
@@ -5621,6 +5666,9 @@ export declare const VGridItem: DefineComponent<{
5621
5666
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
5622
5667
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
5623
5668
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
5669
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
5670
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
5671
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
5624
5672
  }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
5625
5673
  tag: {
5626
5674
  type: StringConstructor;
@@ -5800,6 +5848,9 @@ export declare const VGridItem: DefineComponent<{
5800
5848
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
5801
5849
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
5802
5850
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
5851
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
5852
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
5853
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
5803
5854
  }>>, {
5804
5855
  tag: string;
5805
5856
  }>;
@@ -5990,6 +6041,9 @@ export declare const VHero: DefineComponent<{
5990
6041
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
5991
6042
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
5992
6043
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
6044
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
6045
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
6046
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
5993
6047
  }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
5994
6048
  'v-slots': PropType<ResolveRawSlots_2<{
5995
6049
  default: void;
@@ -6176,6 +6230,9 @@ export declare const VHero: DefineComponent<{
6176
6230
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
6177
6231
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
6178
6232
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
6233
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
6234
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
6235
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
6179
6236
  }>>, {
6180
6237
  color: ScopeName;
6181
6238
  tag: string;
@@ -7046,6 +7103,9 @@ export declare const VPaper: DefineComponent<{
7046
7103
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
7047
7104
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
7048
7105
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
7106
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
7107
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
7108
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
7049
7109
  elevation: PropType<VuiElevationValue>;
7050
7110
  }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
7051
7111
  square: BooleanConstructor;
@@ -7232,6 +7292,9 @@ export declare const VPaper: DefineComponent<{
7232
7292
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
7233
7293
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
7234
7294
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
7295
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
7296
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
7297
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
7235
7298
  elevation: PropType<VuiElevationValue>;
7236
7299
  }>>, {
7237
7300
  square: boolean;
@@ -9043,6 +9106,9 @@ export declare const VToolbarMenu: DefineComponent<{
9043
9106
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
9044
9107
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
9045
9108
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
9109
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
9110
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
9111
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
9046
9112
  }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
9047
9113
  size: {
9048
9114
  type: PropType<"sm" | "md" | "lg">;
@@ -9255,6 +9321,9 @@ export declare const VToolbarMenu: DefineComponent<{
9255
9321
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
9256
9322
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
9257
9323
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
9324
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
9325
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
9326
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
9258
9327
  }>>, {
9259
9328
  rounded: boolean;
9260
9329
  align: "left" | "right" | "center";
@@ -9492,6 +9561,9 @@ export declare const vueButtonProps: {
9492
9561
  onAnimationiteration: PropType<((payload: AnimationEvent) => void) | undefined>;
9493
9562
  onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
9494
9563
  onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
9564
+ 'v-click-outside': PropType<ClickOutsideDirectiveBindingValue | undefined>;
9565
+ 'v-body-scroll-lock': PropType<BodyScrollLockDirectiveBindingValue>;
9566
+ 'v-resize': PropType<RawResizeDirectiveBindingValue | undefined>;
9495
9567
  };
9496
9568
 
9497
9569
  export declare const VUI_CHECKBOX_GROUP_SYMBOL = "vui-checkbox-group";
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, useKeyboard, VMenu, createTextInputSettings, useTextInputControl, createTextareaSettings, useTextareaControl, createFormSettings, useForm, getDocumentScroller, useVScrollerRef, VScroller, useInjectTheme, VStackRoot, resolveVStackDynamicInput, VueColorSchemePlugin, installVueStackPlugin, onAppUnmount } from '@fastkit/vue-kit';
1
+ import { createPropsOptions, createFormControlSettings, defineSlotsProps, useFormControl, VTooltip, renderSlotOrEmpty, createFormSelectorSettings, createFormControlProps, useFormSelectorControl, resolveVNodeChildOrSlots, createFormSelectorItemSettings, useFormSelectorItemControl, createFormSelectorItemGroupProps, useFormSelectorItemGroupControl, useParentFormNode, useKeyboard, VMenu, createTextInputSettings, useTextInputControl, createTextareaSettings, useTextareaControl, createFormSettings, useForm, getDocumentScroller, useVScrollerRef, VScroller, useInjectTheme, VStackRoot, VAppLayout, resolveVStackDynamicInput, VueColorSchemePlugin, installVueStackPlugin, installVueAppLayout, 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';
@@ -10,7 +10,7 @@ export * from '@fastkit/vue-loading';
10
10
  import { useScopeColorClass, colorSchemeProps, useColorClasses, toScopeColorClass } from '@fastkit/vue-color-scheme';
11
11
  import { loadImage, IN_WINDOW, isPromise } from '@fastkit/helpers';
12
12
  export { ICON_NAMES } from '@fastkit/icon-font';
13
- import { VAppContainer, VAppLayoutControl } from '@fastkit/vue-app-layout';
13
+ import { VAppContainer, VueAppLayout } from '@fastkit/vue-app-layout';
14
14
  import { createTextableProps, createTextableEmits, TextableControl } from '@fastkit/vue-form-control';
15
15
  import { useEditor, EditorContent, BubbleMenu } from '@tiptap/vue-3';
16
16
  import { StarterKit } from '@tiptap/starter-kit';
@@ -441,7 +441,7 @@ function useElevation(props, opts = {}) {
441
441
  };
442
442
  }
443
443
 
444
- function _isSlot$f(s) {
444
+ function _isSlot$e(s) {
445
445
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
446
446
  }
447
447
  const VSkeltonLoaderBone = /* @__PURE__ */ defineComponent({
@@ -459,7 +459,7 @@ const VSkeltonLoaderBone = /* @__PURE__ */ defineComponent({
459
459
  const TagName = props.tag;
460
460
  return createVNode(TagName, mergeProps(ctx.attrs, {
461
461
  "class": "v-skelton-loader-bone"
462
- }), _isSlot$f(_slot = renderSlotOrEmpty$1(ctx.slots)) ? _slot : {
462
+ }), _isSlot$e(_slot = renderSlotOrEmpty$1(ctx.slots)) ? _slot : {
463
463
  default: () => [_slot]
464
464
  });
465
465
  };
@@ -1237,7 +1237,7 @@ const VButtonGroup = /* @__PURE__ */ defineComponent({
1237
1237
  }
1238
1238
  });
1239
1239
 
1240
- function _isSlot$e(s) {
1240
+ function _isSlot$d(s) {
1241
1241
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
1242
1242
  }
1243
1243
  const PAGINATION_ALIGNS = ['left', 'center', 'right'];
@@ -1459,7 +1459,7 @@ const VPagination = /* @__PURE__ */ defineComponent({
1459
1459
  "class": classes,
1460
1460
  "to": to,
1461
1461
  "key": key
1462
- }, _isSlot$e(children) ? children : {
1462
+ }, _isSlot$d(children) ? children : {
1463
1463
  default: () => [children]
1464
1464
  });
1465
1465
  } else {
@@ -1610,7 +1610,7 @@ const VDrawerLayout = /* @__PURE__ */ defineComponent({
1610
1610
  });
1611
1611
 
1612
1612
  // Adornment
1613
- function _isSlot$d(s) {
1613
+ function _isSlot$c(s) {
1614
1614
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
1615
1615
  }
1616
1616
  const VHero = /* @__PURE__ */ defineComponent({
@@ -1645,7 +1645,7 @@ const VHero = /* @__PURE__ */ defineComponent({
1645
1645
  }, {
1646
1646
  default: () => [createVNode(HTagName, {
1647
1647
  "class": "v-hero__title"
1648
- }, _isSlot$d(_slot = renderSlotOrEmpty$1(ctx.slots, 'default')) ? _slot : {
1648
+ }, _isSlot$c(_slot = renderSlotOrEmpty$1(ctx.slots, 'default')) ? _slot : {
1649
1649
  default: () => [_slot]
1650
1650
  }), adornment && createVNode("div", {
1651
1651
  "class": "v-hero__adornment"
@@ -1656,7 +1656,7 @@ const VHero = /* @__PURE__ */ defineComponent({
1656
1656
  }
1657
1657
  });
1658
1658
 
1659
- function _isSlot$c(s) {
1659
+ function _isSlot$b(s) {
1660
1660
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
1661
1661
  }
1662
1662
  function createNavigationItemProps() {
@@ -1698,7 +1698,7 @@ function renderNavigationItemInput(input, extraProps) {
1698
1698
  return createVNode(VNavigationItem, {
1699
1699
  ...props,
1700
1700
  ...extraProps
1701
- }, _isSlot$c(label) ? label : {
1701
+ }, _isSlot$b(label) ? label : {
1702
1702
  default: () => [label]
1703
1703
  });
1704
1704
  }
@@ -1862,7 +1862,7 @@ const VNavigationItem = /* @__PURE__ */ defineComponent({
1862
1862
  "class": ['v-navigation-item', classes.value],
1863
1863
  "onClick": onClick,
1864
1864
  "onChangeActive": onChangeActive
1865
- }), _isSlot$c(_slot = renderSlotOrEmpty$1(ctx.slots, 'default')) ? _slot : {
1865
+ }), _isSlot$b(_slot = renderSlotOrEmpty$1(ctx.slots, 'default')) ? _slot : {
1866
1866
  default: () => [_slot]
1867
1867
  }), _children && createVNode(VExpandTransition, null, {
1868
1868
  default: () => [withDirectives(createVNode("div", {
@@ -2039,7 +2039,7 @@ const VCheckbox = /* @__PURE__ */ defineComponent({
2039
2039
  }
2040
2040
  });
2041
2041
 
2042
- function _isSlot$b(s) {
2042
+ function _isSlot$a(s) {
2043
2043
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
2044
2044
  }
2045
2045
  const VCheckboxGroup = defineFormSelectorComponent({
@@ -2050,7 +2050,7 @@ const VCheckboxGroup = defineFormSelectorComponent({
2050
2050
  itemRenderer: ({
2051
2051
  attrs,
2052
2052
  slots
2053
- }) => createVNode(VCheckbox, attrs, _isSlot$b(slots) ? slots : {
2053
+ }) => createVNode(VCheckbox, attrs, _isSlot$a(slots) ? slots : {
2054
2054
  default: () => [slots]
2055
2055
  })
2056
2056
  });
@@ -2101,7 +2101,7 @@ const VRadio = /* @__PURE__ */ defineComponent({
2101
2101
  }
2102
2102
  });
2103
2103
 
2104
- function _isSlot$a(s) {
2104
+ function _isSlot$9(s) {
2105
2105
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
2106
2106
  }
2107
2107
  const VRadioGroup = defineFormSelectorComponent({
@@ -2111,7 +2111,7 @@ const VRadioGroup = defineFormSelectorComponent({
2111
2111
  itemRenderer: ({
2112
2112
  attrs,
2113
2113
  slots
2114
- }) => createVNode(VRadio, attrs, _isSlot$a(slots) ? slots : {
2114
+ }) => createVNode(VRadio, attrs, _isSlot$9(slots) ? slots : {
2115
2115
  default: () => [slots]
2116
2116
  })
2117
2117
  });
@@ -2170,7 +2170,7 @@ const VSwitch = /* @__PURE__ */ defineComponent({
2170
2170
  }
2171
2171
  });
2172
2172
 
2173
- function _isSlot$9(s) {
2173
+ function _isSlot$8(s) {
2174
2174
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
2175
2175
  }
2176
2176
  const VSwitchGroup = defineFormSelectorComponent({
@@ -2181,7 +2181,7 @@ const VSwitchGroup = defineFormSelectorComponent({
2181
2181
  itemRenderer: ({
2182
2182
  attrs,
2183
2183
  slots
2184
- }) => createVNode(VSwitch, attrs, _isSlot$9(slots) ? slots : {
2184
+ }) => createVNode(VSwitch, attrs, _isSlot$8(slots) ? slots : {
2185
2185
  default: () => [slots]
2186
2186
  })
2187
2187
  });
@@ -2376,7 +2376,7 @@ const VControlField = /* @__PURE__ */ defineComponent({
2376
2376
  }
2377
2377
  });
2378
2378
 
2379
- function _isSlot$8(s) {
2379
+ function _isSlot$7(s) {
2380
2380
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
2381
2381
  }
2382
2382
  const ARROW_KEY_TYPES = useKeyboard.Key(['ArrowUp', 'ArrowDown']);
@@ -2583,7 +2583,7 @@ const VSelect = /* @__PURE__ */ defineComponent({
2583
2583
  "groupId": group.id,
2584
2584
  "label": group.label(selectorControl),
2585
2585
  "disabled": group.disabled
2586
- }, _isSlot$8(_slot = group.items.map(item => createVNode(VOption, {
2586
+ }, _isSlot$7(_slot = group.items.map(item => createVNode(VOption, {
2587
2587
  "disabled": item.disabled,
2588
2588
  "value": item.value,
2589
2589
  "key": item.value
@@ -3013,7 +3013,7 @@ function resolveRawWysiwygEditorTools(rawTools, vui) {
3013
3013
  };
3014
3014
  }
3015
3015
 
3016
- function _isSlot$7(s) {
3016
+ function _isSlot$6(s) {
3017
3017
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
3018
3018
  }
3019
3019
  const VWysiwygEditor = /* @__PURE__ */ defineComponent({
@@ -3151,7 +3151,7 @@ const VWysiwygEditor = /* @__PURE__ */ defineComponent({
3151
3151
  'v-wysiwyg-editor__floating-toolbar': props.floatingToolbar
3152
3152
  }],
3153
3153
  "variant": variant
3154
- }, _isSlot$7(_slot = tools.map(({
3154
+ }, _isSlot$6(_slot = tools.map(({
3155
3155
  key,
3156
3156
  icon,
3157
3157
  onClick,
@@ -3182,7 +3182,7 @@ const VWysiwygEditor = /* @__PURE__ */ defineComponent({
3182
3182
  "onClick": ev => onClick(context, ev),
3183
3183
  "color": isActive ? toolButtonActiveColor : undefined,
3184
3184
  "disabled": isDisabled
3185
- }, _isSlot$7(child) ? child : {
3185
+ }, _isSlot$6(child) ? child : {
3186
3186
  default: () => [child]
3187
3187
  });
3188
3188
  })) ? _slot : {
@@ -3247,7 +3247,7 @@ const VWysiwygEditor = /* @__PURE__ */ defineComponent({
3247
3247
  class: 'v-wysiwyg-editor__bubble-menu'
3248
3248
  }, {
3249
3249
  "editor": editor
3250
- }), _isSlot$7(_slot2 = this.createTools(true)) ? _slot2 : {
3250
+ }), _isSlot$6(_slot2 = this.createTools(true)) ? _slot2 : {
3251
3251
  default: () => [_slot2]
3252
3252
  })]);
3253
3253
  }
@@ -3875,7 +3875,7 @@ const VForm = /* @__PURE__ */ defineComponent({
3875
3875
  }
3876
3876
  });
3877
3877
 
3878
- function _isSlot$6(s) {
3878
+ function _isSlot$5(s) {
3879
3879
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
3880
3880
  }
3881
3881
  const VTab = /* @__PURE__ */ defineComponent({
@@ -3920,7 +3920,7 @@ const VTab = /* @__PURE__ */ defineComponent({
3920
3920
  "class": classes,
3921
3921
  "to": to,
3922
3922
  "replace": replace
3923
- }, _isSlot$6(children) ? children : {
3923
+ }, _isSlot$5(children) ? children : {
3924
3924
  default: () => [children]
3925
3925
  });
3926
3926
  } else {
@@ -3937,7 +3937,7 @@ const VTab = /* @__PURE__ */ defineComponent({
3937
3937
  }
3938
3938
  });
3939
3939
 
3940
- function _isSlot$5(s) {
3940
+ function _isSlot$4(s) {
3941
3941
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
3942
3942
  }
3943
3943
  const VTabs = /* @__PURE__ */ defineComponent({
@@ -4190,7 +4190,7 @@ const VTabs = /* @__PURE__ */ defineComponent({
4190
4190
  to(value);
4191
4191
  }
4192
4192
  }
4193
- }, _isSlot$5(children) ? children : {
4193
+ }, _isSlot$4(children) ? children : {
4194
4194
  default: () => [children]
4195
4195
  });
4196
4196
  });
@@ -4211,7 +4211,7 @@ const VTabs = /* @__PURE__ */ defineComponent({
4211
4211
  }
4212
4212
  });
4213
4213
 
4214
- function _isSlot$4(s) {
4214
+ function _isSlot$3(s) {
4215
4215
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
4216
4216
  }
4217
4217
  const VBreadcrumbs = /* @__PURE__ */ defineComponent({
@@ -4294,7 +4294,7 @@ const VBreadcrumbs = /* @__PURE__ */ defineComponent({
4294
4294
  "class": "v-breadcrumbs__link",
4295
4295
  "to": to,
4296
4296
  "exactActiveClass": "v-breadcrumbs__link--active"
4297
- }, _isSlot$4(myChildren) ? myChildren : {
4297
+ }, _isSlot$3(myChildren) ? myChildren : {
4298
4298
  default: () => [myChildren]
4299
4299
  }) : myChildren;
4300
4300
  children.push(createVNode("li", {
@@ -4313,7 +4313,7 @@ const VBreadcrumbs = /* @__PURE__ */ defineComponent({
4313
4313
  }
4314
4314
  });
4315
4315
 
4316
- function _isSlot$3(s) {
4316
+ function _isSlot$2(s) {
4317
4317
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
4318
4318
  }
4319
4319
  const VContentSwitcher = /* @__PURE__ */ defineComponent({
@@ -4427,7 +4427,7 @@ const VContentSwitcher = /* @__PURE__ */ defineComponent({
4427
4427
  "onLeaveCancelled": () => {
4428
4428
  getEl().style.height = '';
4429
4429
  }
4430
- }, _isSlot$3(children) ? children : {
4430
+ }, _isSlot$2(children) ? children : {
4431
4431
  default: () => [children]
4432
4432
  })]);
4433
4433
  };
@@ -4606,7 +4606,7 @@ const VDataTable = /* @__PURE__ */ defineComponent({
4606
4606
  const classesRef = computed(() => [{
4607
4607
  'v-data-table--fixed-header': props.fixedHeader
4608
4608
  }]);
4609
- const layout = VAppLayoutControl.use();
4609
+ const layout = VueAppLayout.use();
4610
4610
  const bodyInnerStylesRef = computed(() => {
4611
4611
  if (!bootedRef.value) return;
4612
4612
  const {
@@ -5053,17 +5053,13 @@ const VDataTable = /* @__PURE__ */ defineComponent({
5053
5053
  }
5054
5054
  });
5055
5055
 
5056
- function _isSlot$2(s) {
5057
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
5058
- }
5059
5056
  const VApp = /* @__PURE__ */ defineComponent({
5060
5057
  name: 'VApp',
5061
5058
  setup(props, ctx) {
5062
5059
  useInjectTheme();
5063
5060
  return () => {
5064
- let _slot;
5065
- return createVNode(VStackRoot, null, _isSlot$2(_slot = renderSlotOrEmpty(ctx.slots, 'default')) ? _slot : {
5066
- default: () => [_slot]
5061
+ return createVNode(VStackRoot, null, {
5062
+ default: () => [createVNode(VAppLayout, null, ctx.slots)]
5067
5063
  });
5068
5064
  };
5069
5065
  }
@@ -5408,6 +5404,7 @@ class VuiPlugin {
5408
5404
  },
5409
5405
  ...stack
5410
5406
  });
5407
+ installVueAppLayout(app);
5411
5408
  // Vui
5412
5409
  const $vui = new VuiService(opts, app.config.globalProperties.$vstack);
5413
5410
  app.provide(VuiInjectionKey, $vui);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/vui",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
4
4
  "description": "A simple, extensible UI kit for Vue applications.",
5
5
  "buildOptions": {
6
6
  "name": "Vui",
@@ -59,11 +59,11 @@
59
59
  "vue": "^3.2.45"
60
60
  },
61
61
  "dependencies": {
62
- "@fastkit/color-scheme": "0.11.0",
63
- "@fastkit/icon-font": "0.11.0",
64
- "@fastkit/tiny-logger": "0.11.0",
65
- "@fastkit/vite-kit": "0.11.0",
66
- "@fastkit/vue-kit": "0.11.0",
62
+ "@fastkit/color-scheme": "0.12.1",
63
+ "@fastkit/icon-font": "0.12.1",
64
+ "@fastkit/tiny-logger": "0.12.1",
65
+ "@fastkit/vite-kit": "0.12.1",
66
+ "@fastkit/vue-kit": "0.12.1",
67
67
  "@tiptap/extension-link": "^2.0.0-beta.209",
68
68
  "@tiptap/extension-text-style": "^2.0.0-beta.209",
69
69
  "@tiptap/extension-underline": "^2.0.0-beta.209",
@@ -1,9 +1,5 @@
1
1
  import { defineComponent } from 'vue';
2
- import {
3
- VStackRoot,
4
- useInjectTheme,
5
- renderSlotOrEmpty,
6
- } from '@fastkit/vue-kit';
2
+ import { VAppLayout, VStackRoot, useInjectTheme } from '@fastkit/vue-kit';
7
3
 
8
4
  export const VApp = defineComponent({
9
5
  name: 'VApp',
@@ -11,7 +7,11 @@ export const VApp = defineComponent({
11
7
  useInjectTheme();
12
8
 
13
9
  return () => {
14
- return <VStackRoot>{renderSlotOrEmpty(ctx.slots, 'default')}</VStackRoot>;
10
+ return (
11
+ <VStackRoot>
12
+ <VAppLayout v-slots={ctx.slots} />
13
+ </VStackRoot>
14
+ );
15
15
  };
16
16
  },
17
17
  });
@@ -21,7 +21,7 @@ import { VCheckbox } from '../VCheckbox';
21
21
  import { VIcon, resolveRawIconProp } from '../VIcon';
22
22
  import { VProgressCircular } from '../loading';
23
23
  import { resizeDirectiveArgument, VNodeChildOrSlot } from '@fastkit/vue-utils';
24
- import { VAppLayoutControl } from '@fastkit/vue-app-layout';
24
+ import { VueAppLayout } from '@fastkit/vue-app-layout';
25
25
  import { VPaper } from '../VPaper';
26
26
 
27
27
  export type DataTableHeaderAlign = 'left' | 'center' | 'right';
@@ -254,7 +254,7 @@ export const VDataTable = defineComponent({
254
254
  },
255
255
  ]);
256
256
 
257
- const layout = VAppLayoutControl.use();
257
+ const layout = VueAppLayout.use();
258
258
 
259
259
  const bodyInnerStylesRef = computed<CSSProperties | undefined>(() => {
260
260
  if (!bootedRef.value) return;
@@ -1,7 +1,4 @@
1
1
  .v-drawer-layout {
2
- // display: flex;
3
- // flex-direction: column;
4
- // align-items: stretch;
5
2
  display: block;
6
3
  width: 100%;
7
4
  height: 100%;
@@ -16,10 +13,10 @@
16
13
 
17
14
  &__header {
18
15
  display: flex;
19
- flex: 0 0 var(--v-app-layout-vertial-fixed-height);
16
+ flex: 0 0 var(--val-topToolbar-height);
20
17
  align-items: center;
21
18
  justify-content: center;
22
- height: var(--v-app-layout-vertial-fixed-height);
19
+ height: var(--val-topToolbar-height);
23
20
  }
24
21
 
25
22
  &__body {
@@ -37,7 +37,7 @@ import { VIcon } from '../VIcon';
37
37
  import { VMenu } from '../kits';
38
38
  import { VOptionGroup } from '../VOptionGroup';
39
39
  import { VOption } from '../VOption';
40
- import { VButton } from '..';
40
+ import { VButton } from '../VButton';
41
41
  import { VMenuControl } from '@fastkit/vue-stack';
42
42
 
43
43
  export const ARROW_KEY_TYPES = useKeyboard.Key(['ArrowUp', 'ArrowDown']);
package/src/plugin.tsx CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  VuiInjectionKey,
8
8
  } from './service';
9
9
  import {
10
+ installVueAppLayout,
10
11
  installVueStackPlugin,
11
12
  VueStackServiceOptions,
12
13
  VueColorSchemePlugin,
@@ -77,6 +78,8 @@ export class VuiPlugin {
77
78
  ...stack,
78
79
  });
79
80
 
81
+ installVueAppLayout(app);
82
+
80
83
  // Vui
81
84
  const $vui = new VuiService(opts, app.config.globalProperties.$vstack);
82
85
  app.provide(VuiInjectionKey, $vui);