iobroker.vis-2-widgets-collection 1.7.3 → 1.7.4

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 (21) hide show
  1. package/README.md +4 -0
  2. package/io-package.json +14 -14
  3. package/package.json +1 -1
  4. package/widgets/vis-2-widgets-collection/asset-manifest.json +8 -8
  5. package/widgets/vis-2-widgets-collection/customWidgets.js +1 -1
  6. package/widgets/vis-2-widgets-collection/customWidgets.js.map +1 -1
  7. package/widgets/vis-2-widgets-collection/static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.97b49513.chunk.js +2 -0
  8. package/widgets/vis-2-widgets-collection/static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.97b49513.chunk.js.map +1 -0
  9. package/widgets/vis-2-widgets-collection/static/js/src_GaugeCollectionWidget_GaugeCollectionWidget_jsx.4241780e.chunk.js +2 -0
  10. package/widgets/vis-2-widgets-collection/static/js/src_GaugeCollectionWidget_GaugeCollectionWidget_jsx.4241780e.chunk.js.map +1 -0
  11. package/widgets/vis-2-widgets-collection/static/js/src_components_CollectionDivider_jsx.64365c8e.chunk.js +2 -0
  12. package/widgets/vis-2-widgets-collection/static/js/src_components_CollectionDivider_jsx.64365c8e.chunk.js.map +1 -0
  13. package/widgets/vis-2-widgets-collection/static/js/src_translations_js.289a4eb9.chunk.js +2 -0
  14. package/widgets/vis-2-widgets-collection/static/js/{src_translations_js.2af12bc5.chunk.js.map → src_translations_js.289a4eb9.chunk.js.map} +1 -1
  15. package/widgets/vis-2-widgets-collection/static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.b4d35d0e.chunk.js +0 -2
  16. package/widgets/vis-2-widgets-collection/static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.b4d35d0e.chunk.js.map +0 -1
  17. package/widgets/vis-2-widgets-collection/static/js/src_GaugeCollectionWidget_GaugeCollectionWidget_jsx.70b9e47e.chunk.js +0 -2
  18. package/widgets/vis-2-widgets-collection/static/js/src_GaugeCollectionWidget_GaugeCollectionWidget_jsx.70b9e47e.chunk.js.map +0 -1
  19. package/widgets/vis-2-widgets-collection/static/js/src_components_CollectionDivider_jsx.40d42438.chunk.js +0 -2
  20. package/widgets/vis-2-widgets-collection/static/js/src_components_CollectionDivider_jsx.40d42438.chunk.js.map +0 -1
  21. package/widgets/vis-2-widgets-collection/static/js/src_translations_js.2af12bc5.chunk.js +0 -2
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkiobroker_vis_widgets_react_collection=self.webpackChunkiobroker_vis_widgets_react_collection||[]).push([["src_DialogCollectionWidget_DialogCollectionWidget_jsx"],{2840:(t,e,o)=>{o.r(e),o.d(e,{default:()=>k});var a=o(7051),i=o(8437),l=o(6211),n=o(900),d=o(8679),s=o(4376),r=o(579);const c=()=>[{name:"view",label:"view",type:"select-views",multiple:!1},{label:"",type:"custom",component:()=>(0,r.jsx)(s.A,{})},{name:"dialogAutoClose",label:"dialog_auto_close",type:"slider",min:0,max:3e4,step:100},{label:"",type:"custom",component:()=>(0,r.jsx)(s.A,{})},{name:"oid",type:"id",label:"oid",tooltip:"dialog_set_oid_tooltip"},{label:"",type:"custom",component:()=>(0,r.jsx)(s.A,{})},{name:"dialogWidth",label:"dialog_width",type:"slider",min:1,max:100,default:100,step:1},{name:"dialogHeight",label:"dialog_height",type:"slider",min:1,max:100,default:100,step:1},{label:"",type:"custom",component:()=>(0,r.jsx)(s.A,{})},{name:"dialogBackgroundColor",label:"background_color",type:"color"},{label:"",type:"custom",component:()=>(0,r.jsx)(s.A,{dividerText:"dialog_button"})},{name:"value",label:"value",type:"html",default:""},{label:"",type:"custom",component:()=>(0,r.jsx)(s.A,{})},{name:"dialogCloseButtonTop",label:"dialog_close_button_top",type:"checkbox",default:!1},{name:"dialogCloseButtonBottom",label:"dialog_close_button_bottom",type:"checkbox",default:!1},{label:"",type:"custom",component:()=>(0,r.jsx)(s.A,{})},{name:"onlyIcon",label:"only_icon",type:"checkbox",default:!1,hidden:"data.onlyText"},{name:"onlyText",label:"only_text",type:"checkbox",default:!1,hidden:"data.onlyIcon"}];var g=o(7085),u=o(4535),p=o(4657),h=o(6016),x=o(2152),m=o(4692),y=o(5702),b=o(4802),f=o(8565);function A(t){let{open:e,handleClose:o,widget:a,data:i,getWidgetView:l}=t;const n=(0,r.jsx)(g.IconButton,{sx:{filter:"brightness(1.5)",color:t=>i.frameBackgroundColor||t.palette.background.primary,alignSelf:"flex-end"},"aria-label":"delete",onClick:o,children:(0,r.jsx)(b.A,{})});return(0,r.jsx)(g.Modal,{onClose:o,open:e,sx:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:a.data.dialogBackgroundColor||"inherit"},children:(0,r.jsx)(g.Box,{sx:{width:"".concat(a.data.dialogWidth,"%"),height:"".concat(a.data.dialogHeight,"%")},children:(0,r.jsxs)(p.A,{data:i,sx:{flexDirection:"column",background:i.backgroundColor||i.background},children:[a.data.dialogCloseButtonTop&&n,a.data.dialogCloseButtonTop&&(0,r.jsx)(g.Divider,{sx:{width:"100%",opacity:"0.5",background:t=>i.frameBackgroundColor||t.palette.background.primary}}),(0,r.jsx)(g.Box,{sx:{"::-webkit-scrollbar-track":{background:t=>i.frameBackgroundColor&&(0,f.alpha)(i.frameBackgroundColor,.5)},"::-webkit-scrollbar-thumb":{opacity:"0.5",background:t=>i.frameBackgroundColor&&(0,f.alpha)(i.frameBackgroundColor,.7)},position:"relative",overflow:"auto",width:"100%",height:"100%"},children:l(a.data.view,{style:{}})}),a.data.dialogCloseButtonBottom&&(0,r.jsx)(g.Divider,{sx:{width:"100%",opacity:"0.5",background:t=>i.frameBackgroundColor||t.palette.background.default}}),a.data.dialogCloseButtonBottom&&n]})})})}const v=(0,u.Ay)(g.ButtonBase)({width:"100% !important",height:"100% !important",display:"flex",justifyContent:"center",alignItems:"center"});const w=function(){var t;const[e,o]=(0,i.useState)(!1),l=(0,i.useRef)(null),[n,d]=(0,i.useState)(null),{oidObject:s,widget:c,getWidgetView:u,setValue:b}=(0,i.useContext)(h.C),{textStyles:f,fontStyles:w}=(0,y.A)(c.style),{data:C}=(0,x.A)("oid");(0,m.A)(n,"",c,C);const k=null===s||void 0===s?void 0:s._id,j="boolean"===(null===s||void 0===s||null===(t=s.common)||void 0===t?void 0:t.type)||!c.data.oid||"nothing_selected"===c.data.oid;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A,{open:e,handleClose:()=>{l.current&&(clearTimeout(l.current),l.current=null),b(k,!1),o(!1)},widget:c,data:C,getWidgetView:u}),(0,r.jsx)(p.A,{isValidType:j,data:C,children:(0,r.jsx)(g.Box,{sx:{width:"100%",height:"100%",display:"flex"},children:(0,r.jsxs)(v,{onClick:()=>{b(k,!0),(()=>{let t=c.data.dialogAutoClose;null!==t&&void 0!==t&&""!==t?(!0!==t&&"true"!==t||(t=1e4),t=parseInt(t,10),t<60&&(t*=1e3),t=t||1e3,l.current=setTimeout((()=>{l.current=null,b(k,!1),o(!1)}),t),o(!0)):o(!0)})()},sx:{"& .MuiTouchRipple-root span":{color:C.iconColor}},children:[c.data.onlyIcon||!c.data.onlyText&&!c.data.onlyIcon?(0,r.jsx)(g.Box,{sx:{overflow:"hidden",p:.5,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,r.jsx)("img",{alt:"",src:C.icon||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",style:{position:"relative",objectFit:"contain",top:"calc(0px - ".concat(c.data.iconYOffset,")"),right:"calc(0px - ".concat(c.data.iconXOffset,")"),width:"".concat(C.iconSizeOnly||"100","%"),height:"".concat(C.iconSizeOnly||"100","%"),color:C.iconColor,filter:C.iconColor?"drop-shadow(0px 10000px 0)":null,transform:C.iconColor?"translateY(-10000px)":null}})}):null,c.data.onlyText||!c.data.onlyText&&!c.data.onlyIcon?(0,r.jsx)(g.Typography,{ref:d,variant:"body2",sx:(0,a.A)((0,a.A)((0,a.A)({overflow:"hidden",width:"100%",height:"100%",p:.5,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},w),f),{},{fontSize:C.valueSize,color:C.textColor,textTransform:"none"})}):null]})})})]})};class C extends l.A{static getWidgetInfo(){return{id:"tplDialogCollectionWidget",visSet:"vis-2-widgets-collection",visSetLabel:"widgets_collection",visName:"DialogCollectionWidget",visWidgetLabel:"dialog_collection_widget",visOrder:2,visAttrs:[{name:"common",fields:[...(0,d.A)({groupName:"",allFields:!0})]},{name:"dialog",label:"group_dialog",fields:[...c()]}],visDefaultStyle:{width:"100%",height:"100px",position:"relative"},visPrev:"widgets/vis-2-widgets-collection/img/prev-collection-dialog.png"}}getWidgetInfo(){return C.getWidgetInfo()}async propertiesUpdate(){const t=JSON.stringify(this.state.rxData);this.lastRxData!==t&&(this.lastRxData=t,await this.createStateObjectAsync("oid"))}async onRxDataChanged(t){await this.propertiesUpdate()}onRxStyleChanged(){}onStateUpdated(t,e){}async componentDidMount(){super.componentDidMount(),await this.propertiesUpdate()}renderWidgetBody(t){super.renderWidgetBody(t);const e={id:t.id,refService:t.refService,style:t.style,widget:(0,a.A)((0,a.A)({},t.widget),{},{data:this.state.rxData,style:this.state.rxStyle}),setValue:this.setValue,setState:this.setState.bind(this),oidObject:this.state.oidObject,values:this.state.values,isSignalVisible:this.isSignalVisible.bind(this),getPropertyValue:this.getPropertyValue.bind(this),mode:this.props.context.themeType,socket:this.props.context.socket,theme:this.props.context.theme,getWidgetView:this.getWidgetView.bind(this),wrappedContent:this.wrappedContent};return t.widget.data.noCard||t.widget.usedInWidget?this.wrappedContent=!1:this.wrappedContent=!0,(0,n.A)(this.wrapContent((0,r.jsx)(w,{})),e)}}const k=C},4692:(t,e,o)=>{o.d(e,{A:()=>i});var a=o(8437);const i=(t,e,o,i)=>{const l=("string"===typeof e||"number"===typeof e||"boolean"===typeof e)&&"".concat(e).concat(void 0!==o.data.unit?o.data.unit:""),n=i.alias||i.value||l;(0,a.useEffect)((()=>{void 0!==n&&t&&(t.innerHTML=n)}),[n,t])}},4802:(t,e,o)=>{var a=o(2613);e.A=void 0;var i=a(o(39)),l=o(579);e.A=(0,i.default)((0,l.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")}}]);
2
- //# sourceMappingURL=src_DialogCollectionWidget_DialogCollectionWidget_jsx.b4d35d0e.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.b4d35d0e.chunk.js","mappings":"uTAEA,MAkHA,EAlHqBA,IAAM,CAC1B,CACCC,KAAM,OACNC,MAAO,OACPC,KAAM,eACNC,UAAU,GAEX,CACCF,MAAO,GACPC,KAAM,SACNE,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KAEpC,CACCN,KAAM,kBACNC,MAAO,oBACPC,KAAM,SACNK,IAAK,EACLC,IAAK,IACLC,KAAM,KAEP,CACCR,MAAO,GACPC,KAAM,SACNE,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KAEpC,CACCN,KAAM,MACNE,KAAM,KACND,MAAO,MACPS,QAAS,0BAEV,CACCT,MAAO,GACPC,KAAM,SACNE,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KAEpC,CACCN,KAAM,cACNC,MAAO,eACPC,KAAM,SACNK,IAAK,EACLC,IAAK,IACLG,QAAS,IACTF,KAAM,GAEP,CACCT,KAAM,eACNC,MAAO,gBACPC,KAAM,SACNK,IAAK,EACLC,IAAK,IACLG,QAAS,IACTF,KAAM,GAEP,CACCR,MAAO,GACPC,KAAM,SACNE,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KAEpC,CACCN,KAAM,wBACNC,MAAO,mBACPC,KAAM,SAGP,CACCD,MAAO,GACPC,KAAM,SACNE,UAAWA,KAAMC,EAAAA,EA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MAAMU,QAAQlI,MAC1BN,cAAekH,KAAKlH,cAAcmI,KAAKjB,MAEvCyB,eAAgBzB,KAAKyB,gBAStB,OANIb,EAAMhI,OAAOC,KAAK6I,QAAUd,EAAMhI,OAAO+I,aAC5C3B,KAAKyB,gBAAiB,EAEtBzB,KAAKyB,gBAAiB,GAGhBG,EAAAA,EAAAA,GACN5B,KAAK6B,aAAY9J,EAAAA,EAAAA,KAAC+J,EAAgB,KAClCjB,EAEF,EAGD,S,gDCzHA,MAeA,EAfqBrE,CAACV,EAAYiG,EAAUnJ,EAAQC,KACnD,MAAMmJ,GACgB,kBAAbD,GACa,kBAAbA,GACa,mBAAbA,IAAsB,GAAAzH,OAC3ByH,GAAQzH,YAAwB6C,IAArBvE,EAAOC,KAAKoJ,KAAqBrJ,EAAOC,KAAKoJ,KAAO,IAE7DC,EAAerJ,EAAKsJ,OAAStJ,EAAKuJ,OAASJ,GAEjDK,EAAAA,EAAAA,YAAU,UACYlF,IAAjB+E,GAA+BpG,IACnCA,EAAWwG,UAAYJ,EAAY,GACjC,CAACA,EAAcpG,GAAY,C,qBCX3ByG,EAAyBC,EAAQ,MAIrCC,EAAQ,OAAU,EAClB,IAAIC,EAAiBH,EAAuBC,EAAQ,KAChDG,EAAcH,EAAQ,KACXC,EAAQ,GAAU,EAAIC,EAAerK,UAAuB,EAAIsK,EAAYC,KAAK,OAAQ,CACtGC,EAAG,0GACD,Q","sources":["lib/dialogFields.jsx","DialogCollectionWidget/ViewDialog.jsx","DialogCollectionWidget/DialogCollection.jsx","DialogCollectionWidget/DialogCollectionWidget.jsx","hooks/useHtmlValue.js","../node_modules/@mui/icons-material/Close.js"],"sourcesContent":["import CollectionDivider from \"../components/CollectionDivider\";\n\nconst dialogFields = () => [\n\t{\n\t\tname: \"view\",\n\t\tlabel: \"view\",\n\t\ttype: \"select-views\",\n\t\tmultiple: false,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"dialogAutoClose\",\n\t\tlabel: \"dialog_auto_close\",\n\t\ttype: \"slider\",\n\t\tmin: 0,\n\t\tmax: 30000,\n\t\tstep: 100,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"oid\",\n\t\ttype: \"id\",\n\t\tlabel: \"oid\",\n\t\ttooltip: \"dialog_set_oid_tooltip\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"dialogWidth\",\n\t\tlabel: \"dialog_width\",\n\t\ttype: \"slider\",\n\t\tmin: 1,\n\t\tmax: 100,\n\t\tdefault: 100,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"dialogHeight\",\n\t\tlabel: \"dialog_height\",\n\t\ttype: \"slider\",\n\t\tmin: 1,\n\t\tmax: 100,\n\t\tdefault: 100,\n\t\tstep: 1,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"dialogBackgroundColor\",\n\t\tlabel: \"background_color\",\n\t\ttype: \"color\",\n\t},\n\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider dividerText=\"dialog_button\" />,\n\t},\n\t{\n\t\tname: \"value\",\n\t\tlabel: \"value\",\n\t\ttype: \"html\",\n\t\tdefault: \"\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"dialogCloseButtonTop\",\n\t\tlabel: \"dialog_close_button_top\",\n\t\ttype: \"checkbox\",\n\t\tdefault: false,\n\t},\n\t{\n\t\tname: \"dialogCloseButtonBottom\",\n\t\tlabel: \"dialog_close_button_bottom\",\n\t\ttype: \"checkbox\",\n\t\tdefault: false,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"onlyIcon\",\n\t\tlabel: \"only_icon\",\n\t\ttype: \"checkbox\",\n\t\tdefault: false,\n\t\thidden: \"data.onlyText\",\n\t},\n\t{\n\t\tname: \"onlyText\",\n\t\tlabel: \"only_text\",\n\t\ttype: \"checkbox\",\n\t\tdefault: false,\n\t\thidden: \"data.onlyIcon\",\n\t},\n];\n\nexport default dialogFields;\n","import CloseIcon from \"@mui/icons-material/Close\";\nimport { Box, Divider, IconButton, Modal } from \"@mui/material\";\nimport { alpha } from \"@mui/material/styles\";\nimport React from \"react\";\nimport CollectionBase from \"../components/CollectionBase\";\n\nexport default function ViewDialog({\n\topen,\n\thandleClose,\n\twidget,\n\tdata,\n\tgetWidgetView,\n}) {\n\tconst closeButton = (\n\t\t<IconButton\n\t\t\tsx={{\n\t\t\t\tfilter: \"brightness(1.5)\",\n\t\t\t\tcolor: (theme) =>\n\t\t\t\t\tdata.frameBackgroundColor || theme.palette.background.primary,\n\t\t\t\talignSelf: \"flex-end\",\n\t\t\t}}\n\t\t\taria-label=\"delete\"\n\t\t\tonClick={handleClose}\n\t\t>\n\t\t\t<CloseIcon />\n\t\t</IconButton>\n\t);\n\n\treturn (\n\t\t<Modal\n\t\t\tonClose={handleClose}\n\t\t\topen={open}\n\t\t\tsx={{\n\t\t\t\tdisplay: \"flex\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\talignItems: \"center\",\n\n\t\t\t\tbackgroundColor: widget.data.dialogBackgroundColor || \"inherit\",\n\t\t\t}}\n\t\t>\n\t\t\t<Box\n\t\t\t\tsx={{\n\t\t\t\t\twidth: `${widget.data.dialogWidth}%`,\n\t\t\t\t\theight: `${widget.data.dialogHeight}%`,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<CollectionBase\n\t\t\t\t\tdata={data}\n\t\t\t\t\tsx={{\n\t\t\t\t\t\tflexDirection: \"column\",\n\t\t\t\t\t\tbackground: data.backgroundColor || data.background,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{widget.data.dialogCloseButtonTop && closeButton}\n\t\t\t\t\t{widget.data.dialogCloseButtonTop && (\n\t\t\t\t\t\t<Divider\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\t\topacity: \"0.5\",\n\t\t\t\t\t\t\t\tbackground: (theme) =>\n\t\t\t\t\t\t\t\t\tdata.frameBackgroundColor || theme.palette.background.primary,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\t<Box\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\"::-webkit-scrollbar-track\": {\n\t\t\t\t\t\t\t\tbackground: (theme) =>\n\t\t\t\t\t\t\t\t\tdata.frameBackgroundColor &&\n\t\t\t\t\t\t\t\t\talpha(data.frameBackgroundColor, 0.5),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"::-webkit-scrollbar-thumb\": {\n\t\t\t\t\t\t\t\topacity: \"0.5\",\n\t\t\t\t\t\t\t\tbackground: (theme) =>\n\t\t\t\t\t\t\t\t\tdata.frameBackgroundColor &&\n\t\t\t\t\t\t\t\t\talpha(data.frameBackgroundColor, 0.7),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tposition: \"relative\",\n\t\t\t\t\t\t\toverflow: \"auto\",\n\n\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\theight: \"100%\",\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{getWidgetView(widget.data.view, {\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t// \"background-color\": \"inherit\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t})}\n\t\t\t\t\t</Box>\n\n\t\t\t\t\t{widget.data.dialogCloseButtonBottom && (\n\t\t\t\t\t\t<Divider\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\t\topacity: \"0.5\",\n\t\t\t\t\t\t\t\tbackground: (theme) =>\n\t\t\t\t\t\t\t\t\tdata.frameBackgroundColor || theme.palette.background.default,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{widget.data.dialogCloseButtonBottom && closeButton}\n\t\t\t\t</CollectionBase>\n\t\t\t</Box>\n\t\t</Modal>\n\t);\n}\n","import { Box, ButtonBase, Typography } from \"@mui/material\";\nimport { styled } from \"@mui/material/styles\";\nimport React, { useRef, useContext, useState } from \"react\";\nimport CollectionBase from \"../components/CollectionBase\";\nimport { CollectionContext } from \"../components/CollectionProvider\";\nimport useData from \"../hooks/useData\";\nimport useHtmlValue from \"../hooks/useHtmlValue\";\nimport useStyles from \"../hooks/useStyles\";\nimport ViewDialog from \"./ViewDialog\";\n\nconst ImageHtmlButton = styled(ButtonBase)({\n\twidth: \"100% !important\", // Overrides inline-style\n\theight: \"100% !important\",\n\n\tdisplay: \"flex\",\n\tjustifyContent: \"center\",\n\talignItems: \"center\",\n});\n\nfunction DialogCollection() {\n\tconst [open, setOpen] = useState(false);\n\tconst hideTimeout = useRef(null);\n\tconst [contentRef, setContentRef] = useState(null);\n\tconst { oidObject, widget, getWidgetView, setValue } =\n\t\tuseContext(CollectionContext);\n\tconst { textStyles, fontStyles } = useStyles(widget.style);\n\tconst { data } = useData(\"oid\");\n\n\tconst handleClickOpen = () => {\n\t\tlet timeout = widget.data.dialogAutoClose;\n\n\t\tif (timeout === null || timeout === undefined || timeout === \"\") {\n\t\t\tsetOpen(true);\n\t\t\treturn;\n\t\t}\n\n\t\tif (timeout === true || timeout === \"true\") {\n\t\t\ttimeout = 10000;\n\t\t}\n\n\t\ttimeout = parseInt(timeout, 10);\n\t\tif (timeout < 60) {\n\t\t\t// maybe this is seconds\n\t\t\ttimeout *= 1000;\n\t\t}\n\t\ttimeout = timeout || 1000;\n\n\t\thideTimeout.current = setTimeout(() => {\n\t\t\thideTimeout.current = null;\n\t\t\tsetValue(oid, false);\n\t\t\tsetOpen(false);\n\t\t}, timeout);\n\n\t\tsetOpen(true);\n\t};\n\tconst handleClose = () => {\n\t\tif (hideTimeout.current) {\n\t\t\tclearTimeout(hideTimeout.current);\n\t\t\thideTimeout.current = null;\n\t\t}\n\n\t\tsetValue(oid, false);\n\t\tsetOpen(false);\n\t};\n\n\tuseHtmlValue(contentRef, \"\", widget, data);\n\n\tconst oid = oidObject?._id;\n\tconst oidType = oidObject?.common?.type;\n\n\tconst isValidType =\n\t\toidType === \"boolean\" ||\n\t\t!widget.data.oid ||\n\t\twidget.data.oid === \"nothing_selected\";\n\n\treturn (\n\t\t<>\n\t\t\t<ViewDialog\n\t\t\t\t{...{\n\t\t\t\t\topen,\n\t\t\t\t\thandleClose,\n\t\t\t\t\twidget,\n\t\t\t\t\tdata,\n\t\t\t\t\tgetWidgetView,\n\t\t\t\t}}\n\t\t\t/>\n\t\t\t<CollectionBase isValidType={isValidType} data={data}>\n\t\t\t\t<Box\n\t\t\t\t\tsx={{\n\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\theight: \"100%\",\n\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<ImageHtmlButton\n\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\tsetValue(oid, true);\n\t\t\t\t\t\t\thandleClickOpen();\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\"& .MuiTouchRipple-root span\": {\n\t\t\t\t\t\t\t\tcolor: data.iconColor,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{widget.data.onlyIcon ||\n\t\t\t\t\t\t(!widget.data.onlyText && !widget.data.onlyIcon) ? (\n\t\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\toverflow: \"hidden\",\n\n\t\t\t\t\t\t\t\t\tp: 0.5,\n\n\t\t\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\t\t\theight: \"100%\",\n\n\t\t\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<img\n\t\t\t\t\t\t\t\t\talt=\"\"\n\t\t\t\t\t\t\t\t\tsrc={\n\t\t\t\t\t\t\t\t\t\tdata.icon ||\n\t\t\t\t\t\t\t\t\t\t\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\tposition: \"relative\",\n\n\t\t\t\t\t\t\t\t\t\tobjectFit: \"contain\",\n\t\t\t\t\t\t\t\t\t\ttop: `calc(0px - ${widget.data.iconYOffset})`,\n\t\t\t\t\t\t\t\t\t\tright: `calc(0px - ${widget.data.iconXOffset})`,\n\t\t\t\t\t\t\t\t\t\twidth: `${data.iconSizeOnly || \"100\"}%`,\n\t\t\t\t\t\t\t\t\t\theight: `${data.iconSizeOnly || \"100\"}%`,\n\t\t\t\t\t\t\t\t\t\tcolor: data.iconColor,\n\t\t\t\t\t\t\t\t\t\tfilter: data.iconColor\n\t\t\t\t\t\t\t\t\t\t\t? \"drop-shadow(0px 10000px 0)\"\n\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\ttransform: data.iconColor ? \"translateY(-10000px)\" : null,\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t{widget.data.onlyText ||\n\t\t\t\t\t\t(!widget.data.onlyText && !widget.data.onlyIcon) ? (\n\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\tref={setContentRef}\n\t\t\t\t\t\t\t\tvariant=\"body2\"\n\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\toverflow: \"hidden\",\n\n\t\t\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\t\t\theight: \"100%\",\n\n\t\t\t\t\t\t\t\t\tp: 0.5,\n\n\t\t\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\t\t\tflexDirection: \"column\",\n\t\t\t\t\t\t\t\t\t/* justifyContent: widget.data.onlyText\n\t\t\t\t\t\t\t\t\t\t? \"center\"\n\t\t\t\t\t\t\t\t\t\t: \"flex-start\", */\n\t\t\t\t\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\t\t\t\t\talignItems: \"center\",\n\n\t\t\t\t\t\t\t\t\t...fontStyles,\n\t\t\t\t\t\t\t\t\t...textStyles,\n\t\t\t\t\t\t\t\t\tfontSize: data.valueSize,\n\t\t\t\t\t\t\t\t\tcolor: data.textColor,\n\t\t\t\t\t\t\t\t\ttextTransform: \"none\",\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t</ImageHtmlButton>\n\t\t\t\t</Box>\n\t\t\t</CollectionBase>\n\t\t</>\n\t);\n}\n\nexport default DialogCollection;\n","import React from \"react\";\nimport Generic from \"../Generic\";\nimport withCollectionProvider from \"../components/withCollectionProvider\";\nimport commonFields from \"../lib/commonFields\";\nimport dialogFields from \"../lib/dialogFields\";\nimport DialogCollection from \"./DialogCollection\";\n\nclass DialogCollectionWidget extends Generic {\n\tstatic getWidgetInfo() {\n\t\treturn {\n\t\t\tid: \"tplDialogCollectionWidget\",\n\t\t\tvisSet: \"vis-2-widgets-collection\", // Widget set name in which this widget is located\n\t\t\tvisSetLabel: \"widgets_collection\", // Widget set translated label (should be defined only in one widget of a set)\n\t\t\tvisName: \"DialogCollectionWidget\", // Name of widget\n\t\t\tvisWidgetLabel: \"dialog_collection_widget\", // Label for widget\n\t\t\tvisOrder: 2,\n\t\t\tvisAttrs: [\n\t\t\t\t{\n\t\t\t\t\tname: \"common\", // group name\n\t\t\t\t\tfields: [...commonFields({ groupName: \"\", allFields: true })],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"dialog\", // group name\n\t\t\t\t\tlabel: \"group_dialog\",\n\t\t\t\t\tfields: [...dialogFields()],\n\t\t\t\t},\n\t\t\t\t// check here all possible types https://github.com/ioBroker/ioBroker.vis/blob/react/src/src/Attributes/Widget/SCHEMA.md\n\t\t\t],\n\t\t\tvisDefaultStyle: {\n\t\t\t\twidth: \"100%\",\n\t\t\t\theight: \"100px\",\n\t\t\t\tposition: \"relative\",\n\t\t\t},\n\t\t\tvisPrev:\n\t\t\t\t\"widgets/vis-2-widgets-collection/img/prev-collection-dialog.png\",\n\t\t};\n\t}\n\n\t// Do not delete this method. It is used by vis to read the widget configuration.\n\t// eslint-disable-next-line class-methods-use-this\n\tgetWidgetInfo() {\n\t\treturn DialogCollectionWidget.getWidgetInfo();\n\t}\n\n\t// eslint-disable-next-line class-methods-use-this\n\tasync propertiesUpdate() {\n\t\t// The widget has 3 important states\n\t\t// 1. this.state.values - contains all state values, that are used in widget (automatically collected from widget info).\n\t\t// So you can use `this.state.values[this.state.rxData.oid + '.val']` to get the value of state with id this.state.rxData.oid\n\t\t// 2. this.state.rxData - contains all widget data with replaced bindings. E.g. if this.state.data.type is `{system.adapter.admin.0.alive}`,\n\t\t// then this.state.rxData.type will have state value of `system.adapter.admin.0.alive`\n\t\t// 3. this.state.rxStyle - contains all widget styles with replaced bindings. E.g. if this.state.styles.width is `{javascript.0.width}px`,\n\t\t// then this.state.rxData.type will have state value of `javascript.0.width` + 'px\n\n\t\t// console.log(\"inside propertiesUpdate\", this.state.values);\n\n\t\tconst actualRxData = JSON.stringify(this.state.rxData);\n\t\tif (this.lastRxData === actualRxData) {\n\t\t\treturn;\n\t\t}\n\t\tthis.lastRxData = actualRxData;\n\n\t\tawait this.createStateObjectAsync(\"oid\");\n\t}\n\n\t// This function is called every time when rxData is changed\n\tasync onRxDataChanged(payload) {\n\t\tawait this.propertiesUpdate();\n\t}\n\n\t// This function is called every time when rxStyle is changed\n\t// eslint-disable-next-line class-methods-use-this\n\tonRxStyleChanged() {}\n\n\t// This function is called every time when some Object State updated, but all changes lands into this.state.values too\n\t// eslint-disable-next-line class-methods-use-this, no-unused-vars\n\tonStateUpdated(id, state) {}\n\n\tasync componentDidMount() {\n\t\tsuper.componentDidMount();\n\t\t// Update data\n\t\tawait this.propertiesUpdate();\n\t}\n\n\trenderWidgetBody(props) {\n\t\tsuper.renderWidgetBody(props);\n\n\t\tconst collectionContext = {\n\t\t\tid: props.id,\n\t\t\trefService: props.refService,\n\t\t\tstyle: props.style,\n\t\t\twidget: {\n\t\t\t\t...props.widget,\n\t\t\t\tdata: this.state.rxData,\n\t\t\t\tstyle: this.state.rxStyle,\n\t\t\t},\n\t\t\tsetValue: this.setValue,\n\t\t\tsetState: this.setState.bind(this),\n\t\t\toidObject: this.state.oidObject,\n\t\t\tvalues: this.state.values,\n\t\t\tisSignalVisible: this.isSignalVisible.bind(this),\n\t\t\tgetPropertyValue: this.getPropertyValue.bind(this),\n\t\t\tmode: this.props.context.themeType,\n\t\t\tsocket: this.props.context.socket,\n\t\t\ttheme: this.props.context.theme,\n\t\t\tgetWidgetView: this.getWidgetView.bind(this),\n\n\t\t\twrappedContent: this.wrappedContent,\n\t\t};\n\n\t\tif (props.widget.data.noCard || props.widget.usedInWidget) {\n\t\t\tthis.wrappedContent = false;\n\t\t} else {\n\t\t\tthis.wrappedContent = true;\n\t\t}\n\n\t\treturn withCollectionProvider(\n\t\t\tthis.wrapContent(<DialogCollection />),\n\t\t\tcollectionContext,\n\t\t);\n\t}\n}\n\nexport default DialogCollectionWidget;\n","import { useEffect } from \"react\";\n\nconst useHtmlValue = (contentRef, oidValue, widget, data) => {\n\tconst oidValueUnit =\n\t\t(typeof oidValue === \"string\" ||\n\t\t\ttypeof oidValue === \"number\" ||\n\t\t\ttypeof oidValue === \"boolean\") &&\n\t\t`${oidValue}${widget.data.unit !== undefined ? widget.data.unit : \"\"}`;\n\n\tconst contentValue = data.alias || data.value || oidValueUnit;\n\n\tuseEffect(() => {\n\t\tif (contentValue === undefined || !contentRef) return;\n\t\tcontentRef.innerHTML = contentValue;\n\t}, [contentValue, contentRef]);\n};\n\nexport default useHtmlValue;\n","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');"],"names":["dialogFields","name","label","type","multiple","component","_jsx","CollectionDivider","min","max","step","tooltip","default","dividerText","hidden","ViewDialog","_ref","open","handleClose","widget","data","getWidgetView","closeButton","IconButton","sx","filter","color","theme","frameBackgroundColor","palette","background","primary","alignSelf","onClick","children","CloseIcon","Modal","onClose","display","justifyContent","alignItems","backgroundColor","dialogBackgroundColor","Box","width","concat","dialogWidth","height","dialogHeight","_jsxs","CollectionBase","flexDirection","dialogCloseButtonTop","Divider","opacity","alpha","position","overflow","view","style","dialogCloseButtonBottom","ImageHtmlButton","styled","ButtonBase","_oidObject$common","setOpen","useState","hideTimeout","useRef","contentRef","setContentRef","oidObject","setValue","useContext","CollectionContext","textStyles","fontStyles","useStyles","useData","useHtmlValue","oid","_id","isValidType","common","_Fragment","current","clearTimeout","handleClickOpen","timeout","dialogAutoClose","undefined","parseInt","setTimeout","iconColor","onlyIcon","onlyText","p","alt","src","icon","objectFit","top","iconYOffset","right","iconXOffset","iconSizeOnly","transform","Typography","ref","variant","_objectSpread","fontSize","valueSize","textColor","textTransform","DialogCollectionWidget","Generic","getWidgetInfo","id","visSet","visSetLabel","visName","visWidgetLabel","visOrder","visAttrs","fields","commonFields","groupName","allFields","visDefaultStyle","visPrev","propertiesUpdate","actualRxData","JSON","stringify","this","state","rxData","lastRxData","createStateObjectAsync","onRxDataChanged","payload","onRxStyleChanged","onStateUpdated","componentDidMount","super","renderWidgetBody","props","collectionContext","refService","rxStyle","setState","bind","values","isSignalVisible","getPropertyValue","mode","context","themeType","socket","wrappedContent","noCard","usedInWidget","withCollectionProvider","wrapContent","DialogCollection","oidValue","oidValueUnit","unit","contentValue","alias","value","useEffect","innerHTML","_interopRequireDefault","require","exports","_createSvgIcon","_jsxRuntime","jsx","d"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkiobroker_vis_widgets_react_collection=self.webpackChunkiobroker_vis_widgets_react_collection||[]).push([["src_GaugeCollectionWidget_GaugeCollectionWidget_jsx"],{2435:(e,a,l)=>{l.r(a),l.d(a,{default:()=>x});var t=l(7051),o=l(8437),u=l(6211),g=l(900),r=l(8679),n=l(375),d=l(4376),i=l(579);const c=()=>[{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_basic_options"})},{name:"gaugeType",label:"gauge_type",type:"select",options:[{value:"linear",label:"linear"},{value:"radial",label:"radial"}],default:"linear",noTranslation:!0},{name:"gaugeMinValue",type:"number",label:"gauge_min_value",default:0,step:1},{name:"gaugeMaxValue",type:"number",label:"gauge_max_value",default:100,step:1},{name:"gaugePadding",type:"number",label:"gauge_padding",default:8,step:1,min:0},{name:"gaugeIconFit",type:"select",label:"gauge_icon_fit",options:[{value:"contain",label:"contain"},{value:"cover",label:"cover"},{value:"fill",label:"fill"}],default:"contain",noTranslation:!0},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_linear_borders_options"}),hidden:e=>"linear"!==e.gaugeType},{name:"gaugeBorderRadius",type:"number",label:"gauge_border_radius",default:0,step:1,min:0,hidden:e=>"linear"!==e.gaugeType},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_linear_progress_bar_options"}),hidden:e=>"linear"!==e.gaugeType},{name:"gaugeBarBeginCircle",type:"number",label:"gauge_bar_begin_circle",default:30,step:1,min:0,hidden:e=>"linear"!==e.gaugeType},{name:"gaugeBarLength",type:"number",label:"gauge_bar_length",default:85,step:1,min:0,hidden:e=>"linear"!==e.gaugeType},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_linear_coloring_options"}),hidden:e=>"linear"!==e.gaugeType},{name:"gaugeColorBarEnd",type:"color",label:"gauge_color_bar_end",default:"",hidden:e=>"linear"!==e.gaugeType},{name:"gaugeColorBarProgressEnd",type:"color",label:"gauge_color_bar_progress_end",default:"",hidden:e=>"linear"!==e.gaugeType},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_linear_element_positioning_options"}),hidden:e=>"linear"!==e.gaugeType},{name:"gaugeTickSide",type:"select",label:"gauge_tick_side",options:[{value:"both",label:"both"},{value:"left",label:"left"},{value:"right",label:"right"}],default:"both",noTranslation:!0,hidden:e=>"linear"!==e.gaugeType},{name:"gaugeNeedleSide",type:"select",label:"gauge_needle_side",options:[{value:"both",label:"both"},{value:"left",label:"left"},{value:"right",label:"right"}],default:"both",noTranslation:!0,hidden:e=>"linear"!==e.gaugeType},{name:"gaugeNumberSide",type:"select",label:"gauge_number_side",options:[{value:"both",label:"both"},{value:"left",label:"left"},{value:"right",label:"right"}],default:"both",noTranslation:!0,hidden:e=>"linear"!==e.gaugeType},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_linear_ticks_bar_options"}),hidden:e=>"linear"!==e.gaugeType},{name:"gaugeTicksWidth",type:"number",label:"gauge_ticks_width",default:10,step:1,min:0,hidden:e=>"linear"!==e.gaugeType},{name:"gaugeTicksWidthMinor",type:"number",label:"gauge_ticks_width_minor",default:5,step:1,min:0,hidden:e=>"linear"!==e.gaugeType},{name:"gaugeTicksPadding",type:"number",label:"gauge_ticks_padding",default:5,step:1,min:0,hidden:e=>"linear"!==e.gaugeType},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_radial_ticks_bar_options"}),hidden:e=>"radial"!==e.gaugeType},{name:"gaugeTicksAngle",type:"number",label:"gauge_ticks_angle",default:270,step:1,min:0,max:360,hidden:e=>"radial"!==e.gaugeType},{name:"gaugeStartAngle",type:"number",label:"gauge_start_angle",default:45,step:1,min:0,max:360,hidden:e=>"radial"!==e.gaugeType},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_radial_coloring_options"}),hidden:e=>"radial"!==e.gaugeType},{name:"gaugeColorNeedleCircleOuter",type:"color",label:"gauge_color_needle_circle_outer",default:"#f0f0f0",hidden:e=>"radial"!==e.gaugeType},{name:"gaugeColorNeedleCircleOuterEnd",type:"color",label:"gauge_color_needle_circle_outer_end",default:"#ccc",hidden:e=>"radial"!==e.gaugeType},{name:"gaugeColorNeedleCircleInner",type:"color",label:"gauge_color_needle_circle_inner",default:"#e8e8e8",hidden:e=>"radial"!==e.gaugeType},{name:"gaugeColorNeedleCircleInnerEnd",type:"color",label:"gauge_color_needle_circle_inner_end",default:"#f5f5f5",hidden:e=>"radial"!==e.gaugeType},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_radial_needle_options"}),hidden:e=>"radial"!==e.gaugeType},{name:"gaugeNeedleCircleSize",type:"number",label:"gauge_needle_circle_size",default:10,step:1,min:0,hidden:e=>"radial"!==e.gaugeType},{name:"gaugeNeedleCircleInner",type:"checkbox",label:"gauge_needle_circle_inner",default:!0,hidden:e=>"radial"!==e.gaugeType},{name:"gaugeNeedleCircleOuter",type:"checkbox",label:"gauge_needle_circle_outer",default:!0,hidden:e=>"radial"!==e.gaugeType},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_radial_animation_options"}),hidden:e=>"radial"!==e.gaugeType},{name:"gaugeAnimationTarget",type:"select",label:"gauge_animation_target",options:[{value:"needle",label:"needle"},{value:"plate",label:"plate"}],default:"needle",noTranslation:!0,hidden:e=>"radial"!==e.gaugeType},{name:"gaugeUseMinPath",type:"checkbox",label:"gauge_use_min_path",default:!1,hidden:e=>"radial"!==e.gaugeType},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_ticks_bar_options"})},{name:"gaugeExactTicks",type:"checkbox",label:"gauge_exact_ticks",default:!1},{name:"gaugeMajorTicks",type:"number",label:"gauge_major_ticks",default:10,step:1},{name:"gaugeMinorTicks",type:"number",label:"gauge_minor_ticks",default:0,step:1},{name:"gaugeStrokeTicks",type:"checkbox",label:"gauge_stroke_ticks",default:!0},{name:"gaugeMajorTicksInt",type:"number",label:"gauge_major_ticks_int",default:1,step:1},{name:"gaugeMajorTicksDec",type:"number",label:"gauge_major_ticks_dec",default:0,step:1},{name:"gaugeHighlightsWidth",type:"number",label:"gauge_highlights_width",default:15,step:1},{name:"gaugeNumbersMargin",type:"number",label:"gauge_numbers_margin",default:1,step:1},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_progress_bar_options"})},{name:"gaugeBarWidth",type:"number",label:"gauge_bar_width",default:20,step:1,min:0,max:50},{name:"gaugeBarStrokeWidth",type:"number",label:"gauge_bar_stroke_width",default:0,step:1,min:0},{name:"gaugeBarProgress",type:"checkbox",label:"gauge_bar_progress",default:!0},{name:"gaugeBarShadow,",type:"number",label:"gauge_bar_shadow",default:0,step:1,min:0},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_animation_options"})},{name:"gaugeAnimation",type:"checkbox",label:"gauge_animation",default:!0},{name:"gaugeAnimationDuration",type:"number",label:"gauge_animation_duration",default:500,step:1,min:0},{name:"gaugeAnimationRule",type:"select",label:"gauge_animation_rule",options:[{value:"linear",label:"linear"},{value:"quad",label:"quad"},{value:"quint",label:"quint"},{value:"cycle",label:"cycle"},{value:"bounce",label:"bounce"},{value:"elastic",label:"elastic"},{value:"dequad",label:"dequad"},{value:"dequint",label:"dequint"},{value:"decycle",label:"decycle"},{value:"debounce",label:"debounce"},{value:"delastic",label:"delastic"}],default:"cycle",noTranslation:!0},{name:"gaugeAnimatedValue",type:"checkbox",label:"gauge_animated_value",default:!1},{name:"gaugeAnimateOnInit",type:"checkbox",label:"gauge_animate_on_init",default:!1},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_coloring_options"})},{name:"gaugeColorPlate",type:"color",label:"gauge_color_plate",default:"rgba(0,0,0,0)"},{name:"gaugeColorPlateEnd",type:"color",label:"gauge_color_plate_end",default:"rgba(0,0,0,0)"},{name:"gaugeColorMajorTicks",type:"color",label:"gauge_color_major_ticks",default:"#444"},{name:"gaugeColorMinorTicks",type:"color",label:"gauge_color_minor_ticks",default:"#666"},{name:"gaugeColorStrokeTicks",type:"color",label:"gauge_color_stroke_ticks",default:"#444"},{name:"gaugeColorTitle",type:"color",label:"gauge_color_title",default:"#888"},{name:"gaugeColorUnits",type:"color",label:"gauge_color_units",default:"#888"},{name:"gaugeColorNumbers",type:"color",label:"gauge_color_numbers",default:"#444"},{name:"gaugeColorNeedle",type:"color",label:"gauge_color_needle",default:"rgba(240,128,128,1)"},{name:"gaugeColorNeedleEnd",type:"color",label:"gauge_color_needle_end",default:"rgba(255,160,122,.9)"},{name:"gaugeColorValueText",type:"color",label:"gauge_color_value_text",default:"#444"},{name:"gaugeColorValueTextShadow",type:"color",label:"gauge_color_value_text_shadow",default:"rgba(0,0,0,0.3)"},{name:"gaugeColorBorderShadow",type:"color",label:"gauge_color_border_shadow",default:"rgba(0,0,0,0.5)"},{name:"gaugeColorBorderOuter",type:"color",label:"gauge_color_border_outer",default:"#ddd"},{name:"gaugeColorBorderOuterEnd",type:"color",label:"gauge_color_border_outer_end",default:"#aaa"},{name:"gaugeColorBorderMiddle",type:"color",label:"gauge_color_border_middle",default:"#eee"},{name:"gaugeColorBorderMiddleEnd",type:"color",label:"gauge_color_border_middle_end",default:"#f0f0f0"},{name:"gaugeColorBorderInner",type:"color",label:"gauge_color_border_inner",default:"#fafafa"},{name:"gaugeColorBorderInnerEnd",type:"color",label:"gauge_color_border_inner_end",default:"#ccc"},{name:"gaugeColorValueBoxRect",type:"color",label:"gauge_color_value_box_rect",default:"#888"},{name:"gaugeColorValueBoxRectEnd",type:"color",label:"gauge_color_value_box_rect_end",default:"#666"},{name:"gaugeColorValueBoxBackground",type:"color",label:"gauge_color_value_box_background",default:"#babab2"},{name:"gaugeColorValueBoxShadow",type:"color",label:"gauge_color_value_box_shadow",default:"rgba(0,0,0,1)"},{name:"gaugeColorNeedleShadowUp",type:"color",label:"gauge_color_needle_shadow_up",default:"rgba(2,255,255,0.2)"},{name:"gaugeColorNeedleShadowDown",type:"color",label:"gauge_color_needle_shadow_down",default:"rgba(188,143,143,0.45)"},{name:"gaugeColorBarStroke",type:"color",label:"gauge_color_bar_stroke",default:"#222"},{name:"gaugeColorBarProgress",type:"color",label:"gauge_color_bar_progress",default:"#ccc"},{name:"gaugeColorBarShadow",type:"color",label:"gauge_color_bar_shadow",default:"#000"},{name:"gaugeColorBarShadow",type:"color",label:"gauge_color_bar_shadow",default:"#000"},{name:"gaugeHighlightsLineCap",type:"select",label:"gauge_highlights_line_cap",options:[{value:"butt",label:"butt"},{value:"round",label:"round"},{value:"square",label:"square"}],default:"butt",noTranslation:!0},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_needle_configuration_options"})},{name:"gaugeNeedle",type:"checkbox",label:"gauge_needle",default:!0},{name:"gaugeNeedleShadow",type:"checkbox",label:"gauge_needle_shadow",default:!0},{name:"gaugeNeedleType",type:"select",label:"gauge_needle_type",options:[{value:"arrow",label:"arrow"},{value:"line",label:"line"}],default:"arrow",noTranslation:!0},{name:"gaugeNeedleStart",type:"number",label:"gauge_needle_start",default:5,step:1,min:0,max:100},{name:"gaugeNeedleEnd",type:"number",label:"gauge_needle_end",default:85,step:1,min:0,max:100},{name:"gaugeNeedleWidth",type:"number",label:"gauge_needle_width",default:4},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_borders_options"})},{name:"gaugeBorders",type:"checkbox",label:"gauge_borders",default:!0},{name:"gaugeBorderOuterWidth",type:"number",label:"gauge_border_outer_width",default:3,min:0},{name:"gaugeBorderMiddleWidth",type:"number",label:"gauge_border_middle_width",default:3,min:0},{name:"gaugeBorderInnerWidth",type:"number",label:"gauge_border_inner_width",default:3,min:0},{name:"gaugeBorderShadowWidth",type:"number",label:"gauge_border_shadow_width",default:3,min:0},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_value_box_options"})},{name:"gaugeValueBox",type:"checkbox",label:"gauge_value_box",default:!0},{name:"gaugeValueBoxStroke",type:"number",label:"gauge_value_box_stroke",default:5,step:1,min:0},{name:"gaugeValueBoxWidth",type:"number",label:"gauge_value_box_width",default:0,step:1,min:0},{name:"gaugeValueText",type:"text",label:"gauge_value_text",default:""},{name:"gaugeValueTextShadow",type:"checkbox",label:"gauge_value_text_shadow",default:!0},{name:"gaugeValueBoxBorderRadius",type:"number",label:"gauge_value_box_border_radius",default:2.5,step:.1,min:0},{name:"gaugeValueInt",type:"number",label:"gauge_value_int",default:3,step:1,min:0},{name:"gaugeValueDec",type:"number",label:"gauge_value_dec",default:2,step:1,min:0},{label:"",type:"custom",component:()=>(0,i.jsx)(d.A,{dividerText:"gauge_fonts_customization_options"})},{name:"gaugeFontNumbers",type:"fontname",label:"gauge_font_numbers",default:"Arial"},{name:"gaugeFontTitle",type:"fontname",label:"gauge_font_title",default:"Arial"},{name:"gaugeFontUnits",type:"fontname",label:"gauge_font_units",default:"Arial"},{name:"gaugeFontValue",type:"fontname",label:"gauge_font_value",default:"Arial"},{label:"",name:"allFieldsDivider",type:"custom",component:()=>(0,i.jsx)(d.A,{})},{name:"gaugeFontNumbersSize",type:"number",label:"gauge_font_numbers_size",default:20,step:1,min:0},{name:"gaugeFontTitleSize",type:"number",label:"gauge_font_title_size",default:24,step:1,min:0},{name:"gaugeFontUnitsSize",type:"number",label:"gauge_font_units_size",default:22,step:1,min:0},{name:"gaugeFontValueSize",type:"number",label:"gauge_font_value_size",default:26,step:1,min:0},{label:"",name:"allFieldsDivider",type:"custom",component:()=>(0,i.jsx)(d.A,{})},{name:"gaugeFontNumbersStyle",type:"select",label:"gauge_font_numbers_style",options:[{value:"normal",label:"normal"},{value:"italic",label:"italic"},{value:"oblique",label:"oblique"}],default:"normal",noTranslation:!0},{name:"gaugeFontTitleStyle",type:"select",label:"gauge_font_title_style",options:[{value:"normal",label:"normal"},{value:"italic",label:"italic"},{value:"oblique",label:"oblique"}],default:"normal",noTranslation:!0},{name:"gaugeFontUnitsStyle",type:"select",label:"gauge_font_units_style",options:[{value:"normal",label:"normal"},{value:"italic",label:"italic"},{value:"oblique",label:"oblique"}],default:"normal",noTranslation:!0},{name:"gaugeFontValueStyle",type:"select",label:"gauge_font_value_style",options:[{value:"normal",label:"normal"},{value:"italic",label:"italic"},{value:"oblique",label:"oblique"}],default:"normal",noTranslation:!0},{label:"",name:"allFieldsDivider",type:"custom",component:()=>(0,i.jsx)(d.A,{})},{name:"gaugeFontNumbersWeight",type:"select",label:"gauge_font_numbers_weight",options:[{value:"normal",label:"normal"},{value:"bold",label:"bold"},{value:"bolder",label:"bolder"},{value:"lighter",label:"lighter"},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],default:"normal",noTranslation:!0},{name:"gaugeFontTitleWeight",type:"select",label:"gauge_font_title_weight",options:[{value:"normal",label:"normal"},{value:"bold",label:"bold"},{value:"bolder",label:"bolder"},{value:"lighter",label:"lighter"},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],default:"normal",noTranslation:!0},{name:"gaugeFontUnitsWeight",type:"select",label:"gauge_font_units_weight",options:[{value:"normal",label:"normal"},{value:"bold",label:"bold"},{value:"bolder",label:"bolder"},{value:"lighter",label:"lighter"},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],default:"normal",noTranslation:!0},{name:"gaugeFontValueWeight",type:"select",label:"gauge_font_value_weight",options:[{value:"normal",label:"normal"},{value:"bold",label:"bold"},{value:"bolder",label:"bolder"},{value:"lighter",label:"lighter"},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],default:"normal",noTranslation:!0}];var s=l(7085),b=l(4657),m=l(6016),p=l(2152),_=l(5001),h=l(3342);const f=e=>{const a=(0,o.useRef)(null),l=(0,o.useRef)(null);(0,o.useEffect)((()=>{if(null===a.current||a.current.options.gaugeType!==e.gaugeType){const t=Object.assign({},e,{renderTo:l.current});switch(e.gaugeType){case"radial":null!==a.current&&a.current.destroy(),a.current=new h.RadialGauge(t).draw();break;case"linear":null!==a.current&&a.current.destroy(),a.current=new h.LinearGauge(t).draw()}}}),[e]),(0,o.useEffect)((()=>{null!==a.current&&e.width&&e.height&&e.width>30&&e.height>30&&(a.current.value=e.value,a.current.update(e))}),[e]);const t=Boolean(e.gaugeWidgetData.iconSize)||0===e.gaugeWidgetData.iconSize?"".concat(e.gaugeWidgetData.iconSize,"%"):null,u=e.gaugeSegment;return(0,i.jsxs)(s.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,i.jsx)("img",{alt:"",src:(null===u||void 0===u?void 0:u.state.icon)||e.gaugeData.icon||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",style:{position:"relative",width:Number(null===u||void 0===u?void 0:u.state.iconSize)?"".concat(u.state.iconSize,"%"):t||"50%",height:Number(null===u||void 0===u?void 0:u.state.iconSize)?"".concat(u.state.iconSize,"%"):t||"50%",boxSizing:"border-box",objectFit:e.gaugeWidgetData.gaugeIconFit,top:!!u&&"calc(0px - ".concat(u.state.iconYOffset,")")||"0px"!==e.gaugeWidgetData.iconYOffset&&"calc(0px - ".concat(e.gaugeWidgetData.iconYOffset,")")||"0px",left:!!u&&"calc(0px + ".concat(u.state.iconXOffset,")")||"0px"!==e.gaugeWidgetData.iconXOffset&&"calc(0px + ".concat(e.gaugeWidgetData.iconXOffset,")")||"0px",color:(null===u||void 0===u?void 0:u.state.iconColor)||e.gaugeData.iconColor,filter:((null===u||void 0===u?void 0:u.state.iconColor)||e.gaugeData.iconColor)&&"drop-shadow(0px 10000px 0)",transform:((null===u||void 0===u?void 0:u.state.iconColor)||e.gaugeData.iconColor)&&"translateY(-10000px)"}}),(0,i.jsx)("canvas",{id:"my-canvas",ref:l,style:{position:"absolute"}})]})};const y=function(){var e,a,l,t,u;const g=(0,o.useRef)(null),r=(0,o.useRef)(null),{wrappedContent:n,oidObject:d,widget:c}=(0,o.useContext)(m.C),{data:h,states:y}=(0,p.A)("oid"),v=(0,_.A)("oid"),x="number"===(null===d||void 0===d||null===(e=d.common)||void 0===e?void 0:e.type),T=(0,o.useMemo)((()=>{const e=Number(c.data.gaugeMinValue)||0,a=Number(c.data.gaugeMaxValue)||100,l=[];if(c.data.gaugeMajorTicks&&Number(c.data.gaugeMajorTicks>0))for(let t=0;t<=Number(c.data.gaugeMajorTicks);t++){const o=e+((a-e)/Number(c.data.gaugeMajorTicks)||1)*t;l.push(Math.round(100*o)/100)}return l}),[c.data.gaugeMinValue,c.data.gaugeMaxValue,c.data.gaugeMajorTicks]),k=(0,o.useMemo)((()=>{const e=[],a=Number(c.data.gaugeMaxValue)||100;return y.forEach(((l,t)=>{var o;const u=(null===(o=y[t+1])||void 0===o?void 0:o.value)||a;e.push({from:l.value,to:u,color:l.textColor||"transparent",state:l})})),y.length>0&&y[y.length-1].value<a&&(e[e.length-1].to=a),e}),[y,c.data.gaugeMaxValue]),C=((e,a,l)=>e.find((e=>void 0===e.from||void 0===e.to?null:a>=e.from&&(a<e.to||a===e.to&&a===l)))||null)(k,v,Number(c.data.gaugeMaxValue)?Number(c.data.gaugeMaxValue):100),B=null===(a=g.current)||void 0===a?void 0:a.paper0,S=null===(l=g.current)||void 0===l?void 0:l.paper1;return(0,o.useEffect)((()=>{B&&S&&(C?(B.style.borderColor=!n&&((null===C||void 0===C?void 0:C.state.frameBackgroundColorActive)||(null===C||void 0===C?void 0:C.state.frameBackgroundColor)||null),B.style.background=n?(null===C||void 0===C?void 0:C.state.frameBackgroundColorActive)||(null===C||void 0===C?void 0:C.state.frameBackgroundColor)||(null===C||void 0===C?void 0:C.state.frameBackgroundActive)||(null===C||void 0===C?void 0:C.state.frameBackground)||null:"transparent",S.style.borderColor=!n&&((null===C||void 0===C?void 0:C.state.backgroundColorActive)||(null===C||void 0===C?void 0:C.state.backgroundColor)||null),S.style.background=n?(null===C||void 0===C?void 0:C.state.backgroundColorActive)||(null===C||void 0===C?void 0:C.state.backgroundColor)||(null===C||void 0===C?void 0:C.state.backgroundActive)||(null===C||void 0===C?void 0:C.state.background)||null:"transparent"):(B.style.borderColor=!n&&((null===C||void 0===C?void 0:C.state.frameBackgroundColor)&&"".concat(null===C||void 0===C?void 0:C.state.frameBackgroundColor,"!important")||null),B.style.background=n&&(c.data.frameBackgroundColor||c.data.frameBackground||null),S.style.borderColor=!n&&((null===C||void 0===C?void 0:C.state.backgroundColor)&&"".concat(null===C||void 0===C?void 0:C.state.backgroundColor,"!important")||null),S.style.background=n&&(c.data.backgroundColor||c.data.background||null)))}),[B,S,n,C,c.data]),(0,i.jsx)(b.A,{ref:g,isValidType:x,data:h,oidValue:v,children:(0,i.jsx)(s.Box,{ref:r,sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,i.jsx)(f,{gaugeData:h,gaugeWidgetData:c.data,gaugeSegment:C,gaugeType:c.data.gaugeType,width:(null===(t=r.current)||void 0===t?void 0:t.clientWidth)-Number(c.data.gaugePadding),height:(null===(u=r.current)||void 0===u?void 0:u.clientHeight)-Number(c.data.gaugePadding),minValue:Number(c.data.gaugeMinValue)?Number(c.data.gaugeMinValue):0,maxValue:Number(c.data.gaugeMaxValue)?Number(c.data.gaugeMaxValue):100,value:v,units:c.data.unit,title:h.header,exactTicks:c.data.gaugeExactTicks,majorTicks:T,minorTicks:"number"===typeof c.data.gaugeMinorTicks?c.data.gaugeMinorTicks:Number(c.data.gaugeMinorTicks),strokeTicks:c.data.gaugeStrokeTicks,majorTicksInt:"number"===typeof c.data.gaugeMajorTicksInt?c.data.gaugeMajorTicksInt:Number(c.data.gaugeMajorTicksInt),majorTicksDec:"number"===typeof c.data.gaugeMajorTicksDec?c.data.gaugeMajorTicksDec:Number(c.data.gaugeMajorTicksDec),highlights:k,highlightsWidth:"number"===typeof c.data.gaugeHighlightsWidth?c.data.gaugeHighlightsWidth:Number(c.data.gaugeHighlightsWidth),numbersMargin:"number"===typeof c.data.gaugeNumbersMargin?c.data.gaugeNumbersMargin:Number(c.data.gaugeNumbersMargin),barWidth:"number"===typeof c.data.gaugeBarWidth&&c.data.gaugeBarWidth<=50?c.data.gaugeBarWidth:Number(c.data.gaugeBarWidth)<=50?Number(c.data.gaugeBarWidth):50,barStrokeWidth:"number"===typeof c.data.gaugeBarStrokeWidth?c.data.gaugeBarStrokeWidth:Number(c.data.gaugeBarStrokeWidth),barProgress:c.data.gaugeBarProgress,barShadow:"number"===typeof c.data.gaugeBarShadow?c.data.gaugeBarShadow:Number(c.data.gaugeBarShadow),animation:c.data.gaugeAnimation,animationDuration:"number"===typeof c.data.gaugeAnimationDuration?c.data.gaugeAnimationDuration:Number(c.data.gaugeAnimationDuration),animationRule:c.data.gaugeAnimationRule||"cycle",animatedValue:c.data.gaugeAnimatedValue,animateOnInit:c.data.gaugeAnimateOnInit,colorPlate:c.data.gaugeColorPlate||"rgba(0,0,0,0)",colorPlateEnd:c.data.gaugeColorPlateEnd||"rgba(0,0,0,0)",colorMajorTicks:c.data.gaugeColorMajorTicks||"#444",colorMinorTicks:c.data.gaugeColorMinorTicks||"#666",colorStrokeTicks:c.data.gaugeColorStrokeTicks||"#444",colorTitle:c.data.gaugeColorTitle||"#888",colorUnits:c.data.gaugeColorUnits||"#888",colorNumbers:c.data.gaugeColorNumbers||"#444",colorNeedle:c.data.gaugeColorNeedle||"rgba(240,128,128,1)",colorNeedleEnd:c.data.gaugeColorNeedleEnd||"rgba(255,160,122,.9)",colorValueText:c.data.gaugeColorValueText||"#444",colorValueTextShadow:c.data.gaugeColorValueTextShadow||"rgba(0,0,0,0.3)",colorBorderShadow:c.data.gaugeColorBorderShadow||"rgba(0,0,0,0.5)",colorBorderOuter:c.data.gaugeColorBorderOuter||"#ddd",colorBorderOuterEnd:c.data.gaugeColorBorderOuterEnd||"#aaa",colorBorderMiddle:c.data.gaugeColorBorderMiddle||"#eee",colorBorderMiddleEnd:c.data.gaugeColorBorderMiddleEnd||"#f0f0f0",colorBorderInner:c.data.gaugeColorBorderInner||"#fafafa",colorBorderInnerEnd:c.data.gaugeColorBorderInnerEnd||"#ccc",colorValueBoxRect:c.data.gaugeColorValueBoxRect||"#888",colorValueBoxRectEnd:c.data.gaugeColorValueBoxRectEnd||"#666",colorValueBoxBackground:c.data.gaugeColorValueBoxBackground||"#babab2",colorValueBoxShadow:c.data.gaugeColorValueBoxShadow||"rgba(0,0,0,1)",colorNeedleShadowUp:c.data.gaugeColorNeedleShadowUp||"rgba(2,255,255,0.2)",colorNeedleShadowDown:c.data.gaugeColorNeedleShadowDown||"rgba(188,143,143,0.45)",colorBarStroke:c.data.gaugeColorBarStroke||"#222",colorBarProgress:c.data.gaugeColorBarProgress||"#ccc",colorBarShadow:c.data.gaugeColorBarShadow||"#000",highlightsLineCap:c.data.gaugeHighlightsLineCap||"butt",needle:c.data.gaugeNeedle,needleShadow:c.data.gaugeNeedleShadow,needleType:c.data.gaugeNeedleType||"arrow",needleStart:"number"===typeof c.data.gaugeNeedleStart?c.data.gaugeNeedleStart:Number(c.data.gaugeNeedleStart),needleEnd:"number"===typeof c.data.gaugeNeedleEnd?c.data.gaugeNeedleEnd:Number(c.data.gaugeNeedleEnd),needleWidth:"number"===typeof c.data.gaugeNeedleWidth?c.data.gaugeNeedleWidth:Number(c.data.gaugeNeedleWidth),borders:c.data.gaugeBorders,borderOuterWidth:"number"===typeof c.data.gaugeBorderOuterWidth?c.data.gaugeBorderOuterWidth:Number(c.data.gaugeBorderOuterWidth),borderMiddleWidth:"number"===typeof c.data.gaugeBorderMiddleWidth?c.data.gaugeBorderMiddleWidth:Number(c.data.gaugeBorderMiddleWidth),borderInnerWidth:"number"===typeof c.data.gaugeBorderInnerWidth?c.data.gaugeBorderInnerWidth:Number(c.data.gaugeBorderInnerWidth),borderShadowWidth:"number"===typeof c.data.gaugeBorderShadowWidth?c.data.gaugeBorderShadowWidth:Number(c.data.gaugeBorderShadowWidth),valueBox:c.data.gaugeValueBox,valueBoxStroke:"number"===typeof c.data.gaugeValueBoxStroke?c.data.gaugeValueBoxStroke:Number(c.data.gaugeValueBoxStroke),valueBoxWidth:"number"===typeof c.data.gaugeValueBoxWidth?c.data.gaugeValueBoxWidth:Number(c.data.gaugeValueBoxWidth),valueText:c.data.gaugeValueText||"",valueTextShadow:c.data.gaugeValueTextShadow,valueBoxBorderRadius:"number"===typeof c.data.gaugeValueBoxBorderRadius?c.data.gaugeValueBoxBorderRadius:Number(c.data.gaugeValueBoxBorderRadius),valueInt:"number"===typeof c.data.gaugeValueInt?c.data.gaugeValueInt:Number(c.data.gaugeValueInt),valueDec:"number"===typeof c.data.gaugeValueDec?c.data.gaugeValueDec:Number(c.data.gaugeValueDec),fontNumbers:c.data.gaugeFontNumbers||"Arial",fontTitle:c.data.gaugeFontTitle||"Arial",fontUnits:c.data.gaugeFontUnits||"Arial",fontValue:c.data.gaugeFontValue||"Arial",fontNumbersSize:"number"===typeof c.data.gaugeFontNumbersSize?c.data.gaugeFontNumbersSize:Number(c.data.gaugeFontNumbersSize),fontTitleSize:"number"===typeof c.data.gaugeFontTitleSize?c.data.gaugeFontTitleSize:Number(c.data.gaugeFontTitleSize),fontUnitsSize:"number"===typeof c.data.gaugeFontUnitsSize?c.data.gaugeFontUnitsSize:Number(c.data.gaugeFontUnitsSize),fontValueSize:"number"===typeof c.data.gaugeFontValueSize?c.data.gaugeFontValueSize:Number(c.data.gaugeFontValueSize),fontNumbersStyle:c.data.gaugeFontNumbersStyle||"normal",fontTitleStyle:c.data.gaugeFontTitleStyle||"normal",fontUnitsStyle:c.data.gaugeFontUnitsStyle||"normal",fontValueStyle:c.data.gaugeFontValueStyle||"normal",fontNumbersWeight:c.data.gaugeFontNumbersWeight||"normal",fontTitleWeight:c.data.gaugeFontTitleWeight||"normal",fontUnitsWeight:c.data.gaugeFontUnitsWeight||"normal",fontValueWeight:c.data.gaugeFontValueWeight||"normal",borderRadius:"number"===typeof c.data.gaugeBorderRadius?c.data.gaugeBorderRadius:Number(c.data.gaugeBorderRadius),barBeginCircle:"number"===typeof c.data.gaugeBarBeginCircle&&c.data.gaugeBarBeginCircle<12?30:Number(c.data.gaugeBarBeginCircle),barLength:"number"===typeof c.data.gaugeBarLength?c.data.gaugeBarLength:Number(c.data.gaugeBarLength),colorBarEnd:c.data.gaugeColorBarEnd||"",colorBarProgressEnd:c.data.gaugeColorBarProgressEnd||"",tickSide:c.data.gaugeTickSide||"both",needleSide:c.data.gaugeNeedleSide||"both",numberSide:c.data.gaugeNumberSide||"both",ticksWidth:"number"===typeof c.data.gaugeTicksWidth?c.data.gaugeTicksWidth:Number(c.data.gaugeTicksWidth),ticksWidthMinor:"number"===typeof c.data.gaugeTicksWidthMinor?c.data.gaugeTicksWidthMinor:Number(c.data.gaugeTicksWidthMinor),ticksPadding:"number"===typeof c.data.gaugeTicksPadding?c.data.gaugeTicksPadding:Number(c.data.gaugeTicksPadding),ticksAngle:"number"===typeof c.data.gaugeTicksAngle?c.data.gaugeTicksAngle:Number(c.data.gaugeTicksAngle),startAngle:"number"===typeof c.data.gaugeStartAngle?c.data.gaugeStartAngle:Number(c.data.gaugeStartAngle),colorNeedleCircleOuter:c.data.gaugeColorNeedleCircleOuter||"#f0f0f0",colorNeedleCircleOuterEnd:c.data.gaugeColorNeedleCircleOuterEnd||"#ccc",colorNeedleCircleInner:c.data.gaugeColorNeedleCircleInner||"#e8e8e8",colorNeedleCircleInnerEnd:c.data.gaugeColorNeedleCircleInnerEnd||"#f5f5f5",colorNeedleCircleShadowUp:c.data.gaugeColorNeedleCircleShadowUp||"rgba(2,255,255,0.2)",needleCircleSize:"number"===typeof c.data.gaugeNeedleCircleSize?c.data.gaugeNeedleCircleSize:Number(c.data.gaugeNeedleCircleSize),needleCircleInner:c.data.gaugeNeedleCircleInner,needleCircleOuter:c.data.gaugeNeedleCircleOuter,animationTarget:c.data.gaugeAnimationTarget||"needle",useMinPath:c.data.gaugeUseMinPath})})})};class v extends u.A{static getWidgetInfo(){return{id:"tplGaugeCollectionWidget",visSet:"vis-2-widgets-collection",visSetLabel:"widgets_collection",visName:"GaugeCollectionWidget",visWidgetLabel:"gauge_collection_widget",visAttrs:[{name:"common",fields:[...(0,r.A)({groupName:"",allFields:!0})]},{name:"gauge",label:"group_gauge",fields:[...(0,n.A)(["boolean"]),...c()]},{name:"values",label:"values",indexFrom:1,indexTo:"values_count",fields:[...(0,r.A)({groupName:"",allFields:!1})]}],visDefaultStyle:{width:"100%",height:"100px",position:"relative"},visPrev:"widgets/vis-2-widgets-collection/img/prev-collection-gauge.png"}}getWidgetInfo(){return v.getWidgetInfo()}async propertiesUpdate(){const e=JSON.stringify(this.state.rxData);this.lastRxData!==e&&(this.lastRxData=e,await this.createStateObjectAsync("oid"))}async onRxDataChanged(e){await this.propertiesUpdate()}onRxStyleChanged(){}onStateUpdated(e,a){}async componentDidMount(){super.componentDidMount(),await this.propertiesUpdate()}renderWidgetBody(e){super.renderWidgetBody(e);const a={id:e.id,refService:e.refService,style:e.style,widget:(0,t.A)((0,t.A)({},e.widget),{},{data:this.state.rxData,style:this.state.rxStyle}),setValue:this.setValue,setState:this.setState.bind(this),oidObject:this.state.oidObject,values:this.state.values,isSignalVisible:this.isSignalVisible.bind(this),getPropertyValue:this.getPropertyValue.bind(this),mode:this.props.context.themeType,socket:this.props.context.socket,theme:this.props.context.theme,wrappedContent:this.wrappedContent};return e.widget.data.noCard||e.widget.usedInWidget?this.wrappedContent=!1:this.wrappedContent=!0,(0,g.A)(this.wrapContent((0,i.jsx)(y,{})),a)}}const x=v}}]);
2
- //# sourceMappingURL=src_GaugeCollectionWidget_GaugeCollectionWidget_jsx.70b9e47e.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/src_GaugeCollectionWidget_GaugeCollectionWidget_jsx.70b9e47e.chunk.js","mappings":"8TAEA,MAghCA,EAhhCqBA,IAAM,CAC1B,CACCC,MAAO,GACPC,KAAM,SACNC,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,CAACC,YAAY,yBAEjD,CACCC,KAAM,YACNN,MAAO,aACPC,KAAM,SACNM,QAAS,CACR,CAAEC,MAAO,SAAUR,MAAO,UAC1B,CAAEQ,MAAO,SAAUR,MAAO,WAE3BS,QAAS,SACTC,eAAe,GAEhB,CACCJ,KAAM,gBACNL,KAAM,SACND,MAAO,kBACPS,QAAS,EACTE,KAAM,GAEP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,CACCC,KAAM,kBACNL,KAAM,QACND,MAAO,oBACPS,QAAS,iBAEV,CACCH,KAAM,qBACNL,KAAM,QACND,MAAO,wBACPS,QAAS,iBAEV,CACCH,KAAM,uBACNL,KAAM,QACND,MAAO,0BACPS,QAAS,QAEV,CACCH,KAAM,uBACNL,KAAM,QACND,MAAO,0BACPS,QAAS,QAEV,CACCH,KAAM,wBACNL,KAAM,QACND,MAAO,2BACPS,QAAS,QAEV,CACCH,KAAM,kBACNL,KAAM,QACND,MAAO,oBACPS,QAAS,QAEV,CACCH,KAAM,kBACNL,KAAM,QACND,MAAO,oBACPS,QAAS,QAEV,CACCH,KAAM,oBACNL,KAAM,QACND,MAAO,sBACPS,QAAS,QAEV,CACCH,KAAM,mBACNL,KAAM,QACND,MAAO,qBACPS,QAAS,uBAEV,CACCH,KAAM,sBACNL,KAAM,QACND,MAAO,yBACPS,QAAS,wBAEV,CACCH,KAAM,sBACNL,KAAM,QACND,MAAO,yBACPS,QAAS,QAEV,CACCH,KAAM,4BACNL,KAAM,QACND,MAAO,gCACPS,QAAS,mBAEV,CACCH,KAAM,yBACNL,KAAM,QACND,MAAO,4BACPS,QAAS,mBAEV,CACCH,KAAM,wBACNL,KAAM,QACND,MAAO,2BACPS,QAAS,QAEV,CACCH,KAAM,2BACNL,KAAM,QACND,MAAO,+BACPS,QAAS,QAEV,CACCH,KAAM,yBACNL,KAAM,QACND,MAAO,4BACPS,QAAS,QAEV,CACCH,KAAM,4BACNL,KAAM,QACND,MAAO,gCACPS,QAAS,WAEV,CACCH,KAAM,wBACNL,KAAM,QACND,MAAO,2BACPS,QAAS,WAEV,CACCH,KAAM,2BACNL,KAAM,QACND,MAAO,+BACPS,QAAS,QAEV,CACCH,KAAM,yBACNL,KAAM,QACND,MAAO,6BACPS,QAAS,QAEV,CACCH,KAAM,4BACNL,KAAM,QACND,MAAO,iCACPS,QAAS,QAEV,CACCH,KAAM,+BACNL,KAAM,QACND,MAAO,mCACPS,QAAS,WAEV,CACCH,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AAA,CAAe5S,EAAIjB,GAAQ,CAE3B,uBAAM8T,GACLC,MAAMD,0BAEAR,KAAKJ,kBACZ,CAEAc,gBAAAA,CAAiB/V,GAChB8V,MAAMC,iBAAiB/V,GAEvB,MAAMgW,EAAoB,CACzBhT,GAAIhD,EAAMgD,GACViT,WAAYjW,EAAMiW,WAClB/T,MAAOlC,EAAMkC,MACbwB,QAAMwS,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACFlW,EAAM0D,QAAM,IACf7D,KAAMwV,KAAKtT,MAAMuT,OACjBpT,MAAOmT,KAAKtT,MAAMoU,UAEnBC,SAAUf,KAAKe,SACfC,SAAUhB,KAAKgB,SAASC,KAAKjB,MAC7B5R,UAAW4R,KAAKtT,MAAM0B,UACtB8S,OAAQlB,KAAKtT,MAAMwU,OACnBC,gBAAiBnB,KAAKmB,gBAAgBF,KAAKjB,MAC3CoB,iBAAkBpB,KAAKoB,iBAAiBH,KAAKjB,MAC7CqB,KAAMrB,KAAKrV,MAAM2W,QAAQC,UACzBC,OAAQxB,KAAKrV,MAAM2W,QAAQE,OAC3BC,MAAOzB,KAAKrV,MAAM2W,QAAQG,MAE1BtT,eAAgB6R,KAAK7R,gBAStB,OANIxD,EAAM0D,OAAO7D,KAAKkX,QAAU/W,EAAM0D,OAAOsT,aAC5C3B,KAAK7R,gBAAiB,EAEtB6R,KAAK7R,gBAAiB,GAGhByT,EAAAA,EAAAA,GACN5B,KAAK6B,aAAYhY,EAAAA,EAAAA,KAACiY,EAAe,KACjCnB,EAEF,EAGD,S","sources":["lib/gaugeFields.jsx","GaugeCollectionWidget/Gauge.jsx","GaugeCollectionWidget/GaugeCollection.jsx","GaugeCollectionWidget/GaugeCollectionWidget.jsx"],"sourcesContent":["import CollectionDivider from \"../components/CollectionDivider\";\n\nconst dialogFields = () => [\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider dividerText=\"gauge_basic_options\" />,\n\t},\n\t{\n\t\tname: \"gaugeType\",\n\t\tlabel: \"gauge_type\",\n\t\ttype: \"select\",\n\t\toptions: [\n\t\t\t{ value: \"linear\", label: \"linear\" },\n\t\t\t{ value: \"radial\", label: \"radial\" },\n\t\t],\n\t\tdefault: \"linear\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tname: \"gaugeMinValue\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_min_value\",\n\t\tdefault: 0,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"gaugeMaxValue\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_max_value\",\n\t\tdefault: 100,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"gaugePadding\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_padding\",\n\t\tdefault: 8,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeIconFit\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_icon_fit\",\n\t\toptions: [\n\t\t\t{ value: \"contain\", label: \"contain\" },\n\t\t\t{ value: \"cover\", label: \"cover\" },\n\t\t\t{ value: \"fill\", label: \"fill\" },\n\t\t],\n\t\tdefault: \"contain\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_linear_borders_options\" />\n\t\t),\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tname: \"gaugeBorderRadius\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_border_radius\",\n\t\tdefault: 0,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_linear_progress_bar_options\" />\n\t\t),\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tname: \"gaugeBarBeginCircle\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_bar_begin_circle\",\n\t\tdefault: 30,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tname: \"gaugeBarLength\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_bar_length\",\n\t\tdefault: 85,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_linear_coloring_options\" />\n\t\t),\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tname: \"gaugeColorBarEnd\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_bar_end\",\n\t\tdefault: \"\",\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tname: \"gaugeColorBarProgressEnd\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_bar_progress_end\",\n\t\tdefault: \"\",\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_linear_element_positioning_options\" />\n\t\t),\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tname: \"gaugeTickSide\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_tick_side\",\n\t\toptions: [\n\t\t\t{ value: \"both\", label: \"both\" },\n\t\t\t{ value: \"left\", label: \"left\" },\n\t\t\t{ value: \"right\", label: \"right\" },\n\t\t],\n\t\tdefault: \"both\",\n\t\tnoTranslation: true,\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tname: \"gaugeNeedleSide\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_needle_side\",\n\t\toptions: [\n\t\t\t{ value: \"both\", label: \"both\" },\n\t\t\t{ value: \"left\", label: \"left\" },\n\t\t\t{ value: \"right\", label: \"right\" },\n\t\t],\n\t\tdefault: \"both\",\n\t\tnoTranslation: true,\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tname: \"gaugeNumberSide\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_number_side\",\n\t\toptions: [\n\t\t\t{ value: \"both\", label: \"both\" },\n\t\t\t{ value: \"left\", label: \"left\" },\n\t\t\t{ value: \"right\", label: \"right\" },\n\t\t],\n\t\tdefault: \"both\",\n\t\tnoTranslation: true,\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_linear_ticks_bar_options\" />\n\t\t),\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tname: \"gaugeTicksWidth\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_ticks_width\",\n\t\tdefault: 10,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tname: \"gaugeTicksWidthMinor\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_ticks_width_minor\",\n\t\tdefault: 5,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tname: \"gaugeTicksPadding\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_ticks_padding\",\n\t\tdefault: 5,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\thidden: (data) => data.gaugeType !== \"linear\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_radial_ticks_bar_options\" />\n\t\t),\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tname: \"gaugeTicksAngle\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_ticks_angle\",\n\t\tdefault: 270,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\tmax: 360,\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tname: \"gaugeStartAngle\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_start_angle\",\n\t\tdefault: 45,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\tmax: 360,\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_radial_coloring_options\" />\n\t\t),\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tname: \"gaugeColorNeedleCircleOuter\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_needle_circle_outer\",\n\t\tdefault: \"#f0f0f0\",\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tname: \"gaugeColorNeedleCircleOuterEnd\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_needle_circle_outer_end\",\n\t\tdefault: \"#ccc\",\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tname: \"gaugeColorNeedleCircleInner\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_needle_circle_inner\",\n\t\tdefault: \"#e8e8e8\",\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tname: \"gaugeColorNeedleCircleInnerEnd\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_needle_circle_inner_end\",\n\t\tdefault: \"#f5f5f5\",\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_radial_needle_options\" />\n\t\t),\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tname: \"gaugeNeedleCircleSize\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_needle_circle_size\",\n\t\tdefault: 10,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tname: \"gaugeNeedleCircleInner\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_needle_circle_inner\",\n\t\tdefault: true,\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tname: \"gaugeNeedleCircleOuter\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_needle_circle_outer\",\n\t\tdefault: true,\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_radial_animation_options\" />\n\t\t),\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tname: \"gaugeAnimationTarget\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_animation_target\",\n\t\toptions: [\n\t\t\t{ value: \"needle\", label: \"needle\" },\n\t\t\t{ value: \"plate\", label: \"plate\" },\n\t\t],\n\t\tdefault: \"needle\",\n\t\tnoTranslation: true,\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tname: \"gaugeUseMinPath\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_use_min_path\",\n\t\tdefault: false,\n\t\thidden: (data) => data.gaugeType !== \"radial\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_ticks_bar_options\" />\n\t\t),\n\t},\n\t{\n\t\tname: \"gaugeExactTicks\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_exact_ticks\",\n\t\tdefault: false,\n\t},\n\t{\n\t\tname: \"gaugeMajorTicks\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_major_ticks\",\n\t\tdefault: 10,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"gaugeMinorTicks\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_minor_ticks\",\n\t\tdefault: 0,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"gaugeStrokeTicks\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_stroke_ticks\",\n\t\tdefault: true,\n\t},\n\t{\n\t\tname: \"gaugeMajorTicksInt\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_major_ticks_int\",\n\t\tdefault: 1,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"gaugeMajorTicksDec\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_major_ticks_dec\",\n\t\tdefault: 0,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"gaugeHighlightsWidth\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_highlights_width\",\n\t\tdefault: 15,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"gaugeNumbersMargin\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_numbers_margin\",\n\t\tdefault: 1,\n\t\tstep: 1,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_progress_bar_options\" />\n\t\t),\n\t},\n\t{\n\t\tname: \"gaugeBarWidth\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_bar_width\",\n\t\tdefault: 20,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\tmax: 50,\n\t},\n\t{\n\t\tname: \"gaugeBarStrokeWidth\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_bar_stroke_width\",\n\t\tdefault: 0,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeBarProgress\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_bar_progress\",\n\t\tdefault: true,\n\t},\n\t{\n\t\tname: \"gaugeBarShadow,\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_bar_shadow\",\n\t\tdefault: 0,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_animation_options\" />\n\t\t),\n\t},\n\t{\n\t\tname: \"gaugeAnimation\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_animation\",\n\t\tdefault: true,\n\t},\n\t{\n\t\tname: \"gaugeAnimationDuration\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_animation_duration\",\n\t\tdefault: 500,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeAnimationRule\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_animation_rule\",\n\t\toptions: [\n\t\t\t{ value: \"linear\", label: \"linear\" },\n\t\t\t{ value: \"quad\", label: \"quad\" },\n\t\t\t{ value: \"quint\", label: \"quint\" },\n\t\t\t{ value: \"cycle\", label: \"cycle\" },\n\t\t\t{ value: \"bounce\", label: \"bounce\" },\n\t\t\t{ value: \"elastic\", label: \"elastic\" },\n\t\t\t{ value: \"dequad\", label: \"dequad\" },\n\t\t\t{ value: \"dequint\", label: \"dequint\" },\n\t\t\t{ value: \"decycle\", label: \"decycle\" },\n\t\t\t{ value: \"debounce\", label: \"debounce\" },\n\t\t\t{ value: \"delastic\", label: \"delastic\" },\n\t\t],\n\t\tdefault: \"cycle\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tname: \"gaugeAnimatedValue\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_animated_value\",\n\t\tdefault: false,\n\t},\n\t{\n\t\tname: \"gaugeAnimateOnInit\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_animate_on_init\",\n\t\tdefault: false,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider dividerText=\"gauge_coloring_options\" />,\n\t},\n\t{\n\t\tname: \"gaugeColorPlate\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_plate\",\n\t\tdefault: \"rgba(0,0,0,0)\",\n\t},\n\t{\n\t\tname: \"gaugeColorPlateEnd\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_plate_end\",\n\t\tdefault: \"rgba(0,0,0,0)\",\n\t},\n\t{\n\t\tname: \"gaugeColorMajorTicks\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_major_ticks\",\n\t\tdefault: \"#444\",\n\t},\n\t{\n\t\tname: \"gaugeColorMinorTicks\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_minor_ticks\",\n\t\tdefault: \"#666\",\n\t},\n\t{\n\t\tname: \"gaugeColorStrokeTicks\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_stroke_ticks\",\n\t\tdefault: \"#444\",\n\t},\n\t{\n\t\tname: \"gaugeColorTitle\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_title\",\n\t\tdefault: \"#888\",\n\t},\n\t{\n\t\tname: \"gaugeColorUnits\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_units\",\n\t\tdefault: \"#888\",\n\t},\n\t{\n\t\tname: \"gaugeColorNumbers\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_numbers\",\n\t\tdefault: \"#444\",\n\t},\n\t{\n\t\tname: \"gaugeColorNeedle\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_needle\",\n\t\tdefault: \"rgba(240,128,128,1)\",\n\t},\n\t{\n\t\tname: \"gaugeColorNeedleEnd\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_needle_end\",\n\t\tdefault: \"rgba(255,160,122,.9)\",\n\t},\n\t{\n\t\tname: \"gaugeColorValueText\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_value_text\",\n\t\tdefault: \"#444\",\n\t},\n\t{\n\t\tname: \"gaugeColorValueTextShadow\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_value_text_shadow\",\n\t\tdefault: \"rgba(0,0,0,0.3)\",\n\t},\n\t{\n\t\tname: \"gaugeColorBorderShadow\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_border_shadow\",\n\t\tdefault: \"rgba(0,0,0,0.5)\",\n\t},\n\t{\n\t\tname: \"gaugeColorBorderOuter\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_border_outer\",\n\t\tdefault: \"#ddd\",\n\t},\n\t{\n\t\tname: \"gaugeColorBorderOuterEnd\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_border_outer_end\",\n\t\tdefault: \"#aaa\",\n\t},\n\t{\n\t\tname: \"gaugeColorBorderMiddle\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_border_middle\",\n\t\tdefault: \"#eee\",\n\t},\n\t{\n\t\tname: \"gaugeColorBorderMiddleEnd\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_border_middle_end\",\n\t\tdefault: \"#f0f0f0\",\n\t},\n\t{\n\t\tname: \"gaugeColorBorderInner\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_border_inner\",\n\t\tdefault: \"#fafafa\",\n\t},\n\t{\n\t\tname: \"gaugeColorBorderInnerEnd\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_border_inner_end\",\n\t\tdefault: \"#ccc\",\n\t},\n\t{\n\t\tname: \"gaugeColorValueBoxRect\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_value_box_rect\",\n\t\tdefault: \"#888\",\n\t},\n\t{\n\t\tname: \"gaugeColorValueBoxRectEnd\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_value_box_rect_end\",\n\t\tdefault: \"#666\",\n\t},\n\t{\n\t\tname: \"gaugeColorValueBoxBackground\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_value_box_background\",\n\t\tdefault: \"#babab2\",\n\t},\n\t{\n\t\tname: \"gaugeColorValueBoxShadow\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_value_box_shadow\",\n\t\tdefault: \"rgba(0,0,0,1)\",\n\t},\n\t{\n\t\tname: \"gaugeColorNeedleShadowUp\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_needle_shadow_up\",\n\t\tdefault: \"rgba(2,255,255,0.2)\",\n\t},\n\t{\n\t\tname: \"gaugeColorNeedleShadowDown\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_needle_shadow_down\",\n\t\tdefault: \"rgba(188,143,143,0.45)\",\n\t},\n\t{\n\t\tname: \"gaugeColorBarStroke\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_bar_stroke\",\n\t\tdefault: \"#222\",\n\t},\n\t{\n\t\tname: \"gaugeColorBarProgress\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_bar_progress\",\n\t\tdefault: \"#ccc\",\n\t},\n\t{\n\t\tname: \"gaugeColorBarShadow\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_bar_shadow\",\n\t\tdefault: \"#000\",\n\t},\n\t{\n\t\tname: \"gaugeColorBarShadow\",\n\t\ttype: \"color\",\n\t\tlabel: \"gauge_color_bar_shadow\",\n\t\tdefault: \"#000\",\n\t},\n\t{\n\t\tname: \"gaugeHighlightsLineCap\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_highlights_line_cap\",\n\t\toptions: [\n\t\t\t{ value: \"butt\", label: \"butt\" },\n\t\t\t{ value: \"round\", label: \"round\" },\n\t\t\t{ value: \"square\", label: \"square\" },\n\t\t],\n\t\tdefault: \"butt\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_needle_configuration_options\" />\n\t\t),\n\t},\n\t{\n\t\tname: \"gaugeNeedle\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_needle\",\n\t\tdefault: true,\n\t},\n\t{\n\t\tname: \"gaugeNeedleShadow\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_needle_shadow\",\n\t\tdefault: true,\n\t},\n\t{\n\t\tname: \"gaugeNeedleType\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_needle_type\",\n\t\toptions: [\n\t\t\t{ value: \"arrow\", label: \"arrow\" },\n\t\t\t{ value: \"line\", label: \"line\" },\n\t\t],\n\t\tdefault: \"arrow\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tname: \"gaugeNeedleStart\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_needle_start\",\n\t\tdefault: 5,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\tmax: 100,\n\t},\n\t{\n\t\tname: \"gaugeNeedleEnd\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_needle_end\",\n\t\tdefault: 85,\n\t\tstep: 1,\n\t\tmin: 0,\n\t\tmax: 100,\n\t},\n\t{\n\t\tname: \"gaugeNeedleWidth\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_needle_width\",\n\t\tdefault: 4,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider dividerText=\"gauge_borders_options\" />,\n\t},\n\t{\n\t\tname: \"gaugeBorders\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_borders\",\n\t\tdefault: true,\n\t},\n\t{\n\t\tname: \"gaugeBorderOuterWidth\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_border_outer_width\",\n\t\tdefault: 3,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeBorderMiddleWidth\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_border_middle_width\",\n\t\tdefault: 3,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeBorderInnerWidth\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_border_inner_width\",\n\t\tdefault: 3,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeBorderShadowWidth\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_border_shadow_width\",\n\t\tdefault: 3,\n\t\tmin: 0,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_value_box_options\" />\n\t\t),\n\t},\n\t{\n\t\tname: \"gaugeValueBox\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_value_box\",\n\t\tdefault: true,\n\t},\n\t{\n\t\tname: \"gaugeValueBoxStroke\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_value_box_stroke\",\n\t\tdefault: 5,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeValueBoxWidth\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_value_box_width\",\n\t\tdefault: 0,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeValueText\",\n\t\ttype: \"text\",\n\t\tlabel: \"gauge_value_text\",\n\t\tdefault: \"\",\n\t},\n\t{\n\t\tname: \"gaugeValueTextShadow\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"gauge_value_text_shadow\",\n\t\tdefault: true,\n\t},\n\t{\n\t\tname: \"gaugeValueBoxBorderRadius\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_value_box_border_radius\",\n\t\tdefault: 2.5,\n\t\tstep: 0.1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeValueInt\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_value_int\",\n\t\tdefault: 3,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeValueDec\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_value_dec\",\n\t\tdefault: 2,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => (\n\t\t\t<CollectionDivider dividerText=\"gauge_fonts_customization_options\" />\n\t\t),\n\t},\n\t{\n\t\tname: \"gaugeFontNumbers\",\n\t\ttype: \"fontname\",\n\t\tlabel: \"gauge_font_numbers\",\n\t\tdefault: \"Arial\",\n\t},\n\t{\n\t\tname: \"gaugeFontTitle\",\n\t\ttype: \"fontname\",\n\t\tlabel: \"gauge_font_title\",\n\t\tdefault: \"Arial\",\n\t},\n\t{\n\t\tname: \"gaugeFontUnits\",\n\t\ttype: \"fontname\",\n\t\tlabel: \"gauge_font_units\",\n\t\tdefault: \"Arial\",\n\t},\n\t{\n\t\tname: \"gaugeFontValue\",\n\t\ttype: \"fontname\",\n\t\tlabel: \"gauge_font_value\",\n\t\tdefault: \"Arial\",\n\t},\n\t{\n\t\tlabel: \"\",\n\t\tname: \"allFieldsDivider\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"gaugeFontNumbersSize\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_font_numbers_size\",\n\t\tdefault: 20,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeFontTitleSize\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_font_title_size\",\n\t\tdefault: 24,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeFontUnitsSize\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_font_units_size\",\n\t\tdefault: 22,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tname: \"gaugeFontValueSize\",\n\t\ttype: \"number\",\n\t\tlabel: \"gauge_font_value_size\",\n\t\tdefault: 26,\n\t\tstep: 1,\n\t\tmin: 0,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\tname: \"allFieldsDivider\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"gaugeFontNumbersStyle\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_font_numbers_style\",\n\t\toptions: [\n\t\t\t{ value: \"normal\", label: \"normal\" },\n\t\t\t{ value: \"italic\", label: \"italic\" },\n\t\t\t{ value: \"oblique\", label: \"oblique\" },\n\t\t],\n\t\tdefault: \"normal\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tname: \"gaugeFontTitleStyle\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_font_title_style\",\n\t\toptions: [\n\t\t\t{ value: \"normal\", label: \"normal\" },\n\t\t\t{ value: \"italic\", label: \"italic\" },\n\t\t\t{ value: \"oblique\", label: \"oblique\" },\n\t\t],\n\t\tdefault: \"normal\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tname: \"gaugeFontUnitsStyle\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_font_units_style\",\n\t\toptions: [\n\t\t\t{ value: \"normal\", label: \"normal\" },\n\t\t\t{ value: \"italic\", label: \"italic\" },\n\t\t\t{ value: \"oblique\", label: \"oblique\" },\n\t\t],\n\t\tdefault: \"normal\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tname: \"gaugeFontValueStyle\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_font_value_style\",\n\t\toptions: [\n\t\t\t{ value: \"normal\", label: \"normal\" },\n\t\t\t{ value: \"italic\", label: \"italic\" },\n\t\t\t{ value: \"oblique\", label: \"oblique\" },\n\t\t],\n\t\tdefault: \"normal\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tlabel: \"\",\n\t\tname: \"allFieldsDivider\",\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"gaugeFontNumbersWeight\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_font_numbers_weight\",\n\t\toptions: [\n\t\t\t{ value: \"normal\", label: \"normal\" },\n\t\t\t{ value: \"bold\", label: \"bold\" },\n\t\t\t{ value: \"bolder\", label: \"bolder\" },\n\t\t\t{ value: \"lighter\", label: \"lighter\" },\n\t\t\t{ value: \"100\", label: \"100\" },\n\t\t\t{ value: \"200\", label: \"200\" },\n\t\t\t{ value: \"300\", label: \"300\" },\n\t\t\t{ value: \"400\", label: \"400\" },\n\t\t\t{ value: \"500\", label: \"500\" },\n\t\t\t{ value: \"600\", label: \"600\" },\n\t\t\t{ value: \"700\", label: \"700\" },\n\t\t\t{ value: \"800\", label: \"800\" },\n\t\t\t{ value: \"900\", label: \"900\" },\n\t\t],\n\t\tdefault: \"normal\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tname: \"gaugeFontTitleWeight\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_font_title_weight\",\n\t\toptions: [\n\t\t\t{ value: \"normal\", label: \"normal\" },\n\t\t\t{ value: \"bold\", label: \"bold\" },\n\t\t\t{ value: \"bolder\", label: \"bolder\" },\n\t\t\t{ value: \"lighter\", label: \"lighter\" },\n\t\t\t{ value: \"100\", label: \"100\" },\n\t\t\t{ value: \"200\", label: \"200\" },\n\t\t\t{ value: \"300\", label: \"300\" },\n\t\t\t{ value: \"400\", label: \"400\" },\n\t\t\t{ value: \"500\", label: \"500\" },\n\t\t\t{ value: \"600\", label: \"600\" },\n\t\t\t{ value: \"700\", label: \"700\" },\n\t\t\t{ value: \"800\", label: \"800\" },\n\t\t\t{ value: \"900\", label: \"900\" },\n\t\t],\n\t\tdefault: \"normal\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tname: \"gaugeFontUnitsWeight\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_font_units_weight\",\n\t\toptions: [\n\t\t\t{ value: \"normal\", label: \"normal\" },\n\t\t\t{ value: \"bold\", label: \"bold\" },\n\t\t\t{ value: \"bolder\", label: \"bolder\" },\n\t\t\t{ value: \"lighter\", label: \"lighter\" },\n\t\t\t{ value: \"100\", label: \"100\" },\n\t\t\t{ value: \"200\", label: \"200\" },\n\t\t\t{ value: \"300\", label: \"300\" },\n\t\t\t{ value: \"400\", label: \"400\" },\n\t\t\t{ value: \"500\", label: \"500\" },\n\t\t\t{ value: \"600\", label: \"600\" },\n\t\t\t{ value: \"700\", label: \"700\" },\n\t\t\t{ value: \"800\", label: \"800\" },\n\t\t\t{ value: \"900\", label: \"900\" },\n\t\t],\n\t\tdefault: \"normal\",\n\t\tnoTranslation: true,\n\t},\n\t{\n\t\tname: \"gaugeFontValueWeight\",\n\t\ttype: \"select\",\n\t\tlabel: \"gauge_font_value_weight\",\n\t\toptions: [\n\t\t\t{ value: \"normal\", label: \"normal\" },\n\t\t\t{ value: \"bold\", label: \"bold\" },\n\t\t\t{ value: \"bolder\", label: \"bolder\" },\n\t\t\t{ value: \"lighter\", label: \"lighter\" },\n\t\t\t{ value: \"100\", label: \"100\" },\n\t\t\t{ value: \"200\", label: \"200\" },\n\t\t\t{ value: \"300\", label: \"300\" },\n\t\t\t{ value: \"400\", label: \"400\" },\n\t\t\t{ value: \"500\", label: \"500\" },\n\t\t\t{ value: \"600\", label: \"600\" },\n\t\t\t{ value: \"700\", label: \"700\" },\n\t\t\t{ value: \"800\", label: \"800\" },\n\t\t\t{ value: \"900\", label: \"900\" },\n\t\t],\n\t\tdefault: \"normal\",\n\t\tnoTranslation: true,\n\t},\n];\n\nexport default dialogFields;\n","import { Box } from \"@mui/material\";\nimport React, { useRef, useEffect } from \"react\";\n\nimport { LinearGauge, RadialGauge } from \"canvas-gauges\";\n\nconst TransparentImg =\n\t\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\";\n\nconst Gauge = (props) => {\n\tconst gaugeRef = useRef(null);\n\tconst canvasRef = useRef(null);\n\n\tuseEffect(() => {\n\t\tif (\n\t\t\tgaugeRef.current === null ||\n\t\t\tgaugeRef.current.options.gaugeType !== props.gaugeType\n\t\t) {\n\t\t\tconst options = Object.assign({}, props, {\n\t\t\t\trenderTo: canvasRef.current,\n\t\t\t});\n\n\t\t\tswitch (props.gaugeType) {\n\t\t\t\tcase \"radial\":\n\t\t\t\t\tif (gaugeRef.current !== null) gaugeRef.current.destroy();\n\t\t\t\t\tgaugeRef.current = new RadialGauge(options).draw();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"linear\":\n\t\t\t\t\tif (gaugeRef.current !== null) gaugeRef.current.destroy();\n\t\t\t\t\tgaugeRef.current = new LinearGauge(options).draw();\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}, [props]);\n\n\tuseEffect(() => {\n\t\tif (gaugeRef.current !== null && props.width && props.height) {\n\t\t\tif (props.width > 30 && props.height > 30) {\n\t\t\t\tgaugeRef.current.value = props.value;\n\t\t\t\tgaugeRef.current.update(props);\n\t\t\t}\n\t\t}\n\t}, [props]);\n\n\tconst iconSize =\n\t\tBoolean(props.gaugeWidgetData.iconSize) ||\n\t\tprops.gaugeWidgetData.iconSize === 0\n\t\t\t? `${props.gaugeWidgetData.iconSize}%`\n\t\t\t: null;\n\n\tconst segment = props.gaugeSegment;\n\treturn (\n\t\t<Box\n\t\t\tsx={{\n\t\t\t\twidth: \"100%\",\n\t\t\t\theight: \"100%\",\n\n\t\t\t\tdisplay: \"flex\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\talignItems: \"center\",\n\t\t\t}}\n\t\t>\n\t\t\t<img\n\t\t\t\talt=\"\"\n\t\t\t\tsrc={segment?.state.icon || props.gaugeData.icon || TransparentImg}\n\t\t\t\tstyle={{\n\t\t\t\t\tposition: \"relative\",\n\n\t\t\t\t\twidth: Number(segment?.state.iconSize)\n\t\t\t\t\t\t? `${segment.state.iconSize}%`\n\t\t\t\t\t\t: iconSize || \"50%\",\n\t\t\t\t\theight: Number(segment?.state.iconSize)\n\t\t\t\t\t\t? `${segment.state.iconSize}%`\n\t\t\t\t\t\t: iconSize || \"50%\",\n\n\t\t\t\t\tboxSizing: \"border-box\",\n\t\t\t\t\tobjectFit: props.gaugeWidgetData.gaugeIconFit,\n\t\t\t\t\ttop:\n\t\t\t\t\t\t(!!segment && `calc(0px - ${segment.state.iconYOffset})`) ||\n\t\t\t\t\t\t(props.gaugeWidgetData.iconYOffset !== \"0px\" &&\n\t\t\t\t\t\t\t`calc(0px - ${props.gaugeWidgetData.iconYOffset})`) ||\n\t\t\t\t\t\t\"0px\",\n\t\t\t\t\tleft:\n\t\t\t\t\t\t(!!segment && `calc(0px + ${segment.state.iconXOffset})`) ||\n\t\t\t\t\t\t(props.gaugeWidgetData.iconXOffset !== \"0px\" &&\n\t\t\t\t\t\t\t`calc(0px + ${props.gaugeWidgetData.iconXOffset})`) ||\n\t\t\t\t\t\t\"0px\",\n\n\t\t\t\t\tcolor: segment?.state.iconColor || props.gaugeData.iconColor,\n\t\t\t\t\tfilter:\n\t\t\t\t\t\t(segment?.state.iconColor || props.gaugeData.iconColor) &&\n\t\t\t\t\t\t\"drop-shadow(0px 10000px 0)\",\n\t\t\t\t\ttransform:\n\t\t\t\t\t\t(segment?.state.iconColor || props.gaugeData.iconColor) &&\n\t\t\t\t\t\t\"translateY(-10000px)\",\n\t\t\t\t}}\n\t\t\t/>\n\t\t\t<canvas\n\t\t\t\tid=\"my-canvas\"\n\t\t\t\tref={canvasRef}\n\t\t\t\tstyle={{\n\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t}}\n\t\t\t/>\n\t\t</Box>\n\t);\n};\n\nexport default Gauge;\n","import { Box } from \"@mui/material\";\nimport React, { useContext, useMemo, useRef, useEffect } from \"react\";\nimport CollectionBase from \"../components/CollectionBase\";\nimport { CollectionContext } from \"../components/CollectionProvider\";\nimport useData from \"../hooks/useData\";\nimport useOidValue from \"../hooks/useOidValue\";\nimport Gauge from \"./Gauge\";\n\nconst findSegment = (highlights, value, maxValue) => {\n\tconst segment = highlights.find((highlight) => {\n\t\tif (highlight.from === undefined || highlight.to === undefined) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t/* value >= highlight.from &&\n\t\t\t(value < highlight.to ||\n\t\t\t\t(value === highlight.to && value === maxValue)) &&\n\t\t\thighlight.icon */\n\t\t\tvalue >= highlight.from &&\n\t\t\t(value < highlight.to || (value === highlight.to && value === maxValue))\n\t\t);\n\t});\n\treturn segment || null;\n};\n\nfunction GaugeCollection() {\n\tconst baseRef = useRef(null);\n\tconst gaugeRef = useRef(null);\n\tconst { wrappedContent, oidObject, widget } = useContext(CollectionContext);\n\n\tconst { data, states } = useData(\"oid\");\n\tconst oidValue = useOidValue(\"oid\");\n\n\tconst oidType = oidObject?.common?.type;\n\n\tconst isValidType = oidType === \"number\";\n\n\tconst majorTicks = useMemo(() => {\n\t\tconst minValue = Number(widget.data.gaugeMinValue) || 0;\n\t\tconst maxValue = Number(widget.data.gaugeMaxValue) || 100;\n\n\t\tconst _majorTicks = [];\n\n\t\tif (\n\t\t\twidget.data.gaugeMajorTicks &&\n\t\t\tNumber(widget.data.gaugeMajorTicks > 0)\n\t\t) {\n\t\t\tfor (let i = 0; i <= Number(widget.data.gaugeMajorTicks); i++) {\n\t\t\t\tconst value =\n\t\t\t\t\tminValue +\n\t\t\t\t\t((maxValue - minValue) / Number(widget.data.gaugeMajorTicks) || 1) *\n\t\t\t\t\t\ti;\n\t\t\t\t// zwei Nachkommastellen\n\t\t\t\t_majorTicks.push(Math.round(value * 100) / 100);\n\t\t\t}\n\t\t}\n\n\t\treturn _majorTicks;\n\t}, [\n\t\twidget.data.gaugeMinValue,\n\t\twidget.data.gaugeMaxValue,\n\t\twidget.data.gaugeMajorTicks,\n\t]);\n\n\tconst highlights = useMemo(() => {\n\t\tconst _highlights = [];\n\t\tconst maxValue = Number(widget.data.gaugeMaxValue) || 100;\n\n\t\tstates.forEach((state, index) => {\n\t\t\tconst nextValue = states[index + 1]?.value || maxValue;\n\n\t\t\t_highlights.push({\n\t\t\t\tfrom: state.value,\n\t\t\t\tto: nextValue,\n\t\t\t\tcolor: state.textColor || \"transparent\",\n\t\t\t\tstate,\n\t\t\t});\n\t\t});\n\n\t\t// Set the last highlight to maxValue if the last state value is less than maxValue\n\t\tif (states.length > 0 && states[states.length - 1].value < maxValue) {\n\t\t\t_highlights[_highlights.length - 1].to = maxValue;\n\t\t}\n\n\t\treturn _highlights;\n\t}, [states, widget.data.gaugeMaxValue]);\n\n\tconst segment = findSegment(\n\t\thighlights,\n\t\toidValue,\n\t\tNumber(widget.data.gaugeMaxValue) ? Number(widget.data.gaugeMaxValue) : 100,\n\t);\n\n\tconst paper0 = baseRef.current?.paper0;\n\tconst paper1 = baseRef.current?.paper1;\n\n\tuseEffect(() => {\n\t\tif (paper0 && paper1) {\n\t\t\tif (segment) {\n\t\t\t\tpaper0.style.borderColor =\n\t\t\t\t\t!wrappedContent &&\n\t\t\t\t\t(segment?.state.frameBackgroundColorActive ||\n\t\t\t\t\t\tsegment?.state.frameBackgroundColor ||\n\t\t\t\t\t\tnull);\n\n\t\t\t\tpaper0.style.background = wrappedContent\n\t\t\t\t\t? segment?.state.frameBackgroundColorActive ||\n\t\t\t\t\t\tsegment?.state.frameBackgroundColor ||\n\t\t\t\t\t\tsegment?.state.frameBackgroundActive ||\n\t\t\t\t\t\tsegment?.state.frameBackground ||\n\t\t\t\t\t\tnull\n\t\t\t\t\t: \"transparent\";\n\t\t\t\t// ----------------------------------------------------------\n\t\t\t\tpaper1.style.borderColor =\n\t\t\t\t\t!wrappedContent &&\n\t\t\t\t\t(segment?.state.backgroundColorActive ||\n\t\t\t\t\t\tsegment?.state.backgroundColor ||\n\t\t\t\t\t\tnull);\n\n\t\t\t\tpaper1.style.background = wrappedContent\n\t\t\t\t\t? segment?.state.backgroundColorActive ||\n\t\t\t\t\t\tsegment?.state.backgroundColor ||\n\t\t\t\t\t\tsegment?.state.backgroundActive ||\n\t\t\t\t\t\tsegment?.state.background ||\n\t\t\t\t\t\tnull\n\t\t\t\t\t: \"transparent\";\n\t\t\t} else {\n\t\t\t\tpaper0.style.borderColor =\n\t\t\t\t\t!wrappedContent &&\n\t\t\t\t\t((segment?.state.frameBackgroundColor &&\n\t\t\t\t\t\t`${segment?.state.frameBackgroundColor}!important`) ||\n\t\t\t\t\t\tnull);\n\n\t\t\t\tpaper0.style.background =\n\t\t\t\t\twrappedContent &&\n\t\t\t\t\t(widget.data.frameBackgroundColor ||\n\t\t\t\t\t\twidget.data.frameBackground ||\n\t\t\t\t\t\tnull);\n\t\t\t\t// ----------------------------------------------------------\n\t\t\t\tpaper1.style.borderColor =\n\t\t\t\t\t!wrappedContent &&\n\t\t\t\t\t((segment?.state.backgroundColor &&\n\t\t\t\t\t\t`${segment?.state.backgroundColor}!important`) ||\n\t\t\t\t\t\tnull);\n\n\t\t\t\tpaper1.style.background =\n\t\t\t\t\twrappedContent &&\n\t\t\t\t\t(widget.data.backgroundColor || widget.data.background || null);\n\t\t\t}\n\t\t}\n\t}, [paper0, paper1, wrappedContent, segment, widget.data]);\n\n\treturn (\n\t\t<CollectionBase\n\t\t\tref={baseRef}\n\t\t\tisValidType={isValidType}\n\t\t\tdata={data}\n\t\t\toidValue={oidValue}\n\t\t>\n\t\t\t{/* {data.icon && (\n\t\t\t\t<img\n\t\t\t\t\talt=\"\"\n\t\t\t\t\tsrc={data.icon}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t\t\ttop: `calc(0px + ${widget.data.iconYOffset})`,\n\t\t\t\t\t\tright: `calc(0px + ${widget.data.iconXOffset})`,\n\t\t\t\t\t\twidth: data.iconSize,\n\t\t\t\t\t\theight: data.iconSize,\n\t\t\t\t\t\tcolor: data.iconColor,\n\t\t\t\t\t\tfilter: data.iconColor ? \"drop-shadow(0px 10000px 0)\" : null,\n\t\t\t\t\t\ttransform: data.iconColor ? \"translateY(-10000px)\" : null,\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t)} */}\n\n\t\t\t<Box\n\t\t\t\tref={gaugeRef}\n\t\t\t\tsx={{\n\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\theight: \"100%\",\n\n\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\talignItems: \"center\",\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Gauge\n\t\t\t\t\tgaugeData={data}\n\t\t\t\t\tgaugeWidgetData={widget.data}\n\t\t\t\t\tgaugeSegment={segment}\n\t\t\t\t\tgaugeType={widget.data.gaugeType}\n\t\t\t\t\t// Basic Options\n\t\t\t\t\twidth={\n\t\t\t\t\t\tgaugeRef.current?.clientWidth - Number(widget.data.gaugePadding)\n\t\t\t\t\t}\n\t\t\t\t\theight={\n\t\t\t\t\t\tgaugeRef.current?.clientHeight - Number(widget.data.gaugePadding)\n\t\t\t\t\t}\n\t\t\t\t\tminValue={\n\t\t\t\t\t\tNumber(widget.data.gaugeMinValue)\n\t\t\t\t\t\t\t? Number(widget.data.gaugeMinValue)\n\t\t\t\t\t\t\t: 0\n\t\t\t\t\t}\n\t\t\t\t\tmaxValue={\n\t\t\t\t\t\tNumber(widget.data.gaugeMaxValue)\n\t\t\t\t\t\t\t? Number(widget.data.gaugeMaxValue)\n\t\t\t\t\t\t\t: 100\n\t\t\t\t\t}\n\t\t\t\t\tvalue={oidValue}\n\t\t\t\t\tunits={widget.data.unit}\n\t\t\t\t\ttitle={data.header}\n\t\t\t\t\t// Ticks Bar Options\n\t\t\t\t\texactTicks={widget.data.gaugeExactTicks} // boolean\n\t\t\t\t\tmajorTicks={majorTicks}\n\t\t\t\t\tminorTicks={\n\t\t\t\t\t\ttypeof widget.data.gaugeMinorTicks === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeMinorTicks\n\t\t\t\t\t\t\t: Number(widget.data.gaugeMinorTicks)\n\t\t\t\t\t}\n\t\t\t\t\tstrokeTicks={widget.data.gaugeStrokeTicks} // boolean\n\t\t\t\t\t// majorTicksInt={widget.data.gaugeMajorTicksInt || 1}\n\t\t\t\t\tmajorTicksInt={\n\t\t\t\t\t\ttypeof widget.data.gaugeMajorTicksInt === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeMajorTicksInt\n\t\t\t\t\t\t\t: Number(widget.data.gaugeMajorTicksInt)\n\t\t\t\t\t}\n\t\t\t\t\t// majorTicksDec={widget.data.gaugeMajorTicksDec || 0}\n\t\t\t\t\tmajorTicksDec={\n\t\t\t\t\t\ttypeof widget.data.gaugeMajorTicksDec === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeMajorTicksDec\n\t\t\t\t\t\t\t: Number(widget.data.gaugeMajorTicksDec)\n\t\t\t\t\t}\n\t\t\t\t\thighlights={highlights}\n\t\t\t\t\t// highlightsWidth={widget.data.gaugeHighlightsWidth || 15}\n\t\t\t\t\thighlightsWidth={\n\t\t\t\t\t\ttypeof widget.data.gaugeHighlightsWidth === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeHighlightsWidth\n\t\t\t\t\t\t\t: Number(widget.data.gaugeHighlightsWidth)\n\t\t\t\t\t}\n\t\t\t\t\t// numbersMargin={widget.data.gaugeNumbersMargin || 1}\n\t\t\t\t\tnumbersMargin={\n\t\t\t\t\t\ttypeof widget.data.gaugeNumbersMargin === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeNumbersMargin\n\t\t\t\t\t\t\t: Number(widget.data.gaugeNumbersMargin)\n\t\t\t\t\t}\n\t\t\t\t\t// Progress Bar Options\n\t\t\t\t\tbarWidth={\n\t\t\t\t\t\ttypeof widget.data.gaugeBarWidth === \"number\" &&\n\t\t\t\t\t\twidget.data.gaugeBarWidth <= 50\n\t\t\t\t\t\t\t? widget.data.gaugeBarWidth\n\t\t\t\t\t\t\t: Number(widget.data.gaugeBarWidth) <= 50\n\t\t\t\t\t\t\t\t? Number(widget.data.gaugeBarWidth)\n\t\t\t\t\t\t\t\t: 50\n\t\t\t\t\t}\n\t\t\t\t\t// barStrokeWidth={widget.data.gaugeBarStrokeWidth || 0}\n\t\t\t\t\tbarStrokeWidth={\n\t\t\t\t\t\ttypeof widget.data.gaugeBarStrokeWidth === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeBarStrokeWidth\n\t\t\t\t\t\t\t: Number(widget.data.gaugeBarStrokeWidth)\n\t\t\t\t\t}\n\t\t\t\t\tbarProgress={widget.data.gaugeBarProgress} // boolean\n\t\t\t\t\t// barShadow={widget.data.gaugeBarShadow || 0}\n\t\t\t\t\tbarShadow={\n\t\t\t\t\t\ttypeof widget.data.gaugeBarShadow === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeBarShadow\n\t\t\t\t\t\t\t: Number(widget.data.gaugeBarShadow)\n\t\t\t\t\t}\n\t\t\t\t\t// Animation Options\n\t\t\t\t\tanimation={widget.data.gaugeAnimation} // boolean\n\t\t\t\t\t// animationDuration={widget.data.gaugeAnimationDuration || 500}\n\t\t\t\t\tanimationDuration={\n\t\t\t\t\t\ttypeof widget.data.gaugeAnimationDuration === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeAnimationDuration\n\t\t\t\t\t\t\t: Number(widget.data.gaugeAnimationDuration)\n\t\t\t\t\t}\n\t\t\t\t\tanimationRule={widget.data.gaugeAnimationRule || \"cycle\"}\n\t\t\t\t\tanimatedValue={widget.data.gaugeAnimatedValue} // boolean\n\t\t\t\t\tanimateOnInit={widget.data.gaugeAnimateOnInit} // boolean\n\t\t\t\t\t// Color Options\n\t\t\t\t\tcolorPlate={widget.data.gaugeColorPlate || \"rgba(0,0,0,0)\"}\n\t\t\t\t\tcolorPlateEnd={widget.data.gaugeColorPlateEnd || \"rgba(0,0,0,0)\"}\n\t\t\t\t\tcolorMajorTicks={widget.data.gaugeColorMajorTicks || \"#444\"}\n\t\t\t\t\tcolorMinorTicks={widget.data.gaugeColorMinorTicks || \"#666\"}\n\t\t\t\t\tcolorStrokeTicks={widget.data.gaugeColorStrokeTicks || \"#444\"}\n\t\t\t\t\tcolorTitle={widget.data.gaugeColorTitle || \"#888\"}\n\t\t\t\t\tcolorUnits={widget.data.gaugeColorUnits || \"#888\"}\n\t\t\t\t\tcolorNumbers={widget.data.gaugeColorNumbers || \"#444\"}\n\t\t\t\t\tcolorNeedle={widget.data.gaugeColorNeedle || \"rgba(240,128,128,1)\"}\n\t\t\t\t\tcolorNeedleEnd={\n\t\t\t\t\t\twidget.data.gaugeColorNeedleEnd || \"rgba(255,160,122,.9)\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorValueText={widget.data.gaugeColorValueText || \"#444\"}\n\t\t\t\t\tcolorValueTextShadow={\n\t\t\t\t\t\twidget.data.gaugeColorValueTextShadow || \"rgba(0,0,0,0.3)\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorBorderShadow={\n\t\t\t\t\t\twidget.data.gaugeColorBorderShadow || \"rgba(0,0,0,0.5)\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorBorderOuter={widget.data.gaugeColorBorderOuter || \"#ddd\"}\n\t\t\t\t\tcolorBorderOuterEnd={widget.data.gaugeColorBorderOuterEnd || \"#aaa\"}\n\t\t\t\t\tcolorBorderMiddle={widget.data.gaugeColorBorderMiddle || \"#eee\"}\n\t\t\t\t\tcolorBorderMiddleEnd={\n\t\t\t\t\t\twidget.data.gaugeColorBorderMiddleEnd || \"#f0f0f0\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorBorderInner={widget.data.gaugeColorBorderInner || \"#fafafa\"}\n\t\t\t\t\tcolorBorderInnerEnd={widget.data.gaugeColorBorderInnerEnd || \"#ccc\"}\n\t\t\t\t\tcolorValueBoxRect={widget.data.gaugeColorValueBoxRect || \"#888\"}\n\t\t\t\t\tcolorValueBoxRectEnd={widget.data.gaugeColorValueBoxRectEnd || \"#666\"}\n\t\t\t\t\tcolorValueBoxBackground={\n\t\t\t\t\t\twidget.data.gaugeColorValueBoxBackground || \"#babab2\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorValueBoxShadow={\n\t\t\t\t\t\twidget.data.gaugeColorValueBoxShadow || \"rgba(0,0,0,1)\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorNeedleShadowUp={\n\t\t\t\t\t\twidget.data.gaugeColorNeedleShadowUp || \"rgba(2,255,255,0.2)\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorNeedleShadowDown={\n\t\t\t\t\t\twidget.data.gaugeColorNeedleShadowDown || \"rgba(188,143,143,0.45)\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorBarStroke={widget.data.gaugeColorBarStroke || \"#222\"}\n\t\t\t\t\tcolorBarProgress={widget.data.gaugeColorBarProgress || \"#ccc\"}\n\t\t\t\t\tcolorBarShadow={widget.data.gaugeColorBarShadow || \"#000\"}\n\t\t\t\t\thighlightsLineCap={widget.data.gaugeHighlightsLineCap || \"butt\"}\n\t\t\t\t\t// Needle Configuration Options\n\t\t\t\t\tneedle={widget.data.gaugeNeedle} // boolean\n\t\t\t\t\tneedleShadow={widget.data.gaugeNeedleShadow} // boolean\n\t\t\t\t\tneedleType={widget.data.gaugeNeedleType || \"arrow\"}\n\t\t\t\t\t// needleStart={widget.data.gaugeNeedleStart || 5}\n\t\t\t\t\tneedleStart={\n\t\t\t\t\t\ttypeof widget.data.gaugeNeedleStart === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeNeedleStart\n\t\t\t\t\t\t\t: Number(widget.data.gaugeNeedleStart)\n\t\t\t\t\t}\n\t\t\t\t\t// needleEnd={widget.data.gaugeNeedleEnd || 85}\n\t\t\t\t\tneedleEnd={\n\t\t\t\t\t\ttypeof widget.data.gaugeNeedleEnd === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeNeedleEnd\n\t\t\t\t\t\t\t: Number(widget.data.gaugeNeedleEnd)\n\t\t\t\t\t}\n\t\t\t\t\t// needleWidth={widget.data.gaugeNeedleWidth || 4}\n\t\t\t\t\tneedleWidth={\n\t\t\t\t\t\ttypeof widget.data.gaugeNeedleWidth === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeNeedleWidth\n\t\t\t\t\t\t\t: Number(widget.data.gaugeNeedleWidth)\n\t\t\t\t\t}\n\t\t\t\t\t// Borders Options\n\t\t\t\t\tborders={widget.data.gaugeBorders} // boolean\n\t\t\t\t\t// borderOuterWidth={widget.data.gaugeBorderOuterWidth || 3}\n\t\t\t\t\tborderOuterWidth={\n\t\t\t\t\t\ttypeof widget.data.gaugeBorderOuterWidth === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeBorderOuterWidth\n\t\t\t\t\t\t\t: Number(widget.data.gaugeBorderOuterWidth)\n\t\t\t\t\t}\n\t\t\t\t\t// borderMiddleWidth={widget.data.gaugeBorderMiddleWidth || 3}\n\t\t\t\t\tborderMiddleWidth={\n\t\t\t\t\t\ttypeof widget.data.gaugeBorderMiddleWidth === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeBorderMiddleWidth\n\t\t\t\t\t\t\t: Number(widget.data.gaugeBorderMiddleWidth)\n\t\t\t\t\t}\n\t\t\t\t\t// borderInnerWidth={widget.data.gaugeBorderInnerWidth || 3}\n\t\t\t\t\tborderInnerWidth={\n\t\t\t\t\t\ttypeof widget.data.gaugeBorderInnerWidth === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeBorderInnerWidth\n\t\t\t\t\t\t\t: Number(widget.data.gaugeBorderInnerWidth)\n\t\t\t\t\t}\n\t\t\t\t\t// borderShadowWidth={widget.data.gaugeBorderShadowWidth || 3}\n\t\t\t\t\tborderShadowWidth={\n\t\t\t\t\t\ttypeof widget.data.gaugeBorderShadowWidth === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeBorderShadowWidth\n\t\t\t\t\t\t\t: Number(widget.data.gaugeBorderShadowWidth)\n\t\t\t\t\t}\n\t\t\t\t\t// Value Box Options\n\t\t\t\t\tvalueBox={widget.data.gaugeValueBox} // boolean\n\t\t\t\t\t// valueBoxStroke={widget.data.gaugeValueBoxStroke || 5}\n\t\t\t\t\tvalueBoxStroke={\n\t\t\t\t\t\ttypeof widget.data.gaugeValueBoxStroke === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeValueBoxStroke\n\t\t\t\t\t\t\t: Number(widget.data.gaugeValueBoxStroke)\n\t\t\t\t\t}\n\t\t\t\t\t// valueBoxWidth={widget.data.gaugeValueBoxWidth || 0}\n\t\t\t\t\tvalueBoxWidth={\n\t\t\t\t\t\ttypeof widget.data.gaugeValueBoxWidth === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeValueBoxWidth\n\t\t\t\t\t\t\t: Number(widget.data.gaugeValueBoxWidth)\n\t\t\t\t\t}\n\t\t\t\t\tvalueText={widget.data.gaugeValueText || \"\"}\n\t\t\t\t\tvalueTextShadow={widget.data.gaugeValueTextShadow} // boolean\n\t\t\t\t\t// valueBoxBorderRadius={widget.data.gaugeValueBoxBorderRadius || 2.5}\n\t\t\t\t\tvalueBoxBorderRadius={\n\t\t\t\t\t\ttypeof widget.data.gaugeValueBoxBorderRadius === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeValueBoxBorderRadius\n\t\t\t\t\t\t\t: Number(widget.data.gaugeValueBoxBorderRadius)\n\t\t\t\t\t}\n\t\t\t\t\tvalueInt={\n\t\t\t\t\t\ttypeof widget.data.gaugeValueInt === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeValueInt\n\t\t\t\t\t\t\t: Number(widget.data.gaugeValueInt)\n\t\t\t\t\t}\n\t\t\t\t\tvalueDec={\n\t\t\t\t\t\ttypeof widget.data.gaugeValueDec === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeValueDec\n\t\t\t\t\t\t\t: Number(widget.data.gaugeValueDec)\n\t\t\t\t\t}\n\t\t\t\t\t// Fonts Customization Options\n\t\t\t\t\tfontNumbers={widget.data.gaugeFontNumbers || \"Arial\"}\n\t\t\t\t\tfontTitle={widget.data.gaugeFontTitle || \"Arial\"}\n\t\t\t\t\tfontUnits={widget.data.gaugeFontUnits || \"Arial\"}\n\t\t\t\t\tfontValue={widget.data.gaugeFontValue || \"Arial\"}\n\t\t\t\t\t// fontNumbersSize={widget.data.gaugeFontNumbersSize || 20}\n\t\t\t\t\tfontNumbersSize={\n\t\t\t\t\t\ttypeof widget.data.gaugeFontNumbersSize === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeFontNumbersSize\n\t\t\t\t\t\t\t: Number(widget.data.gaugeFontNumbersSize)\n\t\t\t\t\t}\n\t\t\t\t\t// fontTitleSize={widget.data.gaugeFontTitleSize || 24}\n\t\t\t\t\tfontTitleSize={\n\t\t\t\t\t\ttypeof widget.data.gaugeFontTitleSize === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeFontTitleSize\n\t\t\t\t\t\t\t: Number(widget.data.gaugeFontTitleSize)\n\t\t\t\t\t}\n\t\t\t\t\t// fontUnitsSize={widget.data.gaugeFontUnitsSize || 22}\n\t\t\t\t\tfontUnitsSize={\n\t\t\t\t\t\ttypeof widget.data.gaugeFontUnitsSize === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeFontUnitsSize\n\t\t\t\t\t\t\t: Number(widget.data.gaugeFontUnitsSize)\n\t\t\t\t\t}\n\t\t\t\t\t// fontValueSize={widget.data.gaugeFontValueSize || 26}\n\t\t\t\t\tfontValueSize={\n\t\t\t\t\t\ttypeof widget.data.gaugeFontValueSize === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeFontValueSize\n\t\t\t\t\t\t\t: Number(widget.data.gaugeFontValueSize)\n\t\t\t\t\t}\n\t\t\t\t\tfontNumbersStyle={widget.data.gaugeFontNumbersStyle || \"normal\"}\n\t\t\t\t\tfontTitleStyle={widget.data.gaugeFontTitleStyle || \"normal\"}\n\t\t\t\t\tfontUnitsStyle={widget.data.gaugeFontUnitsStyle || \"normal\"}\n\t\t\t\t\tfontValueStyle={widget.data.gaugeFontValueStyle || \"normal\"}\n\t\t\t\t\tfontNumbersWeight={widget.data.gaugeFontNumbersWeight || \"normal\"}\n\t\t\t\t\tfontTitleWeight={widget.data.gaugeFontTitleWeight || \"normal\"}\n\t\t\t\t\tfontUnitsWeight={widget.data.gaugeFontUnitsWeight || \"normal\"}\n\t\t\t\t\tfontValueWeight={widget.data.gaugeFontValueWeight || \"normal\"}\n\t\t\t\t\t// Linear Borders Options\n\t\t\t\t\t// borderRadius={widget.data.gaugeBorderRadius || 0}\n\t\t\t\t\tborderRadius={\n\t\t\t\t\t\ttypeof widget.data.gaugeBorderRadius === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeBorderRadius\n\t\t\t\t\t\t\t: Number(widget.data.gaugeBorderRadius)\n\t\t\t\t\t}\n\t\t\t\t\t// Linear Progress Bar Options\n\t\t\t\t\tbarBeginCircle={\n\t\t\t\t\t\ttypeof widget.data.gaugeBarBeginCircle === \"number\" &&\n\t\t\t\t\t\twidget.data.gaugeBarBeginCircle < 12\n\t\t\t\t\t\t\t? 30\n\t\t\t\t\t\t\t: Number(widget.data.gaugeBarBeginCircle)\n\t\t\t\t\t}\n\t\t\t\t\t// barLength={widget.data.gaugeBarLength || 85}\n\t\t\t\t\tbarLength={\n\t\t\t\t\t\ttypeof widget.data.gaugeBarLength === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeBarLength\n\t\t\t\t\t\t\t: Number(widget.data.gaugeBarLength)\n\t\t\t\t\t}\n\t\t\t\t\t// Linear Coloring Options\n\t\t\t\t\tcolorBarEnd={widget.data.gaugeColorBarEnd || \"\"}\n\t\t\t\t\tcolorBarProgressEnd={widget.data.gaugeColorBarProgressEnd || \"\"}\n\t\t\t\t\t// Linear Element Positioning Options\n\t\t\t\t\ttickSide={widget.data.gaugeTickSide || \"both\"}\n\t\t\t\t\tneedleSide={widget.data.gaugeNeedleSide || \"both\"}\n\t\t\t\t\tnumberSide={widget.data.gaugeNumberSide || \"both\"}\n\t\t\t\t\t// Linear Ticks Bar Options\n\t\t\t\t\t// ticksWidth={widget.data.gaugeTicksWidth || 10}\n\t\t\t\t\tticksWidth={\n\t\t\t\t\t\ttypeof widget.data.gaugeTicksWidth === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeTicksWidth\n\t\t\t\t\t\t\t: Number(widget.data.gaugeTicksWidth)\n\t\t\t\t\t}\n\t\t\t\t\t// ticksWidthMinor={widget.data.gaugeTicksWidthMinor || 5}\n\t\t\t\t\tticksWidthMinor={\n\t\t\t\t\t\ttypeof widget.data.gaugeTicksWidthMinor === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeTicksWidthMinor\n\t\t\t\t\t\t\t: Number(widget.data.gaugeTicksWidthMinor)\n\t\t\t\t\t}\n\t\t\t\t\t// ticksPadding={widget.data.gaugeTicksPadding || 5}\n\t\t\t\t\tticksPadding={\n\t\t\t\t\t\ttypeof widget.data.gaugeTicksPadding === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeTicksPadding\n\t\t\t\t\t\t\t: Number(widget.data.gaugeTicksPadding)\n\t\t\t\t\t}\n\t\t\t\t\t// Radial Ticks Bar Options\n\t\t\t\t\t// ticksAngle={widget.data.gaugeTicksAngle || 270}\n\t\t\t\t\tticksAngle={\n\t\t\t\t\t\ttypeof widget.data.gaugeTicksAngle === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeTicksAngle\n\t\t\t\t\t\t\t: Number(widget.data.gaugeTicksAngle)\n\t\t\t\t\t}\n\t\t\t\t\t// startAngle={widget.data.gaugeStartAngle || 45}\n\t\t\t\t\tstartAngle={\n\t\t\t\t\t\ttypeof widget.data.gaugeStartAngle === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeStartAngle\n\t\t\t\t\t\t\t: Number(widget.data.gaugeStartAngle)\n\t\t\t\t\t}\n\t\t\t\t\t// Radial Coloring Options\n\t\t\t\t\tcolorNeedleCircleOuter={\n\t\t\t\t\t\twidget.data.gaugeColorNeedleCircleOuter || \"#f0f0f0\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorNeedleCircleOuterEnd={\n\t\t\t\t\t\twidget.data.gaugeColorNeedleCircleOuterEnd || \"#ccc\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorNeedleCircleInner={\n\t\t\t\t\t\twidget.data.gaugeColorNeedleCircleInner || \"#e8e8e8\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorNeedleCircleInnerEnd={\n\t\t\t\t\t\twidget.data.gaugeColorNeedleCircleInnerEnd || \"#f5f5f5\"\n\t\t\t\t\t}\n\t\t\t\t\tcolorNeedleCircleShadowUp={\n\t\t\t\t\t\twidget.data.gaugeColorNeedleCircleShadowUp || \"rgba(2,255,255,0.2)\"\n\t\t\t\t\t}\n\t\t\t\t\t// Radial Needle Options\n\t\t\t\t\t// needleCircleSize={widget.data.gaugeNeedleCircleSize || 10}\n\t\t\t\t\tneedleCircleSize={\n\t\t\t\t\t\ttypeof widget.data.gaugeNeedleCircleSize === \"number\"\n\t\t\t\t\t\t\t? widget.data.gaugeNeedleCircleSize\n\t\t\t\t\t\t\t: Number(widget.data.gaugeNeedleCircleSize)\n\t\t\t\t\t}\n\t\t\t\t\tneedleCircleInner={widget.data.gaugeNeedleCircleInner} // boolean\n\t\t\t\t\tneedleCircleOuter={widget.data.gaugeNeedleCircleOuter} // boolean\n\t\t\t\t\t// Radial Animation Options\n\t\t\t\t\tanimationTarget={widget.data.gaugeAnimationTarget || \"needle\"}\n\t\t\t\t\tuseMinPath={widget.data.gaugeUseMinPath} // boolean\n\t\t\t\t/>\n\t\t\t</Box>\n\t\t</CollectionBase>\n\t);\n}\n\nexport default GaugeCollection;\n","import React from \"react\";\nimport Generic from \"../Generic\";\nimport withCollectionProvider from \"../components/withCollectionProvider\";\nimport commonFields from \"../lib/commonFields\";\nimport commonObjectFields from \"../lib/commonObjectFields\";\nimport gaugeFields from \"../lib/gaugeFields\";\nimport GaugeCollection from \"./GaugeCollection\";\n\nclass GaugeCollectionWidget extends Generic {\n\tstatic getWidgetInfo() {\n\t\treturn {\n\t\t\tid: \"tplGaugeCollectionWidget\",\n\t\t\tvisSet: \"vis-2-widgets-collection\", // Widget set name in which this widget is located\n\t\t\tvisSetLabel: \"widgets_collection\", // Widget set translated label (should be defined only in one widget of a set)\n\t\t\tvisName: \"GaugeCollectionWidget\", // Name of widget\n\t\t\tvisWidgetLabel: \"gauge_collection_widget\", // Label for widget\n\t\t\tvisAttrs: [\n\t\t\t\t{\n\t\t\t\t\tname: \"common\", // group name\n\t\t\t\t\tfields: [...commonFields({ groupName: \"\", allFields: true })],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"gauge\", // group name\n\t\t\t\t\tlabel: \"group_gauge\",\n\t\t\t\t\tfields: [...commonObjectFields([\"boolean\"]), ...gaugeFields()],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"values\",\n\t\t\t\t\tlabel: \"values\",\n\t\t\t\t\tindexFrom: 1,\n\t\t\t\t\tindexTo: \"values_count\",\n\t\t\t\t\tfields: [...commonFields({ groupName: \"\", allFields: false })],\n\t\t\t\t},\n\t\t\t\t// check here all possible types https://github.com/ioBroker/ioBroker.vis/blob/react/src/src/Attributes/Widget/SCHEMA.md\n\t\t\t],\n\t\t\tvisDefaultStyle: {\n\t\t\t\twidth: \"100%\",\n\t\t\t\theight: \"100px\",\n\t\t\t\tposition: \"relative\",\n\t\t\t},\n\t\t\tvisPrev: \"widgets/vis-2-widgets-collection/img/prev-collection-gauge.png\",\n\t\t};\n\t}\n\n\t// Do not delete this method. It is used by vis to read the widget configuration.\n\t// eslint-disable-next-line class-methods-use-this\n\tgetWidgetInfo() {\n\t\treturn GaugeCollectionWidget.getWidgetInfo();\n\t}\n\n\t// eslint-disable-next-line class-methods-use-this\n\tasync propertiesUpdate() {\n\t\t// The widget has 3 important states\n\t\t// 1. this.state.values - contains all state values, that are used in widget (automatically collected from widget info).\n\t\t// So you can use `this.state.values[this.state.rxData.oid + '.val']` to get the value of state with id this.state.rxData.oid\n\t\t// 2. this.state.rxData - contains all widget data with replaced bindings. E.g. if this.state.data.type is `{system.adapter.admin.0.alive}`,\n\t\t// then this.state.rxData.type will have state value of `system.adapter.admin.0.alive`\n\t\t// 3. this.state.rxStyle - contains all widget styles with replaced bindings. E.g. if this.state.styles.width is `{javascript.0.width}px`,\n\t\t// then this.state.rxData.type will have state value of `javascript.0.width` + 'px\n\n\t\t// console.log(\"inside propertiesUpdate\", this.state.values);\n\n\t\tconst actualRxData = JSON.stringify(this.state.rxData);\n\t\tif (this.lastRxData === actualRxData) {\n\t\t\treturn;\n\t\t}\n\t\tthis.lastRxData = actualRxData;\n\t\tawait this.createStateObjectAsync(\"oid\");\n\t}\n\n\t// This function is called every time when rxData is changed\n\tasync onRxDataChanged(payload) {\n\t\tawait this.propertiesUpdate();\n\t}\n\n\t// This function is called every time when rxStyle is changed\n\t// eslint-disable-next-line class-methods-use-this\n\tonRxStyleChanged() {}\n\n\t// This function is called every time when some Object State updated, but all changes lands into this.state.values too\n\t// eslint-disable-next-line class-methods-use-this, no-unused-vars\n\tonStateUpdated(id, state) {}\n\n\tasync componentDidMount() {\n\t\tsuper.componentDidMount();\n\t\t// Update data\n\t\tawait this.propertiesUpdate();\n\t}\n\n\trenderWidgetBody(props) {\n\t\tsuper.renderWidgetBody(props);\n\n\t\tconst collectionContext = {\n\t\t\tid: props.id,\n\t\t\trefService: props.refService,\n\t\t\tstyle: props.style,\n\t\t\twidget: {\n\t\t\t\t...props.widget,\n\t\t\t\tdata: this.state.rxData,\n\t\t\t\tstyle: this.state.rxStyle,\n\t\t\t},\n\t\t\tsetValue: this.setValue,\n\t\t\tsetState: this.setState.bind(this),\n\t\t\toidObject: this.state.oidObject,\n\t\t\tvalues: this.state.values,\n\t\t\tisSignalVisible: this.isSignalVisible.bind(this),\n\t\t\tgetPropertyValue: this.getPropertyValue.bind(this),\n\t\t\tmode: this.props.context.themeType,\n\t\t\tsocket: this.props.context.socket,\n\t\t\ttheme: this.props.context.theme,\n\n\t\t\twrappedContent: this.wrappedContent,\n\t\t};\n\n\t\tif (props.widget.data.noCard || props.widget.usedInWidget) {\n\t\t\tthis.wrappedContent = false;\n\t\t} else {\n\t\t\tthis.wrappedContent = true;\n\t\t}\n\n\t\treturn withCollectionProvider(\n\t\t\tthis.wrapContent(<GaugeCollection />),\n\t\t\tcollectionContext,\n\t\t);\n\t}\n}\n\nexport default GaugeCollectionWidget;\n"],"names":["dialogFields","label","type","component","_jsx","CollectionDivider","dividerText","name","options","value","default","noTranslation","step","min","hidden","data","gaugeType","max","props","gaugeRef","useRef","canvasRef","useEffect","current","Object","assign","renderTo","destroy","RadialGauge","draw","LinearGauge","width","height","update","iconSize","Boolean","gaugeWidgetData","concat","segment","gaugeSegment","_jsxs","Box","sx","display","justifyContent","alignItems","children","alt","src","state","icon","gaugeData","style","position","Number","boxSizing","objectFit","gaugeIconFit","top","iconYOffset","left","iconXOffset","color","iconColor","filter","transform","id","ref","_oidObject$common","_baseRef$current","_baseRef$current2","_gaugeRef$current","_gaugeRef$current2","baseRef","wrappedContent","oidObject","widget","useContext","CollectionContext","states","useData","oidValue","useOidValue","isValidType","common","majorTicks","useMemo","minValue","gaugeMinValue","maxValue","gaugeMaxValue","_majorTicks","gaugeMajorTicks","i","push","Math","round","highlights","_highlights","forEach","index","_states","nextValue","from","to","textColor","length","findSegment","find","highlight","undefined","paper0","paper1","borderColor","frameBackgroundColorActive","frameBackgroundColor","background","frameBackgroundActive","frameBackground","backgroundColorActive","backgroundColor","backgroundActive","CollectionBase","Gauge","clientWidth","gaugePadding","clientHeight","units","unit","title","header","exactTicks","gaugeExactTicks","minorTicks","gaugeMinorTicks","strokeTicks","gaugeStrokeTicks","majorTicksInt","gaugeMajorTicksInt","majorTicksDec","gaugeMajorTicksDec","highlightsWidth","gaugeHighlightsWidth","numbersMargin","gaugeNumbersMargin","barWidth","gaugeBarWidth","barStrokeWidth","gaugeBarStrokeWidth","barProgress","gaugeBarProgress","barShadow","gaugeBarShadow","animation","gaugeAnimation","animationDuration","gaugeAnimationDuration","animationRule","gaugeAnimationRule","animatedValue","gaugeAnimatedValue","animateOnInit","gaugeAnimateOnInit","colorPlate","gaugeColorPlate","colorPlateEnd","gaugeColorPlateEnd","colorMajorTicks","gaugeColorMajorTicks","colorMinorTicks","gaugeColorMinorTicks","colorStrokeTicks","gaugeColorStrokeTicks","colorTitle","gaugeColorTitle","colorUnits","gaugeColorUnits","colorNumbers","gaugeColorNumbers","colorNeedle","gaugeColorNeedle","colorNeedleEnd","gaugeColorNeedleEnd","colorValueText","gaugeColorValueText","colorValueTextShadow","gaugeColorValueTextShadow","colorBorderShadow","gaugeColorBorderShadow","colorBorderOuter","gaugeColorBorderOuter","colorBorderOuterEnd","gaugeColorBorderOuterEnd","colorBorderMiddle","gaugeColorBorderMiddle","colorBorderMiddleEnd","gaugeColorBorderMiddleEnd","colorBorderInner","gaugeColorBorderInner","colorBorderInnerEnd","gaugeColorBorderInnerEnd","colorValueBoxRect","gaugeColorValueBoxRect","colorValueBoxRectEnd","gaugeColorValueBoxRectEnd","colorValueBoxBackground","gaugeColorValueBoxBackground","colorValueBoxShadow","gaugeColorValueBoxShadow","colorNeedleShadowUp","gaugeColorNeedleShadowUp","colorNeedleShadowDown","gaugeColorNeedleShadowDown","colorBarStroke","gaugeColorBarStroke","colorBarProgress","gaugeColorBarProgress","colorBarShadow","gaugeColorBarShadow","highlightsLineCap","gaugeHighlightsLineCap","needle","gaugeNeedle","needleShadow","gaugeNeedleShadow","needleType","gaugeNeedleType","needleStart","gaugeNeedleStart","needleEnd","gaugeNeedleEnd","needleWidth","gaugeNeedleWidth","borders","gaugeBorders","borderOuterWidth","gaugeBorderOuterWidth","borderMiddleWidth","gaugeBorderMiddleWidth","borderInnerWidth","gaugeBorderInnerWidth","borderShadowWidth","gaugeBorderShadowWidth","valueBox","gaugeValueBox","valueBoxStroke","gaugeValueBoxStroke","valueBoxWidth","gaugeValueBoxWidth","valueText","gaugeValueText","valueTextShadow","gaugeValueTextShadow","valueBoxBorderRadius","gaugeValueBoxBorderRadius","valueInt","gaugeValueInt","valueDec","gaugeValueDec","fontNumbers","gaugeFontNumbers","fontTitle","gaugeFontTitle","fontUnits","gaugeFontUnits","fontValue","gaugeFontValue","fontNumbersSize","gaugeFontNumbersSize","fontTitleSize","gaugeFontTitleSize","fontUnitsSize","gaugeFontUnitsSize","fontValueSize","gaugeFontValueSize","fontNumbersStyle","gaugeFontNumbersStyle","fontTitleStyle","gaugeFontTitleStyle","fontUnitsStyle","gaugeFontUnitsStyle","fontValueStyle","gaugeFontValueStyle","fontNumbersWeight","gaugeFontNumbersWeight","fontTitleWeight","gaugeFontTitleWeight","fontUnitsWeight","gaugeFontUnitsWeight","fontValueWeight","gaugeFontValueWeight","borderRadius","gaugeBorderRadius","barBeginCircle","gaugeBarBeginCircle","barLength","gaugeBarLength","colorBarEnd","gaugeColorBarEnd","colorBarProgressEnd","gaugeColorBarProgressEnd","tickSide","gaugeTickSide","needleSide","gaugeNeedleSide","numberSide","gaugeNumberSide","ticksWidth","gaugeTicksWidth","ticksWidthMinor","gaugeTicksWidthMinor","ticksPadding","gaugeTicksPadding","ticksAngle","gaugeTicksAngle","startAngle","gaugeStartAngle","colorNeedleCircleOuter","gaugeColorNeedleCircleOuter","colorNeedleCircleOuterEnd","gaugeColorNeedleCircleOuterEnd","colorNeedleCircleInner","gaugeColorNeedleCircleInner","colorNeedleCircleInnerEnd","gaugeColorNeedleCircleInnerEnd","colorNeedleCircleShadowUp","gaugeColorNeedleCircleShadowUp","needleCircleSize","gaugeNeedleCircleSize","needleCircleInner","gaugeNeedleCircleInner","needleCircleOuter","gaugeNeedleCircleOuter","animationTarget","gaugeAnimationTarget","useMinPath","gaugeUseMinPath","GaugeCollectionWidget","Generic","getWidgetInfo","visSet","visSetLabel","visName","visWidgetLabel","visAttrs","fields","commonFields","groupName","allFields","commonObjectFields","gaugeFields","indexFrom","indexTo","visDefaultStyle","visPrev","propertiesUpdate","actualRxData","JSON","stringify","this","rxData","lastRxData","createStateObjectAsync","onRxDataChanged","payload","onRxStyleChanged","onStateUpdated","componentDidMount","super","renderWidgetBody","collectionContext","refService","_objectSpread","rxStyle","setValue","setState","bind","values","isSignalVisible","getPropertyValue","mode","context","themeType","socket","theme","noCard","usedInWidget","withCollectionProvider","wrapContent","GaugeCollection"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkiobroker_vis_widgets_react_collection=self.webpackChunkiobroker_vis_widgets_react_collection||[]).push([["src_components_CollectionDivider_jsx"],{6211:(e,t,a)=>{a.d(t,{A:()=>l});var o=a(7085),n=(a(8437),a(579));class i extends window.visRxWidget{constructor(){var e;super(...arguments),e=this,this.getPropertyValue=e=>this.state.values["".concat(this.state.rxData[e],".val")],this.setValue=function(t,a){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t&&"nothing_selected"!==t&&e.props.context.socket.setState(t,a,o).catch((e=>console.error("Cannot set state ".concat(t,": ").concat(e))))}}static getI18nPrefix(){return"vis_2_widgets_collection_"}async getParentObject(e){const t=e.split(".");t.pop();const a=t.join(".");return this.props.context.socket.getObject(a)}static getObjectIcon(e,t,a){a=a||"../..";let o="";const n=e&&e.common;if(n){const i=n.icon;if(i)if(i.startsWith("data:image/"))o=i;else{if(!i.includes("."))return null;{let l;"instance"===e.type||"adapter"===e.type?o="".concat(a,"/adapter/").concat(n.name,"/").concat(i):t&&t.startsWith("system.adapter.")?(l=t.split(".",3),"/"===i[0]?l[2]+=i:l[2]+="/".concat(i),o="".concat(a,"/adapter/").concat(l[2])):(l=t.split(".",2),"/"===i[0]?l[0]+=i:l[0]+="/".concat(i),o="".concat(a,"/adapter/").concat(l[0]))}}}return o||null}async createStateObjectAsync(e){if(!this.state.rxData[e]||"nothing_selected"===this.state.rxData[e])return this.setState({["".concat(e,"Object")]:{common:{}}}),void(this.state.rxData.icon&&this.setState({["".concat(e,"Object")]:{common:{icon:this.state.rxData.icon}}}));let t=await this.props.context.socket.getObject(this.state.rxData.oid);if(t=t?{common:t.common,_id:t._id,type:t.type}:{common:{}},t.common=t.common||{},"number"===t.common.type&&(void 0===t.common.max&&(t.common.max=100),void 0===t.common.min&&(t.common.min=0)),t.common.states&&Array.isArray(t.common.states)){const e={};t.common.states.forEach((t=>{e[t]=t})),t.common.states=e}t.common.name&&"object"===typeof t.common.name&&(t.common.name=t.common.name[i.getLanguage()]||t.common.name.en),JSON.stringify(this.state["".concat(e,"Object")])!==JSON.stringify(t)&&this.setState({["".concat(e,"Object")]:t})}wrapContent(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.CssBaseline,{}),(0,n.jsx)(o.Box,{className:"GENERIC-0",sx:{position:"relative",overflow:"hidden",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,n.jsx)(o.Box,{className:"GENERIC-1",sx:{width:this.wrappedContent?"calc(100% - 8px)":"100%",height:this.wrappedContent?"calc(100% - 8px)":"100%"},children:e})})]})}}const l=i},2354:(e,t,a)=>{a.r(t),a.d(t,{default:()=>C});var o=a(7051),n=a(8437),i=a(6211),l=a(900),c=a(8679),r=a(375),d=a(4376),s=a(579);const u=()=>[{label:"",type:"custom",component:()=>(0,s.jsx)(d.A,{dividerText:"write_value"})},{name:"sampleInterval",type:"checkbox",label:"sample_interval",default:!1},{name:"sampleIntervalValue",type:"number",label:"sample_interval_value",default:50,min:0,max:1e3,step:1,hidden:"!data.sampleInterval"},{name:"delay",type:"number",label:"delay",default:300,min:0,max:1e3,step:1,hidden:"data.sampleInterval"}],m=()=>[{type:"custom",component:()=>(0,s.jsx)(d.A,{})},{name:"sliderSize",label:"slider_size",type:"select",options:[{value:"small",label:"slider_small"},{value:"medium",label:"slider_medium"}],default:"medium"},{name:"sliderOrientation",label:"slider_orientation",type:"select",options:[{value:"horizontal",label:"horizontal"},{value:"vertical",label:"vertical"}],default:"horizontal"},{name:"valueLabelDisplay",label:"value_label_display",type:"select",options:[{value:"on",label:"label_on"},{value:"off",label:"label_off"},{value:"auto",label:"label_auto"}],default:"off"},{name:"labelPosition",label:"label_position",type:"text",default:"-5px",hidden:"data.valueLabelDisplay === 'off'"},{name:"sliderColor",label:"slider_color",type:"color"},{name:"sliderIconSize",label:"icon_size",type:"slider",min:1,max:500,step:1},{type:"custom",component:()=>(0,s.jsx)(d.A,{dividerText:"values"})},{name:"minValue",type:"number",label:"min_value",default:0},{name:"maxValue",type:"number",label:"max_value",default:100},{name:"step",type:"number",label:"step",default:10},{type:"custom",component:()=>(0,s.jsx)(d.A,{}),hidden:"!data.values_count"},{name:"onlyStates",type:"checkbox",label:"only_states",default:!1,hidden:"!data.values_count"},{type:"custom",component:()=>(0,s.jsx)(d.A,{dividerText:"marks"})},{name:"marks",type:"checkbox",label:"marks",default:!1},{type:"custom",component:()=>(0,s.jsx)(d.A,{}),hidden:"!data.marks"},{name:"markPosition",label:"mark_position",type:"text",default:"30px",hidden:"!data.marks"},{name:"markStep",type:"number",label:"mark_step",default:10,hidden:"!data.marks"},{type:"custom",component:()=>(0,s.jsx)(d.A,{}),hidden:"!data.marks"},{name:"markerTextColor",label:"text_color",type:"color",hidden:"!data.marks"},{name:"markerTextSize",label:"marker_text_size",type:"slider",min:0,max:500,default:80,step:1,hidden:"!data.marks"},{type:"custom",component:()=>(0,s.jsx)(d.A,{dividerText:"icon"})},{name:"iconSmallMin",label:"icon_small_min",type:"icon64",hidden:"data.iconMin"},{name:"iconMin",label:"icon_min",type:"image",hidden:"data.iconSmallMin"},{name:"iconSizeStart",label:"icon_size",type:"text",default:"24px",hidden:"!data.iconMin && !data.iconSmallMin"},{name:"startIconColor",label:"icon_color",type:"color",hidden:"!data.iconMin && !data.iconSmallMin"},{type:"custom",component:()=>(0,s.jsx)(d.A,{dividerText:"icon"})},{name:"iconSmallMax",label:"icon_small_max",type:"icon64",hidden:"data.iconMax"},{name:"iconMax",label:"icon_max",type:"image",hidden:"data.iconSmallMax"},{name:"iconSizeEnd",label:"icon_size",type:"text",default:"24px",hidden:"!data.iconMax && !data.iconSmallMax"},{name:"endIconColor",label:"icon_color",type:"color",hidden:"!data.iconMax && !data.iconSmallMax"}];var p=a(7085),x=a(4657),v=a(6016),b=a(2152),f=a(6255),h=a(5001),g=a(45);const y=["marks","sliderOrientation"],S=e=>{let{marks:t,sliderOrientation:a}=e,i=(0,g.A)(e,y);const[l,c]=(0,n.useState)(null),r=i["data-index"],d=i.ownerState.marks[r];return(0,n.useEffect)((()=>{l&&(l.innerHTML=d.label)}),[d.label,l]),t?(0,s.jsx)(p.SliderMarkLabel,(0,o.A)((0,o.A)({style:{color:"red"}},i),{},{children:(0,s.jsxs)(p.Box,{sx:{display:"flex",flexDirection:"vertical"===a?"row":"column",alignItems:"center",justifyContent:"center"},children:[(0,s.jsx)(p.Box,{"data-font":"active",ref:c,sx:{flexGrow:1,pr:"vertical"===a?1:0,pb:"vertical"===a?0:1,fontSize:"number"===typeof d.fontSize&&"".concat(d.fontSize,"%"),color:d.textColor}}),(0,s.jsx)(p.Box,{"data-position":"active",sx:{position:"relative",bottom:d.iconYOffset,left:d.iconXOffset,flexGrow:1},children:(0,s.jsx)("img",{"data-img":"active",src:d.icon||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:"",style:{position:"relative",width:"".concat(24*d.iconWidth/100,"px"),height:"".concat(24*d.iconHeight/100,"px"),color:d.iconColor||null,filter:d.iconColor?"drop-shadow(0px 10000px 0)":null,transform:d.iconColor?"translateY(-10000px)":null}})})]})})):null};const A=function(){var e;const{values:t,setState:a,oidObject:i,widget:l}=(0,n.useContext)(v.C),{data:c,states:r,minValue:d,maxValue:u}=(0,b.A)("oid"),m=(0,h.A)("oid"),[g,y]=(0,n.useState)(null),A=l.data.startIconColor||l.data.sliderColor||c.iconColor||c.textColor,k=l.data.endIconColor||l.data.sliderColor||c.iconColor||c.textColor,C=null===i||void 0===i?void 0:i._id,z=null===i||void 0===i||null===(e=i.common)||void 0===e?void 0:e.type,j="number"===z;(0,f.A)({value:m,data:l.data});const _=(0,n.useMemo)((()=>l.data.onlyStates||void 0===l.data.minValue?d:Number(l.data.minValue)),[l.data.onlyStates,l.data.minValue,d]),w=(0,n.useMemo)((()=>l.data.onlyStates||void 0===l.data.maxValue?u:Number(l.data.maxValue)),[l.data.onlyStates,l.data.maxValue,u]),O=(0,n.useMemo)((()=>{const e=JSON.parse(JSON.stringify(r));if(l.data.onlyStates)return e.sort(((e,t)=>e.value-t.value));const t=_,a=w;e&&!e.some((e=>e.value===t))&&e.push({value:t,label:"".concat(t).concat(l.data.unit)}),e&&!e.some((e=>e.value===a))&&e.push({value:a,label:"".concat(a).concat(l.data.unit)});const o=Number(l.data.markStep)||1;for(let n=t+o;n<a;n+=o)e.some((e=>e.value===n))||e.push({value:n,label:"".concat(n).concat(l.data.unit)});return e.sort(((e,t)=>e.value-t.value)),e}),[r,_,w,l.data.markStep,l.data.unit,l.data.onlyStates]);return(0,n.useEffect)((()=>{if(void 0===m)return;const e=O.findIndex((e=>String(e.value)===String(m)));-1!==e&&y(e)}),[m,O]),(0,s.jsx)(x.A,{isValidType:j,data:c,oidValue:m,children:(0,s.jsxs)(p.Box,{sx:{width:"100%",height:"100%",p:1,display:"flex",flexDirection:"horizontal"===l.data.sliderOrientation?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[(c.iconActive||c.icon)&&(0,s.jsx)("img",{alt:"",src:c.iconActive||c.icon,style:{position:"absolute",top:"calc(0px - ".concat(c.iconYOffset,")"),right:"calc(0px - ".concat(c.iconXOffset,")"),width:c.iconSize,height:c.iconSize,color:l.data.iconColorActive||c.iconColorActive||c.iconColor,filter:l.data.iconColorActive||c.iconColorActive||c.iconColor?"drop-shadow(0px 10000px 0)":null,transform:l.data.iconColorActive||c.iconColorActive||c.iconColor?"translateY(-10000px)":null}}),(0,s.jsx)(p.Box,{sx:{position:"relative",bottom:"horizontal"===l.data.sliderOrientation&&(l.data.onlyStates||l.data.marks)?"10px":"0px",right:"vertical"===l.data.sliderOrientation&&(l.data.onlyStates||l.data.marks)?"22px":"0px",p:1,display:"flex",justifyContent:"center",alignItems:"center"},children:("horizontal"===l.data.sliderOrientation&&(l.data.iconMin||l.data.iconSmallMin)||"vertical"===l.data.sliderOrientation&&(l.data.iconMax||l.data.iconSmallMax))&&(0,s.jsx)("img",{alt:"",src:"horizontal"===l.data.sliderOrientation?l.data.iconMin||l.data.iconSmallMin:l.data.iconMax||l.data.iconSmallMax,style:{width:"horizontal"===l.data.sliderOrientation?l.data.iconSizeStart||"24px":l.data.iconSizeEnd||"24px",height:"horizontal"===l.data.sliderOrientation?l.data.iconSizeStart||"24px":l.data.iconSizeEnd||"24px",color:"horizontal"===l.data.sliderOrientation?A:k,filter:"drop-shadow(0px 10000px 0)",transform:"translateY(-10000px)"}})}),(0,s.jsx)(p.Box,{sx:{p:1,display:"flex",flexGrow:1,justifyContent:"center",alignItems:"center"},children:"number"===typeof m&&(0,s.jsx)(p.Slider,{slots:{markLabel:S},slotProps:{markLabel:{marks:l.data.marks,sliderOrientation:l.data.sliderOrientation}},disabled:"number"!==z,valueLabelDisplay:l.data.valueLabelDisplay,orientation:l.data.sliderOrientation,min:_,max:w,marks:O,step:l.data.onlyStates?null:l.data.step,size:l.data.sliderSize,value:m,onChange:(e,n)=>a({values:(0,o.A)((0,o.A)({},t),{},{["".concat(C,".val")]:n})}),sx:{mb:l.data.marks&&"horizontal"===l.data.sliderOrientation?"20px":"0px",mr:l.data.marks&&"vertical"===l.data.sliderOrientation?"44px":"0px","& .MuiSlider-thumb":{color:l.data.sliderColor},"& .MuiSlider-rail":{color:l.data.sliderColor||"primary.main"},"& .MuiSlider-track":{color:l.data.sliderColor||"primary.main"},"& .MuiSlider-mark":{color:l.data.sliderColor||"primary.main"},"& .MuiSlider-markActive":{bgcolor:l.data.sliderColor||"primary.main",filter:"brightness(2.5)"},"& .MuiSlider-valueLabel":{fontSize:c.valueSizeActive||l.data.markerTextSize&&"".concat(l.data.markerTextSize,"%")||c.valueSize||"1em",color:c.textColorActive||l.data.markerTextColor||c.textColor,bgcolor:"transparent",top:"horizontal"===l.data.sliderOrientation?l.data.labelPosition:null,right:"vertical"===l.data.sliderOrientation?l.data.labelPosition:null},"& .MuiSlider-markLabel":{fontSize:"number"===typeof l.data.markerTextSize&&"".concat(l.data.markerTextSize,"%")||c.valueSize||"1em",color:l.data.markerTextColor||c.textColor,top:"horizontal"===l.data.sliderOrientation?l.data.markPosition:null,left:"vertical"===l.data.sliderOrientation?l.data.markPosition:null},"& .MuiSlider-markLabelActive":{["&[data-index='".concat(g,"']")]:{"& div[data-font='active']":{color:"".concat(l.data.textColorActive," !important"),fontSize:"number"===typeof l.data.valueSizeActive&&"".concat(l.data.valueSizeActive,"% !important")},"& div[data-position='active']":{left:!!l.data.iconXOffsetActive&&"0px"!==l.data.iconXOffsetActive&&"".concat(l.data.iconXOffsetActive," !important")||"0px",bottom:!!l.data.iconYOffsetActive&&"0px"!==l.data.iconYOffsetActive&&"".concat(l.data.iconYOffsetActive," !important")||"0px !important"},"& img[data-img='active']":{width:"".concat("number"===typeof l.data.iconSizeActive?"".concat(24*l.data.iconSizeActive/100,"px !important"):"24px !important"),height:"".concat("number"===typeof l.data.iconSizeActive?"".concat(24*l.data.iconSizeActive/100,"px !important"):"24px !important"),color:l.data.iconColorActive&&"".concat(l.data.iconColorActive,"!important"),filter:l.data.iconColorActive&&"drop-shadow(0px 10000px 0)",transform:l.data.iconColorActive&&"translateY(-10000px)",pl:(!!l.data.iconActive||!!l.data.iconSmallActive)&&"".concat("number"===typeof l.data.iconSizeActive?"".concat(24*l.data.iconSizeActive/100,"px !important"):"24px"),display:(!!l.data.iconActive||!!l.data.iconSmallActive)&&"block",boxSizing:(!!l.data.iconActive||!!l.data.iconSmallActive)&&"border-box",background:(!!l.data.iconActive||!!l.data.iconSmallActive)&&"url('".concat(l.data.iconSmallActive||l.data.iconActive,"') no-repeat center center"),backgroundSize:(!!l.data.iconActive||!!l.data.iconSmallActive)&&"".concat("number"===typeof l.data.iconSizeActive?"".concat(24*l.data.iconSizeActive/100,"px"):"24px"," ").concat("number"===typeof l.data.iconSizeActive?"".concat(24*l.data.iconSizeActive/100,"px"):"24px")}}}}})}),(0,s.jsx)(p.Box,{sx:{position:"relative",bottom:"horizontal"===l.data.sliderOrientation&&(l.data.onlyStates||l.data.marks)?"10px":"0px",right:"vertical"===l.data.sliderOrientation&&(l.data.onlyStates||l.data.marks)?"22px":"0px",p:1,display:"flex",justifyContent:"center",alignItems:"center"},children:("horizontal"===l.data.sliderOrientation&&(l.data.iconMax||l.data.iconSmallMax)||"vertical"===l.data.sliderOrientation&&(l.data.iconMin||l.data.iconSmallMin))&&(0,s.jsx)("img",{alt:"",src:"horizontal"===l.data.sliderOrientation?l.data.iconMax||l.data.iconSmallMax:l.data.iconMin||l.data.iconSmallMin,style:{width:"horizontal"===l.data.sliderOrientation?l.data.iconSizeEnd||"24px":l.data.iconSizeStart||"24px",height:"horizontal"===l.data.sliderOrientation?l.data.iconSizeEnd||"24px":l.data.iconSizeStart||"24px",color:"horizontal"===l.data.sliderOrientation?k:A,filter:"drop-shadow(0px 10000px 0)",transform:"translateY(-10000px)"}})})]})})};class k extends i.A{static getWidgetInfo(){return{id:"tplSliderCollectionWidget",visSet:"vis-2-widgets-collection",visSetLabel:"widgets_collection",visName:"SliderCollectionWidget",visWidgetLabel:"slider_collection_widget",visAttrs:[{name:"common",fields:[...(0,c.A)()]},{name:"slider",label:"group_slider",fields:[...(0,r.A)(["number"]),...u(),...m()]},{name:"active",label:"group_active",fields:[...(0,c.A)({groupName:"Active",allFields:!1})]},{name:"values",label:"values",indexFrom:1,indexTo:"values_count",fields:[...(0,c.A)({groupName:"",allFields:!1})]}],visDefaultStyle:{width:"100%",height:"100px",position:"relative"},visPrev:"widgets/vis-2-widgets-collection/img/prev-collection-slider.png"}}getWidgetInfo(){return k.getWidgetInfo()}async propertiesUpdate(){const e=JSON.stringify(this.state.rxData);this.lastRxData!==e&&(this.lastRxData=e,await this.createStateObjectAsync("oid"))}async onRxDataChanged(e){await this.propertiesUpdate()}onRxStyleChanged(){}onStateUpdated(e,t){}async componentDidMount(){super.componentDidMount(),await this.propertiesUpdate()}renderWidgetBody(e){super.renderWidgetBody(e);const t={id:e.id,refService:e.refService,style:e.style,widget:(0,o.A)((0,o.A)({},e.widget),{},{data:this.state.rxData,style:this.state.rxStyle}),setValue:this.setValue,setState:this.setState.bind(this),oidObject:this.state.oidObject,values:this.state.values,isSignalVisible:this.isSignalVisible.bind(this),getPropertyValue:this.getPropertyValue.bind(this),mode:this.props.context.themeType,socket:this.props.context.socket,theme:this.props.context.theme,wrappedContent:this.wrappedContent};return e.widget.data.noCard||e.widget.usedInWidget?this.wrappedContent=!1:this.wrappedContent=!0,(0,l.A)(this.wrapContent((0,s.jsx)(A,{})),t)}}const C=k},4657:(e,t,a)=>{a.d(t,{A:()=>u});var o=a(7051),n=a(7085),i=a(8437),l=a(6016);const c=()=>{const{isSignalVisible:e,refService:t,widget:a}=(0,i.useContext)(l.C);(0,i.useEffect)((()=>{var o;if(null===t||void 0===t||!t.current)return;const n=null===(o=t.current)||void 0===o?void 0:o.children,i=[];for(let t=0;t<a.data["signals-count"];t++)e(t)&&i.push(t);const l=[];Object.values(n).forEach((e=>{var t;"vis-signal-icon iconOwn"===(null===(t=e.children[0])||void 0===t?void 0:t.className)&&l.push(e.children[0])})),l.forEach(((e,t)=>{const o=a.data["signals-color-".concat(i[t])];e.style.color=o,e.style.filter=o?"drop-shadow(0px 10000px 0)":null,e.style.transform=o?"translateY(-10000px)":null}))}),[a,t,e])},r=e=>{const{widget:t}=(0,i.useContext)(l.C),[a,o]=(0,i.useState)("100%"),[n,c]=(0,i.useState)("100%");return(0,i.useEffect)((()=>{if(!e)return;const a=new ResizeObserver((e=>{const a=e[0].contentRect.width,n=e[0].contentRect.height;void 0!==a&&void 0!==n&&a>=0&&n>=0&&(t.data.square||t.data.circle?a<16*t.data.basePadding||n<16*t.data.basePadding?(o("0px"),c("0px")):a<n?(o("".concat(a-16*t.data.basePadding,"px")),c("".concat(a-16*t.data.basePadding,"px"))):(o("".concat(n-16*t.data.basePadding,"px")),c("".concat(n-16*t.data.basePadding,"px"))):(o("100%"),c("100%")))}));return a.observe(e),()=>e&&a.unobserve(e)}),[t.data.square,t.data.circle,t.data.basePadding,e]),{width:a,height:n}};var d=a(5702),s=a(579);const u=(0,i.forwardRef)(((e,t)=>{let{children:a,data:u,oidValue:m=null,isValidType:p=!0,bgActive:x=!0,sx:v={}}=e;const b=(0,i.useRef)(null),f=(0,i.useRef)(null),[h,g]=(0,i.useState)(null),[y,S]=(0,i.useState)(null),[A,k]=(0,i.useState)(null),{wrappedContent:C,widget:z,oidObject:j}=(0,i.useContext)(l.C),{backgroundStyles:_,borderStyles:w,textStyles:O,fontStyles:B}=(0,d.A)(z.style),{width:M,height:I}=r(h),T=(m||0===m||!1===m)&&"".concat(m).concat(z.data.unit);c();const P=null===j||void 0===j?void 0:j._id,E=u.footer||u.alias||u.value||T||"";return(0,i.useEffect)((()=>{z.data.noFooter||A&&(A.innerHTML=E)}),[E,z.data.noFooter,A]),(0,i.useEffect)((()=>{z.data.noHeader||y&&(y.innerHTML=u.header)}),[u.header,z.data.noHeader,y]),(0,i.useImperativeHandle)(t,(()=>({get paper0(){return null===b||void 0===b?void 0:b.current},get paper1(){return null===f||void 0===f?void 0:f.current}}))),(0,s.jsx)(n.Paper,{ref:b,className:"BASE-PAPER-0",square:z.data.squaredCorner,variant:z.data.outlinedFrame?"outlined":"elevation",sx:(0,o.A)((0,o.A)({overflow:"hidden",width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center"},_),{},{border:C?w.border:null,borderWidth:C?w.borderWidth:null,borderStyle:C?w.borderStyle:null,borderRadius:C?w.borderRadius:null,borderColor:C?w.borderColor:u.frameBackgroundColorActive||u.frameBackgroundColor||w.borderColor,background:C?z.data.frameBackgroundColorActive||u.frameBackgroundColorActive||u.frameBackgroundColor||z.data.frameBackgroundActive||u.frameBackgroundActive||u.frameBackground:"transparent"}),children:p?(0,s.jsxs)(s.Fragment,{children:[!z.data.noHeader&&(0,s.jsx)(n.Box,{sx:{width:"100%",mt:z.data.basePadding/2,mb:-z.data.basePadding/2},children:(0,s.jsx)(n.Typography,{ref:S,noWrap:!0,variant:"body2",sx:(0,o.A)((0,o.A)((0,o.A)({},B),O),{},{fontSize:u.headerSize,color:z.data.textColor||u.textColorActive||u.textColor})})}),(0,s.jsx)(n.Box,{className:"BASE-BOX-1",ref:g,sx:{overflow:"hidden",p:z.data.basePadding,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)(n.Paper,{ref:f,className:"BASE-PAPER-1",elevation:z.data.baseElevation,square:!z.data.basePadding||z.data.squaredCorner,variant:z.data.outlined?"outlined":"elevation",sx:(0,o.A)({overflow:"hidden",width:M,height:I,display:"flex",justifyContent:"center",alignItems:"center",borderColor:C?w.borderColor:u.backgroundColorActive||u.backgroundColor||w.borderColor,background:C?z.data.backgroundColorActive||x&&u.backgroundColorActive||u.backgroundColor||z.data.backgroundActive||x&&u.backgroundActive||u.background:"transparent",borderRadius:z.data.circle||z.data.ellipse?"50%":null},v),children:a})}),!z.data.noFooter&&(0,s.jsx)(n.Box,{sx:{width:"100%",mt:-z.data.basePadding/2,mb:z.data.basePadding/2},children:(0,s.jsx)(n.Typography,{ref:k,noWrap:!0,variant:"body2",sx:(0,o.A)((0,o.A)((0,o.A)({},B),O),{},{fontSize:u.footerSize,color:z.data.textColor||u.textColorActive||u.textColor})})})]}):(0,s.jsx)(n.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)(n.Typography,{color:"primary.main",variant:"body2",children:P?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:P}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{style:{paddingTop:"0.5em",width:"100%",textAlign:"center"},children:"has an invalid type!"})]}):"Please select an object ID"})})})}))},4376:(e,t,a)=>{a.d(t,{A:()=>l});var o=a(7085),n=(a(8437),a(2354)),i=a(579);const l=function(e){let{dividerText:t=""}=e;const a={position:"absolute",left:0,width:"100%"};return(0,i.jsx)(o.Box,{sx:{display:"block",pt:1.5,pb:t?2:1.5},children:t?(0,i.jsx)(o.Divider,{sx:a,children:(0,i.jsx)(o.Typography,{sx:{opacity:.5},variant:"caption",children:n.default.t(t)})}):(0,i.jsx)(o.Divider,{sx:a})})}},6016:(e,t,a)=>{a.d(t,{A:()=>r,C:()=>c});var o=a(7085),n=a(9172),i=a(8437),l=a(579);const c=(0,i.createContext)({});const r=function(e){let{children:t,context:a}=e;const r=a.mode,d=a.theme,s=(0,i.useMemo)((()=>{const e="dark"===r?{palette:{mode:"dark"}}:{};return(0,o.createTheme)((0,n.A)(d,(0,n.A)(e,{components:{MuiTypography:{}}})))}),[r,d]);return(0,l.jsx)(o.ThemeProvider,{theme:s,children:(0,l.jsx)(c.Provider,{value:a,children:t})})}},900:(e,t,a)=>{a.d(t,{A:()=>i});a(8437);var o=a(6016),n=a(579);const i=function(e,t){return(0,n.jsx)(o.A,{context:t,children:e})}},2152:(e,t,a)=>{a.d(t,{A:()=>l});var o=a(8437),n=a(6016),i=a(5702);const l=function(e){var t;const{theme:a,widget:l,oidObject:c,getPropertyValue:r}=(0,o.useContext)(n.C),{fontStyles:d,textStyles:s,backgroundStyles:u}=(0,i.A)(l.style),[m,p]=(0,o.useState)(),x=r("oid"),v=null===c||void 0===c||null===(t=c.common)||void 0===t?void 0:t.name,b=(0,o.useCallback)((e=>"number"===typeof e?"".concat(e,"%"):null),[]),f=(0,o.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return l.data["".concat(e).concat(t)]}),[l.data]),{states:h,widgetStates:g,minValue:y,maxValue:S}=(0,o.useMemo)((()=>(()=>{var e,t;const a=[],o={};let n=null,i=null;const r=null===c||void 0===c||null===(e=c.common)||void 0===e?void 0:e.type,d=(null===c||void 0===c||null===(t=c.common)||void 0===t?void 0:t.states)||{},s=Object.entries(d);if("number"===r||"string"===r||"boolean"===r||"mixed"===r){for(let e=1;e<=Number(l.data.values_count);e++){const t=l.data["value".concat(e)],n=l.data["alias".concat(e)],i=l.data.unit;if(void 0!==t&&null!==t&&/\S/.test(t)){const c=s.find((e=>{let[a]=e;return a===t}));c&&"number"===r&&(c[0]=Number(c[0])),a.push({value:c?c[0]:"number"===r?Number(t):t,label:n||(c?c[1]:"".concat(t).concat(i)),fontSize:b(l.data["valueSize".concat(e)]),textColor:l.data["textColor".concat(e)],icon:l.data["icon".concat(e)]||l.data["iconSmall".concat(e)]||l.data.icon||null,iconSize:"number"===typeof l.data["iconSize".concat(e)]?l.data["iconSize".concat(e)]:null,iconWidth:"number"===typeof l.data["iconSize".concat(e)]?l.data["iconSize".concat(e)]:"number"===typeof l.data.sliderIconSize?l.data.sliderIconSize:100,iconHeight:"number"===typeof l.data["iconSize".concat(e)]?l.data["iconSize".concat(e)]:"number"===typeof l.data.sliderIconSize?l.data.sliderIconSize:100,iconXOffset:!!f("iconXOffset",e)&&"0px"!==f("iconXOffset",e)&&f("iconXOffset",e)||"0px",iconYOffset:!!f("iconYOffset",e)&&"0px"!==f("iconYOffset",e)&&f("iconYOffset",e)||"0px",iconColor:l.data["iconColor".concat(e)]||l.data.iconColor||null,backgroundColor:l.data.backgroundColor||u.backgroundColor,backgroundColorActive:f("backgroundColor",e),background:l.data.background||u.background,backgroundActive:f("background",e),frameBackgroundColor:l.data.frameBackgroundColor||u.backgroundColor,frameBackgroundColorActive:f("frameBackgroundColor",e),frameBackground:l.data.frameBackground||u.background,frameBackgroundActive:f("frameBackground",e)}),o[c?String(c[0]):t]=n||(c?c[1]:"".concat(t).concat(i))}}"number"===r&&a.length&&(n=Math.min(...a.map((e=>e.value))),i=Math.max(...a.map((e=>e.value))))}return{states:a,widgetStates:o,minValue:n,maxValue:i}})()),[c,l.data,f,b,u]),A=(0,o.useMemo)((()=>{var e;const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{textColor:l.data.textColor||s.color||a.palette.primary.main,textColorActive:f("textColor",e),header:l.data.headerActive||f("header",e)||l.data.header||v||"",headerSize:b(l.data.headerSize)||b(l.data.headerSizeActive)||b(f("headerSize",e))||d.fontSize,footer:l.data.footerActive||f("footer",e)||l.data.footer||"",footerSize:b(l.data.footerSize)||b(l.data.footerSizeActive)||b(f("footerSize",e))||d.fontSize,alias:f("alias",e),value:f("value",e)&&"".concat(f("value",e)).concat(void 0!==l.data.unit?l.data.unit:""),valueSize:b(l.data.valueSize)||d.fontSize,valueSizeActive:"number"===typeof f("valueSize",e)&&b(f("valueSize",e)),icon:!l.data.noIcon&&(l.data.icon||l.data.iconSmall),iconActive:!l.data.noIcon&&(f("icon",e)||f("iconSmall",e)),iconSize:"number"===typeof l.data.iconSize&&"calc(24px * ".concat(l.data.iconSize," / 100)")||"24px",iconSizeActive:f("iconSize",e)&&"calc(24px * ".concat(f("iconSize",e)," / 100)"),iconSizeActiveOnly:f("iconSize",e),iconSizeOnly:f("iconSize",e)||l.data.iconSize,iconColor:l.data.iconColor,iconColorActive:f("iconColor",e),iconHover:l.data.iconHover&&"".concat(l.data.iconHover,"%"),iconHoverActive:f("iconHover",e)&&"".concat(f("iconHover",e),"%"),iconXOffset:!!f("iconXOffset",e)&&"0px"!==f("iconXOffset",e)&&f("iconXOffset",e)||!!l.data.iconXOffset&&"0px"!==l.data.iconXOffset&&l.data.iconXOffset||"0px",iconYOffset:!!f("iconYOffset",e)&&"0px"!==f("iconYOffset",e)&&f("iconYOffset",e)||!!l.data.iconYOffset&&"0px"!==l.data.iconYOffset&&l.data.iconYOffset||"0px",backgroundColor:l.data.backgroundColor||u.backgroundColor,backgroundColorActive:f("backgroundColor",e),background:l.data.background||u.background,backgroundActive:f("background",e),frameBackgroundColor:l.data.frameBackgroundColor||u.backgroundColor,frameBackgroundColorActive:f("frameBackgroundColor",e),frameBackground:l.data.frameBackground||u.background,frameBackgroundActive:f("frameBackground",e)}};switch(null===c||void 0===c||null===(e=c.common)||void 0===e?void 0:e.type){case"mixed":case"boolean":case"number":case"string":{const e=h.findIndex((e=>e.value===x));return-1!==e?(p(e+1),t(e+1)):t("")}default:return t("")}}),[c,x,v,l.data,h,a,d,s,u,b,f]);return{states:h,widgetStates:g,minValue:y,maxValue:S,data:A,activeIndex:m,setActiveIndex:p,oidValue:x}}},6255:(e,t,a)=>{a.d(t,{A:()=>r});var o=a(8437),n=a(8814),i=a(6413),l=a(9159),c=a(6016);const r=function(e){let{value:t,data:{sampleInterval:a,sampleIntervalValue:r,delay:d}}=e;const{setValue:s,oidObject:u}=(0,o.useContext)(c.C),m=a?r:d,p=null===u||void 0===u?void 0:u._id,x=(0,o.useRef)(null);(0,o.useEffect)((()=>{x.current=new n.B;const e=x.current.pipe(a?(0,i.c)(m):(0,l.B)(m)).subscribe((e=>s(p,e)));return()=>{e.unsubscribe()}}),[a,m,p,s]),(0,o.useEffect)((()=>{x.current&&x.current.next(t)}),[t])}},5001:(e,t,a)=>{a.d(t,{A:()=>i});var o=a(8437),n=a(6016);const i=e=>{const{getPropertyValue:t}=(0,o.useContext)(n.C),a=t(e),[i,l]=(0,o.useState)(a);return(0,o.useEffect)((()=>{void 0!==a&&l(a)}),[a]),i}},5702:(e,t,a)=>{a.d(t,{A:()=>i});var o=a(8437);const n=["background","background-color","background-image","background-position","background-repeat","background-size","background-clip","background-origin","border","border-width","border-style","border-color","border-radius","color","text-align","text-shadow","font-family","font-size","font-weight","font-style","font-variant","line-height","letter-spacing","word-spacing","box-sizing","box-shadow"],i=e=>{const[t,a]=(0,o.useState)({}),[i,l]=(0,o.useState)({}),[c,r]=(0,o.useState)({}),[d,s]=(0,o.useState)({}),[u,m]=(0,o.useState)({}),p=JSON.stringify(e),x=(0,o.useMemo)((()=>{const e={},t={},a={},o={},i={},l=JSON.parse(p);return n.forEach((n=>{if(l[n]){const c=n.replace(/(-\w)/g,(e=>e[1].toUpperCase()));n.includes("background")?e[c]=l[n]:n.includes("border")?t[c]=l[n]:n.includes("font")||n.includes("line-height")||n.includes("letter-spacing")||n.includes("word-spacing")?o[c]=l[n]:n.includes("text")||n.includes("color")?a[c]=l[n]:i[c]=l[n]}})),{_backgroundStyles:e,_borderStyles:t,_textStyles:a,_fontStyles:o,_boxStyles:i}}),[p]);return(0,o.useEffect)((()=>{a(x._backgroundStyles),l(x._borderStyles),r(x._textStyles),s(x._fontStyles),m(x._boxStyles)}),[x]),{boxStyles:u,backgroundStyles:t,borderStyles:i,textStyles:c,fontStyles:d}}},8679:(e,t,a)=>{a.d(t,{A:()=>m});var o=a(4376),n=a(3471),i=a(7085),l=a(6240),c=a(8437),r=a(1783),d=a(6707),s=a(579);const u=function(e){let{field:t,data:a,onDataChange:o}=e;const u=null===t||void 0===t?void 0:t.name,m=(0,l.A)(),p=(0,c.useRef)(o),[x,v]=(0,c.useState)(a[u]||null),{setGradient:b}=(0,r.p)(x,v),[f,h]=(0,c.useState)(null),g=Boolean(f);return(0,c.useEffect)((()=>{u&&p.current({[u]:x})}),[x,u]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.Box,{sx:{display:"flex"},children:[!!x&&(0,s.jsx)(i.IconButton,{edge:"start",onClick:()=>{o({[u]:null}),v(null)},children:(0,s.jsx)(n.A,{})}),(0,s.jsx)(i.Box,{sx:{mt:"7px",boxSizing:"border-box",overflow:"hidden",borderRadius:"2px",width:"46px",height:"24px",border:x?"5px solid rgb(18, 18, 18)":"1px dashed",borderColor:"light"===m.name&&"action.disabledBackground"},children:(0,s.jsx)(i.Box,{onClick:e=>{h(e.currentTarget),x?b(x):b()},sx:{p:"5px",background:x||"transparent",cursor:"pointer",width:"100%",height:"100%"}})})]}),(0,s.jsx)(i.Popover,{slotProps:{paper:{elevation:0,sx:{p:"9px",borderRadius:"6px",backgroundColor:"rgb(32,32,32)"}}},open:g,anchorEl:f,onClose:()=>{h(null)},transformOrigin:{vertical:"top",horizontal:"center"},anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,s.jsx)(i.Box,{sx:{borderRadius:"6px"},children:(0,s.jsx)(d.A,{value:x,onChange:e=>{v(e),o({[u]:x})},hidePresets:!0,hideEyeDrop:!0,hideAdvancedSliders:!0,hideColorGuide:!0,hideInputType:!0,hideColorTypeBtns:!0})})})]})},m=e=>{const{groupName:t="",allFields:a=!0}=e||{},n=[{label:"",type:"custom",component:()=>(0,s.jsx)(o.A,{dividerText:"icon"}),hidden:"data.noIcon"},{name:"iconSmall".concat(t),label:"small_icon",type:"icon64",hidden:(e,a)=>e.noIcon||e["icon".concat(void 0===a?"":a)]||"iconActive"==="icon".concat(t)&&e["icon".concat(t)]},{name:"icon".concat(t),label:"icon",type:"image",hidden:(e,a)=>e.noIcon||e["iconSmall".concat(void 0===a?"":a)]||"iconSmallActive"==="iconSmall".concat(t)&&e["iconSmall".concat(t)]},{name:"iconSize".concat(t),label:"icon_size",type:"slider",min:1,max:500,step:1,hidden:"data.noIcon"},{name:"iconColor".concat(t),label:"icon_color",type:"color",hidden:"data.noIcon"},{name:"iconHover".concat(t),label:"icon_hover",type:"slider",min:0,max:300,step:1,hidden:"data.noIcon"},{name:"iconXOffset".concat(t),label:"icon_x_offset",type:"text",default:"0px",hidden:"data.noIcon"},{name:"iconYOffset".concat(t),label:"icon_y_offset",type:"text",default:"0px",hidden:"data.noIcon"},{label:"",type:"custom",component:()=>(0,s.jsx)(o.A,{dividerText:"header"}),hidden:e=>e.noHeader&&!a},{name:"noHeader".concat(t),type:"checkbox",label:"no_header"},{name:"header".concat(t),label:"header_text",type:"html",default:"",hidden:"data.noHeader"},{name:"headerSize".concat(t),label:"header_size",type:"slider",min:0,max:500,step:1,hidden:"data.noHeader"},{label:"",type:"custom",component:()=>(0,s.jsx)(o.A,{dividerText:"value"})},{name:"alias".concat(t),label:"alias",type:"html",default:""},{name:"value".concat(t),label:"value",type:"text",default:"",hidden:e=>"boolean"===e.oidType||"valueActive"===e.name},{name:"valueSize".concat(t),label:"value_size",type:"slider",min:0,max:500,step:1},{label:"",type:"custom",component:()=>(0,s.jsx)(o.A,{dividerText:"footer"}),hidden:e=>e.noFooter&&!a},{name:"noFooter".concat(t),label:"no_footer",type:"checkbox"},{name:"footer".concat(t),label:"footer_text",type:"html",default:"",hidden:"data.noFooter"},{name:"footerSize".concat(t),label:"footer_size",type:"slider",min:0,max:500,step:1,hidden:"data.noFooter"},{label:"",type:"custom",component:()=>(0,s.jsx)(o.A,{dividerText:"characteristics"})},{name:"noCard".concat(t),label:"without_card",type:"checkbox"},{name:"squaredCorner".concat(t),label:"squared_corner",type:"checkbox"},{name:"textColor".concat(t),label:"text_color",type:"color"},{label:"",name:"allFieldsDivider",type:"custom",component:()=>(0,s.jsx)(o.A,{})},{name:"outlined".concat(t),label:"outlined",type:"checkbox"},{name:"outlinedFrame".concat(t),label:"outlined_frame",type:"checkbox"},{label:"",name:"allFieldsDivider",type:"custom",component:()=>(0,s.jsx)(o.A,{})},{name:"basePadding".concat(t),label:"base_padding",type:"slider",min:0,max:10,step:.1,default:1},{name:"baseElevation".concat(t),label:"base_elevation",type:"slider",min:0,max:24,step:1,default:4},{label:"",name:"allFieldsDivider",type:"custom",component:()=>(0,s.jsx)(o.A,{dividerText:"geometry"})},{name:"square".concat(t),label:"square",type:"checkbox",hidden:"data.circle || data.ellipse"},{name:"ellipse".concat(t),label:"ellipse",type:"checkbox",hidden:"data.circle || data.square"},{name:"circle".concat(t),label:"circle",type:"checkbox",hidden:"data.ellipse || data.square"},{label:"",type:"custom",component:()=>(0,s.jsx)(o.A,{dividerText:"background"})},{name:"background".concat(t),label:"background",default:"",type:"custom",component:(e,t,a,o)=>(0,s.jsx)(u,{field:e,data:t,onDataChange:a})},{name:"backgroundColor".concat(t),label:"background_color",type:"color"},{label:"",type:"custom",component:()=>(0,s.jsx)(o.A,{dividerText:"frame_background"})},{name:"frameBackground".concat(t),label:"frame_background",default:"",type:"custom",component:(e,t,a,o)=>(0,s.jsx)(u,{field:e,data:t,onDataChange:a})},{name:"frameBackgroundColor".concat(t),label:"frame_background_color",type:"color"}];if(a){const e=["alias".concat(t),"value".concat(t)];return n.filter((t=>!e.includes(t.name)))}const i=["allFieldsDivider","noHeader".concat(t),"Active"===t?"value".concat(t):"","noFooter".concat(t),"noCard".concat(t),"squaredCorner".concat(t),"outlined".concat(t),"outlinedFrame".concat(t),"basePadding".concat(t),"baseElevation".concat(t),"square".concat(t),"ellipse".concat(t),"circle".concat(t)];return n.filter((e=>!i.includes(e.name)))}},375:(e,t,a)=>{a.d(t,{A:()=>l});var o=a(4376),n=a(579);const i=e=>async(t,a,o,n)=>{if(a.oid){var i,l,c,r,d,s,u,m;const t=await n.getObject(a.oid);if(!t)return;const p=null===(i=t.common)||void 0===i?void 0:i.type;if(!e.includes(p))return;const x=await async function(e,t){let a=null;const o=t._id.split(".");for(let i=o.length;i>0;i--){var n;const t=await e.getObject(o.slice(0,i).join("."));if(null!==t&&void 0!==t&&null!==(n=t.common)&&void 0!==n&&n.icon){a=t.common.icon;break}}return a}(n,t);if(a.oidType=p,a.write=null===t||void 0===t||null===(l=t.common)||void 0===l?void 0:l.write,a.onlyDisplay=!(null!==t&&void 0!==t&&null!==(c=t.common)&&void 0!==c&&c.write),a.unit=(null===t||void 0===t||null===(r=t.common)||void 0===r?void 0:r.unit)||"",a.minValue=(null===t||void 0===t||null===(d=t.common)||void 0===d?void 0:d.min)||0,a.maxValue=(null===t||void 0===t||null===(s=t.common)||void 0===s?void 0:s.max)||100,a.icon=x,null!==t&&void 0!==t&&null!==(u=t.common)&&void 0!==u&&u.states){if(Array.isArray(t.common.states)){const e={};t.common.states.forEach((t=>{e[t]=t})),t.common.states=e}a.values_count=Object.keys(t.common.states).length,Object.entries(t.common.states).forEach(((e,t)=>{let[o,n]=e;switch(p){case"boolean":a["value".concat(t+1)]="true"===o,a["alias".concat(t+1)]=n;break;case"number":a["value".concat(t+1)]=Number(o),a["alias".concat(t+1)]=n;break;case"string":a["value".concat(t+1)]=o,a["alias".concat(t+1)]=n}})),o(a)}else"boolean"===(null===t||void 0===t||null===(m=t.common)||void 0===m?void 0:m.type)?(a.values_count=2,a.value1=!0,a.alias1="TRUE",a.value2=!1,a.alias2="FALSE",o(a)):null!==t&&void 0!==t&&t.common&&(a.values_count=0,o(a))}else{a.icon=null,a.onlyStates=null,a.write=!1,a.onlyDisplay=!0;for(let e=1;e<=a.values_count;e++)delete a["value".concat(e)],delete a["alias".concat(e)];a.values_count=0,o(a)}},l=e=>[{name:"oid",type:"id",label:"oid",onChange:i(e)},{label:"",type:"custom",component:()=>(0,n.jsx)(o.A,{})},{name:"unit",label:"unit",type:"text",default:""},{label:"",type:"custom",component:()=>(0,n.jsx)(o.A,{}),hidden:"data.oidType === 'boolean'"},{name:"values_count",type:"number",default:0,label:"values_count",hidden:"data.oidType === 'boolean'"}]}}]);
2
- //# sourceMappingURL=src_components_CollectionDivider_jsx.40d42438.chunk.js.map