vue3-apexcharts
Advanced tools
Comparing version 1.4.1 to 1.4.4
@@ -90,87 +90,2 @@ module.exports = | ||
/***/ "8875": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller | ||
// MIT license | ||
// source: https://github.com/amiller-gh/currentScript-polyfill | ||
// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505 | ||
(function (root, factory) { | ||
if (true) { | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), | ||
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? | ||
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
} else {} | ||
}(typeof self !== 'undefined' ? self : this, function () { | ||
function getCurrentScript () { | ||
var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript') | ||
// for chrome | ||
if (!descriptor && 'currentScript' in document && document.currentScript) { | ||
return document.currentScript | ||
} | ||
// for other browsers with native support for currentScript | ||
if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) { | ||
return document.currentScript | ||
} | ||
// IE 8-10 support script readyState | ||
// IE 11+ & Firefox support stack trace | ||
try { | ||
throw new Error(); | ||
} | ||
catch (err) { | ||
// Find the second match for the "at" string to get file src url from stack. | ||
var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig, | ||
ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig, | ||
stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack), | ||
scriptLocation = (stackDetails && stackDetails[1]) || false, | ||
line = (stackDetails && stackDetails[2]) || false, | ||
currentLocation = document.location.href.replace(document.location.hash, ''), | ||
pageSource, | ||
inlineScriptSourceRegExp, | ||
inlineScriptSource, | ||
scripts = document.getElementsByTagName('script'); // Live NodeList collection | ||
if (scriptLocation === currentLocation) { | ||
pageSource = document.documentElement.outerHTML; | ||
inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i'); | ||
inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim(); | ||
} | ||
for (var i = 0; i < scripts.length; i++) { | ||
// If ready state is interactive, return the script tag | ||
if (scripts[i].readyState === 'interactive') { | ||
return scripts[i]; | ||
} | ||
// If src matches, return the script tag | ||
if (scripts[i].src === scriptLocation) { | ||
return scripts[i]; | ||
} | ||
// If inline source matches, return the script tag | ||
if ( | ||
scriptLocation === currentLocation && | ||
scripts[i].innerHTML && | ||
scripts[i].innerHTML.trim() === inlineScriptSource | ||
) { | ||
return scripts[i]; | ||
} | ||
} | ||
// If no match, return null | ||
return null; | ||
} | ||
}; | ||
return getCurrentScript | ||
})); | ||
/***/ }), | ||
/***/ "8bbf": | ||
@@ -202,12 +117,4 @@ /***/ (function(module, exports) { | ||
var currentScript = window.document.currentScript | ||
if (true) { | ||
var getCurrentScript = __webpack_require__("8875") | ||
currentScript = getCurrentScript() | ||
if (false) { var getCurrentScript; } | ||
// for backward compatibility, because previously we directly included the polyfill | ||
if (!('currentScript' in document)) { | ||
Object.defineProperty(document, 'currentScript', { get: getCurrentScript }) | ||
} | ||
} | ||
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/) | ||
@@ -243,2 +150,3 @@ if (src) { | ||
"mouseMove", | ||
"mouseLeave", | ||
"legendClick", | ||
@@ -254,3 +162,3 @@ "markerClick", | ||
"scrolled", | ||
"scrolled" | ||
"brushScrolled" | ||
]; | ||
@@ -338,2 +246,6 @@ | ||
await Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(); | ||
if (chart.value) { | ||
return; | ||
} | ||
@@ -411,4 +323,4 @@ const newOptions = { | ||
const dataURI = () => { | ||
return chart.value.dataURI(); | ||
const dataURI = options => { | ||
return chart.value.dataURI(options); | ||
}; | ||
@@ -509,2 +421,3 @@ | ||
clearAnnotations, | ||
setLocale, | ||
dataURI | ||
@@ -516,3 +429,3 @@ }; | ||
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])("div", { | ||
class: "vue-apexcharts", | ||
class: "vue-apexcharts" | ||
}); | ||
@@ -519,0 +432,0 @@ } |
{ | ||
"name": "vue3-apexcharts", | ||
"version": "1.4.1", | ||
"version": "1.4.4", | ||
"main": "./dist/vue3-apexcharts.common.js", | ||
@@ -47,3 +47,3 @@ "private": false, | ||
"eslint-plugin-vue": "^7.0.0-0", | ||
"apexcharts": "^3.26.1", | ||
"apexcharts": "^3.41.0", | ||
"typescript": "~3.9.3", | ||
@@ -54,2 +54,2 @@ "vue": "^3.0.0", | ||
} | ||
} | ||
} |
@@ -25,2 +25,3 @@ /* eslint-disable */ | ||
"mouseMove", | ||
"mouseLeave", | ||
"legendClick", | ||
@@ -36,3 +37,3 @@ "markerClick", | ||
"scrolled", | ||
"scrolled" | ||
"brushScrolled" | ||
]; | ||
@@ -120,2 +121,6 @@ | ||
await nextTick(); | ||
if (chart.value) { | ||
return; | ||
} | ||
@@ -193,4 +198,4 @@ const newOptions = { | ||
const dataURI = () => { | ||
return chart.value.dataURI(); | ||
const dataURI = options => { | ||
return chart.value.dataURI(options); | ||
}; | ||
@@ -291,2 +296,3 @@ | ||
clearAnnotations, | ||
setLocale, | ||
dataURI | ||
@@ -298,3 +304,3 @@ }; | ||
return h("div", { | ||
class: "vue-apexcharts", | ||
class: "vue-apexcharts" | ||
}); | ||
@@ -301,0 +307,0 @@ } |
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
34963
699