@volverjs/ui-vue 0.0.10-beta.25 → 0.0.10-beta.26
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/auto-imports.d.ts +1 -0
- package/dist/components/VvAccordion/VvAccordion.es.js +14 -12
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +91 -38
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +13 -2
- package/dist/components/VvAccordionGroup/index.d.ts +6 -4
- package/dist/components/VvAction/VvAction.es.js +14 -12
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +2 -11
- package/dist/components/VvAction/index.d.ts +1 -5
- package/dist/components/VvAlert/VvAlert.es.js +14 -12
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +14 -12
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAvatar/VvAvatar.es.js +14 -12
- package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +14 -12
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.es.js +14 -12
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +14 -12
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +1 -1
- package/dist/components/VvButton/VvButton.es.js +14 -12
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +2 -19
- package/dist/components/VvButton/index.d.ts +1 -5
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +14 -12
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvCard/VvCard.es.js +14 -12
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +14 -12
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +14 -12
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +58 -34
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +2 -8
- package/dist/components/VvCombobox/index.d.ts +9 -2
- package/dist/components/VvDialog/VvDialog.es.js +14 -12
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +24 -16
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +2 -19
- package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +13 -1
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +9 -0
- package/dist/components/VvDropdown/index.d.ts +37 -0
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +64 -15
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +322 -1
- package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -1
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +14 -12
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +131 -76
- package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.es.js +14 -12
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputFile/index.d.ts +5 -5
- package/dist/components/VvInputText/VvInputText.es.js +979 -107
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +44 -1
- package/dist/components/VvInputText/index.d.ts +28 -0
- package/dist/components/VvNav/VvNav.es.js +14 -12
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +1 -1
- package/dist/components/VvNavItem/VvNavItem.es.js +14 -12
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.es.js +14 -12
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +14 -12
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +14 -12
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.es.js +14 -12
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvTab/VvTab.es.js +14 -12
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +1 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +14 -12
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTooltip/VvTooltip.es.js +14 -12
- package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
- package/dist/components/index.es.js +357 -144
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/dropdown/useInjectDropdown.d.ts +3 -23
- package/dist/composables/dropdown/useProvideDropdown.d.ts +2 -3
- package/dist/composables/usePersistence.d.ts +3 -0
- package/dist/constants.d.ts +24 -21
- package/dist/directives/index.es.js +14 -12
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-tooltip.es.js +14 -12
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/props/index.d.ts +11 -11
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +27 -4
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +176 -29
- package/dist/stories/Button/Button.settings.d.ts +0 -1
- package/dist/types/nav.d.ts +1 -2
- package/package.json +1 -1
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +13 -19
- package/src/components/VvAccordionGroup/index.ts +2 -5
- package/src/components/VvCombobox/VvCombobox.vue +2 -0
- package/src/components/VvDropdown/VvDropdown.vue +11 -2
- package/src/components/VvDropdown/VvDropdownItem.vue +4 -1
- package/src/components/VvDropdown/VvDropdownOption.vue +3 -21
- package/src/components/VvDropdown/index.ts +35 -1
- package/src/components/VvInputText/VvInputText.vue +98 -3
- package/src/components/VvInputText/index.ts +24 -1
- package/src/composables/dropdown/useProvideDropdown.ts +4 -4
- package/src/composables/usePersistence.ts +76 -0
- package/src/constants.ts +23 -18
- package/src/props/index.ts +12 -7
- package/src/stories/Button/Button.settings.ts +1 -4
- package/src/types/nav.ts +1 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { DropdownRole, DropdownItemRole } from '../../constants';
|
|
2
|
+
import { type DropdownItemState, DropdownRole, DropdownItemRole } from '../../constants';
|
|
3
3
|
/**
|
|
4
4
|
* Share the dropdown reference and the event bus with all its children.
|
|
5
5
|
* @param {Ref<HTMLElement | null>} reference the dropdown reference
|
|
@@ -25,9 +25,8 @@ export declare function useProvideDropdownTrigger({ reference, id, expanded, ari
|
|
|
25
25
|
* Share the dropdown item role with all its children.
|
|
26
26
|
* @param {Ref<string>} role the dropdown item role
|
|
27
27
|
*/
|
|
28
|
-
export declare function useProvideDropdownItem({ role,
|
|
28
|
+
export declare function useProvideDropdownItem({ role, ...others }: Omit<DropdownItemState, 'role'> & {
|
|
29
29
|
role: Ref<`${DropdownRole}`>;
|
|
30
|
-
expanded: Ref<boolean>;
|
|
31
30
|
}): {
|
|
32
31
|
itemRole: globalThis.ComputedRef<DropdownItemRole>;
|
|
33
32
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="./auto-imports" />
|
|
2
|
+
import { StorageType } from '@/constants';
|
|
3
|
+
export declare const usePersistence: <T>(storageKey: Ref<string | undefined> | undefined, storageType?: Ref<`${StorageType}`> | `${StorageType}`, defaultValue?: T | undefined) => globalThis.WritableComputedRef<T | undefined>;
|
package/dist/constants.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ import type { Volver } from './Volver';
|
|
|
4
4
|
import type { AlertModifiers } from './types/alert';
|
|
5
5
|
import type { AccordionGroupState, InputGroupState, ButtonGroupState, AlertGroupState } from './types';
|
|
6
6
|
export declare const DEFAULT_ICONIFY_PROVIDER = "vv";
|
|
7
|
+
export declare enum StorageType {
|
|
8
|
+
local = "local",
|
|
9
|
+
session = "session"
|
|
10
|
+
}
|
|
7
11
|
export declare enum Strategy {
|
|
8
12
|
absolute = "absolute",
|
|
9
13
|
fixed = "fixed"
|
|
@@ -52,40 +56,39 @@ export declare enum DropdownItemRole {
|
|
|
52
56
|
option = "option",
|
|
53
57
|
presentation = "presentation"
|
|
54
58
|
}
|
|
55
|
-
export declare enum AnchorTarget {
|
|
56
|
-
_blank = "_blank",
|
|
57
|
-
_self = "_self",
|
|
58
|
-
_parent = "_parent",
|
|
59
|
-
_top = "_top"
|
|
60
|
-
}
|
|
61
59
|
export declare const INJECTION_KEY_VOLVER: InjectionKey<Volver>;
|
|
62
60
|
export declare const INJECTION_KEY_BUTTON_GROUP: InjectionKey<ButtonGroupState>;
|
|
63
61
|
export declare const INJECTION_KEY_RADIO_GROUP: InjectionKey<InputGroupState>;
|
|
64
62
|
export declare const INJECTION_KEY_CHECK_GROUP: InjectionKey<InputGroupState>;
|
|
65
63
|
export declare const INJECTION_KEY_ACCORDION_GROUP: InjectionKey<AccordionGroupState>;
|
|
66
|
-
export
|
|
67
|
-
id?: Ref<string | number
|
|
68
|
-
reference?: Ref<HTMLElement | null
|
|
64
|
+
export type DropdownTriggerState = {
|
|
65
|
+
id?: Ref<string | number>;
|
|
66
|
+
reference?: Ref<HTMLElement | null>;
|
|
69
67
|
bus?: Emitter<{
|
|
70
68
|
click: Event;
|
|
71
69
|
mouseover: Event;
|
|
72
70
|
mouseleave: Event;
|
|
73
|
-
}
|
|
74
|
-
expanded?: Ref<boolean
|
|
71
|
+
}>;
|
|
72
|
+
expanded?: Ref<boolean>;
|
|
75
73
|
aria?: Ref<{
|
|
76
74
|
'aria-controls': string;
|
|
77
75
|
'aria-haspopup': boolean;
|
|
78
76
|
'aria-expanded': boolean;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
export declare const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
}>;
|
|
78
|
+
};
|
|
79
|
+
export declare const INJECTION_KEY_DROPDOWN_TRIGGER: InjectionKey<DropdownTriggerState>;
|
|
80
|
+
export type DropdownItemState = {
|
|
81
|
+
role?: Ref<`${DropdownItemRole}`>;
|
|
82
|
+
expanded?: Ref<boolean>;
|
|
83
|
+
focused?: Ref<boolean>;
|
|
84
|
+
hovered?: Ref<boolean>;
|
|
85
|
+
};
|
|
86
|
+
export declare const INJECTION_KEY_DROPDOWN_ITEM: InjectionKey<DropdownItemState>;
|
|
87
|
+
export type DropdownActionState = {
|
|
88
|
+
role?: Ref<`${ActionRoles}`>;
|
|
89
|
+
expanded?: Ref<boolean>;
|
|
90
|
+
};
|
|
91
|
+
export declare const INJECTION_KEY_DROPDOWN_ACTION: InjectionKey<DropdownActionState>;
|
|
89
92
|
export declare const INJECTION_KEY_ALERT_GROUP: InjectionKey<AlertGroupState>;
|
|
90
93
|
export declare const DEFAULT_ALERT_AUTO_CLOSE = 10000;
|
|
91
94
|
export declare const DEFAULT_ALERT_MODIFIERS = "info";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { computed, unref, defineComponent, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, createTextVNode, toDisplayString, h, render, ref } from "vue";
|
|
2
|
+
var StorageType = /* @__PURE__ */ ((StorageType2) => {
|
|
3
|
+
StorageType2["local"] = "local";
|
|
4
|
+
StorageType2["session"] = "session";
|
|
5
|
+
return StorageType2;
|
|
6
|
+
})(StorageType || {});
|
|
2
7
|
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
3
8
|
Strategy2["absolute"] = "absolute";
|
|
4
9
|
Strategy2["fixed"] = "fixed";
|
|
@@ -40,13 +45,6 @@ var ActionTag = /* @__PURE__ */ ((ActionTag2) => {
|
|
|
40
45
|
ActionTag2["button"] = "button";
|
|
41
46
|
return ActionTag2;
|
|
42
47
|
})(ActionTag || {});
|
|
43
|
-
var AnchorTarget = /* @__PURE__ */ ((AnchorTarget2) => {
|
|
44
|
-
AnchorTarget2["_blank"] = "_blank";
|
|
45
|
-
AnchorTarget2["_self"] = "_self";
|
|
46
|
-
AnchorTarget2["_parent"] = "_parent";
|
|
47
|
-
AnchorTarget2["_top"] = "_top";
|
|
48
|
-
return AnchorTarget2;
|
|
49
|
-
})(AnchorTarget || {});
|
|
50
48
|
const LinkProps = {
|
|
51
49
|
/**
|
|
52
50
|
* The router-link/nuxt-link property, if it is defined the button is rendered as a ruouter-link or nuxt-link.
|
|
@@ -62,11 +60,7 @@ const LinkProps = {
|
|
|
62
60
|
/**
|
|
63
61
|
* Anchor target
|
|
64
62
|
*/
|
|
65
|
-
target:
|
|
66
|
-
type: String,
|
|
67
|
-
default: void 0,
|
|
68
|
-
validator: (value) => Object.values(AnchorTarget).includes(value)
|
|
69
|
-
},
|
|
63
|
+
target: String,
|
|
70
64
|
/**
|
|
71
65
|
* Anchor rel
|
|
72
66
|
*/
|
|
@@ -271,6 +265,14 @@ const ModifiersProps = {
|
|
|
271
265
|
default: ActionTag.button
|
|
272
266
|
}
|
|
273
267
|
});
|
|
268
|
+
({
|
|
269
|
+
storageType: {
|
|
270
|
+
type: String,
|
|
271
|
+
default: StorageType.local,
|
|
272
|
+
validator: (value) => Object.values(StorageType).includes(value)
|
|
273
|
+
},
|
|
274
|
+
storageKey: String
|
|
275
|
+
});
|
|
274
276
|
const VvTooltipProps = {
|
|
275
277
|
...ModifiersProps,
|
|
276
278
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).directives={},e.vue)}(this,(function(e,t){"use strict";var o=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).directives={},e.vue)}(this,(function(e,t){"use strict";var o=(e=>(e.local="local",e.session="session",e))(o||{}),n=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(n||{}),l=(e=>(e.before="before",e.after="after",e))(l||{}),a=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(a||{}),i=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(i||{});Boolean,Boolean,Boolean,Boolean;const u={modifiers:{type:[String,Array],default:void 0}};l.before,n.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,a.button,i.button,o.local;const r={...u,position:{type:String,default:n.bottom},value:{type:String}};const s=t.defineComponent({__name:"VvTooltip",props:r,setup(e){const o=e,{modifiers:n}=t.toRefs(o),l=function(e,o,n){return t.computed((()=>{const l={[e]:!0},a="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return a&&Array.isArray(a)&&a.forEach((t=>{t&&(l[`${e}--${t}`]=!0)})),n&&Object.keys(n.value).forEach((o=>{l[`${e}--${o}`]=t.unref(n.value[o])})),l}))}("vv-tooltip",n,t.computed((()=>({[o.position]:!0}))));return(e,o)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(l)),role:"tooltip",inert:""},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.value),1)]))],2))}}),v=(()=>({beforeMount(e,o){const n=t.h(s,{value:o.value,position:o.arg});t.render(n,e)},updated(e,o){const n=t.h(s,{value:o.value,position:o.arg});t.render(n,e)}}))(),f={beforeUpdate(e,o){var n,l,a;const i=t.ref(0),u=t.ref(0),r={getBoundingClientRect:()=>({width:0,height:0,x:i.value,y:u.value,top:u.value,left:i.value,right:i.value,bottom:u.value})};(null==(n=o.value)?void 0:n.init)&&(null==(a=(l=o.value).init)||a.call(l,r)),e.addEventListener("contextmenu",(function(e){var t,n,l;if(null==(t=o.value)?void 0:t.show)return e.preventDefault(),i.value=e.clientX,u.value=e.clientY,null==(l=(n=o.value).show)||l.call(n),!1}),!1)}};e.vContextmenu=f,e.vTooltip=v,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { computed, unref, defineComponent, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, createTextVNode, toDisplayString, h, render } from "vue";
|
|
2
|
+
var StorageType = /* @__PURE__ */ ((StorageType2) => {
|
|
3
|
+
StorageType2["local"] = "local";
|
|
4
|
+
StorageType2["session"] = "session";
|
|
5
|
+
return StorageType2;
|
|
6
|
+
})(StorageType || {});
|
|
2
7
|
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
3
8
|
Strategy2["absolute"] = "absolute";
|
|
4
9
|
Strategy2["fixed"] = "fixed";
|
|
@@ -40,13 +45,6 @@ var ActionTag = /* @__PURE__ */ ((ActionTag2) => {
|
|
|
40
45
|
ActionTag2["button"] = "button";
|
|
41
46
|
return ActionTag2;
|
|
42
47
|
})(ActionTag || {});
|
|
43
|
-
var AnchorTarget = /* @__PURE__ */ ((AnchorTarget2) => {
|
|
44
|
-
AnchorTarget2["_blank"] = "_blank";
|
|
45
|
-
AnchorTarget2["_self"] = "_self";
|
|
46
|
-
AnchorTarget2["_parent"] = "_parent";
|
|
47
|
-
AnchorTarget2["_top"] = "_top";
|
|
48
|
-
return AnchorTarget2;
|
|
49
|
-
})(AnchorTarget || {});
|
|
50
48
|
const LinkProps = {
|
|
51
49
|
/**
|
|
52
50
|
* The router-link/nuxt-link property, if it is defined the button is rendered as a ruouter-link or nuxt-link.
|
|
@@ -62,11 +60,7 @@ const LinkProps = {
|
|
|
62
60
|
/**
|
|
63
61
|
* Anchor target
|
|
64
62
|
*/
|
|
65
|
-
target:
|
|
66
|
-
type: String,
|
|
67
|
-
default: void 0,
|
|
68
|
-
validator: (value) => Object.values(AnchorTarget).includes(value)
|
|
69
|
-
},
|
|
63
|
+
target: String,
|
|
70
64
|
/**
|
|
71
65
|
* Anchor rel
|
|
72
66
|
*/
|
|
@@ -271,6 +265,14 @@ const ModifiersProps = {
|
|
|
271
265
|
default: ActionTag.button
|
|
272
266
|
}
|
|
273
267
|
});
|
|
268
|
+
({
|
|
269
|
+
storageType: {
|
|
270
|
+
type: String,
|
|
271
|
+
default: StorageType.local,
|
|
272
|
+
validator: (value) => Object.values(StorageType).includes(value)
|
|
273
|
+
},
|
|
274
|
+
storageKey: String
|
|
275
|
+
});
|
|
274
276
|
const VvTooltipProps = {
|
|
275
277
|
...ModifiersProps,
|
|
276
278
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("vue")):"function"==typeof define&&define.amd?define(["vue"],o):(e="undefined"!=typeof globalThis?globalThis:e||self)["v-tooltip"]=o(e.vue)}(this,(function(e){"use strict";var o=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("vue")):"function"==typeof define&&define.amd?define(["vue"],o):(e="undefined"!=typeof globalThis?globalThis:e||self)["v-tooltip"]=o(e.vue)}(this,(function(e){"use strict";var o=(e=>(e.local="local",e.session="session",e))(o||{}),t=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(t||{}),n=(e=>(e.before="before",e.after="after",e))(n||{}),l=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(l||{}),r=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(r||{});Boolean,Boolean,Boolean,Boolean;const i={modifiers:{type:[String,Array],default:void 0}};n.before,t.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,l.button,r.button,o.local;const a={...i,position:{type:String,default:t.bottom},value:{type:String}};const u=e.defineComponent({__name:"VvTooltip",props:a,setup(o){const t=o,{modifiers:n}=e.toRefs(t),l=function(o,t,n){return e.computed((()=>{const l={[o]:!0},r="string"==typeof(null==t?void 0:t.value)?t.value.split(" "):null==t?void 0:t.value;return r&&Array.isArray(r)&&r.forEach((e=>{e&&(l[`${o}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((t=>{l[`${o}--${t}`]=e.unref(n.value[t])})),l}))}("vv-tooltip",n,e.computed((()=>({[t.position]:!0}))));return(o,t)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(l)),role:"tooltip",inert:""},[e.renderSlot(o.$slots,"default",{},(()=>[e.createTextVNode(e.toDisplayString(o.value),1)]))],2))}});return(()=>({beforeMount(o,t){const n=e.h(u,{value:t.value,position:t.arg});e.render(n,o)},updated(o,t){const n=e.h(u,{value:t.value,position:t.arg});e.render(n,o)}}))()}));
|
package/dist/icons.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const prefix$2 = "normal";
|
|
2
|
-
const lastModified$2 =
|
|
2
|
+
const lastModified$2 = 1706107389;
|
|
3
3
|
const icons$3 = {
|
|
4
4
|
add: {
|
|
5
5
|
body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M4 12h16m-8-8v16"/>'
|
|
@@ -614,7 +614,7 @@ const normal = {
|
|
|
614
614
|
height: height$1
|
|
615
615
|
};
|
|
616
616
|
const prefix$1 = "detailed";
|
|
617
|
-
const lastModified$1 =
|
|
617
|
+
const lastModified$1 = 1706107389;
|
|
618
618
|
const icons$2 = {
|
|
619
619
|
add: {
|
|
620
620
|
body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M4 15.999h24m-12-12v24"/>'
|
|
@@ -1227,7 +1227,7 @@ const detailed = {
|
|
|
1227
1227
|
height
|
|
1228
1228
|
};
|
|
1229
1229
|
const prefix = "simple";
|
|
1230
|
-
const lastModified =
|
|
1230
|
+
const lastModified = 1706107389;
|
|
1231
1231
|
const icons$1 = {
|
|
1232
1232
|
add: {
|
|
1233
1233
|
body: '<path fill="none" stroke="currentColor" stroke-linecap="round" d="M.5 8h15M8 .5v15"/>'
|