@muil/charts
Advanced tools
Comparing version 0.0.8-alpha-9 to 0.1.0
@@ -1,1 +0,1 @@ | ||
module.exports=function(n){var e={};function t(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return n[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var a in n)t.d(r,a,function(e){return n[e]}.bind(null,a));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=2)}([function(n,e){n.exports=require("react")},function(n,e){n.exports=require("styled-components")},function(n,e,t){"use strict";t.r(e);var r=t(0),a=t.n(r),c=t(1),l=t.n(c);function u(){var n=k(["\n max-width: 30%;\n > span {\n margin-right: 10px;\n }\n"]);return u=function(){return n},n}function i(){var n=k(["\n height: 10px;\n"]);return i=function(){return n},n}function o(){var n=k(["\n width: ","%;\n height: 100%;\n min-height: 25px;\n background: ",";\n display: inline-block;\n vertical-align: middle;\n"]);return o=function(){return n},n}function f(){var n=k(["\n width: 75%;\n white-space: nowrap;\n > span {\n margin-left: 5px;\n }\n"]);return f=function(){return n},n}function m(){var n=k(["\n vertical-align: bottom;\n text-align: center;\n"]);return m=function(){return n},n}function s(){var n=k(["\n width: 5%;\n"]);return s=function(){return n},n}function d(){var n=k(["\n display: inline-block;\n max-width: 50px;\n"]);return d=function(){return n},n}function p(){var n=k(["\n > td {\n padding: 6px;\n font-size: 14px;\n vertical-align: top;\n }\n"]);return p=function(){return n},n}function g(){var n=k(["\n font-size: 12px;\n color: #929292;\n"]);return g=function(){return n},n}function v(){var n=k(["\n height: ","%;\n background: ",";\n min-width: 18px;\n"]);return v=function(){return n},n}function h(){var n=k(["\n height: 100%;\n > td {\n border-bottom: 1px solid #d5d5d4;\n }\n"]);return h=function(){return n},n}function b(){var n=k(["\n display: inline-block;\n width: 12px;\n height: 12px;\n margin-right: 7px;\n background: ",";\n"]);return b=function(){return n},n}function x(){var n=k(["\n height: 6px;\n"]);return x=function(){return n},n}function E(){var n=k(["\n font-size: 12px;\n"]);return E=function(){return n},n}function y(){var n=k(["\n ",";\n width: 95%;\n max-width: ","px;\n"]);return y=function(){return n},n}function w(){var n=k(["\n ",";\n height: ","px;\n"]);return w=function(){return n},n}function N(){var n=k(["\n font-family: Arial;\n padding-top: 20px;\n"]);return N=function(){return n},n}function k(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}var j=Object(c.css)(N()),O=l.a.table(w(),j,(function(n){return n.height||200})),S=l.a.table(y(),j,(function(n){return n.maxWidth||200})),P=l.a.td(E()),z=l.a.td(x()),_=l.a.div(b(),(function(n){return n.color})),F=l.a.tr(h()),M=l.a.div(v(),(function(n){return n.value}),(function(n){return n.color||"#17a2b8"})),W=l.a.span(g()),q=l.a.tr(p()),B=l.a.span(d()),C=l.a.td(s()),T=l.a.td(m()),A=l.a.td(f()),H=l.a.div(o(),(function(n){return n.value}),(function(n){return n.color||"#17a2b8"})),D=l.a.tr(i()),G=l.a.td(u()),I=function(n){var e=n.categories;return a.a.createElement(a.a.Fragment,null,e.map((function(n,e){var t=n.label,r=n.color;return a.a.createElement(a.a.Fragment,{key:e},a.a.createElement("tr",null,a.a.createElement(P,{className:"category-row",colSpan:"100%"},a.a.createElement(_,{color:r}),a.a.createElement("span",null,t))),a.a.createElement("tr",null,a.a.createElement(z,{className:"category-space"})))})),a.a.createElement("tr",{style:{height:30}}))},J=function(n){var e=n.className,t=n.height,r=n.series,c=void 0===r?[]:r,l=n.categories,u=n.legend,i=void 0!==u&&u;return a.a.createElement(O,{className:e,cellSpacing:"0",cellPadding:"0",height:t},i&&a.a.createElement(I,{categories:l}),a.a.createElement(F,{className:"columns"},c.map((function(n,e){var t=n.data,r=n.value;return a.a.createElement(a.a.Fragment,{key:e},(t||[r]).map((function(n,e){return a.a.createElement(T,{key:e,className:"column"},a.a.createElement(W,{className:"column label"},n),a.a.createElement(M,{value:n,color:l[e].color,className:"column bar"}))})),e<c.length-1&&a.a.createElement(C,null))}))),a.a.createElement(q,{className:"labels"},c.map((function(n,e){var t=n.label;return a.a.createElement(a.a.Fragment,{key:e},a.a.createElement(T,{colSpan:l.length,className:"label"},a.a.createElement(B,null,t)),e<c.length-1&&a.a.createElement(C,null))}))))},K=function(n){var e=n.className,t=n.maxWidth,r=n.series,c=void 0===r?[]:r,l=n.categories,u=n.legend,i=void 0!==u&&u;return a.a.createElement(S,{className:e,maxWidth:t,cellSpacing:"0",cellPadding:"0"},i&&a.a.createElement(I,{categories:l}),c.map((function(n,e){var t=n.label,r=n.value,c=n.data;return a.a.createElement(a.a.Fragment,{key:e},(c||[r]).map((function(n,e){return a.a.createElement("tr",{key:e},0===e&&a.a.createElement(G,{rowSpan:l.length,className:"label"},a.a.createElement("span",null,t)),a.a.createElement(A,null,a.a.createElement(H,{value:n,color:l[e].color,className:"column bar"}),a.a.createElement(W,{className:"column label"},n)))})),a.a.createElement(D,null))})))};t.d(e,"BarChart",(function(){return J})),t.d(e,"HorizontalBarChart",(function(){return K}))}]); | ||
module.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(r,a,function(n){return e[n]}.bind(null,a));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(e,n){e.exports=require("react")},function(e,n){e.exports=require("styled-components")},function(e,n,t){"use strict";t.r(n);var r=t(0),a=t.n(r),u=t(1),c=t.n(u);function l(){var e=j(["\n max-width: 30%;\n > span {\n margin-right: 10px;\n }\n"]);return l=function(){return e},e}function o(){var e=j(["\n height: 10px;\n"]);return o=function(){return e},e}function i(){var e=j(["\n width: ","%;\n height: 100%;\n min-height: 25px;\n background: ",";\n display: inline-block;\n vertical-align: middle;\n"]);return i=function(){return e},e}function f(){var e=j(["\n width: 75%;\n white-space: nowrap;\n > span {\n margin-left: 5px;\n }\n"]);return f=function(){return e},e}function m(){var e=j(["\n vertical-align: bottom;\n text-align: center;\n"]);return m=function(){return e},e}function s(){var e=j(["\n width: 5%;\n"]);return s=function(){return e},e}function d(){var e=j(["\n display: inline-block;\n max-width: 50px;\n"]);return d=function(){return e},e}function p(){var e=j(["\n > td {\n padding: 6px;\n font-size: 14px;\n vertical-align: top;\n }\n"]);return p=function(){return e},e}function v(){var e=j(["\n font-size: 12px;\n color: #929292;\n"]);return v=function(){return e},e}function g(){var e=j(["\n height: ","%;\n background: ",";\n min-width: 18px;\n"]);return g=function(){return e},e}function h(){var e=j(["\n height: 100%;\n > td {\n border-bottom: 1px solid #d5d5d4;\n }\n"]);return h=function(){return e},e}function b(){var e=j(["\n display: inline-block;\n width: 12px;\n height: 12px;\n margin-right: 7px;\n background: ",";\n"]);return b=function(){return e},e}function y(){var e=j(["\n height: 6px;\n"]);return y=function(){return e},e}function E(){var e=j(["\n font-size: 12px;\n"]);return E=function(){return e},e}function x(){var e=j(["\n ",";\n width: 95%;\n max-width: ","px;\n"]);return x=function(){return e},e}function w(){var e=j(["\n ",";\n height: ","px;\n"]);return w=function(){return e},e}function N(){var e=j(["\n font-family: Arial;\n padding-top: 20px;\n"]);return N=function(){return e},e}function j(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var O=Object(u.css)(N()),k=c.a.table(w(),O,(function(e){return e.height||200})),S=c.a.table(x(),O,(function(e){return e.maxWidth||200})),z=c.a.td(E()),A=c.a.td(y()),M=c.a.div(b(),(function(e){return e.color})),P=c.a.tr(h()),F=c.a.div(g(),(function(e){return e.value}),(function(e){return e.color||"#17a2b8"})),D=c.a.span(v()),_=c.a.tr(p()),T=c.a.span(d()),B=c.a.td(s()),C=c.a.td(m()),W=c.a.td(f()),J=c.a.div(i(),(function(e){return e.value}),(function(e){return e.color||"#17a2b8"})),q=c.a.tr(o()),Y=c.a.td(l()),H=function(e){var n=e.categories;return a.a.createElement(a.a.Fragment,null,n.map((function(e,n){var t=e.label,r=e.color;return a.a.createElement(a.a.Fragment,{key:n},a.a.createElement("tr",null,a.a.createElement(z,{className:"category-row",colSpan:"100%"},a.a.createElement(M,{color:r}),a.a.createElement("span",null,t))),a.a.createElement("tr",null,a.a.createElement(A,{className:"category-space"})))})),a.a.createElement("tr",{style:{height:30}}))},I=function(e){var n=e.className,t=e.style,r=e.height,u=e.series,c=void 0===u?[]:u,l=e.categories,o=e.legend,i=void 0!==o&&o;return a.a.createElement(k,{className:n,style:t,cellSpacing:"0",cellPadding:"0",height:r},i&&a.a.createElement(H,{categories:l}),a.a.createElement(P,{className:"columns"},c.map((function(e,n){var t=e.data,r=e.value;return a.a.createElement(a.a.Fragment,{key:n},(t||[r]).map((function(e,n){return a.a.createElement(C,{key:n,className:"column"},a.a.createElement(D,{className:"column label"},e),a.a.createElement(F,{value:e,color:l[n].color,className:"column bar"}))})),n<c.length-1&&a.a.createElement(B,null))}))),a.a.createElement(_,{className:"labels"},c.map((function(e,n){var t=e.label;return a.a.createElement(a.a.Fragment,{key:n},a.a.createElement(C,{colSpan:l.length,className:"label"},a.a.createElement(T,null,t)),n<c.length-1&&a.a.createElement(B,null))}))))};function L(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function G(){var e=U(["\n width: 20px;\n height: 20px;\n text-align: center;\n font-size: 11px;\n color: #868686;\n ","\n"]);return G=function(){return e},e}function K(){var e=U(["\n font-size: 13px;\n color: #868686;\n"]);return K=function(){return e},e}function Q(){var e=U(["\n font-size: 13px;\n padding: 10px 0;\n"]);return Q=function(){return e},e}function R(){var e=U(["\n border-spacing: 5px;\n display: inline-block;\n margin: 5px;\n"]);return R=function(){return e},e}function U(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var V=["January","February","March","April","May","June","July","August","September","October","November","December"],X=c.a.table(R()),Z=c.a.th(Q()),$=c.a.td(K()),ee=c.a.td(G(),(function(e){return!e.empty&&"background: #e4e4e4;"})),ne=function(e,n){var t=[],r=new Date(e,n).getDay(),a=1;return L(Array(6)).forEach((function(u,c){var l=[];L(Array(7)).forEach((function(t,u){0===c&&u<r?l.push({}):a<=32-new Date(e,n,32).getDate()&&(l.push({day:a,date:new Date(e,n,a)}),a++)})),t.push(l)})),t},te=function(e){var n=e.className,t=e.style,r=e.monthsBefore,u=void 0===r?0:r,c=e.monthsAfter,l=void 0===c?0:c,o=e.showNumbers,i=void 0!==o&&o,f=e.dayClassName,m=L(Array(u+l+1)).map((function(e,n){var t=function(e,n){var t=new Date(e);return t.setMonth(t.getMonth()-n),t}(new Date,u-n);return{month:t,calendar:ne(t.getFullYear(),t.getMonth())}}));return a.a.createElement("div",{className:n,style:t},m.map((function(e,n){var t=e.month,r=e.calendar;return a.a.createElement(X,{key:n},a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement(Z,{colSpan:"7"},function(e){var n=e.getMonth(),t=e.getFullYear();return"".concat(V[n]," ").concat(t)}(t)))),a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement($,null,"S"),a.a.createElement($,null,"M"),a.a.createElement($,null,"T"),a.a.createElement($,null,"W"),a.a.createElement($,null,"T"),a.a.createElement($,null,"F"),a.a.createElement($,null,"S"))),a.a.createElement("tbody",null,r.map((function(e,n){return a.a.createElement("tr",{key:n},e.map((function(e,n){var t=e.day,r=e.date;return a.a.createElement(ee,{key:n,empty:!t,className:null==f?void 0:f({day:t,date:r})},i?t:"")})))}))))})))},re=function(e){var n=e.className,t=e.style,r=e.maxWidth,u=e.series,c=void 0===u?[]:u,l=e.categories,o=e.legend,i=void 0!==o&&o;return a.a.createElement(S,{className:n,style:t,maxWidth:r,cellSpacing:"0",cellPadding:"0"},i&&a.a.createElement(H,{categories:l}),c.map((function(e,n){var t=e.label,r=e.value,u=e.data;return a.a.createElement(a.a.Fragment,{key:n},(u||[r]).map((function(e,n){return a.a.createElement("tr",{key:n},0===n&&a.a.createElement(Y,{rowSpan:l.length,className:"label"},a.a.createElement("span",null,t)),a.a.createElement(W,null,a.a.createElement(J,{value:e,color:l[n].color,className:"column bar"}),a.a.createElement(D,{className:"column label"},e)))})),a.a.createElement(q,null))})))};function ae(){var e=ce(["\n width: ","%;\n height: 24px;\n background-color: ",";\n"]);return ae=function(){return e},e}function ue(){var e=ce(["\n width: 100%;\n border-spacing: 0;\n"]);return ue=function(){return e},e}function ce(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var le=c.a.table(ue()),oe=c.a.td(ae(),(function(e){return e.value}),(function(e){return e.color})),ie=function(e){var n=e.className,t=e.style,r=e.percents,u=void 0===r?[]:r;return a.a.createElement(le,{className:n,style:t},a.a.createElement("tr",null,u.map((function(e,n){var t=e.value,r=e.color;return a.a.createElement(oe,{key:n,value:t,color:r})}))))};t.d(n,"BarChart",(function(){return I})),t.d(n,"Calendar",(function(){return te})),t.d(n,"HorizontalBarChart",(function(){return re})),t.d(n,"LineBar",(function(){return ie}))}]); |
{ | ||
"name": "@muil/charts", | ||
"version": "0.0.8-alpha-9", | ||
"license": "UNLICENSED", | ||
"version": "0.1.0", | ||
"license": "MIT", | ||
"scripts": { | ||
@@ -12,3 +12,12 @@ "prepublish": "webpack" | ||
"main": "lib/index.js", | ||
"gitHead": "ecac6d26013708d17691a69322a85f0b4c5a8f98" | ||
"homepage": "https://github.com/shahafa/muil-editor/tree/master/packages/charts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/shahafa/muil-editor.git", | ||
"directory": "packages/charts" | ||
}, | ||
"dependencies": { | ||
"styled-components": "^5.0.1" | ||
}, | ||
"gitHead": "964aae9b9183d0f08a8c411242e66ff6498cf177" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
16949
4
0
1
219
0
1
+ Addedstyled-components@^5.0.1
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/compat-data@7.26.3(transitive)
+ Added@babel/core@7.26.0(transitive)
+ Added@babel/generator@7.26.3(transitive)
+ Added@babel/helper-annotate-as-pure@7.25.9(transitive)
+ Added@babel/helper-compilation-targets@7.25.9(transitive)
+ Added@babel/helper-module-imports@7.25.9(transitive)
+ Added@babel/helper-module-transforms@7.26.0(transitive)
+ Added@babel/helper-plugin-utils@7.25.9(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/helper-validator-option@7.25.9(transitive)
+ Added@babel/helpers@7.26.0(transitive)
+ Added@babel/parser@7.26.3(transitive)
+ Added@babel/plugin-syntax-jsx@7.25.9(transitive)
+ Added@babel/template@7.25.9(transitive)
+ Added@babel/traverse@7.26.4(transitive)
+ Added@babel/types@7.26.3(transitive)
+ Added@emotion/is-prop-valid@1.3.1(transitive)
+ Added@emotion/memoize@0.9.0(transitive)
+ Added@emotion/stylis@0.8.5(transitive)
+ Added@emotion/unitless@0.7.5(transitive)
+ Added@jridgewell/gen-mapping@0.3.8(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addedbabel-plugin-styled-components@2.1.4(transitive)
+ Addedbrowserslist@4.24.3(transitive)
+ Addedcamelize@1.0.1(transitive)
+ Addedcaniuse-lite@1.0.30001690(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addedcss-color-keywords@1.0.0(transitive)
+ Addedcss-to-react-native@3.2.0(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedelectron-to-chromium@1.5.76(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhoist-non-react-statics@3.3.2(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@3.1.0(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-releases@2.0.19(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedpostcss-value-parser@4.2.0(transitive)
+ Addedreact@19.0.0(transitive)
+ Addedreact-dom@19.0.0(transitive)
+ Addedreact-is@16.13.119.0.0(transitive)
+ Addedscheduler@0.25.0(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedshallowequal@1.1.0(transitive)
+ Addedstyled-components@5.3.11(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedupdate-browserslist-db@1.1.1(transitive)
+ Addedyallist@3.1.1(transitive)