iobroker.influxdb 5.0.1 → 5.0.3

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 (56) hide show
  1. package/README.md +14 -6
  2. package/admin/custom/assets/Components-B31xFgHA.js +1 -0
  3. package/admin/custom/assets/DataBrowser-BjC3hA47.js +1 -0
  4. package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__InfluxDBComponentsSet__mf_owner__1-B9Ylge1m.js +1 -0
  5. package/admin/custom/assets/_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-B1eVfdnr.js +1243 -0
  6. package/admin/custom/assets/_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_json_mf_2_config__loadShare__.js-CxiY1CI5.js +1494 -0
  7. package/admin/custom/assets/_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-DySAygl2.js +9 -0
  8. package/admin/custom/assets/hostInit-6uyyXgUg.js +1 -0
  9. package/admin/custom/assets/index-Bqsp0Vtz.js +1 -0
  10. package/admin/custom/assets/lib-BQ9Iy9vH.js +3 -0
  11. package/admin/custom/assets/mf-entry-bootstrap-0-1d56ce7a.js +41 -0
  12. package/admin/custom/assets/rolldown-runtime-C0FnF6B9.js +1 -0
  13. package/admin/custom/assets/virtualExposes-BDloXo0b.js +1 -0
  14. package/admin/custom/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__InfluxDBComponentsSet__customComponents_js-C-UWbkzd.js +1 -0
  15. package/admin/custom/assets/virtual_mf-exposes___mfe_internal__InfluxDBComponentsSet__customComponents_js-DCQ_KAEk.js +2 -0
  16. package/admin/custom/assets/vite-preload-helper-B7qeedMF.js +1 -0
  17. package/admin/custom/customComponents.js +12 -0
  18. package/admin/custom/i18n/de.json +30 -0
  19. package/admin/custom/i18n/en.json +30 -0
  20. package/admin/custom/i18n/es.json +30 -0
  21. package/admin/custom/i18n/fr.json +30 -0
  22. package/admin/custom/i18n/it.json +30 -0
  23. package/admin/custom/i18n/nl.json +30 -0
  24. package/admin/custom/i18n/pl.json +30 -0
  25. package/admin/custom/i18n/pt.json +30 -0
  26. package/admin/custom/i18n/ru.json +30 -0
  27. package/admin/custom/i18n/uk.json +30 -0
  28. package/admin/custom/i18n/zh-cn.json +30 -0
  29. package/admin/custom/mf-manifest.json +1 -0
  30. package/admin/i18n/de.json +1 -0
  31. package/admin/i18n/en.json +1 -0
  32. package/admin/i18n/es.json +1 -0
  33. package/admin/i18n/fr.json +1 -0
  34. package/admin/i18n/it.json +1 -0
  35. package/admin/i18n/nl.json +1 -0
  36. package/admin/i18n/pl.json +1 -0
  37. package/admin/i18n/pt.json +1 -0
  38. package/admin/i18n/ru.json +1 -0
  39. package/admin/i18n/uk.json +1 -0
  40. package/admin/i18n/zh-cn.json +1 -0
  41. package/admin/jsonConfig.json +14 -0
  42. package/build/lib/Database.js +60 -1
  43. package/build/lib/Database.js.map +1 -1
  44. package/build/lib/DatabaseInfluxDB1x.js +13 -9
  45. package/build/lib/DatabaseInfluxDB1x.js.map +1 -1
  46. package/build/lib/DatabaseInfluxDB2x.js +15 -12
  47. package/build/lib/DatabaseInfluxDB2x.js.map +1 -1
  48. package/build/lib/errors.js +224 -0
  49. package/build/lib/errors.js.map +1 -0
  50. package/build/main.js +417 -132
  51. package/build/main.js.map +1 -1
  52. package/docker-compose.yaml +2 -2
  53. package/io-package.json +27 -26
  54. package/package.json +20 -4
  55. package/build/lib/aggregate.js +0 -1398
  56. package/build/lib/aggregate.js.map +0 -1
