All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.vue.js Maven / Gradle / Ivy

Go to download

The web components for chart.js which is built on lit-element ## Live Demo https://fsx950223.github.io/chartjs-web-components/live-demo/ ## Install ``` bash npm i chartjs-web-components ``` ## Lit-Element Usage ``` html <base-chart id="chart" typ

The newest version!
/*!
 * MIT License
 * 
 * Copyright (c) 2018 who who who
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 * 
 */!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=5)}({0:function(t,e){t.exports=vue},5:function(t,e,r){"use strict";r.r(e);var n=r(0),o=r.n(n);
/**
  * vue-class-component v7.2.6
  * (c) 2015-present Evan You
  * @license MIT
  */
function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var r=t.prototype;Object.getOwnPropertyNames(r).forEach((function(t){if("constructor"!==t)if(l.indexOf(t)>-1)e[t]=r[t];else{var n=Object.getOwnPropertyDescriptor(r,t);void 0!==n.value?"function"==typeof n.value?(e.methods||(e.methods={}))[t]=n.value:(e.mixins||(e.mixins=[])).push({data:function(){return i({},t,n.value)}}):(n.get||n.set)&&((e.computed||(e.computed={}))[t]={get:n.get,set:n.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return y(this,t)}});var n=t.__decorators__;n&&(n.forEach((function(t){return t(e)})),delete t.__decorators__);var a=Object.getPrototypeOf(t.prototype),c=a instanceof o.a?a.constructor:o.a,p=c.extend(e);return g(p,t,c),f()&&u(p,t),p}var v={prototype:!0,arguments:!0,callee:!0,caller:!0};function g(t,e,r){Object.getOwnPropertyNames(e).forEach((function(n){if(!v[n]){var o=Object.getOwnPropertyDescriptor(t,n);if(!o||o.configurable){var i,c,f=Object.getOwnPropertyDescriptor(e,n);if(!s){if("cid"===n)return;var u=Object.getOwnPropertyDescriptor(r,n);if(i=f.value,c=a(i),null!=i&&("object"===c||"function"===c)&&u&&u.value===f.value)return}0,Object.defineProperty(t,n,f)}}}))}function O(t){return"function"==typeof t?b(t):function(e){return b(e,t)}}O.registerHooks=function(t){l.push.apply(l,c(t))};var m=O;var h="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function j(t,e,r){if(h&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var n=Reflect.getMetadata("design:type",e,r);n!==Object&&(t.type=n)}}function _(t){return void 0===t&&(t={}),function(e,r){j(t,e,r),d((function(e,r){(e.props||(e.props={}))[r]=t}))(e,r)}}var w=function(t,e,r,n){var o,a=arguments.length,i=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(i=(a<3?o(i):a>3?o(e,r,i):o(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},P=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let R=class extends o.a{created(){this.ref=btoa(""+(Date.now()+crypto.getRandomValues(new Uint32Array(1))[0]))}mounted(){this.chart=this.$refs[this.ref]}render(t){return t("base-chart",{attrs:{type:this.type},ref:this.ref,domProps:{data:this.data,options:this.options}})}};w([_({type:Object}),P("design:type",Object)],R.prototype,"data",void 0),w([_({type:Object}),P("design:type",Object)],R.prototype,"options",void 0),w([_({type:String}),P("design:type",String)],R.prototype,"type",void 0),R=w([m({})],R);e.default=R}});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy