@bimdata/design-system 1.4.0-rc.1 → 1.4.0-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/components.js +3 -0
  2. package/dist/css/design-system.css +208 -208
  3. package/dist/js/BIMDataComponents/BIMDataCarousel.js +1 -0
  4. package/dist/js/BIMDataComponents/BIMDataDropdownList.js +1 -1
  5. package/dist/js/BIMDataComponents/BIMDataDropdownMenu.js +1 -1
  6. package/dist/js/BIMDataComponents/BIMDataGuidedTour.js +1 -1
  7. package/dist/js/BIMDataComponents/BIMDataIcon.js +1 -1
  8. package/dist/js/BIMDataComponents/BIMDataMultiplePieChart.js +1 -0
  9. package/dist/js/BIMDataComponents/BIMDataSafeZoneModal.js +1 -1
  10. package/dist/js/BIMDataComponents/BIMDataSearch.js +1 -1
  11. package/dist/js/BIMDataComponents/BIMDataSelect.js +1 -1
  12. package/dist/js/BIMDataComponents/BIMDataSimplePieChart.js +1 -0
  13. package/dist/js/BIMDataComponents/index.js +1 -1
  14. package/dist/js/BIMDataComponents/vue3/BIMDataCarousel.js +1 -0
  15. package/dist/js/BIMDataComponents/vue3/BIMDataDropdownList.js +1 -1
  16. package/dist/js/BIMDataComponents/vue3/BIMDataDropdownMenu.js +1 -1
  17. package/dist/js/BIMDataComponents/vue3/BIMDataGuidedTour.js +1 -1
  18. package/dist/js/BIMDataComponents/vue3/BIMDataIcon.js +1 -1
  19. package/dist/js/BIMDataComponents/vue3/BIMDataMultiplePieChart.js +1 -0
  20. package/dist/js/BIMDataComponents/vue3/BIMDataSafeZoneModal.js +1 -1
  21. package/dist/js/BIMDataComponents/vue3/BIMDataSearch.js +1 -1
  22. package/dist/js/BIMDataComponents/vue3/BIMDataSelect.js +1 -1
  23. package/dist/js/BIMDataComponents/vue3/BIMDataSimplePieChart.js +1 -0
  24. package/dist/js/BIMDataComponents/vue3/index.js +1 -1
  25. package/dist/js/BIMDataDirectives/index.js +1 -1
  26. package/dist/js/BIMDataDirectives/vue3/index.js +1 -1
  27. package/dist/js/BIMDataSmartComponents/BIMDataFileManager.js +1 -1
  28. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ import{openBlock as e,createElementBlock as t,normalizeStyle as r,Fragment as a,renderList as i,createElementVNode as s,renderSlot as n}from"vue";var o={props:{size:{type:Number,default:200},graphDrawTime:{type:Number,default:2},firstBarDistanceFromCenter:{type:Number,default:57},interBarDistance:{type:Number,default:16},barStrokeWidth:{type:Number,default:10},placeholderBarStrokeWidth:{type:Number,default:4},placeholderBarStroke:{type:String,default:"#D8D8D8"},barsData:{type:Array,default:()=>[]}},computed:{center(){return this.viewBoxSize/2},viewBoxSize(){return 2*this.firstBarDistanceFromCenter+this.interBarDistance*this.relevantBarsData.length*2},viewBox(){return`0 0 ${this.viewBoxSize} ${this.viewBoxSize}`},relevantBarsData(){return this.barsData.filter(({percentage:e})=>e>0).reverse()}},methods:{getPath(e,t){const r=this.getRadius(t);return`M${this.center},${this.center-r} A${r} ${r} 0 ${this.getTarget(e,r)}`},getTarget(e,t){const r=e/100*Math.PI*2-Math.PI/2;return`${e>50?1:0} 1 ${t*Math.cos(r)+this.center},${t*Math.sin(r)+this.center}`},getRadius(e){return this.firstBarDistanceFromCenter+e*this.interBarDistance}}};const d=["viewBox"],h=["cx","cy","r","stroke","stroke-width"],l=["d","stroke","stroke-width"],c=["cx","cy","r","stroke","stroke-width","transform"];!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&a.firstChild?a.insertBefore(i,a.firstChild):a.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".bimdata-multiple-pie-chart[data-v-5022e2ba] {\n position: relative;\n padding: 0;\n}\n.bimdata-multiple-pie-chart .path[data-v-5022e2ba] {\n stroke-dasharray: 1000;\n stroke-dashoffset: 1000;\n -webkit-animation: dash-5022e2ba var(--graph-draw-time, 2s) ease-in forwards;\n animation: dash-5022e2ba var(--graph-draw-time, 2s) ease-in forwards;\n}\n@-webkit-keyframes dash-5022e2ba {\nto {\n stroke-dashoffset: 0;\n}\n}\n@keyframes dash-5022e2ba {\nto {\n stroke-dashoffset: 0;\n}\n}"),o.render=function(o,p,u,f,m,k){return e(),t("div",{class:"bimdata-multiple-pie-chart",ref:"container",style:r(`--graph-draw-time: ${u.graphDrawTime}s;width: ${u.size}px;height: ${u.size}px;`)},[(e(),t("svg",{width:"100%",height:"100%",viewBox:k.viewBox},[(e(!0),t(a,null,i(k.relevantBarsData,(r,a)=>(e(),t("g",{key:a},[s("circle",{cx:k.center,cy:k.center,r:k.getRadius(a),stroke:u.placeholderBarStroke,"stroke-width":u.placeholderBarStrokeWidth,fill:"none"},null,8,h),r.percentage<100?(e(),t("path",{key:0,class:"path",d:k.getPath(r.percentage,a),stroke:r.color,"stroke-width":u.barStrokeWidth,"stroke-linecap":"round",fill:"none"},null,8,l)):(e(),t("circle",{key:1,class:"path",cx:k.center,cy:k.center,r:k.getRadius(a),stroke:r.color,"stroke-width":u.barStrokeWidth,"stroke-linecap":"round",transform:`rotate(-90 ${k.center} ${k.center})`,fill:"none"},null,8,c))]))),128))],8,d)),n(o.$slots,"default")],4)},o.__scopeId="data-v-5022e2ba",o.__file="src/BIMDataComponents/BIMDataMultiplePieChart/BIMDataMultiplePieChart.vue";export{o as default};