package/README.md CHANGED
@@ -457,6 +457,20 @@ sendTo('influxdb.0', 'getEnabledDPs', {}, function (result) {
457
457
  -->
458
458
 
459
459
  ## Changelog
460
+ ### 5.0.3 (2026-08-27)
461
+ * (@GermanBluefox) Errors are logged with more detail: error code, `cause` and a driver-specific error name (`HttpError`, `ServiceNotAvailableError`) are shown now, and a nested error without a message no longer degrades to `{}` (same implementation as in the SQL adapter)
462
+ * (@GermanBluefox) A switched-off or unreachable InfluxDB no longer floods the log (and syslog): a connection error is now recognized by its error code - Node reports a failed TCP connect as an `AggregateError` with an empty message, which no check could match before - so the points are buffered and a reconnect is scheduled instead of retrying every single point. The repeated error is logged once and afterwards only once an hour
463
+ * (@GermanBluefox) `getHostsAvailable()` reports the real state again: it returned a hardcoded `1` since the TypeScript port, so every "host not available" check in the adapter was dead code. After a connection error the host is now taken out of rotation for a short backoff and values are buffered instead of being written - and logged - point by point
464
+ * (@GermanBluefox) A failing buffer flush inside the interval timer no longer produces an unhandled promise rejection, which terminates the adapter process on current Node.js versions
465
+ * (@GermanBluefox) `storeState` answers with an error again if a value cannot be stored (`null`, `NaN`, or a non-numeric value for a `Number` datapoint) instead of reporting `success: true` and silently discarding it; on the state-change path such a value is still logged only once per datapoint
466
+ * (@GermanBluefox) The warning about an `undefined` state value is logged only once per datapoint as well
467
+
468
+ ### 5.0.2 (2026-08-26)
469
+ * (@GermanBluefox) Added the data browser to the configuration, so the stored values can be viewed, edited and deleted.
470
+ * (@GermanBluefox) The aggregation is used now from `@iobroker/aggregate` and is shared with the history and SQL adapters.
471
+ * (@joltcoke) Fixed average and total returning null for every interval that contains a null value: parseFloat(null) is NaN and poisoned the sum of the whole interval (thanks to @joltcoke, ioBroker/ioBroker.sql#526). As the result was NaN and not null, ignoreNull could not act on it either
472
+ * (@joltcoke) Fixed min returning a wrong value if the interval contains a null, minmax losing the minimum if the interval starts with a null, and percentile/quantile counting a null as 0
473
+
460
474
  ### 5.0.1 (2026-08-15)
461
475
  * (@GermanBluefox) Completely refactored the code to TypeScript and ES6
462
476
  * (@GermanBluefox) Added possibility to start docker containers directly from the adapter
@@ -483,12 +497,6 @@ sendTo('influxdb.0', 'getEnabledDPs', {}, function (result) {
483
497
  * (bluefox) Added support for `count` aggregate type on getHistory
484
498
  * (bluefox) minimal supported node.js version is 16 now
485
499
 
486
- ### 3.2.0 (2022-09-19)
487
- * (Apollon77) Adjust cache file to be different per instance when having multiple instances
488
-
489
- ### 3.1.8 (2022-08-13)
490
- * (Apollon77) Fix crash cases reported by Sentry
491
-
492
500
  [Older changelogs can be found there](CHANGELOG_OLD.md)
493
501
 
494
502
  ## License
@@ -0,0 +1 @@
1
+ import{t as e}from"./DataBrowser-BjC3hA47.js";var t={DataBrowser:e};export{t as default};
@@ -0,0 +1 @@
1
+ import{t as e}from"./_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_json_mf_2_config__loadShare__.js-CxiY1CI5.js";import{$t as t,An as n,B as r,Br as i,Bt as a,Dn as o,En as s,F as c,H as l,I as u,In as d,Nn as f,On as p,Ot as m,P as h,Rr as g,Sn as _,Tt as v,Ut as y,Vt as b,Wt as x,Xt as S,Zt as C,_ as w,cn as T,fn as E,hi as D,jt as O,ln as k,lt as A,pt as j,qt as M,rn as N,tn as P,u as F,un as I,wn as L,xn as R,zn as z,zr as B,zt as V}from"./_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-B1eVfdnr.js";D();var H={root:{display:`flex`,width:`100%`,height:`calc(100vh - 220px)`,minHeight:400,gap:8},list:{width:320,minWidth:220,display:`flex`,flexDirection:`column`,overflow:`hidden`},filterField:{padding:8,flexShrink:0},listItems:{overflowY:`auto`,flexGrow:1,minHeight:0},data:{flexGrow:1,display:`flex`,flexDirection:`column`,overflow:`hidden`},toolbar:{display:`flex`,alignItems:`center`,flexWrap:`nowrap`,gap:8,padding:8,overflow:`hidden`,flexShrink:0},title:{display:`flex`,flexDirection:`column`,flexGrow:1,minWidth:60,overflow:`hidden`},titleId:{fontWeight:`bold`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},titleName:{fontSize:`smaller`,opacity:.7,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},dateField:{width:200,flexShrink:0},table:{overflowY:`auto`,flexGrow:1,minHeight:0},nowrap:{whiteSpace:`nowrap`},pageInfo:{whiteSpace:`nowrap`,flexShrink:0},grow:{flexGrow:1}},U=e=>({"& input::-webkit-calendar-picker-indicator":{filter:e.palette.mode===`dark`?`invert(1)`:`none`,cursor:`pointer`}});function W(e){let t=new Date(e);if(isNaN(t.getTime()))return String(e);let n=(e,t)=>e.toString().padStart(t||2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}.${n(t.getMilliseconds(),3)}`}function G(e){let t=e=>e.toString().padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function K(e){let t=e=>e.toString().padStart(2,`0`);return`${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`}function q(e){if(!e)return;let t=new Date(e).getTime();return isNaN(t)?void 0:t}var J=class extends e{constructor(e){super(e),this.state={...this.state,points:null,names:{},filter:``,selected:null,rows:[],total:0,page:0,rowsPerPage:100,sort:`desc`,start:``,end:``,checked:[],loadingPoints:!1,loadingRows:!1,errorText:``,entryDialog:null,confirmText:``,confirmAction:null}}async componentDidMount(){await super.componentDidMount(),this.props.alive&&await this.loadDatapoints()}async componentDidUpdate(e){this.props.alive&&!e.alive&&!this.state.points&&await this.loadDatapoints()}get instance(){return`${this.props.oContext.adapterName}.${this.props.oContext.instance}`}async sendToInstance(e,t){let n=await this.props.oContext.socket.sendTo(this.instance,e,t);if(n!=null&&n.error)throw Error(n.error);return n}async loadDatapoints(){this.setState({loadingPoints:!0,errorText:``});try{let e=await this.sendToInstance(`getDatapoints`,{}),t=(e==null?void 0:e.result)||[];this.setState({points:t,loadingPoints:!1},()=>void this.loadNames(t))}catch(e){this.setState({loadingPoints:!1,points:[],errorText:e.message})}}async loadNames(e){if(e.length)try{let t=await this.props.oContext.socket.getObjectsById(e.map(e=>e.id)),n={};for(let r of e){let e=t==null?void 0:t[r.id],i=e?w.getObjectNameFromObj(e,null,{language:F.getLanguage()}):``;i&&i!==r.id&&(n[r.id]=i)}this.setState({names:n})}catch(e){console.warn(`Cannot read the names of the objects: ${e.message}`)}}async loadRows(){let e=this.state.selected;if(e){this.setState({loadingRows:!0,errorText:``});try{let t=await this.sendToInstance(`getRawEntries`,{id:e.id,start:q(this.state.start),end:q(this.state.end),limit:this.state.rowsPerPage,offset:this.state.page*this.state.rowsPerPage,sort:this.state.sort});this.setState({rows:(t==null?void 0:t.result)||[],total:(t==null?void 0:t.total)||0,checked:[],loadingRows:!1})}catch(e){this.setState({rows:[],total:0,loadingRows:!1,errorText:e.message})}}}selectDatapoint(e){this.setState({selected:e,page:0,rows:[],total:0,checked:[]},()=>void this.loadRows())}parseValue(e){var t,n;if(e===``)return null;if(((t=this.state.selected)==null?void 0:t.type)===`Number`){let t=parseFloat(e.replace(`,`,`.`));return isNaN(t)?0:t}return((n=this.state.selected)==null?void 0:n.type)===`Boolean`?e===`true`||e===`1`:e}async saveEntry(){let e=this.state.entryDialog,t=this.state.selected;if(!e||!t)return;let n=parseInt(e.ts,10);if(!n){this.setState({errorText:`Invalid timestamp`});return}let r={ts:n,val:this.parseValue(e.val),ack:e.ack,q:parseInt(e.q,10)||0};this.setState({entryDialog:null,loadingRows:!0});try{e.original?await this.sendToInstance(`update`,{id:t.id,state:r}):await this.sendToInstance(`storeState`,{id:t.id,state:r})}catch(e){this.setState({errorText:e.message})}await this.loadRows()}async deleteEntries(e){let t=this.state.selected;if(!(!t||!e.length)){this.setState({loadingRows:!0});try{e.length===1?await this.sendToInstance(`delete`,{id:t.id,ts:e[0]}):await this.sendToInstance(`delete`,e.map(e=>({id:t.id,ts:e})))}catch(e){this.setState({errorText:e.message})}await this.loadRows()}}renderDatapoints(){let e=this.state.filter.toLowerCase(),t=(this.state.points||[]).filter(t=>{var n;return!e||t.id.toLowerCase().includes(e)||((n=this.state.names[t.id])==null?void 0:n.toLowerCase().includes(e))});return i(d,{style:H.list,children:[B(M,{variant:`standard`,style:H.filterField,value:this.state.filter,onChange:e=>this.setState({filter:e.target.value}),placeholder:F.t(`influxdb_filter`),slotProps:{input:{startAdornment:B(L,{position:`start`,children:B(m,{})}),endAdornment:this.state.filter?B(L,{position:`end`,children:B(_,{size:`small`,onClick:()=>this.setState({filter:``}),children:B(u,{})})}):null}}}),this.state.loadingPoints?B(s,{}):null,i(o,{dense:!0,style:H.listItems,children:[t.map(e=>{var t;return B(p,{selected:((t=this.state.selected)==null?void 0:t.id)===e.id,onClick:()=>this.selectDatapoint(e),sx:e=>({"&.Mui-selected":{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"& .MuiListItemText-secondary":{color:e.palette.primary.contrastText,opacity:.8},"&:hover":{backgroundColor:e.palette.primary.dark}}}),children:B(n,{primary:e.id,secondary:i(g,{children:[this.state.names[e.id]?B(`b`,{children:this.state.names[e.id]}):null,this.state.names[e.id]?` `:``,`[${e.type||`?`}]`]}),slotProps:{primary:{style:{wordBreak:`break-all`}},secondary:{style:{wordBreak:`break-word`}}}})},e.id)}),!t.length&&!this.state.loadingPoints?B(C,{style:{padding:16,opacity:.7},children:F.t(this.state.filter?`influxdb_no_data`:`influxdb_no_datapoints`)}):null]})]})}renderToolbar(){var e,t;let{page:n,rowsPerPage:a,total:o}=this.state,s=o?n*a+1:0,l=Math.min((n+1)*a,o);return i(`div`,{style:H.toolbar,children:[i(`div`,{style:H.title,children:[B(S,{title:((e=this.state.selected)==null?void 0:e.id)||``,children:B(`span`,{style:H.titleId,children:(t=this.state.selected)==null?void 0:t.id})}),this.state.selected&&this.state.names[this.state.selected.id]?B(`span`,{style:H.titleName,children:this.state.names[this.state.selected.id]}):null]}),B(S,{title:F.t(`influxdb_range_start`),children:B(M,{variant:`outlined`,size:`small`,style:H.dateField,sx:U,type:`datetime-local`,value:this.state.start,onChange:e=>this.setState({start:e.target.value,page:0},()=>void this.loadRows())})}),B(S,{title:F.t(`influxdb_range_end`),children:B(M,{variant:`outlined`,size:`small`,style:H.dateField,sx:U,type:`datetime-local`,value:this.state.end,onChange:e=>this.setState({end:e.target.value,page:0},()=>void this.loadRows())})}),B(z,{variant:`outlined`,size:`small`,value:a,onChange:e=>this.setState({rowsPerPage:Number(e.target.value),page:0},()=>void this.loadRows()),children:[50,100,500,1e3].map(e=>B(f,{value:e,children:e},e))}),B(S,{title:F.t(this.state.sort===`desc`?`influxdb_sort_desc`:`influxdb_sort_asc`),children:B(_,{size:`small`,onClick:()=>this.setState({sort:this.state.sort===`desc`?`asc`:`desc`,page:0},()=>void this.loadRows()),children:this.state.sort===`desc`?B(A,{}):B(j,{})})}),B(C,{style:H.pageInfo,children:F.t(`influxdb_page`,s.toString(),l.toString(),o.toString())}),B(_,{size:`small`,disabled:!n,onClick:()=>this.setState({page:n-1},()=>void this.loadRows()),children:B(h,{})}),B(_,{size:`small`,disabled:l>=o,onClick:()=>this.setState({page:n+1},()=>void this.loadRows()),children:B(c,{})}),B(S,{title:F.t(`influxdb_refresh`),children:B(_,{size:`small`,onClick:()=>void this.loadRows(),children:B(v,{})})}),B(S,{title:F.t(`influxdb_add`),children:B(_,{size:`small`,color:`primary`,onClick:()=>this.setState({entryDialog:{original:null,ts:Date.now().toString(),val:``,ack:!0,q:`0`}}),children:B(O,{})})}),B(S,{title:F.t(`influxdb_delete_selected`),children:B(`span`,{children:B(_,{size:`small`,disabled:!this.state.checked.length,onClick:()=>this.setState({confirmText:F.t(`influxdb_confirm_delete`,this.state.checked.length.toString()),confirmAction:()=>void this.deleteEntries(this.state.checked)}),children:B(r,{})})})})]})}renderTable(){return i(`div`,{style:H.table,children:[i(V,{size:`small`,stickyHeader:!0,children:[B(y,{children:i(x,{children:[B(b,{padding:`checkbox`,children:B(N,{indeterminate:!!this.state.checked.length&&this.state.checked.length<this.state.rows.length,checked:!!this.state.rows.length&&this.state.checked.length===this.state.rows.length,onChange:e=>this.setState({checked:e.target.checked?this.state.rows.map(e=>e.ts):[]})})}),B(b,{children:F.t(`influxdb_time`)}),B(b,{children:F.t(`influxdb_value`)}),B(b,{children:F.t(`influxdb_ack`)}),B(b,{children:F.t(`influxdb_quality`)}),B(b,{children:F.t(`influxdb_from`)}),B(b,{})]})}),B(a,{children:this.state.rows.map(e=>i(x,{hover:!0,children:[B(b,{padding:`checkbox`,children:B(N,{checked:this.state.checked.includes(e.ts),onChange:t=>this.setState({checked:t.target.checked?[...this.state.checked,e.ts]:this.state.checked.filter(t=>t!==e.ts)})})}),B(b,{style:H.nowrap,children:B(S,{title:e.ts.toString(),children:B(`span`,{children:W(e.ts)})})}),B(b,{style:{wordBreak:`break-all`},children:e.val===null||e.val===void 0?B(`span`,{style:{opacity:.5},children:`null`}):e.val.toString()}),B(b,{children:e.ack?`✓`:``}),B(b,{children:e.q??``}),B(b,{style:{opacity:.7},children:e.from||``}),i(b,{padding:`none`,children:[B(_,{size:`small`,onClick:()=>this.setState({entryDialog:{original:e,ts:e.ts.toString(),val:e.val===null||e.val===void 0?``:e.val.toString(),ack:!!e.ack,q:(e.q??0).toString()}}),children:B(l,{fontSize:`small`})}),B(_,{size:`small`,onClick:()=>this.setState({confirmText:F.t(`influxdb_confirm_delete_one`,W(e.ts)),confirmAction:()=>void this.deleteEntries([e.ts])}),children:B(r,{fontSize:`small`})})]})]},e.ts))})]}),!this.state.rows.length&&!this.state.loadingRows?B(C,{style:{padding:16,opacity:.7},children:F.t(`influxdb_no_data`)}):null]})}renderTimeSelector(e){let t=parseInt(e.ts,10),n=!isNaN(t),r=!!e.original,a=(r,i)=>{let a=new Date(n?t:Date.now()),o=G(a),s=K(a),c=a.getMilliseconds();if(r===`date`){if(!i)return;o=i}else if(r===`time`){if(!i)return;s=i.length===5?`${i}:00`:i}else c=Math.min(999,Math.max(0,parseInt(i,10)||0));let l=new Date(`${o}T${s}.${c.toString().padStart(3,`0`)}`).getTime();isNaN(l)||this.setState({entryDialog:{...e,ts:l.toString()}})};return i(`div`,{children:[i(`div`,{style:{display:`flex`,gap:8,alignItems:`center`},children:[B(M,{label:F.t(`influxdb_date`),type:`date`,value:n?G(new Date(t)):``,disabled:r,style:{flexGrow:1},sx:U,slotProps:{inputLabel:{shrink:!0}},onChange:e=>a(`date`,e.target.value)}),B(M,{label:F.t(`influxdb_time`),type:`time`,value:n?K(new Date(t)):``,disabled:r,style:{flexGrow:1},sx:U,slotProps:{inputLabel:{shrink:!0},htmlInput:{step:1}},onChange:e=>a(`time`,e.target.value)}),B(M,{label:F.t(`influxdb_ms`),type:`number`,value:n?new Date(t).getMilliseconds():``,disabled:r,style:{width:100},slotProps:{inputLabel:{shrink:!0},htmlInput:{min:0,max:999}},onChange:e=>a(`ms`,e.target.value)})]}),B(C,{variant:`caption`,style:{opacity:.7},children:n?`${W(t)} · ${t}`:``})]})}renderEntryDialog(){var e;let t=this.state.entryDialog;return t?i(T,{open:!0,maxWidth:`sm`,fullWidth:!0,onClose:()=>this.setState({entryDialog:null}),children:[B(E,{children:F.t(t.original?`influxdb_save`:`influxdb_add`)}),i(I,{style:{display:`flex`,flexDirection:`column`,gap:16,paddingTop:8},children:[this.renderTimeSelector(t),((e=this.state.selected)==null?void 0:e.type)===`Boolean`?i(z,{value:t.val===`true`||t.val===`1`?`true`:`false`,onChange:e=>this.setState({entryDialog:{...t,val:e.target.value}}),children:[B(f,{value:`true`,children:`true`}),B(f,{value:`false`,children:`false`})]}):B(M,{label:F.t(`influxdb_value`),value:t.val,autoFocus:!0,onChange:e=>this.setState({entryDialog:{...t,val:e.target.value}})}),i(`div`,{style:{display:`flex`,alignItems:`center`,gap:16},children:[B(N,{checked:t.ack,onChange:e=>this.setState({entryDialog:{...t,ack:e.target.checked}})}),B(C,{children:F.t(`influxdb_ack`)}),B(M,{label:F.t(`influxdb_quality`),value:t.q,type:`number`,onChange:e=>this.setState({entryDialog:{...t,q:e.target.value}})})]})]}),i(k,{children:[B(P,{variant:`contained`,color:`primary`,onClick:()=>void this.saveEntry(),children:F.t(`influxdb_save`)}),B(P,{variant:`outlined`,onClick:()=>this.setState({entryDialog:null}),children:F.t(`influxdb_cancel`)})]})]}):null}renderConfirmDialog(){return this.state.confirmAction?i(T,{open:!0,onClose:()=>this.setState({confirmText:``,confirmAction:null}),children:[B(E,{children:F.t(`influxdb_delete`)}),B(I,{children:this.state.confirmText}),i(k,{children:[B(P,{variant:`contained`,color:`error`,startIcon:B(r,{}),onClick:()=>{let e=this.state.confirmAction;this.setState({confirmText:``,confirmAction:null},()=>e==null?void 0:e())},children:F.t(`influxdb_delete`)}),B(P,{variant:`outlined`,onClick:()=>this.setState({confirmText:``,confirmAction:null}),children:F.t(`influxdb_cancel`)})]})]}):null}renderItem(){return this.props.alive?i(t,{style:H.root,children:[this.renderDatapoints(),i(d,{style:H.data,children:[this.state.errorText?B(R,{severity:`error`,style:{flexShrink:0},onClose:()=>this.setState({errorText:``}),children:this.state.errorText}):null,this.state.selected?i(g,{children:[this.renderToolbar(),this.state.loadingRows?B(s,{}):null,this.renderTable()]}):B(C,{style:{padding:16,opacity:.7},children:F.t(`influxdb_select_datapoint`)})]}),this.renderEntryDialog(),this.renderConfirmDialog()]}):B(R,{severity:`info`,children:F.t(`influxdb_instance_not_alive`)})}};export{J as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./vite-preload-helper-B7qeedMF.js";var t={react:async()=>await e(()=>import(`./_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-B1eVfdnr.js`).then(e=>(e._i(),e.gi)),[],import.meta.url),"react/jsx-runtime":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-B1eVfdnr.js`).then(e=>e.Vr),[],import.meta.url),"react-dom":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-B1eVfdnr.js`).then(e=>(e.Jr(),e.qr)),[],import.meta.url),"react-dom/client":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-DySAygl2.js`).then(e=>e.n),[],import.meta.url),"@mui/material":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-B1eVfdnr.js`).then(e=>e.Vn),[],import.meta.url),"@mui/icons-material":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-B1eVfdnr.js`).then(e=>e.Ft),[],import.meta.url),"@iobroker/gui-components":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-B1eVfdnr.js`).then(e=>e.b),[],import.meta.url),"@iobroker/json-config":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__InfluxDBComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_json_mf_2_config__loadShare__.js-CxiY1CI5.js`).then(e=>e.n),[],import.meta.url)},n={react:{name:`react`,version:`19.2.8`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`InfluxDBComponentsSet`,canLiveRebind:!0,async get(){n.react.loaded=!0;let{react:e}=t,r={...await e()};return r.__esModule!==!0&&Object.defineProperty(r,"__esModule",{value:!0,enumerable:!1}),function(){return r}},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"react/jsx-runtime":{name:`react/jsx-runtime`,version:`19.2.8`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`InfluxDBComponentsSet`,canLiveRebind:!0,async get(){n[`react/jsx-runtime`].loaded=!0;let{"react/jsx-runtime":e}=t,r={...await e()};return r.__esModule!==!0&&Object.defineProperty(r,"__esModule",{value:!0,enumerable:!1}),function(){return r}},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"react-dom":{name:`react-dom`,version:`19.2.8`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`InfluxDBComponentsSet`,canLiveRebind:!0,async get(){n[`react-dom`].loaded=!0;let{"react-dom":e}=t,r={...await e()};return r.__esModule!==!0&&Object.defineProperty(r,"__esModule",{value:!0,enumerable:!1}),function(){return r}},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"react-dom/client":{name:`react-dom/client`,version:`19.2.8`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`InfluxDBComponentsSet`,canLiveRebind:!0,async get(){n[`react-dom/client`].loaded=!0;let{"react-dom/client":e}=t,r={...await e()};return r.__esModule!==!0&&Object.defineProperty(r,"__esModule",{value:!0,enumerable:!1}),function(){return r}},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"@mui/material":{name:`@mui/material`,version:`9.3.1`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`InfluxDBComponentsSet`,canLiveRebind:!0,async get(){n[`@mui/material`].loaded=!0;let{"@mui/material":e}=t,r={...await e()};return r.__esModule!==!0&&Object.defineProperty(r,"__esModule",{value:!0,enumerable:!1}),function(){return r}},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"@mui/icons-material":{name:`@mui/icons-material`,version:`9.3.1`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`InfluxDBComponentsSet`,canLiveRebind:!0,async get(){n[`@mui/icons-material`].loaded=!0;let{"@mui/icons-material":e}=t,r={...await e()};return r.__esModule!==!0&&Object.defineProperty(r,"__esModule",{value:!0,enumerable:!1}),function(){return r}},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"@iobroker/gui-components":{name:`@iobroker/gui-components`,version:`10.1.0`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`InfluxDBComponentsSet`,canLiveRebind:!0,async get(){n[`@iobroker/gui-components`].loaded=!0;let{"@iobroker/gui-components":e}=t,r={...await e()};return r.__esModule!==!0&&Object.defineProperty(r,"__esModule",{value:!0,enumerable:!1}),function(){return r}},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"@iobroker/json-config":{name:`@iobroker/json-config`,version:`9.0.22`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`InfluxDBComponentsSet`,canLiveRebind:!0,async get(){n[`@iobroker/json-config`].loaded=!0;let{"@iobroker/json-config":e}=t,r={...await e()};return r.__esModule!==!0&&Object.defineProperty(r,"__esModule",{value:!0,enumerable:!1}),function(){return r}},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}}},r=[];export{r as usedRemotes,n as usedShared};