@opentiny/vue-tooltip
Advanced tools
Comparing version 3.9.1 to 3.10.0
273
lib/index.js
@@ -15,3 +15,3 @@ function _extends() { | ||
} | ||
import { defineComponent, $prefix, $props, $setup } from "@opentiny/vue-common"; | ||
import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common"; | ||
import PcTemplate from "./pc.js"; | ||
@@ -28,139 +28,140 @@ import MobileFirstTemplate from "./mobile-first.js"; | ||
}; | ||
var tooltipProps = _extends({}, $props, { | ||
adjustArrow: { | ||
type: Boolean, | ||
default: function _default() { | ||
return false; | ||
} | ||
}, | ||
appendToBody: { | ||
type: Boolean, | ||
default: function _default2() { | ||
return true; | ||
} | ||
}, | ||
arrowOffset: { | ||
type: Number, | ||
default: function _default3() { | ||
return 0; | ||
} | ||
}, | ||
boundariesPadding: { | ||
type: Number, | ||
default: function _default4() { | ||
return 5; | ||
} | ||
}, | ||
content: { | ||
type: String | ||
}, | ||
disabled: { | ||
type: Boolean | ||
}, | ||
enterable: { | ||
type: Boolean, | ||
default: function _default5() { | ||
return true; | ||
} | ||
}, | ||
hideAfter: { | ||
type: Number, | ||
default: function _default6() { | ||
return 0; | ||
} | ||
}, | ||
manual: { | ||
type: Boolean | ||
}, | ||
modelValue: { | ||
type: Boolean | ||
}, | ||
offset: { | ||
default: function _default7() { | ||
return 0; | ||
} | ||
}, | ||
effect: { | ||
type: String, | ||
default: function _default8() { | ||
return "dark"; | ||
} | ||
}, | ||
openDelay: { | ||
type: Number, | ||
default: function _default9() { | ||
return 0; | ||
} | ||
}, | ||
closeDelay: { | ||
type: Number, | ||
default: function _default10() { | ||
return 100; | ||
} | ||
}, | ||
placement: { | ||
type: String, | ||
default: function _default11() { | ||
return "bottom"; | ||
} | ||
}, | ||
popper: {}, | ||
popperClass: { | ||
type: String | ||
}, | ||
popperOptions: { | ||
default: function _default12() { | ||
return { | ||
gpuAcceleration: false, | ||
boundariesPadding: 10 | ||
}; | ||
} | ||
}, | ||
pre: { | ||
type: Boolean | ||
}, | ||
reference: {}, | ||
renderContent: { | ||
type: Function | ||
}, | ||
tabindex: { | ||
type: Number, | ||
default: function _default13() { | ||
return 0; | ||
} | ||
}, | ||
transformOrigin: { | ||
type: [Boolean, String], | ||
default: function _default14() { | ||
return true; | ||
} | ||
}, | ||
transition: { | ||
type: String, | ||
default: function _default15() { | ||
return "tiny-fade-in-linear"; | ||
} | ||
}, | ||
type: { | ||
type: String, | ||
validator: function validator(value) { | ||
return Boolean(~["normal", "warning", "error", "info", "success"].indexOf(value)); | ||
} | ||
}, | ||
visibleArrow: { | ||
type: Boolean, | ||
default: function _default16() { | ||
return true; | ||
} | ||
}, | ||
zIndex: { | ||
type: String, | ||
default: function _default17() { | ||
return "next"; | ||
} | ||
} | ||
}); | ||
var Tooltip = defineComponent({ | ||
name: $prefix + "Tooltip", | ||
componentName: "Tooltip", | ||
props: _extends({}, $props, { | ||
adjustArrow: { | ||
type: Boolean, | ||
default: function _default() { | ||
return false; | ||
} | ||
}, | ||
appendToBody: { | ||
type: Boolean, | ||
default: function _default2() { | ||
return true; | ||
} | ||
}, | ||
arrowOffset: { | ||
type: Number, | ||
default: function _default3() { | ||
return 0; | ||
} | ||
}, | ||
boundariesPadding: { | ||
type: Number, | ||
default: function _default4() { | ||
return 5; | ||
} | ||
}, | ||
content: { | ||
type: String | ||
}, | ||
disabled: { | ||
type: Boolean | ||
}, | ||
enterable: { | ||
type: Boolean, | ||
default: function _default5() { | ||
return true; | ||
} | ||
}, | ||
hideAfter: { | ||
type: Number, | ||
default: function _default6() { | ||
return 0; | ||
} | ||
}, | ||
manual: { | ||
type: Boolean | ||
}, | ||
modelValue: { | ||
type: Boolean | ||
}, | ||
offset: { | ||
default: function _default7() { | ||
return 0; | ||
} | ||
}, | ||
effect: { | ||
type: String, | ||
default: function _default8() { | ||
return "dark"; | ||
} | ||
}, | ||
openDelay: { | ||
type: Number, | ||
default: function _default9() { | ||
return 0; | ||
} | ||
}, | ||
closeDelay: { | ||
type: Number, | ||
default: function _default10() { | ||
return 100; | ||
} | ||
}, | ||
placement: { | ||
type: String, | ||
default: function _default11() { | ||
return "bottom"; | ||
} | ||
}, | ||
popper: {}, | ||
popperClass: { | ||
type: String | ||
}, | ||
popperOptions: { | ||
default: function _default12() { | ||
return { | ||
gpuAcceleration: false, | ||
boundariesPadding: 10 | ||
}; | ||
} | ||
}, | ||
pre: { | ||
type: Boolean | ||
}, | ||
reference: {}, | ||
renderContent: { | ||
type: Function | ||
}, | ||
tabindex: { | ||
type: Number, | ||
default: function _default13() { | ||
return 0; | ||
} | ||
}, | ||
transformOrigin: { | ||
type: [Boolean, String], | ||
default: function _default14() { | ||
return true; | ||
} | ||
}, | ||
transition: { | ||
type: String, | ||
default: function _default15() { | ||
return "tiny-fade-in-linear"; | ||
} | ||
}, | ||
type: { | ||
type: String, | ||
validator: function validator(value) { | ||
return Boolean(~["normal", "warning", "error", "info", "success"].indexOf(value)); | ||
} | ||
}, | ||
visibleArrow: { | ||
type: Boolean, | ||
default: function _default16() { | ||
return true; | ||
} | ||
}, | ||
zIndex: { | ||
type: String, | ||
default: function _default17() { | ||
return "next"; | ||
} | ||
} | ||
}), | ||
props: tooltipProps, | ||
setup: function setup(props, context) { | ||
@@ -174,3 +175,3 @@ return $setup({ | ||
}); | ||
var version = "3.9.0"; | ||
var version = "3.10.0"; | ||
Tooltip.model = { | ||
@@ -177,0 +178,0 @@ prop: "modelValue", |
@@ -212,3 +212,6 @@ import { withDirectives, createVNode, vShow } from "vue"; | ||
"appendToBody": _this.appendToBody, | ||
"class": ["tiny-tooltip", "tiny-tooltip__popper", typeClass, _this.popperClass], | ||
"class": ["tiny-tooltip", "tiny-tooltip__popper", typeClass, _this.popperClass, { | ||
"tiny-tooltip__show-tips": _this.state.showContent | ||
}], | ||
"style": "max-width:" + _this.state.tipsMaxWidth + "px", | ||
"role": "tooltip", | ||
@@ -215,0 +218,0 @@ "aria-hidden": _this.disabled || !_this.state.showPopper ? "true" : "false", |
{ | ||
"name": "@opentiny/vue-tooltip", | ||
"version": "3.9.1", | ||
"version": "3.10.0", | ||
"description": "", | ||
@@ -8,5 +8,6 @@ "main": "./lib/index.js", | ||
"sideEffects": false, | ||
"type": "module", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.9.0", | ||
"@opentiny/vue-common": "~3.9.0" | ||
"@opentiny/vue-renderless": "~3.10.0", | ||
"@opentiny/vue-common": "~3.10.0" | ||
}, | ||
@@ -13,0 +14,0 @@ "license": "MIT", |
@@ -0,1 +1,105 @@ | ||
export declare const tooltipProps: { | ||
adjustArrow: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
appendToBody: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
arrowOffset: { | ||
type: NumberConstructor; | ||
default: () => number; | ||
}; | ||
boundariesPadding: { | ||
type: NumberConstructor; | ||
default: () => number; | ||
}; | ||
content: { | ||
type: StringConstructor; | ||
}; | ||
disabled: { | ||
type: BooleanConstructor; | ||
}; | ||
enterable: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
hideAfter: { | ||
type: NumberConstructor; | ||
default: () => number; | ||
}; | ||
manual: { | ||
type: BooleanConstructor; | ||
}; | ||
modelValue: { | ||
type: BooleanConstructor; | ||
}; | ||
offset: { | ||
default: () => number; | ||
}; | ||
effect: { | ||
type: StringConstructor; | ||
default: () => string; | ||
}; | ||
openDelay: { | ||
type: NumberConstructor; | ||
default: () => number; | ||
}; | ||
closeDelay: { | ||
type: NumberConstructor; | ||
default: () => number; | ||
}; | ||
placement: { | ||
type: StringConstructor; | ||
default: () => string; | ||
}; | ||
popper: {}; | ||
popperClass: { | ||
type: StringConstructor; | ||
}; | ||
popperOptions: { | ||
default: () => { | ||
gpuAcceleration: boolean; | ||
boundariesPadding: number; | ||
}; | ||
}; | ||
pre: { | ||
type: BooleanConstructor; | ||
}; | ||
reference: {}; | ||
renderContent: { | ||
type: FunctionConstructor; | ||
}; | ||
tabindex: { | ||
type: NumberConstructor; | ||
default: () => number; | ||
}; | ||
transformOrigin: { | ||
type: (StringConstructor | BooleanConstructor)[]; | ||
default: () => boolean; | ||
}; | ||
transition: { | ||
type: StringConstructor; | ||
default: () => string; | ||
}; | ||
type: { | ||
type: StringConstructor; | ||
validator: (value: string) => boolean; | ||
}; | ||
visibleArrow: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
zIndex: { | ||
type: StringConstructor; | ||
default: () => string; | ||
}; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (ObjectConstructor | FunctionConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}; | ||
declare const _default: import("@vue/runtime-core").DefineComponent<{ | ||
@@ -104,5 +208,5 @@ adjustArrow: { | ||
tiny_chart_theme: ObjectConstructor; | ||
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { | ||
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, { | ||
[key: string]: any; | ||
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
adjustArrow: { | ||
@@ -211,17 +315,13 @@ type: BooleanConstructor; | ||
}>>, { | ||
pre: boolean; | ||
transition: string; | ||
disabled: boolean; | ||
tiny_mode_root: boolean; | ||
effect: string; | ||
adjustArrow: boolean; | ||
appendToBody: boolean; | ||
arrowOffset: number; | ||
boundariesPadding: number; | ||
enterable: boolean; | ||
hideAfter: number; | ||
manual: boolean; | ||
modelValue: boolean; | ||
tabindex: number; | ||
zIndex: string; | ||
offset: number; | ||
openDelay: number; | ||
closeDelay: number; | ||
placement: string; | ||
manual: boolean; | ||
popperOptions: { | ||
@@ -231,9 +331,13 @@ gpuAcceleration: boolean; | ||
}; | ||
pre: boolean; | ||
tabindex: number; | ||
transformOrigin: string | boolean; | ||
transition: string; | ||
appendToBody: boolean; | ||
arrowOffset: number; | ||
boundariesPadding: number; | ||
closeDelay: number; | ||
openDelay: number; | ||
visibleArrow: boolean; | ||
zIndex: string; | ||
}>; | ||
adjustArrow: boolean; | ||
enterable: boolean; | ||
hideAfter: number; | ||
}, {}>; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>; | ||
export default _sfc_main; | ||
declare const _default: (props: Record<string, any> & {}) => any; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<{ | ||
declare const _default: import("@vue/runtime-core").DefineComponent<{ | ||
visible: { | ||
@@ -112,3 +112,3 @@ type: StringConstructor; | ||
m: (...cssClasses: any[]) => string; | ||
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
visible: { | ||
@@ -216,16 +216,13 @@ type: StringConstructor; | ||
}>>, { | ||
pre: boolean; | ||
transition: string; | ||
disabled: boolean; | ||
effect: string; | ||
adjustArrow: boolean; | ||
appendToBody: boolean; | ||
arrowOffset: number; | ||
boundariesPadding: number; | ||
enterable: boolean; | ||
hideAfter: number; | ||
manual: boolean; | ||
modelValue: boolean; | ||
visible: string; | ||
tabindex: number; | ||
zIndex: string; | ||
offset: number; | ||
openDelay: number; | ||
closeDelay: number; | ||
placement: string; | ||
manual: boolean; | ||
popperOptions: { | ||
@@ -235,10 +232,13 @@ gpuAcceleration: boolean; | ||
}; | ||
pre: boolean; | ||
tabindex: number; | ||
transformOrigin: string | boolean; | ||
transition: string; | ||
appendToBody: boolean; | ||
arrowOffset: number; | ||
boundariesPadding: number; | ||
closeDelay: number; | ||
openDelay: number; | ||
visibleArrow: boolean; | ||
zIndex: string; | ||
visible: string; | ||
}>; | ||
export default _sfc_main; | ||
adjustArrow: boolean; | ||
enterable: boolean; | ||
hideAfter: number; | ||
}, {}>; | ||
export default _default; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39197
11
1384
Yes
+ Added@opentiny/vue-common@3.10.0(transitive)
+ Added@opentiny/vue-locale@3.10.0(transitive)
+ Added@opentiny/vue-renderless@3.10.7(transitive)
+ Added@opentiny/vue-theme@3.10.4(transitive)
+ Added@opentiny/vue-theme-mobile@3.10.1(transitive)
- Removed@opentiny/vue-common@3.9.0(transitive)
- Removed@opentiny/vue-locale@3.9.0(transitive)
- Removed@opentiny/vue-renderless@3.9.3(transitive)
- Removed@opentiny/vue-theme@3.9.4(transitive)
- Removed@opentiny/vue-theme-mobile@3.9.0(transitive)
Updated@opentiny/vue-common@~3.10.0