@stlite/desktop 0.21.3 → 0.22.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.
- package/build/asset-manifest.json +93 -93
- package/build/index.html +1 -1
- package/build/static/css/{6.03f87ee7.chunk.css → 6.69790b96.chunk.css} +1 -1
- package/build/static/css/{main.b6e9910c.chunk.css → main.7bc75681.chunk.css} +1 -1
- package/build/static/js/{0.db2b8db1.chunk.js → 0.14aa4233.chunk.js} +1 -1
- package/build/static/js/{1.d8a95919.chunk.js → 1.176aded5.chunk.js} +1 -1
- package/build/static/js/{10.dae52f04.chunk.js → 10.e5ea6d64.chunk.js} +1 -1
- package/build/static/js/{11.9fe45850.chunk.js → 11.5e15526e.chunk.js} +2 -2
- package/build/static/js/{11.9fe45850.chunk.js.LICENSE.txt → 11.5e15526e.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{12.209a1965.chunk.js → 12.8105987b.chunk.js} +2 -2
- package/build/static/js/{12.209a1965.chunk.js.LICENSE.txt → 12.8105987b.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{13.a3dda2ea.chunk.js → 13.6f270c1f.chunk.js} +2 -2
- package/build/static/js/{13.a3dda2ea.chunk.js.LICENSE.txt → 13.6f270c1f.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{14.86cd17bd.chunk.js → 14.3da5e7a9.chunk.js} +1 -1
- package/build/static/js/{15.1bdac30d.chunk.js → 15.91a85aa0.chunk.js} +2 -2
- package/build/static/js/{15.1bdac30d.chunk.js.LICENSE.txt → 15.91a85aa0.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{16.be849095.chunk.js → 16.650490ee.chunk.js} +2 -2
- package/build/static/js/{16.be849095.chunk.js.LICENSE.txt → 16.650490ee.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{17.cc750fa1.chunk.js → 17.4c6481b3.chunk.js} +1 -1
- package/build/static/js/{18.5007c118.chunk.js → 18.e3d4364d.chunk.js} +2 -2
- package/build/static/js/{18.5007c118.chunk.js.LICENSE.txt → 18.e3d4364d.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{19.1d97adb1.chunk.js → 19.9004a138.chunk.js} +3 -3
- package/build/static/js/{19.1d97adb1.chunk.js.LICENSE.txt → 19.9004a138.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{2.42f468c9.chunk.js → 2.26deed5e.chunk.js} +2 -2
- package/build/static/js/{2.42f468c9.chunk.js.LICENSE.txt → 2.26deed5e.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{20.d86738b4.chunk.js → 20.1e287e6d.chunk.js} +1 -1
- package/build/static/js/{21.8fca1019.chunk.js → 21.cc58bd99.chunk.js} +1 -1
- package/build/static/js/{22.d22eb326.chunk.js → 22.fe58abe1.chunk.js} +2 -2
- package/build/static/js/{22.d22eb326.chunk.js.LICENSE.txt → 22.fe58abe1.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{23.703a0005.chunk.js → 23.ee721415.chunk.js} +3 -3
- package/build/static/js/{23.703a0005.chunk.js.LICENSE.txt → 23.ee721415.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{24.bbdd8ad5.chunk.js → 24.36b10d26.chunk.js} +2 -2
- package/build/static/js/{24.bbdd8ad5.chunk.js.LICENSE.txt → 24.36b10d26.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{25.7a13965c.chunk.js → 25.edf85627.chunk.js} +2 -2
- package/build/static/js/{25.7a13965c.chunk.js.LICENSE.txt → 25.edf85627.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{26.5d02767c.chunk.js → 26.99f3cc19.chunk.js} +2 -2
- package/build/static/js/{26.5d02767c.chunk.js.LICENSE.txt → 26.99f3cc19.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{27.a1975825.chunk.js → 27.d7aacc94.chunk.js} +2 -2
- package/build/static/js/{27.a1975825.chunk.js.LICENSE.txt → 27.d7aacc94.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{28.8fe6cf95.chunk.js → 28.d24eb9cf.chunk.js} +3 -3
- package/build/static/js/{28.8fe6cf95.chunk.js.LICENSE.txt → 28.d24eb9cf.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{29.2a3ece9e.chunk.js → 29.fbb528d8.chunk.js} +2 -2
- package/build/static/js/{29.2a3ece9e.chunk.js.LICENSE.txt → 29.fbb528d8.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{3.82223a8f.chunk.js → 3.f4fb8871.chunk.js} +1 -1
- package/build/static/js/{30.99b51097.chunk.js → 30.32ab2cb4.chunk.js} +2 -2
- package/build/static/js/{30.99b51097.chunk.js.LICENSE.txt → 30.32ab2cb4.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{31.ff33aa2d.chunk.js → 31.9c06312e.chunk.js} +2 -2
- package/build/static/js/{31.ff33aa2d.chunk.js.LICENSE.txt → 31.9c06312e.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{32.a0448bd6.chunk.js → 32.a1f2009d.chunk.js} +2 -2
- package/build/static/js/{32.a0448bd6.chunk.js.LICENSE.txt → 32.a1f2009d.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{33.4e785a88.chunk.js → 33.1d5fce1c.chunk.js} +2 -2
- package/build/static/js/{33.4e785a88.chunk.js.LICENSE.txt → 33.1d5fce1c.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{34.a91bbe12.chunk.js → 34.edb9c338.chunk.js} +2 -2
- package/build/static/js/{34.a91bbe12.chunk.js.LICENSE.txt → 34.edb9c338.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{35.d2720d0c.chunk.js → 35.6bd7c1ed.chunk.js} +2 -2
- package/build/static/js/{35.d2720d0c.chunk.js.LICENSE.txt → 35.6bd7c1ed.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{36.19b6ded6.chunk.js → 36.be12d12e.chunk.js} +2 -2
- package/build/static/js/{36.19b6ded6.chunk.js.LICENSE.txt → 36.be12d12e.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{37.c8ade714.chunk.js → 37.b845d4ba.chunk.js} +2 -2
- package/build/static/js/{37.c8ade714.chunk.js.LICENSE.txt → 37.b845d4ba.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{38.a8e76ebd.chunk.js → 38.0e8cfb78.chunk.js} +2 -2
- package/build/static/js/{38.a8e76ebd.chunk.js.LICENSE.txt → 38.0e8cfb78.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{39.815183b5.chunk.js → 39.73c851be.chunk.js} +2 -2
- package/build/static/js/{39.815183b5.chunk.js.LICENSE.txt → 39.73c851be.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{40.5e639584.chunk.js → 40.1fc38a50.chunk.js} +2 -2
- package/build/static/js/{40.5e639584.chunk.js.LICENSE.txt → 40.1fc38a50.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{41.1811bda2.chunk.js → 41.4ddf36bc.chunk.js} +2 -2
- package/build/static/js/{41.1811bda2.chunk.js.LICENSE.txt → 41.4ddf36bc.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{42.ccc87d41.chunk.js → 42.e5620440.chunk.js} +2 -2
- package/build/static/js/{42.ccc87d41.chunk.js.LICENSE.txt → 42.e5620440.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{43.dd888752.chunk.js → 43.44eb58de.chunk.js} +2 -2
- package/build/static/js/{43.dd888752.chunk.js.LICENSE.txt → 43.44eb58de.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{44.14f2e50d.chunk.js → 44.35b43369.chunk.js} +2 -2
- package/build/static/js/{44.14f2e50d.chunk.js.LICENSE.txt → 44.35b43369.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{45.61ea1afe.chunk.js → 45.91664b3c.chunk.js} +2 -2
- package/build/static/js/{45.61ea1afe.chunk.js.LICENSE.txt → 45.91664b3c.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{46.3201e0ba.chunk.js → 46.e9639103.chunk.js} +2 -2
- package/build/static/js/{46.3201e0ba.chunk.js.LICENSE.txt → 46.e9639103.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{47.f6442eb9.chunk.js → 47.77b33a34.chunk.js} +2 -2
- package/build/static/js/{47.f6442eb9.chunk.js.LICENSE.txt → 47.77b33a34.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/6.8496e815.chunk.js +2 -0
- package/build/static/js/{6.cfeb0558.chunk.js.LICENSE.txt → 6.8496e815.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{7.e179a232.chunk.js → 7.54bbd037.chunk.js} +2 -2
- package/build/static/js/{7.e179a232.chunk.js.LICENSE.txt → 7.54bbd037.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{8.89ddb52f.chunk.js → 8.934b1bbd.chunk.js} +2 -2
- package/build/static/js/{8.89ddb52f.chunk.js.LICENSE.txt → 8.934b1bbd.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{9.ea63c205.chunk.js → 9.8ff376a2.chunk.js} +1 -1
- package/build/static/js/main.118127a6.chunk.js +28 -0
- package/build/static/js/{main.984ac8f5.chunk.js.LICENSE.txt → main.118127a6.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/runtime-main.fe933feb.js +1 -0
- package/package.json +5 -3
- package/build/static/js/6.cfeb0558.chunk.js +0 -2
- package/build/static/js/main.984ac8f5.chunk.js +0 -28
- package/build/static/js/runtime-main.bae92e60.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 32.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[32],{
|
|
1
|
+
/*! For license information please see 32.a1f2009d.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[32],{1774:function(e,t,o){"use strict";o.r(t),o.d(t,"default",(function(){return L}));var n=o(0),r=o.n(n),i=o(426),l=o(194),d=o(172);let c;!function(e){e.ASCENDING="ascending",e.DESCENDING="descending"}(c||(c={}));var a=o(5);const s=Object(a.a)("div",{target:"e10os9ge8"})((({width:e,theme:t})=>({width:e,border:`1px solid ${t.colors.fadedText05}`,boxSizing:"content-box","& .table-top-right":{overflow:"hidden !important",paddingRight:"6px"},"& .table-bottom-left":{overflow:"hidden !important",paddingBottom:"6px"},"& .table-bottom-right":{overflow:"overlay !important"},"& .table-bottom-right:focus-visible":{outline:"none"},"& .table-bottom-right:focus":{outline:"none"}})),""),h=Object(a.a)("div",{target:"e10os9ge7"})((({theme:e})=>({padding:`${e.spacing.twoXS} ${e.spacing.xs}`,borderBottom:`1px solid ${e.colors.fadedText05}`,borderRight:`1px solid ${e.colors.fadedText05}`,fontSize:e.fontSizes.md,fontFamily:e.fonts.sansSerif,lineHeight:e.lineHeights.table,display:"flex",alignItems:"center",justifyContent:"flex-start"})),""),m=e=>({color:e.colors.fadedText60,borderBottom:`1px solid ${e.colors.fadedText05}`,borderRight:`1px solid ${e.colors.fadedText05}`,zIndex:1}),u=e=>({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",lineHeight:e.lineHeights.table}),b=Object(a.a)(h,{target:"e10os9ge6"})((({theme:e})=>m(e)),""),f=Object(a.a)(h,{target:"e10os9ge5"})((({theme:e})=>({userSelect:"none",...m(e),...u(e)})),""),g=Object(a.a)(h,{target:"e10os9ge4"})((({theme:e})=>({userSelect:"none",...m(e),...u(e)})),""),w=Object(a.a)(h,{target:"e10os9ge3"})((({theme:e})=>u(e)),""),p=Object(a.a)("div",{target:"e10os9ge2"})((({verticalLocator:e,horizontalLocator:t,width:o,height:n})=>({position:"absolute",[e]:"0px",[t]:"0px",width:o,height:n})),""),x=Object(a.a)("div",{target:"e10os9ge1"})((({theme:e})=>({fontFamily:e.fonts.monospace,color:e.colors.fadedText60,fontStyle:"italic",fontSize:e.fontSizes.md,textAlign:"center"})),""),j=Object(a.a)("span",{target:"e10os9ge0"})((({theme:e})=>({color:e.colors.fadedText05,verticalAlign:"top"})),"");var y=o(134),C=o(19);const v=!("undefined"===typeof window||!window.document||!window.document.createElement);let S;function O(e){if((!S&&0!==S||e)&&v){const e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),S=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return S}var N=o(66);const I=2*N.a.smPx,D=(e,t,o,n)=>{const{headerRows:r,headerCols:i,dataRows:l,cols:c,rows:a}=Object(d.c)(o),s=I*r,h=t-2-O(),m=function(e,t,o,n,r,i){const l=25,d=e>2?200:400,c=({index:e})=>{const o=e,r=8*10/10,d=24,c=100;let a=l;for(let l=0;l<Math.min(t,c);l++){let e=-1;e=l<n?l:t>c?Math.floor(Math.random()*t):l;const{contents:s}=i(o,e),h=(s?s.length:0)*r+d;h>a&&(a=h)}return a};let a=[];const s=Array.from(Array(e),((e,t)=>c({index:t}))),h=s.reduce(((e,t)=>e+t),0),m=r-h,u=e=>e.filter((e=>e>d));if(m<0)a=s.map((e=>e>d?d:e));else{const e=u(s),t=m/e.length;a=s.map(((o,n)=>n in e.keys()?o+t:o))}let b=a.reduce(((e,t)=>e+t),0);if(b>r*(2/3)&&b<r){const t=(r-b)/e;a=a.map((e=>e+t)),b=a.reduce(((e,t)=>e+t),0)}const f=Math.min(b,r),g=({index:e})=>a[e],w=a.slice(0,o).reduce(((e,t)=>e+t));return{elementWidth:f,columnWidth:g,headerWidth:w}}(c,a,i,r,h,n);let{elementWidth:u,columnWidth:b,headerWidth:f}=m;if(0===l&&u<60){u=60,f=60;let e=0;for(let t=0;t<c;t++)e+=b({index:t});e<60&&(b=()=>60/c)}const g=a*I,w=(e||300)-2;e=Math.min(g,w);return u+=g>w?O():0,{rowHeight:I,headerHeight:s,border:2,columnWidth:b,headerWidth:f,elementWidth:u,height:e}},E={corner:b,"col-header":f,"row-header":g,data:w};var R=o(82),A=o.n(R),G=o(34),W=n.forwardRef((function(e,t){return n.createElement(G.a,A()({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),n.createElement("path",{d:"M4 1L0 5l1.5 1.5L4 4l2.5 2.5L8 5 4 1z"}))}));W.displayName="ChevronTop";var z=n.forwardRef((function(e,t){return n.createElement(G.a,A()({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),n.createElement("path",{d:"M1.5 1L0 2.5l4 4 4-4L6.5 1 4 3.5 1.5 1z"}))}));z.displayName="ChevronBottom";var T=o(41),$=o(1);function B({CellType:e,columnIndex:t,contents:o,rowIndex:n,sortedByUser:r,style:i,columnSortDirection:l,headerClickedCallback:d}){let a,s,h,m=o;const u=l===c.DESCENDING;null!=d&&0===n&&(a=()=>d(t),s="button",h=0,m=null==l?`Sort by column "${o}"`:`Sorted by column "${o}" (${u?"descending":"ascending"})`);const b=0===n?function(e){switch(e){case c.ASCENDING:return Object($.jsx)(j,{"data-testid":"sortIcon",children:Object($.jsx)(T.b,{content:W,size:"xs",margin:"0 0 0 twoXS"})});case c.DESCENDING:return Object($.jsx)(j,{"data-testid":"sortIcon",children:Object($.jsx)(T.b,{content:z,size:"xs",margin:"0 0 0 twoXS"})});default:return null}}(l):void 0;return Object($.jsxs)(e,{style:i,onClick:a,role:s,tabIndex:h,title:m,"data-testid":e.displayName,"data-test-sort-direction":l,children:[o,r?b:""]})}var L=Object(l.a)((function({element:e,height:t,width:o}){const l=r.a.useRef(null),[a,h]=Object(n.useState)(!1),[m,u]=Object(n.useState)(0),[b,f]=Object(n.useState)(c.ASCENDING),[,g]=Object(d.g)(e.get("data")),{headerRows:w,headerCols:j,dataRows:v,cols:S,rows:O}=Object(d.c)(e),N=e=>{let t=c.ASCENDING;m===e&&(t=b===c.ASCENDING?c.DESCENDING:c.ASCENDING),u(e),f(t),h(!0)},I=(t=>{const{headerCols:o,dataRows:n}=Object(d.c)(e),r=b!==c.DESCENDING;if(m<o||m-o>=t){const e=new Array(n);for(let t=0;t<n;t+=1)e[t]=r?t:n-(t+1);return e}return Object(d.d)(e,m-o,r)})(g),R=function({element:e,headerRows:t,sortedDataRowIndices:o}){return(n,r)=>{if(null!=o&&r>=t){const e=r-t;e>=0&&e<o.length?(r=o[e],r+=t):Object(C.d)(`Bad sortedDataRowIndices (rowIndex=${r}, headerRows=${t}, sortedDataRowIndices.length=${o.length}`)}const{contents:i,styles:l,type:c}=Object(d.b)(e,n,r);return{Component:E[c],styles:l,contents:Object(y.b)(i)}}}({element:e,headerRows:w,sortedDataRowIndices:I}),A=function(e){return({columnIndex:t,key:o,rowIndex:n,style:r})=>{const{Component:i,styles:l,contents:d}=e(t,n),c=0===n?N:void 0,s=t===m?b:void 0,h={...r,...l,borderBottom:n===v?"none":void 0,borderRight:t===S-j?"none":void 0};return Object($.jsx)(B,{CellType:i,columnIndex:t,rowIndex:n,style:h,contents:d,sortedByUser:a,columnSortDirection:s,headerClickedCallback:c},o)}}(R),{rowHeight:G,headerHeight:W,border:z,height:T,elementWidth:L,columnWidth:k,headerWidth:H}=D(t,o,e,R);return setTimeout((()=>{null!=l.current&&l.current.recomputeGridSize()}),0),Object(n.useEffect)((()=>{m-j>=g&&(u(0),f(c.ASCENDING),h(!1))}),[m,j,g]),Object($.jsxs)(s,{width:L,className:"stDataFrame",children:[Object($.jsx)(i.b,{cellRenderer:A,fixedColumnCount:j,fixedRowCount:w,columnWidth:k,columnCount:S,enableFixedColumnScroll:!1,enableFixedRowScroll:!1,height:T,rowHeight:G,rowCount:O,width:L,classNameBottomLeftGrid:"table-bottom-left",classNameBottomRightGrid:"table-bottom-right",classNameTopRightGrid:"table-top-right",ref:l}),Object($.jsx)(p,{verticalLocator:"top",horizontalLocator:"right",width:z,height:W}),Object($.jsx)(p,{verticalLocator:"bottom",horizontalLocator:"left",width:H,height:z}),0===v?Object($.jsx)(x,{children:"empty"}):null]})}))}}]);
|
package/build/static/js/{32.a0448bd6.chunk.js.LICENSE.txt → 32.a1f2009d.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 33.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[33],{
|
|
1
|
+
/*! For license information please see 33.1d5fce1c.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[33],{1799:function(t,e,s){"use strict";s.r(e),s.d(e,"default",(function(){return o}));var i=s(306),n=(s(0),s(1));function o({element:t,width:e}){const s=t.hasWidth?t.width:e;let o,l;t.scrolling?(o="auto",l={}):(o="no",l={overflow:"hidden"});const r=c(t.src),d=null!=r?void 0:c(t.srcdoc);return Object(n.jsx)("iframe",{allow:i.a,style:l,src:r,srcDoc:d,width:s,height:t.height,scrolling:o,sandbox:i.b,title:"st.iframe"})}function c(t){return null==t||""===t?void 0:t}}}]);
|
package/build/static/js/{33.4e785a88.chunk.js.LICENSE.txt → 33.1d5fce1c.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 34.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[34],{
|
|
1
|
+
/*! For license information please see 34.edb9c338.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[34],{1800:function(t,o,r){"use strict";r.r(o),r.d(o,"default",(function(){return s}));r(0);var e=r(61),c=r(194),l=r(1677),n=r.n(l),a=r(1);var s=Object(c.a)((function({width:t,element:o,height:r}){const c=()=>!!r,l=l=>{const s=JSON.parse(l.config),{data:i,layout:u,frames:p}=(l=>{const n=JSON.parse(l.spec);c()?(n.layout.width=t,n.layout.height=r):o.useContainerWidth&&(n.layout.width=t);const a=Object(e.c)();return n.layout=function(t,o){const{colors:r,genericFonts:e}=o,c={font:{color:r.bodyText,family:e.bodyFont},paper_bgcolor:r.bgColor,plot_bgcolor:r.secondaryBg};return{...t,font:{...c.font,...t.font},paper_bgcolor:t.paper_bgcolor||c.paper_bgcolor,plot_bgcolor:t.plot_bgcolor||c.plot_bgcolor}}(n.layout,a),n})(l);return Object(a.jsx)(n.a,{className:"stPlotlyChart",data:i,layout:u,config:s,frames:p},c()?"fullscreen":"original")};switch(o.chart){case"url":return(o=>{const e=r||450,c=t;return Object(a.jsx)("iframe",{title:"Plotly",src:o,style:{width:c,height:e}})})(o.url);case"figure":return l(o.figure);default:throw new Error(`Unrecognized PlotlyChart type: ${o.chart}`)}}))}}]);
|
package/build/static/js/{34.a91bbe12.chunk.js.LICENSE.txt → 34.edb9c338.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 35.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[35],{
|
|
1
|
+
/*! For license information please see 35.6bd7c1ed.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[35],{1794:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return u}));var n=s(0),o=s.n(n),i=s(61),r=s(18),a=s(89),c=s(53),l=s(5),p=s(242),d=s(149);const g=Object(l.a)(p.b,{shouldForwardProp:d.a,target:"e17lx80j1"})((({theme:e,$usingCustomTheme:t})=>({marginTop:e.spacing.none,marginBottom:e.spacing.none,marginRight:e.spacing.none,marginLeft:e.spacing.none,borderColor:e.colors.fadedText10,borderTopColor:t?e.colors.primary:e.colors.blue70,flexGrow:0,flexShrink:0})),""),h=Object(l.a)("div",{target:"e17lx80j0"})((({theme:e})=>({display:"flex",gap:e.spacing.lg,alignItems:"center",width:"100%"})),"");var m=s(1);var u=function({width:e,element:t}){const s=Object(i.c)(),{activeTheme:n}=o.a.useContext(c.a),l=!Object(r.isPresetTheme)(n),p={width:e};return Object(m.jsx)("div",{className:"stSpinner",style:p,children:Object(m.jsxs)(h,{children:[Object(m.jsx)(g,{$size:s.iconSizes.twoXL,$usingCustomTheme:l}),Object(m.jsx)(a.a,{source:t.text,allowHTML:!1})]})})}}}]);
|
package/build/static/js/{35.d2720d0c.chunk.js.LICENSE.txt → 35.6bd7c1ed.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 36.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[36],{
|
|
1
|
+
/*! For license information please see 36.be12d12e.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[36],{1792:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return j}));var a=i(0),n=i(61),s=i(19),r=i(221),o=i.n(r),c=i(194),h=i(172),d=i(75),l=i(1478),g=i(1203),u=i(5);const f=Object(u.a)("div",{target:"e10fe9o10"})((({theme:t})=>({"&.vega-embed":{".vega-actions":{zIndex:t.zIndices.popupMenu},summary:{height:"auto",zIndex:t.zIndices.menuButton}}})),"");var p=i(1);const b="(index)",w="source",m=new Set(["datetimeIndex","float_64Index","int_64Index","rangeIndex","timedeltaIndex","uint_64Index"]);class v extends a.PureComponent{constructor(...t){super(...t),this.vegaView=void 0,this.vegaFinalizer=void 0,this.defaultDataName=w,this.element=null,this.state={error:void 0},this.finalizeView=()=>{this.vegaFinalizer&&this.vegaFinalizer(),this.vegaFinalizer=void 0,this.vegaView=void 0},this.generateSpec=()=>{const{element:t,theme:e}=this.props,i=JSON.parse(t.get("spec")),a=JSON.parse(t.get("useContainerWidth"));if(i.config=function(t,e){const{colors:i,fontSizes:a,genericFonts:n}=e,s={labelFont:n.bodyFont,titleFont:n.bodyFont,labelFontSize:a.twoSmPx,titleFontSize:a.twoSmPx},r={background:i.bgColor,axis:{labelColor:i.bodyText,titleColor:i.bodyText,gridColor:i.fadedText10,...s},legend:{labelColor:i.bodyText,titleColor:i.bodyText,...s},title:{color:i.bodyText,subtitleColor:i.bodyText,...s},header:{labelColor:i.bodyText},view:{continuousHeight:300,continuousWidth:400}};if(!t)return r;return o()({},r,t||{})}(i.config,e),this.props.height?(i.width=this.props.width-38,i.height=this.props.height):a&&(i.width=this.props.width-38),i.padding||(i.padding={}),null==i.padding.bottom&&(i.padding.bottom=20),i.datasets)throw new Error("Datasets should not be passed as part of the spec");return i}}async componentDidMount(){try{await this.createView()}catch(t){const e=Object(d.a)(t);this.setState({error:e})}}componentWillUnmount(){this.finalizeView()}async componentDidUpdate(t){const{element:e,theme:i}=t,{element:a,theme:n}=this.props,r=e.get("spec"),o=a.get("spec");if(!this.vegaView||r!==o||i!==n||t.width!==this.props.width||t.height!==this.props.height){Object(s.c)("Vega spec changed.");try{await this.createView()}catch(u){const t=Object(d.a)(u);this.setState({error:t})}return}const c=e.get("data"),h=a.get("data");(c||h)&&this.updateData(this.defaultDataName,c,h);const l=O(e)||{},g=O(a)||{};for(const[s,d]of Object.entries(g)){const t=s||this.defaultDataName,e=l[t];this.updateData(t,e,d)}for(const s of Object.keys(l))g.hasOwnProperty(s)||s===this.defaultDataName||this.updateData(s,null,null);this.vegaView.resize().runAsync()}updateData(t,e,i){if(!this.vegaView)throw new Error("Chart has not been drawn yet");if(!i||!i.get("data")){return void(this.vegaView._runtime.data.hasOwnProperty(t)&&this.vegaView.remove(t,g.truthy))}if(!e||!e.get("data"))return void this.vegaView.insert(t,y(i));const[a,n]=Object(h.g)(e.get("data")),[r,o]=Object(h.g)(i.get("data"));if(function(t,e,i,a,n,s){if(i!==s)return!1;if(e>=n)return!1;if(0===e)return!1;const r=t.get("data"),o=a.get("data"),c=s-1,d=e-1;if(Object(h.f)(r,c,0)!==Object(h.f)(o,c,0)||Object(h.f)(r,c,d)!==Object(h.f)(o,c,d))return!1;return!0}(e,a,n,i,r,o))a<r&&this.vegaView.insert(t,y(i,a));else{const e=g.changeset().remove(g.truthy).insert(y(i));this.vegaView.change(t,e),Object(s.c)(`Had to clear the ${t} dataset before inserting data through Vega view.`)}}async createView(){if(Object(s.c)("Creating a new Vega view."),!this.element)throw Error("Element missing.");this.finalizeView();const t=this.props.element,e=this.generateSpec(),{vgSpec:i,view:a,finalize:n}=await Object(l.a)(this.element,e);this.vegaView=a,this.vegaFinalizer=n;const r=function(t){const e=O(t);if(null==e)return null;const i={};for(const[a,n]of Object.entries(e))i[a]=y(n);return i}(t),o=r?Object.keys(r):[];if(1===o.length){const[t]=o;this.defaultDataName=t}else 0===o.length&&i.data&&(this.defaultDataName=w);const c=function(t){const e=t.get("data");if(!e)return null;return y(e)}(t);if(c&&a.insert(this.defaultDataName,c),r)for(const[s,h]of Object.entries(r))a.insert(s,h);await a.runAsync(),this.vegaView.resize().runAsync()}render(){if(this.state.error)throw this.state.error;return Object(p.jsx)(f,{"data-testid":"stVegaLiteChart",ref:t=>{this.element=t}})}}function O(t){if(!t.get("datasets")||t.get("datasets").isEmpty())return null;const e={};return t.get("datasets").forEach(((t,i)=>{if(!t)return;const a=t.get("hasName")?t.get("name"):null;e[a]=t.get("data")})),e}function y(t,e=0){if(!t.get("data"))return[];if(!t.get("index"))return[];if(!t.get("columns"))return[];const i=[],[a,n]=Object(h.g)(t.get("data")),s=t.get("index").get("type"),r=m.has(s);for(let o=e;o<a;o++){const e={};r&&(e[b]=Object(h.e)(t.get("index"),0,o));for(let i=0;i<n;i++)e[Object(h.e)(t.get("columns"),0,i)]=Object(h.f)(t.get("data"),i,o);i.push(e)}return i}var j=Object(n.f)(Object(c.a)(v))}}]);
|
package/build/static/js/{36.19b6ded6.chunk.js.LICENSE.txt → 36.be12d12e.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 37.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[37],{
|
|
1
|
+
/*! For license information please see 37.b845d4ba.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[37],{1801:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var s=r(0),n=r(53),a=r(15),c=r(85),i=r(88),o=r(1);function d({element:e,width:t}){const r=Object(s.useRef)(null),{getBaseUriParts:d}=Object(s.useContext)(n.a),{type:l,url:u}=e,f=Object(i.j)(u);Object(s.useEffect)((()=>{const t=r.current,s=()=>{t&&(t.currentTime=e.startTime)};return t&&t.addEventListener("loadedmetadata",s),()=>{t&&t.removeEventListener("loadedmetadata",s)}}),[e]);const m=t=>{const{startTime:r}=e;return r?`${t}?start=${r}`:t};if(l===a.x.Type.YOUTUBE_IFRAME){const e=0!==t?.75*t:528;return Object(o.jsx)("iframe",{title:f,src:m(f),width:t,height:e,frameBorder:"0",allow:"autoplay; encrypted-media",allowFullScreen:!0})}return Object(o.jsx)("video",{ref:r,controls:!0,src:Object(c.b)(f,d()),className:"stVideo",style:{width:t,height:0===t?528:void 0}})}}}]);
|
package/build/static/js/{37.c8ade714.chunk.js.LICENSE.txt → 37.b845d4ba.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 38.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[38],{
|
|
1
|
+
/*! For license information please see 38.0e8cfb78.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[38],{1802:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return n}));i(0);var s=i(23),d=i(1);var n=function(e){const{disabled:t,element:i,widgetMgr:n,width:l}=e,c={width:l};return Object(d.jsx)("div",{className:"row-widget stButton",style:c,children:Object(d.jsx)(s.a,{help:i.help,children:Object(d.jsx)(s.d,{kind:s.b.PRIMARY,size:s.c.SMALL,disabled:t,onClick:()=>n.setTriggerValue(i,{fromUi:!0}),children:i.label})})})}}}]);
|
package/build/static/js/{38.a8e76ebd.chunk.js.LICENSE.txt → 38.0e8cfb78.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 39.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[39],{1778:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return N}));var o=r(0),i=r.n(o),n=r(61),s=r(11),a=r(22),l=r(77),c=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle_round"});Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"});function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=e.$disabled,r=e.$checked,o=e.$isIndeterminate,i=e.$isError,n=e.$error,s=e.$isHovered,a=e.$isActive,l=e.$theme,d=e.$checkmarkType===c.toggle,u=l.colors;return t?d?u.toggleFillDisabled:r||o?u.tickFillDisabled:u.tickFill:(n||i)&&(o||r)?a?u.tickFillErrorSelectedHoverActive:s?u.tickFillErrorSelectedHover:u.tickFillErrorSelected:n||i?a?u.tickFillErrorHoverActive:s?u.tickFillErrorHover:u.tickFillError:o||r?a?u.tickFillSelectedHoverActive:s?u.tickFillSelectedHover:u.tickFillSelected:a?d?u.sliderTrackFillActive:u.tickFillActive:s?d?u.sliderTrackFillHover:u.tickFillHover:d?u.toggleTrackFill:u.tickFill}function p(e){var t=e.$disabled,r=e.$theme.colors;return t?r.contentSecondary:r.contentPrimary}var b=Object(a.a)("label",(function(e){var t=e.$disabled,r=e.$labelPlacement;return{flexDirection:"top"===r||"bottom"===r?"column":"row",display:"flex",alignItems:"top"===r||"bottom"===r?"center":"flex-start",cursor:t?"not-allowed":"pointer",userSelect:"none"}}));b.displayName="Root";var g=Object(a.a)("span",(function(e){var t=e.$checked,r=e.$disabled,o=e.$isError,i=e.$error,n=e.$isIndeterminate,s=e.$theme,a=e.$isFocusVisible,l=s.sizing,c=s.animation,d=r?s.colors.tickMarkFillDisabled:o||i?s.colors.tickMarkFillError:s.colors.tickMarkFill,u=encodeURIComponent('\n <svg width="14" height="4" viewBox="0 0 14 4" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M14 0.5H0V3.5H14V0.5Z" fill="'.concat(d,'"/>\n </svg>\n ')),h=encodeURIComponent('\n <svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.50002 12.6L0.400024 6.60002L2.60002 4.40002L6.50002 8.40002L13.9 0.900024L16.1 3.10002L6.50002 12.6Z" fill="'.concat(d,'"/>\n </svg>\n ')),p=s.borders.inputBorderRadius,b=function(e){var t=e.$disabled,r=e.$checked,o=e.$isError,i=e.$error,n=e.$isIndeterminate,s=e.$theme,a=e.$isFocusVisible,l=s.colors;return t?l.tickFillDisabled:r||n?"transparent":i||o?l.borderError:a?l.borderSelected:l.tickBorder}(e);return{flex:"0 0 auto",transitionDuration:c.timing200,transitionTimingFunction:c.easeOutCurve,transitionProperty:"background-image, border-color, background-color",width:l.scale700,height:l.scale700,left:"4px",top:"4px",boxSizing:"border-box",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:"3px",borderRightWidth:"3px",borderTopWidth:"3px",borderBottomWidth:"3px",borderLeftColor:b,borderRightColor:b,borderTopColor:b,borderBottomColor:b,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,outline:a&&t?"3px solid ".concat(s.colors.accent):"none",display:"inline-block",verticalAlign:"middle",backgroundImage:n?"url('data:image/svg+xml,".concat(u,"');"):t?"url('data:image/svg+xml,".concat(h,"');"):null,backgroundColor:m(e),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain",marginTop:s.sizing.scale0,marginBottom:s.sizing.scale0,marginLeft:s.sizing.scale0,marginRight:s.sizing.scale0}}));g.displayName="Checkmark";var f=Object(a.a)("div",(function(e){var t=e.$theme,r=e.$checkmarkType,o=t.typography;return u(u(u({flex:r===c.toggle?"auto":null,verticalAlign:"middle"},function(e){var t,r=e.$labelPlacement,o=void 0===r?"":r,i=e.$theme,n=i.sizing.scale300;switch(o){case"top":t="Bottom";break;case"bottom":t="Top";break;case"left":t="Right";break;default:case"right":t="Left"}return"rtl"===i.direction&&"Left"===t?t="Right":"rtl"===i.direction&&"Right"===t&&(t="Left"),h({},"padding".concat(t),n)}(e)),{},{color:p(e)},o.LabelMedium),{},{lineHeight:"24px"})}));f.displayName="Label";var v=Object(a.a)("input",{opacity:0,width:0,height:0,overflow:"hidden",margin:0,padding:0,position:"absolute"});v.displayName="Input";var $=Object(a.a)("div",(function(e){if(e.$checkmarkType===c.toggle){var t=e.$theme.borders.useRoundedCorners?e.$theme.borders.radius200:null;return u(u({},Object(l.b)(e.$theme.borders.border300)),{},{alignItems:"center",backgroundColor:e.$theme.colors.mono100,borderTopLeftRadius:t,borderTopRightRadius:t,borderBottomRightRadius:t,borderBottomLeftRadius:t,boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$theme.lighting.shadow400,outline:"none",display:"flex",justifyContent:"center",height:e.$theme.sizing.scale800,width:e.$theme.sizing.scale800})}if(e.$checkmarkType===c.toggle_round){var r=e.$theme.colors.toggleFill;return e.$disabled?r=e.$theme.colors.toggleFillDisabled:e.$checked&&(e.$error||e.$isError)?r=e.$theme.colors.borderError:e.$checked&&(r=e.$theme.colors.toggleFillChecked),{backgroundColor:r,borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$isHovered&&!e.$disabled?e.$theme.lighting.shadow500:e.$theme.lighting.shadow400,outline:"none",height:e.$theme.sizing.scale700,width:e.$theme.sizing.scale700,transform:e.$checked?"translateX(".concat("rtl"===e.$theme.direction?"-100%":"100%",")"):null,transition:"transform ".concat(e.$theme.animation.timing200)}}return{}}));$.displayName="Toggle";var k=Object(a.a)("div",(function(e){if(e.$checkmarkType===c.toggle){return{height:e.$theme.sizing.scale300,width:e.$theme.sizing.scale0,borderTopLeftRadius:e.$theme.borders.radius100,borderTopRightRadius:e.$theme.borders.radius100,borderBottomRightRadius:e.$theme.borders.radius100,borderBottomLeftRadius:e.$theme.borders.radius100,backgroundColor:e.$disabled?e.$theme.colors.sliderHandleInnerFillDisabled:e.$isActive&&e.$checked?e.$theme.colors.sliderHandleInnerFillSelectedActive:e.$isHovered&&e.$checked?e.$theme.colors.sliderHandleInnerFillSelectedHover:e.$theme.colors.toggleTrackFill}}return e.$checkmarkType,c.toggle_round,{}}));k.displayName="ToggleInner";var y=Object(a.a)("div",(function(e){if(e.$checkmarkType===c.toggle){var t=e.$theme.borders.useRoundedCorners?e.$theme.borders.radius200:null;return{alignItems:"center",backgroundColor:m(e),borderTopLeftRadius:t,borderTopRightRadius:t,borderBottomRightRadius:t,borderBottomLeftRadius:t,display:"flex",height:e.$theme.sizing.scale600,justifyContent:e.$checked?"flex-end":"flex-start",marginTop:e.$theme.sizing.scale100,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale100,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}}if(e.$checkmarkType===c.toggle_round){var r=e.$theme.colors.toggleTrackFill;return e.$disabled?r=e.$theme.colors.toggleTrackFillDisabled:(e.$error||e.$isError)&&e.$checked&&(r=e.$theme.colors.tickFillError),{alignItems:"center",backgroundColor:r,borderTopLeftRadius:"7px",borderTopRightRadius:"7px",borderBottomRightRadius:"7px",borderBottomLeftRadius:"7px",display:"flex",height:e.$theme.sizing.scale550,marginTop:e.$theme.sizing.scale200,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale200,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}}return{}}));y.displayName="ToggleTrack";var R=r(39);function F(e){return(F="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return C(this,r)}}function C(e,t){return!t||"object"!==F(t)&&"function"!==typeof t?L(e):t}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var B=function(e){return e.stopPropagation()},P=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(a,e);var t,r,i,n=x(a);function a(){var e;w(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return E(L(e=n.call.apply(n,[this].concat(r))),"state",{isFocused:e.props.autoFocus||!1,isFocusVisible:!1,isHovered:!1,isActive:!1}),E(L(e),"onMouseEnter",(function(t){e.setState({isHovered:!0}),e.props.onMouseEnter(t)})),E(L(e),"onMouseLeave",(function(t){e.setState({isHovered:!1,isActive:!1}),e.props.onMouseLeave(t)})),E(L(e),"onMouseDown",(function(t){e.setState({isActive:!0}),e.props.onMouseDown(t)})),E(L(e),"onMouseUp",(function(t){e.setState({isActive:!1}),e.props.onMouseUp(t)})),E(L(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t),Object(R.d)(t)&&e.setState({isFocusVisible:!0})})),E(L(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t),!1!==e.state.isFocusVisible&&e.setState({isFocusVisible:!1})})),E(L(e),"isToggle",(function(){return e.props.checkmarkType===c.toggle||e.props.checkmarkType===c.toggle_round})),e}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,r=e.inputRef;t&&r.current&&r.current.focus()}},{key:"render",value:function(){var e=this.props.checkmarkType,t=this.props,r=t.overrides,i=void 0===r?{}:r,n=t.onChange,a=t.labelPlacement,l=void 0===a?this.isToggle()?"left":"right":a,c=t.inputRef,d=t.isIndeterminate,u=t.isError,h=t.error,m=t.disabled,p=t.value,R=t.name,F=t.type,w=t.checked,T=t.children,j=t.required,x=t.title,C=t.ariaLabel,L=i.Root,S=i.Checkmark,E=i.Label,P=i.Input,M=i.Toggle,z=i.ToggleInner,H=i.ToggleTrack,I=Object(s.a)(L)||b,V=Object(s.a)(S)||g,D=Object(s.a)(E)||f,A=Object(s.a)(P)||v,U=Object(s.a)(M)||$,_=Object(s.a)(z)||k,W=Object(s.a)(H)||y,N={onChange:n,onFocus:this.onFocus,onBlur:this.onBlur},q={onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},J={$isFocused:this.state.isFocused,$isFocusVisible:this.state.isFocusVisible,$isHovered:this.state.isHovered,$isActive:this.state.isActive,$isError:u,$error:h,$checked:w,$isIndeterminate:d,$required:j,$disabled:m,$value:p,$checkmarkType:e},Z=o.createElement(D,O({$labelPlacement:l},J,Object(s.b)(E)),this.props.containsInteractiveElement?o.createElement("div",{onClick:function(e){return e.preventDefault()}},T):T);return o.createElement(I,O({"data-baseweb":"checkbox",title:x||null,$labelPlacement:l},J,q,Object(s.b)(L)),("top"===l||"left"===l)&&Z,this.isToggle()?o.createElement(W,O({},J,Object(s.b)(H)),o.createElement(U,O({},J,Object(s.b)(M)),o.createElement(_,O({},J,Object(s.b)(z))))):o.createElement(V,O({},J,Object(s.b)(S))),o.createElement(A,O({value:p,name:R,checked:w,required:j,"aria-label":C,"aria-checked":d?"mixed":w,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":h||u||null,"aria-required":j||null,disabled:m,type:F,ref:c,onClick:B},J,N,Object(s.b)(P))),("bottom"===l||"right"===l)&&Z)}}])&&T(t.prototype,r),i&&T(t,i),a}(o.Component);E(P,"defaultProps",{overrides:{},checked:!1,containsInteractiveElement:!1,disabled:!1,autoFocus:!1,isIndeterminate:!1,inputRef:o.createRef(),isError:!1,error:!1,type:"checkbox",checkmarkType:c.default,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});var M=P,z=r(20),H=r(190),I=r(112),V=r(50),D=r(111),A=r(5);const U=Object(A.a)("div",{target:"ek41t0m0"})((({theme:e})=>({verticalAlign:"middle",display:"flex",flexDirection:"row",alignItems:"center"})),"");var _=r(1);class W extends i.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new H.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setBoolValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState({value:this.props.element.default},(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{const t=e.target.checked;this.setState({value:t},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getBoolValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){const{theme:e,width:t,element:r,disabled:o,widgetMgr:i}=this.props,{colors:n,spacing:s,radii:a}=e,l={width:t},c=o?n.fadedText40:n.bodyText;return this.formClearHelper.manageFormClearListener(i,r.formId,this.onFormCleared),Object(_.jsx)("div",{className:"row-widget stCheckbox",style:l,children:Object(_.jsx)(M,{checked:this.state.value,disabled:o,onChange:this.onChange,overrides:{Root:{style:({$isFocusVisible:e})=>({marginBottom:0,marginTop:0,paddingRight:s.twoThirdsSmFont,backgroundColor:e?n.darkenedBgMix25:"",borderTopLeftRadius:a.md,borderTopRightRadius:a.md,borderBottomLeftRadius:a.md,borderBottomRightRadius:a.md,display:"flex",alignItems:"start"})},Checkmark:{style:({$isFocusVisible:e,$checked:t})=>{const r=t&&!o?n.primary:n.fadedText40;return{outline:0,width:"1rem",height:"1rem",marginTop:"0.30rem",boxShadow:e&&t?`0 0 0 0.2rem ${Object(z.g)(n.primary,.5)}`:"",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftColor:r,borderRightColor:r,borderTopColor:r,borderBottomColor:r}}},Label:{style:{color:c}}},children:Object(_.jsxs)(U,{children:[r.label,r.help&&Object(_.jsx)(D.c,{color:c,children:Object(_.jsx)(I.a,{content:r.help,placement:V.b.TOP_RIGHT})})]})})})}}var N=Object(n.f)(W)}}]);
|
|
1
|
+
/*! For license information please see 39.73c851be.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[39],{1783:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return N}));var o=r(0),i=r.n(o),n=r(61),s=r(11),a=r(22),l=r(77),c=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle_round"});Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"});function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=e.$disabled,r=e.$checked,o=e.$isIndeterminate,i=e.$isError,n=e.$error,s=e.$isHovered,a=e.$isActive,l=e.$theme,d=e.$checkmarkType===c.toggle,u=l.colors;return t?d?u.toggleFillDisabled:r||o?u.tickFillDisabled:u.tickFill:(n||i)&&(o||r)?a?u.tickFillErrorSelectedHoverActive:s?u.tickFillErrorSelectedHover:u.tickFillErrorSelected:n||i?a?u.tickFillErrorHoverActive:s?u.tickFillErrorHover:u.tickFillError:o||r?a?u.tickFillSelectedHoverActive:s?u.tickFillSelectedHover:u.tickFillSelected:a?d?u.sliderTrackFillActive:u.tickFillActive:s?d?u.sliderTrackFillHover:u.tickFillHover:d?u.toggleTrackFill:u.tickFill}function p(e){var t=e.$disabled,r=e.$theme.colors;return t?r.contentSecondary:r.contentPrimary}var b=Object(a.a)("label",(function(e){var t=e.$disabled,r=e.$labelPlacement;return{flexDirection:"top"===r||"bottom"===r?"column":"row",display:"flex",alignItems:"top"===r||"bottom"===r?"center":"flex-start",cursor:t?"not-allowed":"pointer",userSelect:"none"}}));b.displayName="Root";var g=Object(a.a)("span",(function(e){var t=e.$checked,r=e.$disabled,o=e.$isError,i=e.$error,n=e.$isIndeterminate,s=e.$theme,a=e.$isFocusVisible,l=s.sizing,c=s.animation,d=r?s.colors.tickMarkFillDisabled:o||i?s.colors.tickMarkFillError:s.colors.tickMarkFill,u=encodeURIComponent('\n <svg width="14" height="4" viewBox="0 0 14 4" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M14 0.5H0V3.5H14V0.5Z" fill="'.concat(d,'"/>\n </svg>\n ')),h=encodeURIComponent('\n <svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.50002 12.6L0.400024 6.60002L2.60002 4.40002L6.50002 8.40002L13.9 0.900024L16.1 3.10002L6.50002 12.6Z" fill="'.concat(d,'"/>\n </svg>\n ')),p=s.borders.inputBorderRadius,b=function(e){var t=e.$disabled,r=e.$checked,o=e.$isError,i=e.$error,n=e.$isIndeterminate,s=e.$theme,a=e.$isFocusVisible,l=s.colors;return t?l.tickFillDisabled:r||n?"transparent":i||o?l.borderError:a?l.borderSelected:l.tickBorder}(e);return{flex:"0 0 auto",transitionDuration:c.timing200,transitionTimingFunction:c.easeOutCurve,transitionProperty:"background-image, border-color, background-color",width:l.scale700,height:l.scale700,left:"4px",top:"4px",boxSizing:"border-box",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:"3px",borderRightWidth:"3px",borderTopWidth:"3px",borderBottomWidth:"3px",borderLeftColor:b,borderRightColor:b,borderTopColor:b,borderBottomColor:b,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,outline:a&&t?"3px solid ".concat(s.colors.accent):"none",display:"inline-block",verticalAlign:"middle",backgroundImage:n?"url('data:image/svg+xml,".concat(u,"');"):t?"url('data:image/svg+xml,".concat(h,"');"):null,backgroundColor:m(e),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain",marginTop:s.sizing.scale0,marginBottom:s.sizing.scale0,marginLeft:s.sizing.scale0,marginRight:s.sizing.scale0}}));g.displayName="Checkmark";var f=Object(a.a)("div",(function(e){var t=e.$theme,r=e.$checkmarkType,o=t.typography;return u(u(u({flex:r===c.toggle?"auto":null,verticalAlign:"middle"},function(e){var t,r=e.$labelPlacement,o=void 0===r?"":r,i=e.$theme,n=i.sizing.scale300;switch(o){case"top":t="Bottom";break;case"bottom":t="Top";break;case"left":t="Right";break;default:case"right":t="Left"}return"rtl"===i.direction&&"Left"===t?t="Right":"rtl"===i.direction&&"Right"===t&&(t="Left"),h({},"padding".concat(t),n)}(e)),{},{color:p(e)},o.LabelMedium),{},{lineHeight:"24px"})}));f.displayName="Label";var v=Object(a.a)("input",{opacity:0,width:0,height:0,overflow:"hidden",margin:0,padding:0,position:"absolute"});v.displayName="Input";var $=Object(a.a)("div",(function(e){if(e.$checkmarkType===c.toggle){var t=e.$theme.borders.useRoundedCorners?e.$theme.borders.radius200:null;return u(u({},Object(l.b)(e.$theme.borders.border300)),{},{alignItems:"center",backgroundColor:e.$theme.colors.mono100,borderTopLeftRadius:t,borderTopRightRadius:t,borderBottomRightRadius:t,borderBottomLeftRadius:t,boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$theme.lighting.shadow400,outline:"none",display:"flex",justifyContent:"center",height:e.$theme.sizing.scale800,width:e.$theme.sizing.scale800})}if(e.$checkmarkType===c.toggle_round){var r=e.$theme.colors.toggleFill;return e.$disabled?r=e.$theme.colors.toggleFillDisabled:e.$checked&&(e.$error||e.$isError)?r=e.$theme.colors.borderError:e.$checked&&(r=e.$theme.colors.toggleFillChecked),{backgroundColor:r,borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$isHovered&&!e.$disabled?e.$theme.lighting.shadow500:e.$theme.lighting.shadow400,outline:"none",height:e.$theme.sizing.scale700,width:e.$theme.sizing.scale700,transform:e.$checked?"translateX(".concat("rtl"===e.$theme.direction?"-100%":"100%",")"):null,transition:"transform ".concat(e.$theme.animation.timing200)}}return{}}));$.displayName="Toggle";var k=Object(a.a)("div",(function(e){if(e.$checkmarkType===c.toggle){return{height:e.$theme.sizing.scale300,width:e.$theme.sizing.scale0,borderTopLeftRadius:e.$theme.borders.radius100,borderTopRightRadius:e.$theme.borders.radius100,borderBottomRightRadius:e.$theme.borders.radius100,borderBottomLeftRadius:e.$theme.borders.radius100,backgroundColor:e.$disabled?e.$theme.colors.sliderHandleInnerFillDisabled:e.$isActive&&e.$checked?e.$theme.colors.sliderHandleInnerFillSelectedActive:e.$isHovered&&e.$checked?e.$theme.colors.sliderHandleInnerFillSelectedHover:e.$theme.colors.toggleTrackFill}}return e.$checkmarkType,c.toggle_round,{}}));k.displayName="ToggleInner";var y=Object(a.a)("div",(function(e){if(e.$checkmarkType===c.toggle){var t=e.$theme.borders.useRoundedCorners?e.$theme.borders.radius200:null;return{alignItems:"center",backgroundColor:m(e),borderTopLeftRadius:t,borderTopRightRadius:t,borderBottomRightRadius:t,borderBottomLeftRadius:t,display:"flex",height:e.$theme.sizing.scale600,justifyContent:e.$checked?"flex-end":"flex-start",marginTop:e.$theme.sizing.scale100,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale100,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}}if(e.$checkmarkType===c.toggle_round){var r=e.$theme.colors.toggleTrackFill;return e.$disabled?r=e.$theme.colors.toggleTrackFillDisabled:(e.$error||e.$isError)&&e.$checked&&(r=e.$theme.colors.tickFillError),{alignItems:"center",backgroundColor:r,borderTopLeftRadius:"7px",borderTopRightRadius:"7px",borderBottomRightRadius:"7px",borderBottomLeftRadius:"7px",display:"flex",height:e.$theme.sizing.scale550,marginTop:e.$theme.sizing.scale200,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale200,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}}return{}}));y.displayName="ToggleTrack";var R=r(39);function F(e){return(F="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return C(this,r)}}function C(e,t){return!t||"object"!==F(t)&&"function"!==typeof t?L(e):t}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var B=function(e){return e.stopPropagation()},P=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(a,e);var t,r,i,n=x(a);function a(){var e;w(this,a);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return E(L(e=n.call.apply(n,[this].concat(r))),"state",{isFocused:e.props.autoFocus||!1,isFocusVisible:!1,isHovered:!1,isActive:!1}),E(L(e),"onMouseEnter",(function(t){e.setState({isHovered:!0}),e.props.onMouseEnter(t)})),E(L(e),"onMouseLeave",(function(t){e.setState({isHovered:!1,isActive:!1}),e.props.onMouseLeave(t)})),E(L(e),"onMouseDown",(function(t){e.setState({isActive:!0}),e.props.onMouseDown(t)})),E(L(e),"onMouseUp",(function(t){e.setState({isActive:!1}),e.props.onMouseUp(t)})),E(L(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t),Object(R.d)(t)&&e.setState({isFocusVisible:!0})})),E(L(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t),!1!==e.state.isFocusVisible&&e.setState({isFocusVisible:!1})})),E(L(e),"isToggle",(function(){return e.props.checkmarkType===c.toggle||e.props.checkmarkType===c.toggle_round})),e}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,r=e.inputRef;t&&r.current&&r.current.focus()}},{key:"render",value:function(){var e=this.props.checkmarkType,t=this.props,r=t.overrides,i=void 0===r?{}:r,n=t.onChange,a=t.labelPlacement,l=void 0===a?this.isToggle()?"left":"right":a,c=t.inputRef,d=t.isIndeterminate,u=t.isError,h=t.error,m=t.disabled,p=t.value,R=t.name,F=t.type,w=t.checked,T=t.children,j=t.required,x=t.title,C=t.ariaLabel,L=i.Root,S=i.Checkmark,E=i.Label,P=i.Input,M=i.Toggle,z=i.ToggleInner,H=i.ToggleTrack,I=Object(s.a)(L)||b,V=Object(s.a)(S)||g,D=Object(s.a)(E)||f,A=Object(s.a)(P)||v,U=Object(s.a)(M)||$,_=Object(s.a)(z)||k,W=Object(s.a)(H)||y,N={onChange:n,onFocus:this.onFocus,onBlur:this.onBlur},q={onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},J={$isFocused:this.state.isFocused,$isFocusVisible:this.state.isFocusVisible,$isHovered:this.state.isHovered,$isActive:this.state.isActive,$isError:u,$error:h,$checked:w,$isIndeterminate:d,$required:j,$disabled:m,$value:p,$checkmarkType:e},Z=o.createElement(D,O({$labelPlacement:l},J,Object(s.b)(E)),this.props.containsInteractiveElement?o.createElement("div",{onClick:function(e){return e.preventDefault()}},T):T);return o.createElement(I,O({"data-baseweb":"checkbox",title:x||null,$labelPlacement:l},J,q,Object(s.b)(L)),("top"===l||"left"===l)&&Z,this.isToggle()?o.createElement(W,O({},J,Object(s.b)(H)),o.createElement(U,O({},J,Object(s.b)(M)),o.createElement(_,O({},J,Object(s.b)(z))))):o.createElement(V,O({},J,Object(s.b)(S))),o.createElement(A,O({value:p,name:R,checked:w,required:j,"aria-label":C,"aria-checked":d?"mixed":w,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":h||u||null,"aria-required":j||null,disabled:m,type:F,ref:c,onClick:B},J,N,Object(s.b)(P))),("bottom"===l||"right"===l)&&Z)}}])&&T(t.prototype,r),i&&T(t,i),a}(o.Component);E(P,"defaultProps",{overrides:{},checked:!1,containsInteractiveElement:!1,disabled:!1,autoFocus:!1,isIndeterminate:!1,inputRef:o.createRef(),isError:!1,error:!1,type:"checkbox",checkmarkType:c.default,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});var M=P,z=r(20),H=r(193),I=r(114),V=r(50),D=r(113),A=r(5);const U=Object(A.a)("div",{target:"ek41t0m0"})((({theme:e})=>({verticalAlign:"middle",display:"flex",flexDirection:"row",alignItems:"center"})),"");var _=r(1);class W extends i.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new H.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setBoolValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState({value:this.props.element.default},(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{const t=e.target.checked;this.setState({value:t},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getBoolValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){const{theme:e,width:t,element:r,disabled:o,widgetMgr:i}=this.props,{colors:n,spacing:s,radii:a}=e,l={width:t},c=o?n.fadedText40:n.bodyText;return this.formClearHelper.manageFormClearListener(i,r.formId,this.onFormCleared),Object(_.jsx)("div",{className:"row-widget stCheckbox",style:l,children:Object(_.jsx)(M,{checked:this.state.value,disabled:o,onChange:this.onChange,overrides:{Root:{style:({$isFocusVisible:e})=>({marginBottom:0,marginTop:0,paddingRight:s.twoThirdsSmFont,backgroundColor:e?n.darkenedBgMix25:"",borderTopLeftRadius:a.md,borderTopRightRadius:a.md,borderBottomLeftRadius:a.md,borderBottomRightRadius:a.md,display:"flex",alignItems:"start"})},Checkmark:{style:({$isFocusVisible:e,$checked:t})=>{const r=t&&!o?n.primary:n.fadedText40;return{outline:0,width:"1rem",height:"1rem",marginTop:"0.30rem",boxShadow:e&&t?`0 0 0 0.2rem ${Object(z.g)(n.primary,.5)}`:"",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftColor:r,borderRightColor:r,borderTopColor:r,borderBottomColor:r}}},Label:{style:{color:c}}},children:Object(_.jsxs)(U,{children:[r.label,r.help&&Object(_.jsx)(D.c,{color:c,children:Object(_.jsx)(I.a,{content:r.help,placement:V.b.TOP_RIGHT})})]})})})}}var N=Object(n.f)(W)}}]);
|
package/build/static/js/{39.815183b5.chunk.js.LICENSE.txt → 39.73c851be.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 40.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[40],{
|
|
1
|
+
/*! For license information please see 40.1fc38a50.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[40],{1804:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return u}));var s=i(0),o=i.n(s),l=i(193),r=i(162),a=i(33),n=i(1);class p extends o.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new l.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setStringValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState({value:this.props.element.default},(()=>this.commitWidgetValue({fromUi:!0})))},this.onColorClose=e=>{this.setState({value:e},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getStringValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{element:t,width:i,disabled:s,widgetMgr:o}=this.props,{value:l}=this.state;return this.formClearHelper.manageFormClearListener(o,t.formId,this.onFormCleared),Object(n.jsx)(r.a,{label:t.label,labelVisibility:Object(a.j)(null===(e=t.labelVisibility)||void 0===e?void 0:e.value),help:t.help,onChange:this.onColorClose,disabled:s,width:i,value:l})}}var u=p}}]);
|
package/build/static/js/{40.5e639584.chunk.js.LICENSE.txt → 40.1fc38a50.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 41.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[41],{
|
|
1
|
+
/*! For license information please see 41.4ddf36bc.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[41],{1787:function(e,t,o){"use strict";o.r(t),o.d(t,"default",(function(){return T}));var n=o(0),i=o.n(n),l=o(1383),r=o(1744),a=o(20),d=o(61),s=o(194),c=o(19),u=o(118),m=o(33);let h;function g(e){const t=e&&u.b.getTypeName(e);let o=h.Text;return t?"bool"===t?o=h.Boolean:["int64","float64","range"].includes(t)?o=h.Number:t.startsWith("list")&&(o=h.List):o=h.Text,o}function b(e){return(e.displayContent||u.b.format(e.content,e.contentType)).replace(/(\r\n|\n|\r)/gm," ")}function p(e,t,o){const n=new RegExp(`${e}[,\\s].*{(?:[^}]*[\\s;]{1})?${t}:\\s*([^;}]+)[;]?.*}`,"gm");o=o.replace(/{/g," {");const i=n.exec(o);if(i)return i[1].trim()}function f(e,t,o="normal"){if(e===h.Text)return{kind:l.c.Text,data:"",displayData:"",allowOverlay:!0,readonly:t,style:o};if(e===h.Boolean)return{kind:l.c.Boolean,data:!1,readonly:t,allowOverlay:!1,style:o};if(e===h.Number)return{kind:l.c.Number,data:void 0,displayData:"",readonly:t,allowOverlay:!0,contentAlign:"right",style:o};if(e===h.List)return{kind:l.c.Bubble,data:[],allowOverlay:!0,style:o};throw new Error(`Unsupported cell type: ${e}`)}!function(e){e.Text="text",e.Number="number",e.Boolean="boolean",e.List="list"}(h||(h={}));var y=o(5);const x=Object(y.a)("div",{target:"e17g77xh0"})((({theme:e,width:t,height:o,minHeight:n,maxHeight:i,minWidth:l,maxWidth:r})=>({overflow:"auto",position:"relative",resize:"both",display:"inline-block",...t&&{width:`${t}px`},minHeight:`${n}px`,maxHeight:`${i}px`,minWidth:`${l}px`,maxWidth:`${r}px`,height:`${o}px`,border:`1px solid ${e.colors.fadedText05}`,"> div":{height:"100%",minWidth:"100%"},"& .dvn-scroller":{scrollbarWidth:"thin",overflowX:"overlay !important",overflowY:"overlay !important"},"&::-webkit-resizer":{display:"none"}})),"");o(1543);var v=o(1);function w(e){return{accentColor:e.colors.primary,accentFg:e.colors.white,accentLight:Object(a.g)(e.colors.primary,.9),borderColor:e.colors.fadedText05,fontFamily:e.genericFonts.bodyFont,bgSearchResult:Object(a.g)(e.colors.primary,.9),bgIconHeader:e.colors.fadedText60,fgIconHeader:e.colors.white,bgHeader:e.colors.bgMix,bgHeaderHasFocus:e.colors.secondaryBg,bgHeaderHovered:e.colors.bgMix,textHeader:e.colors.fadedText60,textHeaderSelected:e.colors.white,headerFontStyle:`${e.fontSizes.sm}`,baseFontStyle:e.fontSizes.sm,editorFontSize:e.fontSizes.sm,textDark:e.colors.bodyText,textMedium:Object(a.g)(e.colors.bodyText,.2),textLight:e.colors.fadedText60,textBubble:e.colors.fadedText60,bgCell:e.colors.bgColor,bgCellMedium:e.colors.bgColor,cellHorizontalPadding:8,cellVerticalPadding:3,bgBubble:e.colors.secondaryBg,bgBubbleSelected:e.colors.secondaryBg,linkColor:e.colors.linkText,drilldownBorder:e.colors.darkenedBgMix25}}function C(e,t,o){var a,d,s;const[u,y]=Object(n.useState)((()=>new Map)),x=function(e,t){var o,n,i,l,r,a;const d=[];if(t.isEmpty())return d.push({id:"empty-index",title:"",hasMenu:!1,getTemplate:()=>f(h.Text,!0,"faded"),columnType:h.Text}),d;const s=null!==(o=null===(n=t.types)||void 0===n||null===(i=n.index)||void 0===i?void 0:i.length)&&void 0!==o?o:0,c=null!==(l=null===(r=t.columns)||void 0===r||null===(a=r[0])||void 0===a?void 0:a.length)&&void 0!==l?l:0;for(let u=0;u<s;u++){const e=g(t.types.index[u]);d.push({id:`index-${u}`,title:"",hasMenu:!1,getTemplate:()=>f(e,!0,"faded"),columnType:e})}for(let u=0;u<c;u++){const o=t.columns[0][u],n=g(t.types.data[u]),i=e.useContainerWidth||e.width;d.push({id:`column-${o}-${u}`,title:o,hasMenu:!1,getTemplate:()=>f(n,!0),columnType:n,...i?{grow:1}:{}})}return d}(e,t).map((e=>e.id&&u.has(e.id)&&void 0!==u.get(e.id)?{...e,width:u.get(e.id)}:e)),v=t.isEmpty()?1:t.dimensions.rows-1,w=null!==(a=null===(d=t.types)||void 0===d||null===(s=d.index)||void 0===s?void 0:s.length)&&void 0!==a?a:0,C=i.a.useCallback(((e,t)=>{e.id&&y(new Map(u).set(e.id,t))}),[x]),T=i.a.useCallback((([e,o])=>{if(t.isEmpty())return{...f(h.Text,!0,"faded"),displayData:"empty"};if(e>x.length-1)return f(h.Text,!0);const n=x[e].getTemplate();if(o>v-1)return n;try{return function(e,t,o){let n=e.kind;var i;if(e.kind===l.c.Custom&&(n=null===(i=e.data)||void 0===i?void 0:i.kind,!n))throw new Error("Unable to determine cell type for custom cell.");if(o&&t.cssId){const n={},i=p(t.cssId,"color",o);i&&(n.textDark=i);const l=p(t.cssId,"background-color",o);l&&(n.bgCell=l),n&&(e={...e,themeOverride:n})}if(n===l.c.Text){const o=b(t);return{...e,data:"string"!==typeof t.content&&Object(m.m)(t.content)?o:t.content,displayData:o}}if(n===l.c.Number){const o=b(t);let n=t.content;return n instanceof Int32Array&&(n=n[0]),{...e,data:Object(m.m)(n)?Number(n):void 0,displayData:o}}if(n===l.c.Boolean)return{...e,data:t.content};if(n===l.c.Bubble)return{...e,data:Object(m.m)(t.content)?JSON.parse(JSON.stringify(t.content,((e,t)=>"bigint"===typeof t?Number(t):t))):[]};throw new Error(`Unsupported cell kind: ${n}`)}(n,t.getCell(o+1,e),t.cssStyles)}catch(i){return Object(c.b)(i),n}}),[x,v,t]),{getCellContent:k}=Object(r.a)({columns:x,getCellContent:T,rows:v,sort:o}),S=function(e,t){return void 0===t?e:e.map((e=>e.id===t.column.id?{...e,title:"asc"===t.direction?`\u2191 ${e.title}`:`\u2193 ${e.title}`}:e))}(x,o);return{numRows:v,numIndices:w,columns:S,getCellContent:k,onColumnResize:C}}var T=Object(s.a)((function({element:e,data:t,width:o,height:n}){const[r,a]=i.a.useState(),s=Object(d.c)(),{numRows:c,numIndices:u,columns:m,getCellContent:g,onColumnResize:b}=C(e,t,r),[p,f]=i.a.useState(!0),[y,T]=i.a.useState({columns:l.a.empty(),rows:l.a.empty()}),k=i.a.useRef(null),S=i.a.useCallback((e=>{let t="asc";const o=m[e];if(r&&r.column.id===o.id){if("asc"!==r.direction)return void a(void 0);t="desc"}var n;a({column:o,direction:t,mode:(n=o.columnType,n===h.Number?"smart":"default")})}),[r,m]);let M,O=Math.max(35*(c+1)+3,73),H=Math.min(O,400);e.height&&(H=Math.max(e.height,73),O=Math.max(e.height,O)),n&&(H=Math.min(H,n),O=Math.min(O,n),e.height||(H=O));let B=o;return e.useContainerWidth?M=o:e.width&&(M=Math.min(Math.max(e.width,38),o),B=Math.min(Math.max(e.width,B),o)),Object(v.jsx)(x,{className:"stDataFrame",width:M,height:H,minHeight:73,maxHeight:O,minWidth:38,maxWidth:B,onBlur:()=>{p||T({columns:l.a.empty(),rows:l.a.empty(),current:void 0})},children:Object(v.jsx)(l.b,{ref:k,columns:m,rows:c,minColumnWidth:35,maxColumnWidth:650,rowHeight:35,headerHeight:35,getCellContent:g,onColumnResize:b,freezeColumns:u,smoothScrollX:!0,smoothScrollY:c<1e5,verticalBorder:!0,getCellsForSelection:!0,rowMarkers:"none",rangeSelect:"rect",columnSelect:"none",rowSelect:"none",keybindings:{search:!0},onHeaderClicked:S,gridSelection:y,onGridSelectionChange:e=>{T(e)},theme:w(s),onMouseMove:e=>{"out-of-bounds"===e.kind&&p?f(!1):"out-of-bounds"===e.kind||p||f(!0)},experimental:{scrollbarWidthOverride:1}})})}))}}]);
|
package/build/static/js/{41.1811bda2.chunk.js.LICENSE.txt → 41.4ddf36bc.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 42.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[42],{
|
|
1
|
+
/*! For license information please see 42.e5620440.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[42],{1805:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return v}));var i=s(0),o=s.n(i),r=s(106),a=s.n(r),n=s(61),l=s(1771),d=s(29),p=s(193),m=s(113),h=s(114),u=s(50),c=s(33),g=s(1);const b="YYYY/MM/DD";function f(e){return e.map((e=>new Date(e)))}class y extends o.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new p.b,this.state={values:this.initialValue,isRange:this.props.element.isRange,isEmpty:!1},this.commitWidgetValue=e=>{this.props.widgetMgr.setStringArrayValue(this.props.element,this.state.values.map((e=>a()(e).format(b))),e)},this.onFormCleared=()=>{const e=f(this.props.element.default);this.setState({values:e},(()=>this.commitWidgetValue({fromUi:!0})))},this.handleChange=({date:e})=>{this.setState({values:Array.isArray(e)?e:[e],isEmpty:!e},(()=>{this.state.isEmpty||this.commitWidgetValue({fromUi:!0})}))},this.handleClose=()=>{const{isEmpty:e}=this.state;e&&this.setState({values:f(this.props.element.default)},(()=>{this.commitWidgetValue({fromUi:!0})}))},this.getMaxDate=()=>{const{element:e}=this.props,t=e.max;return t&&t.length>0?a()(t,b).toDate():void 0}}get initialValue(){const e=this.props.widgetMgr.getStringArrayValue(this.props.element);return f(void 0!==e?e:this.props.element.default)}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({values:e.map((e=>new Date(e)))},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{width:t,element:s,disabled:i,theme:o,widgetMgr:r}=this.props,{values:n,isRange:p}=this.state,{colors:f,fontSizes:y}=o,v={width:t},C=a()(s.min,b).toDate(),x=this.getMaxDate();return this.formClearHelper.manageFormClearListener(r,s.formId,this.onFormCleared),Object(g.jsxs)("div",{className:"stDateInput",style:v,children:[Object(g.jsx)(m.d,{label:s.label,disabled:i,labelVisibility:Object(c.j)(null===(e=s.labelVisibility)||void 0===e?void 0:e.value),children:s.help&&Object(g.jsx)(m.b,{children:Object(g.jsx)(h.a,{content:s.help,placement:u.b.TOP_RIGHT})})}),Object(g.jsx)(l.a,{formatString:"yyyy/MM/dd",disabled:i,onChange:this.handleChange,onClose:this.handleClose,overrides:{Popover:{props:{placement:d.f.bottomLeft,overrides:{Body:{style:{border:`1px solid ${f.fadedText10}`}}}}},CalendarContainer:{style:{fontSize:y.sm}},Week:{style:{fontSize:y.sm}},Day:{style:({$selected:e})=>({"::after":{borderColor:e?f.transparent:""}})},PrevButton:{style:()=>({display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:f.transparent},":focus":{backgroundColor:f.transparent,outline:0}})},NextButton:{style:{display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:f.transparent},":focus":{backgroundColor:f.transparent,outline:0}}},Input:{props:{maskChar:null,overrides:{Root:{style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}},Input:{style:{paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"}}}}}},value:n,minDate:C,maxDate:x,range:p})]})}}var v=Object(n.f)(y)}}]);
|
package/build/static/js/{42.ccc87d41.chunk.js.LICENSE.txt → 42.e5620440.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 43.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[43],{
|
|
1
|
+
/*! For license information please see 43.44eb58de.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[43],{1803:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return a}));var s=i(0),n=i(53),r=i(23),c=i(85),l=i(88),d=i(1);var a=function(t){const{disabled:e,element:i,widgetMgr:a,width:o}=t,u={width:o},{getBaseUriParts:b}=Object(s.useContext)(n.a),h=Object(l.i)();return Object(d.jsx)("div",{className:"row-widget stDownloadButton",style:u,children:Object(d.jsx)(r.a,{help:i.help,children:Object(d.jsx)(r.d,{kind:r.b.PRIMARY,size:r.c.SMALL,disabled:e,onClick:()=>{if(a.setTriggerValue(i,{fromUi:!0}),i.url.startsWith("/media"))return void Object(l.g)(h,i.url);const t=document.createElement("a"),e=`${Object(c.b)(i.url,b())}?title=${encodeURIComponent(document.title)}`;t.setAttribute("href",e),t.setAttribute("target","_blank"),t.click()},children:i.label})})})}}}]);
|
package/build/static/js/{43.dd888752.chunk.js.LICENSE.txt → 43.44eb58de.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 44.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[44],{
|
|
1
|
+
/*! For license information please see 44.35b43369.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[44],{1789:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return f}));var s=i(0),o=i.n(s),a=i(61),r=i(1760),l=i(1761),n=i(1762),d=i(113),h=i(114),p=i(50),u=i(1);class m extends o.a.PureComponent{constructor(...e){super(...e),this.state={value:this.props.value},this.onChange=e=>{const t=parseInt(e.target.value,10);this.setState({value:t},(()=>this.props.onChange(t)))}}componentDidUpdate(e){e.value!==this.props.value&&this.props.value!==this.state.value&&this.setState({value:this.props.value})}render(){const{theme:e,width:t,help:i,label:s,horizontal:o,labelVisibility:a}=this.props;let{disabled:m}=this.props;const{colors:c,radii:b}=e,g={width:t},v=[...this.props.options];return 0===v.length&&(v.push("No options to select."),m=!0),Object(u.jsxs)("div",{className:"row-widget stRadio",style:g,children:[Object(u.jsx)(d.d,{label:s,disabled:m,labelVisibility:a,children:i&&Object(u.jsx)(d.c,{children:Object(u.jsx)(h.a,{content:i,placement:p.b.TOP_RIGHT})})}),Object(u.jsx)(r.a,{onChange:this.onChange,value:this.state.value.toString(),disabled:m,align:o?l.a.horizontal:l.a.vertical,"aria-label":s,children:v.map(((e,t)=>Object(u.jsx)(n.a,{value:t.toString(),overrides:{Root:{style:({$isFocusVisible:e})=>({marginBottom:0,marginTop:0,marginRight:"1rem",paddingLeft:0,alignItems:"start",paddingRight:"2px",backgroundColor:e?c.darkenedBgMix25:"",borderTopLeftRadius:b.md,borderTopRightRadius:b.md,borderBottomLeftRadius:b.md,borderBottomRightRadius:b.md})},RadioMarkOuter:{style:({$checked:e})=>({width:"1rem",height:"1rem",marginTop:"0.35rem",marginRight:"0",backgroundColor:e&&!m?c.primary:c.fadedText40})},RadioMarkInner:{style:({$checked:e})=>({height:e?"6px":".75rem",width:e?"6px":".75rem"})},Label:{style:{color:m?c.fadedText40:c.bodyText,position:"relative",top:"1px"}}},children:e},t)))})]})}}var c=Object(a.f)(m),b=i(193),g=i(33);class v extends o.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new b.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setIntValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState({value:this.props.element.default},(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{this.setState({value:e},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getIntValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){const{disabled:e,element:t,width:i,widgetMgr:s}=this.props,{horizontal:o,options:a,label:r,labelVisibility:l,help:n}=t;return this.formClearHelper.manageFormClearListener(s,t.formId,this.onFormCleared),Object(u.jsx)(c,{label:r,onChange:this.onChange,options:a,width:i,disabled:e,horizontal:o,labelVisibility:Object(g.j)(null===l||void 0===l?void 0:l.value),value:this.state.value,help:n})}}var f=v}}]);
|
package/build/static/js/{44.14f2e50d.chunk.js.LICENSE.txt → 44.35b43369.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 45.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[45],{
|
|
1
|
+
/*! For license information please see 45.91664b3c.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[45],{1807:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return h}));var s=i(0),o=i.n(s),l=i(193),a=i(148),r=i(33),n=i(1);class p extends o.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new l.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setIntValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState({value:this.props.element.default},(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{this.setState({value:e},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getIntValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){const{options:e,help:t,label:i,labelVisibility:s,formId:o}=this.props.element,{disabled:l,widgetMgr:p}=this.props;return this.formClearHelper.manageFormClearListener(p,o,this.onFormCleared),Object(n.jsx)(a.b,{label:i,labelVisibility:Object(r.j)(null===s||void 0===s?void 0:s.value),options:e,disabled:l,width:this.props.width,onChange:this.onChange,value:this.state.value,help:t})}}var h=p}}]);
|
package/build/static/js/{45.61ea1afe.chunk.js.LICENSE.txt → 45.91664b3c.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 46.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[46],{
|
|
1
|
+
/*! For license information please see 46.e9639103.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[46],{1795:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return R}));var a=i(0),s=i.n(a),o=i(36),n=i(1809),r=i(61),l=i(1377),d=i(193),h=i(15),m=i(33),c=i(106),p=i.n(c),u=i(113),b=i(114),g=i(50),f=i(5),T=i(20);const y=Object(f.a)("div",{target:"e88czh83"})((({disabled:e,theme:t})=>({alignItems:"center",backgroundColor:e?t.colors.gray:t.colors.primary,borderTopLeftRadius:"100%",borderTopRightRadius:"100%",borderBottomLeftRadius:"100%",borderBottomRightRadius:"100%",borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none",boxShadow:"none",display:"flex",height:t.radii.xl,justifyContent:"center",width:t.radii.xl,":focus":{boxShadow:`0 0 0 0.2rem ${Object(T.g)(t.colors.primary,.5)}`,outline:"none"}})),""),j=Object(f.a)("div",{target:"e88czh82"})((({disabled:e,theme:t})=>({fontFamily:t.fonts.monospace,fontSize:t.fontSizes.sm,paddingBottom:t.spacing.twoThirdsSmFont,color:e?t.colors.gray:t.colors.primary,top:"-22px",position:"absolute",whiteSpace:"nowrap",backgroundColor:t.colors.transparent,lineHeight:t.lineHeights.base,fontWeight:"normal"})),""),v=Object(f.a)("div",{target:"e88czh81"})((({theme:e})=>({paddingBottom:e.spacing.none,paddingLeft:e.spacing.none,paddingRight:e.spacing.none,paddingTop:e.spacing.twoThirdsSmFont,justifyContent:"space-between",alignItems:"center",display:"flex"})),""),x=Object(f.a)("div",{target:"e88czh80"})((({disabled:e,theme:t})=>({lineHeight:t.lineHeights.base,fontWeight:"normal",fontSize:t.fontSizes.sm,fontFamily:t.fonts.monospace,color:e?t.colors.fadedText40:"inherit"})),"");var V=i(1);class O extends s.a.PureComponent{constructor(e){super(e),this.formClearHelper=new d.b,this.state=void 0,this.sliderRef=s.a.createRef(),this.thumbValueRef=s.a.createRef(),this.commitWidgetValueDebounced=void 0,this.commitWidgetValue=e=>{this.props.widgetMgr.setDoubleArrayValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState({value:this.props.element.default},(()=>this.commitWidgetValue({fromUi:!0})))},this.handleChange=({value:e})=>{this.setState({value:e},(()=>this.commitWidgetValueDebounced({fromUi:!0})))},this.renderThumb=s.a.forwardRef(((e,t)=>{const{$value:i,$thumbIndex:a}=e,s=this.formatValue(i[a]),n=Object(o.pick)(e,["role","style","aria-valuemax","aria-valuemin","aria-valuenow","tabIndex","onKeyUp","onKeyDown","onMouseEnter","onMouseLeave","draggable"]),r={};return(this.props.element.options.length>0||this.isDateTimeType())&&(r["aria-valuetext"]=s),this.thumbValueAlignment(),Object(V.jsx)(y,{...n,disabled:e.$disabled,ref:t,"aria-valuetext":s,"aria-label":this.props.element.label,children:Object(V.jsx)(j,{className:"StyledThumbValue","data-testid":"stThumbValue",disabled:e.$disabled,ref:this.thumbValueRef,children:s})})})),this.renderTickBar=()=>{const{disabled:e,element:t}=this.props,{max:i,min:a}=t;return Object(V.jsxs)(v,{"data-testid":"stTickBar",children:[Object(V.jsx)(x,{disabled:e,"data-testid":"stTickBarMin",children:this.formatValue(a)}),Object(V.jsx)(x,{disabled:e,"data-testid":"stTickBarMax",children:this.formatValue(i)})]})},this.commitWidgetValueDebounced=Object(m.b)(200,this.commitWidgetValue.bind(this)),this.state={value:this.initialValue}}get initialValue(){const e=this.props.widgetMgr.getDoubleArrayValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.thumbValueAlignment(),this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}get value(){const{min:e,max:t}=this.props.element,{value:i}=this.state;let a=i[0],s=i.length>1?i[1]:i[0];return a>s&&(a=s),a<e&&(a=e),a>t&&(a=t),s<e&&(s=e),s>t&&(s=t),i.length>1?[a,s]:[a]}isDateTimeType(){const{dataType:e}=this.props.element;return e===h.t.DataType.DATETIME||e===h.t.DataType.DATE||e===h.t.DataType.TIME}formatValue(e){const{format:t,options:i}=this.props.element;return this.isDateTimeType()?p.a.utc(e/1e3).format(t):i.length>0?Object(l.sprintf)(t,i[e]):Object(l.sprintf)(t,e)}thumbValueAlignment(){const e=this.sliderRef.current,t=this.thumbValueRef.current;if(e&&t){const i=e.getBoundingClientRect(),a=t.getBoundingClientRect();t.style.left=a.left<i.left?"0":"",t.style.right=a.right>i.right?"0":""}}render(){var e;const{disabled:t,element:i,theme:a,width:s,widgetMgr:o}=this.props,{colors:r,fonts:l,fontSizes:d,spacing:h}=a,c={width:s};return this.formClearHelper.manageFormClearListener(o,i.formId,this.onFormCleared),Object(V.jsxs)("div",{ref:this.sliderRef,className:"stSlider",style:c,children:[Object(V.jsx)(u.d,{label:i.label,disabled:t,labelVisibility:Object(m.j)(null===(e=i.labelVisibility)||void 0===e?void 0:e.value),children:i.help&&Object(V.jsx)(u.b,{children:Object(V.jsx)(b.a,{content:i.help,placement:g.b.TOP_RIGHT})})}),Object(V.jsx)(n.a,{min:i.min,max:i.max,step:i.step,value:this.value,onChange:this.handleChange,disabled:t,overrides:{Root:{style:{paddingTop:h.twoThirdsSmFont}},Thumb:this.renderThumb,Tick:{style:{fontFamily:l.monospace,fontSize:d.sm}},Track:{style:{backgroundColor:"none !important",paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:h.twoThirdsSmFont}},InnerTrack:{style:({$disabled:e})=>({height:"4px",...e?{background:r.darkenedBgMix25}:{}})},TickBar:this.renderTickBar}})]})}}var R=Object(r.f)(O)}}]);
|
package/build/static/js/{46.3201e0ba.chunk.js.LICENSE.txt → 46.e9639103.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 47.
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[47],{
|
|
1
|
+
/*! For license information please see 47.77b33a34.chunk.js.LICENSE.txt */
|
|
2
|
+
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[47],{1808:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return m}));var s=i(0),o=i(1685),r=i(193),a=i(113),n=i(114),l=i(50),d=i(33),p=i(1);class h extends s.PureComponent{constructor(...t){super(...t),this.formClearHelper=new r.b,this.state={value:this.initialValue},this.commitWidgetValue=t=>{this.props.widgetMgr.setStringValue(this.props.element,this.state.value,t)},this.onFormCleared=()=>{this.setState({value:this.props.element.default},(()=>this.commitWidgetValue({fromUi:!0})))},this.handleChange=t=>{const e=this.dateToString(t);this.setState({value:e},(()=>this.commitWidgetValue({fromUi:!0})))},this.stringToDate=t=>{const[e,i]=t.split(":").map(Number),s=new Date;return s.setHours(e),s.setMinutes(i),s},this.dateToString=t=>`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`}get initialValue(){const t=this.props.widgetMgr.getStringValue(this.props.element);return void 0!==t?t:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:t}=this.props.element;t&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:t}=this.props.element;this.props.element.setValue=!1,this.setState({value:t},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var t;const{disabled:e,width:i,element:s,widgetMgr:r}=this.props,h={width:i},m={Select:{props:{disabled:e,overrides:{ControlContainer:{style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}},IconsContainer:{style:()=>({paddingRight:".5rem"})},ValueContainer:{style:()=>({paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"})},Dropdown:{style:()=>({paddingTop:0,paddingBottom:0})},Popover:{props:{overrides:{Body:{style:()=>({marginTop:"1px"})}}}}}}}};return this.formClearHelper.manageFormClearListener(r,s.formId,this.onFormCleared),Object(p.jsxs)("div",{className:"stTimeInput",style:h,children:[Object(p.jsx)(a.d,{label:s.label,disabled:e,labelVisibility:Object(d.j)(null===(t=s.labelVisibility)||void 0===t?void 0:t.value),children:s.help&&Object(p.jsx)(a.b,{children:Object(p.jsx)(n.a,{content:s.help,placement:l.b.TOP_RIGHT})})}),Object(p.jsx)(o.a,{format:"24",value:this.stringToDate(this.state.value),onChange:this.handleChange,overrides:m,creatable:!0,"aria-label":s.label})]})}}var m=h}}]);
|
package/build/static/js/{47.f6442eb9.chunk.js.LICENSE.txt → 47.77b33a34.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|