@opentiny/vue-tooltip
Advanced tools
Comparing version 3.1.0-alpha.0 to 3.4.7
@@ -20,2 +20,11 @@ import { withDirectives, createVNode, vShow } from 'vue'; | ||
props: { | ||
visible: { | ||
type: String, | ||
default: function _default() { | ||
return 'always'; | ||
}, | ||
validator: function validator(value) { | ||
return ['always', 'auto'].includes(value); | ||
} | ||
}, | ||
adjustArrow: { | ||
@@ -224,42 +233,27 @@ type: Boolean, | ||
}); | ||
var stringifyBindClass = function stringifyBindClass(bindClass, removeClassRE) { | ||
var trimStr = function trimStr(str) { | ||
return str ? str.trim() : str; | ||
}; | ||
var stringifyClassArr = function stringifyClassArr(classArr) { | ||
var arr = []; | ||
classArr.forEach(function (item) { | ||
if (item && typeof item === 'string') { | ||
arr.push(trimStr(item)); | ||
} else if (item && _typeof(item) === 'object') { | ||
arr.push(stringifyClassObj(item)); | ||
} | ||
}); | ||
return arr.join(' '); | ||
}; | ||
var stringifyClassObj = function stringifyClassObj(classObj) { | ||
var arr = []; | ||
Object.keys(classObj).forEach(function (key) { | ||
if (classObj[key]) { | ||
arr.push(key); | ||
} | ||
}); | ||
return arr.join(' '); | ||
}; | ||
var stringifyClassObj = function stringifyClassObj(classObj) { | ||
return Object.keys(classObj).filter(function (key) { | ||
return classObj[key]; | ||
}).join(' '); | ||
}; | ||
var stringifyClassArr = function stringifyClassArr(classArr) { | ||
return classArr.filter(function (item) { | ||
return item; | ||
}).map(function (item) { | ||
return typeof item === 'string' ? item.trim() : _typeof(item) === 'object' ? stringifyClassObj(item) : ''; | ||
}).join(' '); | ||
}; | ||
var addTooltipClass = function addTooltipClass(bindClass) { | ||
var className = ''; | ||
if (bindClass) { | ||
if (typeof bindClass === 'string') { | ||
className = className + trimStr(bindClass); | ||
className = bindClass.trim(); | ||
} else if (Array.isArray(bindClass)) { | ||
className = className + stringifyClassArr(bindClass); | ||
className = stringifyClassArr(bindClass); | ||
} else if (_typeof(bindClass) === 'object') { | ||
className = className + stringifyClassObj(bindClass); | ||
className = stringifyClassObj(bindClass); | ||
} | ||
} | ||
return trimStr(className.replace(removeClassRE, '')); | ||
return 'tiny-tooltip ' + className.replace(/\btiny-tooltip\b/g, '').trim(); | ||
}; | ||
var addTooltipClass = function addTooltipClass(bindClass) { | ||
var className = stringifyBindClass(bindClass, /\btiny-tooltip\b/g); | ||
return 'tiny-tooltip ' + className; | ||
}; | ||
var getFirstElement = function getFirstElement() { | ||
@@ -292,4 +286,4 @@ var slots = _this.slots.default && _this.slots.default(); | ||
}; | ||
script.version = '3.1.0-alpha.0'; | ||
script.version = '3.4.7'; | ||
export { script as default }; |
{ | ||
"name": "@opentiny/vue-tooltip", | ||
"version": "3.1.0-alpha.0", | ||
"version": "3.4.7", | ||
"description": "", | ||
@@ -12,10 +12,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.1.0-alpha.0", | ||
"@opentiny/vue-common": "~3.1.0-alpha.0", | ||
"@opentiny/vue-icon": "~3.1.0-alpha.0", | ||
"@opentiny/vue-theme": "~3.1.0-alpha.0", | ||
"@opentiny/vue-theme-mobile": "~3.1.0-alpha.0" | ||
"@opentiny/vue-renderless": "~3.4.0", | ||
"@opentiny/vue-common": "~3.4.7", | ||
"@opentiny/vue-icon": "~3.4.7", | ||
"@opentiny/vue-theme": "~3.4.0", | ||
"@opentiny/vue-theme-mobile": "~3.4.0" | ||
}, | ||
"license": "MIT", | ||
"types": "index.d.ts", | ||
"sideEffects": false | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
14427
4
521
1
+ Added@babel/runtime@7.18.3(transitive)
+ Added@opentiny/vue-common@3.4.7(transitive)
+ Added@opentiny/vue-icon@3.4.8(transitive)
+ Added@opentiny/vue-locale@3.4.7(transitive)
+ Added@opentiny/vue-renderless@3.4.7(transitive)
+ Added@opentiny/vue-theme@3.4.7(transitive)
+ Added@opentiny/vue-theme-mobile@3.4.7(transitive)
+ Addedregenerator-runtime@0.13.11(transitive)
- Removed@babel/runtime@7.25.6(transitive)
- Removed@opentiny/vue-common@3.1.0-alpha.0(transitive)
- Removed@opentiny/vue-icon@3.1.0-alpha.0(transitive)
- Removed@opentiny/vue-locale@3.1.0-alpha.0(transitive)
- Removed@opentiny/vue-renderless@3.1.0-alpha.0(transitive)
- Removed@opentiny/vue-theme@3.1.0-alpha.1(transitive)
- Removed@opentiny/vue-theme-mobile@3.1.0-alpha.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
Updated@opentiny/vue-common@~3.4.7
Updated@opentiny/vue-icon@~3.4.7
Updated@opentiny/vue-theme@~3.4.0