iobroker.sql 4.1.5 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -18
- package/admin/custom/assets/Components-CYBqz3DR.js +1 -0
- package/admin/custom/assets/DataBrowser-CQWCId83.js +1 -0
- package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__SqlComponentsSet__mf_owner__1-BhenO-eY.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BXkVrp-h.js +1217 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__loadShare__shared-D7KMOV5W.js +2 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-CUnqgVSc.js +122 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-B_v57Qfr.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__prebuild__react_mf_2_dom_mf_1_client__prebuild__-YkkLtJg3.js +9 -0
- package/admin/custom/assets/dist-CzitsFi7.js +1 -0
- package/admin/custom/assets/helpers-BZgjFQNf.js +1 -0
- package/admin/custom/assets/hostInit-DIOUH9oj.js +1 -0
- package/admin/custom/assets/iconLibraryData-B5fiyl1C.js +1 -0
- package/admin/custom/assets/index-D6PAQQ9J.js +1 -0
- package/admin/custom/assets/lib-CbSOBh3z.js +3 -0
- package/admin/custom/assets/{mf-entry-bootstrap-0-b4ee76d6.js → mf-entry-bootstrap-0-e018258d.js} +14 -2
- package/admin/custom/assets/pendingShares-yWRueDAR.js +2 -0
- package/admin/custom/assets/rolldown-runtime-Dd_uD5pT.js +1 -0
- package/admin/custom/assets/utils-DUKzLJUz.js +4 -0
- package/admin/custom/assets/vite-preload-helper-DjNwdemH.js +1 -0
- package/admin/custom/customComponents.js +2 -2
- package/admin/custom/i18n/de.json +52 -28
- package/admin/custom/i18n/en.json +24 -0
- package/admin/custom/i18n/es.json +52 -28
- package/admin/custom/i18n/fr.json +52 -28
- package/admin/custom/i18n/it.json +52 -28
- package/admin/custom/i18n/nl.json +52 -28
- package/admin/custom/i18n/pl.json +52 -28
- package/admin/custom/i18n/pt.json +52 -28
- package/admin/custom/i18n/ru.json +52 -28
- package/admin/custom/i18n/uk.json +54 -0
- package/admin/custom/i18n/zh-cn.json +52 -28
- package/admin/custom/mf-manifest.json +1 -1
- package/admin/i18n/de.json +19 -0
- package/admin/i18n/en.json +19 -0
- package/admin/i18n/es.json +19 -0
- package/admin/i18n/fr.json +19 -0
- package/admin/i18n/it.json +19 -0
- package/admin/i18n/nl.json +19 -0
- package/admin/i18n/pl.json +19 -0
- package/admin/i18n/pt.json +19 -0
- package/admin/i18n/ru.json +19 -0
- package/admin/i18n/uk.json +98 -0
- package/admin/i18n/zh-cn.json +19 -0
- package/admin/jsonConfig.json +29 -5
- package/build/lib/connection-options.js +38 -0
- package/build/lib/connection-options.js.map +1 -0
- package/build/lib/errors.js +17 -0
- package/build/lib/errors.js.map +1 -1
- package/build/lib/messages.js +52 -0
- package/build/lib/messages.js.map +1 -0
- package/build/lib/mssql.js +51 -7
- package/build/lib/mssql.js.map +1 -1
- package/build/lib/mysql-client.js +2 -1
- package/build/lib/mysql-client.js.map +1 -1
- package/build/lib/mysql.js +54 -8
- package/build/lib/mysql.js.map +1 -1
- package/build/lib/optional-drivers.js +37 -0
- package/build/lib/optional-drivers.js.map +1 -0
- package/build/lib/postgresql.js +58 -13
- package/build/lib/postgresql.js.map +1 -1
- package/build/lib/sql-client-pool.js +7 -0
- package/build/lib/sql-client-pool.js.map +1 -1
- package/build/lib/sql-client.js +68 -8
- package/build/lib/sql-client.js.map +1 -1
- package/build/lib/sqlite.js +55 -8
- package/build/lib/sqlite.js.map +1 -1
- package/build/lib/sqlite3-client.js +2 -1
- package/build/lib/sqlite3-client.js.map +1 -1
- package/build/lib/statistics.js +90 -0
- package/build/lib/statistics.js.map +1 -0
- package/build/lib/values.js +51 -0
- package/build/lib/values.js.map +1 -0
- package/build/main.js +353 -107
- package/build/main.js.map +1 -1
- package/io-package.json +28 -27
- package/package.json +10 -11
- package/admin/custom/assets/Components-S8iGNr7Z.js +0 -1
- package/admin/custom/assets/DataBrowser-p7gAl9rX.js +0 -1
- package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__SqlComponentsSet__mf_owner__1-D0iAWb7u.js +0 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-DX7pu2bq.js +0 -1243
- package/admin/custom/assets/_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_json_mf_2_config__loadShare__.js-BOGsjPlM.js +0 -1494
- package/admin/custom/assets/_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__1__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-D3Qjxa7Y.js +0 -9
- package/admin/custom/assets/hostInit-iMaA5YUk.js +0 -1
- package/admin/custom/assets/index-BaiOuhD8.js +0 -1
- package/admin/custom/assets/lib-0ubIGmer.js +0 -3
- package/admin/custom/assets/rolldown-runtime-C0FnF6B9.js +0 -1
- package/admin/custom/assets/virtualExposes-BQEAnCIE.js +0 -1
- package/admin/custom/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__SqlComponentsSet__customComponents_js-DfdWUv0M.js +0 -1
- package/admin/custom/assets/virtual_mf-exposes___mfe_internal__SqlComponentsSet__customComponents_js-BqY7XNAF.js +0 -2
- package/admin/custom/assets/vite-preload-helper-B7qeedMF.js +0 -1
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@ You can leave port 0 if the default port is desired.
|
|
|
19
19
|
## Connection Settings
|
|
20
20
|
- **DB Type**: Type of the SQL DB: MySQL, PostgreSQL, MS-SQL or SQLite3
|
|
21
21
|
- **Host**: IP address or host name with SQL Server
|
|
22
|
+
- **Unix socket** (MySQL only): Path of a local unix socket, e.g. `/var/run/mysqld/mysqld.sock`. When set, the adapter connects through that socket and ignores Host and Port, which are hidden. Useful when the server runs on the same machine — it is faster than TCP — and it is the only way to reach a database on the Docker host from a container on a macvlan network.
|
|
22
23
|
- **Port**: Port of SQL Server (leave blank if not sure)
|
|
23
24
|
- **Database name**: Database name. Default iobroker
|
|
24
25
|
- **User**: Username for SQL. Must exist in the DB.
|
|
@@ -27,6 +28,7 @@ You can leave port 0 if the default port is desired.
|
|
|
27
28
|
- **Encrypt**: Some DBs support encryption.
|
|
28
29
|
- **Round real to**: Number of digits after the comma.
|
|
29
30
|
- **Allow parallel requests**: Allow simultaneous SQL requests to DB.
|
|
31
|
+
- **Statistics tab**: lists every ID in the database with its storage type, status (logged / logging off / state deleted), number of values, estimated size and the covered time range. The **Clean up** button first shows what would be deleted and removes it only after confirmation. States that still exist but merely have logging switched off are excluded unless you tick the checkbox, because their history is still reachable and may be wanted.
|
|
30
32
|
- **Do not create database**: Activate this option if a database already created (e.g. by administrator) and the ioBroker-user does not have enough rights to create a DB.
|
|
31
33
|
|
|
32
34
|
## Default Settings
|
|
@@ -618,6 +620,28 @@ sendTo('sql.0', 'getEnabledDPs', {}, function (result) {
|
|
|
618
620
|
-->
|
|
619
621
|
|
|
620
622
|
## Changelog
|
|
623
|
+
### 4.2.0 (2026-10-03)
|
|
624
|
+
* (@GermanBluefox) `npm run build:ts` no longer needs the optional `mysql2` and `sqlite3` drivers to be installed
|
|
625
|
+
* (@GermanBluefox) Fixed buffered values being lost when the adapter stops, and unload no longer hangs when there is nothing else to write (#577)
|
|
626
|
+
* (@GermanBluefox) `getCounter` no longer reads the NULL boundary marker that `writeNulls` stores on start and stop as a zero counter value (#577)
|
|
627
|
+
* (@GermanBluefox) Fixed "Test connection" reporting a failure for a working configuration: the request was built as a text template that could produce invalid JSON, and it left out `dbname`, `doNotCreateDatabase` and the docker settings (#355)
|
|
628
|
+
* (@GermanBluefox) "Record changes only" now compares the value instead of the controller's last-change timestamp, so an alias with a read converter no longer stores a row per source change (#295)
|
|
629
|
+
* (@GermanBluefox) Added a statistics tab listing every logged ID with its number of values and estimated size (#247)
|
|
630
|
+
* (@GermanBluefox) Added a cleanup for datapoints that are no longer logged, with a confirmation dialog showing what would be deleted (#247)
|
|
631
|
+
* (@GermanBluefox) The `Counter must have type "number"` error now names the datapoint and is logged once instead of for every value (#320)
|
|
632
|
+
* (@DutchmanNL) PostgreSQL: "do not create database" now connects straight to the configured database instead of opening the maintenance database `postgres` first, so roles without `CONNECT` on it can be used
|
|
633
|
+
* (@GermanBluefox) MySQL can now connect through a unix socket instead of host and port (#104)
|
|
634
|
+
* (@DutchmanNL) Fixed `info.connection` staying `true` while the database was unreachable
|
|
635
|
+
* (@GermanBluefox) Fixed crash (UNCAUGHT_EXCEPTION) when the database server closes the connection: the driver's `error` event had no listener (#527)
|
|
636
|
+
* (@GermanBluefox) A connection that the server dropped is now replaced instead of being handed out again
|
|
637
|
+
|
|
638
|
+
### 4.1.6 (2026-10-01)
|
|
639
|
+
* (@DutchmanNL) Fixed `getCounter` on PostgreSQL: the queries used MySQL-style backtick quoting
|
|
640
|
+
* (@DutchmanNL) Fixed `getCounter` on SQLite: `ORDER BY`/`LIMIT` is not allowed on a compound-select member
|
|
641
|
+
* (@DutchmanNL) Fixed `getCounter` on MS SQL: the counter subquery filtered on `ts_number` instead of `ts_counter`
|
|
642
|
+
* (@GermanBluefox) `getCounter` now sorts in the outer query on all dialects, so the row order no longer depends on the query plan
|
|
643
|
+
* (@DutchmanNL) Added `getCounter` test coverage for all four dialects
|
|
644
|
+
|
|
621
645
|
### 4.1.5 (2026-08-28)
|
|
622
646
|
* (@GermanBluefox) Updated packages
|
|
623
647
|
|
|
@@ -628,24 +652,6 @@ sendTo('sql.0', 'getEnabledDPs', {}, function (result) {
|
|
|
628
652
|
* (@GermanBluefox) Connection errors are logged with the real reason again: Node reports a failed TCP connect as an `AggregateError` whose own message is empty, so the log only showed the word `AggregateError` instead of e.g. `connect ECONNREFUSED 127.0.0.1:3306`
|
|
629
653
|
* (@GermanBluefox) The reconnection loop no longer repeats the same connection error every 30 seconds: the first occurrence is logged as error, repetitions go to debug and once an hour a reminder is logged
|
|
630
654
|
|
|
631
|
-
### 4.1.2 (2026-08-27)
|
|
632
|
-
* (@GermanBluefox) Fixed `enableHistory` being answered with `success: true` but silently doing nothing when it arrived while the adapter was still starting up: the adapter subscribed to object changes only after it had read the logging settings, so a message that landed in that gap activated no logging
|
|
633
|
-
* (@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
|
|
634
|
-
* (@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
|
|
635
|
-
|
|
636
|
-
### 4.1.0 (2026-08-26)
|
|
637
|
-
* (@ipod86) Added a button to the datapoint settings to delete all logged values of this datapoint
|
|
638
|
-
* (@GermanBluefox) The messages `delete`, `deleteRange` and `deleteAll` now report errors back to the caller instead of always answering with success
|
|
639
|
-
* (@GermanBluefox) The messages `delete`, `deleteRange` and `deleteAll` work now also for datapoints whose logging is disabled
|
|
640
|
-
* (@GermanBluefox) The messages `delete`, `deleteRange` and `deleteAll` delete the counter values of a numeric datapoint (table `ts_counter`) too
|
|
641
|
-
* (@GermanBluefox) Fixed `NaN` as a result of the aggregation `percentile` with 100 or `quantile` with 1
|
|
642
|
-
* (@GermanBluefox) Fixed the last value of the `integralTotal` aggregation: it was interpolated onto the start instead of the end of the requested range
|
|
643
|
-
* (@GermanBluefox) Added the message `getRawEntries` to read the stored values of one datapoint page by page (with the total number of entries) for tools that show or edit the raw data
|
|
644
|
-
* (@GermanBluefox) The message `update` works now also for datapoints whose logging is disabled and reports errors back to the caller
|
|
645
|
-
* (@GermanBluefox) `storeState` uses the data type stored in the database for known datapoints instead of deriving it from the value
|
|
646
|
-
* (@GermanBluefox) Added the tab `Data browser` to the instance settings: show, edit, delete and insert the stored values of a datapoint
|
|
647
|
-
* (@GermanBluefox) Added the message `getDatapoints` that returns all datapoints of the database immediately
|
|
648
|
-
|
|
649
655
|
[Older changelogs can be found there](CHANGELOG_OLD.md)
|
|
650
656
|
|
|
651
657
|
## License
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,Dn as t,Dt as n,Gt as r,H as i,Ht as a,Jr as o,Jt as s,Kr as c,Kt as l,L as u,O as d,Tn as f,Ut as p,Wt as m,Xt as h,bn as g,dn as _,en as v,f as y,fn as b,hn as x,in as S,kn as C,mn as w,nn as T,on as E,pn as D,qr as O,qt as k,sn as A,wn as j,zn as M}from"./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BXkVrp-h.js";import{t as N}from"./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__loadShare__shared-D7KMOV5W.js";import{t as P}from"./DataBrowser-CQWCId83.js";function F(e){if(e==null)return`—`;let t=[`B`,`KiB`,`MiB`,`GiB`,`TiB`],n=e,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${r===0?n:n.toFixed(1)} ${t[r]}`}function I(e){return e?new Date(e).toLocaleString():`—`}var L={active:`success`,loggingDisabled:`warning`,objectMissing:`error`},R={active:`sql_status_active`,loggingDisabled:`sql_status_disabled`,objectMissing:`sql_status_missing`},z={DataBrowser:P,Statistics:class extends N{constructor(e){super(e),Object.assign(this.state,{stats:null,summary:null,loading:!1,errorText:``,filter:``,sortField:`count`,sortAsc:!1,preview:null,includeDisabled:!1,deleting:!1,doneText:``})}async componentDidMount(){await super.componentDidMount(),this.props.alive&&await this.load()}async componentDidUpdate(e){this.props.alive&&!e.alive&&!this.state.stats&&await this.load()}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 load(){this.setState({loading:!0,errorText:``,doneText:``});try{let e=await this.sendToInstance(`getDpStatistics`,{});this.setState({stats:(e==null?void 0:e.result)||[],summary:(e==null?void 0:e.summary)||null,loading:!1})}catch(e){this.setState({loading:!1,stats:[],summary:null,errorText:e.message})}}async requestPreview(e){this.setState({loading:!0,errorText:``});try{let t=await this.sendToInstance(`cleanupOrphaned`,{scope:{objectMissing:!0,loggingDisabled:e}});this.setState({loading:!1,includeDisabled:e,preview:{datapoints:t.datapoints,rows:t.rows,estimatedBytes:t.estimatedBytes,items:t.items||[]}})}catch(e){this.setState({loading:!1,errorText:e.message})}}async confirmCleanup(){this.setState({deleting:!0,errorText:``});try{let e=await this.sendToInstance(`cleanupOrphaned`,{scope:{objectMissing:!0,loggingDisabled:this.state.includeDisabled},confirm:!0});this.setState({deleting:!1,preview:null,doneText:y.t(`sql_cleanup_done`,e.deleted.rows,e.deleted.datapoints)},()=>void this.load())}catch(e){this.setState({deleting:!1,errorText:e.message})}}sortedStats(){let{stats:e,filter:t,sortField:n,sortAsc:r}=this.state,i=t.trim().toLowerCase(),a=(e||[]).filter(e=>!i||e.id.toLowerCase().includes(i)),o=r?1:-1;return a.sort((e,t)=>{let r=e[n],i=t[n];return r===i?e.id>t.id?1:e.id<t.id?-1:0:r==null?1:i==null?-1:(r>i?1:-1)*o})}renderSortLabel(e,t){return O(s,{active:this.state.sortField===e,direction:this.state.sortField===e&&this.state.sortAsc?`asc`:`desc`,onClick:()=>this.setState({sortField:e,sortAsc:this.state.sortField!==e||!this.state.sortAsc}),children:y.t(t)})}renderSummary(){let{summary:e}=this.state;if(!e)return null;let t=e.byStatus.objectMissing,n=e.byStatus.loggingDisabled;return o(T,{sx:{display:`flex`,gap:2,flexWrap:`wrap`,alignItems:`center`,mb:1},children:[O(v,{variant:`body2`,children:y.t(`sql_summary_total`,e.datapoints,e.rows,F(e.estimatedBytes))}),!!t.datapoints&&O(A,{color:`error`,size:`small`,label:y.t(`sql_summary_missing`,t.datapoints,t.rows)}),!!n.datapoints&&O(A,{color:`warning`,size:`small`,label:y.t(`sql_summary_disabled`,n.datapoints,n.rows)})]})}renderConfirmDialog(){let{preview:e,includeDisabled:t,deleting:n}=this.state;return e?o(_,{open:!0,onClose:()=>!n&&this.setState({preview:null}),maxWidth:`md`,fullWidth:!0,children:[O(x,{children:y.t(`sql_cleanup_confirm_title`)}),O(D,{children:e.datapoints?o(c,{children:[O(w,{sx:{mb:1},children:y.t(`sql_cleanup_confirm_text`,e.datapoints,e.rows,F(e.estimatedBytes))}),O(r,{component:M,sx:{maxHeight:320},children:o(a,{size:`small`,stickyHeader:!0,children:[O(l,{children:o(k,{children:[O(m,{children:y.t(`sql_col_id`)}),O(m,{children:y.t(`sql_col_status`)}),O(m,{align:`right`,children:y.t(`sql_col_count`)}),O(m,{align:`right`,children:y.t(`sql_col_size`)})]})}),O(p,{children:e.items.map(e=>o(k,{children:[O(m,{sx:{wordBreak:`break-all`},children:e.id}),O(m,{children:O(A,{size:`small`,color:L[e.status],label:y.t(R[e.status])})}),O(m,{align:`right`,children:e.count.toLocaleString()}),O(m,{align:`right`,children:F(e.estimatedBytes)})]},e.index))})]})}),t&&O(j,{severity:`warning`,icon:O(d,{}),sx:{mt:1},children:y.t(`sql_cleanup_disabled_warning`)})]}):O(w,{children:y.t(`sql_cleanup_nothing`)})}),o(b,{children:[O(S,{onClick:()=>this.setState({preview:null}),disabled:n,startIcon:O(u,{}),children:y.t(`sql_cancel`)}),O(S,{variant:`contained`,color:`error`,disabled:n||!e.datapoints,startIcon:O(i,{}),onClick:()=>void this.confirmCleanup(),children:y.t(`sql_cleanup_delete`)})]})]}):null}renderItem(){if(!this.props.alive)return O(j,{severity:`info`,children:y.t(`sql_instance_not_running`)});let s=this.sortedStats();return o(T,{sx:{width:`100%`},children:[o(T,{sx:{display:`flex`,gap:1,alignItems:`center`,flexWrap:`wrap`,mb:1},children:[O(h,{variant:`standard`,size:`small`,value:this.state.filter,placeholder:y.t(`sql_filter`),onChange:e=>this.setState({filter:e.target.value}),slotProps:{input:{endAdornment:this.state.filter?O(t,{position:`end`,children:O(f,{size:`small`,onClick:()=>this.setState({filter:``}),children:O(u,{})})}):null}}}),O(e,{title:y.t(`sql_reload`),children:O(f,{onClick:()=>void this.load(),disabled:this.state.loading,children:O(n,{})})}),O(T,{sx:{flexGrow:1}}),O(g,{control:O(E,{checked:this.state.includeDisabled,onChange:e=>this.setState({includeDisabled:e.target.checked})}),label:y.t(`sql_include_disabled`)}),O(S,{variant:`contained`,color:`error`,startIcon:O(i,{}),disabled:this.state.loading,onClick:()=>void this.requestPreview(this.state.includeDisabled),children:y.t(`sql_cleanup`)})]}),this.state.loading&&O(C,{}),!!this.state.errorText&&O(j,{severity:`error`,sx:{mb:1},onClose:()=>this.setState({errorText:``}),children:this.state.errorText}),!!this.state.doneText&&O(j,{severity:`success`,sx:{mb:1},onClose:()=>this.setState({doneText:``}),children:this.state.doneText}),this.renderSummary(),O(r,{component:M,children:o(a,{size:`small`,stickyHeader:!0,children:[O(l,{children:o(k,{children:[O(m,{children:this.renderSortLabel(`id`,`sql_col_id`)}),O(m,{children:y.t(`sql_col_type`)}),O(m,{children:this.renderSortLabel(`status`,`sql_col_status`)}),O(m,{align:`right`,children:this.renderSortLabel(`count`,`sql_col_count`)}),O(m,{align:`right`,children:this.renderSortLabel(`estimatedBytes`,`sql_col_size`)}),O(m,{children:y.t(`sql_col_first`)}),O(m,{children:this.renderSortLabel(`lastTs`,`sql_col_last`)})]})}),o(p,{children:[s.map(e=>o(k,{hover:!0,children:[O(m,{sx:{wordBreak:`break-all`},children:e.id}),O(m,{children:e.type||`—`}),O(m,{children:O(A,{size:`small`,color:L[e.status],label:y.t(R[e.status])})}),O(m,{align:`right`,children:e.count.toLocaleString()}),O(m,{align:`right`,children:F(e.estimatedBytes)}),O(m,{children:I(e.firstTs)}),O(m,{children:I(e.lastTs)})]},e.index)),!s.length&&!this.state.loading&&O(k,{children:O(m,{colSpan:7,children:O(v,{variant:`body2`,sx:{opacity:.7},children:y.t(this.state.filter?`sql_no_data`:`sql_no_datapoints`)})})})]})]})}),O(v,{variant:`caption`,sx:{display:`block`,mt:1,opacity:.7},children:y.t(`sql_size_is_estimate`)}),this.renderConfirmDialog()]})}}};export{z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,An as t,At as n,Dn as r,Dt as i,F as a,Hn as o,Ht as s,I as c,In as l,Jr as u,Kr as d,Kt as f,L as p,Nn as m,Nt as h,Tn as g,Ut as _,V as v,W as y,Wt as b,Xt as x,b as S,dn as C,dt as w,en as T,f as E,fn as D,hn as O,ht as k,in as A,jn as j,kn as M,nn as N,on as P,pn as F,qr as I,qt as L,wn as R,zn as z}from"./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BXkVrp-h.js";import{t as B}from"./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__loadShare__shared-D7KMOV5W.js";var V={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}},H=e=>({"& input::-webkit-calendar-picker-indicator":{filter:e.palette.mode===`dark`?`invert(1)`:`none`,cursor:`pointer`}});function U(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 W(e){let t=e=>e.toString().padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function G(e){let t=e=>e.toString().padStart(2,`0`);return`${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`}function K(e){if(!e)return;let t=new Date(e).getTime();return isNaN(t)?void 0:t}var q=class extends B{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?S.getObjectNameFromObj(e,null,{language:E.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:K(this.state.start),end:K(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(),i=(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 u(z,{style:V.list,children:[I(x,{variant:`standard`,style:V.filterField,value:this.state.filter,onChange:e=>this.setState({filter:e.target.value}),placeholder:E.t(`sql_filter`),slotProps:{input:{startAdornment:I(r,{position:`start`,children:I(n,{})}),endAdornment:this.state.filter?I(r,{position:`end`,children:I(g,{size:`small`,onClick:()=>this.setState({filter:``}),children:I(p,{})})}):null}}}),this.state.loadingPoints?I(M,{}):null,u(t,{dense:!0,style:V.listItems,children:[i.map(e=>{var t;return I(j,{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:I(m,{primary:e.id,secondary:u(d,{children:[this.state.names[e.id]?I(`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)}),!i.length&&!this.state.loadingPoints?I(T,{style:{padding:16,opacity:.7},children:E.t(this.state.filter?`sql_no_data`:`sql_no_datapoints`)}):null]})]})}renderToolbar(){var t,n;let{page:r,rowsPerPage:s,total:d}=this.state,f=d?r*s+1:0,p=Math.min((r+1)*s,d);return u(`div`,{style:V.toolbar,children:[u(`div`,{style:V.title,children:[I(e,{title:((t=this.state.selected)==null?void 0:t.id)||``,children:I(`span`,{style:V.titleId,children:(n=this.state.selected)==null?void 0:n.id})}),this.state.selected&&this.state.names[this.state.selected.id]?I(`span`,{style:V.titleName,children:this.state.names[this.state.selected.id]}):null]}),I(e,{title:E.t(`sql_range_start`),children:I(x,{variant:`outlined`,size:`small`,style:V.dateField,sx:H,type:`datetime-local`,value:this.state.start,onChange:e=>this.setState({start:e.target.value,page:0},()=>void this.loadRows())})}),I(e,{title:E.t(`sql_range_end`),children:I(x,{variant:`outlined`,size:`small`,style:V.dateField,sx:H,type:`datetime-local`,value:this.state.end,onChange:e=>this.setState({end:e.target.value,page:0},()=>void this.loadRows())})}),I(o,{variant:`outlined`,size:`small`,value:s,onChange:e=>this.setState({rowsPerPage:Number(e.target.value),page:0},()=>void this.loadRows()),children:[50,100,500,1e3].map(e=>I(l,{value:e,children:e},e))}),I(e,{title:E.t(this.state.sort===`desc`?`sql_sort_desc`:`sql_sort_asc`),children:I(g,{size:`small`,onClick:()=>this.setState({sort:this.state.sort===`desc`?`asc`:`desc`,page:0},()=>void this.loadRows()),children:this.state.sort===`desc`?I(w,{}):I(k,{})})}),I(T,{style:V.pageInfo,children:E.t(`sql_page`,f.toString(),p.toString(),d.toString())}),I(g,{size:`small`,disabled:!r,onClick:()=>this.setState({page:r-1},()=>void this.loadRows()),children:I(a,{})}),I(g,{size:`small`,disabled:p>=d,onClick:()=>this.setState({page:r+1},()=>void this.loadRows()),children:I(c,{})}),I(e,{title:E.t(`sql_refresh`),children:I(g,{size:`small`,onClick:()=>void this.loadRows(),children:I(i,{})})}),I(e,{title:E.t(`sql_add`),children:I(g,{size:`small`,color:`primary`,onClick:()=>this.setState({entryDialog:{original:null,ts:Date.now().toString(),val:``,ack:!0,q:`0`}}),children:I(h,{})})}),I(e,{title:E.t(`sql_delete_selected`),children:I(`span`,{children:I(g,{size:`small`,disabled:!this.state.checked.length,onClick:()=>this.setState({confirmText:E.t(`sql_confirm_delete`,this.state.checked.length.toString()),confirmAction:()=>void this.deleteEntries(this.state.checked)}),children:I(v,{})})})})]})}renderTable(){return u(`div`,{style:V.table,children:[u(s,{size:`small`,stickyHeader:!0,children:[I(f,{children:u(L,{children:[I(b,{padding:`checkbox`,children:I(P,{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):[]})})}),I(b,{children:E.t(`sql_time`)}),I(b,{children:E.t(`sql_value`)}),I(b,{children:E.t(`sql_ack`)}),I(b,{children:E.t(`sql_quality`)}),I(b,{children:E.t(`sql_from`)}),I(b,{})]})}),I(_,{children:this.state.rows.map(t=>u(L,{hover:!0,children:[I(b,{padding:`checkbox`,children:I(P,{checked:this.state.checked.includes(t.ts),onChange:e=>this.setState({checked:e.target.checked?[...this.state.checked,t.ts]:this.state.checked.filter(e=>e!==t.ts)})})}),I(b,{style:V.nowrap,children:I(e,{title:t.ts.toString(),children:I(`span`,{children:U(t.ts)})})}),I(b,{style:{wordBreak:`break-all`},children:t.val===null||t.val===void 0?I(`span`,{style:{opacity:.5},children:`null`}):t.val.toString()}),I(b,{children:t.ack?`✓`:``}),I(b,{children:t.q??``}),I(b,{style:{opacity:.7},children:t.from||``}),u(b,{padding:`none`,children:[I(g,{size:`small`,onClick:()=>this.setState({entryDialog:{original:t,ts:t.ts.toString(),val:t.val===null||t.val===void 0?``:t.val.toString(),ack:!!t.ack,q:(t.q??0).toString()}}),children:I(y,{fontSize:`small`})}),I(g,{size:`small`,onClick:()=>this.setState({confirmText:E.t(`sql_confirm_delete_one`,U(t.ts)),confirmAction:()=>void this.deleteEntries([t.ts])}),children:I(v,{fontSize:`small`})})]})]},t.ts))})]}),!this.state.rows.length&&!this.state.loadingRows?I(T,{style:{padding:16,opacity:.7},children:E.t(`sql_no_data`)}):null]})}renderTimeSelector(e){let t=parseInt(e.ts,10),n=!isNaN(t),r=!!e.original,i=(r,i)=>{let a=new Date(n?t:Date.now()),o=W(a),s=G(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 u(`div`,{children:[u(`div`,{style:{display:`flex`,gap:8,alignItems:`center`},children:[I(x,{label:E.t(`sql_date`),type:`date`,value:n?W(new Date(t)):``,disabled:r,style:{flexGrow:1},sx:H,slotProps:{inputLabel:{shrink:!0}},onChange:e=>i(`date`,e.target.value)}),I(x,{label:E.t(`sql_time`),type:`time`,value:n?G(new Date(t)):``,disabled:r,style:{flexGrow:1},sx:H,slotProps:{inputLabel:{shrink:!0},htmlInput:{step:1}},onChange:e=>i(`time`,e.target.value)}),I(x,{label:E.t(`sql_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=>i(`ms`,e.target.value)})]}),I(T,{variant:`caption`,style:{opacity:.7},children:n?`${U(t)} · ${t}`:``})]})}renderEntryDialog(){var e;let t=this.state.entryDialog;return t?u(C,{open:!0,maxWidth:`sm`,fullWidth:!0,onClose:()=>this.setState({entryDialog:null}),children:[I(O,{children:E.t(t.original?`sql_save`:`sql_add`)}),u(F,{style:{display:`flex`,flexDirection:`column`,gap:16,paddingTop:8},children:[this.renderTimeSelector(t),((e=this.state.selected)==null?void 0:e.type)===`Boolean`?u(o,{value:t.val===`true`||t.val===`1`?`true`:`false`,onChange:e=>this.setState({entryDialog:{...t,val:e.target.value}}),children:[I(l,{value:`true`,children:`true`}),I(l,{value:`false`,children:`false`})]}):I(x,{label:E.t(`sql_value`),value:t.val,autoFocus:!0,onChange:e=>this.setState({entryDialog:{...t,val:e.target.value}})}),u(`div`,{style:{display:`flex`,alignItems:`center`,gap:16},children:[I(P,{checked:t.ack,onChange:e=>this.setState({entryDialog:{...t,ack:e.target.checked}})}),I(T,{children:E.t(`sql_ack`)}),I(x,{label:E.t(`sql_quality`),value:t.q,type:`number`,onChange:e=>this.setState({entryDialog:{...t,q:e.target.value}})})]})]}),u(D,{children:[I(A,{variant:`contained`,color:`primary`,onClick:()=>void this.saveEntry(),children:E.t(`sql_save`)}),I(A,{variant:`outlined`,onClick:()=>this.setState({entryDialog:null}),children:E.t(`sql_cancel`)})]})]}):null}renderConfirmDialog(){return this.state.confirmAction?u(C,{open:!0,onClose:()=>this.setState({confirmText:``,confirmAction:null}),children:[I(O,{children:E.t(`sql_delete`)}),I(F,{children:this.state.confirmText}),u(D,{children:[I(A,{variant:`contained`,color:`error`,startIcon:I(v,{}),onClick:()=>{let e=this.state.confirmAction;this.setState({confirmText:``,confirmAction:null},()=>e==null?void 0:e())},children:E.t(`sql_delete`)}),I(A,{variant:`outlined`,onClick:()=>this.setState({confirmText:``,confirmAction:null}),children:E.t(`sql_cancel`)})]})]}):null}renderItem(){return this.props.alive?u(N,{style:V.root,children:[this.renderDatapoints(),u(z,{style:V.data,children:[this.state.errorText?I(R,{severity:`error`,style:{flexShrink:0},onClose:()=>this.setState({errorText:``}),children:this.state.errorText}):null,this.state.selected?u(d,{children:[this.renderToolbar(),this.state.loadingRows?I(M,{}):null,this.renderTable()]}):I(T,{style:{padding:16,opacity:.7},children:E.t(`sql_select_datapoint`)})]}),this.renderEntryDialog(),this.renderConfirmDialog()]}):I(R,{severity:`info`,children:E.t(`sql_instance_not_alive`)})}};export{q as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./vite-preload-helper-DjNwdemH.js";import"./dist-CzitsFi7.js";var t=e=>{let t=e;for(let e=0;e<5;e++){let e=t==null?void 0:t.default;if(!e||typeof e!=`object`||Object.keys(e).length===0)break;let n=Object.getPrototypeOf(e);if(n!==null&&n!==Object.prototype)break;let r=Object.keys(t).filter(e=>e!=="default").map(e=>t[e]);if(r.length>0&&r.some(e=>e!==void 0))break;t=e}return t},n=(e,t,n,r)=>{var i,a;let o=(i=globalThis.__mf_module_cache__)==null?void 0:i.share,s=t.map(e=>o==null?void 0:o[e]).find(e=>e!==void 0),c=(s==null?void 0:s.version)??(s==null||(a=s.default)==null?void 0:a.version),l=String(c||``).split(/[^0-9]+/).map(Number),u=String(n||``).split(/[^0-9]+/).map(Number);for(let e=0;e<Math.max(l.length,u.length);e++){if((l[e]||0)<(u[e]||0))return;if((l[e]||0)>(u[e]||0))break}for(let t of e){var d;let e=o==null?void 0:o[t];if(e!==void 0&&(!r||typeof(e==null?void 0:e[r])==`function`||typeof(e==null||(d=e.default)==null?void 0:d[r])==`function`))return e}},r={react:async()=>await e(()=>import(`./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BXkVrp-h.js`).then(e=>e.yi),[],import.meta.url),"react/jsx-runtime":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-B_v57Qfr.js`),[],import.meta.url),"react-dom":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BXkVrp-h.js`).then(e=>e.mr),[],import.meta.url),"react-dom/client":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__prebuild__react_mf_2_dom_mf_1_client__prebuild__-YkkLtJg3.js`),[],import.meta.url),"@mui/material":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BXkVrp-h.js`).then(e=>e.Gn),[],import.meta.url),"@mui/icons-material":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BXkVrp-h.js`).then(e=>e.Rt),[],import.meta.url),"@iobroker/gui-components":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BXkVrp-h.js`).then(e=>e.S),[],import.meta.url),"@iobroker/json-config":async()=>await e(()=>import(`./_virtual_mf___mfe_internal__SqlComponentsSet__mf_owner__173647931027197__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-CUnqgVSc.js`),[],import.meta.url)},i={react:{name:`react`,version:`19.3.0`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`SqlComponentsSet`,canLiveRebind:!0,get(){let e=i.react;return e.lib?e.lib:(e.loading||=(async()=>{try{let{react:n}=r,i=t({...await n()});return i.__esModule!==!0&&Object.defineProperty(i,"__esModule",{value:!0,enumerable:!1}),e.lib=function(){return i},e.loaded=!0,e.lib}finally{e.loading=void 0}})(),e.loading)},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"react/jsx-runtime":{name:`react/jsx-runtime`,version:`19.3.0`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`SqlComponentsSet`,canLiveRebind:!0,get(){let e=i[`react/jsx-runtime`];if(e.lib)return e.lib;if(e.loading)return e.loading;let a=n([`default:react/jsx-runtime`,`react/jsx-runtime`],[`default:react`,`react`],`19.3.0`,void 0);return a===void 0?(e.loading=(async()=>{try{let{"react/jsx-runtime":n}=r,i=t({...await n()});return i.__esModule!==!0&&Object.defineProperty(i,"__esModule",{value:!0,enumerable:!1}),e.lib=function(){return i},e.loaded=!0,e.lib}finally{e.loading=void 0}})(),e.loading):(e.lib=function(){return a},e.loaded=!0,e.lib)},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"react-dom":{name:`react-dom`,version:`19.3.0`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`SqlComponentsSet`,canLiveRebind:!0,get(){let e=i[`react-dom`];return e.lib?e.lib:(e.loading||=(async()=>{try{let{"react-dom":n}=r,i=t({...await n()});return i.__esModule!==!0&&Object.defineProperty(i,"__esModule",{value:!0,enumerable:!1}),e.lib=function(){return i},e.loaded=!0,e.lib}finally{e.loading=void 0}})(),e.loading)},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"react-dom/client":{name:`react-dom/client`,version:`19.3.0`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`SqlComponentsSet`,canLiveRebind:!0,get(){let e=i[`react-dom/client`];if(e.lib)return e.lib;if(e.loading)return e.loading;let a=n([`default:react-dom/client`,`react-dom/client`,`default:react-dom`,`react-dom`],[`default:react`,`react`],`19.3.0`,`createRoot`);return a===void 0?(e.loading=(async()=>{try{let{"react-dom/client":n}=r,i=t({...await n()});return i.__esModule!==!0&&Object.defineProperty(i,"__esModule",{value:!0,enumerable:!1}),e.lib=function(){return i},e.loaded=!0,e.lib}finally{e.loading=void 0}})(),e.loading):(e.lib=function(){return a},e.loaded=!0,e.lib)},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"@mui/material":{name:`@mui/material`,version:`9.4.0`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`SqlComponentsSet`,canLiveRebind:!0,get(){let e=i[`@mui/material`];return e.lib?e.lib:(e.loading||=(async()=>{try{let{"@mui/material":n}=r,i=t({...await n()});return i.__esModule!==!0&&Object.defineProperty(i,"__esModule",{value:!0,enumerable:!1}),e.lib=function(){return i},e.loaded=!0,e.lib}finally{e.loading=void 0}})(),e.loading)},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"@mui/icons-material":{name:`@mui/icons-material`,version:`9.4.0`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`SqlComponentsSet`,canLiveRebind:!0,get(){let e=i[`@mui/icons-material`];return e.lib?e.lib:(e.loading||=(async()=>{try{let{"@mui/icons-material":n}=r,i=t({...await n()});return i.__esModule!==!0&&Object.defineProperty(i,"__esModule",{value:!0,enumerable:!1}),e.lib=function(){return i},e.loaded=!0,e.lib}finally{e.loading=void 0}})(),e.loading)},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"@iobroker/gui-components":{name:`@iobroker/gui-components`,version:`10.3.8`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`SqlComponentsSet`,canLiveRebind:!0,get(){let e=i[`@iobroker/gui-components`];return e.lib?e.lib:(e.loading||=(async()=>{try{let{"@iobroker/gui-components":n}=r,i=t({...await n()});return i.__esModule!==!0&&Object.defineProperty(i,"__esModule",{value:!0,enumerable:!1}),e.lib=function(){return i},e.loaded=!0,e.lib}finally{e.loading=void 0}})(),e.loading)},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}},"@iobroker/json-config":{name:`@iobroker/json-config`,version:`10.0.9`,scope:[`default`],loaded:!1,materialize:!0,eager:!1,from:`SqlComponentsSet`,canLiveRebind:!0,get(){let e=i[`@iobroker/json-config`];return e.lib?e.lib:(e.loading||=(async()=>{try{let{"@iobroker/json-config":n}=r,i=t({...await n()});return i.__esModule!==!0&&Object.defineProperty(i,"__esModule",{value:!0,enumerable:!1}),e.lib=function(){return i},e.loaded=!0,e.lib}finally{e.loading=void 0}})(),e.loading)},shareConfig:{singleton:!0,requiredVersion:`*`,strictVersion:!1,eager:!1}}},a=[];export{a as usedRemotes,i as usedShared};
|