测试
This commit is contained in:
344
frontend/node_modules/vue-echarts/dist/csp/index.cjs.js
generated
vendored
Normal file
344
frontend/node_modules/vue-echarts/dist/csp/index.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,344 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var vueDemi = require('vue-demi');
|
||||
var core = require('echarts/core');
|
||||
var resizeDetector = require('resize-detector');
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
var __assign = function() {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
|
||||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
||||
var e = new Error(message);
|
||||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
||||
};
|
||||
|
||||
var METHOD_NAMES = [
|
||||
"getWidth",
|
||||
"getHeight",
|
||||
"getDom",
|
||||
"getOption",
|
||||
"resize",
|
||||
"dispatchAction",
|
||||
"convertToPixel",
|
||||
"convertFromPixel",
|
||||
"containPixel",
|
||||
"getDataURL",
|
||||
"getConnectedDataURL",
|
||||
"appendData",
|
||||
"clear",
|
||||
"isDisposed",
|
||||
"dispose"
|
||||
];
|
||||
function usePublicAPI(chart) {
|
||||
function makePublicMethod(name) {
|
||||
return function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
if (!chart.value) {
|
||||
throw new Error("ECharts is not initialized yet.");
|
||||
}
|
||||
return chart.value[name].apply(chart.value, args);
|
||||
};
|
||||
}
|
||||
function makePublicMethods() {
|
||||
var methods = Object.create(null);
|
||||
METHOD_NAMES.forEach(function (name) {
|
||||
methods[name] = makePublicMethod(name);
|
||||
});
|
||||
return methods;
|
||||
}
|
||||
return makePublicMethods();
|
||||
}
|
||||
|
||||
function useAutoresize(chart, autoresize, root) {
|
||||
var resizeListener = null;
|
||||
vueDemi.watch([root, chart, autoresize], function (_a, _, cleanup) {
|
||||
var root = _a[0], chart = _a[1], autoresize = _a[2];
|
||||
if (root && chart && autoresize) {
|
||||
var autoresizeOptions = autoresize === true ? {} : autoresize;
|
||||
var _b = autoresizeOptions.throttle, wait = _b === void 0 ? 100 : _b, onResize_1 = autoresizeOptions.onResize;
|
||||
var callback = function () {
|
||||
chart.resize();
|
||||
onResize_1 === null || onResize_1 === void 0 ? void 0 : onResize_1();
|
||||
};
|
||||
resizeListener = wait ? core.throttle(callback, wait) : callback;
|
||||
resizeDetector.addListener(root, resizeListener);
|
||||
}
|
||||
cleanup(function () {
|
||||
if (root && resizeListener) {
|
||||
resizeDetector.removeListener(root, resizeListener);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
var autoresizeProps = {
|
||||
autoresize: [Boolean, Object]
|
||||
};
|
||||
|
||||
var onRE = /^on[^a-z]/;
|
||||
var isOn = function (key) { return onRE.test(key); };
|
||||
function omitOn(attrs) {
|
||||
var result = {};
|
||||
for (var key in attrs) {
|
||||
if (!isOn(key)) {
|
||||
result[key] = attrs[key];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function unwrapInjected(injection, defaultValue) {
|
||||
var value = vueDemi.isRef(injection) ? vueDemi.unref(injection) : injection;
|
||||
if (value && typeof value === "object" && "value" in value) {
|
||||
return value.value || defaultValue;
|
||||
}
|
||||
return value || defaultValue;
|
||||
}
|
||||
|
||||
var LOADING_OPTIONS_KEY = "ecLoadingOptions";
|
||||
function useLoading(chart, loading, loadingOptions) {
|
||||
var defaultLoadingOptions = vueDemi.inject(LOADING_OPTIONS_KEY, {});
|
||||
var realLoadingOptions = vueDemi.computed(function () { return (__assign(__assign({}, unwrapInjected(defaultLoadingOptions, {})), loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.value)); });
|
||||
vueDemi.watchEffect(function () {
|
||||
var instance = chart.value;
|
||||
if (!instance) {
|
||||
return;
|
||||
}
|
||||
if (loading.value) {
|
||||
instance.showLoading(realLoadingOptions.value);
|
||||
}
|
||||
else {
|
||||
instance.hideLoading();
|
||||
}
|
||||
});
|
||||
}
|
||||
var loadingProps = {
|
||||
loading: Boolean,
|
||||
loadingOptions: Object
|
||||
};
|
||||
|
||||
var TAG_NAME = "x-vue-echarts";
|
||||
|
||||
if (vueDemi.Vue2) {
|
||||
vueDemi.Vue2.config.ignoredElements.push(TAG_NAME);
|
||||
}
|
||||
var THEME_KEY = "ecTheme";
|
||||
var INIT_OPTIONS_KEY = "ecInitOptions";
|
||||
var UPDATE_OPTIONS_KEY = "ecUpdateOptions";
|
||||
var NATIVE_EVENT_RE = /(^&?~?!?)native:/;
|
||||
var ECharts = vueDemi.defineComponent({
|
||||
name: "echarts",
|
||||
props: __assign(__assign({ option: Object, theme: {
|
||||
type: [Object, String]
|
||||
}, initOptions: Object, updateOptions: Object, group: String, manualUpdate: Boolean }, autoresizeProps), loadingProps),
|
||||
emits: {},
|
||||
inheritAttrs: false,
|
||||
setup: function (props, _a) {
|
||||
var attrs = _a.attrs;
|
||||
var root = vueDemi.shallowRef();
|
||||
var inner = vueDemi.shallowRef();
|
||||
var chart = vueDemi.shallowRef();
|
||||
var manualOption = vueDemi.shallowRef();
|
||||
var defaultTheme = vueDemi.inject(THEME_KEY, null);
|
||||
var defaultInitOptions = vueDemi.inject(INIT_OPTIONS_KEY, null);
|
||||
var defaultUpdateOptions = vueDemi.inject(UPDATE_OPTIONS_KEY, null);
|
||||
var _b = vueDemi.toRefs(props), autoresize = _b.autoresize, manualUpdate = _b.manualUpdate, loading = _b.loading, loadingOptions = _b.loadingOptions;
|
||||
var realOption = vueDemi.computed(function () { return manualOption.value || props.option || null; });
|
||||
var realTheme = vueDemi.computed(function () { return props.theme || unwrapInjected(defaultTheme, {}); });
|
||||
var realInitOptions = vueDemi.computed(function () { return props.initOptions || unwrapInjected(defaultInitOptions, {}); });
|
||||
var realUpdateOptions = vueDemi.computed(function () { return props.updateOptions || unwrapInjected(defaultUpdateOptions, {}); });
|
||||
var nonEventAttrs = vueDemi.computed(function () { return omitOn(attrs); });
|
||||
var nativeListeners = {};
|
||||
var listeners = vueDemi.getCurrentInstance().proxy.$listeners;
|
||||
var realListeners = {};
|
||||
if (!listeners) {
|
||||
Object.keys(attrs)
|
||||
.filter(function (key) { return isOn(key); })
|
||||
.forEach(function (key) {
|
||||
var event = key.charAt(2).toLowerCase() + key.slice(3);
|
||||
if (event.indexOf("native:") === 0) {
|
||||
var nativeKey = "on".concat(event.charAt(7).toUpperCase()).concat(event.slice(8));
|
||||
nativeListeners[nativeKey] = attrs[key];
|
||||
return;
|
||||
}
|
||||
if (event.substring(event.length - 4) === "Once") {
|
||||
event = "~".concat(event.substring(0, event.length - 4));
|
||||
}
|
||||
realListeners[event] = attrs[key];
|
||||
});
|
||||
}
|
||||
else {
|
||||
Object.keys(listeners).forEach(function (key) {
|
||||
if (NATIVE_EVENT_RE.test(key)) {
|
||||
nativeListeners[key.replace(NATIVE_EVENT_RE, "$1")] = listeners[key];
|
||||
}
|
||||
else {
|
||||
realListeners[key] = listeners[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
function init(option) {
|
||||
if (!inner.value) {
|
||||
return;
|
||||
}
|
||||
var instance = (chart.value = core.init(inner.value, realTheme.value, realInitOptions.value));
|
||||
if (props.group) {
|
||||
instance.group = props.group;
|
||||
}
|
||||
Object.keys(realListeners).forEach(function (key) {
|
||||
var handler = realListeners[key];
|
||||
if (!handler) {
|
||||
return;
|
||||
}
|
||||
var event = key.toLowerCase();
|
||||
if (event.charAt(0) === "~") {
|
||||
event = event.substring(1);
|
||||
handler.__once__ = true;
|
||||
}
|
||||
var target = instance;
|
||||
if (event.indexOf("zr:") === 0) {
|
||||
target = instance.getZr();
|
||||
event = event.substring(3);
|
||||
}
|
||||
if (handler.__once__) {
|
||||
delete handler.__once__;
|
||||
var raw_1 = handler;
|
||||
handler = function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
raw_1.apply(void 0, args);
|
||||
target.off(event, handler);
|
||||
};
|
||||
}
|
||||
target.on(event, handler);
|
||||
});
|
||||
function resize() {
|
||||
if (instance && !instance.isDisposed()) {
|
||||
instance.resize();
|
||||
}
|
||||
}
|
||||
function commit() {
|
||||
var opt = option || realOption.value;
|
||||
if (opt) {
|
||||
instance.setOption(opt, realUpdateOptions.value);
|
||||
}
|
||||
}
|
||||
if (autoresize.value) {
|
||||
vueDemi.nextTick(function () {
|
||||
resize();
|
||||
commit();
|
||||
});
|
||||
}
|
||||
else {
|
||||
commit();
|
||||
}
|
||||
}
|
||||
function setOption(option, updateOptions) {
|
||||
if (props.manualUpdate) {
|
||||
manualOption.value = option;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init(option);
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, updateOptions || {});
|
||||
}
|
||||
}
|
||||
function cleanup() {
|
||||
if (chart.value) {
|
||||
chart.value.dispose();
|
||||
chart.value = undefined;
|
||||
}
|
||||
}
|
||||
var unwatchOption = null;
|
||||
vueDemi.watch(manualUpdate, function (manualUpdate) {
|
||||
if (typeof unwatchOption === "function") {
|
||||
unwatchOption();
|
||||
unwatchOption = null;
|
||||
}
|
||||
if (!manualUpdate) {
|
||||
unwatchOption = vueDemi.watch(function () { return props.option; }, function (option, oldOption) {
|
||||
if (!option) {
|
||||
return;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init();
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, __assign({ notMerge: option !== oldOption }, realUpdateOptions.value));
|
||||
}
|
||||
}, { deep: true });
|
||||
}
|
||||
}, {
|
||||
immediate: true
|
||||
});
|
||||
vueDemi.watch([realTheme, realInitOptions], function () {
|
||||
cleanup();
|
||||
init();
|
||||
}, {
|
||||
deep: true
|
||||
});
|
||||
vueDemi.watchEffect(function () {
|
||||
if (props.group && chart.value) {
|
||||
chart.value.group = props.group;
|
||||
}
|
||||
});
|
||||
var publicApi = usePublicAPI(chart);
|
||||
useLoading(chart, loading, loadingOptions);
|
||||
useAutoresize(chart, autoresize, inner);
|
||||
vueDemi.onMounted(function () {
|
||||
init();
|
||||
});
|
||||
vueDemi.onBeforeUnmount(function () {
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
});
|
||||
return __assign({ chart: chart, root: root, inner: inner, setOption: setOption, nonEventAttrs: nonEventAttrs, nativeListeners: nativeListeners }, publicApi);
|
||||
},
|
||||
render: function () {
|
||||
var attrs = (vueDemi.Vue2
|
||||
? { attrs: this.nonEventAttrs, on: this.nativeListeners }
|
||||
: __assign(__assign({}, this.nonEventAttrs), this.nativeListeners));
|
||||
attrs.ref = "root";
|
||||
attrs["class"] = attrs["class"] ? ["echarts"].concat(attrs["class"]) : "echarts";
|
||||
return vueDemi.h(TAG_NAME, attrs, [
|
||||
vueDemi.h("div", { ref: "inner", "class": "vue-echarts-inner" })
|
||||
]);
|
||||
}
|
||||
});
|
||||
|
||||
exports.INIT_OPTIONS_KEY = INIT_OPTIONS_KEY;
|
||||
exports.LOADING_OPTIONS_KEY = LOADING_OPTIONS_KEY;
|
||||
exports.THEME_KEY = THEME_KEY;
|
||||
exports.UPDATE_OPTIONS_KEY = UPDATE_OPTIONS_KEY;
|
||||
exports["default"] = ECharts;
|
||||
//# sourceMappingURL=index.cjs.js.map
|
||||
1
frontend/node_modules/vue-echarts/dist/csp/index.cjs.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/csp/index.cjs.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
frontend/node_modules/vue-echarts/dist/csp/index.cjs.min.js
generated
vendored
Normal file
2
frontend/node_modules/vue-echarts/dist/csp/index.cjs.min.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue-demi"),t=require("echarts/core"),n=require("resize-detector"),o=function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var r=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function i(e){return t=Object.create(null),r.forEach((function(n){t[n]=function(t){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[t].apply(e.value,n)}}(n)})),t;var t}var a={autoresize:[Boolean,Object]},u=/^on[^a-z]/,c=function(e){return u.test(e)};function s(t,n){var o=e.isRef(t)?e.unref(t):t;return o&&"object"==typeof o&&"value"in o?o.value||n:o||n}var l="ecLoadingOptions";var f={loading:Boolean,loadingOptions:Object},v="x-vue-echarts";e.Vue2&&e.Vue2.config.ignoredElements.push(v);var p="ecTheme",d="ecInitOptions",h="ecUpdateOptions",g=/(^&?~?!?)native:/,O=e.defineComponent({name:"echarts",props:o(o({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},a),f),emits:{},inheritAttrs:!1,setup:function(r,a){var u=a.attrs,f=e.shallowRef(),v=e.shallowRef(),O=e.shallowRef(),m=e.shallowRef(),E=e.inject(p,null),_=e.inject(d,null),b=e.inject(h,null),j=e.toRefs(r),w=j.autoresize,y=j.manualUpdate,x=j.loading,L=j.loadingOptions,z=e.computed((function(){return m.value||r.option||null})),A=e.computed((function(){return r.theme||s(E,{})})),P=e.computed((function(){return r.initOptions||s(_,{})})),R=e.computed((function(){return r.updateOptions||s(b,{})})),T=e.computed((function(){return function(e){var t={};for(var n in e)c(n)||(t[n]=e[n]);return t}(u)})),U={},D=e.getCurrentInstance().proxy.$listeners,I={};function C(n){if(v.value){var o=O.value=t.init(v.value,A.value,P.value);r.group&&(o.group=r.group),Object.keys(I).forEach((function(e){var t=I[e];if(t){var n=e.toLowerCase();"~"===n.charAt(0)&&(n=n.substring(1),t.__once__=!0);var r=o;if(0===n.indexOf("zr:")&&(r=o.getZr(),n=n.substring(3)),t.__once__){delete t.__once__;var i=t;t=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];i.apply(void 0,e),r.off(n,t)}}r.on(n,t)}})),w.value?e.nextTick((function(){o&&!o.isDisposed()&&o.resize(),i()})):i()}function i(){var e=n||z.value;e&&o.setOption(e,R.value)}}function S(){O.value&&(O.value.dispose(),O.value=void 0)}D?Object.keys(D).forEach((function(e){g.test(e)?U[e.replace(g,"$1")]=D[e]:I[e]=D[e]})):Object.keys(u).filter((function(e){return c(e)})).forEach((function(e){var t=e.charAt(2).toLowerCase()+e.slice(3);if(0!==t.indexOf("native:"))"Once"===t.substring(t.length-4)&&(t="~".concat(t.substring(0,t.length-4))),I[t]=u[e];else{var n="on".concat(t.charAt(7).toUpperCase()).concat(t.slice(8));U[n]=u[e]}}));var N=null;e.watch(y,(function(t){"function"==typeof N&&(N(),N=null),t||(N=e.watch((function(){return r.option}),(function(e,t){e&&(O.value?O.value.setOption(e,o({notMerge:e!==t},R.value)):C())}),{deep:!0}))}),{immediate:!0}),e.watch([A,P],(function(){S(),C()}),{deep:!0}),e.watchEffect((function(){r.group&&O.value&&(O.value.group=r.group)}));var k=i(O);return function(t,n,r){var i=e.inject(l,{}),a=e.computed((function(){return o(o({},s(i,{})),null==r?void 0:r.value)}));e.watchEffect((function(){var e=t.value;e&&(n.value?e.showLoading(a.value):e.hideLoading())}))}(O,x,L),function(o,r,i){var a=null;e.watch([i,o,r],(function(e,o,r){var i=e[0],u=e[1],c=e[2];if(i&&u&&c){var s=!0===c?{}:c,l=s.throttle,f=void 0===l?100:l,v=s.onResize,p=function(){u.resize(),null==v||v()};a=f?t.throttle(p,f):p,n.addListener(i,a)}r((function(){i&&a&&n.removeListener(i,a)}))}))}(O,w,v),e.onMounted((function(){C()})),e.onBeforeUnmount((function(){S()})),o({chart:O,root:f,inner:v,setOption:function(e,t){r.manualUpdate&&(m.value=e),O.value?O.value.setOption(e,t||{}):C(e)},nonEventAttrs:T,nativeListeners:U},k)},render:function(){var t=e.Vue2?{attrs:this.nonEventAttrs,on:this.nativeListeners}:o(o({},this.nonEventAttrs),this.nativeListeners);return t.ref="root",t.class=t.class?["echarts"].concat(t.class):"echarts",e.h(v,t,[e.h("div",{ref:"inner",class:"vue-echarts-inner"})])}});exports.INIT_OPTIONS_KEY=d,exports.LOADING_OPTIONS_KEY=l,exports.THEME_KEY=p,exports.UPDATE_OPTIONS_KEY=h,exports.default=O;
|
||||
//# sourceMappingURL=index.cjs.min.js.map
|
||||
1
frontend/node_modules/vue-echarts/dist/csp/index.cjs.min.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/csp/index.cjs.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
336
frontend/node_modules/vue-echarts/dist/csp/index.esm.js
generated
vendored
Normal file
336
frontend/node_modules/vue-echarts/dist/csp/index.esm.js
generated
vendored
Normal file
@@ -0,0 +1,336 @@
|
||||
import { watch, isRef, unref, inject, computed, watchEffect, Vue2, defineComponent, shallowRef, toRefs, getCurrentInstance, onMounted, onBeforeUnmount, h, nextTick } from 'vue-demi';
|
||||
import { throttle, init } from 'echarts/core';
|
||||
import { addListener, removeListener } from 'resize-detector';
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
var __assign = function() {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
|
||||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
||||
var e = new Error(message);
|
||||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
||||
};
|
||||
|
||||
var METHOD_NAMES = [
|
||||
"getWidth",
|
||||
"getHeight",
|
||||
"getDom",
|
||||
"getOption",
|
||||
"resize",
|
||||
"dispatchAction",
|
||||
"convertToPixel",
|
||||
"convertFromPixel",
|
||||
"containPixel",
|
||||
"getDataURL",
|
||||
"getConnectedDataURL",
|
||||
"appendData",
|
||||
"clear",
|
||||
"isDisposed",
|
||||
"dispose"
|
||||
];
|
||||
function usePublicAPI(chart) {
|
||||
function makePublicMethod(name) {
|
||||
return function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
if (!chart.value) {
|
||||
throw new Error("ECharts is not initialized yet.");
|
||||
}
|
||||
return chart.value[name].apply(chart.value, args);
|
||||
};
|
||||
}
|
||||
function makePublicMethods() {
|
||||
var methods = Object.create(null);
|
||||
METHOD_NAMES.forEach(function (name) {
|
||||
methods[name] = makePublicMethod(name);
|
||||
});
|
||||
return methods;
|
||||
}
|
||||
return makePublicMethods();
|
||||
}
|
||||
|
||||
function useAutoresize(chart, autoresize, root) {
|
||||
var resizeListener = null;
|
||||
watch([root, chart, autoresize], function (_a, _, cleanup) {
|
||||
var root = _a[0], chart = _a[1], autoresize = _a[2];
|
||||
if (root && chart && autoresize) {
|
||||
var autoresizeOptions = autoresize === true ? {} : autoresize;
|
||||
var _b = autoresizeOptions.throttle, wait = _b === void 0 ? 100 : _b, onResize_1 = autoresizeOptions.onResize;
|
||||
var callback = function () {
|
||||
chart.resize();
|
||||
onResize_1 === null || onResize_1 === void 0 ? void 0 : onResize_1();
|
||||
};
|
||||
resizeListener = wait ? throttle(callback, wait) : callback;
|
||||
addListener(root, resizeListener);
|
||||
}
|
||||
cleanup(function () {
|
||||
if (root && resizeListener) {
|
||||
removeListener(root, resizeListener);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
var autoresizeProps = {
|
||||
autoresize: [Boolean, Object]
|
||||
};
|
||||
|
||||
var onRE = /^on[^a-z]/;
|
||||
var isOn = function (key) { return onRE.test(key); };
|
||||
function omitOn(attrs) {
|
||||
var result = {};
|
||||
for (var key in attrs) {
|
||||
if (!isOn(key)) {
|
||||
result[key] = attrs[key];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function unwrapInjected(injection, defaultValue) {
|
||||
var value = isRef(injection) ? unref(injection) : injection;
|
||||
if (value && typeof value === "object" && "value" in value) {
|
||||
return value.value || defaultValue;
|
||||
}
|
||||
return value || defaultValue;
|
||||
}
|
||||
|
||||
var LOADING_OPTIONS_KEY = "ecLoadingOptions";
|
||||
function useLoading(chart, loading, loadingOptions) {
|
||||
var defaultLoadingOptions = inject(LOADING_OPTIONS_KEY, {});
|
||||
var realLoadingOptions = computed(function () { return (__assign(__assign({}, unwrapInjected(defaultLoadingOptions, {})), loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.value)); });
|
||||
watchEffect(function () {
|
||||
var instance = chart.value;
|
||||
if (!instance) {
|
||||
return;
|
||||
}
|
||||
if (loading.value) {
|
||||
instance.showLoading(realLoadingOptions.value);
|
||||
}
|
||||
else {
|
||||
instance.hideLoading();
|
||||
}
|
||||
});
|
||||
}
|
||||
var loadingProps = {
|
||||
loading: Boolean,
|
||||
loadingOptions: Object
|
||||
};
|
||||
|
||||
var TAG_NAME = "x-vue-echarts";
|
||||
|
||||
if (Vue2) {
|
||||
Vue2.config.ignoredElements.push(TAG_NAME);
|
||||
}
|
||||
var THEME_KEY = "ecTheme";
|
||||
var INIT_OPTIONS_KEY = "ecInitOptions";
|
||||
var UPDATE_OPTIONS_KEY = "ecUpdateOptions";
|
||||
var NATIVE_EVENT_RE = /(^&?~?!?)native:/;
|
||||
var ECharts = defineComponent({
|
||||
name: "echarts",
|
||||
props: __assign(__assign({ option: Object, theme: {
|
||||
type: [Object, String]
|
||||
}, initOptions: Object, updateOptions: Object, group: String, manualUpdate: Boolean }, autoresizeProps), loadingProps),
|
||||
emits: {},
|
||||
inheritAttrs: false,
|
||||
setup: function (props, _a) {
|
||||
var attrs = _a.attrs;
|
||||
var root = shallowRef();
|
||||
var inner = shallowRef();
|
||||
var chart = shallowRef();
|
||||
var manualOption = shallowRef();
|
||||
var defaultTheme = inject(THEME_KEY, null);
|
||||
var defaultInitOptions = inject(INIT_OPTIONS_KEY, null);
|
||||
var defaultUpdateOptions = inject(UPDATE_OPTIONS_KEY, null);
|
||||
var _b = toRefs(props), autoresize = _b.autoresize, manualUpdate = _b.manualUpdate, loading = _b.loading, loadingOptions = _b.loadingOptions;
|
||||
var realOption = computed(function () { return manualOption.value || props.option || null; });
|
||||
var realTheme = computed(function () { return props.theme || unwrapInjected(defaultTheme, {}); });
|
||||
var realInitOptions = computed(function () { return props.initOptions || unwrapInjected(defaultInitOptions, {}); });
|
||||
var realUpdateOptions = computed(function () { return props.updateOptions || unwrapInjected(defaultUpdateOptions, {}); });
|
||||
var nonEventAttrs = computed(function () { return omitOn(attrs); });
|
||||
var nativeListeners = {};
|
||||
var listeners = getCurrentInstance().proxy.$listeners;
|
||||
var realListeners = {};
|
||||
if (!listeners) {
|
||||
Object.keys(attrs)
|
||||
.filter(function (key) { return isOn(key); })
|
||||
.forEach(function (key) {
|
||||
var event = key.charAt(2).toLowerCase() + key.slice(3);
|
||||
if (event.indexOf("native:") === 0) {
|
||||
var nativeKey = "on".concat(event.charAt(7).toUpperCase()).concat(event.slice(8));
|
||||
nativeListeners[nativeKey] = attrs[key];
|
||||
return;
|
||||
}
|
||||
if (event.substring(event.length - 4) === "Once") {
|
||||
event = "~".concat(event.substring(0, event.length - 4));
|
||||
}
|
||||
realListeners[event] = attrs[key];
|
||||
});
|
||||
}
|
||||
else {
|
||||
Object.keys(listeners).forEach(function (key) {
|
||||
if (NATIVE_EVENT_RE.test(key)) {
|
||||
nativeListeners[key.replace(NATIVE_EVENT_RE, "$1")] = listeners[key];
|
||||
}
|
||||
else {
|
||||
realListeners[key] = listeners[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
function init$1(option) {
|
||||
if (!inner.value) {
|
||||
return;
|
||||
}
|
||||
var instance = (chart.value = init(inner.value, realTheme.value, realInitOptions.value));
|
||||
if (props.group) {
|
||||
instance.group = props.group;
|
||||
}
|
||||
Object.keys(realListeners).forEach(function (key) {
|
||||
var handler = realListeners[key];
|
||||
if (!handler) {
|
||||
return;
|
||||
}
|
||||
var event = key.toLowerCase();
|
||||
if (event.charAt(0) === "~") {
|
||||
event = event.substring(1);
|
||||
handler.__once__ = true;
|
||||
}
|
||||
var target = instance;
|
||||
if (event.indexOf("zr:") === 0) {
|
||||
target = instance.getZr();
|
||||
event = event.substring(3);
|
||||
}
|
||||
if (handler.__once__) {
|
||||
delete handler.__once__;
|
||||
var raw_1 = handler;
|
||||
handler = function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
raw_1.apply(void 0, args);
|
||||
target.off(event, handler);
|
||||
};
|
||||
}
|
||||
target.on(event, handler);
|
||||
});
|
||||
function resize() {
|
||||
if (instance && !instance.isDisposed()) {
|
||||
instance.resize();
|
||||
}
|
||||
}
|
||||
function commit() {
|
||||
var opt = option || realOption.value;
|
||||
if (opt) {
|
||||
instance.setOption(opt, realUpdateOptions.value);
|
||||
}
|
||||
}
|
||||
if (autoresize.value) {
|
||||
nextTick(function () {
|
||||
resize();
|
||||
commit();
|
||||
});
|
||||
}
|
||||
else {
|
||||
commit();
|
||||
}
|
||||
}
|
||||
function setOption(option, updateOptions) {
|
||||
if (props.manualUpdate) {
|
||||
manualOption.value = option;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init$1(option);
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, updateOptions || {});
|
||||
}
|
||||
}
|
||||
function cleanup() {
|
||||
if (chart.value) {
|
||||
chart.value.dispose();
|
||||
chart.value = undefined;
|
||||
}
|
||||
}
|
||||
var unwatchOption = null;
|
||||
watch(manualUpdate, function (manualUpdate) {
|
||||
if (typeof unwatchOption === "function") {
|
||||
unwatchOption();
|
||||
unwatchOption = null;
|
||||
}
|
||||
if (!manualUpdate) {
|
||||
unwatchOption = watch(function () { return props.option; }, function (option, oldOption) {
|
||||
if (!option) {
|
||||
return;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init$1();
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, __assign({ notMerge: option !== oldOption }, realUpdateOptions.value));
|
||||
}
|
||||
}, { deep: true });
|
||||
}
|
||||
}, {
|
||||
immediate: true
|
||||
});
|
||||
watch([realTheme, realInitOptions], function () {
|
||||
cleanup();
|
||||
init$1();
|
||||
}, {
|
||||
deep: true
|
||||
});
|
||||
watchEffect(function () {
|
||||
if (props.group && chart.value) {
|
||||
chart.value.group = props.group;
|
||||
}
|
||||
});
|
||||
var publicApi = usePublicAPI(chart);
|
||||
useLoading(chart, loading, loadingOptions);
|
||||
useAutoresize(chart, autoresize, inner);
|
||||
onMounted(function () {
|
||||
init$1();
|
||||
});
|
||||
onBeforeUnmount(function () {
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
});
|
||||
return __assign({ chart: chart, root: root, inner: inner, setOption: setOption, nonEventAttrs: nonEventAttrs, nativeListeners: nativeListeners }, publicApi);
|
||||
},
|
||||
render: function () {
|
||||
var attrs = (Vue2
|
||||
? { attrs: this.nonEventAttrs, on: this.nativeListeners }
|
||||
: __assign(__assign({}, this.nonEventAttrs), this.nativeListeners));
|
||||
attrs.ref = "root";
|
||||
attrs["class"] = attrs["class"] ? ["echarts"].concat(attrs["class"]) : "echarts";
|
||||
return h(TAG_NAME, attrs, [
|
||||
h("div", { ref: "inner", "class": "vue-echarts-inner" })
|
||||
]);
|
||||
}
|
||||
});
|
||||
|
||||
export { INIT_OPTIONS_KEY, LOADING_OPTIONS_KEY, THEME_KEY, UPDATE_OPTIONS_KEY, ECharts as default };
|
||||
//# sourceMappingURL=index.esm.js.map
|
||||
1
frontend/node_modules/vue-echarts/dist/csp/index.esm.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/csp/index.esm.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
frontend/node_modules/vue-echarts/dist/csp/index.esm.min.js
generated
vendored
Normal file
2
frontend/node_modules/vue-echarts/dist/csp/index.esm.min.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import{watch as e,isRef as t,unref as n,inject as r,computed as o,watchEffect as i,Vue2 as a,defineComponent as u,shallowRef as c,toRefs as s,getCurrentInstance as l,onMounted as v,onBeforeUnmount as f,h as p,nextTick as d}from"vue-demi";import{throttle as h,init as g}from"echarts/core";import{addListener as O,removeListener as m}from"resize-detector";var b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},b.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var y=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function j(e){return t=Object.create(null),y.forEach((function(n){t[n]=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[t].apply(e.value,n)}}(n)})),t;var t}var E={autoresize:[Boolean,Object]},_=/^on[^a-z]/,z=function(e){return _.test(e)};function L(e,r){var o=t(e)?n(e):e;return o&&"object"==typeof o&&"value"in o?o.value||r:o||r}var x="ecLoadingOptions";var A={loading:Boolean,loadingOptions:Object},U="x-vue-echarts";a&&a.config.ignoredElements.push(U);var w="ecTheme",D="ecInitOptions",C="ecUpdateOptions",P=/(^&?~?!?)native:/,S=u({name:"echarts",props:b(b({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},E),A),emits:{},inheritAttrs:!1,setup:function(t,n){var a=n.attrs,u=c(),p=c(),y=c(),E=c(),_=r(w,null),A=r(D,null),U=r(C,null),S=s(t),k=S.autoresize,B=S.manualUpdate,R=S.loading,T=S.loadingOptions,$=o((function(){return E.value||t.option||null})),F=o((function(){return t.theme||L(_,{})})),H=o((function(){return t.initOptions||L(A,{})})),I=o((function(){return t.updateOptions||L(U,{})})),M=o((function(){return function(e){var t={};for(var n in e)z(n)||(t[n]=e[n]);return t}(a)})),W={},Z=l().proxy.$listeners,q={};function G(e){if(p.value){var n=y.value=g(p.value,F.value,H.value);t.group&&(n.group=t.group),Object.keys(q).forEach((function(e){var t=q[e];if(t){var r=e.toLowerCase();"~"===r.charAt(0)&&(r=r.substring(1),t.__once__=!0);var o=n;if(0===r.indexOf("zr:")&&(o=n.getZr(),r=r.substring(3)),t.__once__){delete t.__once__;var i=t;t=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];i.apply(void 0,e),o.off(r,t)}}o.on(r,t)}})),k.value?d((function(){n&&!n.isDisposed()&&n.resize(),r()})):r()}function r(){var t=e||$.value;t&&n.setOption(t,I.value)}}function J(){y.value&&(y.value.dispose(),y.value=void 0)}Z?Object.keys(Z).forEach((function(e){P.test(e)?W[e.replace(P,"$1")]=Z[e]:q[e]=Z[e]})):Object.keys(a).filter((function(e){return z(e)})).forEach((function(e){var t=e.charAt(2).toLowerCase()+e.slice(3);if(0!==t.indexOf("native:"))"Once"===t.substring(t.length-4)&&(t="~".concat(t.substring(0,t.length-4))),q[t]=a[e];else{var n="on".concat(t.charAt(7).toUpperCase()).concat(t.slice(8));W[n]=a[e]}}));var K=null;e(B,(function(n){"function"==typeof K&&(K(),K=null),n||(K=e((function(){return t.option}),(function(e,t){e&&(y.value?y.value.setOption(e,b({notMerge:e!==t},I.value)):G())}),{deep:!0}))}),{immediate:!0}),e([F,H],(function(){J(),G()}),{deep:!0}),i((function(){t.group&&y.value&&(y.value.group=t.group)}));var N=j(y);return function(e,t,n){var a=r(x,{}),u=o((function(){return b(b({},L(a,{})),null==n?void 0:n.value)}));i((function(){var n=e.value;n&&(t.value?n.showLoading(u.value):n.hideLoading())}))}(y,R,T),function(t,n,r){var o=null;e([r,t,n],(function(e,t,n){var r=e[0],i=e[1],a=e[2];if(r&&i&&a){var u=!0===a?{}:a,c=u.throttle,s=void 0===c?100:c,l=u.onResize,v=function(){i.resize(),null==l||l()};o=s?h(v,s):v,O(r,o)}n((function(){r&&o&&m(r,o)}))}))}(y,k,p),v((function(){G()})),f((function(){J()})),b({chart:y,root:u,inner:p,setOption:function(e,n){t.manualUpdate&&(E.value=e),y.value?y.value.setOption(e,n||{}):G(e)},nonEventAttrs:M,nativeListeners:W},N)},render:function(){var e=a?{attrs:this.nonEventAttrs,on:this.nativeListeners}:b(b({},this.nonEventAttrs),this.nativeListeners);return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",p(U,e,[p("div",{ref:"inner",class:"vue-echarts-inner"})])}});export{D as INIT_OPTIONS_KEY,x as LOADING_OPTIONS_KEY,w as THEME_KEY,C as UPDATE_OPTIONS_KEY,S as default};
|
||||
//# sourceMappingURL=index.esm.min.js.map
|
||||
1
frontend/node_modules/vue-echarts/dist/csp/index.esm.min.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/csp/index.esm.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
780
frontend/node_modules/vue-echarts/dist/csp/index.umd.js
generated
vendored
Normal file
780
frontend/node_modules/vue-echarts/dist/csp/index.umd.js
generated
vendored
Normal file
@@ -0,0 +1,780 @@
|
||||
|
||||
var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
||||
if (VueDemi.install) {
|
||||
return VueDemi
|
||||
}
|
||||
if (!Vue) {
|
||||
console.error('[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`.')
|
||||
return VueDemi
|
||||
}
|
||||
|
||||
// Vue 2.7
|
||||
if (Vue.version.slice(0, 4) === '2.7.') {
|
||||
for (var key in Vue) {
|
||||
VueDemi[key] = Vue[key]
|
||||
}
|
||||
VueDemi.isVue2 = true
|
||||
VueDemi.isVue3 = false
|
||||
VueDemi.install = function () {}
|
||||
VueDemi.Vue = Vue
|
||||
VueDemi.Vue2 = Vue
|
||||
VueDemi.version = Vue.version
|
||||
VueDemi.warn = Vue.util.warn
|
||||
function createApp(rootComponent, rootProps) {
|
||||
var vm
|
||||
var provide = {}
|
||||
var app = {
|
||||
config: Vue.config,
|
||||
use: Vue.use.bind(Vue),
|
||||
mixin: Vue.mixin.bind(Vue),
|
||||
component: Vue.component.bind(Vue),
|
||||
provide: function (key, value) {
|
||||
provide[key] = value
|
||||
return this
|
||||
},
|
||||
directive: function (name, dir) {
|
||||
if (dir) {
|
||||
Vue.directive(name, dir)
|
||||
return app
|
||||
} else {
|
||||
return Vue.directive(name)
|
||||
}
|
||||
},
|
||||
mount: function (el, hydrating) {
|
||||
if (!vm) {
|
||||
vm = new Vue(Object.assign({ propsData: rootProps }, rootComponent, { provide: Object.assign(provide, rootComponent.provide) }))
|
||||
vm.$mount(el, hydrating)
|
||||
return vm
|
||||
} else {
|
||||
return vm
|
||||
}
|
||||
},
|
||||
unmount: function () {
|
||||
if (vm) {
|
||||
vm.$destroy()
|
||||
vm = undefined
|
||||
}
|
||||
},
|
||||
}
|
||||
return app
|
||||
}
|
||||
VueDemi.createApp = createApp
|
||||
}
|
||||
// Vue 2.6.x
|
||||
else if (Vue.version.slice(0, 2) === '2.') {
|
||||
if (VueCompositionAPI) {
|
||||
for (var key in VueCompositionAPI) {
|
||||
VueDemi[key] = VueCompositionAPI[key]
|
||||
}
|
||||
VueDemi.isVue2 = true
|
||||
VueDemi.isVue3 = false
|
||||
VueDemi.install = function () {}
|
||||
VueDemi.Vue = Vue
|
||||
VueDemi.Vue2 = Vue
|
||||
VueDemi.version = Vue.version
|
||||
} else {
|
||||
console.error('[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.')
|
||||
}
|
||||
}
|
||||
// Vue 3
|
||||
else if (Vue.version.slice(0, 2) === '3.') {
|
||||
for (var key in Vue) {
|
||||
VueDemi[key] = Vue[key]
|
||||
}
|
||||
VueDemi.isVue2 = false
|
||||
VueDemi.isVue3 = true
|
||||
VueDemi.install = function () {}
|
||||
VueDemi.Vue = Vue
|
||||
VueDemi.Vue2 = undefined
|
||||
VueDemi.version = Vue.version
|
||||
VueDemi.set = function (target, key, val) {
|
||||
if (Array.isArray(target)) {
|
||||
target.length = Math.max(target.length, key)
|
||||
target.splice(key, 1, val)
|
||||
return val
|
||||
}
|
||||
target[key] = val
|
||||
return val
|
||||
}
|
||||
VueDemi.del = function (target, key) {
|
||||
if (Array.isArray(target)) {
|
||||
target.splice(key, 1)
|
||||
return
|
||||
}
|
||||
delete target[key]
|
||||
}
|
||||
} else {
|
||||
console.error('[vue-demi] Vue version ' + Vue.version + ' is unsupported.')
|
||||
}
|
||||
return VueDemi
|
||||
})(
|
||||
(this.VueDemi = this.VueDemi || (typeof VueDemi !== 'undefined' ? VueDemi : {})),
|
||||
this.Vue || (typeof Vue !== 'undefined' ? Vue : undefined),
|
||||
this.VueCompositionAPI || (typeof VueCompositionAPI !== 'undefined' ? VueCompositionAPI : undefined)
|
||||
);
|
||||
;
|
||||
;
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('echarts'), require('vue-demi'), require('echarts/core')) :
|
||||
typeof define === 'function' && define.amd ? define(['echarts', 'vue-demi', 'echarts/core'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.VueECharts = factory(global.echarts, global.VueDemi, global.echarts));
|
||||
})(this, (function (echarts, vueDemi, core) { 'use strict';
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
var __assign = function() {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
|
||||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
||||
var e = new Error(message);
|
||||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
||||
};
|
||||
|
||||
var METHOD_NAMES = [
|
||||
"getWidth",
|
||||
"getHeight",
|
||||
"getDom",
|
||||
"getOption",
|
||||
"resize",
|
||||
"dispatchAction",
|
||||
"convertToPixel",
|
||||
"convertFromPixel",
|
||||
"containPixel",
|
||||
"getDataURL",
|
||||
"getConnectedDataURL",
|
||||
"appendData",
|
||||
"clear",
|
||||
"isDisposed",
|
||||
"dispose"
|
||||
];
|
||||
function usePublicAPI(chart) {
|
||||
function makePublicMethod(name) {
|
||||
return function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
if (!chart.value) {
|
||||
throw new Error("ECharts is not initialized yet.");
|
||||
}
|
||||
return chart.value[name].apply(chart.value, args);
|
||||
};
|
||||
}
|
||||
function makePublicMethods() {
|
||||
var methods = Object.create(null);
|
||||
METHOD_NAMES.forEach(function (name) {
|
||||
methods[name] = makePublicMethod(name);
|
||||
});
|
||||
return methods;
|
||||
}
|
||||
return makePublicMethods();
|
||||
}
|
||||
|
||||
var raf = null;
|
||||
function requestAnimationFrame (callback) {
|
||||
if (!raf) {
|
||||
raf = (
|
||||
window.requestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame ||
|
||||
window.mozRequestAnimationFrame ||
|
||||
function (callback) {
|
||||
return setTimeout(callback, 16)
|
||||
}
|
||||
).bind(window);
|
||||
}
|
||||
return raf(callback)
|
||||
}
|
||||
|
||||
var caf = null;
|
||||
function cancelAnimationFrame (id) {
|
||||
if (!caf) {
|
||||
caf = (
|
||||
window.cancelAnimationFrame ||
|
||||
window.webkitCancelAnimationFrame ||
|
||||
window.mozCancelAnimationFrame ||
|
||||
function (id) {
|
||||
clearTimeout(id);
|
||||
}
|
||||
).bind(window);
|
||||
}
|
||||
|
||||
caf(id);
|
||||
}
|
||||
|
||||
function createStyles (styleText) {
|
||||
var style = document.createElement('style');
|
||||
|
||||
if (style.styleSheet) {
|
||||
style.styleSheet.cssText = styleText;
|
||||
} else {
|
||||
style.appendChild(document.createTextNode(styleText));
|
||||
}
|
||||
(document.querySelector('head') || document.body).appendChild(style);
|
||||
return style
|
||||
}
|
||||
|
||||
function createElement (tagName, props) {
|
||||
if ( props === void 0 ) props = {};
|
||||
|
||||
var elem = document.createElement(tagName);
|
||||
Object.keys(props).forEach(function (key) {
|
||||
elem[key] = props[key];
|
||||
});
|
||||
return elem
|
||||
}
|
||||
|
||||
function getComputedStyle (elem, prop, pseudo) {
|
||||
// for older versions of Firefox, `getComputedStyle` required
|
||||
// the second argument and may return `null` for some elements
|
||||
// when `display: none`
|
||||
var computedStyle = window.getComputedStyle(elem, pseudo || null) || {
|
||||
display: 'none'
|
||||
};
|
||||
|
||||
return computedStyle[prop]
|
||||
}
|
||||
|
||||
function getRenderInfo (elem) {
|
||||
if (!document.documentElement.contains(elem)) {
|
||||
return {
|
||||
detached: true,
|
||||
rendered: false
|
||||
}
|
||||
}
|
||||
|
||||
var current = elem;
|
||||
while (current !== document) {
|
||||
if (getComputedStyle(current, 'display') === 'none') {
|
||||
return {
|
||||
detached: false,
|
||||
rendered: false
|
||||
}
|
||||
}
|
||||
current = current.parentNode;
|
||||
}
|
||||
|
||||
return {
|
||||
detached: false,
|
||||
rendered: true
|
||||
}
|
||||
}
|
||||
|
||||
var css_248z = ".resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:\"\";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}";
|
||||
|
||||
var total = 0;
|
||||
var style = null;
|
||||
|
||||
function addListener (elem, callback) {
|
||||
if (!elem.__resize_mutation_handler__) {
|
||||
elem.__resize_mutation_handler__ = handleMutation.bind(elem);
|
||||
}
|
||||
|
||||
var listeners = elem.__resize_listeners__;
|
||||
|
||||
if (!listeners) {
|
||||
elem.__resize_listeners__ = [];
|
||||
if (window.ResizeObserver) {
|
||||
var offsetWidth = elem.offsetWidth;
|
||||
var offsetHeight = elem.offsetHeight;
|
||||
var ro = new ResizeObserver(function () {
|
||||
if (!elem.__resize_observer_triggered__) {
|
||||
elem.__resize_observer_triggered__ = true;
|
||||
if (elem.offsetWidth === offsetWidth && elem.offsetHeight === offsetHeight) {
|
||||
return
|
||||
}
|
||||
}
|
||||
runCallbacks(elem);
|
||||
});
|
||||
|
||||
// initially display none won't trigger ResizeObserver callback
|
||||
var ref = getRenderInfo(elem);
|
||||
var detached = ref.detached;
|
||||
var rendered = ref.rendered;
|
||||
elem.__resize_observer_triggered__ = detached === false && rendered === false;
|
||||
elem.__resize_observer__ = ro;
|
||||
ro.observe(elem);
|
||||
} else if (elem.attachEvent && elem.addEventListener) {
|
||||
// targeting IE9/10
|
||||
elem.__resize_legacy_resize_handler__ = function handleLegacyResize () {
|
||||
runCallbacks(elem);
|
||||
};
|
||||
elem.attachEvent('onresize', elem.__resize_legacy_resize_handler__);
|
||||
document.addEventListener('DOMSubtreeModified', elem.__resize_mutation_handler__);
|
||||
} else {
|
||||
if (!total) {
|
||||
style = createStyles(css_248z);
|
||||
}
|
||||
initTriggers(elem);
|
||||
|
||||
elem.__resize_rendered__ = getRenderInfo(elem).rendered;
|
||||
if (window.MutationObserver) {
|
||||
var mo = new MutationObserver(elem.__resize_mutation_handler__);
|
||||
mo.observe(document, {
|
||||
attributes: true,
|
||||
childList: true,
|
||||
characterData: true,
|
||||
subtree: true
|
||||
});
|
||||
elem.__resize_mutation_observer__ = mo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
elem.__resize_listeners__.push(callback);
|
||||
total++;
|
||||
}
|
||||
|
||||
function removeListener (elem, callback) {
|
||||
var listeners = elem.__resize_listeners__;
|
||||
if (!listeners) {
|
||||
return
|
||||
}
|
||||
|
||||
if (callback) {
|
||||
listeners.splice(listeners.indexOf(callback), 1);
|
||||
}
|
||||
|
||||
// no listeners exist, or removing all listeners
|
||||
if (!listeners.length || !callback) {
|
||||
// targeting IE9/10
|
||||
if (elem.detachEvent && elem.removeEventListener) {
|
||||
elem.detachEvent('onresize', elem.__resize_legacy_resize_handler__);
|
||||
document.removeEventListener('DOMSubtreeModified', elem.__resize_mutation_handler__);
|
||||
return
|
||||
}
|
||||
|
||||
if (elem.__resize_observer__) {
|
||||
elem.__resize_observer__.unobserve(elem);
|
||||
elem.__resize_observer__.disconnect();
|
||||
elem.__resize_observer__ = null;
|
||||
} else {
|
||||
if (elem.__resize_mutation_observer__) {
|
||||
elem.__resize_mutation_observer__.disconnect();
|
||||
elem.__resize_mutation_observer__ = null;
|
||||
}
|
||||
elem.removeEventListener('scroll', handleScroll);
|
||||
elem.removeChild(elem.__resize_triggers__.triggers);
|
||||
elem.__resize_triggers__ = null;
|
||||
}
|
||||
elem.__resize_listeners__ = null;
|
||||
}
|
||||
|
||||
if (!--total && style) {
|
||||
style.parentNode.removeChild(style);
|
||||
}
|
||||
}
|
||||
|
||||
function getUpdatedSize (elem) {
|
||||
var ref = elem.__resize_last__;
|
||||
var width = ref.width;
|
||||
var height = ref.height;
|
||||
var offsetWidth = elem.offsetWidth;
|
||||
var offsetHeight = elem.offsetHeight;
|
||||
if (offsetWidth !== width || offsetHeight !== height) {
|
||||
return {
|
||||
width: offsetWidth,
|
||||
height: offsetHeight
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
function handleMutation () {
|
||||
// `this` denotes the scrolling element
|
||||
var ref = getRenderInfo(this);
|
||||
var rendered = ref.rendered;
|
||||
var detached = ref.detached;
|
||||
if (rendered !== this.__resize_rendered__) {
|
||||
if (!detached && this.__resize_triggers__) {
|
||||
resetTriggers(this);
|
||||
this.addEventListener('scroll', handleScroll, true);
|
||||
}
|
||||
this.__resize_rendered__ = rendered;
|
||||
runCallbacks(this);
|
||||
}
|
||||
}
|
||||
|
||||
function handleScroll () {
|
||||
var this$1$1 = this;
|
||||
|
||||
// `this` denotes the scrolling element
|
||||
resetTriggers(this);
|
||||
if (this.__resize_raf__) {
|
||||
cancelAnimationFrame(this.__resize_raf__);
|
||||
}
|
||||
this.__resize_raf__ = requestAnimationFrame(function () {
|
||||
var updated = getUpdatedSize(this$1$1);
|
||||
if (updated) {
|
||||
this$1$1.__resize_last__ = updated;
|
||||
runCallbacks(this$1$1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function runCallbacks (elem) {
|
||||
if (!elem || !elem.__resize_listeners__) {
|
||||
return
|
||||
}
|
||||
elem.__resize_listeners__.forEach(function (callback) {
|
||||
callback.call(elem, elem);
|
||||
});
|
||||
}
|
||||
|
||||
function initTriggers (elem) {
|
||||
var position = getComputedStyle(elem, 'position');
|
||||
if (!position || position === 'static') {
|
||||
elem.style.position = 'relative';
|
||||
}
|
||||
|
||||
elem.__resize_old_position__ = position;
|
||||
elem.__resize_last__ = {};
|
||||
|
||||
var triggers = createElement('div', {
|
||||
className: 'resize-triggers'
|
||||
});
|
||||
var expand = createElement('div', {
|
||||
className: 'resize-expand-trigger'
|
||||
});
|
||||
var expandChild = createElement('div');
|
||||
var contract = createElement('div', {
|
||||
className: 'resize-contract-trigger'
|
||||
});
|
||||
expand.appendChild(expandChild);
|
||||
triggers.appendChild(expand);
|
||||
triggers.appendChild(contract);
|
||||
elem.appendChild(triggers);
|
||||
|
||||
elem.__resize_triggers__ = {
|
||||
triggers: triggers,
|
||||
expand: expand,
|
||||
expandChild: expandChild,
|
||||
contract: contract
|
||||
};
|
||||
|
||||
resetTriggers(elem);
|
||||
elem.addEventListener('scroll', handleScroll, true);
|
||||
|
||||
elem.__resize_last__ = {
|
||||
width: elem.offsetWidth,
|
||||
height: elem.offsetHeight
|
||||
};
|
||||
}
|
||||
|
||||
function resetTriggers (elem) {
|
||||
var ref = elem.__resize_triggers__;
|
||||
var expand = ref.expand;
|
||||
var expandChild = ref.expandChild;
|
||||
var contract = ref.contract;
|
||||
|
||||
// batch read
|
||||
var csw = contract.scrollWidth;
|
||||
var csh = contract.scrollHeight;
|
||||
var eow = expand.offsetWidth;
|
||||
var eoh = expand.offsetHeight;
|
||||
var esw = expand.scrollWidth;
|
||||
var esh = expand.scrollHeight;
|
||||
|
||||
// batch write
|
||||
contract.scrollLeft = csw;
|
||||
contract.scrollTop = csh;
|
||||
expandChild.style.width = eow + 1 + 'px';
|
||||
expandChild.style.height = eoh + 1 + 'px';
|
||||
expand.scrollLeft = esw;
|
||||
expand.scrollTop = esh;
|
||||
}
|
||||
|
||||
function useAutoresize(chart, autoresize, root) {
|
||||
var resizeListener = null;
|
||||
vueDemi.watch([root, chart, autoresize], function (_a, _, cleanup) {
|
||||
var root = _a[0], chart = _a[1], autoresize = _a[2];
|
||||
if (root && chart && autoresize) {
|
||||
var autoresizeOptions = autoresize === true ? {} : autoresize;
|
||||
var _b = autoresizeOptions.throttle, wait = _b === void 0 ? 100 : _b, onResize_1 = autoresizeOptions.onResize;
|
||||
var callback = function () {
|
||||
chart.resize();
|
||||
onResize_1 === null || onResize_1 === void 0 ? void 0 : onResize_1();
|
||||
};
|
||||
resizeListener = wait ? core.throttle(callback, wait) : callback;
|
||||
addListener(root, resizeListener);
|
||||
}
|
||||
cleanup(function () {
|
||||
if (root && resizeListener) {
|
||||
removeListener(root, resizeListener);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
var autoresizeProps = {
|
||||
autoresize: [Boolean, Object]
|
||||
};
|
||||
|
||||
var onRE = /^on[^a-z]/;
|
||||
var isOn = function (key) { return onRE.test(key); };
|
||||
function omitOn(attrs) {
|
||||
var result = {};
|
||||
for (var key in attrs) {
|
||||
if (!isOn(key)) {
|
||||
result[key] = attrs[key];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function unwrapInjected(injection, defaultValue) {
|
||||
var value = vueDemi.isRef(injection) ? vueDemi.unref(injection) : injection;
|
||||
if (value && typeof value === "object" && "value" in value) {
|
||||
return value.value || defaultValue;
|
||||
}
|
||||
return value || defaultValue;
|
||||
}
|
||||
|
||||
var LOADING_OPTIONS_KEY = "ecLoadingOptions";
|
||||
function useLoading(chart, loading, loadingOptions) {
|
||||
var defaultLoadingOptions = vueDemi.inject(LOADING_OPTIONS_KEY, {});
|
||||
var realLoadingOptions = vueDemi.computed(function () { return (__assign(__assign({}, unwrapInjected(defaultLoadingOptions, {})), loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.value)); });
|
||||
vueDemi.watchEffect(function () {
|
||||
var instance = chart.value;
|
||||
if (!instance) {
|
||||
return;
|
||||
}
|
||||
if (loading.value) {
|
||||
instance.showLoading(realLoadingOptions.value);
|
||||
}
|
||||
else {
|
||||
instance.hideLoading();
|
||||
}
|
||||
});
|
||||
}
|
||||
var loadingProps = {
|
||||
loading: Boolean,
|
||||
loadingOptions: Object
|
||||
};
|
||||
|
||||
var TAG_NAME = "x-vue-echarts";
|
||||
|
||||
if (vueDemi.Vue2) {
|
||||
vueDemi.Vue2.config.ignoredElements.push(TAG_NAME);
|
||||
}
|
||||
var THEME_KEY = "ecTheme";
|
||||
var INIT_OPTIONS_KEY = "ecInitOptions";
|
||||
var UPDATE_OPTIONS_KEY = "ecUpdateOptions";
|
||||
var NATIVE_EVENT_RE = /(^&?~?!?)native:/;
|
||||
var ECharts = vueDemi.defineComponent({
|
||||
name: "echarts",
|
||||
props: __assign(__assign({ option: Object, theme: {
|
||||
type: [Object, String]
|
||||
}, initOptions: Object, updateOptions: Object, group: String, manualUpdate: Boolean }, autoresizeProps), loadingProps),
|
||||
emits: {},
|
||||
inheritAttrs: false,
|
||||
setup: function (props, _a) {
|
||||
var attrs = _a.attrs;
|
||||
var root = vueDemi.shallowRef();
|
||||
var inner = vueDemi.shallowRef();
|
||||
var chart = vueDemi.shallowRef();
|
||||
var manualOption = vueDemi.shallowRef();
|
||||
var defaultTheme = vueDemi.inject(THEME_KEY, null);
|
||||
var defaultInitOptions = vueDemi.inject(INIT_OPTIONS_KEY, null);
|
||||
var defaultUpdateOptions = vueDemi.inject(UPDATE_OPTIONS_KEY, null);
|
||||
var _b = vueDemi.toRefs(props), autoresize = _b.autoresize, manualUpdate = _b.manualUpdate, loading = _b.loading, loadingOptions = _b.loadingOptions;
|
||||
var realOption = vueDemi.computed(function () { return manualOption.value || props.option || null; });
|
||||
var realTheme = vueDemi.computed(function () { return props.theme || unwrapInjected(defaultTheme, {}); });
|
||||
var realInitOptions = vueDemi.computed(function () { return props.initOptions || unwrapInjected(defaultInitOptions, {}); });
|
||||
var realUpdateOptions = vueDemi.computed(function () { return props.updateOptions || unwrapInjected(defaultUpdateOptions, {}); });
|
||||
var nonEventAttrs = vueDemi.computed(function () { return omitOn(attrs); });
|
||||
var nativeListeners = {};
|
||||
var listeners = vueDemi.getCurrentInstance().proxy.$listeners;
|
||||
var realListeners = {};
|
||||
if (!listeners) {
|
||||
Object.keys(attrs)
|
||||
.filter(function (key) { return isOn(key); })
|
||||
.forEach(function (key) {
|
||||
var event = key.charAt(2).toLowerCase() + key.slice(3);
|
||||
if (event.indexOf("native:") === 0) {
|
||||
var nativeKey = "on".concat(event.charAt(7).toUpperCase()).concat(event.slice(8));
|
||||
nativeListeners[nativeKey] = attrs[key];
|
||||
return;
|
||||
}
|
||||
if (event.substring(event.length - 4) === "Once") {
|
||||
event = "~".concat(event.substring(0, event.length - 4));
|
||||
}
|
||||
realListeners[event] = attrs[key];
|
||||
});
|
||||
}
|
||||
else {
|
||||
Object.keys(listeners).forEach(function (key) {
|
||||
if (NATIVE_EVENT_RE.test(key)) {
|
||||
nativeListeners[key.replace(NATIVE_EVENT_RE, "$1")] = listeners[key];
|
||||
}
|
||||
else {
|
||||
realListeners[key] = listeners[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
function init(option) {
|
||||
if (!inner.value) {
|
||||
return;
|
||||
}
|
||||
var instance = (chart.value = core.init(inner.value, realTheme.value, realInitOptions.value));
|
||||
if (props.group) {
|
||||
instance.group = props.group;
|
||||
}
|
||||
Object.keys(realListeners).forEach(function (key) {
|
||||
var handler = realListeners[key];
|
||||
if (!handler) {
|
||||
return;
|
||||
}
|
||||
var event = key.toLowerCase();
|
||||
if (event.charAt(0) === "~") {
|
||||
event = event.substring(1);
|
||||
handler.__once__ = true;
|
||||
}
|
||||
var target = instance;
|
||||
if (event.indexOf("zr:") === 0) {
|
||||
target = instance.getZr();
|
||||
event = event.substring(3);
|
||||
}
|
||||
if (handler.__once__) {
|
||||
delete handler.__once__;
|
||||
var raw_1 = handler;
|
||||
handler = function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
raw_1.apply(void 0, args);
|
||||
target.off(event, handler);
|
||||
};
|
||||
}
|
||||
target.on(event, handler);
|
||||
});
|
||||
function resize() {
|
||||
if (instance && !instance.isDisposed()) {
|
||||
instance.resize();
|
||||
}
|
||||
}
|
||||
function commit() {
|
||||
var opt = option || realOption.value;
|
||||
if (opt) {
|
||||
instance.setOption(opt, realUpdateOptions.value);
|
||||
}
|
||||
}
|
||||
if (autoresize.value) {
|
||||
vueDemi.nextTick(function () {
|
||||
resize();
|
||||
commit();
|
||||
});
|
||||
}
|
||||
else {
|
||||
commit();
|
||||
}
|
||||
}
|
||||
function setOption(option, updateOptions) {
|
||||
if (props.manualUpdate) {
|
||||
manualOption.value = option;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init(option);
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, updateOptions || {});
|
||||
}
|
||||
}
|
||||
function cleanup() {
|
||||
if (chart.value) {
|
||||
chart.value.dispose();
|
||||
chart.value = undefined;
|
||||
}
|
||||
}
|
||||
var unwatchOption = null;
|
||||
vueDemi.watch(manualUpdate, function (manualUpdate) {
|
||||
if (typeof unwatchOption === "function") {
|
||||
unwatchOption();
|
||||
unwatchOption = null;
|
||||
}
|
||||
if (!manualUpdate) {
|
||||
unwatchOption = vueDemi.watch(function () { return props.option; }, function (option, oldOption) {
|
||||
if (!option) {
|
||||
return;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init();
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, __assign({ notMerge: option !== oldOption }, realUpdateOptions.value));
|
||||
}
|
||||
}, { deep: true });
|
||||
}
|
||||
}, {
|
||||
immediate: true
|
||||
});
|
||||
vueDemi.watch([realTheme, realInitOptions], function () {
|
||||
cleanup();
|
||||
init();
|
||||
}, {
|
||||
deep: true
|
||||
});
|
||||
vueDemi.watchEffect(function () {
|
||||
if (props.group && chart.value) {
|
||||
chart.value.group = props.group;
|
||||
}
|
||||
});
|
||||
var publicApi = usePublicAPI(chart);
|
||||
useLoading(chart, loading, loadingOptions);
|
||||
useAutoresize(chart, autoresize, inner);
|
||||
vueDemi.onMounted(function () {
|
||||
init();
|
||||
});
|
||||
vueDemi.onBeforeUnmount(function () {
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
});
|
||||
return __assign({ chart: chart, root: root, inner: inner, setOption: setOption, nonEventAttrs: nonEventAttrs, nativeListeners: nativeListeners }, publicApi);
|
||||
},
|
||||
render: function () {
|
||||
var attrs = (vueDemi.Vue2
|
||||
? { attrs: this.nonEventAttrs, on: this.nativeListeners }
|
||||
: __assign(__assign({}, this.nonEventAttrs), this.nativeListeners));
|
||||
attrs.ref = "root";
|
||||
attrs["class"] = attrs["class"] ? ["echarts"].concat(attrs["class"]) : "echarts";
|
||||
return vueDemi.h(TAG_NAME, attrs, [
|
||||
vueDemi.h("div", { ref: "inner", "class": "vue-echarts-inner" })
|
||||
]);
|
||||
}
|
||||
});
|
||||
|
||||
var exported = /*#__PURE__*/Object.freeze({
|
||||
__proto__: null,
|
||||
'default': ECharts,
|
||||
LOADING_OPTIONS_KEY: LOADING_OPTIONS_KEY,
|
||||
THEME_KEY: THEME_KEY,
|
||||
INIT_OPTIONS_KEY: INIT_OPTIONS_KEY,
|
||||
UPDATE_OPTIONS_KEY: UPDATE_OPTIONS_KEY
|
||||
});
|
||||
|
||||
var global = __assign(__assign({}, ECharts), exported);
|
||||
|
||||
return global;
|
||||
|
||||
}));
|
||||
//# sourceMappingURL=index.umd.js.map
|
||||
1
frontend/node_modules/vue-echarts/dist/csp/index.umd.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/csp/index.umd.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
frontend/node_modules/vue-echarts/dist/csp/index.umd.min.js
generated
vendored
Normal file
2
frontend/node_modules/vue-echarts/dist/csp/index.umd.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend/node_modules/vue-echarts/dist/csp/index.umd.min.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/csp/index.umd.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
frontend/node_modules/vue-echarts/dist/csp/style.css
generated
vendored
Normal file
2
frontend/node_modules/vue-echarts/dist/csp/style.css
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0}
|
||||
.vue-echarts-inner{flex-grow:1;min-width:0;width:auto!important;height:auto!important}
|
||||
371
frontend/node_modules/vue-echarts/dist/index.cjs.js
generated
vendored
Normal file
371
frontend/node_modules/vue-echarts/dist/index.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,371 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var vueDemi = require('vue-demi');
|
||||
var core = require('echarts/core');
|
||||
var resizeDetector = require('resize-detector');
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
var __assign = function() {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
|
||||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
||||
var e = new Error(message);
|
||||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
||||
};
|
||||
|
||||
var METHOD_NAMES = [
|
||||
"getWidth",
|
||||
"getHeight",
|
||||
"getDom",
|
||||
"getOption",
|
||||
"resize",
|
||||
"dispatchAction",
|
||||
"convertToPixel",
|
||||
"convertFromPixel",
|
||||
"containPixel",
|
||||
"getDataURL",
|
||||
"getConnectedDataURL",
|
||||
"appendData",
|
||||
"clear",
|
||||
"isDisposed",
|
||||
"dispose"
|
||||
];
|
||||
function usePublicAPI(chart) {
|
||||
function makePublicMethod(name) {
|
||||
return function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
if (!chart.value) {
|
||||
throw new Error("ECharts is not initialized yet.");
|
||||
}
|
||||
return chart.value[name].apply(chart.value, args);
|
||||
};
|
||||
}
|
||||
function makePublicMethods() {
|
||||
var methods = Object.create(null);
|
||||
METHOD_NAMES.forEach(function (name) {
|
||||
methods[name] = makePublicMethod(name);
|
||||
});
|
||||
return methods;
|
||||
}
|
||||
return makePublicMethods();
|
||||
}
|
||||
|
||||
function useAutoresize(chart, autoresize, root) {
|
||||
var resizeListener = null;
|
||||
vueDemi.watch([root, chart, autoresize], function (_a, _, cleanup) {
|
||||
var root = _a[0], chart = _a[1], autoresize = _a[2];
|
||||
if (root && chart && autoresize) {
|
||||
var autoresizeOptions = autoresize === true ? {} : autoresize;
|
||||
var _b = autoresizeOptions.throttle, wait = _b === void 0 ? 100 : _b, onResize_1 = autoresizeOptions.onResize;
|
||||
var callback = function () {
|
||||
chart.resize();
|
||||
onResize_1 === null || onResize_1 === void 0 ? void 0 : onResize_1();
|
||||
};
|
||||
resizeListener = wait ? core.throttle(callback, wait) : callback;
|
||||
resizeDetector.addListener(root, resizeListener);
|
||||
}
|
||||
cleanup(function () {
|
||||
if (root && resizeListener) {
|
||||
resizeDetector.removeListener(root, resizeListener);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
var autoresizeProps = {
|
||||
autoresize: [Boolean, Object]
|
||||
};
|
||||
|
||||
var onRE = /^on[^a-z]/;
|
||||
var isOn = function (key) { return onRE.test(key); };
|
||||
function omitOn(attrs) {
|
||||
var result = {};
|
||||
for (var key in attrs) {
|
||||
if (!isOn(key)) {
|
||||
result[key] = attrs[key];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function unwrapInjected(injection, defaultValue) {
|
||||
var value = vueDemi.isRef(injection) ? vueDemi.unref(injection) : injection;
|
||||
if (value && typeof value === "object" && "value" in value) {
|
||||
return value.value || defaultValue;
|
||||
}
|
||||
return value || defaultValue;
|
||||
}
|
||||
|
||||
var LOADING_OPTIONS_KEY = "ecLoadingOptions";
|
||||
function useLoading(chart, loading, loadingOptions) {
|
||||
var defaultLoadingOptions = vueDemi.inject(LOADING_OPTIONS_KEY, {});
|
||||
var realLoadingOptions = vueDemi.computed(function () { return (__assign(__assign({}, unwrapInjected(defaultLoadingOptions, {})), loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.value)); });
|
||||
vueDemi.watchEffect(function () {
|
||||
var instance = chart.value;
|
||||
if (!instance) {
|
||||
return;
|
||||
}
|
||||
if (loading.value) {
|
||||
instance.showLoading(realLoadingOptions.value);
|
||||
}
|
||||
else {
|
||||
instance.hideLoading();
|
||||
}
|
||||
});
|
||||
}
|
||||
var loadingProps = {
|
||||
loading: Boolean,
|
||||
loadingOptions: Object
|
||||
};
|
||||
|
||||
var registered = null;
|
||||
var TAG_NAME = "x-vue-echarts";
|
||||
function register() {
|
||||
if (registered != null) {
|
||||
return registered;
|
||||
}
|
||||
if (typeof HTMLElement === "undefined" ||
|
||||
typeof customElements === "undefined") {
|
||||
return (registered = false);
|
||||
}
|
||||
try {
|
||||
var reg = new Function("tag", "class EChartsElement extends HTMLElement {\n __dispose = null;\n\n disconnectedCallback() {\n if (this.__dispose) {\n this.__dispose();\n this.__dispose = null;\n }\n }\n}\n\nif (customElements.get(tag) == null) {\n customElements.define(tag, EChartsElement);\n}\n");
|
||||
reg(TAG_NAME);
|
||||
}
|
||||
catch (e) {
|
||||
return (registered = false);
|
||||
}
|
||||
return (registered = true);
|
||||
}
|
||||
|
||||
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
||||
|
||||
var css = "x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0}\n.vue-echarts-inner{flex-grow:1;min-width:0;width:auto!important;height:auto!important}\n";
|
||||
n(css,{});
|
||||
|
||||
var wcRegistered = register();
|
||||
if (vueDemi.Vue2) {
|
||||
vueDemi.Vue2.config.ignoredElements.push(TAG_NAME);
|
||||
}
|
||||
var THEME_KEY = "ecTheme";
|
||||
var INIT_OPTIONS_KEY = "ecInitOptions";
|
||||
var UPDATE_OPTIONS_KEY = "ecUpdateOptions";
|
||||
var NATIVE_EVENT_RE = /(^&?~?!?)native:/;
|
||||
var ECharts = vueDemi.defineComponent({
|
||||
name: "echarts",
|
||||
props: __assign(__assign({ option: Object, theme: {
|
||||
type: [Object, String]
|
||||
}, initOptions: Object, updateOptions: Object, group: String, manualUpdate: Boolean }, autoresizeProps), loadingProps),
|
||||
emits: {},
|
||||
inheritAttrs: false,
|
||||
setup: function (props, _a) {
|
||||
var attrs = _a.attrs;
|
||||
var root = vueDemi.shallowRef();
|
||||
var inner = vueDemi.shallowRef();
|
||||
var chart = vueDemi.shallowRef();
|
||||
var manualOption = vueDemi.shallowRef();
|
||||
var defaultTheme = vueDemi.inject(THEME_KEY, null);
|
||||
var defaultInitOptions = vueDemi.inject(INIT_OPTIONS_KEY, null);
|
||||
var defaultUpdateOptions = vueDemi.inject(UPDATE_OPTIONS_KEY, null);
|
||||
var _b = vueDemi.toRefs(props), autoresize = _b.autoresize, manualUpdate = _b.manualUpdate, loading = _b.loading, loadingOptions = _b.loadingOptions;
|
||||
var realOption = vueDemi.computed(function () { return manualOption.value || props.option || null; });
|
||||
var realTheme = vueDemi.computed(function () { return props.theme || unwrapInjected(defaultTheme, {}); });
|
||||
var realInitOptions = vueDemi.computed(function () { return props.initOptions || unwrapInjected(defaultInitOptions, {}); });
|
||||
var realUpdateOptions = vueDemi.computed(function () { return props.updateOptions || unwrapInjected(defaultUpdateOptions, {}); });
|
||||
var nonEventAttrs = vueDemi.computed(function () { return omitOn(attrs); });
|
||||
var nativeListeners = {};
|
||||
var listeners = vueDemi.getCurrentInstance().proxy.$listeners;
|
||||
var realListeners = {};
|
||||
if (!listeners) {
|
||||
Object.keys(attrs)
|
||||
.filter(function (key) { return isOn(key); })
|
||||
.forEach(function (key) {
|
||||
var event = key.charAt(2).toLowerCase() + key.slice(3);
|
||||
if (event.indexOf("native:") === 0) {
|
||||
var nativeKey = "on".concat(event.charAt(7).toUpperCase()).concat(event.slice(8));
|
||||
nativeListeners[nativeKey] = attrs[key];
|
||||
return;
|
||||
}
|
||||
if (event.substring(event.length - 4) === "Once") {
|
||||
event = "~".concat(event.substring(0, event.length - 4));
|
||||
}
|
||||
realListeners[event] = attrs[key];
|
||||
});
|
||||
}
|
||||
else {
|
||||
Object.keys(listeners).forEach(function (key) {
|
||||
if (NATIVE_EVENT_RE.test(key)) {
|
||||
nativeListeners[key.replace(NATIVE_EVENT_RE, "$1")] = listeners[key];
|
||||
}
|
||||
else {
|
||||
realListeners[key] = listeners[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
function init(option) {
|
||||
if (!inner.value) {
|
||||
return;
|
||||
}
|
||||
var instance = (chart.value = core.init(inner.value, realTheme.value, realInitOptions.value));
|
||||
if (props.group) {
|
||||
instance.group = props.group;
|
||||
}
|
||||
Object.keys(realListeners).forEach(function (key) {
|
||||
var handler = realListeners[key];
|
||||
if (!handler) {
|
||||
return;
|
||||
}
|
||||
var event = key.toLowerCase();
|
||||
if (event.charAt(0) === "~") {
|
||||
event = event.substring(1);
|
||||
handler.__once__ = true;
|
||||
}
|
||||
var target = instance;
|
||||
if (event.indexOf("zr:") === 0) {
|
||||
target = instance.getZr();
|
||||
event = event.substring(3);
|
||||
}
|
||||
if (handler.__once__) {
|
||||
delete handler.__once__;
|
||||
var raw_1 = handler;
|
||||
handler = function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
raw_1.apply(void 0, args);
|
||||
target.off(event, handler);
|
||||
};
|
||||
}
|
||||
target.on(event, handler);
|
||||
});
|
||||
function resize() {
|
||||
if (instance && !instance.isDisposed()) {
|
||||
instance.resize();
|
||||
}
|
||||
}
|
||||
function commit() {
|
||||
var opt = option || realOption.value;
|
||||
if (opt) {
|
||||
instance.setOption(opt, realUpdateOptions.value);
|
||||
}
|
||||
}
|
||||
if (autoresize.value) {
|
||||
vueDemi.nextTick(function () {
|
||||
resize();
|
||||
commit();
|
||||
});
|
||||
}
|
||||
else {
|
||||
commit();
|
||||
}
|
||||
}
|
||||
function setOption(option, updateOptions) {
|
||||
if (props.manualUpdate) {
|
||||
manualOption.value = option;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init(option);
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, updateOptions || {});
|
||||
}
|
||||
}
|
||||
function cleanup() {
|
||||
if (chart.value) {
|
||||
chart.value.dispose();
|
||||
chart.value = undefined;
|
||||
}
|
||||
}
|
||||
var unwatchOption = null;
|
||||
vueDemi.watch(manualUpdate, function (manualUpdate) {
|
||||
if (typeof unwatchOption === "function") {
|
||||
unwatchOption();
|
||||
unwatchOption = null;
|
||||
}
|
||||
if (!manualUpdate) {
|
||||
unwatchOption = vueDemi.watch(function () { return props.option; }, function (option, oldOption) {
|
||||
if (!option) {
|
||||
return;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init();
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, __assign({ notMerge: option !== oldOption }, realUpdateOptions.value));
|
||||
}
|
||||
}, { deep: true });
|
||||
}
|
||||
}, {
|
||||
immediate: true
|
||||
});
|
||||
vueDemi.watch([realTheme, realInitOptions], function () {
|
||||
cleanup();
|
||||
init();
|
||||
}, {
|
||||
deep: true
|
||||
});
|
||||
vueDemi.watchEffect(function () {
|
||||
if (props.group && chart.value) {
|
||||
chart.value.group = props.group;
|
||||
}
|
||||
});
|
||||
var publicApi = usePublicAPI(chart);
|
||||
useLoading(chart, loading, loadingOptions);
|
||||
useAutoresize(chart, autoresize, inner);
|
||||
vueDemi.onMounted(function () {
|
||||
init();
|
||||
});
|
||||
vueDemi.onBeforeUnmount(function () {
|
||||
if (wcRegistered && root.value) {
|
||||
root.value.__dispose = cleanup;
|
||||
}
|
||||
else {
|
||||
cleanup();
|
||||
}
|
||||
});
|
||||
return __assign({ chart: chart, root: root, inner: inner, setOption: setOption, nonEventAttrs: nonEventAttrs, nativeListeners: nativeListeners }, publicApi);
|
||||
},
|
||||
render: function () {
|
||||
var attrs = (vueDemi.Vue2
|
||||
? { attrs: this.nonEventAttrs, on: this.nativeListeners }
|
||||
: __assign(__assign({}, this.nonEventAttrs), this.nativeListeners));
|
||||
attrs.ref = "root";
|
||||
attrs["class"] = attrs["class"] ? ["echarts"].concat(attrs["class"]) : "echarts";
|
||||
return vueDemi.h(TAG_NAME, attrs, [
|
||||
vueDemi.h("div", { ref: "inner", "class": "vue-echarts-inner" })
|
||||
]);
|
||||
}
|
||||
});
|
||||
|
||||
exports.INIT_OPTIONS_KEY = INIT_OPTIONS_KEY;
|
||||
exports.LOADING_OPTIONS_KEY = LOADING_OPTIONS_KEY;
|
||||
exports.THEME_KEY = THEME_KEY;
|
||||
exports.UPDATE_OPTIONS_KEY = UPDATE_OPTIONS_KEY;
|
||||
exports["default"] = ECharts;
|
||||
//# sourceMappingURL=index.cjs.js.map
|
||||
1
frontend/node_modules/vue-echarts/dist/index.cjs.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/index.cjs.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
frontend/node_modules/vue-echarts/dist/index.cjs.min.js
generated
vendored
Normal file
2
frontend/node_modules/vue-echarts/dist/index.cjs.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend/node_modules/vue-echarts/dist/index.cjs.min.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/index.cjs.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
347
frontend/node_modules/vue-echarts/dist/index.d.ts
generated
vendored
Normal file
347
frontend/node_modules/vue-echarts/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,347 @@
|
||||
import { PropType, InjectionKey } from "vue-demi";
|
||||
import { Ref as Ref$0 } from "vue-demi";
|
||||
import { init } from "echarts/core";
|
||||
import { SetOptionOpts, ECElementEvent, ElementEvent } from "echarts";
|
||||
import { Ref } from "vue";
|
||||
type Injection<T> = T | null | Ref<T | null> | {
|
||||
value: T | null;
|
||||
};
|
||||
type InitType = typeof init;
|
||||
type InitParameters = Parameters<InitType>;
|
||||
type Theme = NonNullable<InitParameters[1]>;
|
||||
type ThemeInjection = Injection<Theme>;
|
||||
type InitOptions = NonNullable<InitParameters[2]>;
|
||||
type InitOptionsInjection = Injection<InitOptions>;
|
||||
type UpdateOptions = SetOptionOpts;
|
||||
type UpdateOptionsInjection = Injection<UpdateOptions>;
|
||||
type EChartsType = ReturnType<InitType>;
|
||||
type SetOptionType = EChartsType["setOption"];
|
||||
type Option = Parameters<SetOptionType>[0];
|
||||
type LoadingOptions = {
|
||||
text?: string;
|
||||
textColor?: string;
|
||||
fontSize?: number | string;
|
||||
fontWeight?: number | string;
|
||||
fontStyle?: string;
|
||||
fontFamily?: string;
|
||||
maskColor?: string;
|
||||
showSpinner?: boolean;
|
||||
color?: string;
|
||||
spinnerRadius?: number;
|
||||
lineWidth?: number;
|
||||
zlevel?: number;
|
||||
};
|
||||
interface EChartsElement extends HTMLElement {
|
||||
__dispose: (() => void) | null;
|
||||
}
|
||||
declare const THEME_KEY: InjectionKey<ThemeInjection>;
|
||||
declare const INIT_OPTIONS_KEY: InjectionKey<InitOptionsInjection>;
|
||||
declare const UPDATE_OPTIONS_KEY: InjectionKey<UpdateOptionsInjection>;
|
||||
declare const LOADING_OPTIONS_KEY: InjectionKey<LoadingOptions | Ref$0<LoadingOptions>>;
|
||||
declare const _default: import("vue-demi").DefineComponent<{
|
||||
loading: BooleanConstructor;
|
||||
loadingOptions: PropType<LoadingOptions>;
|
||||
autoresize: PropType<boolean | {
|
||||
throttle?: number | undefined;
|
||||
onResize?: (() => void) | undefined;
|
||||
}>;
|
||||
option: PropType<import("echarts/types/dist/shared").ECBasicOption>;
|
||||
theme: {
|
||||
type: PropType<Theme>;
|
||||
};
|
||||
initOptions: PropType<import("echarts/types/dist/shared").EChartsInitOpts>;
|
||||
updateOptions: PropType<import("echarts/types/dist/echarts").SetOptionOpts>;
|
||||
group: StringConstructor;
|
||||
manualUpdate: BooleanConstructor;
|
||||
}, {
|
||||
getWidth: () => number;
|
||||
getHeight: () => number;
|
||||
getDom: () => HTMLElement;
|
||||
getOption: () => import("echarts/types/dist/shared").ECBasicOption;
|
||||
resize: (opts?: import("echarts/types/dist/shared").ResizeOpts | undefined) => void;
|
||||
dispatchAction: (payload: import("echarts/types/dist/shared").Payload, opt?: boolean | {
|
||||
silent?: boolean | undefined;
|
||||
flush?: boolean | undefined;
|
||||
} | undefined) => void;
|
||||
convertToPixel: {
|
||||
(finder: string | {
|
||||
seriesIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
seriesId?: ((string | number) | (string | number)[]) | undefined;
|
||||
seriesName?: ((string | number) | (string | number)[]) | undefined;
|
||||
geoIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
geoId?: ((string | number) | (string | number)[]) | undefined;
|
||||
geoName?: ((string | number) | (string | number)[]) | undefined;
|
||||
bmapIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
bmapId?: ((string | number) | (string | number)[]) | undefined;
|
||||
bmapName?: ((string | number) | (string | number)[]) | undefined;
|
||||
xAxisIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
xAxisId?: ((string | number) | (string | number)[]) | undefined;
|
||||
xAxisName?: ((string | number) | (string | number)[]) | undefined;
|
||||
yAxisIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
yAxisId?: ((string | number) | (string | number)[]) | undefined;
|
||||
yAxisName?: ((string | number) | (string | number)[]) | undefined;
|
||||
gridIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
gridId?: ((string | number) | (string | number)[]) | undefined;
|
||||
gridName?: ((string | number) | (string | number)[]) | undefined;
|
||||
dataIndex?: number | undefined;
|
||||
dataIndexInside?: number | undefined;
|
||||
}, value: (string | number) | Date): number;
|
||||
(finder: string | {
|
||||
seriesIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
seriesId?: ((string | number) | (string | number)[]) | undefined;
|
||||
seriesName?: ((string | number) | (string | number)[]) | undefined;
|
||||
geoIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
geoId?: ((string | number) | (string | number)[]) | undefined;
|
||||
geoName?: ((string | number) | (string | number)[]) | undefined;
|
||||
bmapIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
bmapId?: ((string | number) | (string | number)[]) | undefined;
|
||||
bmapName?: ((string | number) | (string | number)[]) | undefined;
|
||||
xAxisIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
xAxisId?: ((string | number) | (string | number)[]) | undefined;
|
||||
xAxisName?: ((string | number) | (string | number)[]) | undefined;
|
||||
yAxisIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
yAxisId?: ((string | number) | (string | number)[]) | undefined;
|
||||
yAxisName?: ((string | number) | (string | number)[]) | undefined;
|
||||
gridIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
gridId?: ((string | number) | (string | number)[]) | undefined;
|
||||
gridName?: ((string | number) | (string | number)[]) | undefined;
|
||||
dataIndex?: number | undefined;
|
||||
dataIndexInside?: number | undefined;
|
||||
}, value: ((string | number) | Date)[]): number[];
|
||||
};
|
||||
convertFromPixel: {
|
||||
(finder: string | {
|
||||
seriesIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
seriesId?: ((string | number) | (string | number)[]) | undefined;
|
||||
seriesName?: ((string | number) | (string | number)[]) | undefined;
|
||||
geoIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
geoId?: ((string | number) | (string | number)[]) | undefined;
|
||||
geoName?: ((string | number) | (string | number)[]) | undefined;
|
||||
bmapIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
bmapId?: ((string | number) | (string | number)[]) | undefined;
|
||||
bmapName?: ((string | number) | (string | number)[]) | undefined;
|
||||
xAxisIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
xAxisId?: ((string | number) | (string | number)[]) | undefined;
|
||||
xAxisName?: ((string | number) | (string | number)[]) | undefined;
|
||||
yAxisIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
yAxisId?: ((string | number) | (string | number)[]) | undefined;
|
||||
yAxisName?: ((string | number) | (string | number)[]) | undefined;
|
||||
gridIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
gridId?: ((string | number) | (string | number)[]) | undefined;
|
||||
gridName?: ((string | number) | (string | number)[]) | undefined;
|
||||
dataIndex?: number | undefined;
|
||||
dataIndexInside?: number | undefined;
|
||||
}, value: number): number;
|
||||
(finder: string | {
|
||||
seriesIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
seriesId?: ((string | number) | (string | number)[]) | undefined;
|
||||
seriesName?: ((string | number) | (string | number)[]) | undefined;
|
||||
geoIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
geoId?: ((string | number) | (string | number)[]) | undefined;
|
||||
geoName?: ((string | number) | (string | number)[]) | undefined;
|
||||
bmapIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
bmapId?: ((string | number) | (string | number)[]) | undefined;
|
||||
bmapName?: ((string | number) | (string | number)[]) | undefined;
|
||||
xAxisIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
xAxisId?: ((string | number) | (string | number)[]) | undefined;
|
||||
xAxisName?: ((string | number) | (string | number)[]) | undefined;
|
||||
yAxisIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
yAxisId?: ((string | number) | (string | number)[]) | undefined;
|
||||
yAxisName?: ((string | number) | (string | number)[]) | undefined;
|
||||
gridIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
gridId?: ((string | number) | (string | number)[]) | undefined;
|
||||
gridName?: ((string | number) | (string | number)[]) | undefined;
|
||||
dataIndex?: number | undefined;
|
||||
dataIndexInside?: number | undefined;
|
||||
}, value: number[]): number[];
|
||||
};
|
||||
containPixel: (finder: string | {
|
||||
seriesIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
seriesId?: ((string | number) | (string | number)[]) | undefined;
|
||||
seriesName?: ((string | number) | (string | number)[]) | undefined;
|
||||
geoIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
geoId?: ((string | number) | (string | number)[]) | undefined;
|
||||
geoName?: ((string | number) | (string | number)[]) | undefined;
|
||||
bmapIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
bmapId?: ((string | number) | (string | number)[]) | undefined;
|
||||
bmapName?: ((string | number) | (string | number)[]) | undefined;
|
||||
xAxisIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
xAxisId?: ((string | number) | (string | number)[]) | undefined;
|
||||
xAxisName?: ((string | number) | (string | number)[]) | undefined;
|
||||
yAxisIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
yAxisId?: ((string | number) | (string | number)[]) | undefined;
|
||||
yAxisName?: ((string | number) | (string | number)[]) | undefined;
|
||||
gridIndex?: (number | false | number[] | "all" | "none") | undefined;
|
||||
gridId?: ((string | number) | (string | number)[]) | undefined;
|
||||
gridName?: ((string | number) | (string | number)[]) | undefined;
|
||||
dataIndex?: number | undefined;
|
||||
dataIndexInside?: number | undefined;
|
||||
}, value: number[]) => boolean;
|
||||
getDataURL: (opts?: {
|
||||
type?: "svg" | "png" | "jpeg" | undefined;
|
||||
pixelRatio?: number | undefined;
|
||||
backgroundColor?: import("echarts/types/dist/shared").ZRColor | undefined;
|
||||
excludeComponents?: string[] | undefined;
|
||||
} | undefined) => string;
|
||||
getConnectedDataURL: (opts?: {
|
||||
type?: "svg" | "png" | "jpeg" | undefined;
|
||||
pixelRatio?: number | undefined;
|
||||
backgroundColor?: import("echarts/types/dist/shared").ZRColor | undefined;
|
||||
connectedBackgroundColor?: import("echarts/types/dist/shared").ZRColor | undefined;
|
||||
excludeComponents?: string[] | undefined;
|
||||
} | undefined) => string;
|
||||
appendData: (params: {
|
||||
seriesIndex: number;
|
||||
data: any;
|
||||
}) => void;
|
||||
clear: () => void;
|
||||
isDisposed: () => boolean;
|
||||
dispose: () => void;
|
||||
chart: import("vue-demi").ShallowRef<import("echarts/types/dist/shared").EChartsType | undefined>;
|
||||
root: import("vue-demi").ShallowRef<EChartsElement | undefined>;
|
||||
inner: import("vue-demi").ShallowRef<HTMLElement | undefined>;
|
||||
setOption: (option: Option, updateOptions?: import("echarts/types/dist/echarts").SetOptionOpts | undefined) => void;
|
||||
nonEventAttrs: import("vue-demi").ComputedRef<{
|
||||
[key: string]: any;
|
||||
}>;
|
||||
nativeListeners: Record<string, unknown>;
|
||||
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {
|
||||
click: (params: import("echarts/types/dist/echarts").ECElementEvent) => boolean;
|
||||
dblclick: (params: import("echarts/types/dist/echarts").ECElementEvent) => boolean;
|
||||
mouseout: (params: import("echarts/types/dist/echarts").ECElementEvent) => boolean;
|
||||
mouseover: (params: import("echarts/types/dist/echarts").ECElementEvent) => boolean;
|
||||
mouseup: (params: import("echarts/types/dist/echarts").ECElementEvent) => boolean;
|
||||
mousedown: (params: import("echarts/types/dist/echarts").ECElementEvent) => boolean;
|
||||
mousemove: (params: import("echarts/types/dist/echarts").ECElementEvent) => boolean;
|
||||
contextmenu: (params: import("echarts/types/dist/echarts").ECElementEvent) => boolean;
|
||||
globalout: (params: import("echarts/types/dist/echarts").ECElementEvent) => boolean;
|
||||
} & {
|
||||
highlight: null;
|
||||
downplay: null;
|
||||
selectchanged: null;
|
||||
legendselectchanged: null;
|
||||
legendselected: null;
|
||||
legendunselected: null;
|
||||
legendselectall: null;
|
||||
legendinverseselect: null;
|
||||
legendscroll: null;
|
||||
datazoom: null;
|
||||
datarangeselected: null;
|
||||
graphroam: null;
|
||||
georoam: null;
|
||||
treeroam: null;
|
||||
timelinechanged: null;
|
||||
timelineplaychanged: null;
|
||||
restore: null;
|
||||
dataviewchanged: null;
|
||||
magictypechanged: null;
|
||||
geoselectchanged: null;
|
||||
geoselected: null;
|
||||
geounselected: null;
|
||||
axisareaselected: null;
|
||||
brush: null;
|
||||
brushEnd: null;
|
||||
brushselected: null;
|
||||
globalcursortaken: null;
|
||||
} & {
|
||||
rendered: (params: {
|
||||
elapsedTime: number;
|
||||
}) => boolean;
|
||||
finished: () => boolean;
|
||||
} & {
|
||||
"zr:mousewheel": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:drag": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:dragstart": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:dragend": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:dragenter": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:dragleave": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:dragover": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:drop": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:click": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:dblclick": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:mouseout": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:mouseover": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:mouseup": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:mousedown": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:mousemove": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:contextmenu": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
"zr:globalout": (params: import("echarts/types/dist/echarts").ElementEvent) => boolean;
|
||||
}, string, import("vue-demi").PublicProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
||||
loading: BooleanConstructor;
|
||||
loadingOptions: PropType<LoadingOptions>;
|
||||
autoresize: PropType<boolean | {
|
||||
throttle?: number | undefined;
|
||||
onResize?: (() => void) | undefined;
|
||||
}>;
|
||||
option: PropType<import("echarts/types/dist/shared").ECBasicOption>;
|
||||
theme: {
|
||||
type: PropType<Theme>;
|
||||
};
|
||||
initOptions: PropType<import("echarts/types/dist/shared").EChartsInitOpts>;
|
||||
updateOptions: PropType<import("echarts/types/dist/echarts").SetOptionOpts>;
|
||||
group: StringConstructor;
|
||||
manualUpdate: BooleanConstructor;
|
||||
}>> & {
|
||||
onClick?: ((params: import("echarts/types/dist/echarts").ECElementEvent) => any) | undefined;
|
||||
onDblclick?: ((params: import("echarts/types/dist/echarts").ECElementEvent) => any) | undefined;
|
||||
onMouseout?: ((params: import("echarts/types/dist/echarts").ECElementEvent) => any) | undefined;
|
||||
onMouseover?: ((params: import("echarts/types/dist/echarts").ECElementEvent) => any) | undefined;
|
||||
onMouseup?: ((params: import("echarts/types/dist/echarts").ECElementEvent) => any) | undefined;
|
||||
onMousedown?: ((params: import("echarts/types/dist/echarts").ECElementEvent) => any) | undefined;
|
||||
onMousemove?: ((params: import("echarts/types/dist/echarts").ECElementEvent) => any) | undefined;
|
||||
onContextmenu?: ((params: import("echarts/types/dist/echarts").ECElementEvent) => any) | undefined;
|
||||
onGlobalout?: ((params: import("echarts/types/dist/echarts").ECElementEvent) => any) | undefined;
|
||||
"onZr:mousewheel"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:drag"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:dragstart"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:dragend"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:dragenter"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:dragleave"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:dragover"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:drop"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:click"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:dblclick"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:mouseout"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:mouseover"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:mouseup"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:mousedown"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:mousemove"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:contextmenu"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
"onZr:globalout"?: ((params: import("echarts/types/dist/echarts").ElementEvent) => any) | undefined;
|
||||
onHighlight?: ((...args: any[]) => any) | undefined;
|
||||
onDownplay?: ((...args: any[]) => any) | undefined;
|
||||
onSelectchanged?: ((...args: any[]) => any) | undefined;
|
||||
onLegendselectchanged?: ((...args: any[]) => any) | undefined;
|
||||
onLegendselected?: ((...args: any[]) => any) | undefined;
|
||||
onLegendunselected?: ((...args: any[]) => any) | undefined;
|
||||
onLegendselectall?: ((...args: any[]) => any) | undefined;
|
||||
onLegendinverseselect?: ((...args: any[]) => any) | undefined;
|
||||
onLegendscroll?: ((...args: any[]) => any) | undefined;
|
||||
onDatazoom?: ((...args: any[]) => any) | undefined;
|
||||
onDatarangeselected?: ((...args: any[]) => any) | undefined;
|
||||
onGraphroam?: ((...args: any[]) => any) | undefined;
|
||||
onGeoroam?: ((...args: any[]) => any) | undefined;
|
||||
onTreeroam?: ((...args: any[]) => any) | undefined;
|
||||
onTimelinechanged?: ((...args: any[]) => any) | undefined;
|
||||
onTimelineplaychanged?: ((...args: any[]) => any) | undefined;
|
||||
onRestore?: ((...args: any[]) => any) | undefined;
|
||||
onDataviewchanged?: ((...args: any[]) => any) | undefined;
|
||||
onMagictypechanged?: ((...args: any[]) => any) | undefined;
|
||||
onGeoselectchanged?: ((...args: any[]) => any) | undefined;
|
||||
onGeoselected?: ((...args: any[]) => any) | undefined;
|
||||
onGeounselected?: ((...args: any[]) => any) | undefined;
|
||||
onAxisareaselected?: ((...args: any[]) => any) | undefined;
|
||||
onBrush?: ((...args: any[]) => any) | undefined;
|
||||
onBrushEnd?: ((...args: any[]) => any) | undefined;
|
||||
onBrushselected?: ((...args: any[]) => any) | undefined;
|
||||
onGlobalcursortaken?: ((...args: any[]) => any) | undefined;
|
||||
onRendered?: ((params: {
|
||||
elapsedTime: number;
|
||||
}) => any) | undefined;
|
||||
onFinished?: (() => any) | undefined;
|
||||
}, {
|
||||
manualUpdate: boolean;
|
||||
loading: boolean;
|
||||
}, {}>;
|
||||
declare const ECharts: typeof _default;
|
||||
export { ECharts as default, THEME_KEY, INIT_OPTIONS_KEY, UPDATE_OPTIONS_KEY, LOADING_OPTIONS_KEY, _default };
|
||||
363
frontend/node_modules/vue-echarts/dist/index.esm.js
generated
vendored
Normal file
363
frontend/node_modules/vue-echarts/dist/index.esm.js
generated
vendored
Normal file
@@ -0,0 +1,363 @@
|
||||
import { watch, isRef, unref, inject, computed, watchEffect, Vue2, defineComponent, shallowRef, toRefs, getCurrentInstance, onMounted, onBeforeUnmount, h, nextTick } from 'vue-demi';
|
||||
import { throttle, init } from 'echarts/core';
|
||||
import { addListener, removeListener } from 'resize-detector';
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
var __assign = function() {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
|
||||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
||||
var e = new Error(message);
|
||||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
||||
};
|
||||
|
||||
var METHOD_NAMES = [
|
||||
"getWidth",
|
||||
"getHeight",
|
||||
"getDom",
|
||||
"getOption",
|
||||
"resize",
|
||||
"dispatchAction",
|
||||
"convertToPixel",
|
||||
"convertFromPixel",
|
||||
"containPixel",
|
||||
"getDataURL",
|
||||
"getConnectedDataURL",
|
||||
"appendData",
|
||||
"clear",
|
||||
"isDisposed",
|
||||
"dispose"
|
||||
];
|
||||
function usePublicAPI(chart) {
|
||||
function makePublicMethod(name) {
|
||||
return function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
if (!chart.value) {
|
||||
throw new Error("ECharts is not initialized yet.");
|
||||
}
|
||||
return chart.value[name].apply(chart.value, args);
|
||||
};
|
||||
}
|
||||
function makePublicMethods() {
|
||||
var methods = Object.create(null);
|
||||
METHOD_NAMES.forEach(function (name) {
|
||||
methods[name] = makePublicMethod(name);
|
||||
});
|
||||
return methods;
|
||||
}
|
||||
return makePublicMethods();
|
||||
}
|
||||
|
||||
function useAutoresize(chart, autoresize, root) {
|
||||
var resizeListener = null;
|
||||
watch([root, chart, autoresize], function (_a, _, cleanup) {
|
||||
var root = _a[0], chart = _a[1], autoresize = _a[2];
|
||||
if (root && chart && autoresize) {
|
||||
var autoresizeOptions = autoresize === true ? {} : autoresize;
|
||||
var _b = autoresizeOptions.throttle, wait = _b === void 0 ? 100 : _b, onResize_1 = autoresizeOptions.onResize;
|
||||
var callback = function () {
|
||||
chart.resize();
|
||||
onResize_1 === null || onResize_1 === void 0 ? void 0 : onResize_1();
|
||||
};
|
||||
resizeListener = wait ? throttle(callback, wait) : callback;
|
||||
addListener(root, resizeListener);
|
||||
}
|
||||
cleanup(function () {
|
||||
if (root && resizeListener) {
|
||||
removeListener(root, resizeListener);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
var autoresizeProps = {
|
||||
autoresize: [Boolean, Object]
|
||||
};
|
||||
|
||||
var onRE = /^on[^a-z]/;
|
||||
var isOn = function (key) { return onRE.test(key); };
|
||||
function omitOn(attrs) {
|
||||
var result = {};
|
||||
for (var key in attrs) {
|
||||
if (!isOn(key)) {
|
||||
result[key] = attrs[key];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function unwrapInjected(injection, defaultValue) {
|
||||
var value = isRef(injection) ? unref(injection) : injection;
|
||||
if (value && typeof value === "object" && "value" in value) {
|
||||
return value.value || defaultValue;
|
||||
}
|
||||
return value || defaultValue;
|
||||
}
|
||||
|
||||
var LOADING_OPTIONS_KEY = "ecLoadingOptions";
|
||||
function useLoading(chart, loading, loadingOptions) {
|
||||
var defaultLoadingOptions = inject(LOADING_OPTIONS_KEY, {});
|
||||
var realLoadingOptions = computed(function () { return (__assign(__assign({}, unwrapInjected(defaultLoadingOptions, {})), loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.value)); });
|
||||
watchEffect(function () {
|
||||
var instance = chart.value;
|
||||
if (!instance) {
|
||||
return;
|
||||
}
|
||||
if (loading.value) {
|
||||
instance.showLoading(realLoadingOptions.value);
|
||||
}
|
||||
else {
|
||||
instance.hideLoading();
|
||||
}
|
||||
});
|
||||
}
|
||||
var loadingProps = {
|
||||
loading: Boolean,
|
||||
loadingOptions: Object
|
||||
};
|
||||
|
||||
var registered = null;
|
||||
var TAG_NAME = "x-vue-echarts";
|
||||
function register() {
|
||||
if (registered != null) {
|
||||
return registered;
|
||||
}
|
||||
if (typeof HTMLElement === "undefined" ||
|
||||
typeof customElements === "undefined") {
|
||||
return (registered = false);
|
||||
}
|
||||
try {
|
||||
var reg = new Function("tag", "class EChartsElement extends HTMLElement {\n __dispose = null;\n\n disconnectedCallback() {\n if (this.__dispose) {\n this.__dispose();\n this.__dispose = null;\n }\n }\n}\n\nif (customElements.get(tag) == null) {\n customElements.define(tag, EChartsElement);\n}\n");
|
||||
reg(TAG_NAME);
|
||||
}
|
||||
catch (e) {
|
||||
return (registered = false);
|
||||
}
|
||||
return (registered = true);
|
||||
}
|
||||
|
||||
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
||||
|
||||
var css = "x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0}\n.vue-echarts-inner{flex-grow:1;min-width:0;width:auto!important;height:auto!important}\n";
|
||||
n(css,{});
|
||||
|
||||
var wcRegistered = register();
|
||||
if (Vue2) {
|
||||
Vue2.config.ignoredElements.push(TAG_NAME);
|
||||
}
|
||||
var THEME_KEY = "ecTheme";
|
||||
var INIT_OPTIONS_KEY = "ecInitOptions";
|
||||
var UPDATE_OPTIONS_KEY = "ecUpdateOptions";
|
||||
var NATIVE_EVENT_RE = /(^&?~?!?)native:/;
|
||||
var ECharts = defineComponent({
|
||||
name: "echarts",
|
||||
props: __assign(__assign({ option: Object, theme: {
|
||||
type: [Object, String]
|
||||
}, initOptions: Object, updateOptions: Object, group: String, manualUpdate: Boolean }, autoresizeProps), loadingProps),
|
||||
emits: {},
|
||||
inheritAttrs: false,
|
||||
setup: function (props, _a) {
|
||||
var attrs = _a.attrs;
|
||||
var root = shallowRef();
|
||||
var inner = shallowRef();
|
||||
var chart = shallowRef();
|
||||
var manualOption = shallowRef();
|
||||
var defaultTheme = inject(THEME_KEY, null);
|
||||
var defaultInitOptions = inject(INIT_OPTIONS_KEY, null);
|
||||
var defaultUpdateOptions = inject(UPDATE_OPTIONS_KEY, null);
|
||||
var _b = toRefs(props), autoresize = _b.autoresize, manualUpdate = _b.manualUpdate, loading = _b.loading, loadingOptions = _b.loadingOptions;
|
||||
var realOption = computed(function () { return manualOption.value || props.option || null; });
|
||||
var realTheme = computed(function () { return props.theme || unwrapInjected(defaultTheme, {}); });
|
||||
var realInitOptions = computed(function () { return props.initOptions || unwrapInjected(defaultInitOptions, {}); });
|
||||
var realUpdateOptions = computed(function () { return props.updateOptions || unwrapInjected(defaultUpdateOptions, {}); });
|
||||
var nonEventAttrs = computed(function () { return omitOn(attrs); });
|
||||
var nativeListeners = {};
|
||||
var listeners = getCurrentInstance().proxy.$listeners;
|
||||
var realListeners = {};
|
||||
if (!listeners) {
|
||||
Object.keys(attrs)
|
||||
.filter(function (key) { return isOn(key); })
|
||||
.forEach(function (key) {
|
||||
var event = key.charAt(2).toLowerCase() + key.slice(3);
|
||||
if (event.indexOf("native:") === 0) {
|
||||
var nativeKey = "on".concat(event.charAt(7).toUpperCase()).concat(event.slice(8));
|
||||
nativeListeners[nativeKey] = attrs[key];
|
||||
return;
|
||||
}
|
||||
if (event.substring(event.length - 4) === "Once") {
|
||||
event = "~".concat(event.substring(0, event.length - 4));
|
||||
}
|
||||
realListeners[event] = attrs[key];
|
||||
});
|
||||
}
|
||||
else {
|
||||
Object.keys(listeners).forEach(function (key) {
|
||||
if (NATIVE_EVENT_RE.test(key)) {
|
||||
nativeListeners[key.replace(NATIVE_EVENT_RE, "$1")] = listeners[key];
|
||||
}
|
||||
else {
|
||||
realListeners[key] = listeners[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
function init$1(option) {
|
||||
if (!inner.value) {
|
||||
return;
|
||||
}
|
||||
var instance = (chart.value = init(inner.value, realTheme.value, realInitOptions.value));
|
||||
if (props.group) {
|
||||
instance.group = props.group;
|
||||
}
|
||||
Object.keys(realListeners).forEach(function (key) {
|
||||
var handler = realListeners[key];
|
||||
if (!handler) {
|
||||
return;
|
||||
}
|
||||
var event = key.toLowerCase();
|
||||
if (event.charAt(0) === "~") {
|
||||
event = event.substring(1);
|
||||
handler.__once__ = true;
|
||||
}
|
||||
var target = instance;
|
||||
if (event.indexOf("zr:") === 0) {
|
||||
target = instance.getZr();
|
||||
event = event.substring(3);
|
||||
}
|
||||
if (handler.__once__) {
|
||||
delete handler.__once__;
|
||||
var raw_1 = handler;
|
||||
handler = function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
raw_1.apply(void 0, args);
|
||||
target.off(event, handler);
|
||||
};
|
||||
}
|
||||
target.on(event, handler);
|
||||
});
|
||||
function resize() {
|
||||
if (instance && !instance.isDisposed()) {
|
||||
instance.resize();
|
||||
}
|
||||
}
|
||||
function commit() {
|
||||
var opt = option || realOption.value;
|
||||
if (opt) {
|
||||
instance.setOption(opt, realUpdateOptions.value);
|
||||
}
|
||||
}
|
||||
if (autoresize.value) {
|
||||
nextTick(function () {
|
||||
resize();
|
||||
commit();
|
||||
});
|
||||
}
|
||||
else {
|
||||
commit();
|
||||
}
|
||||
}
|
||||
function setOption(option, updateOptions) {
|
||||
if (props.manualUpdate) {
|
||||
manualOption.value = option;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init$1(option);
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, updateOptions || {});
|
||||
}
|
||||
}
|
||||
function cleanup() {
|
||||
if (chart.value) {
|
||||
chart.value.dispose();
|
||||
chart.value = undefined;
|
||||
}
|
||||
}
|
||||
var unwatchOption = null;
|
||||
watch(manualUpdate, function (manualUpdate) {
|
||||
if (typeof unwatchOption === "function") {
|
||||
unwatchOption();
|
||||
unwatchOption = null;
|
||||
}
|
||||
if (!manualUpdate) {
|
||||
unwatchOption = watch(function () { return props.option; }, function (option, oldOption) {
|
||||
if (!option) {
|
||||
return;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init$1();
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, __assign({ notMerge: option !== oldOption }, realUpdateOptions.value));
|
||||
}
|
||||
}, { deep: true });
|
||||
}
|
||||
}, {
|
||||
immediate: true
|
||||
});
|
||||
watch([realTheme, realInitOptions], function () {
|
||||
cleanup();
|
||||
init$1();
|
||||
}, {
|
||||
deep: true
|
||||
});
|
||||
watchEffect(function () {
|
||||
if (props.group && chart.value) {
|
||||
chart.value.group = props.group;
|
||||
}
|
||||
});
|
||||
var publicApi = usePublicAPI(chart);
|
||||
useLoading(chart, loading, loadingOptions);
|
||||
useAutoresize(chart, autoresize, inner);
|
||||
onMounted(function () {
|
||||
init$1();
|
||||
});
|
||||
onBeforeUnmount(function () {
|
||||
if (wcRegistered && root.value) {
|
||||
root.value.__dispose = cleanup;
|
||||
}
|
||||
else {
|
||||
cleanup();
|
||||
}
|
||||
});
|
||||
return __assign({ chart: chart, root: root, inner: inner, setOption: setOption, nonEventAttrs: nonEventAttrs, nativeListeners: nativeListeners }, publicApi);
|
||||
},
|
||||
render: function () {
|
||||
var attrs = (Vue2
|
||||
? { attrs: this.nonEventAttrs, on: this.nativeListeners }
|
||||
: __assign(__assign({}, this.nonEventAttrs), this.nativeListeners));
|
||||
attrs.ref = "root";
|
||||
attrs["class"] = attrs["class"] ? ["echarts"].concat(attrs["class"]) : "echarts";
|
||||
return h(TAG_NAME, attrs, [
|
||||
h("div", { ref: "inner", "class": "vue-echarts-inner" })
|
||||
]);
|
||||
}
|
||||
});
|
||||
|
||||
export { INIT_OPTIONS_KEY, LOADING_OPTIONS_KEY, THEME_KEY, UPDATE_OPTIONS_KEY, ECharts as default };
|
||||
//# sourceMappingURL=index.esm.js.map
|
||||
1
frontend/node_modules/vue-echarts/dist/index.esm.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/index.esm.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
frontend/node_modules/vue-echarts/dist/index.esm.min.js
generated
vendored
Normal file
2
frontend/node_modules/vue-echarts/dist/index.esm.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend/node_modules/vue-echarts/dist/index.esm.min.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/index.esm.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
807
frontend/node_modules/vue-echarts/dist/index.umd.js
generated
vendored
Normal file
807
frontend/node_modules/vue-echarts/dist/index.umd.js
generated
vendored
Normal file
@@ -0,0 +1,807 @@
|
||||
|
||||
var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
||||
if (VueDemi.install) {
|
||||
return VueDemi
|
||||
}
|
||||
if (!Vue) {
|
||||
console.error('[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`.')
|
||||
return VueDemi
|
||||
}
|
||||
|
||||
// Vue 2.7
|
||||
if (Vue.version.slice(0, 4) === '2.7.') {
|
||||
for (var key in Vue) {
|
||||
VueDemi[key] = Vue[key]
|
||||
}
|
||||
VueDemi.isVue2 = true
|
||||
VueDemi.isVue3 = false
|
||||
VueDemi.install = function () {}
|
||||
VueDemi.Vue = Vue
|
||||
VueDemi.Vue2 = Vue
|
||||
VueDemi.version = Vue.version
|
||||
VueDemi.warn = Vue.util.warn
|
||||
function createApp(rootComponent, rootProps) {
|
||||
var vm
|
||||
var provide = {}
|
||||
var app = {
|
||||
config: Vue.config,
|
||||
use: Vue.use.bind(Vue),
|
||||
mixin: Vue.mixin.bind(Vue),
|
||||
component: Vue.component.bind(Vue),
|
||||
provide: function (key, value) {
|
||||
provide[key] = value
|
||||
return this
|
||||
},
|
||||
directive: function (name, dir) {
|
||||
if (dir) {
|
||||
Vue.directive(name, dir)
|
||||
return app
|
||||
} else {
|
||||
return Vue.directive(name)
|
||||
}
|
||||
},
|
||||
mount: function (el, hydrating) {
|
||||
if (!vm) {
|
||||
vm = new Vue(Object.assign({ propsData: rootProps }, rootComponent, { provide: Object.assign(provide, rootComponent.provide) }))
|
||||
vm.$mount(el, hydrating)
|
||||
return vm
|
||||
} else {
|
||||
return vm
|
||||
}
|
||||
},
|
||||
unmount: function () {
|
||||
if (vm) {
|
||||
vm.$destroy()
|
||||
vm = undefined
|
||||
}
|
||||
},
|
||||
}
|
||||
return app
|
||||
}
|
||||
VueDemi.createApp = createApp
|
||||
}
|
||||
// Vue 2.6.x
|
||||
else if (Vue.version.slice(0, 2) === '2.') {
|
||||
if (VueCompositionAPI) {
|
||||
for (var key in VueCompositionAPI) {
|
||||
VueDemi[key] = VueCompositionAPI[key]
|
||||
}
|
||||
VueDemi.isVue2 = true
|
||||
VueDemi.isVue3 = false
|
||||
VueDemi.install = function () {}
|
||||
VueDemi.Vue = Vue
|
||||
VueDemi.Vue2 = Vue
|
||||
VueDemi.version = Vue.version
|
||||
} else {
|
||||
console.error('[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.')
|
||||
}
|
||||
}
|
||||
// Vue 3
|
||||
else if (Vue.version.slice(0, 2) === '3.') {
|
||||
for (var key in Vue) {
|
||||
VueDemi[key] = Vue[key]
|
||||
}
|
||||
VueDemi.isVue2 = false
|
||||
VueDemi.isVue3 = true
|
||||
VueDemi.install = function () {}
|
||||
VueDemi.Vue = Vue
|
||||
VueDemi.Vue2 = undefined
|
||||
VueDemi.version = Vue.version
|
||||
VueDemi.set = function (target, key, val) {
|
||||
if (Array.isArray(target)) {
|
||||
target.length = Math.max(target.length, key)
|
||||
target.splice(key, 1, val)
|
||||
return val
|
||||
}
|
||||
target[key] = val
|
||||
return val
|
||||
}
|
||||
VueDemi.del = function (target, key) {
|
||||
if (Array.isArray(target)) {
|
||||
target.splice(key, 1)
|
||||
return
|
||||
}
|
||||
delete target[key]
|
||||
}
|
||||
} else {
|
||||
console.error('[vue-demi] Vue version ' + Vue.version + ' is unsupported.')
|
||||
}
|
||||
return VueDemi
|
||||
})(
|
||||
(this.VueDemi = this.VueDemi || (typeof VueDemi !== 'undefined' ? VueDemi : {})),
|
||||
this.Vue || (typeof Vue !== 'undefined' ? Vue : undefined),
|
||||
this.VueCompositionAPI || (typeof VueCompositionAPI !== 'undefined' ? VueCompositionAPI : undefined)
|
||||
);
|
||||
;
|
||||
;
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('echarts'), require('vue-demi'), require('echarts/core')) :
|
||||
typeof define === 'function' && define.amd ? define(['echarts', 'vue-demi', 'echarts/core'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.VueECharts = factory(global.echarts, global.VueDemi, global.echarts));
|
||||
})(this, (function (echarts, vueDemi, core) { 'use strict';
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
var __assign = function() {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
return __assign.apply(this, arguments);
|
||||
};
|
||||
|
||||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
||||
var e = new Error(message);
|
||||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
||||
};
|
||||
|
||||
var METHOD_NAMES = [
|
||||
"getWidth",
|
||||
"getHeight",
|
||||
"getDom",
|
||||
"getOption",
|
||||
"resize",
|
||||
"dispatchAction",
|
||||
"convertToPixel",
|
||||
"convertFromPixel",
|
||||
"containPixel",
|
||||
"getDataURL",
|
||||
"getConnectedDataURL",
|
||||
"appendData",
|
||||
"clear",
|
||||
"isDisposed",
|
||||
"dispose"
|
||||
];
|
||||
function usePublicAPI(chart) {
|
||||
function makePublicMethod(name) {
|
||||
return function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
if (!chart.value) {
|
||||
throw new Error("ECharts is not initialized yet.");
|
||||
}
|
||||
return chart.value[name].apply(chart.value, args);
|
||||
};
|
||||
}
|
||||
function makePublicMethods() {
|
||||
var methods = Object.create(null);
|
||||
METHOD_NAMES.forEach(function (name) {
|
||||
methods[name] = makePublicMethod(name);
|
||||
});
|
||||
return methods;
|
||||
}
|
||||
return makePublicMethods();
|
||||
}
|
||||
|
||||
var raf = null;
|
||||
function requestAnimationFrame (callback) {
|
||||
if (!raf) {
|
||||
raf = (
|
||||
window.requestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame ||
|
||||
window.mozRequestAnimationFrame ||
|
||||
function (callback) {
|
||||
return setTimeout(callback, 16)
|
||||
}
|
||||
).bind(window);
|
||||
}
|
||||
return raf(callback)
|
||||
}
|
||||
|
||||
var caf = null;
|
||||
function cancelAnimationFrame (id) {
|
||||
if (!caf) {
|
||||
caf = (
|
||||
window.cancelAnimationFrame ||
|
||||
window.webkitCancelAnimationFrame ||
|
||||
window.mozCancelAnimationFrame ||
|
||||
function (id) {
|
||||
clearTimeout(id);
|
||||
}
|
||||
).bind(window);
|
||||
}
|
||||
|
||||
caf(id);
|
||||
}
|
||||
|
||||
function createStyles (styleText) {
|
||||
var style = document.createElement('style');
|
||||
|
||||
if (style.styleSheet) {
|
||||
style.styleSheet.cssText = styleText;
|
||||
} else {
|
||||
style.appendChild(document.createTextNode(styleText));
|
||||
}
|
||||
(document.querySelector('head') || document.body).appendChild(style);
|
||||
return style
|
||||
}
|
||||
|
||||
function createElement (tagName, props) {
|
||||
if ( props === void 0 ) props = {};
|
||||
|
||||
var elem = document.createElement(tagName);
|
||||
Object.keys(props).forEach(function (key) {
|
||||
elem[key] = props[key];
|
||||
});
|
||||
return elem
|
||||
}
|
||||
|
||||
function getComputedStyle (elem, prop, pseudo) {
|
||||
// for older versions of Firefox, `getComputedStyle` required
|
||||
// the second argument and may return `null` for some elements
|
||||
// when `display: none`
|
||||
var computedStyle = window.getComputedStyle(elem, pseudo || null) || {
|
||||
display: 'none'
|
||||
};
|
||||
|
||||
return computedStyle[prop]
|
||||
}
|
||||
|
||||
function getRenderInfo (elem) {
|
||||
if (!document.documentElement.contains(elem)) {
|
||||
return {
|
||||
detached: true,
|
||||
rendered: false
|
||||
}
|
||||
}
|
||||
|
||||
var current = elem;
|
||||
while (current !== document) {
|
||||
if (getComputedStyle(current, 'display') === 'none') {
|
||||
return {
|
||||
detached: false,
|
||||
rendered: false
|
||||
}
|
||||
}
|
||||
current = current.parentNode;
|
||||
}
|
||||
|
||||
return {
|
||||
detached: false,
|
||||
rendered: true
|
||||
}
|
||||
}
|
||||
|
||||
var css_248z = ".resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:\"\";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}";
|
||||
|
||||
var total = 0;
|
||||
var style = null;
|
||||
|
||||
function addListener (elem, callback) {
|
||||
if (!elem.__resize_mutation_handler__) {
|
||||
elem.__resize_mutation_handler__ = handleMutation.bind(elem);
|
||||
}
|
||||
|
||||
var listeners = elem.__resize_listeners__;
|
||||
|
||||
if (!listeners) {
|
||||
elem.__resize_listeners__ = [];
|
||||
if (window.ResizeObserver) {
|
||||
var offsetWidth = elem.offsetWidth;
|
||||
var offsetHeight = elem.offsetHeight;
|
||||
var ro = new ResizeObserver(function () {
|
||||
if (!elem.__resize_observer_triggered__) {
|
||||
elem.__resize_observer_triggered__ = true;
|
||||
if (elem.offsetWidth === offsetWidth && elem.offsetHeight === offsetHeight) {
|
||||
return
|
||||
}
|
||||
}
|
||||
runCallbacks(elem);
|
||||
});
|
||||
|
||||
// initially display none won't trigger ResizeObserver callback
|
||||
var ref = getRenderInfo(elem);
|
||||
var detached = ref.detached;
|
||||
var rendered = ref.rendered;
|
||||
elem.__resize_observer_triggered__ = detached === false && rendered === false;
|
||||
elem.__resize_observer__ = ro;
|
||||
ro.observe(elem);
|
||||
} else if (elem.attachEvent && elem.addEventListener) {
|
||||
// targeting IE9/10
|
||||
elem.__resize_legacy_resize_handler__ = function handleLegacyResize () {
|
||||
runCallbacks(elem);
|
||||
};
|
||||
elem.attachEvent('onresize', elem.__resize_legacy_resize_handler__);
|
||||
document.addEventListener('DOMSubtreeModified', elem.__resize_mutation_handler__);
|
||||
} else {
|
||||
if (!total) {
|
||||
style = createStyles(css_248z);
|
||||
}
|
||||
initTriggers(elem);
|
||||
|
||||
elem.__resize_rendered__ = getRenderInfo(elem).rendered;
|
||||
if (window.MutationObserver) {
|
||||
var mo = new MutationObserver(elem.__resize_mutation_handler__);
|
||||
mo.observe(document, {
|
||||
attributes: true,
|
||||
childList: true,
|
||||
characterData: true,
|
||||
subtree: true
|
||||
});
|
||||
elem.__resize_mutation_observer__ = mo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
elem.__resize_listeners__.push(callback);
|
||||
total++;
|
||||
}
|
||||
|
||||
function removeListener (elem, callback) {
|
||||
var listeners = elem.__resize_listeners__;
|
||||
if (!listeners) {
|
||||
return
|
||||
}
|
||||
|
||||
if (callback) {
|
||||
listeners.splice(listeners.indexOf(callback), 1);
|
||||
}
|
||||
|
||||
// no listeners exist, or removing all listeners
|
||||
if (!listeners.length || !callback) {
|
||||
// targeting IE9/10
|
||||
if (elem.detachEvent && elem.removeEventListener) {
|
||||
elem.detachEvent('onresize', elem.__resize_legacy_resize_handler__);
|
||||
document.removeEventListener('DOMSubtreeModified', elem.__resize_mutation_handler__);
|
||||
return
|
||||
}
|
||||
|
||||
if (elem.__resize_observer__) {
|
||||
elem.__resize_observer__.unobserve(elem);
|
||||
elem.__resize_observer__.disconnect();
|
||||
elem.__resize_observer__ = null;
|
||||
} else {
|
||||
if (elem.__resize_mutation_observer__) {
|
||||
elem.__resize_mutation_observer__.disconnect();
|
||||
elem.__resize_mutation_observer__ = null;
|
||||
}
|
||||
elem.removeEventListener('scroll', handleScroll);
|
||||
elem.removeChild(elem.__resize_triggers__.triggers);
|
||||
elem.__resize_triggers__ = null;
|
||||
}
|
||||
elem.__resize_listeners__ = null;
|
||||
}
|
||||
|
||||
if (!--total && style) {
|
||||
style.parentNode.removeChild(style);
|
||||
}
|
||||
}
|
||||
|
||||
function getUpdatedSize (elem) {
|
||||
var ref = elem.__resize_last__;
|
||||
var width = ref.width;
|
||||
var height = ref.height;
|
||||
var offsetWidth = elem.offsetWidth;
|
||||
var offsetHeight = elem.offsetHeight;
|
||||
if (offsetWidth !== width || offsetHeight !== height) {
|
||||
return {
|
||||
width: offsetWidth,
|
||||
height: offsetHeight
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
function handleMutation () {
|
||||
// `this` denotes the scrolling element
|
||||
var ref = getRenderInfo(this);
|
||||
var rendered = ref.rendered;
|
||||
var detached = ref.detached;
|
||||
if (rendered !== this.__resize_rendered__) {
|
||||
if (!detached && this.__resize_triggers__) {
|
||||
resetTriggers(this);
|
||||
this.addEventListener('scroll', handleScroll, true);
|
||||
}
|
||||
this.__resize_rendered__ = rendered;
|
||||
runCallbacks(this);
|
||||
}
|
||||
}
|
||||
|
||||
function handleScroll () {
|
||||
var this$1$1 = this;
|
||||
|
||||
// `this` denotes the scrolling element
|
||||
resetTriggers(this);
|
||||
if (this.__resize_raf__) {
|
||||
cancelAnimationFrame(this.__resize_raf__);
|
||||
}
|
||||
this.__resize_raf__ = requestAnimationFrame(function () {
|
||||
var updated = getUpdatedSize(this$1$1);
|
||||
if (updated) {
|
||||
this$1$1.__resize_last__ = updated;
|
||||
runCallbacks(this$1$1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function runCallbacks (elem) {
|
||||
if (!elem || !elem.__resize_listeners__) {
|
||||
return
|
||||
}
|
||||
elem.__resize_listeners__.forEach(function (callback) {
|
||||
callback.call(elem, elem);
|
||||
});
|
||||
}
|
||||
|
||||
function initTriggers (elem) {
|
||||
var position = getComputedStyle(elem, 'position');
|
||||
if (!position || position === 'static') {
|
||||
elem.style.position = 'relative';
|
||||
}
|
||||
|
||||
elem.__resize_old_position__ = position;
|
||||
elem.__resize_last__ = {};
|
||||
|
||||
var triggers = createElement('div', {
|
||||
className: 'resize-triggers'
|
||||
});
|
||||
var expand = createElement('div', {
|
||||
className: 'resize-expand-trigger'
|
||||
});
|
||||
var expandChild = createElement('div');
|
||||
var contract = createElement('div', {
|
||||
className: 'resize-contract-trigger'
|
||||
});
|
||||
expand.appendChild(expandChild);
|
||||
triggers.appendChild(expand);
|
||||
triggers.appendChild(contract);
|
||||
elem.appendChild(triggers);
|
||||
|
||||
elem.__resize_triggers__ = {
|
||||
triggers: triggers,
|
||||
expand: expand,
|
||||
expandChild: expandChild,
|
||||
contract: contract
|
||||
};
|
||||
|
||||
resetTriggers(elem);
|
||||
elem.addEventListener('scroll', handleScroll, true);
|
||||
|
||||
elem.__resize_last__ = {
|
||||
width: elem.offsetWidth,
|
||||
height: elem.offsetHeight
|
||||
};
|
||||
}
|
||||
|
||||
function resetTriggers (elem) {
|
||||
var ref = elem.__resize_triggers__;
|
||||
var expand = ref.expand;
|
||||
var expandChild = ref.expandChild;
|
||||
var contract = ref.contract;
|
||||
|
||||
// batch read
|
||||
var csw = contract.scrollWidth;
|
||||
var csh = contract.scrollHeight;
|
||||
var eow = expand.offsetWidth;
|
||||
var eoh = expand.offsetHeight;
|
||||
var esw = expand.scrollWidth;
|
||||
var esh = expand.scrollHeight;
|
||||
|
||||
// batch write
|
||||
contract.scrollLeft = csw;
|
||||
contract.scrollTop = csh;
|
||||
expandChild.style.width = eow + 1 + 'px';
|
||||
expandChild.style.height = eoh + 1 + 'px';
|
||||
expand.scrollLeft = esw;
|
||||
expand.scrollTop = esh;
|
||||
}
|
||||
|
||||
function useAutoresize(chart, autoresize, root) {
|
||||
var resizeListener = null;
|
||||
vueDemi.watch([root, chart, autoresize], function (_a, _, cleanup) {
|
||||
var root = _a[0], chart = _a[1], autoresize = _a[2];
|
||||
if (root && chart && autoresize) {
|
||||
var autoresizeOptions = autoresize === true ? {} : autoresize;
|
||||
var _b = autoresizeOptions.throttle, wait = _b === void 0 ? 100 : _b, onResize_1 = autoresizeOptions.onResize;
|
||||
var callback = function () {
|
||||
chart.resize();
|
||||
onResize_1 === null || onResize_1 === void 0 ? void 0 : onResize_1();
|
||||
};
|
||||
resizeListener = wait ? core.throttle(callback, wait) : callback;
|
||||
addListener(root, resizeListener);
|
||||
}
|
||||
cleanup(function () {
|
||||
if (root && resizeListener) {
|
||||
removeListener(root, resizeListener);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
var autoresizeProps = {
|
||||
autoresize: [Boolean, Object]
|
||||
};
|
||||
|
||||
var onRE = /^on[^a-z]/;
|
||||
var isOn = function (key) { return onRE.test(key); };
|
||||
function omitOn(attrs) {
|
||||
var result = {};
|
||||
for (var key in attrs) {
|
||||
if (!isOn(key)) {
|
||||
result[key] = attrs[key];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function unwrapInjected(injection, defaultValue) {
|
||||
var value = vueDemi.isRef(injection) ? vueDemi.unref(injection) : injection;
|
||||
if (value && typeof value === "object" && "value" in value) {
|
||||
return value.value || defaultValue;
|
||||
}
|
||||
return value || defaultValue;
|
||||
}
|
||||
|
||||
var LOADING_OPTIONS_KEY = "ecLoadingOptions";
|
||||
function useLoading(chart, loading, loadingOptions) {
|
||||
var defaultLoadingOptions = vueDemi.inject(LOADING_OPTIONS_KEY, {});
|
||||
var realLoadingOptions = vueDemi.computed(function () { return (__assign(__assign({}, unwrapInjected(defaultLoadingOptions, {})), loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.value)); });
|
||||
vueDemi.watchEffect(function () {
|
||||
var instance = chart.value;
|
||||
if (!instance) {
|
||||
return;
|
||||
}
|
||||
if (loading.value) {
|
||||
instance.showLoading(realLoadingOptions.value);
|
||||
}
|
||||
else {
|
||||
instance.hideLoading();
|
||||
}
|
||||
});
|
||||
}
|
||||
var loadingProps = {
|
||||
loading: Boolean,
|
||||
loadingOptions: Object
|
||||
};
|
||||
|
||||
var registered = null;
|
||||
var TAG_NAME = "x-vue-echarts";
|
||||
function register() {
|
||||
if (registered != null) {
|
||||
return registered;
|
||||
}
|
||||
if (typeof HTMLElement === "undefined" ||
|
||||
typeof customElements === "undefined") {
|
||||
return (registered = false);
|
||||
}
|
||||
try {
|
||||
var reg = new Function("tag", "class EChartsElement extends HTMLElement {\n __dispose = null;\n\n disconnectedCallback() {\n if (this.__dispose) {\n this.__dispose();\n this.__dispose = null;\n }\n }\n}\n\nif (customElements.get(tag) == null) {\n customElements.define(tag, EChartsElement);\n}\n");
|
||||
reg(TAG_NAME);
|
||||
}
|
||||
catch (e) {
|
||||
return (registered = false);
|
||||
}
|
||||
return (registered = true);
|
||||
}
|
||||
|
||||
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
||||
|
||||
var css = "x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0}\n.vue-echarts-inner{flex-grow:1;min-width:0;width:auto!important;height:auto!important}\n";
|
||||
n(css,{});
|
||||
|
||||
var wcRegistered = register();
|
||||
if (vueDemi.Vue2) {
|
||||
vueDemi.Vue2.config.ignoredElements.push(TAG_NAME);
|
||||
}
|
||||
var THEME_KEY = "ecTheme";
|
||||
var INIT_OPTIONS_KEY = "ecInitOptions";
|
||||
var UPDATE_OPTIONS_KEY = "ecUpdateOptions";
|
||||
var NATIVE_EVENT_RE = /(^&?~?!?)native:/;
|
||||
var ECharts = vueDemi.defineComponent({
|
||||
name: "echarts",
|
||||
props: __assign(__assign({ option: Object, theme: {
|
||||
type: [Object, String]
|
||||
}, initOptions: Object, updateOptions: Object, group: String, manualUpdate: Boolean }, autoresizeProps), loadingProps),
|
||||
emits: {},
|
||||
inheritAttrs: false,
|
||||
setup: function (props, _a) {
|
||||
var attrs = _a.attrs;
|
||||
var root = vueDemi.shallowRef();
|
||||
var inner = vueDemi.shallowRef();
|
||||
var chart = vueDemi.shallowRef();
|
||||
var manualOption = vueDemi.shallowRef();
|
||||
var defaultTheme = vueDemi.inject(THEME_KEY, null);
|
||||
var defaultInitOptions = vueDemi.inject(INIT_OPTIONS_KEY, null);
|
||||
var defaultUpdateOptions = vueDemi.inject(UPDATE_OPTIONS_KEY, null);
|
||||
var _b = vueDemi.toRefs(props), autoresize = _b.autoresize, manualUpdate = _b.manualUpdate, loading = _b.loading, loadingOptions = _b.loadingOptions;
|
||||
var realOption = vueDemi.computed(function () { return manualOption.value || props.option || null; });
|
||||
var realTheme = vueDemi.computed(function () { return props.theme || unwrapInjected(defaultTheme, {}); });
|
||||
var realInitOptions = vueDemi.computed(function () { return props.initOptions || unwrapInjected(defaultInitOptions, {}); });
|
||||
var realUpdateOptions = vueDemi.computed(function () { return props.updateOptions || unwrapInjected(defaultUpdateOptions, {}); });
|
||||
var nonEventAttrs = vueDemi.computed(function () { return omitOn(attrs); });
|
||||
var nativeListeners = {};
|
||||
var listeners = vueDemi.getCurrentInstance().proxy.$listeners;
|
||||
var realListeners = {};
|
||||
if (!listeners) {
|
||||
Object.keys(attrs)
|
||||
.filter(function (key) { return isOn(key); })
|
||||
.forEach(function (key) {
|
||||
var event = key.charAt(2).toLowerCase() + key.slice(3);
|
||||
if (event.indexOf("native:") === 0) {
|
||||
var nativeKey = "on".concat(event.charAt(7).toUpperCase()).concat(event.slice(8));
|
||||
nativeListeners[nativeKey] = attrs[key];
|
||||
return;
|
||||
}
|
||||
if (event.substring(event.length - 4) === "Once") {
|
||||
event = "~".concat(event.substring(0, event.length - 4));
|
||||
}
|
||||
realListeners[event] = attrs[key];
|
||||
});
|
||||
}
|
||||
else {
|
||||
Object.keys(listeners).forEach(function (key) {
|
||||
if (NATIVE_EVENT_RE.test(key)) {
|
||||
nativeListeners[key.replace(NATIVE_EVENT_RE, "$1")] = listeners[key];
|
||||
}
|
||||
else {
|
||||
realListeners[key] = listeners[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
function init(option) {
|
||||
if (!inner.value) {
|
||||
return;
|
||||
}
|
||||
var instance = (chart.value = core.init(inner.value, realTheme.value, realInitOptions.value));
|
||||
if (props.group) {
|
||||
instance.group = props.group;
|
||||
}
|
||||
Object.keys(realListeners).forEach(function (key) {
|
||||
var handler = realListeners[key];
|
||||
if (!handler) {
|
||||
return;
|
||||
}
|
||||
var event = key.toLowerCase();
|
||||
if (event.charAt(0) === "~") {
|
||||
event = event.substring(1);
|
||||
handler.__once__ = true;
|
||||
}
|
||||
var target = instance;
|
||||
if (event.indexOf("zr:") === 0) {
|
||||
target = instance.getZr();
|
||||
event = event.substring(3);
|
||||
}
|
||||
if (handler.__once__) {
|
||||
delete handler.__once__;
|
||||
var raw_1 = handler;
|
||||
handler = function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
raw_1.apply(void 0, args);
|
||||
target.off(event, handler);
|
||||
};
|
||||
}
|
||||
target.on(event, handler);
|
||||
});
|
||||
function resize() {
|
||||
if (instance && !instance.isDisposed()) {
|
||||
instance.resize();
|
||||
}
|
||||
}
|
||||
function commit() {
|
||||
var opt = option || realOption.value;
|
||||
if (opt) {
|
||||
instance.setOption(opt, realUpdateOptions.value);
|
||||
}
|
||||
}
|
||||
if (autoresize.value) {
|
||||
vueDemi.nextTick(function () {
|
||||
resize();
|
||||
commit();
|
||||
});
|
||||
}
|
||||
else {
|
||||
commit();
|
||||
}
|
||||
}
|
||||
function setOption(option, updateOptions) {
|
||||
if (props.manualUpdate) {
|
||||
manualOption.value = option;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init(option);
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, updateOptions || {});
|
||||
}
|
||||
}
|
||||
function cleanup() {
|
||||
if (chart.value) {
|
||||
chart.value.dispose();
|
||||
chart.value = undefined;
|
||||
}
|
||||
}
|
||||
var unwatchOption = null;
|
||||
vueDemi.watch(manualUpdate, function (manualUpdate) {
|
||||
if (typeof unwatchOption === "function") {
|
||||
unwatchOption();
|
||||
unwatchOption = null;
|
||||
}
|
||||
if (!manualUpdate) {
|
||||
unwatchOption = vueDemi.watch(function () { return props.option; }, function (option, oldOption) {
|
||||
if (!option) {
|
||||
return;
|
||||
}
|
||||
if (!chart.value) {
|
||||
init();
|
||||
}
|
||||
else {
|
||||
chart.value.setOption(option, __assign({ notMerge: option !== oldOption }, realUpdateOptions.value));
|
||||
}
|
||||
}, { deep: true });
|
||||
}
|
||||
}, {
|
||||
immediate: true
|
||||
});
|
||||
vueDemi.watch([realTheme, realInitOptions], function () {
|
||||
cleanup();
|
||||
init();
|
||||
}, {
|
||||
deep: true
|
||||
});
|
||||
vueDemi.watchEffect(function () {
|
||||
if (props.group && chart.value) {
|
||||
chart.value.group = props.group;
|
||||
}
|
||||
});
|
||||
var publicApi = usePublicAPI(chart);
|
||||
useLoading(chart, loading, loadingOptions);
|
||||
useAutoresize(chart, autoresize, inner);
|
||||
vueDemi.onMounted(function () {
|
||||
init();
|
||||
});
|
||||
vueDemi.onBeforeUnmount(function () {
|
||||
if (wcRegistered && root.value) {
|
||||
root.value.__dispose = cleanup;
|
||||
}
|
||||
else {
|
||||
cleanup();
|
||||
}
|
||||
});
|
||||
return __assign({ chart: chart, root: root, inner: inner, setOption: setOption, nonEventAttrs: nonEventAttrs, nativeListeners: nativeListeners }, publicApi);
|
||||
},
|
||||
render: function () {
|
||||
var attrs = (vueDemi.Vue2
|
||||
? { attrs: this.nonEventAttrs, on: this.nativeListeners }
|
||||
: __assign(__assign({}, this.nonEventAttrs), this.nativeListeners));
|
||||
attrs.ref = "root";
|
||||
attrs["class"] = attrs["class"] ? ["echarts"].concat(attrs["class"]) : "echarts";
|
||||
return vueDemi.h(TAG_NAME, attrs, [
|
||||
vueDemi.h("div", { ref: "inner", "class": "vue-echarts-inner" })
|
||||
]);
|
||||
}
|
||||
});
|
||||
|
||||
var exported = /*#__PURE__*/Object.freeze({
|
||||
__proto__: null,
|
||||
'default': ECharts,
|
||||
LOADING_OPTIONS_KEY: LOADING_OPTIONS_KEY,
|
||||
THEME_KEY: THEME_KEY,
|
||||
INIT_OPTIONS_KEY: INIT_OPTIONS_KEY,
|
||||
UPDATE_OPTIONS_KEY: UPDATE_OPTIONS_KEY
|
||||
});
|
||||
|
||||
var global = __assign(__assign({}, ECharts), exported);
|
||||
|
||||
return global;
|
||||
|
||||
}));
|
||||
//# sourceMappingURL=index.umd.js.map
|
||||
1
frontend/node_modules/vue-echarts/dist/index.umd.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/index.umd.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
frontend/node_modules/vue-echarts/dist/index.umd.min.js
generated
vendored
Normal file
2
frontend/node_modules/vue-echarts/dist/index.umd.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend/node_modules/vue-echarts/dist/index.umd.min.js.map
generated
vendored
Normal file
1
frontend/node_modules/vue-echarts/dist/index.umd.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
142
frontend/node_modules/vue-echarts/dist/index.vue2.d.ts
generated
vendored
Normal file
142
frontend/node_modules/vue-echarts/dist/index.vue2.d.ts
generated
vendored
Normal file
@@ -0,0 +1,142 @@
|
||||
import { DefineComponent } from '@vue/runtime-core';
|
||||
import { Ref } from 'vue-demi';
|
||||
import { init } from 'echarts/core';
|
||||
import { SetOptionOpts, ECElementEvent, ElementEvent } from 'echarts';
|
||||
|
||||
type InitType = typeof init;
|
||||
type InitParameters = Parameters<InitType>;
|
||||
type InitOptions = NonNullable<InitParameters[2]>;
|
||||
|
||||
type UpdateOptions = SetOptionOpts;
|
||||
|
||||
type EChartsType = ReturnType<InitType>;
|
||||
|
||||
type SetOptionType = EChartsType["setOption"];
|
||||
type Option = Parameters<SetOptionType>[0];
|
||||
|
||||
type MouseEventName =
|
||||
| "click"
|
||||
| "dblclick"
|
||||
| "mouseout"
|
||||
| "mouseover"
|
||||
| "mouseup"
|
||||
| "mousedown"
|
||||
| "mousemove"
|
||||
| "contextmenu"
|
||||
| "globalout";
|
||||
|
||||
type ElementEventName =
|
||||
| MouseEventName
|
||||
| "mousewheel"
|
||||
| "drag"
|
||||
| "dragstart"
|
||||
| "dragend"
|
||||
| "dragenter"
|
||||
| "dragleave"
|
||||
| "dragover"
|
||||
| "drop";
|
||||
|
||||
type ZRenderEventName = `zr:${ElementEventName}`;
|
||||
|
||||
type OtherEventName =
|
||||
| "highlight"
|
||||
| "downplay"
|
||||
| "selectchanged"
|
||||
| "legendselectchanged"
|
||||
| "legendselected"
|
||||
| "legendunselected"
|
||||
| "legendselectall"
|
||||
| "legendinverseselect"
|
||||
| "legendscroll"
|
||||
| "datazoom"
|
||||
| "datarangeselected"
|
||||
| "graphroam"
|
||||
| "georoam"
|
||||
| "treeroam"
|
||||
| "timelinechanged"
|
||||
| "timelineplaychanged"
|
||||
| "restore"
|
||||
| "dataviewchanged"
|
||||
| "magictypechanged"
|
||||
| "geoselectchanged"
|
||||
| "geoselected"
|
||||
| "geounselected"
|
||||
| "axisareaselected"
|
||||
| "brush"
|
||||
| "brushEnd"
|
||||
| "brushselected"
|
||||
| "globalcursortaken";
|
||||
|
||||
type MouseEmits = {
|
||||
[key in MouseEventName]: (params: ECElementEvent) => boolean;
|
||||
};
|
||||
|
||||
type ZRenderEmits = {
|
||||
[key in ZRenderEventName]: (params: ElementEvent) => boolean;
|
||||
};
|
||||
|
||||
type OtherEmits = {
|
||||
[key in OtherEventName]: null;
|
||||
};
|
||||
|
||||
type Emits = MouseEmits &
|
||||
OtherEmits & {
|
||||
rendered: (params: { elapsedTime: number }) => boolean;
|
||||
finished: () => boolean;
|
||||
} & ZRenderEmits;
|
||||
|
||||
/* eslint-disable @typescript-eslint/ban-types */
|
||||
|
||||
|
||||
declare const LOADING_OPTIONS_KEY = "ecLoadingOptions";
|
||||
declare const THEME_KEY = "ecTheme";
|
||||
declare const INIT_OPTIONS_KEY = "ecInitOptions";
|
||||
declare const UPDATE_OPTIONS_KEY = "ecUpdateOptions";
|
||||
|
||||
declare type ChartProps = {
|
||||
loading?: boolean;
|
||||
loadingOptions?: Record<string, unknown>;
|
||||
autoresize?: boolean;
|
||||
option?: Option;
|
||||
theme?: string | Record<string, unknown>;
|
||||
initOptions?: InitOptions;
|
||||
updateOptions?: UpdateOptions;
|
||||
group?: string;
|
||||
manualUpdate?: boolean;
|
||||
};
|
||||
|
||||
type MethodNames =
|
||||
| "getWidth"
|
||||
| "getHeight"
|
||||
| "getDom"
|
||||
| "getOption"
|
||||
| "resize"
|
||||
| "dispatchAction"
|
||||
| "convertToPixel"
|
||||
| "convertFromPixel"
|
||||
| "containPixel"
|
||||
| "getDataURL"
|
||||
| "getConnectedDataURL"
|
||||
| "appendData"
|
||||
| "clear"
|
||||
| "isDisposed"
|
||||
| "dispose"
|
||||
| "setOption";
|
||||
|
||||
declare type ChartMethods = Pick<EChartsType, MethodNames>;
|
||||
|
||||
declare const Chart: DefineComponent<
|
||||
ChartProps,
|
||||
{
|
||||
root: Ref<HTMLElement | undefined>;
|
||||
chart: Ref<EChartsType | undefined>;
|
||||
},
|
||||
{},
|
||||
{},
|
||||
ChartMethods,
|
||||
{},
|
||||
{},
|
||||
Emits
|
||||
>;
|
||||
|
||||
export { INIT_OPTIONS_KEY, LOADING_OPTIONS_KEY, THEME_KEY, UPDATE_OPTIONS_KEY, Chart as default };
|
||||
141
frontend/node_modules/vue-echarts/dist/index.vue2_7.d.ts
generated
vendored
Normal file
141
frontend/node_modules/vue-echarts/dist/index.vue2_7.d.ts
generated
vendored
Normal file
@@ -0,0 +1,141 @@
|
||||
import { DefineComponent, Ref } from 'vue-demi';
|
||||
import { init } from 'echarts/core';
|
||||
import { SetOptionOpts, ECElementEvent, ElementEvent } from 'echarts';
|
||||
|
||||
type InitType = typeof init;
|
||||
type InitParameters = Parameters<InitType>;
|
||||
type InitOptions = NonNullable<InitParameters[2]>;
|
||||
|
||||
type UpdateOptions = SetOptionOpts;
|
||||
|
||||
type EChartsType = ReturnType<InitType>;
|
||||
|
||||
type SetOptionType = EChartsType["setOption"];
|
||||
type Option = Parameters<SetOptionType>[0];
|
||||
|
||||
type MouseEventName =
|
||||
| "click"
|
||||
| "dblclick"
|
||||
| "mouseout"
|
||||
| "mouseover"
|
||||
| "mouseup"
|
||||
| "mousedown"
|
||||
| "mousemove"
|
||||
| "contextmenu"
|
||||
| "globalout";
|
||||
|
||||
type ElementEventName =
|
||||
| MouseEventName
|
||||
| "mousewheel"
|
||||
| "drag"
|
||||
| "dragstart"
|
||||
| "dragend"
|
||||
| "dragenter"
|
||||
| "dragleave"
|
||||
| "dragover"
|
||||
| "drop";
|
||||
|
||||
type ZRenderEventName = `zr:${ElementEventName}`;
|
||||
|
||||
type OtherEventName =
|
||||
| "highlight"
|
||||
| "downplay"
|
||||
| "selectchanged"
|
||||
| "legendselectchanged"
|
||||
| "legendselected"
|
||||
| "legendunselected"
|
||||
| "legendselectall"
|
||||
| "legendinverseselect"
|
||||
| "legendscroll"
|
||||
| "datazoom"
|
||||
| "datarangeselected"
|
||||
| "graphroam"
|
||||
| "georoam"
|
||||
| "treeroam"
|
||||
| "timelinechanged"
|
||||
| "timelineplaychanged"
|
||||
| "restore"
|
||||
| "dataviewchanged"
|
||||
| "magictypechanged"
|
||||
| "geoselectchanged"
|
||||
| "geoselected"
|
||||
| "geounselected"
|
||||
| "axisareaselected"
|
||||
| "brush"
|
||||
| "brushEnd"
|
||||
| "brushselected"
|
||||
| "globalcursortaken";
|
||||
|
||||
type MouseEmits = {
|
||||
[key in MouseEventName]: (params: ECElementEvent) => boolean;
|
||||
};
|
||||
|
||||
type ZRenderEmits = {
|
||||
[key in ZRenderEventName]: (params: ElementEvent) => boolean;
|
||||
};
|
||||
|
||||
type OtherEmits = {
|
||||
[key in OtherEventName]: null;
|
||||
};
|
||||
|
||||
type Emits = MouseEmits &
|
||||
OtherEmits & {
|
||||
rendered: (params: { elapsedTime: number }) => boolean;
|
||||
finished: () => boolean;
|
||||
} & ZRenderEmits;
|
||||
|
||||
/* eslint-disable @typescript-eslint/ban-types */
|
||||
|
||||
|
||||
declare const LOADING_OPTIONS_KEY = "ecLoadingOptions";
|
||||
declare const THEME_KEY = "ecTheme";
|
||||
declare const INIT_OPTIONS_KEY = "ecInitOptions";
|
||||
declare const UPDATE_OPTIONS_KEY = "ecUpdateOptions";
|
||||
|
||||
declare type ChartProps = {
|
||||
loading?: boolean;
|
||||
loadingOptions?: Record<string, unknown>;
|
||||
autoresize?: boolean;
|
||||
option?: Option;
|
||||
theme?: string | Record<string, unknown>;
|
||||
initOptions?: InitOptions;
|
||||
updateOptions?: UpdateOptions;
|
||||
group?: string;
|
||||
manualUpdate?: boolean;
|
||||
};
|
||||
|
||||
type MethodNames =
|
||||
| "getWidth"
|
||||
| "getHeight"
|
||||
| "getDom"
|
||||
| "getOption"
|
||||
| "resize"
|
||||
| "dispatchAction"
|
||||
| "convertToPixel"
|
||||
| "convertFromPixel"
|
||||
| "containPixel"
|
||||
| "getDataURL"
|
||||
| "getConnectedDataURL"
|
||||
| "appendData"
|
||||
| "clear"
|
||||
| "isDisposed"
|
||||
| "dispose"
|
||||
| "setOption";
|
||||
|
||||
declare type ChartMethods = Pick<EChartsType, MethodNames>;
|
||||
|
||||
declare const Chart: DefineComponent<
|
||||
ChartProps,
|
||||
{
|
||||
root: Ref<HTMLElement | undefined>;
|
||||
chart: Ref<EChartsType | undefined>;
|
||||
},
|
||||
{},
|
||||
{},
|
||||
ChartMethods,
|
||||
{},
|
||||
{},
|
||||
Emits
|
||||
>;
|
||||
|
||||
export { INIT_OPTIONS_KEY, LOADING_OPTIONS_KEY, THEME_KEY, UPDATE_OPTIONS_KEY, Chart as default };
|
||||
Reference in New Issue
Block a user