@corva/dc-platform-shared 0.3.0-0 → 0.3.0-rc.0

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.
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{makeStyles as r}from"@material-ui/core";import{getAppType as t,getPDFAppPixelSize as o}from"@corva/ui/utils/dashboardReports";import{getAppCoordinates as i}from"./utils.js";import{jsx as n}from"react/jsx-runtime";function p(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function c(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var a=r({page:{backgroundColor:"#fff",width:"21cm",height:"29.7cm",margin:"auto",overflow:"hidden",position:"relative",pageBreakAfter:"always",boxShadow:"#ccc 0px 1px 3px 0px, #ccc 0px 0px 0px 1px",paddingTop:2},pdfReportApp:{display:"inline-block",overflow:"hidden",position:"relative",zoom:"0.5",margin:"0 0.1cm",pointerEvents:"none"}}),s=function(e){return function(r){var p=a(),s=i(r.manifest),f=t({coordinates:s});return n("div",{className:p.page,children:n("div",{className:p.pdfReportApp,style:{width:"".concat(f.width,"cm"),height:"".concat(f.height,"cm")},children:n(e,c(c({},r),{},{coordinates:c(c({},s),o(f)),layoutEnvironment:{type:"general",pdfReportMode:!0}}))})})}};export{s as default};
1
+ import e from"@babel/runtime/helpers/defineProperty";import{makeStyles as r}from"@material-ui/core";import{getAppType as t,getPDFAppPixelSize as o}from"@corva/ui/utils/dashboardReports";import{getAppCoordinates as i}from"./utils.js";import{jsx as n}from"react/jsx-runtime";function p(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function c(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var a=r({page:{backgroundColor:"#fff",width:"21cm",height:"29.7cm",margin:"auto",overflow:"hidden",position:"relative",pageBreakAfter:"always",boxShadow:"#ccc 0px 1px 3px 0px, #ccc 0px 0px 0px 1px",paddingTop:2},pdfReportApp:{display:"inline-block",overflow:"hidden",position:"relative",zoom:"0.5",margin:"0 0.1cm",pointerEvents:"none"}}),l=function(e){return function(r){var p,l=a(),s=i(r.manifest),f=!(null===(p=r.manifest.application.ui)||void 0===p||!p.full_screen_report),d=t({coordinates:s,isFullScreenReport:f});return n("div",{className:l.page,children:n("div",{className:l.pdfReportApp,style:{width:"".concat(d.width,"cm"),height:"".concat(d.height,"cm")},children:n(e,c(c({},r),{},{coordinates:c(c({},s),o(d)),layoutEnvironment:{type:"general",pdfReportMode:!0}}))})})}};export{l as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/dc-platform-shared",
3
- "version": "0.3.0-0",
3
+ "version": "0.3.0-rc.0",
4
4
  "description": "A library to share internal DC platform specific code",
5
5
  "main": "./dist",
6
6
  "module": "./src/index.js",