@corva/ui 0.79.0-0 → 0.79.0-2

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 (59) hide show
  1. package/cjs-bundle/components/AppIcon/assets/CompletionAppIcon.js +1 -1
  2. package/cjs-bundle/components/AppIcon/assets/CompletionAppIconBe.js +1 -1
  3. package/cjs-bundle/components/AppIcon/assets/DrillingAppIconBe.js +1 -1
  4. package/cjs-bundle/components/AppIcon/assets/NoSegmentAppIconBeIdle.js +1 -0
  5. package/cjs-bundle/components/AppIcon/utils.js +1 -1
  6. package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  7. package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
  8. package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js +1 -1
  9. package/cjs-bundle/components/AssetNameLabel/AssetNameLabel.js +1 -1
  10. package/cjs-bundle/components/DevCenter/AppHeader/PadIcon.js +1 -1
  11. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  12. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  13. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  14. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
  15. package/cjs-bundle/components/Search/Search.js +1 -1
  16. package/cjs-bundle/components/Search/components/Groups.js +1 -1
  17. package/cjs-bundle/constants/streamSourceType.js +1 -0
  18. package/cjs-bundle/utils/completion.js +1 -1
  19. package/cjs-bundle/utils/dashboardReports.js +1 -1
  20. package/components/AppIcon/AppIcon.d.ts +1 -1
  21. package/components/AppIcon/AppIcon.d.ts.map +1 -1
  22. package/components/AppIcon/assets/CompletionAppIcon.js +1 -1
  23. package/components/AppIcon/assets/CompletionAppIconBe.js +1 -1
  24. package/components/AppIcon/assets/DrillingAppIconBe.js +1 -1
  25. package/components/AppIcon/assets/NoSegmentAppIconBeIdle.d.ts +5 -0
  26. package/components/AppIcon/assets/NoSegmentAppIconBeIdle.d.ts.map +1 -0
  27. package/components/AppIcon/assets/NoSegmentAppIconBeIdle.js +1 -0
  28. package/components/AppIcon/utils.d.ts.map +1 -1
  29. package/components/AppIcon/utils.js +1 -1
  30. package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  31. package/components/AssetEditorV2/components/SecondaryAssetSelect.d.ts.map +1 -1
  32. package/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
  33. package/components/AssetEditorV2/components/SelectItem.d.ts +1 -19
  34. package/components/AssetEditorV2/components/SelectItem.d.ts.map +1 -1
  35. package/components/AssetEditorV2/components/SelectItem.js +1 -1
  36. package/components/AssetNameLabel/AssetNameLabel.js +1 -1
  37. package/components/DevCenter/AppHeader/PadIcon.js +1 -1
  38. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts +3 -4
  39. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
  40. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  41. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  42. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.d.ts +4 -4
  43. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.d.ts.map +1 -1
  44. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  45. package/components/PadModeSelect/PadModeSelect.d.ts +1 -1
  46. package/components/PadModeSelect/PadModeSelect.js +1 -1
  47. package/components/Search/Search.d.ts.map +1 -1
  48. package/components/Search/Search.js +1 -1
  49. package/components/Search/components/Groups.d.ts +1 -1
  50. package/components/Search/components/Groups.js +1 -1
  51. package/constants/streamSourceType.d.ts +6 -0
  52. package/constants/streamSourceType.d.ts.map +1 -1
  53. package/constants/streamSourceType.js +1 -0
  54. package/package.json +1 -1
  55. package/utils/completion.d.ts.map +1 -1
  56. package/utils/completion.js +1 -1
  57. package/utils/dashboardReports.d.ts +145 -3
  58. package/utils/dashboardReports.d.ts.map +1 -1
  59. package/utils/dashboardReports.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dashboardReports.d.ts","sourceRoot":"","sources":["../../src/utils/dashboardReports.js"],"names":[],"mappings":"AAsDA,qDA4BC;AAED;;;;;;;;;;;;;;;;EAgBC;AAGD,sDAiDC;AAED;;gCAKC;AAxJD,yCAA0C;AAC1C,4CAAyD;AAElD;;;;;;;;EAOL"}
