UNPKG

20.1 kBJavaScriptView Raw
1(function(factory){if(typeof module==="object"&&typeof module.exports!=="undefined"){module.exports=factory}else{factory(FroalaCharts)}})(function(FroalaCharts){(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{configurable:false,enumerable:true,get:getter})}};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module["default"]}:function getModuleExports(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=7)})([function(module,exports){module.exports=function(useSourceMap){var list=[];list.toString=function toString(){return this.map(function(item){var content=cssWithMappingToString(item,useSourceMap);if(item[2]){return"@media "+item[2]+"{"+content+"}"}else{return content}}).join("")};list.i=function(modules,mediaQuery){if(typeof modules==="string")modules=[[null,modules,""]];var alreadyImportedModules={};for(var i=0;i<this.length;i++){var id=this[i][0];if(typeof id==="number")alreadyImportedModules[id]=true}for(i=0;i<modules.length;i++){var item=modules[i];if(typeof item[0]!=="number"||!alreadyImportedModules[item[0]]){if(mediaQuery&&!item[2]){item[2]=mediaQuery}else if(mediaQuery){item[2]="("+item[2]+") and ("+mediaQuery+")"}list.push(item)}}};return list};function cssWithMappingToString(item,useSourceMap){var content=item[1]||"";var cssMapping=item[3];if(!cssMapping){return content}if(useSourceMap&&typeof btoa==="function"){var sourceMapping=toComment(cssMapping);var sourceURLs=cssMapping.sources.map(function(source){return"/*# sourceURL="+cssMapping.sourceRoot+source+" */"});return[content].concat(sourceURLs).concat([sourceMapping]).join("\n")}return[content].join("\n")}function toComment(sourceMap){var base64=btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));var data="sourceMappingURL=data:application/json;charset=utf-8;base64,"+base64;return"/*# "+data+" */"}},function(module,exports,__webpack_require__){var stylesInDom={};var memoize=function(fn){var memo;return function(){if(typeof memo==="undefined")memo=fn.apply(this,arguments);return memo}};var isOldIE=memoize(function(){return window&&document&&document.all&&!window.atob});var getTarget=function(target){return document.querySelector(target)};var getElement=function(fn){var memo={};return function(target){if(typeof target==="function"){return target()}if(typeof memo[target]==="undefined"){var styleTarget=getTarget.call(this,target);if(window.HTMLIFrameElement&&styleTarget instanceof window.HTMLIFrameElement){try{styleTarget=styleTarget.contentDocument.head}catch(e){styleTarget=null}}memo[target]=styleTarget}return memo[target]}}();var singleton=null;var singletonCounter=0;var stylesInsertedAtTop=[];var fixUrls=__webpack_require__(2);module.exports=function(list,options){if(typeof DEBUG!=="undefined"&&DEBUG){if(typeof document!=="object")throw new Error("The style-loader cannot be used in a non-browser environment")}options=options||{};options.attrs=typeof options.attrs==="object"?options.attrs:{};if(!options.singleton&&typeof options.singleton!=="boolean")options.singleton=isOldIE();if(!options.insertInto)options.insertInto="head";if(!options.insertAt)options.insertAt="bottom";var styles=listToStyles(list,options);addStylesToDom(styles,options);return function update(newList){var mayRemove=[];for(var i=0;i<styles.length;i++){var item=styles[i];var domStyle=stylesInDom[item.id];domStyle.refs--;mayRemove.push(domStyle)}if(newList){var newStyles=listToStyles(newList,options);addStylesToDom(newStyles,options)}for(var i=0;i<mayRemove.length;i++){var domStyle=mayRemove[i];if(domStyle.refs===0){for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j]();delete stylesInDom[domStyle.id]}}}};function addStylesToDom(styles,options){for(var i=0;i<styles.length;i++){var item=styles[i];var domStyle=stylesInDom[item.id];if(domStyle){domStyle.refs++;for(var j=0;j<domStyle.parts.length;j++){domStyle.parts[j](item.parts[j])}for(;j<item.parts.length;j++){domStyle.parts.push(addStyle(item.parts[j],options))}}else{var parts=[];for(var j=0;j<item.parts.length;j++){parts.push(addStyle(item.parts[j],options))}stylesInDom[item.id]={id:item.id,refs:1,parts:parts}}}}function listToStyles(list,options){var styles=[];var newStyles={};for(var i=0;i<list.length;i++){var item=list[i];var id=options.base?item[0]+options.base:item[0];var css=item[1];var media=item[2];var sourceMap=item[3];var part={css:css,media:media,sourceMap:sourceMap};if(!newStyles[id])styles.push(newStyles[id]={id:id,parts:[part]});else newStyles[id].parts.push(part)}return styles}function insertStyleElement(options,style){var target=getElement(options.insertInto);if(!target){throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.")}var lastStyleElementInsertedAtTop=stylesInsertedAtTop[stylesInsertedAtTop.length-1];if(options.insertAt==="top"){if(!lastStyleElementInsertedAtTop){target.insertBefore(style,target.firstChild)}else if(lastStyleElementInsertedAtTop.nextSibling){target.insertBefore(style,lastStyleElementInsertedAtTop.nextSibling)}else{target.appendChild(style)}stylesInsertedAtTop.push(style)}else if(options.insertAt==="bottom"){target.appendChild(style)}else if(typeof options.insertAt==="object"&&options.insertAt.before){var nextSibling=getElement(options.insertInto+" "+options.insertAt.before);target.insertBefore(style,nextSibling)}else{throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n")}}function removeStyleElement(style){if(style.parentNode===null)return false;style.parentNode.removeChild(style);var idx=stylesInsertedAtTop.indexOf(style);if(idx>=0){stylesInsertedAtTop.splice(idx,1)}}function createStyleElement(options){var style=document.createElement("style");if(options.attrs.type===undefined){options.attrs.type="text/css"}addAttrs(style,options.attrs);insertStyleElement(options,style);return style}function createLinkElement(options){var link=document.createElement("link");if(options.attrs.type===undefined){options.attrs.type="text/css"}options.attrs.rel="stylesheet";addAttrs(link,options.attrs);insertStyleElement(options,link);return link}function addAttrs(el,attrs){Object.keys(attrs).forEach(function(key){el.setAttribute(key,attrs[key])})}function addStyle(obj,options){var style,update,remove,result;if(options.transform&&obj.css){result=options.transform(obj.css);if(result){obj.css=result}else{return function(){}}}if(options.singleton){var styleIndex=singletonCounter++;style=singleton||(singleton=createStyleElement(options));update=applyToSingletonTag.bind(null,style,styleIndex,false);remove=applyToSingletonTag.bind(null,style,styleIndex,true)}else if(obj.sourceMap&&typeof URL==="function"&&typeof URL.createObjectURL==="function"&&typeof URL.revokeObjectURL==="function"&&typeof Blob==="function"&&typeof btoa==="function"){style=createLinkElement(options);update=updateLink.bind(null,style,options);remove=function(){removeStyleElement(style);if(style.href)URL.revokeObjectURL(style.href)}}else{style=createStyleElement(options);update=applyToTag.bind(null,style);remove=function(){removeStyleElement(style)}}update(obj);return function updateStyle(newObj){if(newObj){if(newObj.css===obj.css&&newObj.media===obj.media&&newObj.sourceMap===obj.sourceMap){return}update(obj=newObj)}else{remove()}}}var replaceText=function(){var textStore=[];return function(index,replacement){textStore[index]=replacement;return textStore.filter(Boolean).join("\n")}}();function applyToSingletonTag(style,index,remove,obj){var css=remove?"":obj.css;if(style.styleSheet){style.styleSheet.cssText=replaceText(index,css)}else{var cssNode=document.createTextNode(css);var childNodes=style.childNodes;if(childNodes[index])style.removeChild(childNodes[index]);if(childNodes.length){style.insertBefore(cssNode,childNodes[index])}else{style.appendChild(cssNode)}}}function applyToTag(style,obj){var css=obj.css;var media=obj.media;if(media){style.setAttribute("media",media)}if(style.styleSheet){style.styleSheet.cssText=css}else{while(style.firstChild){style.removeChild(style.firstChild)}style.appendChild(document.createTextNode(css))}}function updateLink(link,options,obj){var css=obj.css;var sourceMap=obj.sourceMap;var autoFixUrls=options.convertToAbsoluteUrls===undefined&&sourceMap;if(options.convertToAbsoluteUrls||autoFixUrls){css=fixUrls(css)}if(sourceMap){css+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))+" */"}var blob=new Blob([css],{type:"text/css"});var oldSrc=link.href;link.href=URL.createObjectURL(blob);if(oldSrc)URL.revokeObjectURL(oldSrc)}},function(module,exports){module.exports=function(css){var location=typeof window!=="undefined"&&window.location;if(!location){throw new Error("fixUrls requires window.location")}if(!css||typeof css!=="string"){return css}var baseUrl=location.protocol+"//"+location.host;var currentDir=baseUrl+location.pathname.replace(/\/[^\/]*$/,"/");var fixedCss=css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(fullMatch,origUrl){var unquotedOrigUrl=origUrl.trim().replace(/^"(.*)"$/,function(o,$1){return $1}).replace(/^'(.*)'$/,function(o,$1){return $1});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)){return fullMatch}var newUrl;if(unquotedOrigUrl.indexOf("//")===0){newUrl=unquotedOrigUrl}else if(unquotedOrigUrl.indexOf("/")===0){newUrl=baseUrl+unquotedOrigUrl}else{newUrl=currentDir+unquotedOrigUrl.replace(/^\.\//,"")}return"url("+JSON.stringify(newUrl)+")"});return fixedCss}},,,,,function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:true});var __WEBPACK_IMPORTED_MODULE_0__src_froala__=__webpack_require__(8);FroalaCharts.addDep(__WEBPACK_IMPORTED_MODULE_0__src_froala__["a"])},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__froalacharts_theme_froala_css__=__webpack_require__(9);var __WEBPACK_IMPORTED_MODULE_0__froalacharts_theme_froala_css___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__froalacharts_theme_froala_css__);var themeObject={name:"froala",theme:{base:{chart:{showBorder:0,showCanvasBorder:0,canvasBgAlpha:0,bgColor:"#FFFFFF",baseFont:"Lato",baseFontSize:14,baseFontColor:"#8892a0",outCnvBaseFont:"Lato",outCnvBaseFontSize:14,outCnvbaseFontColor:"#8892a0",captionFontSize:20,captionFontBold:0,captionFontColor:"#444444",subCaptionFontSize:18,subCaptionFontBold:0,subCaptionFontColor:"#444444",xAxisNameFontSize:16,yAxisNameFontSize:16,xAxisNameFontColor:"#444444",yAxisNameFontColor:"#444444",valueFontSize:14,showValues:0,showPlotBorder:0,usePlotGradientColor:0,showAlternateHGridColor:0,showAlternateVGridColor:0,paletteColors:"#007bff, #ffc107, #dc3545, #28a745, #6c757d, #6f42c1, #fd7e14, #17a2b8",plothighlighteffect:"fadeout",divLineColor:"#000000",divLineAlpha:10,tooltipBgColor:"#222222",tooltipColor:"#ffffff",tooltipPadding:6,tooltipBorderThickness:0,crossLineAnimation:1,crossLineAlpha:10,crossLineColor:"#000000",showShadow:0,legendBorderAlpha:0,LegendShadow:0,legendItemFontSize:14,drawCustomLegendIcon:1,showHoverEffect:1,plotHoverEffect:1,plotFillHoverAlpha:"90",barHoverAlpha:"90",anchorHoverEffect:"1",anchorHoverRadius:"4",anchorBorderHoverThickness:"1.5",anchorBgHoverColor:"#FFFFFF",yAxisNamePadding:10,sYAxisNamePadding:10,xAxisNamePadding:10,captionPadding:10,canvasPadding:10,flatScrollBars:"1",scrollShowButtons:"0",scrollheight:"10",scrollColor:"#e3e3e3"}},pie:{chart:{smartLineColor:"#000000",smartLineAlpha:10,use3DLighting:"0",showPercentValues:"1",showValues:"1",showPercentInTooltip:"0",showLegend:1,legendIconSides:"1"}},doughnut:{chart:{use3DLighting:"0",showPercentValues:"1",showValues:"1",showPercentInTooltip:"0",showLegend:1,legendIconSides:"1"}},column:{chart:{drawCrossLine:1,legendPosition:"top-right"}},bar:{chart:{drawCrossLine:1,legendPosition:"top-right"}},area:{chart:{drawCrossLine:"1",showLegend:"1",legendIconSides:"1",drawCrossLine:1,legendPosition:"top-right"}},line:{chart:{lineThickness:2,drawCrossLine:"1",showLegend:"1",legendIconSides:"1",drawCrossLine:1,legendPosition:"top-right"}},stackedcolumn:{chart:{drawCrossLine:1,legendPosition:"top-right"}},stackedbar:{chart:{drawCrossLine:1,legendPosition:"top-right"}},stackedarea:{chart:{drawCrossLine:"1",showLegend:"1",legendIconSides:"1",drawCrossLine:1,legendPosition:"top-right"}},combination:{chart:{drawCrossLine:"1",legendIconSides:"1",legendPosition:"top-right"}},scatter:{chart:{drawCustomLegendIcon:0,legendPosition:"top-right",anchorRadius:4,anchorHoverRadius:6}},bubble:{chart:{use3DLighting:"0",legendIconSides:"2",plotFillAlpha:"80",legendPosition:"top-right"}},angulargauge:{chart:{setAdaptiveMin:"1",adjustTM:"1",tickvaluedistance:"10",placeTicksInside:"0",autoAlignTickValues:"1",showGaugeBorder:"0",minortmnumber:"0",majorTMHeight:"8",gaugeFillMix:"{light-0}",pivotbgcolor:"#000000",pivotfillmix:"0",showpivotborder:"1",pivotBorderColor:"#FFFFFF",showValue:"0",valueBelowPivot:"1"},dials:{dial:[{bgColor:"#000000",borderThickness:"0"}]}},funnel:{chart:{is2D:"1",streamlinedData:"1",useSameSlantAngle:"1",alignCaptionWithCanvas:"1",smartLineColor:"#000000",smartLineAlpha:10,legendPosition:"right"}},pyramid:{chart:{use3dlighting:"0",is2D:"1",streamlinedData:"1",useSameSlantAngle:"1",alignCaptionWithCanvas:"1",smartLineColor:"#000000",smartLineAlpha:10,legendPosition:"right"}},heatmap:{chart:{showPlotBorder:"1",plotBorderAlpha:"100",plotBorderThickness:"0.5",plotBorderColor:"#000000",plotBorderAlpha:10,valueFontColor:"#FFFFFF",tlFontColor:"#FDFDFD",tlFont:"Lato",tlFontSize:"12",trFontColor:"#FDFDFD",trFont:"Lato",trFontSize:"12",blFontColor:"#FDFDFD",blFont:"Lato",blFontSize:"12",brFontColor:"#FDFDFD",brFont:"Lato",brFontSize:"12",captionPadding:"20",legendScaleLineThickness:"0",legendaxisborderalpha:"0"}},sankey:{chart:{nodeLabelFontColor:"#8892a0",nodeLabelFontSize:14,nodeLabelPosition:"inside",nodeHoverAlpha:65,legendPosition:"bottom",linkColor:"source",linkHoverAlpha:65,linkAlpha:40,enableDrag:0,showLegend:0,legendPosition:"right"}},chord:{chart:{legendPosition:"right",nodeThickness:10,nodeLabelColor:"#8892a0",nodeLabelFontSize:14,nodeLabelPosition:"outside",nodeHoverAlpha:100,nodeLinkPadding:5,nodeBorderThickness:.5,nodeAlpha:100,linkAlpha:40,linkBorderAlpha:40,linkHoverAlpha:65}},radar:{chart:{showLegend:"1",legendIconSides:"2",plotFillAlpha:"65",drawAnchors:"0"}},timeseries:{caption:{style:{text:{"font-size":20,"font-family":"Lato",fill:"#444444"}}},subcaption:{style:{text:{"font-size":18,"font-family":"Lato",fill:"#444444"}}},crossline:{style:{line:{stroke:"#000000","stroke-width":1,opacity:.1}}},chart:{paletteColors:"#007bff, #ffc107, #dc3545, #28a745, #6c757d, #6f42c1, #fd7e14, #17a2b8",baseFont:"Lato",multiCanvasTooltip:1,style:{text:{"font-family":"Lato","font-size":14},canvas:{stroke:"##000000","stroke-width":1,opacity:.1}}},tooltip:{style:{container:{"background-color":"#222222",border:"none",padding:"6px"},text:{"font-size":"14px",color:"#FFFFFF"},header:{color:"#FFFFFF","font-family":"Lato",padding:"0px"},body:{padding:"0px"}}},navigator:{scrollbar:{style:{button:{fill:"#E3E3E3"},track:{fill:"#FFFFFF",stroke:"#000000","stroke-width":1,opacity:.1},scroller:{fill:"#E3E3E3"}}},window:{style:{handle:{fill:"#E3E3E3"}}}},legend:{style:{text:{fill:"#8892a0","font-size":14,"font-family":"Lato"}}},xaxis:{style:{title:{"font-size":16,"font-family":"Lato",fill:"#444444"},"grid-line":{stroke:"#000000","stroke-width":.55,opacity:.1},"tick-mark-major":{stroke:"#000000","stroke-width":.5,opacity:.1},"tick-mark-minor":{stroke:"#000000","stroke-width":.25,opacity:.1},"label-major":{color:"#8892a0"},"label-minor":{color:"#8892a0"},"label-context":{color:"#8892a0","font-family":"Lato"}}},plotconfig:{column:{style:{"plot:hover":{opacity:.4},"plot:highlight":{opacity:.65}}},line:{style:{plot:{"stroke-width":2},anchor:{"stroke-width":0}}},area:{style:{anchor:{"stroke-width":0}}},candlestick:{style:{bear:{stroke:"#dc3545",fill:"#dc3545"},bull:{stroke:"#28a745",fill:"#28a745"},"bear:hover":{opacity:.4},"bear:highlight":{opacity:.65},"bull:hover":{opacity:.4},"bull:highlight":{opacity:.65}}},ohlc:{style:{bear:{stroke:"#dc3545",fill:"#dc3545"},bull:{stroke:"#28a745",fill:"#28a745"},"bear:hover":{opacity:.4},"bear:highlight":{opacity:.65},"bull:hover":{opacity:.4},"bull:highlight":{opacity:.65}}}},yaxis:[{style:{title:{"font-size":16,"font-family":"Lato",fill:"#444444"},"tick-mark":{stroke:"#000000","stroke-width":.5,opacity:.1},"grid-line":{stroke:"#000000","stroke-width":.5,opacity:.1},label:{color:"#8892a0"}}}],extensions:{customRangeSelector:{style:{"title-text":{"font-family":"Lato",fill:"#007bff"},"title-icon":{"font-family":"Lato",fill:"#007bff"},label:{color:"#8892a0","font-family":"Lato","font-size":"12px"},input:{"font-family":"Lato","font-size":"12px"},"button-apply":{color:"#FFFFFF","background-color":"#007bff",border:"none"},"button-apply:hover":{"font-family":"Lato"},"button-cancel":{color:"#8892a0","background-color":"#FFFFFF",border:"none"},"button-cancel:hover":{color:"#007bff","font-family":"Lato"},"cal-navprev":{"font-family":"Lato","font-weight":400},"cal-navnext":{"font-family":"Lato","font-weight":400},"cal-header":{"background-color":"#007bff","font-family":"Lato"},"cal-selecteddate":{color:"#FEFEFE","background-color":"#007bff","font-family":"Lato","font-size":"12px",border:"none"},"cal-date":{color:"#5F5F5F","font-family":"Lato","font-size":"12px",border:"none"},"cal-disableddate":{color:"#CACACA","font-family":"Lato","font-size":"12px",border:"none"},"cal-date:hover":{"background-color":"#007bff",color:"#FEFEFE","font-family":"Lato",border:"none"},"cal-weekend":{"background-color":"rgba(0, 123, 255, 0.2)"}}},standardRangeSelector:{style:{"button-text":{fill:"#999999"},"button-text:hover":{fill:"#007bff","font-family":"Lato"},"button-text:active":{fill:"#007bff","font-family":"Lato"},separator:{stroke:"#000000",opacity:.1}}}}}}};__webpack_exports__["a"]={extension:themeObject,name:"froalaTheme",type:"theme"}},function(module,exports,__webpack_require__){var content=__webpack_require__(10);if(typeof content==="string")content=[[module.i,content,""]];var transform;var insertInto;var options={hmr:true};options.transform=transform;options.insertInto=undefined;var update=__webpack_require__(1)(content,options);if(content.locals)module.exports=content.locals;if(false){module.hot.accept("!!../../../node_modules/css-loader/index.js!./froalacharts.theme.froala.css",function(){var newContent=require("!!../../../node_modules/css-loader/index.js!./froalacharts.theme.froala.css");if(typeof newContent==="string")newContent=[[module.id,newContent,""]];var locals=function(a,b){var key,idx=0;for(key in a){if(!b||a[key]!==b[key])return false;idx++}for(key in b)idx--;return idx===0}(content.locals,newContent.locals);if(!locals)throw new Error("Aborting CSS HMR due to changed css-modules locals.");update(newContent)});module.hot.dispose(function(){update()})}},function(module,exports,__webpack_require__){exports=module.exports=__webpack_require__(0)(false);exports.push([module.i,"@import url(https://fonts.googleapis.com/css2?family=Lato&display=swap);",""]);exports.push([module.i,"",""])}])});
2//# sourceMappingURL=froalacharts.theme.froala.js.map
\No newline at end of file