1
+ {"version":3,"file":"dashboardReports.d.ts","sourceRoot":"","sources":["../../src/utils/dashboardReports.js"],"names":[],"mappings":"AAsGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBC;AA6BD,uDAIC;AAGD,0FAkEC;AAED;;gCAKC;AA1ND,yCAA0C;AAC1C,4CAAyD;AAElD;;;;;;;;EAOL"}
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/toConsumableArray";var r="SMALL",n="MEDIUM",e="LARGE",o="XLARGE",i=37.7952755906,a=18.8976377953,s=function(t){var r=t.width,n=t.height;return{pixelWidth:Math.round(18.8976377953*r),pixelHeight:Math.round(18.8976377953*n),realWidth:Math.round(2*r*18.8976377953),realHeight:Math.round(2*n*18.8976377953)}},u={NORMAL:{type:"NORMAL",columns:{min:1,max:7},rows:{min:1,max:1e3},slots:1,height:17.5,width:20.8},WIDE:{type:"WIDE",columns:{min:8,max:12},rows:{min:1,max:25},slots:2,height:17.5,width:41.8},HALFSCREEN:{type:"HALFSCREEN",columns:{min:8,max:12},rows:{min:26,max:40},slots:4,height:26.5,width:41.8},FULLSCREEN:{type:"FULLSCREEN",columns:{min:8,max:12},rows:{min:41,max:1e3},slots:6,height:53.3,width:41.8}};function c(t){return t.concat().sort((function(t,r){var n=t.coordinates.y,e=r.coordinates.y;if(n<e)return-1;if(n>e)return 1;if(n===e){var o=t.coordinates.x,i=r.coordinates.x;if(o<i)return-1;if(o>i)return 1}return 0}))}function m(t){var r=t.coordinates,n=t.isFullScreenReport,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dashboard";if("singleApp"===e||n)return u.FULLSCREEN;var o=r.w,i=r.h;return Object.values(u).find((function(t){return o>=t.columns.min&&o<=t.columns.max&&i>=t.rows.min&&i<=t.rows.max}))}function l(r,n){var e,o=[],i=[o],a=0;return r.reduce((function(i,s,c){e=!1;var l=m(s,n),h=l.slots,d=l.type;if(d!==u.FULLSCREEN.type){var f=r[c+1];if(f){var p=m(f,n);if(a%2==0&&1===h&&p.slots%2==0){var E=u.WIDE;h=E.slots,d=E.type}}else if(c%2==0){var v=u.WIDE;h=v.slots,d=v.type}}a+=h;var L={app:s,slots:h,reportAppSize:l},x=i.map((function(r){if(e)return r;var n=6-r.reduce((function(t,r){return t+r.slots}),0);return n>=h&&(e=!0),n>=h?[].concat(t(r),[L]):r}));return e?x:[].concat(t(x),[[].concat(o,[L])])}),i)}function h(t){var i=t.w,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a?o:i>=5?e:i>=3?n:r}export{a as PDF_REPORT_PIXEL_RATIO,i as PIXELS_IN_CM,m as getAppType,s as getPDFAppPixelSize,h as getPDFAppSize,l as getPages,c as sortPDFDashboardApps};
1
+ import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/toConsumableArray";import e from"lodash/sumBy";import n from"lodash/chunk";function o(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function i(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}var p="SMALL",a="MEDIUM",s="LARGE",u="XLARGE",c=37.7952755906,l=18.8976377953,m=function(t){var r=t.width,e=t.height;return{pixelWidth:Math.round(18.8976377953*r),pixelHeight:Math.round(18.8976377953*e),realWidth:Math.round(2*r*18.8976377953),realHeight:Math.round(2*e*18.8976377953)}},h={type:"QUATER",columns:{min:1,max:2},rows:{min:1,max:10},slots:1,height:8.4,width:10.3},f={NORMAL:{type:"NORMAL",columns:{min:1,max:7},rows:{min:1,max:1e3},slots:1,height:17.5,width:20.8},WIDE:{type:"WIDE",columns:{min:8,max:12},rows:{min:1,max:25},slots:2,height:17.5,width:41.8},HALFSCREEN:{type:"HALFSCREEN",columns:{min:8,max:12},rows:{min:26,max:40},slots:4,height:26.5,width:41.8},FULLSCREEN:{type:"FULLSCREEN",columns:{min:8,max:12},rows:{min:41,max:1e3},slots:6,height:53.3,width:41.8}},y=function(t){var e=r(t);return e.sort((function(t,r){var e=t.coordinates.y,n=r.coordinates.y;if(e<n)return-1;if(e>n)return 1;if(e===n){var o=t.coordinates.x,i=r.coordinates.x;if(o<i)return-1;if(o>i)return 1}return 0})),e},v=Object.values(f);function d(t,r){var e=t.coordinates,n=t.isFullScreenReport,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;if("singleApp"===r||n)return f.FULLSCREEN;var i=e.w,p=e.h;return o.find((function(t){return i>=t.columns.min&&i<=t.columns.max&&p>=t.rows.min&&p<=t.rows.max}))}var E=function(t,r,e){if(!("compact"===e))return{quaterApps:[],otherApps:t.map((function(t){return i(i({},t),{},{appType:d(t,r,v)})}))};var n={quaterApps:[],otherApps:[]},o=[h].concat(v);return t.forEach((function(t){var e=d(t,r,o),p=i(i({},t),{},{appType:e});e.type===h.type?n.quaterApps.push(p):n.otherApps.push(p)})),n};function g(t){var e=E(t),n=e.otherApps,o=e.quaterApps;return[].concat(r(y(n)),r(y(o)))}function A(t,o,i){var p=E(t,o,i),a=p.otherApps,s=p.quaterApps,u=y(a),c=y(s),l=0,m=u.reduce((function(t,n,o,i){var p=n.appType,a=p.slots,s=p.type;if(s!==f.FULLSCREEN.type){var u=i[o+1];if(u){var c=u.appType;if(console.log(u),l%2==0&&1===a&&c.slots%2==0){var m=f.WIDE;a=m.slots,s=m.type}}else if(o%2==0){var h=f.WIDE;a=h.slots,s=h.type}}l+=a;var y={app:n,slots:a,reportAppSize:n.appType},v=!1,d=t.map((function(t){if(v)return t;var n=6-e(t,"slots");return n>=a&&(v=!0),n>=a?[].concat(r(t),[y]):t}));return v?d:[].concat(r(d),[[y]])}),[[]]);if(!c.length)return m;var v=m[m.length-1],d=4*(6-e(v,"slots")),g=c.map((function(t){return{app:t,reportAppSize:h}})),A=[].concat(r(v),r(g.slice(0,d))),w=n(g.slice(d),24);return[].concat(r(m.slice(0,m.length-1)),[A],r(w))}function w(t){var r=t.w,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?u:r>=5?s:r>=3?a:p}export{l as PDF_REPORT_PIXEL_RATIO,c as PIXELS_IN_CM,f as REPORT_APP_GRID_TYPES,d as getAppType,m as getPDFAppPixelSize,w as getPDFAppSize,A as getPages,g as sortPDFDashboardApps};