iobroker.vis-2-widgets-collection 1.8.0 → 1.8.1
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 +4 -0
- package/io-package.json +14 -14
- package/package.json +1 -1
- package/widgets/vis-2-widgets-collection/asset-manifest.json +6 -6
- package/widgets/vis-2-widgets-collection/customWidgets.js +1 -1
- package/widgets/vis-2-widgets-collection/customWidgets.js.map +1 -1
- package/widgets/vis-2-widgets-collection/static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.bc8befed.chunk.js +2 -0
- package/widgets/vis-2-widgets-collection/static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.bc8befed.chunk.js.map +1 -0
- package/widgets/vis-2-widgets-collection/static/js/src_StateCollectionWidget_StateCollectionWidget_jsx.f9a0cb99.chunk.js +2 -0
- package/widgets/vis-2-widgets-collection/static/js/src_StateCollectionWidget_StateCollectionWidget_jsx.f9a0cb99.chunk.js.map +1 -0
- package/widgets/vis-2-widgets-collection/static/js/src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.a4aed4b6.chunk.js +2 -0
- package/widgets/vis-2-widgets-collection/static/js/src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.a4aed4b6.chunk.js.map +1 -0
- package/widgets/vis-2-widgets-collection/static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.ec5965d3.chunk.js +0 -2
- package/widgets/vis-2-widgets-collection/static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.ec5965d3.chunk.js.map +0 -1
- package/widgets/vis-2-widgets-collection/static/js/src_StateCollectionWidget_StateCollectionWidget_jsx.98f30906.chunk.js +0 -2
- package/widgets/vis-2-widgets-collection/static/js/src_StateCollectionWidget_StateCollectionWidget_jsx.98f30906.chunk.js.map +0 -1
- package/widgets/vis-2-widgets-collection/static/js/src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.feec98bf.chunk.js +0 -2
- package/widgets/vis-2-widgets-collection/static/js/src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.feec98bf.chunk.js.map +0 -1
package/README.md
CHANGED
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
### __WORK IN PROGRESS__
|
|
58
58
|
-->
|
|
59
59
|
## Changelog
|
|
60
|
+
### 1.8.1 (2025-06-30)
|
|
61
|
+
- (steiger04) Dialog feature (automate open and close via state) added
|
|
62
|
+
- (steiger04) Up handler for mouse up in State added
|
|
63
|
+
|
|
60
64
|
### 1.8.0 (2025-05-30)
|
|
61
65
|
- (steiger04) Light added
|
|
62
66
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "vis-2-widgets-collection",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.8.1": {
|
|
7
|
+
"en": "Dialog feature (automate open and close via state) added\nUp handler for mouse up in State added",
|
|
8
|
+
"de": "Dialog-Feature (automatisieren Sie geöffnet und schließen über Zustand) hinzugefügt\nNach oben Griff für Maus nach oben in Staat hinzugefügt",
|
|
9
|
+
"ru": "Диалоговая функция (автомат открыт и закрыт через состояние)\nUp handler для мыши up in State",
|
|
10
|
+
"pt": "Recurso de diálogo (automatizar abrir e fechar via estado) adicionado\nManipulador para cima do mouse no estado adicionado",
|
|
11
|
+
"nl": "Dialoogfunctie (automaat openen en sluiten via status) toegevoegd\nUp handler voor muis in staat toegevoegd",
|
|
12
|
+
"fr": "Fonction de dialogue (automatiser ouvert et fermer via l'état) ajouté\nHaut du gestionnaire pour souris haut dans l'état ajouté",
|
|
13
|
+
"it": "Funzione di dialogo (automate open and close via state) aggiunto\nCaricatore per mouse in su in Stato aggiunto",
|
|
14
|
+
"es": "Función de diálogo (automate abierto y cercano a través del estado) añadido\nEmpuñador para ratón en estado añadido",
|
|
15
|
+
"pl": "Funkcja dialogowa (automatyzacja otwierania i zamykania przez stan)\nPodajnik do myszki w stanie dodano",
|
|
16
|
+
"uk": "Додано функцію Діалогу (відкрито та закрито через стан)\nДодана ручка для миші в штаті",
|
|
17
|
+
"zh-cn": "添加对话框功能( 通过状态自动打开和关闭)\n在状态中添加鼠标上调处理器"
|
|
18
|
+
},
|
|
6
19
|
"1.8.0": {
|
|
7
20
|
"en": "Light added",
|
|
8
21
|
"de": "Licht hinzugefügt",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "Błąd dialogowy naprawiony",
|
|
81
94
|
"uk": "Діалог помилки виправлено",
|
|
82
95
|
"zh-cn": "对话框错误已修正"
|
|
83
|
-
},
|
|
84
|
-
"1.7.4": {
|
|
85
|
-
"en": "Header as title for Dialog\nGauge bug fixed",
|
|
86
|
-
"de": "Header als Titel für Dialog\nFehler behoben",
|
|
87
|
-
"ru": "Заголовок как название для Диалог\nОгонь исправлен",
|
|
88
|
-
"pt": "Header como título de Diálogo\nBug de calibre corrigido",
|
|
89
|
-
"nl": "Kop als titel voor dialoogvenster\nBugfixed",
|
|
90
|
-
"fr": "En-tête comme titre pour Dialog\nCorrection du bogue de jauge",
|
|
91
|
-
"it": "Intestazione come titolo per Dialog\nBug di Gauge fisso",
|
|
92
|
-
"es": "Header como título para Dialog\nError de Gauge fijo",
|
|
93
|
-
"pl": "Nagłówek jako tytuł dla okna dialogowego\nBłąd parametru",
|
|
94
|
-
"uk": "Заголовок для Діалога\nВиправлено помилку",
|
|
95
|
-
"zh-cn": "标题为对话框的标题\nGauge 错误已修复"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/package.json
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"vis2CollectionWidget.js": "./customWidgets.js",
|
|
5
5
|
"static/js/node_modules_prop-types_index_js.7f922324.chunk.js": "./static/js/node_modules_prop-types_index_js.7f922324.chunk.js",
|
|
6
6
|
"static/js/node_modules_react_index_js.a5285de4.chunk.js": "./static/js/node_modules_react_index_js.a5285de4.chunk.js",
|
|
7
|
-
"static/js/src_StateCollectionWidget_StateCollectionWidget_jsx.
|
|
7
|
+
"static/js/src_StateCollectionWidget_StateCollectionWidget_jsx.f9a0cb99.chunk.js": "./static/js/src_StateCollectionWidget_StateCollectionWidget_jsx.f9a0cb99.chunk.js",
|
|
8
8
|
"static/js/src_components_CollectionDivider_jsx.bf1c1de5.chunk.js": "./static/js/src_components_CollectionDivider_jsx.bf1c1de5.chunk.js",
|
|
9
9
|
"static/js/src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx.6714917c.chunk.js": "./static/js/src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx.6714917c.chunk.js",
|
|
10
10
|
"static/js/src_translations_js.c2b86983.chunk.js": "./static/js/src_translations_js.c2b86983.chunk.js",
|
|
11
|
-
"static/js/src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.
|
|
11
|
+
"static/js/src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.a4aed4b6.chunk.js": "./static/js/src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.a4aed4b6.chunk.js",
|
|
12
12
|
"static/js/src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx.45087583.chunk.js": "./static/js/src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx.45087583.chunk.js",
|
|
13
|
-
"static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.
|
|
13
|
+
"static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.bc8befed.chunk.js": "./static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.bc8befed.chunk.js",
|
|
14
14
|
"static/js/src_SelectCollectionWidget_SelectCollectionWidget_jsx.a8694cbf.chunk.js": "./static/js/src_SelectCollectionWidget_SelectCollectionWidget_jsx.a8694cbf.chunk.js",
|
|
15
15
|
"static/js/src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx.c12bfcb8.chunk.js": "./static/js/src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx.c12bfcb8.chunk.js",
|
|
16
16
|
"static/js/src_GaugeCollectionWidget_GaugeCollectionWidget_jsx.6b7eda92.chunk.js": "./static/js/src_GaugeCollectionWidget_GaugeCollectionWidget_jsx.6b7eda92.chunk.js",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"customWidgets.js.map": "./customWidgets.js.map",
|
|
32
32
|
"node_modules_prop-types_index_js.7f922324.chunk.js.map": "./static/js/node_modules_prop-types_index_js.7f922324.chunk.js.map",
|
|
33
33
|
"node_modules_react_index_js.a5285de4.chunk.js.map": "./static/js/node_modules_react_index_js.a5285de4.chunk.js.map",
|
|
34
|
-
"src_StateCollectionWidget_StateCollectionWidget_jsx.
|
|
34
|
+
"src_StateCollectionWidget_StateCollectionWidget_jsx.f9a0cb99.chunk.js.map": "./static/js/src_StateCollectionWidget_StateCollectionWidget_jsx.f9a0cb99.chunk.js.map",
|
|
35
35
|
"src_components_CollectionDivider_jsx.bf1c1de5.chunk.js.map": "./static/js/src_components_CollectionDivider_jsx.bf1c1de5.chunk.js.map",
|
|
36
36
|
"src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx.6714917c.chunk.js.map": "./static/js/src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx.6714917c.chunk.js.map",
|
|
37
37
|
"src_translations_js.c2b86983.chunk.js.map": "./static/js/src_translations_js.c2b86983.chunk.js.map",
|
|
38
|
-
"src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.
|
|
38
|
+
"src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.a4aed4b6.chunk.js.map": "./static/js/src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.a4aed4b6.chunk.js.map",
|
|
39
39
|
"src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx.45087583.chunk.js.map": "./static/js/src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx.45087583.chunk.js.map",
|
|
40
|
-
"src_DialogCollectionWidget_DialogCollectionWidget_jsx.
|
|
40
|
+
"src_DialogCollectionWidget_DialogCollectionWidget_jsx.bc8befed.chunk.js.map": "./static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.bc8befed.chunk.js.map",
|
|
41
41
|
"src_SelectCollectionWidget_SelectCollectionWidget_jsx.a8694cbf.chunk.js.map": "./static/js/src_SelectCollectionWidget_SelectCollectionWidget_jsx.a8694cbf.chunk.js.map",
|
|
42
42
|
"src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx.c12bfcb8.chunk.js.map": "./static/js/src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx.c12bfcb8.chunk.js.map",
|
|
43
43
|
"src_GaugeCollectionWidget_GaugeCollectionWidget_jsx.6b7eda92.chunk.js.map": "./static/js/src_GaugeCollectionWidget_GaugeCollectionWidget_jsx.6b7eda92.chunk.js.map",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var vis2CollectionWidget;(()=>{"use strict";var e={4727:(e,_,s)=>{var o={"./StateCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_StateCollectionWidget_StateCollectionWidget_jsx")]).then((()=>()=>s(2132))),"./SliderCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx")]).then((()=>()=>s(2127))),"./ButtonGroupCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx")]).then((()=>()=>s(3190))),"./translations":()=>s.e("src_translations_js").then((()=>()=>s(5850))),"./SwitchCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("vendors-node_modules_mui_material_Switch_Switch_js"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_SwitchCollectionWidget_SwitchCollectionWidget_jsx")]).then((()=>()=>s(4801))),"./CheckboxCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx")]).then((()=>()=>s(6047))),"./DialogCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_DialogCollectionWidget_DialogCollectionWidget_jsx")]).then((()=>()=>s(2840))),"./SelectCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_SelectCollectionWidget_SelectCollectionWidget_jsx")]).then((()=>()=>s(7903))),"./RadioGroupCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx")]).then((()=>()=>s(3810))),"./GaugeCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("vendors-node_modules_canvas-gauges_gauge_min_js"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_GaugeCollectionWidget_GaugeCollectionWidget_jsx")]).then((()=>()=>s(2435))),"./LightCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("vendors-node_modules_jaames_iro_dist_iro_es_js-node_modules_mui_icons-material_PowerSettingsNew_js"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_LightCollectionWidget_LightCollectionWidget_jsx")]).then((()=>()=>s(3269)))},t=(e,_)=>(s.R=_,_=s.o(o,e)?o[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),s.R=void 0,_),i=(e,_)=>{if(s.S){var o="default",t=s.S[o];if(t&&t!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return s.S[o]=e,s.I(o,_)}};s.d(_,{get:()=>t,init:()=>i})}},_={};function s(o){var t=_[o];if(void 0!==t)return t.exports;var i=_[o]={exports:{}};return e[o].call(i.exports,i,i.exports,s),i.exports}s.m=e,s.c=_,s.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return s.d(_,{a:_}),_},s.d=(e,_)=>{for(var o in _)s.o(_,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:_[o]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((_,o)=>(s.f[o](e,_),_)),[])),s.u=e=>"static/js/"+e+"."+{"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987":"9c21ae2e","vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js":"d38263c1","vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4":"116e9fa1","vendors-node_modules_mui_material_Switch_Switch_js":"928081a1","vendors-node_modules_mui_material_index_js":"8ba01614","vendors-node_modules_mui_system_esm_index_js":"b8618c63","node_modules_prop-types_index_js":"7f922324","vendors-node_modules_react-dom_index_js":"190f0c6e",node_modules_react_index_js:"a5285de4","vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f":"bb47ef22",src_components_CollectionDivider_jsx:"bf1c1de5",src_StateCollectionWidget_StateCollectionWidget_jsx:"98f30906",src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx:"6714917c",src_translations_js:"c2b86983",src_SwitchCollectionWidget_SwitchCollectionWidget_jsx:"feec98bf",src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx:"45087583",src_DialogCollectionWidget_DialogCollectionWidget_jsx:"ec5965d3",src_SelectCollectionWidget_SelectCollectionWidget_jsx:"a8694cbf",src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx:"c12bfcb8","vendors-node_modules_canvas-gauges_gauge_min_js":"d2cb37fb",src_GaugeCollectionWidget_GaugeCollectionWidget_jsx:"6b7eda92","vendors-node_modules_jaames_iro_dist_iro_es_js-node_modules_mui_icons-material_PowerSettingsNew_js":"cffe4b84",src_LightCollectionWidget_LightCollectionWidget_jsx:"fb54720e"}[e]+".chunk.js",s.miniCssF=e=>{},s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),s.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),(()=>{var e={},_="iobroker.vis-widgets-react-collection:";s.l=(o,t,i,n)=>{if(e[o])e[o].push(t);else{var r,d;if(void 0!==i)for(var l=document.getElementsByTagName("script"),a=0;a<l.length;a++){var u=l[a];if(u.getAttribute("src")==o||u.getAttribute("data-webpack")==_+i){r=u;break}}r||(d=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,s.nc&&r.setAttribute("nonce",s.nc),r.setAttribute("data-webpack",_+i),r.src=o),e[o]=[t];var m=(_,s)=>{r.onerror=r.onload=null,clearTimeout(c);var t=e[o];if(delete e[o],r.parentNode&&r.parentNode.removeChild(r),t&&t.forEach((e=>e(s))),_)return _(s)},c=setTimeout(m.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=m.bind(null,r.onerror),r.onload=m.bind(null,r.onload),d&&document.head.appendChild(r)}}})(),s.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{s.S={};var e={},_={};s.I=(o,t)=>{t||(t=[]);var i=_[o];if(i||(i=_[o]={}),!(t.indexOf(i)>=0)){if(t.push(i),e[o])return e[o];s.o(s.S,o)||(s.S[o]={});var n=s.S[o],r="iobroker.vis-widgets-react-collection",d=(e,_,s,o)=>{var t=n[e]=n[e]||{},i=t[_];(!i||!i.loaded&&(!o!=!i.eager?o:r>i.from))&&(t[_]={get:s,from:r,eager:!!o})},l=[];if("default"===o)d("@mui/material","*",(()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4"),s.e("vendors-node_modules_mui_material_Switch_Switch_js"),s.e("vendors-node_modules_mui_material_index_js"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4")]).then((()=>()=>s(4999))))),d("@mui/system","*",(()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4"),s.e("vendors-node_modules_mui_system_esm_index_js"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types")]).then((()=>()=>s(1200))))),d("prop-types","*",(()=>s.e("node_modules_prop-types_index_js").then((()=>()=>s(5173))))),d("react-dom","*",(()=>Promise.all([s.e("vendors-node_modules_react-dom_index_js"),s.e("webpack_sharing_consume_default_react_react")]).then((()=>()=>s(7950))))),d("react","*",(()=>s.e("node_modules_react_index_js").then((()=>()=>s(5043)))));return l.length?e[o]=Promise.all(l).then((()=>e[o]=1)):e[o]=1}}})(),(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var _=s.g.document;if(!e&&_&&(_.currentScript&&"SCRIPT"===_.currentScript.tagName.toUpperCase()&&(e=_.currentScript.src),!e)){var o=_.getElementsByTagName("script");if(o.length)for(var t=o.length-1;t>-1&&(!e||!/^http(s?):/.test(e));)e=o[t--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{var e=e=>{var _=e=>e.split(".").map((e=>+e==e?+e:e)),s=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),o=s[1]?_(s[1]):[];return s[2]&&(o.length++,o.push.apply(o,_(s[2]))),s[3]&&(o.push([]),o.push.apply(o,_(s[3]))),o},_=(_,s)=>{_=e(_),s=e(s);for(var o=0;;){if(o>=_.length)return o<s.length&&"u"!=(typeof s[o])[0];var t=_[o],i=(typeof t)[0];if(o>=s.length)return"u"==i;var n=s[o],r=(typeof n)[0];if(i!=r)return"o"==i&&"n"==r||"s"==r||"u"==i;if("o"!=i&&"u"!=i&&t!=n)return t<n;o++}},o=e=>{var _=e[0],s="";if(1===e.length)return"*";if(_+.5){s+=0==_?">=":-1==_?"<":1==_?"^":2==_?"~":_>0?"=":"!=";for(var t=1,i=1;i<e.length;i++)t--,s+="u"==(typeof(r=e[i]))[0]?"-":(t>0?".":"")+(t=2,r);return s}var n=[];for(i=1;i<e.length;i++){var r=e[i];n.push(0===r?"not("+d()+")":1===r?"("+d()+" || "+d()+")":2===r?n.pop()+" "+n.pop():o(r))}return d();function d(){return n.pop().replace(/^\((.+)\)$/,"$1")}},t=(_,s)=>{if(0 in _){s=e(s);var o=_[0],i=o<0;i&&(o=-o-1);for(var n=0,r=1,d=!0;;r++,n++){var l,a,u=r<_.length?(typeof _[r])[0]:"";if(n>=s.length||"o"==(a=(typeof(l=s[n]))[0]))return!d||("u"==u?r>o&&!i:""==u!=i);if("u"==a){if(!d||"u"!=u)return!1}else if(d)if(u==a)if(r<=o){if(l!=_[r])return!1}else{if(i?l>_[r]:l<_[r])return!1;l!=_[r]&&(d=!1)}else if("s"!=u&&"n"!=u){if(i||r<=o)return!1;d=!1,r--}else{if(r<=o||a<u!=i)return!1;d=!1}else"s"!=u&&"n"!=u&&(d=!1,r--)}}var m=[],c=m.pop.bind(m);for(n=1;n<_.length;n++){var p=_[n];m.push(1==p?c()|c():2==p?c()&c():p?t(p,s):!c())}return!!c()},i=(e,_)=>e&&s.o(e,_),n=e=>(e.loaded=1,e.get()),r=e=>Object.keys(e).reduce(((_,s)=>(e[s].eager&&(_[s]=e[s]),_)),{}),d=(e,s,o)=>{var t=o?r(e[s]):e[s];return Object.keys(t).reduce(((e,s)=>!e||!t[e].loaded&&_(e,s)?s:e),0)},l=(e,_,s,t)=>"Unsatisfied version "+s+" from "+(s&&e[_][s].from)+" of shared singleton module "+_+" (required "+o(t)+")",a=e=>{throw new Error(e)},u=e=>{"undefined"!==typeof console&&console.warn&&console.warn(e)},m=e=>function(_,o,t,i,n){var r=s.I(_);return r&&r.then&&!t?r.then(e.bind(e,_,s.S[_],o,!1,i,n)):e(_,s.S[_],o,t,i,n)},c=(e,_,s)=>s?s():((e,_)=>a("Shared module "+_+" doesn't exist in shared scope "+e))(e,_),p=m(((e,_,s,o,r,a)=>{if(!i(_,s))return c(e,s,a);var m=d(_,s,o);return t(r,m)||u(l(_,s,m,r)),n(_[s][m])})),f={},g={8437:()=>p("default","react",!1,[0],(()=>s.e("node_modules_react_index_js").then((()=>()=>s(5043))))),5973:()=>p("default","prop-types",!1,[0],(()=>s.e("node_modules_prop-types_index_js").then((()=>()=>s(5173))))),8565:()=>p("default","@mui/system",!1,[0],(()=>Promise.all([s.e("vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4"),s.e("vendors-node_modules_mui_system_esm_index_js")]).then((()=>()=>s(1200))))),3479:()=>p("default","react-dom",!1,[0],(()=>s.e("vendors-node_modules_react-dom_index_js").then((()=>()=>s(7950))))),7085:()=>p("default","@mui/material",!1,[0],(()=>Promise.all([s.e("vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4"),s.e("vendors-node_modules_mui_material_Switch_Switch_js"),s.e("vendors-node_modules_mui_material_index_js")]).then((()=>()=>s(4999)))))},h={webpack_sharing_consume_default_react_react:[8437],"webpack_sharing_consume_default_prop-types_prop-types":[5973],"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4":[8565,3479],src_components_CollectionDivider_jsx:[7085]},v={};s.f.consumes=(e,_)=>{s.o(h,e)&&h[e].forEach((e=>{if(s.o(f,e))return _.push(f[e]);if(!v[e]){var o=_=>{f[e]=0,s.m[e]=o=>{delete s.c[e],o.exports=_()}};v[e]=!0;var t=_=>{delete f[e],s.m[e]=o=>{throw delete s.c[e],_}};try{var i=g[e]();i.then?_.push(f[e]=i.then(o).catch(t)):o(i)}catch(n){t(n)}}}))}})(),(()=>{var e={vis2CollectionWidget:0};s.f.j=(_,o)=>{var t=s.o(e,_)?e[_]:void 0;if(0!==t)if(t)o.push(t[2]);else if(/^webpack_sharing_consume_default_(mui_system_mui_system\-webpack_sharing_consume_default_react\-d\-dde2d4|prop\-types_prop\-types|react_react)$/.test(_))e[_]=0;else{var i=new Promise(((s,o)=>t=e[_]=[s,o]));o.push(t[2]=i);var n=s.p+s.u(_),r=new Error;s.l(n,(o=>{if(s.o(e,_)&&(0!==(t=e[_])&&(e[_]=void 0),t)){var i=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;r.message="Loading chunk "+_+" failed.\n("+i+": "+n+")",r.name="ChunkLoadError",r.type=i,r.request=n,t[1](r)}}),"chunk-"+_,_)}};var _=(_,o)=>{var t,i,n=o[0],r=o[1],d=o[2],l=0;if(n.some((_=>0!==e[_]))){for(t in r)s.o(r,t)&&(s.m[t]=r[t]);if(d)d(s)}for(_&&_(o);l<n.length;l++)i=n[l],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},o=self.webpackChunkiobroker_vis_widgets_react_collection=self.webpackChunkiobroker_vis_widgets_react_collection||[];o.forEach(_.bind(null,0)),o.push=_.bind(null,o.push.bind(o))})();var o=s(4727);vis2CollectionWidget=o})();
|
|
1
|
+
var vis2CollectionWidget;(()=>{"use strict";var e={4727:(e,_,s)=>{var o={"./StateCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_StateCollectionWidget_StateCollectionWidget_jsx")]).then((()=>()=>s(2132))),"./SliderCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx")]).then((()=>()=>s(2127))),"./ButtonGroupCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx")]).then((()=>()=>s(3190))),"./translations":()=>s.e("src_translations_js").then((()=>()=>s(5850))),"./SwitchCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("vendors-node_modules_mui_material_Switch_Switch_js"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_SwitchCollectionWidget_SwitchCollectionWidget_jsx")]).then((()=>()=>s(4801))),"./CheckboxCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx")]).then((()=>()=>s(6047))),"./DialogCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_DialogCollectionWidget_DialogCollectionWidget_jsx")]).then((()=>()=>s(2840))),"./SelectCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_SelectCollectionWidget_SelectCollectionWidget_jsx")]).then((()=>()=>s(7903))),"./RadioGroupCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx")]).then((()=>()=>s(3810))),"./GaugeCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("vendors-node_modules_canvas-gauges_gauge_min_js"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_GaugeCollectionWidget_GaugeCollectionWidget_jsx")]).then((()=>()=>s(2435))),"./LightCollectionWidget":()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f"),s.e("vendors-node_modules_jaames_iro_dist_iro_es_js-node_modules_mui_icons-material_PowerSettingsNew_js"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4"),s.e("src_components_CollectionDivider_jsx"),s.e("src_LightCollectionWidget_LightCollectionWidget_jsx")]).then((()=>()=>s(3269)))},t=(e,_)=>(s.R=_,_=s.o(o,e)?o[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),s.R=void 0,_),i=(e,_)=>{if(s.S){var o="default",t=s.S[o];if(t&&t!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return s.S[o]=e,s.I(o,_)}};s.d(_,{get:()=>t,init:()=>i})}},_={};function s(o){var t=_[o];if(void 0!==t)return t.exports;var i=_[o]={exports:{}};return e[o].call(i.exports,i,i.exports,s),i.exports}s.m=e,s.c=_,s.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return s.d(_,{a:_}),_},s.d=(e,_)=>{for(var o in _)s.o(_,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:_[o]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((_,o)=>(s.f[o](e,_),_)),[])),s.u=e=>"static/js/"+e+"."+{"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987":"9c21ae2e","vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js":"d38263c1","vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4":"116e9fa1","vendors-node_modules_mui_material_Switch_Switch_js":"928081a1","vendors-node_modules_mui_material_index_js":"8ba01614","vendors-node_modules_mui_system_esm_index_js":"b8618c63","node_modules_prop-types_index_js":"7f922324","vendors-node_modules_react-dom_index_js":"190f0c6e",node_modules_react_index_js:"a5285de4","vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f":"bb47ef22",src_components_CollectionDivider_jsx:"bf1c1de5",src_StateCollectionWidget_StateCollectionWidget_jsx:"f9a0cb99",src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx:"6714917c",src_translations_js:"c2b86983",src_SwitchCollectionWidget_SwitchCollectionWidget_jsx:"a4aed4b6",src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx:"45087583",src_DialogCollectionWidget_DialogCollectionWidget_jsx:"bc8befed",src_SelectCollectionWidget_SelectCollectionWidget_jsx:"a8694cbf",src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx:"c12bfcb8","vendors-node_modules_canvas-gauges_gauge_min_js":"d2cb37fb",src_GaugeCollectionWidget_GaugeCollectionWidget_jsx:"6b7eda92","vendors-node_modules_jaames_iro_dist_iro_es_js-node_modules_mui_icons-material_PowerSettingsNew_js":"cffe4b84",src_LightCollectionWidget_LightCollectionWidget_jsx:"fb54720e"}[e]+".chunk.js",s.miniCssF=e=>{},s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),s.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),(()=>{var e={},_="iobroker.vis-widgets-react-collection:";s.l=(o,t,i,n)=>{if(e[o])e[o].push(t);else{var r,d;if(void 0!==i)for(var l=document.getElementsByTagName("script"),a=0;a<l.length;a++){var u=l[a];if(u.getAttribute("src")==o||u.getAttribute("data-webpack")==_+i){r=u;break}}r||(d=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,s.nc&&r.setAttribute("nonce",s.nc),r.setAttribute("data-webpack",_+i),r.src=o),e[o]=[t];var m=(_,s)=>{r.onerror=r.onload=null,clearTimeout(c);var t=e[o];if(delete e[o],r.parentNode&&r.parentNode.removeChild(r),t&&t.forEach((e=>e(s))),_)return _(s)},c=setTimeout(m.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=m.bind(null,r.onerror),r.onload=m.bind(null,r.onload),d&&document.head.appendChild(r)}}})(),s.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{s.S={};var e={},_={};s.I=(o,t)=>{t||(t=[]);var i=_[o];if(i||(i=_[o]={}),!(t.indexOf(i)>=0)){if(t.push(i),e[o])return e[o];s.o(s.S,o)||(s.S[o]={});var n=s.S[o],r="iobroker.vis-widgets-react-collection",d=(e,_,s,o)=>{var t=n[e]=n[e]||{},i=t[_];(!i||!i.loaded&&(!o!=!i.eager?o:r>i.from))&&(t[_]={get:s,from:r,eager:!!o})},l=[];if("default"===o)d("@mui/material","*",(()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js"),s.e("vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4"),s.e("vendors-node_modules_mui_material_Switch_Switch_js"),s.e("vendors-node_modules_mui_material_index_js"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types"),s.e("webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4")]).then((()=>()=>s(4999))))),d("@mui/system","*",(()=>Promise.all([s.e("vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987"),s.e("vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4"),s.e("vendors-node_modules_mui_system_esm_index_js"),s.e("webpack_sharing_consume_default_react_react"),s.e("webpack_sharing_consume_default_prop-types_prop-types")]).then((()=>()=>s(1200))))),d("prop-types","*",(()=>s.e("node_modules_prop-types_index_js").then((()=>()=>s(5173))))),d("react-dom","*",(()=>Promise.all([s.e("vendors-node_modules_react-dom_index_js"),s.e("webpack_sharing_consume_default_react_react")]).then((()=>()=>s(7950))))),d("react","*",(()=>s.e("node_modules_react_index_js").then((()=>()=>s(5043)))));return l.length?e[o]=Promise.all(l).then((()=>e[o]=1)):e[o]=1}}})(),(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var _=s.g.document;if(!e&&_&&(_.currentScript&&"SCRIPT"===_.currentScript.tagName.toUpperCase()&&(e=_.currentScript.src),!e)){var o=_.getElementsByTagName("script");if(o.length)for(var t=o.length-1;t>-1&&(!e||!/^http(s?):/.test(e));)e=o[t--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{var e=e=>{var _=e=>e.split(".").map((e=>+e==e?+e:e)),s=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),o=s[1]?_(s[1]):[];return s[2]&&(o.length++,o.push.apply(o,_(s[2]))),s[3]&&(o.push([]),o.push.apply(o,_(s[3]))),o},_=(_,s)=>{_=e(_),s=e(s);for(var o=0;;){if(o>=_.length)return o<s.length&&"u"!=(typeof s[o])[0];var t=_[o],i=(typeof t)[0];if(o>=s.length)return"u"==i;var n=s[o],r=(typeof n)[0];if(i!=r)return"o"==i&&"n"==r||"s"==r||"u"==i;if("o"!=i&&"u"!=i&&t!=n)return t<n;o++}},o=e=>{var _=e[0],s="";if(1===e.length)return"*";if(_+.5){s+=0==_?">=":-1==_?"<":1==_?"^":2==_?"~":_>0?"=":"!=";for(var t=1,i=1;i<e.length;i++)t--,s+="u"==(typeof(r=e[i]))[0]?"-":(t>0?".":"")+(t=2,r);return s}var n=[];for(i=1;i<e.length;i++){var r=e[i];n.push(0===r?"not("+d()+")":1===r?"("+d()+" || "+d()+")":2===r?n.pop()+" "+n.pop():o(r))}return d();function d(){return n.pop().replace(/^\((.+)\)$/,"$1")}},t=(_,s)=>{if(0 in _){s=e(s);var o=_[0],i=o<0;i&&(o=-o-1);for(var n=0,r=1,d=!0;;r++,n++){var l,a,u=r<_.length?(typeof _[r])[0]:"";if(n>=s.length||"o"==(a=(typeof(l=s[n]))[0]))return!d||("u"==u?r>o&&!i:""==u!=i);if("u"==a){if(!d||"u"!=u)return!1}else if(d)if(u==a)if(r<=o){if(l!=_[r])return!1}else{if(i?l>_[r]:l<_[r])return!1;l!=_[r]&&(d=!1)}else if("s"!=u&&"n"!=u){if(i||r<=o)return!1;d=!1,r--}else{if(r<=o||a<u!=i)return!1;d=!1}else"s"!=u&&"n"!=u&&(d=!1,r--)}}var m=[],c=m.pop.bind(m);for(n=1;n<_.length;n++){var p=_[n];m.push(1==p?c()|c():2==p?c()&c():p?t(p,s):!c())}return!!c()},i=(e,_)=>e&&s.o(e,_),n=e=>(e.loaded=1,e.get()),r=e=>Object.keys(e).reduce(((_,s)=>(e[s].eager&&(_[s]=e[s]),_)),{}),d=(e,s,o)=>{var t=o?r(e[s]):e[s];return Object.keys(t).reduce(((e,s)=>!e||!t[e].loaded&&_(e,s)?s:e),0)},l=(e,_,s,t)=>"Unsatisfied version "+s+" from "+(s&&e[_][s].from)+" of shared singleton module "+_+" (required "+o(t)+")",a=e=>{throw new Error(e)},u=e=>{"undefined"!==typeof console&&console.warn&&console.warn(e)},m=e=>function(_,o,t,i,n){var r=s.I(_);return r&&r.then&&!t?r.then(e.bind(e,_,s.S[_],o,!1,i,n)):e(_,s.S[_],o,t,i,n)},c=(e,_,s)=>s?s():((e,_)=>a("Shared module "+_+" doesn't exist in shared scope "+e))(e,_),p=m(((e,_,s,o,r,a)=>{if(!i(_,s))return c(e,s,a);var m=d(_,s,o);return t(r,m)||u(l(_,s,m,r)),n(_[s][m])})),f={},g={8437:()=>p("default","react",!1,[0],(()=>s.e("node_modules_react_index_js").then((()=>()=>s(5043))))),5973:()=>p("default","prop-types",!1,[0],(()=>s.e("node_modules_prop-types_index_js").then((()=>()=>s(5173))))),8565:()=>p("default","@mui/system",!1,[0],(()=>Promise.all([s.e("vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4"),s.e("vendors-node_modules_mui_system_esm_index_js")]).then((()=>()=>s(1200))))),3479:()=>p("default","react-dom",!1,[0],(()=>s.e("vendors-node_modules_react-dom_index_js").then((()=>()=>s(7950))))),7085:()=>p("default","@mui/material",!1,[0],(()=>Promise.all([s.e("vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4"),s.e("vendors-node_modules_mui_material_Switch_Switch_js"),s.e("vendors-node_modules_mui_material_index_js")]).then((()=>()=>s(4999)))))},h={webpack_sharing_consume_default_react_react:[8437],"webpack_sharing_consume_default_prop-types_prop-types":[5973],"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4":[8565,3479],src_components_CollectionDivider_jsx:[7085]},v={};s.f.consumes=(e,_)=>{s.o(h,e)&&h[e].forEach((e=>{if(s.o(f,e))return _.push(f[e]);if(!v[e]){var o=_=>{f[e]=0,s.m[e]=o=>{delete s.c[e],o.exports=_()}};v[e]=!0;var t=_=>{delete f[e],s.m[e]=o=>{throw delete s.c[e],_}};try{var i=g[e]();i.then?_.push(f[e]=i.then(o).catch(t)):o(i)}catch(n){t(n)}}}))}})(),(()=>{var e={vis2CollectionWidget:0};s.f.j=(_,o)=>{var t=s.o(e,_)?e[_]:void 0;if(0!==t)if(t)o.push(t[2]);else if(/^webpack_sharing_consume_default_(mui_system_mui_system\-webpack_sharing_consume_default_react\-d\-dde2d4|prop\-types_prop\-types|react_react)$/.test(_))e[_]=0;else{var i=new Promise(((s,o)=>t=e[_]=[s,o]));o.push(t[2]=i);var n=s.p+s.u(_),r=new Error;s.l(n,(o=>{if(s.o(e,_)&&(0!==(t=e[_])&&(e[_]=void 0),t)){var i=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;r.message="Loading chunk "+_+" failed.\n("+i+": "+n+")",r.name="ChunkLoadError",r.type=i,r.request=n,t[1](r)}}),"chunk-"+_,_)}};var _=(_,o)=>{var t,i,n=o[0],r=o[1],d=o[2],l=0;if(n.some((_=>0!==e[_]))){for(t in r)s.o(r,t)&&(s.m[t]=r[t]);if(d)d(s)}for(_&&_(o);l<n.length;l++)i=n[l],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},o=self.webpackChunkiobroker_vis_widgets_react_collection=self.webpackChunkiobroker_vis_widgets_react_collection||[];o.forEach(_.bind(null,0)),o.push=_.bind(null,o.push.bind(o))})();var o=s(4727);vis2CollectionWidget=o})();
|
|
2
2
|
//# sourceMappingURL=customWidgets.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customWidgets.js","mappings":"kEAAA,IAAIA,EAAY,CACf,0BAA2B,IACnBC,QAAQC,IAAI,CAACC,EAAoBC,EAAE,wGAAyGD,EAAoBC,EAAE,iGAAkGD,EAAoBC,EAAE,wGAAyGD,EAAoBC,EAAE,+CAAgDD,EAAoBC,EAAE,yDAA0DD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kF,EAAqB/E,KAAK,KAAM,IAC3DsF,EAAmBlH,KAAO2G,EAAqB/E,KAAK,KAAMsF,EAAmBlH,KAAK4B,KAAKsF,G,KCpFvF,IAAIE,EAAsB7K,EAAoB,M","sources":["../webpack/container-entry","../webpack/bootstrap","../webpack/runtime/compat get default export","../webpack/runtime/define property getters","../webpack/runtime/ensure chunk","../webpack/runtime/get javascript chunk filename","../webpack/runtime/get mini-css chunk filename","../webpack/runtime/global","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/load script","../webpack/runtime/make namespace object","../webpack/runtime/sharing","../webpack/runtime/publicPath","../webpack/runtime/consumes","../webpack/runtime/jsonp chunk loading","../webpack/startup"],"sourcesContent":["var moduleMap = {\n\t\"./StateCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_StateCollectionWidget_StateCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(2132)))));\n\t},\n\t\"./SliderCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\")]).then(() => (() => ((__webpack_require__(2127)))));\n\t},\n\t\"./ButtonGroupCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(3190)))));\n\t},\n\t\"./translations\": () => {\n\t\treturn __webpack_require__.e(\"src_translations_js\").then(() => (() => ((__webpack_require__(5850)))));\n\t},\n\t\"./SwitchCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"vendors-node_modules_mui_material_Switch_Switch_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_SwitchCollectionWidget_SwitchCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(4801)))));\n\t},\n\t\"./CheckboxCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(6047)))));\n\t},\n\t\"./DialogCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_DialogCollectionWidget_DialogCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(2840)))));\n\t},\n\t\"./SelectCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_SelectCollectionWidget_SelectCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(7903)))));\n\t},\n\t\"./RadioGroupCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(3810)))));\n\t},\n\t\"./GaugeCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"vendors-node_modules_canvas-gauges_gauge_min_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_GaugeCollectionWidget_GaugeCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(2435)))));\n\t},\n\t\"./LightCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"vendors-node_modules_jaames_iro_dist_iro_es_js-node_modules_mui_icons-material_PowerSettingsNew_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_LightCollectionWidget_LightCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(3269)))));\n\t}\n};\nvar get = (module, getScope) => {\n\t__webpack_require__.R = getScope;\n\tgetScope = (\n\t\t__webpack_require__.o(moduleMap, module)\n\t\t\t? moduleMap[module]()\n\t\t\t: Promise.resolve().then(() => {\n\t\t\t\tthrow new Error('Module \"' + module + '\" does not exist in container.');\n\t\t\t})\n\t);\n\t__webpack_require__.R = undefined;\n\treturn getScope;\n};\nvar init = (shareScope, initScope) => {\n\tif (!__webpack_require__.S) return;\n\tvar name = \"default\"\n\tvar oldScope = __webpack_require__.S[name];\n\tif(oldScope && oldScope !== shareScope) throw new Error(\"Container initialization failed as it has already been initialized with a different share scope\");\n\t__webpack_require__.S[name] = shareScope;\n\treturn __webpack_require__.I(name, initScope);\n};\n\n// This exports getters to disallow modifications\n__webpack_require__.d(exports, {\n\tget: () => (get),\n\tinit: () => (init)\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + chunkId + \".\" + {\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\":\"9c21ae2e\",\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\":\"d38263c1\",\"vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4\":\"116e9fa1\",\"vendors-node_modules_mui_material_Switch_Switch_js\":\"928081a1\",\"vendors-node_modules_mui_material_index_js\":\"8ba01614\",\"vendors-node_modules_mui_system_esm_index_js\":\"b8618c63\",\"node_modules_prop-types_index_js\":\"7f922324\",\"vendors-node_modules_react-dom_index_js\":\"190f0c6e\",\"node_modules_react_index_js\":\"a5285de4\",\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\":\"bb47ef22\",\"src_components_CollectionDivider_jsx\":\"bf1c1de5\",\"src_StateCollectionWidget_StateCollectionWidget_jsx\":\"98f30906\",\"src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx\":\"6714917c\",\"src_translations_js\":\"c2b86983\",\"src_SwitchCollectionWidget_SwitchCollectionWidget_jsx\":\"feec98bf\",\"src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx\":\"45087583\",\"src_DialogCollectionWidget_DialogCollectionWidget_jsx\":\"ec5965d3\",\"src_SelectCollectionWidget_SelectCollectionWidget_jsx\":\"a8694cbf\",\"src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx\":\"c12bfcb8\",\"vendors-node_modules_canvas-gauges_gauge_min_js\":\"d2cb37fb\",\"src_GaugeCollectionWidget_GaugeCollectionWidget_jsx\":\"6b7eda92\",\"vendors-node_modules_jaames_iro_dist_iro_es_js-node_modules_mui_icons-material_PowerSettingsNew_js\":\"cffe4b84\",\"src_LightCollectionWidget_LightCollectionWidget_jsx\":\"fb54720e\"}[chunkId] + \".chunk.js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","var inProgress = {};\nvar dataWebpackPrefix = \"iobroker.vis-widgets-react-collection:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => {\n\t\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n\t};\n\tvar uniqueName = \"iobroker.vis-widgets-react-collection\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult['catch'](handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t\tcase \"default\": {\n\t\t\tregister(\"@mui/material\", \"*\", () => (Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4\"), __webpack_require__.e(\"vendors-node_modules_mui_material_Switch_Switch_js\"), __webpack_require__.e(\"vendors-node_modules_mui_material_index_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\")]).then(() => (() => (__webpack_require__(4999))))));\n\t\t\tregister(\"@mui/system\", \"*\", () => (Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4\"), __webpack_require__.e(\"vendors-node_modules_mui_system_esm_index_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\")]).then(() => (() => (__webpack_require__(1200))))));\n\t\t\tregister(\"prop-types\", \"*\", () => (__webpack_require__.e(\"node_modules_prop-types_index_js\").then(() => (() => (__webpack_require__(5173))))));\n\t\t\tregister(\"react-dom\", \"*\", () => (Promise.all([__webpack_require__.e(\"vendors-node_modules_react-dom_index_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\")]).then(() => (() => (__webpack_require__(7950))))));\n\t\t\tregister(\"react\", \"*\", () => (__webpack_require__.e(\"node_modules_react_index_js\").then(() => (() => (__webpack_require__(5043))))));\n\t\t}\n\t\tbreak;\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","var parseVersion = (str) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar p=p=>{return p.split(\".\").map((p=>{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;\n}\nvar versionLt = (a, b) => {\n\t// see webpack/lib/util/semver.js for original code\n\ta=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&\"u\"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return\"u\"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return\"o\"==n&&\"n\"==f||(\"s\"==f||\"u\"==n);if(\"o\"!=n&&\"u\"!=n&&e!=t)return e<t;r++}\n}\nvar rangeToString = (range) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar r=range[0],n=\"\";if(1===range.length)return\"*\";if(r+.5){n+=0==r?\">=\":-1==r?\"<\":1==r?\"^\":2==r?\"~\":r>0?\"=\":\"!=\";for(var e=1,a=1;a<range.length;a++){e--,n+=\"u\"==(typeof(t=range[a]))[0]?\"-\":(e>0?\".\":\"\")+(e=2,t)}return n}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?\"not(\"+o()+\")\":1===t?\"(\"+o()+\" || \"+o()+\")\":2===t?g.pop()+\" \"+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,\"$1\")}\n}\nvar satisfy = (range, version) => {\n\t// see webpack/lib/util/semver.js for original code\n\tif(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:\"\";if(n>=version.length||\"o\"==(s=(typeof(f=version[n]))[0]))return!a||(\"u\"==g?i>e&&!r:\"\"==g!=r);if(\"u\"==s){if(!a||\"u\"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if(\"s\"!=g&&\"n\"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else\"s\"!=g&&\"n\"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();\n}\nvar exists = (scope, key) => {\n\treturn scope && __webpack_require__.o(scope, key);\n}\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar eagerOnly = (versions) => {\n\treturn Object.keys(versions).reduce((filtered, version) => {\n\t\t\tif (versions[version].eager) {\n\t\t\t\tfiltered[version] = versions[version];\n\t\t\t}\n\t\t\treturn filtered;\n\t}, {});\n};\nvar findLatestVersion = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key];\n};\nvar findSatisfyingVersion = (scope, key, requiredVersion, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\tif (!satisfy(requiredVersion, b)) return a;\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar findSingletonVersionKey = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\treturn Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;\n\t}, 0);\n};\nvar getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {\n\treturn \"Unsatisfied version \" + version + \" from \" + (version && scope[key][version].from) + \" of shared singleton module \" + key + \" (required \" + rangeToString(requiredVersion) + \")\"\n};\nvar getInvalidVersionMessage = (scope, scopeName, key, requiredVersion, eager) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \")\" + (eager ? \" for eager consumption\" : \"\") + \" of shared module \" + key + \" found in shared scope \" + scopeName + \".\\n\" +\n\t\t\"Available versions: \" + Object.keys(versions).map((key) => {\n\t\treturn key + \" from \" + versions[key].from;\n\t}).join(\", \");\n};\nvar fail = (msg) => {\n\tthrow new Error(msg);\n}\nvar failAsNotExist = (scopeName, key) => {\n\treturn fail(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n}\nvar warn = /*#__PURE__*/ (msg) => {\n\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n};\nvar init = (fn) => (function(scopeName, key, eager, c, d) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then && !eager) {\n\t\treturn promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], key, false, c, d));\n\t}\n\treturn fn(scopeName, __webpack_require__.S[scopeName], key, eager, c, d);\n});\n\nvar useFallback = (scopeName, key, fallback) => {\n\treturn fallback ? fallback() : failAsNotExist(scopeName, key);\n}\nvar load = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\twarn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager))\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadStrictVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\tif (fallback) return fallback();\n\tfail(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\treturn get(scope[key][version]);\n});\nvar loadSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\twarn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar loadStrictSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\tfail(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t8437: () => (loadSingletonVersion(\"default\", \"react\", false, [0], () => (__webpack_require__.e(\"node_modules_react_index_js\").then(() => (() => (__webpack_require__(5043))))))),\n\t5973: () => (loadSingletonVersion(\"default\", \"prop-types\", false, [0], () => (__webpack_require__.e(\"node_modules_prop-types_index_js\").then(() => (() => (__webpack_require__(5173))))))),\n\t8565: () => (loadSingletonVersion(\"default\", \"@mui/system\", false, [0], () => (Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4\"), __webpack_require__.e(\"vendors-node_modules_mui_system_esm_index_js\")]).then(() => (() => (__webpack_require__(1200))))))),\n\t3479: () => (loadSingletonVersion(\"default\", \"react-dom\", false, [0], () => (__webpack_require__.e(\"vendors-node_modules_react-dom_index_js\").then(() => (() => (__webpack_require__(7950))))))),\n\t7085: () => (loadSingletonVersion(\"default\", \"@mui/material\", false, [0], () => (Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4\"), __webpack_require__.e(\"vendors-node_modules_mui_material_Switch_Switch_js\"), __webpack_require__.e(\"vendors-node_modules_mui_material_index_js\")]).then(() => (() => (__webpack_require__(4999)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"webpack_sharing_consume_default_react_react\": [\n\t\t8437\n\t],\n\t\"webpack_sharing_consume_default_prop-types_prop-types\": [\n\t\t5973\n\t],\n\t\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\": [\n\t\t8565,\n\t\t3479\n\t],\n\t\"src_components_CollectionDivider_jsx\": [\n\t\t7085\n\t]\n};\nvar startedInstallModules = {};\n__webpack_require__.f.consumes = (chunkId, promises) => {\n\tif(__webpack_require__.o(chunkMapping, chunkId)) {\n\t\tchunkMapping[chunkId].forEach((id) => {\n\t\t\tif(__webpack_require__.o(installedModules, id)) return promises.push(installedModules[id]);\n\t\t\tif(!startedInstallModules[id]) {\n\t\t\tvar onFactory = (factory) => {\n\t\t\t\tinstalledModules[id] = 0;\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tmodule.exports = factory();\n\t\t\t\t}\n\t\t\t};\n\t\t\tstartedInstallModules[id] = true;\n\t\t\tvar onError = (error) => {\n\t\t\t\tdelete installedModules[id];\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tvar promise = moduleToHandlerMapping[id]();\n\t\t\t\tif(promise.then) {\n\t\t\t\t\tpromises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));\n\t\t\t\t} else onFactory(promise);\n\t\t\t} catch(e) { onError(e); }\n\t\t\t}\n\t\t});\n\t}\n}","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"vis2CollectionWidget\": 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^webpack_sharing_consume_default_(mui_system_mui_system\\-webpack_sharing_consume_default_react\\-d\\-dde2d4|prop\\-types_prop\\-types|react_react)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\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__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkiobroker_vis_widgets_react_collection\"] = self[\"webpackChunkiobroker_vis_widgets_react_collection\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__(4727);\n"],"names":["moduleMap","Promise","all","__webpack_require__","e","then","get","module","getScope","R","o","resolve","Error","undefined","init","shareScope","initScope","S","name","oldScope","I","d","exports","__webpack_module_cache__","moduleId","cachedModule","__webpack_modules__","call","m","c","n","getter","__esModule","a","definition","key","Object","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","miniCssF","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","initPromises","initTokens","initToken","indexOf","scope","uniqueName","register","version","factory","eager","versions","activeVersion","loaded","from","scriptUrl","importScripts","location","currentScript","tagName","toUpperCase","test","replace","p","parseVersion","str","split","map","exec","apply","versionLt","b","t","rangeToString","range","pop","satisfy","exists","entry","eagerOnly","filtered","findSingletonVersionKey","getInvalidSingletonVersionMessage","requiredVersion","fail","msg","warn","console","scopeName","promise","useFallback","fallback","failAsNotExist","loadSingletonVersion","installedModules","moduleToHandlerMapping","chunkMapping","startedInstallModules","consumes","id","onFactory","onError","error","installedChunks","j","installedChunkData","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"customWidgets.js","mappings":"kEAAA,IAAIA,EAAY,CACf,0BAA2B,IACnBC,QAAQC,IAAI,CAACC,EAAoBC,EAAE,wGAAyGD,EAAoBC,EAAE,iGAAkGD,EAAoBC,EAAE,wGAAyGD,EAAoBC,EAAE,+CAAgDD,EAAoBC,EAAE,yDAA0DD,EAAoBC,EAAE,wGAAyGD,EAAoBC,EAAE,wCAAyCD,EAAoBC,EAAE,yDAAyDC,MAAK,IAAM,IAASF,EAAoB,QAEt1B,2BAA4B,IACpBF,QAAQC,IAAI,CAACC,EAAoBC,EAAE,wGAAyGD,EAAoBC,EAAE,iGAAkGD,EAAoBC,EAAE,wGAAyGD,EAAoBC,EAAE,+CAAgDD,EAAoBC,EAAE,yDAA0DD,EAAoBC,EAAE,wGAAyGD,EAAoBC,EAAE,0CAA0CC,MAAK,IAAM,IAASF,EAAoB,QAExwB,gCAAiC,IACzBF,QAAQC,IAAI,CAACC,EAAoBC,EAAE,w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A,EAAMY,QAAUZ,EAAMY,OAAOf,IACpDmF,EAAMO,QAAU,iBAAmB7H,EAAU,cAAgB2H,EAAY,KAAOC,EAAU,IAC1FN,EAAM5I,KAAO,iBACb4I,EAAMrE,KAAO0E,EACbL,EAAMQ,QAAUF,EAChBH,EAAmB,GAAGH,EACvB,CACD,GAEwC,SAAWtH,EAASA,EAC9D,CAEF,EAcF,IAAI+H,EAAuB,CAACC,EAA4BC,KACvD,IAKIjJ,EAAUgB,EALVkI,EAAWD,EAAK,GAChBE,EAAcF,EAAK,GACnBG,EAAUH,EAAK,GAGIvG,EAAI,EAC3B,GAAGwG,EAASG,MAAMlB,GAAgC,IAAxBI,EAAgBJ,KAAa,CACtD,IAAInI,KAAYmJ,EACZxK,EAAoBO,EAAEiK,EAAanJ,KACrCrB,EAAoByB,EAAEJ,GAAYmJ,EAAYnJ,IAGhD,GAAGoJ,EAAsBA,EAAQzK,EAClC,CAEA,IADGqK,GAA4BA,EAA2BC,GACrDvG,EAAIwG,EAASvG,OAAQD,IACzB1B,EAAUkI,EAASxG,GAChB/D,EAAoBO,EAAEqJ,EAAiBvH,IAAYuH,EAAgBvH,IACrEuH,EAAgBvH,GAAS,KAE1BuH,EAAgBvH,GAAW,CAC5B,EAIGsI,EAAqBC,KAAwD,kDAAIA,KAAwD,mDAAK,GAClJD,EAAmBzF,QAAQkF,EAAqB/E,KAAK,KAAM,IAC3DsF,EAAmBlH,KAAO2G,EAAqB/E,KAAK,KAAMsF,EAAmBlH,KAAK4B,KAAKsF,G,KCpFvF,IAAIE,EAAsB7K,EAAoB,M","sources":["../webpack/container-entry","../webpack/bootstrap","../webpack/runtime/compat get default export","../webpack/runtime/define property getters","../webpack/runtime/ensure chunk","../webpack/runtime/get javascript chunk filename","../webpack/runtime/get mini-css chunk filename","../webpack/runtime/global","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/load script","../webpack/runtime/make namespace object","../webpack/runtime/sharing","../webpack/runtime/publicPath","../webpack/runtime/consumes","../webpack/runtime/jsonp chunk loading","../webpack/startup"],"sourcesContent":["var moduleMap = {\n\t\"./StateCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_StateCollectionWidget_StateCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(2132)))));\n\t},\n\t\"./SliderCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\")]).then(() => (() => ((__webpack_require__(2127)))));\n\t},\n\t\"./ButtonGroupCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(3190)))));\n\t},\n\t\"./translations\": () => {\n\t\treturn __webpack_require__.e(\"src_translations_js\").then(() => (() => ((__webpack_require__(5850)))));\n\t},\n\t\"./SwitchCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"vendors-node_modules_mui_material_Switch_Switch_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_SwitchCollectionWidget_SwitchCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(4801)))));\n\t},\n\t\"./CheckboxCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(6047)))));\n\t},\n\t\"./DialogCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_DialogCollectionWidget_DialogCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(2840)))));\n\t},\n\t\"./SelectCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_SelectCollectionWidget_SelectCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(7903)))));\n\t},\n\t\"./RadioGroupCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(3810)))));\n\t},\n\t\"./GaugeCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"vendors-node_modules_canvas-gauges_gauge_min_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_GaugeCollectionWidget_GaugeCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(2435)))));\n\t},\n\t\"./LightCollectionWidget\": () => {\n\t\treturn Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\"), __webpack_require__.e(\"vendors-node_modules_jaames_iro_dist_iro_es_js-node_modules_mui_icons-material_PowerSettingsNew_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\"), __webpack_require__.e(\"src_components_CollectionDivider_jsx\"), __webpack_require__.e(\"src_LightCollectionWidget_LightCollectionWidget_jsx\")]).then(() => (() => ((__webpack_require__(3269)))));\n\t}\n};\nvar get = (module, getScope) => {\n\t__webpack_require__.R = getScope;\n\tgetScope = (\n\t\t__webpack_require__.o(moduleMap, module)\n\t\t\t? moduleMap[module]()\n\t\t\t: Promise.resolve().then(() => {\n\t\t\t\tthrow new Error('Module \"' + module + '\" does not exist in container.');\n\t\t\t})\n\t);\n\t__webpack_require__.R = undefined;\n\treturn getScope;\n};\nvar init = (shareScope, initScope) => {\n\tif (!__webpack_require__.S) return;\n\tvar name = \"default\"\n\tvar oldScope = __webpack_require__.S[name];\n\tif(oldScope && oldScope !== shareScope) throw new Error(\"Container initialization failed as it has already been initialized with a different share scope\");\n\t__webpack_require__.S[name] = shareScope;\n\treturn __webpack_require__.I(name, initScope);\n};\n\n// This exports getters to disallow modifications\n__webpack_require__.d(exports, {\n\tget: () => (get),\n\tinit: () => (init)\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + chunkId + \".\" + {\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\":\"9c21ae2e\",\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\":\"d38263c1\",\"vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4\":\"116e9fa1\",\"vendors-node_modules_mui_material_Switch_Switch_js\":\"928081a1\",\"vendors-node_modules_mui_material_index_js\":\"8ba01614\",\"vendors-node_modules_mui_system_esm_index_js\":\"b8618c63\",\"node_modules_prop-types_index_js\":\"7f922324\",\"vendors-node_modules_react-dom_index_js\":\"190f0c6e\",\"node_modules_react_index_js\":\"a5285de4\",\"vendors-node_modules_mui_icons-material_Delete_js-node_modules_rxjs_dist_esm5_internal_Subjec-42397f\":\"bb47ef22\",\"src_components_CollectionDivider_jsx\":\"bf1c1de5\",\"src_StateCollectionWidget_StateCollectionWidget_jsx\":\"f9a0cb99\",\"src_ButtonGroupCollectionWidget_ButtonGroupCollectionWidget_jsx\":\"6714917c\",\"src_translations_js\":\"c2b86983\",\"src_SwitchCollectionWidget_SwitchCollectionWidget_jsx\":\"a4aed4b6\",\"src_CheckboxCollectionWidget_CheckboxCollectionWidget_jsx\":\"45087583\",\"src_DialogCollectionWidget_DialogCollectionWidget_jsx\":\"bc8befed\",\"src_SelectCollectionWidget_SelectCollectionWidget_jsx\":\"a8694cbf\",\"src_RadioGroupCollectionWidget_RadioGroupCollectionWidget_jsx\":\"c12bfcb8\",\"vendors-node_modules_canvas-gauges_gauge_min_js\":\"d2cb37fb\",\"src_GaugeCollectionWidget_GaugeCollectionWidget_jsx\":\"6b7eda92\",\"vendors-node_modules_jaames_iro_dist_iro_es_js-node_modules_mui_icons-material_PowerSettingsNew_js\":\"cffe4b84\",\"src_LightCollectionWidget_LightCollectionWidget_jsx\":\"fb54720e\"}[chunkId] + \".chunk.js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","var inProgress = {};\nvar dataWebpackPrefix = \"iobroker.vis-widgets-react-collection:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => {\n\t\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n\t};\n\tvar uniqueName = \"iobroker.vis-widgets-react-collection\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult['catch'](handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t\tcase \"default\": {\n\t\t\tregister(\"@mui/material\", \"*\", () => (Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_material_styles_useTheme_js-node_modules_mui_material_utils_index_js\"), __webpack_require__.e(\"vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4\"), __webpack_require__.e(\"vendors-node_modules_mui_material_Switch_Switch_js\"), __webpack_require__.e(\"vendors-node_modules_mui_material_index_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\"), __webpack_require__.e(\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\")]).then(() => (() => (__webpack_require__(4999))))));\n\t\t\tregister(\"@mui/system\", \"*\", () => (Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_styled-engine_index_js-node_modules_mui_system_esm_DefaultPropsProvi-fe7987\"), __webpack_require__.e(\"vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4\"), __webpack_require__.e(\"vendors-node_modules_mui_system_esm_index_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\"), __webpack_require__.e(\"webpack_sharing_consume_default_prop-types_prop-types\")]).then(() => (() => (__webpack_require__(1200))))));\n\t\t\tregister(\"prop-types\", \"*\", () => (__webpack_require__.e(\"node_modules_prop-types_index_js\").then(() => (() => (__webpack_require__(5173))))));\n\t\t\tregister(\"react-dom\", \"*\", () => (Promise.all([__webpack_require__.e(\"vendors-node_modules_react-dom_index_js\"), __webpack_require__.e(\"webpack_sharing_consume_default_react_react\")]).then(() => (() => (__webpack_require__(7950))))));\n\t\t\tregister(\"react\", \"*\", () => (__webpack_require__.e(\"node_modules_react_index_js\").then(() => (() => (__webpack_require__(5043))))));\n\t\t}\n\t\tbreak;\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","var parseVersion = (str) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar p=p=>{return p.split(\".\").map((p=>{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;\n}\nvar versionLt = (a, b) => {\n\t// see webpack/lib/util/semver.js for original code\n\ta=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&\"u\"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return\"u\"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return\"o\"==n&&\"n\"==f||(\"s\"==f||\"u\"==n);if(\"o\"!=n&&\"u\"!=n&&e!=t)return e<t;r++}\n}\nvar rangeToString = (range) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar r=range[0],n=\"\";if(1===range.length)return\"*\";if(r+.5){n+=0==r?\">=\":-1==r?\"<\":1==r?\"^\":2==r?\"~\":r>0?\"=\":\"!=\";for(var e=1,a=1;a<range.length;a++){e--,n+=\"u\"==(typeof(t=range[a]))[0]?\"-\":(e>0?\".\":\"\")+(e=2,t)}return n}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?\"not(\"+o()+\")\":1===t?\"(\"+o()+\" || \"+o()+\")\":2===t?g.pop()+\" \"+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,\"$1\")}\n}\nvar satisfy = (range, version) => {\n\t// see webpack/lib/util/semver.js for original code\n\tif(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:\"\";if(n>=version.length||\"o\"==(s=(typeof(f=version[n]))[0]))return!a||(\"u\"==g?i>e&&!r:\"\"==g!=r);if(\"u\"==s){if(!a||\"u\"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if(\"s\"!=g&&\"n\"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else\"s\"!=g&&\"n\"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();\n}\nvar exists = (scope, key) => {\n\treturn scope && __webpack_require__.o(scope, key);\n}\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar eagerOnly = (versions) => {\n\treturn Object.keys(versions).reduce((filtered, version) => {\n\t\t\tif (versions[version].eager) {\n\t\t\t\tfiltered[version] = versions[version];\n\t\t\t}\n\t\t\treturn filtered;\n\t}, {});\n};\nvar findLatestVersion = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key];\n};\nvar findSatisfyingVersion = (scope, key, requiredVersion, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\tif (!satisfy(requiredVersion, b)) return a;\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar findSingletonVersionKey = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\treturn Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;\n\t}, 0);\n};\nvar getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {\n\treturn \"Unsatisfied version \" + version + \" from \" + (version && scope[key][version].from) + \" of shared singleton module \" + key + \" (required \" + rangeToString(requiredVersion) + \")\"\n};\nvar getInvalidVersionMessage = (scope, scopeName, key, requiredVersion, eager) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \")\" + (eager ? \" for eager consumption\" : \"\") + \" of shared module \" + key + \" found in shared scope \" + scopeName + \".\\n\" +\n\t\t\"Available versions: \" + Object.keys(versions).map((key) => {\n\t\treturn key + \" from \" + versions[key].from;\n\t}).join(\", \");\n};\nvar fail = (msg) => {\n\tthrow new Error(msg);\n}\nvar failAsNotExist = (scopeName, key) => {\n\treturn fail(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n}\nvar warn = /*#__PURE__*/ (msg) => {\n\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n};\nvar init = (fn) => (function(scopeName, key, eager, c, d) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then && !eager) {\n\t\treturn promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], key, false, c, d));\n\t}\n\treturn fn(scopeName, __webpack_require__.S[scopeName], key, eager, c, d);\n});\n\nvar useFallback = (scopeName, key, fallback) => {\n\treturn fallback ? fallback() : failAsNotExist(scopeName, key);\n}\nvar load = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\twarn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager))\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadStrictVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\tif (fallback) return fallback();\n\tfail(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\treturn get(scope[key][version]);\n});\nvar loadSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\twarn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar loadStrictSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\tfail(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t8437: () => (loadSingletonVersion(\"default\", \"react\", false, [0], () => (__webpack_require__.e(\"node_modules_react_index_js\").then(() => (() => (__webpack_require__(5043))))))),\n\t5973: () => (loadSingletonVersion(\"default\", \"prop-types\", false, [0], () => (__webpack_require__.e(\"node_modules_prop-types_index_js\").then(() => (() => (__webpack_require__(5173))))))),\n\t8565: () => (loadSingletonVersion(\"default\", \"@mui/system\", false, [0], () => (Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4\"), __webpack_require__.e(\"vendors-node_modules_mui_system_esm_index_js\")]).then(() => (() => (__webpack_require__(1200))))))),\n\t3479: () => (loadSingletonVersion(\"default\", \"react-dom\", false, [0], () => (__webpack_require__.e(\"vendors-node_modules_react-dom_index_js\").then(() => (() => (__webpack_require__(7950))))))),\n\t7085: () => (loadSingletonVersion(\"default\", \"@mui/material\", false, [0], () => (Promise.all([__webpack_require__.e(\"vendors-node_modules_mui_system_esm_RtlProvider_index_js-node_modules_mui_system_esm_Unstable-9da0e4\"), __webpack_require__.e(\"vendors-node_modules_mui_material_Switch_Switch_js\"), __webpack_require__.e(\"vendors-node_modules_mui_material_index_js\")]).then(() => (() => (__webpack_require__(4999)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"webpack_sharing_consume_default_react_react\": [\n\t\t8437\n\t],\n\t\"webpack_sharing_consume_default_prop-types_prop-types\": [\n\t\t5973\n\t],\n\t\"webpack_sharing_consume_default_mui_system_mui_system-webpack_sharing_consume_default_react-d-dde2d4\": [\n\t\t8565,\n\t\t3479\n\t],\n\t\"src_components_CollectionDivider_jsx\": [\n\t\t7085\n\t]\n};\nvar startedInstallModules = {};\n__webpack_require__.f.consumes = (chunkId, promises) => {\n\tif(__webpack_require__.o(chunkMapping, chunkId)) {\n\t\tchunkMapping[chunkId].forEach((id) => {\n\t\t\tif(__webpack_require__.o(installedModules, id)) return promises.push(installedModules[id]);\n\t\t\tif(!startedInstallModules[id]) {\n\t\t\tvar onFactory = (factory) => {\n\t\t\t\tinstalledModules[id] = 0;\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tmodule.exports = factory();\n\t\t\t\t}\n\t\t\t};\n\t\t\tstartedInstallModules[id] = true;\n\t\t\tvar onError = (error) => {\n\t\t\t\tdelete installedModules[id];\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tvar promise = moduleToHandlerMapping[id]();\n\t\t\t\tif(promise.then) {\n\t\t\t\t\tpromises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));\n\t\t\t\t} else onFactory(promise);\n\t\t\t} catch(e) { onError(e); }\n\t\t\t}\n\t\t});\n\t}\n}","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"vis2CollectionWidget\": 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^webpack_sharing_consume_default_(mui_system_mui_system\\-webpack_sharing_consume_default_react\\-d\\-dde2d4|prop\\-types_prop\\-types|react_react)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\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__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkiobroker_vis_widgets_react_collection\"] = self[\"webpackChunkiobroker_vis_widgets_react_collection\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__(4727);\n"],"names":["moduleMap","Promise","all","__webpack_require__","e","then","get","module","getScope","R","o","resolve","Error","undefined","init","shareScope","initScope","S","name","oldScope","I","d","exports","__webpack_module_cache__","moduleId","cachedModule","__webpack_modules__","call","m","c","n","getter","__esModule","a","definition","key","Object","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","miniCssF","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","initPromises","initTokens","initToken","indexOf","scope","uniqueName","register","version","factory","eager","versions","activeVersion","loaded","from","scriptUrl","importScripts","location","currentScript","tagName","toUpperCase","test","replace","p","parseVersion","str","split","map","exec","apply","versionLt","b","t","rangeToString","range","pop","satisfy","exists","entry","eagerOnly","filtered","findSingletonVersionKey","getInvalidSingletonVersionMessage","requiredVersion","fail","msg","warn","console","scopeName","promise","useFallback","fallback","failAsNotExist","loadSingletonVersion","installedModules","moduleToHandlerMapping","chunkMapping","startedInstallModules","consumes","id","onFactory","onError","error","installedChunks","j","installedChunkData","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkiobroker_vis_widgets_react_collection=self.webpackChunkiobroker_vis_widgets_react_collection||[]).push([["src_DialogCollectionWidget_DialogCollectionWidget_jsx"],{2840:(e,t,o)=>{o.r(t),o.d(t,{default:()=>_});var a=o(7051),l=o(8437),i=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:"dialogHeaderAsTitle",label:"dialog_header_as_title",type:"checkbox",default:!1},{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},{name:"dialogInPixel",label:"dialog_in_pixel",type:"checkbox",default:!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:"dialog_text",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},{name:"dialogCloseButtonColor",label:"dialog_close_button_color",type:"color"},{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 u=o(7085),g=o(4535),p=o(4657),h=o(6016),x=o(2152),y=o(4692),m=o(5702),f=o(4802),b=o(8565);function A(e){var t;let{open:o,handleClose:i,widget:n,data:d,getWidgetView:s,fontStyles:c,textStyles:g}=e;const h=(0,l.useRef)(null),[x,y]=(0,l.useState)(null),m=null===(t=h.current)||void 0===t?void 0:t.header;(0,l.useEffect)((()=>{n.data.dialogHeaderAsTitle&&m&&x&&(n.data.dialogHeaderAsTitle&&(m.style.width="0px",m.style.height="0px"),x.innerHTML=d.header,x.style.height="auto",x.style.width="auto")}),[m,x,d.header,n.data.dialogHeaderAsTitle]);const A=(0,r.jsx)(u.IconButton,{sx:{alignSelf:"flex-end",filter:"brightness(1.5)",color:e=>n.data.dialogCloseButtonColor||d.frameBackgroundColor||e.palette.background.primary},"aria-label":"delete",onClick:i,children:(0,r.jsx)(f.A,{})});return(0,r.jsx)(u.Modal,{onClose:i,open:o,sx:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:n.data.dialogBackgroundColor||"inherit"},children:(0,r.jsx)(u.Box,{sx:{width:n.data.dialogInPixel?"".concat(n.data.dialogWidth,"px"):"".concat(n.data.dialogWidth,"%"),height:n.data.dialogInPixel?"".concat(n.data.dialogHeight,"px"):"".concat(n.data.dialogHeight,"%")},children:(0,r.jsxs)(p.A,{ref:h,data:d,sx:{flexDirection:"column",background:d.backgroundColor||d.background},children:[(0,r.jsxs)(u.Box,{sx:{position:"relative",width:"100%",height:"auto",display:"flex",justifyContent:"flex-end",alignItems:"center",p:n.data.dialogCloseButtonTop||!n.data.dialogHeaderAsTitle?0:2},children:[(0,r.jsx)(u.Box,{sx:{position:"absolute",left:0,width:"100%"},children:(0,r.jsx)(u.Typography,{ref:y,noWrap:!0,variant:"body2",sx:(0,a.A)((0,a.A)((0,a.A)({},c),g),{},{fontSize:d.headerSize,color:d.textColor,px:n.data.dialogCloseButtonTop?4:0})})}),n.data.dialogCloseButtonTop&&A]}),n.data.dialogCloseButtonTop&&(0,r.jsx)(u.Divider,{sx:{width:"100%",opacity:"0.5",background:e=>d.frameBackgroundColor||e.palette.background.primary}}),(0,r.jsx)(u.Box,{sx:{"::-webkit-scrollbar-track":{background:e=>d.frameBackgroundColor&&(0,b.alpha)(d.frameBackgroundColor,.5)},"::-webkit-scrollbar-thumb":{opacity:"0.5",background:e=>d.frameBackgroundColor&&(0,b.alpha)(d.frameBackgroundColor,.7)},position:"relative",overflow:"auto",width:"100%",height:"100%"},children:s(n.data.view,{style:{}})}),n.data.dialogCloseButtonBottom&&(0,r.jsx)(u.Divider,{sx:{width:"100%",opacity:"0.5",background:e=>d.frameBackgroundColor||e.palette.background.default}}),n.data.dialogCloseButtonBottom&&A]})})})}const C=(0,g.Ay)(u.ButtonBase)({width:"100% !important",height:"100% !important",display:"flex",justifyContent:"center",alignItems:"center"});const v=function(){var e;const[t,o]=(0,l.useState)(!1),i=(0,l.useRef)(null),[n,d]=(0,l.useState)(null),{oidObject:s,widget:c,getWidgetView:g,setValue:f}=(0,l.useContext)(h.C),{textStyles:b,fontStyles:v}=(0,m.A)(c.style),{data:w,oidValue:_}=(0,x.A)("oid"),k=null===s||void 0===s?void 0:s._id,j="boolean"===(null===s||void 0===s||null===(e=s.common)||void 0===e?void 0:e.type)||!c.data.oid||"nothing_selected"===c.data.oid,B=(0,l.useCallback)((()=>{if(i.current)return;let e=c.data.dialogAutoClose;null!==e&&void 0!==e&&""!==e?(!0!==e&&"true"!==e||(e=1e4),e=parseInt(e,10),e<60&&(e*=1e3),e=e||1e3,i.current=setTimeout((()=>{i.current=null,f(k,!1),o(!1)}),e),o(!0)):o(!0)}),[k,f,c.data.dialogAutoClose]),S=(0,l.useCallback)((()=>{i.current&&(clearTimeout(i.current),i.current=null),f(k,!1),o(!1)}),[k,f]);return(0,y.A)(n,"",c,w),(0,l.useEffect)((()=>{void 0!==_&&null!==_&&(_?B():S())}),[_,B,S]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A,{open:t,handleClose:S,widget:c,data:w,getWidgetView:g,fontStyles:v,textStyles:b}),(0,r.jsx)(p.A,{isValidType:j,data:w,children:(0,r.jsx)(u.Box,{sx:{width:"100%",height:"100%",display:"flex"},children:(0,r.jsxs)(C,{onClick:()=>{f(k,!0),B()},sx:{"& .MuiTouchRipple-root span":{color:w.iconColor}},children:[c.data.onlyIcon||!c.data.onlyText&&!c.data.onlyIcon?(0,r.jsx)(u.Box,{sx:{overflow:"hidden",p:.5,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,r.jsx)("img",{alt:"",src:w.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:"number"===typeof w.iconSizeOnly&&"calc(100% * ".concat(w.iconSizeOnly," / 100)")||"100%",height:"number"===typeof w.iconSizeOnly&&"calc(100% * ".concat(w.iconSizeOnly," / 100)")||"100%",color:w.iconColor,filter:w.iconColor?"drop-shadow(0px 10000px 0)":null,transform:w.iconColor?"translateY(-10000px)":null}})}):null,c.data.onlyText||!c.data.onlyText&&!c.data.onlyIcon?(0,r.jsx)(u.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"},v),b),{},{fontSize:w.valueSize,color:w.textColor,textTransform:"none"})}):null]})})})]})};class w extends i.A{static getWidgetInfo(){return{id:"tplDialogCollectionWidget",visSet:"vis-2-widgets-collection",visSetLabel:"widgets_collection",visName:"DialogCollectionWidget",visWidgetLabel:"dialog_collection_widget",visOrder:8,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 w.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,a.A)((0,a.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),hasPropertyValueChanged:this.hasPropertyValueChanged.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 e.widget.data.noCard||e.widget.usedInWidget?this.wrappedContent=!1:this.wrappedContent=!0,(0,n.A)(this.wrapContent((0,r.jsx)(v,{})),t)}}const _=w},4692:(e,t,o)=>{o.d(t,{A:()=>l});var a=o(8437);const l=(e,t,o,l)=>{const i=("string"===typeof t||"number"===typeof t||"boolean"===typeof t)&&"".concat(t).concat(void 0!==o.data.unit?o.data.unit:""),n=l.alias||l.value||i;(0,a.useEffect)((()=>{void 0!==n&&e&&(e.innerHTML=n)}),[n,e])}},4802:(e,t,o)=>{var a=o(2613);t.A=void 0;var l=a(o(39)),i=o(579);t.A=(0,l.default)((0,i.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.bc8befed.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.bc8befed.chunk.js","mappings":"uTAEA,MAwIA,EAxIqBA,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,sBACNC,MAAO,yBACPC,KAAM,WACNS,SAAS,GAEV,CACCV,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,CACCT,KAAM,gBACNC,MAAO,kBACPC,KAAM,WACNS,SAAS,GAEV,CACCV,MAAO,GACPC,KAAM,SACNE,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KAEpC,CACCN,K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,GAAY,C,qBCX3B+F,EAAyBC,EAAQ,MAIrCC,EAAQ,OAAU,EAClB,IAAIC,EAAiBH,EAAuBC,EAAQ,KAChDG,EAAcH,EAAQ,KACXC,EAAQ,GAAU,EAAIC,EAAenL,UAAuB,EAAIoL,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: \"dialogHeaderAsTitle\",\n\t\tlabel: \"dialog_header_as_title\",\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: \"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\tname: \"dialogInPixel\",\n\t\tlabel: \"dialog_in_pixel\",\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: \"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: \"dialog_text\",\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\tname: \"dialogCloseButtonColor\",\n\t\tlabel: \"dialog_close_button_color\",\n\t\ttype: \"color\",\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, Typography } from \"@mui/material\";\nimport { alpha } from \"@mui/material/styles\";\nimport React, { useRef, useState, useEffect } from \"react\";\nimport CollectionBase from \"../components/CollectionBase\";\n\nexport default function ViewDialog({\n\topen,\n\thandleClose,\n\twidget,\n\tdata,\n\tgetWidgetView,\n\tfontStyles,\n\ttextStyles,\n}) {\n\tconst baseRef = useRef(null);\n\tconst [titleRef, setTitleRef] = useState(null);\n\n\tconst header = baseRef.current?.header;\n\n\tuseEffect(() => {\n\t\tif (!widget.data.dialogHeaderAsTitle) return;\n\n\t\tif (header && titleRef) {\n\t\t\tif (widget.data.dialogHeaderAsTitle) {\n\t\t\t\theader.style.width = \"0px\";\n\t\t\t\theader.style.height = \"0px\";\n\t\t\t}\n\n\t\t\ttitleRef.innerHTML = data.header;\n\t\t\ttitleRef.style.height = \"auto\";\n\t\t\ttitleRef.style.width = \"auto\";\n\t\t}\n\t}, [header, titleRef, data.header, widget.data.dialogHeaderAsTitle]);\n\n\tconst iconButton = (\n\t\t<IconButton\n\t\t\tsx={{\n\t\t\t\talignSelf: \"flex-end\",\n\n\t\t\t\tfilter: \"brightness(1.5)\",\n\t\t\t\tcolor: (theme) =>\n\t\t\t\t\twidget.data.dialogCloseButtonColor ||\n\t\t\t\t\tdata.frameBackgroundColor ||\n\t\t\t\t\ttheme.palette.background.primary,\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.dialogInPixel\n\t\t\t\t\t\t? `${widget.data.dialogWidth}px`\n\t\t\t\t\t\t: `${widget.data.dialogWidth}%`,\n\t\t\t\t\theight: widget.data.dialogInPixel\n\t\t\t\t\t\t? `${widget.data.dialogHeight}px`\n\t\t\t\t\t\t: `${widget.data.dialogHeight}%`,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<CollectionBase\n\t\t\t\t\tref={baseRef}\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<Box\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\tposition: \"relative\",\n\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\theight: \"auto\",\n\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\tjustifyContent: \"flex-end\",\n\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\tp:\n\t\t\t\t\t\t\t\twidget.data.dialogCloseButtonTop ||\n\t\t\t\t\t\t\t\t!widget.data.dialogHeaderAsTitle\n\t\t\t\t\t\t\t\t\t? 0\n\t\t\t\t\t\t\t\t\t: 2,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\tref={setTitleRef}\n\t\t\t\t\t\t\t\tnoWrap\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\t...fontStyles,\n\t\t\t\t\t\t\t\t\t...textStyles,\n\t\t\t\t\t\t\t\t\tfontSize: data.headerSize,\n\t\t\t\t\t\t\t\t\tcolor: data.textColor,\n\t\t\t\t\t\t\t\t\tpx: widget.data.dialogCloseButtonTop ? 4 : 0,\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</Box>\n\n\t\t\t\t\t\t{widget.data.dialogCloseButtonTop && iconButton}\n\t\t\t\t\t</Box>\n\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 && iconButton}\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, useEffect, useCallback } 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, oidValue } = useData(\"oid\");\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\n\tconst handleClickOpen = useCallback(() => {\n\t\tif (hideTimeout.current) return;\n\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}, [oid, setValue, widget.data.dialogAutoClose]);\n\n\tconst handleClose = useCallback(() => {\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}, [oid, setValue]);\n\n\tuseHtmlValue(contentRef, \"\", widget, data);\n\n\tuseEffect(() => {\n\t\tif (oidValue === undefined || oidValue === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (oidValue) handleClickOpen();\n\t\telse\n\t\t\thandleClose();\n\n\t}, [oidValue, handleClickOpen, handleClose]);\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\tfontStyles,\n\t\t\t\t\ttextStyles,\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\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:\n\t\t\t\t\t\t\t\t\t\t\t(typeof data.iconSizeOnly === \"number\" &&\n\t\t\t\t\t\t\t\t\t\t\t\t`calc(100% * ${data.iconSizeOnly} / 100)`) ||\n\t\t\t\t\t\t\t\t\t\t\t\"100%\",\n\t\t\t\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\t\t\t\t(typeof data.iconSizeOnly === \"number\" &&\n\t\t\t\t\t\t\t\t\t\t\t\t`calc(100% * ${data.iconSizeOnly} / 100)`) ||\n\t\t\t\t\t\t\t\t\t\t\t\"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\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: 8,\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\thasPropertyValueChanged: this.hasPropertyValueChanged.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","_baseRef$current","open","handleClose","widget","data","getWidgetView","fontStyles","textStyles","baseRef","useRef","titleRef","setTitleRef","useState","header","current","useEffect","dialogHeaderAsTitle","style","width","height","innerHTML","iconButton","IconButton","sx","alignSelf","filter","color","theme","dialogCloseButtonColor","frameBackgroundColor","palette","background","primary","onClick","children","CloseIcon","Modal","onClose","display","justifyContent","alignItems","backgroundColor","dialogBackgroundColor","Box","dialogInPixel","concat","dialogWidth","dialogHeight","_jsxs","CollectionBase","ref","flexDirection","position","p","dialogCloseButtonTop","left","Typography","noWrap","variant","_objectSpread","fontSize","headerSize","textColor","px","Divider","opacity","alpha","overflow","view","dialogCloseButtonBottom","ImageHtmlButton","styled","ButtonBase","_oidObject$common","setOpen","hideTimeout","contentRef","setContentRef","oidObject","setValue","useContext","CollectionContext","useStyles","oidValue","useData","oid","_id","isValidType","common","handleClickOpen","useCallback","timeout","dialogAutoClose","undefined","parseInt","setTimeout","clearTimeout","useHtmlValue","_Fragment","iconColor","onlyIcon","onlyText","alt","src","icon","objectFit","top","iconYOffset","right","iconXOffset","iconSizeOnly","transform","valueSize","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","hasPropertyValueChanged","mode","context","themeType","socket","wrappedContent","noCard","usedInWidget","withCollectionProvider","wrapContent","DialogCollection","oidValueUnit","unit","contentValue","alias","value","_interopRequireDefault","require","exports","_createSvgIcon","_jsxRuntime","jsx","d"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkiobroker_vis_widgets_react_collection=self.webpackChunkiobroker_vis_widgets_react_collection||[]).push([["src_StateCollectionWidget_StateCollectionWidget_jsx"],{2132:(t,e,o)=>{o.r(e),o.d(e,{default:()=>j});var a=o(7051),i=o(8437),n=o(6211),s=o(900),l=o(8679),c=o(375),d=o(5006),r=o(4376),u=o(579);const p=()=>[{type:"custom",component:()=>(0,u.jsx)(r.A,{})},{name:"onlyStates",type:"checkbox",label:"only_states",default:!1,hidden:"!data.values_count"},{name:"statePushButton",type:"checkbox",label:"state_push_button",default:!1,hidden:t=>!t.onlyStates||2!==Number(t.values_count),tooltip:"state_push_button_tooltip"},{type:"custom",component:()=>(0,u.jsx)(r.A,{}),hidden:"!data.values_count"},{name:"onlyDisplay",type:"checkbox",label:"only_display",disabled:"!data.write",default:"!data.write",hidden:"!data.write"},{name:"noIcon",type:"checkbox",label:"no_icon"},{name:"noValue",type:"checkbox",label:"no_value"}];var h=o(7085),v=o(4657),x=o(6061),m=o(4802),g=o(2671),y=o(6016);const b=function(t){var e,o,a,n;const{widgetStates:s,data:l,open:c,closeHandler:d}=t,{widget:r,oidObject:p,getPropertyValue:v}=(0,i.useContext)(y.C),[x,b]=(0,i.useState)(v("oid")),{setValueState:f}=(0,g.A)("oid"),S=null===p||void 0===p||null===(e=p.common)||void 0===e?void 0:e.states,C=null===p||void 0===p||null===(o=p.common)||void 0===o?void 0:o.type,w=(0,i.useCallback)((t=>f(t)),[f]),A="number"!==C||r.data.onlyStates||void 0===(null===p||void 0===p||null===(a=p.common)||void 0===a?void 0:a.min)||void 0===(null===p||void 0===p||null===(n=p.common)||void 0===n?void 0:n.max)?null:(0,u.jsx)(h.Slider,{sx:{pb:S?4:3},size:"small",min:p.common.min,max:p.common.max,marks:[{value:p.common.min,label:String(p.common.min)},{value:p.common.max,label:String(p.common.max)}],valueLabelDisplay:"auto",value:x,onChange:(t,e)=>{b(e),w(e)}}),j=s?(0,u.jsx)(h.List,{children:Object.entries(s).map((t=>{let[e,o]=t;return(0,u.jsx)(h.ListItem,{disablePadding:!0,children:(0,u.jsx)(h.ListItemButton,{disableGutters:!0,onClick:()=>w(e),children:(0,u.jsx)(h.ListItemText,{sx:{px:2},primaryTypographyProps:{variant:"body2"},primary:String(o)})})},e)}))}):null;return(0,u.jsxs)(h.Dialog,{open:c,onClose:d,maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{}},children:[(0,u.jsx)(h.DialogTitle,{sx:{m:0,p:2},id:"customized-dialog-title",children:l.header||p.common.name}),(0,u.jsx)(h.IconButton,{"aria-label":"close",onClick:d,sx:t=>({position:"absolute",right:8,top:8,color:t.palette.grey[500]}),children:(0,u.jsx)(m.A,{})}),(0,u.jsx)(h.DialogContent,{sx:{overflow:"unset"},children:(0,u.jsxs)(h.Stack,{divider:Object.keys(s).length&&(0,u.jsx)(h.Divider,{flexItem:!0}),sx:{px:2},spacing:0,component:h.Paper,children:[A,j]})})]})};var f=o(2152),S=o(4692),C=o(5702);const w=function(){var t;const[e,o]=(0,i.useState)(null),{widget:n,oidObject:s}=(0,i.useContext)(y.C),{textStyles:l,fontStyles:c}=(0,C.A)(n.style),{data:d,widgetStates:r}=(0,f.A)("oid"),{value:p,setValueState:m}=(0,g.A)("oid"),[w,A]=(0,i.useState)(!1),j=null===s||void 0===s||null===(t=s.common)||void 0===t?void 0:t.type,_=n.data.onlyStates,k=()=>{_&&2===Number(n.data.values_count)&&n.data.statePushButton&&setTimeout((()=>m(n.data.value1)),0)},I=()=>{_&&2===Number(n.data.values_count)&&n.data.statePushButton&&setTimeout((()=>m(n.data.value2)),0)},P=(0,i.useCallback)((()=>{if(_)switch(Number(n.data.values_count)){case 1:m(n.data.value1);break;case 2:n.data.statePushButton||String(p)!==String(n.data.value1)?m(n.data.value1):m(n.data.value2);break;default:A(!0)}else A(!0)}),[p,_,n.data.values_count,n.data.statePushButton,n.data.value1,n.data.value2,m]),D=(0,u.jsx)(h.Button,{disabled:n.data.onlyDisplay,onClick:P,onMouseDown:k,onMouseUp:I,onMouseOut:I,onTouchStart:k,onTouchEnd:I,sx:{width:"100%",height:"100%",color:d.iconColorActive||d.iconColor||d.textColorActive||d.textColor,"&:hover":{bgcolor:"transparent",filter:d.iconHoverActive&&"brightness(".concat(d.iconHoverActive,")")||d.iconHover&&"brightness(".concat(d.iconHover,")")}},children:(0,u.jsxs)(h.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:[!n.data.noIcon&&(d.iconActive||d.icon)&&(0,u.jsx)(h.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexGrow:1,width:"100%",height:"100%"},children:(0,u.jsx)(h.Avatar,{variant:"square",src:d.iconActive||d.icon,imgProps:{style:{objectFit:"contain"}},sx:{overflow:"hidden",width:"number"===typeof d.iconSizeOnly&&"calc(100% * ".concat(d.iconSizeOnly," / 100)")||"100%",height:"number"===typeof d.iconSizeOnly&&"calc(100% * ".concat(d.iconSizeOnly," / 100)")||"100%",left:"calc(0px + ".concat(d.iconXOffset,")"),top:"calc(0px - ".concat(d.iconYOffset,")"),bgcolor:"transparent",color:d.iconColorActive||d.iconColor,filter:(d.iconActive||d.icon)&&(d.iconColorActive||d.iconColor)&&"drop-shadow(0px 10000px 0)",transform:(d.iconActive||d.icon)&&(d.iconColorActive||d.iconColor)&&"translateY(-10000px)"}})}),!n.data.noValue&&(0,u.jsx)(h.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexGrow:1,width:"100%",height:"100%"},children:(0,u.jsx)(h.Typography,{ref:o,variant:"body2",sx:(0,a.A)((0,a.A)((0,a.A)({},c),l),{},{fontSize:d.valueSizeActive||d.valueSize,bgcolor:"transparent",color:d.textColorActive||d.textColor,textTransform:"none"})})})]})});(0,S.A)(e,p,n,d);const O="boolean"===j||"number"===j||"string"===j||"mixed"===j;return(0,u.jsxs)(u.Fragment,{children:[w&&(0,u.jsx)(b,{data:{sampleInterval:null,sampleIntervalValue:null,delay:100},widgetStates:r,open:w,closeHandler:()=>A(!1)}),(0,u.jsxs)(v.A,{isValidType:O,data:d,oidValue:p,children:[(0,u.jsx)(x.A,{data:d,widget:n}),(0,u.jsx)(h.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:D})]})]})};class A extends n.A{static getWidgetInfo(){return{id:"tplStateCollectionWidget",visSet:"vis-2-widgets-collection",visSetLabel:"widgets_collection",visSetColor:"#0C0A43",visName:"StateCollectionWidget",visWidgetLabel:"state_collection_widget",visOrder:3,visAttrs:[{name:"common",fields:[...(0,l.A)()]},{name:"button",label:"group_button",fields:[...(0,c.A)(["string","number","boolean","mixed"]),...(0,d.A)(),...p()]},{name:"values",label:"values",indexFrom:1,indexTo:"values_count",fields:[...(0,l.A)({groupName:"",allFields:!1})]}],visDefaultStyle:{width:"100%",height:"100px",position:"relative"},visPrev:"widgets/vis-2-widgets-collection/img/prev-collection-state.png"}}getWidgetInfo(){return A.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),hasPropertyValueChanged:this.hasPropertyValueChanged.bind(this),mode:this.props.context.themeType,socket:this.props.context.socket,theme:this.props.context.theme,wrappedContent:this.wrappedContent};return t.widget.data.noCard||t.widget.usedInWidget?this.wrappedContent=!1:this.wrappedContent=!0,(0,s.A)(this.wrapContent((0,u.jsx)(w,{})),e)}}const j=A},4692:(t,e,o)=>{o.d(e,{A:()=>i});var a=o(8437);const i=(t,e,o,i)=>{const n=("string"===typeof e||"number"===typeof e||"boolean"===typeof e)&&"".concat(e).concat(void 0!==o.data.unit?o.data.unit:""),s=i.alias||i.value||n;(0,a.useEffect)((()=>{void 0!==s&&t&&(t.innerHTML=s)}),[s,t])}},4802:(t,e,o)=>{var a=o(2613);e.A=void 0;var i=a(o(39)),n=o(579);e.A=(0,i.default)((0,n.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_StateCollectionWidget_StateCollectionWidget_jsx.f9a0cb99.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/src_StateCollectionWidget_StateCollectionWidget_jsx.f9a0cb99.chunk.js","mappings":"wUAEA,MA6CA,EA7CoBA,IAAM,CACzB,CACCC,KAAM,SACNC,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KAEpC,CACCC,KAAM,aACNJ,KAAM,WACNK,MAAO,cACPC,SAAS,EACTC,OAAQ,sBAET,CACCH,KAAM,kBACNJ,KAAM,WACNK,MAAO,oBACPC,SAAS,EACTC,OAASC,IAAUA,EAAKC,YAA4C,IAA9BC,OAAOF,EAAKG,cAClDC,QAAS,6BAEV,CACCZ,KAAM,SACNC,UAA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YH,EAAY,GACjC,CAACA,EAAc9H,GAAY,C,qBCX3BkI,EAAyBC,EAAQ,MAIrCC,EAAQ,OAAU,EAClB,IAAIC,EAAiBH,EAAuBC,EAAQ,KAChDG,EAAcH,EAAQ,KACXC,EAAQ,GAAU,EAAIC,EAAepO,UAAuB,EAAIqO,EAAYC,KAAK,OAAQ,CACtGC,EAAG,0GACD,Q","sources":["lib/stateFields.jsx","components/CollectionChangeDialog.jsx","StateCollectionWidget/StateCollection.jsx","StateCollectionWidget/StateCollectionWidget.jsx","hooks/useHtmlValue.js","../node_modules/@mui/icons-material/Close.js"],"sourcesContent":["import CollectionDivider from \"../components/CollectionDivider\";\n\nconst stateFields = () => [\n\t{\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"onlyStates\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"only_states\",\n\t\tdefault: false,\n\t\thidden: \"!data.values_count\",\n\t},\n\t{\n\t\tname: \"statePushButton\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"state_push_button\",\n\t\tdefault: false,\n\t\thidden: (data) => !data.onlyStates || Number(data.values_count) !== 2,\n\t\ttooltip: \"state_push_button_tooltip\",\n\t},\n\t{\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t\thidden: \"!data.values_count\",\n\t},\n\t{\n\t\tname: \"onlyDisplay\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"only_display\",\n\t\tdisabled: \"!data.write\",\n\t\tdefault: \"!data.write\",\n\t\thidden: \"!data.write\",\n\t},\n\t{\n\t\tname: \"noIcon\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"no_icon\",\n\t},\n\t{\n\t\tname: \"noValue\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"no_value\",\n\t},\n];\n\nexport default stateFields;\n","import CloseIcon from \"@mui/icons-material/Close\";\nimport { Paper, Slider, Stack } from \"@mui/material\";\nimport {\n\tDialog,\n\tDialogContent,\n\tDialogTitle,\n\tDivider,\n\tIconButton,\n\tList,\n\tListItem,\n\tListItemButton,\n\tListItemText,\n} from \"@mui/material\";\nimport React, { useCallback, useContext, useState } from \"react\";\nimport useValueState from \"../hooks/useValueState\";\n// import isNumber from \"../lib/helper/isNumber\";\nimport { CollectionContext } from \"./CollectionProvider\";\n\nfunction CollectionChangeDialog(props) {\n\tconst { widgetStates, data, open, closeHandler } = props;\n\tconst { widget, oidObject, getPropertyValue } = useContext(CollectionContext);\n\n\tconst [sliderValue, setSliderValue] = useState(getPropertyValue(\"oid\"));\n\tconst { setValueState: setOidValueState } = useValueState(\"oid\");\n\n\tconst oidStates = oidObject?.common?.states;\n\tconst oidType = oidObject?.common?.type;\n\n\tconst changeHandler = useCallback(\n\t\t(value) => setOidValueState(value),\n\t\t[setOidValueState],\n\t);\n\n\tconst ChangeSlider =\n\t\toidType === \"number\" &&\n\t\t!widget.data.onlyStates &&\n\t\toidObject?.common?.min !== undefined &&\n\t\toidObject?.common?.max !== undefined ? (\n\t\t\t<Slider\n\t\t\t\tsx={{ pb: oidStates ? 4 : 3 }}\n\t\t\t\tsize=\"small\"\n\t\t\t\tmin={oidObject.common.min}\n\t\t\t\tmax={oidObject.common.max}\n\t\t\t\tmarks={[\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue: oidObject.common.min,\n\t\t\t\t\t\tlabel: String(oidObject.common.min),\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue: oidObject.common.max,\n\t\t\t\t\t\tlabel: String(oidObject.common.max),\n\t\t\t\t\t},\n\t\t\t\t]}\n\t\t\t\tvalueLabelDisplay=\"auto\"\n\t\t\t\t// value={getPropertyValue(\"oid\") || 0}\n\t\t\t\tvalue={sliderValue}\n\t\t\t\tonChange={(_, value) => {\n\t\t\t\t\tsetSliderValue(value);\n\t\t\t\t\tchangeHandler(value);\n\t\t\t\t}}\n\t\t\t/>\n\t\t) : null;\n\n\tconst ChangeList = widgetStates ? (\n\t\t<List>\n\t\t\t{Object.entries(widgetStates).map(([key, value]) => {\n\t\t\t\treturn (\n\t\t\t\t\t<ListItem disablePadding key={key}>\n\t\t\t\t\t\t<ListItemButton disableGutters onClick={() => changeHandler(key)}>\n\t\t\t\t\t\t\t<ListItemText\n\t\t\t\t\t\t\t\tsx={{ px: 2 }}\n\t\t\t\t\t\t\t\tprimaryTypographyProps={{ variant: \"body2\" }}\n\t\t\t\t\t\t\t\tprimary={String(value)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</ListItemButton>\n\t\t\t\t\t</ListItem>\n\t\t\t\t);\n\t\t\t})}\n\t\t</List>\n\t) : null;\n\n\treturn (\n\t\t<Dialog\n\t\t\topen={open}\n\t\t\tonClose={closeHandler}\n\t\t\tmaxWidth=\"xs\"\n\t\t\tfullWidth\n\t\t\tPaperProps={{\n\t\t\t\tsx: {\n\t\t\t\t\t// bgcolor: data.backgroundColor,\n\t\t\t\t\t// color: data.textColor,\n\t\t\t\t},\n\t\t\t}}\n\t\t>\n\t\t\t<DialogTitle sx={{ m: 0, p: 2 }} id=\"customized-dialog-title\">\n\t\t\t\t{data.header || oidObject.common.name}\n\t\t\t</DialogTitle>\n\t\t\t<IconButton\n\t\t\t\taria-label=\"close\"\n\t\t\t\tonClick={closeHandler}\n\t\t\t\tsx={(theme) => ({\n\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t\tright: 8,\n\t\t\t\t\ttop: 8,\n\t\t\t\t\tcolor: theme.palette.grey[500],\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<CloseIcon />\n\t\t\t</IconButton>\n\t\t\t<DialogContent\n\t\t\t\tsx={{\n\t\t\t\t\toverflow: \"unset\",\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Stack\n\t\t\t\t\tdivider={Object.keys(widgetStates).length && <Divider flexItem />}\n\t\t\t\t\tsx={{\n\t\t\t\t\t\tpx: 2,\n\t\t\t\t\t}}\n\t\t\t\t\tspacing={0}\n\t\t\t\t\tcomponent={Paper}\n\t\t\t\t>\n\t\t\t\t\t{ChangeSlider}\n\t\t\t\t\t{ChangeList}\n\t\t\t\t</Stack>\n\t\t\t</DialogContent>\n\t\t</Dialog>\n\t);\n}\n\nexport default CollectionChangeDialog;\n","import { Avatar, Box, Button, Typography } from \"@mui/material\";\nimport React, { useCallback, useState, useContext } from \"react\";\nimport CollectionBase from \"../components/CollectionBase\";\nimport CollectionBaseImage from \"../components/CollectionBaseImage\";\nimport CollectionChangeDialog from \"../components/CollectionChangeDialog\";\nimport { CollectionContext } from \"../components/CollectionProvider\";\nimport useData from \"../hooks/useData\";\nimport useHtmlValue from \"../hooks/useHtmlValue\";\nimport useStyles from \"../hooks/useStyles\";\nimport useValueState from \"../hooks/useValueState\";\n\nfunction StateCollection() {\n\tconst [contentRef, setContentRef] = useState(null);\n\tconst { widget, oidObject } = useContext(CollectionContext);\n\tconst { textStyles, fontStyles } = useStyles(widget.style);\n\tconst { data, widgetStates } = useData(\"oid\");\n\tconst { value: oidValue, setValueState: setOidValueState } =\n\t\tuseValueState(\"oid\");\n\tconst [open, setOpen] = useState(false);\n\n\tconst oidType = oidObject?.common?.type;\n\n\tconst onlyStates = widget.data.onlyStates;\n\n\tconst downHandler = () => {\n\t\tif (\n\t\t\tonlyStates &&\n\t\t\tNumber(widget.data.values_count) === 2 &&\n\t\t\twidget.data.statePushButton\n\t\t) {\n\t\t\tsetTimeout(() => setOidValueState(widget.data.value1), 0);\n\t\t}\n\t};\n\n\tconst upHandler = () => {\n\t\tif (\n\t\t\tonlyStates &&\n\t\t\tNumber(widget.data.values_count) === 2 &&\n\t\t\twidget.data.statePushButton\n\t\t) {\n\t\t\tsetTimeout(() => setOidValueState(widget.data.value2), 0);\n\t\t}\n\t};\n\n\tconst clickHandler = useCallback(() => {\n\t\tif (!onlyStates) {\n\t\t\tsetOpen(true);\n\t\t\treturn;\n\t\t}\n\n\t\tswitch (Number(widget.data.values_count)) {\n\t\t\tcase 1:\n\t\t\t\tsetOidValueState(widget.data.value1);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t!widget.data.statePushButton &&\n\t\t\t\t\tString(oidValue) === String(widget.data.value1)\n\t\t\t\t\t? setOidValueState(widget.data.value2)\n\t\t\t\t\t: setOidValueState(widget.data.value1);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsetOpen(true);\n\t\t\t\tbreak;\n\t\t}\n\t}, [\n\t\toidValue,\n\t\tonlyStates,\n\t\twidget.data.values_count,\n\t\twidget.data.statePushButton,\n\t\twidget.data.value1,\n\t\twidget.data.value2,\n\t\tsetOidValueState,\n\t]);\n\n\tconst StateButton = (\n\t\t<Button\n\t\t\tdisabled={widget.data.onlyDisplay}\n\t\t\tonClick={clickHandler}\n\t\t\tonMouseDown={downHandler}\n\t\t\tonMouseUp={upHandler}\n\t\t\tonMouseOut={upHandler}\n\t\t\tonTouchStart={downHandler}\n\t\t\tonTouchEnd={upHandler}\n\t\t\tsx={{\n\t\t\t\twidth: \"100%\",\n\t\t\t\theight: \"100%\",\n\n\t\t\t\tcolor:\n\t\t\t\t\tdata.iconColorActive ||\n\t\t\t\t\tdata.iconColor ||\n\t\t\t\t\tdata.textColorActive ||\n\t\t\t\t\tdata.textColor,\n\t\t\t\t\"&:hover\": {\n\t\t\t\t\tbgcolor: \"transparent\",\n\t\t\t\t\tfilter:\n\t\t\t\t\t\t(data.iconHoverActive && `brightness(${data.iconHoverActive})`) ||\n\t\t\t\t\t\t(data.iconHover && `brightness(${data.iconHover})`),\n\t\t\t\t},\n\t\t\t}}\n\t\t>\n\t\t\t<Box\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{!widget.data.noIcon && (data.iconActive || data.icon) && (\n\t\t\t\t\t<Box\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t// overflow: \"hidden\",\n\n\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\tflexGrow: 1,\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<Avatar\n\t\t\t\t\t\t\tvariant=\"square\"\n\t\t\t\t\t\t\tsrc={data.iconActive || data.icon}\n\t\t\t\t\t\t\timgProps={{\n\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\tobjectFit: \"contain\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\toverflow: \"hidden\",\n\n\t\t\t\t\t\t\t\twidth:\n\t\t\t\t\t\t\t\t\t(typeof data.iconSizeOnly === \"number\" &&\n\t\t\t\t\t\t\t\t\t\t`calc(100% * ${data.iconSizeOnly} / 100)`) ||\n\t\t\t\t\t\t\t\t\t\"100%\",\n\t\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\t\t(typeof data.iconSizeOnly === \"number\" &&\n\t\t\t\t\t\t\t\t\t\t`calc(100% * ${data.iconSizeOnly} / 100)`) ||\n\t\t\t\t\t\t\t\t\t\"100%\",\n\n\t\t\t\t\t\t\t\tleft: `calc(0px + ${data.iconXOffset})`,\n\t\t\t\t\t\t\t\ttop: `calc(0px - ${data.iconYOffset})`,\n\n\t\t\t\t\t\t\t\tbgcolor: \"transparent\",\n\t\t\t\t\t\t\t\tcolor: data.iconColorActive || data.iconColor,\n\t\t\t\t\t\t\t\tfilter:\n\t\t\t\t\t\t\t\t\t(data.iconActive || data.icon) &&\n\t\t\t\t\t\t\t\t\t(data.iconColorActive || data.iconColor) &&\n\t\t\t\t\t\t\t\t\t\"drop-shadow(0px 10000px 0)\",\n\t\t\t\t\t\t\t\ttransform:\n\t\t\t\t\t\t\t\t\t(data.iconActive || data.icon) &&\n\t\t\t\t\t\t\t\t\t(data.iconColorActive || data.iconColor) &&\n\t\t\t\t\t\t\t\t\t\"translateY(-10000px)\",\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\n\t\t\t\t{!widget.data.noValue && (\n\t\t\t\t\t<Box\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\tflexGrow: 1,\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<Typography\n\t\t\t\t\t\t\tref={setContentRef}\n\t\t\t\t\t\t\tvariant=\"body2\"\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t...fontStyles,\n\t\t\t\t\t\t\t\t...textStyles,\n\t\t\t\t\t\t\t\tfontSize: data.valueSizeActive || data.valueSize,\n\t\t\t\t\t\t\t\tbgcolor: \"transparent\",\n\t\t\t\t\t\t\t\tcolor: data.textColorActive || data.textColor,\n\t\t\t\t\t\t\t\ttextTransform: \"none\",\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t</Box>\n\t\t</Button>\n\t);\n\n\tuseHtmlValue(contentRef, oidValue, widget, data);\n\n\tconst isValidType =\n\t\toidType === \"boolean\" ||\n\t\toidType === \"number\" ||\n\t\toidType === \"string\" ||\n\t\toidType === \"mixed\";\n\n\treturn (\n\t\t<>\n\t\t\t{open && (\n\t\t\t\t<CollectionChangeDialog\n\t\t\t\t\tdata={{ sampleInterval: null, sampleIntervalValue: null, delay: 100 }}\n\t\t\t\t\twidgetStates={widgetStates}\n\t\t\t\t\topen={open}\n\t\t\t\t\tcloseHandler={() => setOpen(false)}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t<CollectionBase isValidType={isValidType} data={data} oidValue={oidValue}>\n\t\t\t\t<CollectionBaseImage data={data} widget={widget} />\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\tjustifyContent: \"center\",\n\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{StateButton}\n\t\t\t\t</Box>\n\t\t\t</CollectionBase>\n\t\t</>\n\t);\n}\n\nexport default StateCollection;\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 delayFields from \"../lib/delayFields\";\nimport stateFields from \"../lib/stateFields\";\nimport StateCollection from \"./StateCollection\";\n\nclass StateCollectionWidget extends Generic {\n\tstatic getWidgetInfo() {\n\t\treturn {\n\t\t\tid: \"tplStateCollectionWidget\",\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\tvisSetColor: \"#0C0A43\", // Color of a widget set. it is enough to set color only in one widget of a set\n\t\t\tvisName: \"StateCollectionWidget\", // Name of widget\n\t\t\tvisWidgetLabel: \"state_collection_widget\", // Label for widget\n\t\t\tvisOrder: 3,\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()],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"button\", // group name\n\t\t\t\t\tlabel: \"group_button\",\n\t\t\t\t\tfields: [\n\t\t\t\t\t\t...commonObjectFields([\"string\", \"number\", \"boolean\", \"mixed\"]),\n\t\t\t\t\t\t...delayFields(),\n\t\t\t\t\t\t...stateFields(),\n\t\t\t\t\t],\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-state.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 StateCollectionWidget.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\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\thasPropertyValueChanged: this.hasPropertyValueChanged.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(<StateCollection />),\n\t\t\tcollectionContext,\n\t\t);\n\t}\n}\n\nexport default StateCollectionWidget;\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":["stateFields","type","component","_jsx","CollectionDivider","name","label","default","hidden","data","onlyStates","Number","values_count","tooltip","disabled","props","_oidObject$common","_oidObject$common2","_oidObject$common3","_oidObject$common4","widgetStates","open","closeHandler","widget","oidObject","getPropertyValue","useContext","CollectionContext","sliderValue","setSliderValue","useState","setValueState","setOidValueState","useValueState","oidStates","common","states","oidType","changeHandler","useCallback","value","ChangeSlider","undefined","min","max","Slider","sx","pb","size","marks","String","valueLabelDisplay","onChange","_","ChangeList","List","children","Object","entries","map","_ref","key","ListItem","disablePadding","ListItemButton","disableGutters","onClick","ListItemText","px","primaryTypographyProps","variant","primary","_jsxs","Dialog","onClose","maxWidth","fullWidth","PaperProps","DialogTitle","m","p","id","header","IconButton","theme","position","right","top","color","palette","grey","CloseIcon","DialogContent","overflow","Stack","divider","keys","length","Divider","flexItem","spacing","Paper","contentRef","setContentRef","textStyles","fontStyles","useStyles","style","useData","oidValue","setOpen","downHandler","statePushButton","setTimeout","value1","upHandler","value2","clickHandler","StateButton","Button","onlyDisplay","onMouseDown","onMouseUp","onMouseOut","onTouchStart","onTouchEnd","width","height","iconColorActive","iconColor","textColorActive","textColor","bgcolor","filter","iconHoverActive","concat","iconHover","Box","display","justifyContent","alignItems","noIcon","iconActive","icon","flexGrow","Avatar","src","imgProps","objectFit","iconSizeOnly","left","iconXOffset","iconYOffset","transform","noValue","Typography","ref","_objectSpread","fontSize","valueSizeActive","valueSize","textTransform","useHtmlValue","isValidType","_Fragment","CollectionChangeDialog","sampleInterval","sampleIntervalValue","delay","CollectionBase","CollectionBaseImage","StateCollectionWidget","Generic","getWidgetInfo","visSet","visSetLabel","visSetColor","visName","visWidgetLabel","visOrder","visAttrs","fields","commonFields","commonObjectFields","delayFields","indexFrom","indexTo","groupName","allFields","visDefaultStyle","visPrev","propertiesUpdate","actualRxData","JSON","stringify","this","state","rxData","lastRxData","createStateObjectAsync","onRxDataChanged","payload","onRxStyleChanged","onStateUpdated","componentDidMount","super","renderWidgetBody","collectionContext","refService","rxStyle","setValue","setState","bind","values","isSignalVisible","hasPropertyValueChanged","mode","context","themeType","socket","wrappedContent","noCard","usedInWidget","withCollectionProvider","wrapContent","StateCollection","oidValueUnit","unit","contentValue","alias","useEffect","innerHTML","_interopRequireDefault","require","exports","_createSvgIcon","_jsxRuntime","jsx","d"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkiobroker_vis_widgets_react_collection=self.webpackChunkiobroker_vis_widgets_react_collection||[]).push([["src_SwitchCollectionWidget_SwitchCollectionWidget_jsx"],{4801:(t,e,i)=>{i.r(e),i.d(e,{default:()=>z});var o=i(7051),a=i(8437),n=i(6211),s=i(900),l=i(8679),c=i(375),r=i(5006),d=i(4376),h=i(579);const u=()=>[{type:"custom",component:()=>(0,h.jsx)(d.A,{})},{name:"thumbSize",label:"thumb_size",type:"slider",min:0,max:500,default:62,step:1},{name:"thumbColorTrue",label:"thumb_color_true",type:"color"},{name:"thumbColorFalse",label:"thumb_color_false",type:"color"},{type:"custom",component:()=>(0,h.jsx)(d.A,{})},{name:"trackSize",label:"track_size",type:"slider",min:0,max:100,default:10,step:1},{name:"trackColor",label:"track_color",type:"color"}];var p=i(7085),g=i(4657),m=i(6061),b=i(6016),w=i(2152),f=i(2671),S=i(9042),v=i(4535),x=i(8565);function C(t){return[/^#([0-9a-fA-F]{3})$/,/^#([0-9a-fA-F]{6})$/,/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/,/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*(0|1|0?\.\d+)\s*\)$/,/^hsl\(\s*\d+\s*,\s*\d+%\s*,\s*\d+%\s*\)$/,/^hsla\(\s*\d+\s*,\s*\d+%\s*,\s*\d+%\s*,\s*(0|1|0?\.\d+)\s*\)$/,/^color\(\s*[\w-]+\s+(?:\d+(\.\d+)?%?\s*)+\)$/].some((e=>e.test(t)))}const y=(0,v.Ay)(S.A)((t=>{let{width:e,maxHeight:i,data:o,widget:a,theme:n}=t;return{width:"100%",height:"100%",padding:0,margin:0,"&.MuiSwitch-root":{overflow:"visible"},"& .MuiSwitch-switchBase":{margin:0,padding:0,top:"50%",left:"0%",transform:"translate(-50%, -50%) translateX(".concat(i>=(a.data.thumbSize||62)?a.data.thumbSize/2-4||27:i/2-4,"px)"),"& .MuiSwitch-input":{left:0,width:e},"&.Mui-checked":{top:"50%",left:"100%",transform:"translate(-50%, -50%) translateX(".concat(i>=(a.data.thumbSize||62)?-(a.data.thumbSize/2-4)||-35:-(i/2-4),"px)"),"& .MuiSwitch-input":{left:-e+(a.data.thumbSize||62),width:e},"& .MuiSwitch-thumb":{backgroundColor:a.data.thumbColorTrue||n.palette.primary.main},"& .MuiSwitch-thumb:before":{top:"calc(".concat(o.iconYOffset," * -1)"),left:o.iconXOffset,backgroundSize:"".concat(0===o.iconSizeOnly?"0":o.iconSizeOnly||"100","% ").concat(0===o.iconSizeOnly?"0":o.iconSizeOnly||"100","%"),backgroundImage:o.iconActive&&"url('".concat(o.iconActive,"')")},"& + .MuiSwitch-track":{backgroundColor:C(a.data.trackColor)&&a.data.trackColor||("dark"===n.palette.mode?(0,x.alpha)("rgb(144, 202, 249)",.5):(0,x.alpha)("#1976d2",.5))}}},"& .MuiSwitch-thumb":{backgroundColor:a.data.thumbColorFalse,width:a.data.thumbSize||62,maxWidth:i,height:a.data.thumbSize||62,maxHeight:i,"&::before":{content:"''",position:"absolute",width:"100%",height:"100%",left:"calc(0px + ".concat(o.iconXOffset,")"),top:"calc(0px - ".concat(o.iconYOffset,")"),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"".concat(0===o.iconSizeOnly?"0":o.iconSizeOnly||"100","% ").concat(0===o.iconSizeOnly?"0":o.iconSizeOnly||"100","%"),backgroundImage:o.iconActive&&"url('".concat(o.iconActive,"')"),color:o.iconColorActive||o.iconColor,filter:o.iconColorActive||o.iconColor?"drop-shadow(0px 10000px 0)":null,transform:o.iconColorActive||o.iconColor?"translateY(-10000px)":null}},"& .MuiSwitch-track":{backgroundColor:C(a.data.trackColor)&&(0,x.alpha)(a.data.trackColor,.5)||("dark"===n.palette.mode?(0,x.alpha)("#ffffff",.3):(0,x.alpha)("#000000",.38)),borderRadius:10}}}));const k=function(){var t,e,i,o,n;const s=(0,a.useRef)(null),{oidObject:l,widget:c}=(0,a.useContext)(b.C),{data:r}=(0,w.A)("oid"),{value:d,setValueState:u}=(0,f.A)("oid"),S=null===l||void 0===l||null===(t=l.common)||void 0===t?void 0:t.type,v="boolean"===S;return(0,h.jsxs)(g.A,{isValidType:v,data:r,oidValue:d,children:[(0,h.jsx)(m.A,{data:r,widget:c}),(0,h.jsx)(p.Box,{sx:{position:"relative",width:"100%",height:c.data.trackSize&&"".concat(c.data.trackSize,"%")||"10%"},children:(0,h.jsx)(p.Box,{ref:s,sx:{width:"100%",height:"100%",px:"8px",display:"flex",justifyContent:"center",alignItems:"center"},children:void 0!==d&&void 0!==c.data.thumbSize&&(0,h.jsx)(y,{disabled:"boolean"!==S,width:null===(e=s.current)||void 0===e?void 0:e.clientWidth,maxHeight:null===(i=s.current)||void 0===i||null===(o=i.parentElement)||void 0===o||null===(n=o.parentElement)||void 0===n?void 0:n.clientHeight,data:r,widget:c,checked:d,onChange:()=>u(!d),sx:{"& .MuiTouchRipple-root":{color:r.iconColorActive||r.iconColor||r.textColorActive||r.textColor}}})})})]})};class A extends n.A{static getWidgetInfo(){return{id:"tplSwitchCollectionWidget",visSet:"vis-2-widgets-collection",visSetLabel:"widgets_collection",visName:"SwitchCollectionWidget",visWidgetLabel:"switch_collection_widget",visOrder:2,visAttrs:[{name:"common",fields:[...(0,l.A)()]},{name:"switch",label:"group_switch",fields:[...(0,c.A)(["boolean"]),...(0,r.A)(),...u()]},{name:"values",label:"values",indexFrom:1,indexTo:"values_count",fields:[...(0,l.A)({groupName:"",allFields:!1})]}],visDefaultStyle:{width:"100%",height:"100px",position:"relative"},visPrev:"widgets/vis-2-widgets-collection/img/prev-collection-switch.png"}}getWidgetInfo(){return A.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,o.A)((0,o.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),hasPropertyValueChanged:this.hasPropertyValueChanged.bind(this),mode:this.props.context.themeType,socket:this.props.context.socket,theme:this.props.context.theme,wrappedContent:this.wrappedContent};return t.widget.data.noCard||t.widget.usedInWidget?this.wrappedContent=!1:this.wrappedContent=!0,(0,s.A)(this.wrapContent((0,h.jsx)(k,{})),e)}}const z=A}}]);
|
|
2
|
+
//# sourceMappingURL=src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.a4aed4b6.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.a4aed4b6.chunk.js","mappings":"0UAEA,MA4CA,EA5CqBA,IAAM,CAC1B,CACCC,KAAM,SACNC,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KAEpC,CACCC,KAAM,YACNC,MAAO,aACPL,KAAM,SACNM,IAAK,EACLC,IAAK,IACLC,QAAS,GACTC,KAAM,GAEP,CACCL,KAAM,iBACNC,MAAO,mBACPL,KAAM,SAEP,CACCI,KAAM,kBACNC,MAAO,oBACPL,KAAM,SAEP,CACCA,KAAM,SACNC,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KAEpC,CACCC,KAAM,YACNC,MAAO,aACPL,KAAM,SACNM,IAAK,EACLC,IAAK,IACLC,QAAS,GACTC,KAAM,GAEP,CACCL,KAAM,aACNC,MAAO,cACPL,KAAM,U,8FCtCR,SAASU,EAAmBC,GAW3B,MAViB,CAChB,sBACA,sBACA,yCACA,8DACA,2CACA,gEACA,gDAGeC,MAAMC,GAAYA,EAAQC,KAAKH,IAChD,CAEA,MAoHA,GApHyBI,EAAAA,EAAAA,IAAOC,EAAAA,EAAPD,EACxBE,IAAA,IAAC,MAAEC,EAAK,UAAEC,EAAS,KAAEC,EAAI,OAAEC,EAAM,MAAEC,GAAOL,EAAA,MAAM,CAC/CC,MAAO,OACPK,OAAQ,OAERC,QAAS,EACTC,OAAQ,EAER,mBAAoB,CACnBC,SAAU,WAGX,0BAA2B,CAG1BD,OAAQ,EACRD,QAAS,EAETG,IAAK,MACLC,KAAM,KACNC,UAAU,oCAADC,OAAsCX,IAAcE,EAAOD,KAAKW,WAAa,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AAKgC,aAAYxJ,EAAAA,EAAAA,KAACyJ,EAAgB,KAClCpB,EAEF,EAGD,S","sources":["lib/switchFields.jsx","SwitchCollectionWidget/MaterialUISwitch.jsx","SwitchCollectionWidget/SwitchCollection.jsx","SwitchCollectionWidget/SwitchCollectionWidget.jsx"],"sourcesContent":["import CollectionDivider from \"../components/CollectionDivider\";\n\nconst switchFields = () => [\n\t{\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"thumbSize\",\n\t\tlabel: \"thumb_size\",\n\t\ttype: \"slider\",\n\t\tmin: 0,\n\t\tmax: 500,\n\t\tdefault: 62,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"thumbColorTrue\",\n\t\tlabel: \"thumb_color_true\",\n\t\ttype: \"color\",\n\t},\n\t{\n\t\tname: \"thumbColorFalse\",\n\t\tlabel: \"thumb_color_false\",\n\t\ttype: \"color\",\n\t},\n\t{\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"trackSize\",\n\t\tlabel: \"track_size\",\n\t\ttype: \"slider\",\n\t\tmin: 0,\n\t\tmax: 100,\n\t\tdefault: 10,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"trackColor\",\n\t\tlabel: \"track_color\",\n\t\ttype: \"color\",\n\t},\n];\n\nexport default switchFields;\n","import Switch from \"@mui/material/Switch\";\nimport { styled } from \"@mui/material/styles\";\nimport { alpha } from \"@mui/material/styles\";\n\nfunction isValidColorFormat(str) {\n\tconst patterns = [\n\t\t/^#([0-9a-fA-F]{3})$/, // #nnn\n\t\t/^#([0-9a-fA-F]{6})$/, // #nnnnnn\n\t\t/^rgb\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*\\)$/, // rgb(r, g, b)\n\t\t/^rgba\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*(0|1|0?\\.\\d+)\\s*\\)$/, // rgba(r, g, b, a)\n\t\t/^hsl\\(\\s*\\d+\\s*,\\s*\\d+%\\s*,\\s*\\d+%\\s*\\)$/, // hsl(h, s%, l%)\n\t\t/^hsla\\(\\s*\\d+\\s*,\\s*\\d+%\\s*,\\s*\\d+%\\s*,\\s*(0|1|0?\\.\\d+)\\s*\\)$/, // hsla(h, s%, l%, a)\n\t\t/^color\\(\\s*[\\w-]+\\s+(?:\\d+(\\.\\d+)?%?\\s*)+\\)$/ // basic CSS4 color() check\n\t];\n\n\treturn patterns.some((pattern) => pattern.test(str));\n}\n\nconst MaterialUISwitch = styled(Switch)(\n\t({ width, maxHeight, data, widget, theme }) => ({\n\t\twidth: \"100%\",\n\t\theight: \"100%\",\n\n\t\tpadding: 0,\n\t\tmargin: 0,\n\n\t\t\"&.MuiSwitch-root\": {\n\t\t\toverflow: \"visible\", // erforderlich\n\t\t},\n\n\t\t\"& .MuiSwitch-switchBase\": {\n\t\t\t// overflow: \"hidden\", // ???\n\n\t\t\tmargin: 0,\n\t\t\tpadding: 0,\n\n\t\t\ttop: \"50%\",\n\t\t\tleft: \"0%\",\n\t\t\ttransform: `translate(-50%, -50%) translateX(${maxHeight >= (widget.data.thumbSize || 62)\n\t\t\t\t? (widget.data.thumbSize / 2 - 4) || 31 - 4\n\t\t\t\t: maxHeight / 2 - 4\n\t\t\t\t}px)`,\n\n\t\t\t\"& .MuiSwitch-input\": {\n\t\t\t\tleft: 0,\n\t\t\t\twidth: width,\n\t\t\t},\n\n\t\t\t\"&.Mui-checked\": {\n\t\t\t\ttop: \"50%\",\n\t\t\t\tleft: \"100%\",\n\t\t\t\ttransform: `translate(-50%, -50%) translateX(${maxHeight >= (widget.data.thumbSize || 62)\n\t\t\t\t\t? -(widget.data.thumbSize / 2 - 4) || -31 - 4\n\t\t\t\t\t: -(maxHeight / 2 - 4)\n\t\t\t\t\t}px)`,\n\n\t\t\t\t\"& .MuiSwitch-input\": {\n\t\t\t\t\tleft: -width + (widget.data.thumbSize || 62),\n\t\t\t\t\twidth: width,\n\t\t\t\t},\n\n\t\t\t\t\"& .MuiSwitch-thumb\": {\n\t\t\t\t\tbackgroundColor:\n\t\t\t\t\t\twidget.data.thumbColorTrue || theme.palette.primary.main,\n\t\t\t\t},\n\n\t\t\t\t\"& .MuiSwitch-thumb:before\": {\n\t\t\t\t\ttop: `calc(${data.iconYOffset} * -1)`,\n\t\t\t\t\tleft: data.iconXOffset,\n\n\t\t\t\t\tbackgroundSize: `${data.iconSizeOnly === 0 ? \"0\" : data.iconSizeOnly || \"100\"}% ${data.iconSizeOnly === 0 ? \"0\" : data.iconSizeOnly || \"100\"}%`,\n\t\t\t\t\tbackgroundImage: data.iconActive && `url('${data.iconActive}')`,\n\t\t\t\t},\n\n\t\t\t\t\"& + .MuiSwitch-track\": {\n\t\t\t\t\tbackgroundColor:\n\t\t\t\t\t\t(isValidColorFormat(widget.data.trackColor) && widget.data.trackColor) ||\n\t\t\t\t\t\t(theme.palette.mode === \"dark\"\n\t\t\t\t\t\t\t? alpha(\"rgb(144, 202, 249)\", 0.5)\n\t\t\t\t\t\t\t: alpha(\"#1976d2\", 0.5)),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\t\"& .MuiSwitch-thumb\": {\n\t\t\tbackgroundColor: widget.data.thumbColorFalse,\n\n\t\t\twidth: widget.data.thumbSize || 62,\n\t\t\tmaxWidth: maxHeight,\n\t\t\theight: widget.data.thumbSize || 62,\n\t\t\tmaxHeight: maxHeight,\n\n\t\t\t\"&::before\": {\n\t\t\t\tcontent: \"''\",\n\t\t\t\tposition: \"absolute\",\n\n\t\t\t\twidth: \"100%\",\n\t\t\t\theight: \"100%\",\n\n\t\t\t\t// top: `calc(${data.iconYOffset} * -1)`,\n\t\t\t\t// left: data.iconXOffset,\n\n\t\t\t\tleft: `calc(0px + ${data.iconXOffset})`,\n\t\t\t\ttop: `calc(0px - ${data.iconYOffset})`,\n\n\t\t\t\tbackgroundRepeat: \"no-repeat\",\n\t\t\t\tbackgroundPosition: \"center\",\n\n\t\t\t\tbackgroundSize: `${data.iconSizeOnly === 0 ? \"0\" : data.iconSizeOnly || \"100\"}% ${data.iconSizeOnly === 0 ? \"0\" : data.iconSizeOnly || \"100\"}%`,\n\t\t\t\tbackgroundImage: data.iconActive && `url('${data.iconActive}')`,\n\n\t\t\t\tcolor: data.iconColorActive || data.iconColor,\n\t\t\t\tfilter:\n\t\t\t\t\tdata.iconColorActive || data.iconColor\n\t\t\t\t\t\t? \"drop-shadow(0px 10000px 0)\"\n\t\t\t\t\t\t: null,\n\t\t\t\ttransform:\n\t\t\t\t\tdata.iconColorActive || data.iconColor\n\t\t\t\t\t\t? \"translateY(-10000px)\"\n\t\t\t\t\t\t: null,\n\t\t\t},\n\t\t},\n\n\t\t\"& .MuiSwitch-track\": {\n\t\t\tbackgroundColor:\n\t\t\t\t(isValidColorFormat(widget.data.trackColor) && alpha(widget.data.trackColor, 0.5)) ||\n\t\t\t\t(theme.palette.mode === \"dark\"\n\t\t\t\t\t? alpha(\"#ffffff\", 0.3)\n\t\t\t\t\t: alpha(\"#000000\", 0.38)),\n\t\t\tborderRadius: 20 / 2,\n\t\t},\n\t}),\n);\n\nexport default MaterialUISwitch;\n","import { Box } from \"@mui/material\";\nimport React, { useRef, useContext } from \"react\";\nimport CollectionBase from \"../components/CollectionBase\";\nimport CollectionBaseImage from \"../components/CollectionBaseImage\";\nimport { CollectionContext } from \"../components/CollectionProvider\";\nimport useData from \"../hooks/useData\";\nimport useValueState from \"../hooks/useValueState\";\nimport MaterialUISwitch from \"./MaterialUISwitch\";\n\nfunction SwitchCollection() {\n\tconst ref = useRef(null);\n\tconst { oidObject, widget } = useContext(CollectionContext);\n\tconst { data } = useData(\"oid\");\n\tconst { value: oidValue, setValueState: setOidValueState } =\n\t\tuseValueState(\"oid\");\n\n\tconst oidType = oidObject?.common?.type;\n\n\tconst isValidType = oidType === \"boolean\";\n\n\treturn (\n\t\t<CollectionBase isValidType={isValidType} data={data} oidValue={oidValue}>\n\t\t\t<CollectionBaseImage data={data} widget={widget} />\n\t\t\t<Box\n\t\t\t\tsx={{\n\t\t\t\t\tposition: \"relative\",\n\n\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\theight:\n\t\t\t\t\t\t(widget.data.trackSize && `${widget.data.trackSize}%`) || \"10%\",\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Box\n\t\t\t\t\tref={ref}\n\t\t\t\t\tsx={{\n\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\theight: \"100%\",\n\n\t\t\t\t\t\tpx: \"8px\",\n\n\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{oidValue !== undefined && widget.data.thumbSize !== undefined && (\n\t\t\t\t\t\t<MaterialUISwitch\n\t\t\t\t\t\t\tdisabled={oidType !== \"boolean\"}\n\t\t\t\t\t\t\twidth={ref.current?.clientWidth}\n\t\t\t\t\t\t\tmaxHeight={\n\t\t\t\t\t\t\t\tref.current?.parentElement?.parentElement?.clientHeight\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdata={data}\n\t\t\t\t\t\t\twidget={widget}\n\t\t\t\t\t\t\tchecked={oidValue}\n\t\t\t\t\t\t\tonChange={() => setOidValueState(!oidValue)}\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\"& .MuiTouchRipple-root\": {\n\t\t\t\t\t\t\t\t\tcolor:\n\t\t\t\t\t\t\t\t\t\tdata.iconColorActive ||\n\t\t\t\t\t\t\t\t\t\tdata.iconColor ||\n\t\t\t\t\t\t\t\t\t\tdata.textColorActive ||\n\t\t\t\t\t\t\t\t\t\tdata.textColor,\n\t\t\t\t\t\t\t\t},\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</Box>\n\t\t\t</Box>\n\t\t</CollectionBase>\n\t);\n}\n\nexport default SwitchCollection;\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 delayFields from \"../lib/delayFields\";\nimport switchFields from \"../lib/switchFields\";\nimport SwitchCollection from \"./SwitchCollection\";\n\nclass SwitchCollectionWidget extends Generic {\n\tstatic getWidgetInfo() {\n\t\treturn {\n\t\t\tid: \"tplSwitchCollectionWidget\",\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: \"SwitchCollectionWidget\", // Name of widget\n\t\t\tvisWidgetLabel: \"switch_collection_widget\", // Label for widget\n\t\t\tvisOrder: 2,\n\t\t\tvisAttrs: [\n\t\t\t\t// CollectionGroupCommonAttributes([\"boolean\"]),\n\t\t\t\t{\n\t\t\t\t\tname: \"common\", // group name\n\t\t\t\t\tfields: [...commonFields()],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"switch\",\n\t\t\t\t\tlabel: \"group_switch\",\n\t\t\t\t\tfields: [\n\t\t\t\t\t\t...commonObjectFields([\"boolean\"]),\n\t\t\t\t\t\t...delayFields(),\n\t\t\t\t\t\t...switchFields(),\n\t\t\t\t\t],\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\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-switch.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 SwitchCollectionWidget.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\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\thasPropertyValueChanged: this.hasPropertyValueChanged.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(<SwitchCollection />),\n\t\t\tcollectionContext,\n\t\t);\n\t}\n}\n\nexport default SwitchCollectionWidget;\n"],"names":["switchFields","type","component","_jsx","CollectionDivider","name","label","min","max","default","step","isValidColorFormat","str","some","pattern","test","styled","Switch","_ref","width","maxHeight","data","widget","theme","height","padding","margin","overflow","top","left","transform","concat","thumbSize","backgroundColor","thumbColorTrue","palette","primary","main","iconYOffset","iconXOffset","backgroundSize","iconSizeOnly","backgroundImage","iconActive","trackColor","mode","alpha","thumbColorFalse","maxWidth","content","position","backgroundRepeat","backgroundPosition","color","iconColorActive","iconColor","filter","borderRadius","_oidObject$common","_ref$current","_ref$current2","_ref$current2$parentE","_ref$current2$parentE2","ref","useRef","oidObject","useContext","CollectionContext","useData","value","oidValue","setValueState","setOidValueState","useValueState","oidType","common","isValidType","_jsxs","CollectionBase","children","CollectionBaseImage","Box","sx","trackSize","px","display","justifyContent","alignItems","undefined","MaterialUISwitch","disabled","current","clientWidth","parentElement","clientHeight","checked","onChange","textColorActive","textColor","SwitchCollectionWidget","Generic","getWidgetInfo","id","visSet","visSetLabel","visName","visWidgetLabel","visOrder","visAttrs","fields","commonFields","commonObjectFields","delayFields","indexFrom","indexTo","groupName","allFields","visDefaultStyle","visPrev","propertiesUpdate","actualRxData","JSON","stringify","this","state","rxData","lastRxData","createStateObjectAsync","onRxDataChanged","payload","onRxStyleChanged","onStateUpdated","componentDidMount","super","renderWidgetBody","props","collectionContext","refService","style","_objectSpread","rxStyle","setValue","setState","bind","values","isSignalVisible","getPropertyValue","hasPropertyValueChanged","context","themeType","socket","wrappedContent","noCard","usedInWidget","withCollectionProvider","wrapContent","SwitchCollection"],"sourceRoot":""}
|
|
@@ -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:(e,t,o)=>{o.r(t),o.d(t,{default:()=>_});var a=o(7051),l=o(8437),i=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:"dialogHeaderAsTitle",label:"dialog_header_as_title",type:"checkbox",default:!1},{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},{name:"dialogInPixel",label:"dialog_in_pixel",type:"checkbox",default:!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:"dialog_text",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},{name:"dialogCloseButtonColor",label:"dialog_close_button_color",type:"color"},{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),p=o(4535),u=o(4657),h=o(6016),x=o(2152),y=o(4692),m=o(5702),b=o(4802),f=o(8565);function A(e){var t;let{open:o,handleClose:i,widget:n,data:d,getWidgetView:s,fontStyles:c,textStyles:p}=e;const h=(0,l.useRef)(null),[x,y]=(0,l.useState)(null),m=null===(t=h.current)||void 0===t?void 0:t.header;(0,l.useEffect)((()=>{n.data.dialogHeaderAsTitle&&m&&x&&(n.data.dialogHeaderAsTitle&&(m.style.width="0px",m.style.height="0px"),x.innerHTML=d.header,x.style.height="auto",x.style.width="auto")}),[m,x,d.header,n.data.dialogHeaderAsTitle]);const A=(0,r.jsx)(g.IconButton,{sx:{alignSelf:"flex-end",filter:"brightness(1.5)",color:e=>n.data.dialogCloseButtonColor||d.frameBackgroundColor||e.palette.background.primary},"aria-label":"delete",onClick:i,children:(0,r.jsx)(b.A,{})});return(0,r.jsx)(g.Modal,{onClose:i,open:o,sx:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:n.data.dialogBackgroundColor||"inherit"},children:(0,r.jsx)(g.Box,{sx:{width:n.data.dialogInPixel?"".concat(n.data.dialogWidth,"px"):"".concat(n.data.dialogWidth,"%"),height:n.data.dialogInPixel?"".concat(n.data.dialogHeight,"px"):"".concat(n.data.dialogHeight,"%")},children:(0,r.jsxs)(u.A,{ref:h,data:d,sx:{flexDirection:"column",background:d.backgroundColor||d.background},children:[(0,r.jsxs)(g.Box,{sx:{position:"relative",width:"100%",height:"auto",display:"flex",justifyContent:"flex-end",alignItems:"center",p:n.data.dialogCloseButtonTop||!n.data.dialogHeaderAsTitle?0:2},children:[(0,r.jsx)(g.Box,{sx:{position:"absolute",left:0,width:"100%"},children:(0,r.jsx)(g.Typography,{ref:y,noWrap:!0,variant:"body2",sx:(0,a.A)((0,a.A)((0,a.A)({},c),p),{},{fontSize:d.headerSize,color:d.textColor,px:n.data.dialogCloseButtonTop?4:0})})}),n.data.dialogCloseButtonTop&&A]}),n.data.dialogCloseButtonTop&&(0,r.jsx)(g.Divider,{sx:{width:"100%",opacity:"0.5",background:e=>d.frameBackgroundColor||e.palette.background.primary}}),(0,r.jsx)(g.Box,{sx:{"::-webkit-scrollbar-track":{background:e=>d.frameBackgroundColor&&(0,f.alpha)(d.frameBackgroundColor,.5)},"::-webkit-scrollbar-thumb":{opacity:"0.5",background:e=>d.frameBackgroundColor&&(0,f.alpha)(d.frameBackgroundColor,.7)},position:"relative",overflow:"auto",width:"100%",height:"100%"},children:s(n.data.view,{style:{}})}),n.data.dialogCloseButtonBottom&&(0,r.jsx)(g.Divider,{sx:{width:"100%",opacity:"0.5",background:e=>d.frameBackgroundColor||e.palette.background.default}}),n.data.dialogCloseButtonBottom&&A]})})})}const C=(0,p.Ay)(g.ButtonBase)({width:"100% !important",height:"100% !important",display:"flex",justifyContent:"center",alignItems:"center"});const v=function(){var e;const[t,o]=(0,l.useState)(!1),i=(0,l.useRef)(null),[n,d]=(0,l.useState)(null),{oidObject:s,widget:c,getWidgetView:p,setValue:b}=(0,l.useContext)(h.C),{textStyles:f,fontStyles:v}=(0,m.A)(c.style),{data:w}=(0,x.A)("oid");(0,y.A)(n,"",c,w);const _=null===s||void 0===s?void 0:s._id,j="boolean"===(null===s||void 0===s||null===(e=s.common)||void 0===e?void 0:e.type)||!c.data.oid||"nothing_selected"===c.data.oid;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A,{open:t,handleClose:()=>{i.current&&(clearTimeout(i.current),i.current=null),b(_,!1),o(!1)},widget:c,data:w,getWidgetView:p,fontStyles:v,textStyles:f}),(0,r.jsx)(u.A,{isValidType:j,data:w,children:(0,r.jsx)(g.Box,{sx:{width:"100%",height:"100%",display:"flex"},children:(0,r.jsxs)(C,{onClick:()=>{b(_,!0),(()=>{let e=c.data.dialogAutoClose;null!==e&&void 0!==e&&""!==e?(!0!==e&&"true"!==e||(e=1e4),e=parseInt(e,10),e<60&&(e*=1e3),e=e||1e3,i.current=setTimeout((()=>{i.current=null,b(_,!1),o(!1)}),e),o(!0)):o(!0)})()},sx:{"& .MuiTouchRipple-root span":{color:w.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:w.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:"number"===typeof w.iconSizeOnly&&"calc(100% * ".concat(w.iconSizeOnly," / 100)")||"100%",height:"number"===typeof w.iconSizeOnly&&"calc(100% * ".concat(w.iconSizeOnly," / 100)")||"100%",color:w.iconColor,filter:w.iconColor?"drop-shadow(0px 10000px 0)":null,transform:w.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"},v),f),{},{fontSize:w.valueSize,color:w.textColor,textTransform:"none"})}):null]})})})]})};class w extends i.A{static getWidgetInfo(){return{id:"tplDialogCollectionWidget",visSet:"vis-2-widgets-collection",visSetLabel:"widgets_collection",visName:"DialogCollectionWidget",visWidgetLabel:"dialog_collection_widget",visOrder:8,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 w.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,a.A)((0,a.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),hasPropertyValueChanged:this.hasPropertyValueChanged.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 e.widget.data.noCard||e.widget.usedInWidget?this.wrappedContent=!1:this.wrappedContent=!0,(0,n.A)(this.wrapContent((0,r.jsx)(v,{})),t)}}const _=w},4692:(e,t,o)=>{o.d(t,{A:()=>l});var a=o(8437);const l=(e,t,o,l)=>{const i=("string"===typeof t||"number"===typeof t||"boolean"===typeof t)&&"".concat(t).concat(void 0!==o.data.unit?o.data.unit:""),n=l.alias||l.value||i;(0,a.useEffect)((()=>{void 0!==n&&e&&(e.innerHTML=n)}),[n,e])}},4802:(e,t,o)=>{var a=o(2613);t.A=void 0;var l=a(o(39)),i=o(579);t.A=(0,l.default)((0,i.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.ec5965d3.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/src_DialogCollectionWidget_DialogCollectionWidget_jsx.ec5965d3.chunk.js","mappings":"uTAEA,MAwIA,EAxIqBA,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,sBACNC,MAAO,yBACPC,KAAM,WACNS,SAAS,GAEV,CACCV,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,CACCT,KAAM,gBACNC,MAAO,kBACPC,KAAM,WACNS,SAAS,GAEV,CACCV,MAAO,GACPC,KAAM,SACNE,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KA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ollectionWidget/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: \"dialogHeaderAsTitle\",\n\t\tlabel: \"dialog_header_as_title\",\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: \"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\tname: \"dialogInPixel\",\n\t\tlabel: \"dialog_in_pixel\",\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: \"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: \"dialog_text\",\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\tname: \"dialogCloseButtonColor\",\n\t\tlabel: \"dialog_close_button_color\",\n\t\ttype: \"color\",\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, Typography } from \"@mui/material\";\nimport { alpha } from \"@mui/material/styles\";\nimport React, { useRef, useState, useEffect } from \"react\";\nimport CollectionBase from \"../components/CollectionBase\";\n\nexport default function ViewDialog({\n\topen,\n\thandleClose,\n\twidget,\n\tdata,\n\tgetWidgetView,\n\tfontStyles,\n\ttextStyles,\n}) {\n\tconst baseRef = useRef(null);\n\tconst [titleRef, setTitleRef] = useState(null);\n\n\tconst header = baseRef.current?.header;\n\n\tuseEffect(() => {\n\t\tif (!widget.data.dialogHeaderAsTitle) return;\n\n\t\tif (header && titleRef) {\n\t\t\tif (widget.data.dialogHeaderAsTitle) {\n\t\t\t\theader.style.width = \"0px\";\n\t\t\t\theader.style.height = \"0px\";\n\t\t\t}\n\n\t\t\ttitleRef.innerHTML = data.header;\n\t\t\ttitleRef.style.height = \"auto\";\n\t\t\ttitleRef.style.width = \"auto\";\n\t\t}\n\t}, [header, titleRef, data.header, widget.data.dialogHeaderAsTitle]);\n\n\tconst iconButton = (\n\t\t<IconButton\n\t\t\tsx={{\n\t\t\t\talignSelf: \"flex-end\",\n\n\t\t\t\tfilter: \"brightness(1.5)\",\n\t\t\t\tcolor: (theme) =>\n\t\t\t\t\twidget.data.dialogCloseButtonColor ||\n\t\t\t\t\tdata.frameBackgroundColor ||\n\t\t\t\t\ttheme.palette.background.primary,\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.dialogInPixel\n\t\t\t\t\t\t? `${widget.data.dialogWidth}px`\n\t\t\t\t\t\t: `${widget.data.dialogWidth}%`,\n\t\t\t\t\theight: widget.data.dialogInPixel\n\t\t\t\t\t\t? `${widget.data.dialogHeight}px`\n\t\t\t\t\t\t: `${widget.data.dialogHeight}%`,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<CollectionBase\n\t\t\t\t\tref={baseRef}\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<Box\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\tposition: \"relative\",\n\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\theight: \"auto\",\n\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\tjustifyContent: \"flex-end\",\n\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\tp:\n\t\t\t\t\t\t\t\twidget.data.dialogCloseButtonTop ||\n\t\t\t\t\t\t\t\t!widget.data.dialogHeaderAsTitle\n\t\t\t\t\t\t\t\t\t? 0\n\t\t\t\t\t\t\t\t\t: 2,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\tref={setTitleRef}\n\t\t\t\t\t\t\t\tnoWrap\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\t...fontStyles,\n\t\t\t\t\t\t\t\t\t...textStyles,\n\t\t\t\t\t\t\t\t\tfontSize: data.headerSize,\n\t\t\t\t\t\t\t\t\tcolor: data.textColor,\n\t\t\t\t\t\t\t\t\tpx: widget.data.dialogCloseButtonTop ? 4 : 0,\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</Box>\n\n\t\t\t\t\t\t{widget.data.dialogCloseButtonTop && iconButton}\n\t\t\t\t\t</Box>\n\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 && iconButton}\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\tfontStyles,\n\t\t\t\t\ttextStyles,\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:\n\t\t\t\t\t\t\t\t\t\t\t(typeof data.iconSizeOnly === \"number\" &&\n\t\t\t\t\t\t\t\t\t\t\t\t`calc(100% * ${data.iconSizeOnly} / 100)`) ||\n\t\t\t\t\t\t\t\t\t\t\t\"100%\",\n\t\t\t\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\t\t\t\t(typeof data.iconSizeOnly === \"number\" &&\n\t\t\t\t\t\t\t\t\t\t\t\t`calc(100% * ${data.iconSizeOnly} / 100)`) ||\n\t\t\t\t\t\t\t\t\t\t\t\"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: 8,\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\thasPropertyValueChanged: this.hasPropertyValueChanged.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","_baseRef$current","open","handleClose","widget","data","getWidgetView","fontStyles","textStyles","baseRef","useRef","titleRef","setTitleRef","useState","header","current","useEffect","dialogHeaderAsTitle","style","width","height","innerHTML","iconButton","IconButton","sx","alignSelf","filter","color","theme","dialogCloseButtonColor","frameBackgroundColor","palette","background","primary","onClick","children","CloseIcon","Modal","onClose","display","justifyContent","alignItems","backgroundColor","dialogBackgroundColor","Box","dialogInPixel","concat","dialogWidth","dialogHeight","_jsxs","CollectionBase","ref","flexDirection","position","p","dialogCloseButtonTop","left","Typography","noWrap","variant","_objectSpread","fontSize","headerSize","textColor","px","Divider","opacity","alpha","overflow","view","dialogCloseButtonBottom","ImageHtmlButton","styled","ButtonBase","_oidObject$common","setOpen","hideTimeout","contentRef","setContentRef","oidObject","setValue","useContext","CollectionContext","useStyles","useData","useHtmlValue","oid","_id","isValidType","common","_Fragment","clearTimeout","handleClickOpen","timeout","dialogAutoClose","undefined","parseInt","setTimeout","iconColor","onlyIcon","onlyText","alt","src","icon","objectFit","top","iconYOffset","right","iconXOffset","iconSizeOnly","transform","valueSize","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","hasPropertyValueChanged","mode","context","themeType","socket","wrappedContent","noCard","usedInWidget","withCollectionProvider","wrapContent","DialogCollection","oidValue","oidValueUnit","unit","contentValue","alias","value","_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_StateCollectionWidget_StateCollectionWidget_jsx"],{2132:(t,e,o)=>{o.r(e),o.d(e,{default:()=>j});var a=o(7051),i=o(8437),n=o(6211),s=o(900),l=o(8679),c=o(375),d=o(5006),r=o(4376),u=o(579);const p=()=>[{type:"custom",component:()=>(0,u.jsx)(r.A,{})},{name:"onlyStates",type:"checkbox",label:"only_states",default:!1,hidden:"!data.values_count"},{name:"statePushButton",type:"checkbox",label:"state_push_button",default:!1,hidden:t=>!t.onlyStates||2!==Number(t.values_count),tooltip:"state_push_button_tooltip"},{type:"custom",component:()=>(0,u.jsx)(r.A,{}),hidden:"!data.values_count"},{name:"onlyDisplay",type:"checkbox",label:"only_display",disabled:"!data.write",default:"!data.write",hidden:"!data.write"},{name:"noIcon",type:"checkbox",label:"no_icon"},{name:"noValue",type:"checkbox",label:"no_value"}];var h=o(7085),v=o(4657),x=o(6061),m=o(4802),g=o(2671),y=o(6016);const b=function(t){var e,o,a,n;const{widgetStates:s,data:l,open:c,closeHandler:d}=t,{widget:r,oidObject:p,getPropertyValue:v}=(0,i.useContext)(y.C),[x,b]=(0,i.useState)(v("oid")),{setValueState:f}=(0,g.A)("oid"),S=null===p||void 0===p||null===(e=p.common)||void 0===e?void 0:e.states,C=null===p||void 0===p||null===(o=p.common)||void 0===o?void 0:o.type,w=(0,i.useCallback)((t=>f(t)),[f]),A="number"!==C||r.data.onlyStates||void 0===(null===p||void 0===p||null===(a=p.common)||void 0===a?void 0:a.min)||void 0===(null===p||void 0===p||null===(n=p.common)||void 0===n?void 0:n.max)?null:(0,u.jsx)(h.Slider,{sx:{pb:S?4:3},size:"small",min:p.common.min,max:p.common.max,marks:[{value:p.common.min,label:String(p.common.min)},{value:p.common.max,label:String(p.common.max)}],valueLabelDisplay:"auto",value:x,onChange:(t,e)=>{b(e),w(e)}}),j=s?(0,u.jsx)(h.List,{children:Object.entries(s).map((t=>{let[e,o]=t;return(0,u.jsx)(h.ListItem,{disablePadding:!0,children:(0,u.jsx)(h.ListItemButton,{disableGutters:!0,onClick:()=>w(e),children:(0,u.jsx)(h.ListItemText,{sx:{px:2},primaryTypographyProps:{variant:"body2"},primary:String(o)})})},e)}))}):null;return(0,u.jsxs)(h.Dialog,{open:c,onClose:d,maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{}},children:[(0,u.jsx)(h.DialogTitle,{sx:{m:0,p:2},id:"customized-dialog-title",children:l.header||p.common.name}),(0,u.jsx)(h.IconButton,{"aria-label":"close",onClick:d,sx:t=>({position:"absolute",right:8,top:8,color:t.palette.grey[500]}),children:(0,u.jsx)(m.A,{})}),(0,u.jsx)(h.DialogContent,{sx:{overflow:"unset"},children:(0,u.jsxs)(h.Stack,{divider:Object.keys(s).length&&(0,u.jsx)(h.Divider,{flexItem:!0}),sx:{px:2},spacing:0,component:h.Paper,children:[A,j]})})]})};var f=o(2152),S=o(4692),C=o(5702);const w=function(){var t;const[e,o]=(0,i.useState)(null),{widget:n,oidObject:s}=(0,i.useContext)(y.C),{textStyles:l,fontStyles:c}=(0,C.A)(n.style),{data:d,widgetStates:r}=(0,f.A)("oid"),{value:p,setValueState:m}=(0,g.A)("oid"),[w,A]=(0,i.useState)(!1),j=null===s||void 0===s||null===(t=s.common)||void 0===t?void 0:t.type,_=n.data.onlyStates,k=()=>{_&&2===Number(n.data.values_count)&&n.data.statePushButton&&setTimeout((()=>m(n.data.value1)),0)},I=()=>{_&&2===Number(n.data.values_count)&&n.data.statePushButton&&setTimeout((()=>m(n.data.value2)),0)},P=(0,i.useCallback)((()=>{if(_)switch(Number(n.data.values_count)){case 1:m(n.data.value1);break;case 2:n.data.statePushButton||String(p)!==String(n.data.value1)?m(n.data.value1):m(n.data.value2);break;default:A(!0)}else A(!0)}),[p,_,n.data.values_count,n.data.statePushButton,n.data.value1,n.data.value2,m]),D=(0,u.jsx)(h.Button,{disabled:n.data.onlyDisplay,onClick:P,onMouseDown:k,onMouseUp:I,onTouchStart:k,onTouchEnd:I,sx:{width:"100%",height:"100%",color:d.iconColorActive||d.iconColor||d.textColorActive||d.textColor,"&:hover":{bgcolor:"transparent",filter:d.iconHoverActive&&"brightness(".concat(d.iconHoverActive,")")||d.iconHover&&"brightness(".concat(d.iconHover,")")}},children:(0,u.jsxs)(h.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:[!n.data.noIcon&&(d.iconActive||d.icon)&&(0,u.jsx)(h.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexGrow:1,width:"100%",height:"100%"},children:(0,u.jsx)(h.Avatar,{variant:"square",src:d.iconActive||d.icon,imgProps:{style:{objectFit:"contain"}},sx:{overflow:"hidden",width:"number"===typeof d.iconSizeOnly&&"calc(100% * ".concat(d.iconSizeOnly," / 100)")||"100%",height:"number"===typeof d.iconSizeOnly&&"calc(100% * ".concat(d.iconSizeOnly," / 100)")||"100%",left:"calc(0px + ".concat(d.iconXOffset,")"),top:"calc(0px - ".concat(d.iconYOffset,")"),bgcolor:"transparent",color:d.iconColorActive||d.iconColor,filter:(d.iconActive||d.icon)&&(d.iconColorActive||d.iconColor)&&"drop-shadow(0px 10000px 0)",transform:(d.iconActive||d.icon)&&(d.iconColorActive||d.iconColor)&&"translateY(-10000px)"}})}),!n.data.noValue&&(0,u.jsx)(h.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexGrow:1,width:"100%",height:"100%"},children:(0,u.jsx)(h.Typography,{ref:o,variant:"body2",sx:(0,a.A)((0,a.A)((0,a.A)({},c),l),{},{fontSize:d.valueSizeActive||d.valueSize,bgcolor:"transparent",color:d.textColorActive||d.textColor,textTransform:"none"})})})]})});(0,S.A)(e,p,n,d);const V="boolean"===j||"number"===j||"string"===j||"mixed"===j;return(0,u.jsxs)(u.Fragment,{children:[w&&(0,u.jsx)(b,{data:{sampleInterval:null,sampleIntervalValue:null,delay:100},widgetStates:r,open:w,closeHandler:()=>A(!1)}),(0,u.jsxs)(v.A,{isValidType:V,data:d,oidValue:p,children:[(0,u.jsx)(x.A,{data:d,widget:n}),(0,u.jsx)(h.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:D})]})]})};class A extends n.A{static getWidgetInfo(){return{id:"tplStateCollectionWidget",visSet:"vis-2-widgets-collection",visSetLabel:"widgets_collection",visSetColor:"#0C0A43",visName:"StateCollectionWidget",visWidgetLabel:"state_collection_widget",visOrder:3,visAttrs:[{name:"common",fields:[...(0,l.A)()]},{name:"button",label:"group_button",fields:[...(0,c.A)(["string","number","boolean","mixed"]),...(0,d.A)(),...p()]},{name:"values",label:"values",indexFrom:1,indexTo:"values_count",fields:[...(0,l.A)({groupName:"",allFields:!1})]}],visDefaultStyle:{width:"100%",height:"100px",position:"relative"},visPrev:"widgets/vis-2-widgets-collection/img/prev-collection-state.png"}}getWidgetInfo(){return A.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),hasPropertyValueChanged:this.hasPropertyValueChanged.bind(this),mode:this.props.context.themeType,socket:this.props.context.socket,theme:this.props.context.theme,wrappedContent:this.wrappedContent};return t.widget.data.noCard||t.widget.usedInWidget?this.wrappedContent=!1:this.wrappedContent=!0,(0,s.A)(this.wrapContent((0,u.jsx)(w,{})),e)}}const j=A},4692:(t,e,o)=>{o.d(e,{A:()=>i});var a=o(8437);const i=(t,e,o,i)=>{const n=("string"===typeof e||"number"===typeof e||"boolean"===typeof e)&&"".concat(e).concat(void 0!==o.data.unit?o.data.unit:""),s=i.alias||i.value||n;(0,a.useEffect)((()=>{void 0!==s&&t&&(t.innerHTML=s)}),[s,t])}},4802:(t,e,o)=>{var a=o(2613);e.A=void 0;var i=a(o(39)),n=o(579);e.A=(0,i.default)((0,n.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_StateCollectionWidget_StateCollectionWidget_jsx.98f30906.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/src_StateCollectionWidget_StateCollectionWidget_jsx.98f30906.chunk.js","mappings":"wUAEA,MA6CA,EA7CoBA,IAAM,CACzB,CACCC,KAAM,SACNC,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KAEpC,CACCC,KAAM,aACNJ,KAAM,WACNK,MAAO,cACPC,SAAS,EACTC,OAAQ,sBAET,CACCH,KAAM,kBACNJ,KAAM,WACNK,MAAO,oBACPC,SAAS,EACTC,OAASC,IAAUA,EAAKC,YAA4C,IAA9BC,OAAOF,EAAKG,cAClDC,QAAS,6BAEV,CACCZ,KAAM,SACNC,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,IACnCI,OAAQ,sBAET,CACCH,KAAM,cACNJ,KAAM,WACNK,MAAO,eACPQ,SAAU,cACVP,QAAS,cACTC,OAAQ,eAET,CACCH,KAAM,SACNJ,KAAM,WACNK,MAAO,WAER,CACCD,KAAM,UACNJ,KAAM,WACNK,MAAO,a,gECuFT,QAhHA,SAAgCS,GAAQ,IAADC,EAAAC,EAAAC,EAAAC,EACtC,MAAM,aAAEC,EAAY,KAAEX,EAAI,KAAEY,EAAI,aAAEC,GAAiBP,GAC7C,OAAEQ,EAAM,UAAEC,EAAS,iBAAEC,IAAqBC,EAAAA,EAAAA,YAAWC,EAAAA,IAEpDC,EAAaC,IAAkBC,EAAAA,EAAAA,UAASL,EAAiB,SACxDM,cAAeC,IAAqBC,EAAAA,EAAAA,GAAc,OAEpDC,EAAqB,O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yM,QAAQC,UACzBC,OAAQxB,KAAKnL,MAAMyM,QAAQE,OAC3BtI,MAAO8G,KAAKnL,MAAMyM,QAAQpI,MAE1BuI,eAAgBzB,KAAKyB,gBAStB,OANI5M,EAAMQ,OAAOd,KAAKmN,QAAU7M,EAAMQ,OAAOsM,aAC5C3B,KAAKyB,gBAAiB,EAEtBzB,KAAKyB,gBAAiB,GAGhBG,EAAAA,EAAAA,GACN5B,KAAK6B,aAAY5N,EAAAA,EAAAA,KAAC6N,EAAe,KACjClB,EAEF,EAGD,S,gDCpIA,MAeA,EAfqB7C,CAAC3D,EAAYO,EAAUtF,EAAQd,KACnD,MAAMwN,GACgB,kBAAbpH,GACa,kBAAbA,GACa,mBAAbA,IAAsB,GAAAyB,OAC3BzB,GAAQyB,YAAwB5F,IAArBnB,EAAOd,KAAKyN,KAAqB3M,EAAOd,KAAKyN,KAAO,IAE7DC,EAAe1N,EAAK2N,OAAS3N,EAAK+B,OAASyL,GAEjDI,EAAAA,EAAAA,YAAU,UACY3L,IAAjByL,GAA+B7H,IACnCA,EAAWgI,UAAYH,EAAY,GACjC,CAACA,EAAc7H,GAAY,C,qBCX3BiI,EAAyBC,EAAQ,MAIrCC,EAAQ,OAAU,EAClB,IAAIC,EAAiBH,EAAuBC,EAAQ,KAChDG,EAAcH,EAAQ,KACXC,EAAQ,GAAU,EAAIC,EAAenO,UAAuB,EAAIoO,EAAYC,KAAK,OAAQ,CACtGC,EAAG,0GACD,Q","sources":["lib/stateFields.jsx","components/CollectionChangeDialog.jsx","StateCollectionWidget/StateCollection.jsx","StateCollectionWidget/StateCollectionWidget.jsx","hooks/useHtmlValue.js","../node_modules/@mui/icons-material/Close.js"],"sourcesContent":["import CollectionDivider from \"../components/CollectionDivider\";\n\nconst stateFields = () => [\n\t{\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"onlyStates\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"only_states\",\n\t\tdefault: false,\n\t\thidden: \"!data.values_count\",\n\t},\n\t{\n\t\tname: \"statePushButton\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"state_push_button\",\n\t\tdefault: false,\n\t\thidden: (data) => !data.onlyStates || Number(data.values_count) !== 2,\n\t\ttooltip: \"state_push_button_tooltip\",\n\t},\n\t{\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t\thidden: \"!data.values_count\",\n\t},\n\t{\n\t\tname: \"onlyDisplay\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"only_display\",\n\t\tdisabled: \"!data.write\",\n\t\tdefault: \"!data.write\",\n\t\thidden: \"!data.write\",\n\t},\n\t{\n\t\tname: \"noIcon\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"no_icon\",\n\t},\n\t{\n\t\tname: \"noValue\",\n\t\ttype: \"checkbox\",\n\t\tlabel: \"no_value\",\n\t},\n];\n\nexport default stateFields;\n","import CloseIcon from \"@mui/icons-material/Close\";\nimport { Paper, Slider, Stack } from \"@mui/material\";\nimport {\n\tDialog,\n\tDialogContent,\n\tDialogTitle,\n\tDivider,\n\tIconButton,\n\tList,\n\tListItem,\n\tListItemButton,\n\tListItemText,\n} from \"@mui/material\";\nimport React, { useCallback, useContext, useState } from \"react\";\nimport useValueState from \"../hooks/useValueState\";\n// import isNumber from \"../lib/helper/isNumber\";\nimport { CollectionContext } from \"./CollectionProvider\";\n\nfunction CollectionChangeDialog(props) {\n\tconst { widgetStates, data, open, closeHandler } = props;\n\tconst { widget, oidObject, getPropertyValue } = useContext(CollectionContext);\n\n\tconst [sliderValue, setSliderValue] = useState(getPropertyValue(\"oid\"));\n\tconst { setValueState: setOidValueState } = useValueState(\"oid\");\n\n\tconst oidStates = oidObject?.common?.states;\n\tconst oidType = oidObject?.common?.type;\n\n\tconst changeHandler = useCallback(\n\t\t(value) => setOidValueState(value),\n\t\t[setOidValueState],\n\t);\n\n\tconst ChangeSlider =\n\t\toidType === \"number\" &&\n\t\t!widget.data.onlyStates &&\n\t\toidObject?.common?.min !== undefined &&\n\t\toidObject?.common?.max !== undefined ? (\n\t\t\t<Slider\n\t\t\t\tsx={{ pb: oidStates ? 4 : 3 }}\n\t\t\t\tsize=\"small\"\n\t\t\t\tmin={oidObject.common.min}\n\t\t\t\tmax={oidObject.common.max}\n\t\t\t\tmarks={[\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue: oidObject.common.min,\n\t\t\t\t\t\tlabel: String(oidObject.common.min),\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue: oidObject.common.max,\n\t\t\t\t\t\tlabel: String(oidObject.common.max),\n\t\t\t\t\t},\n\t\t\t\t]}\n\t\t\t\tvalueLabelDisplay=\"auto\"\n\t\t\t\t// value={getPropertyValue(\"oid\") || 0}\n\t\t\t\tvalue={sliderValue}\n\t\t\t\tonChange={(_, value) => {\n\t\t\t\t\tsetSliderValue(value);\n\t\t\t\t\tchangeHandler(value);\n\t\t\t\t}}\n\t\t\t/>\n\t\t) : null;\n\n\tconst ChangeList = widgetStates ? (\n\t\t<List>\n\t\t\t{Object.entries(widgetStates).map(([key, value]) => {\n\t\t\t\treturn (\n\t\t\t\t\t<ListItem disablePadding key={key}>\n\t\t\t\t\t\t<ListItemButton disableGutters onClick={() => changeHandler(key)}>\n\t\t\t\t\t\t\t<ListItemText\n\t\t\t\t\t\t\t\tsx={{ px: 2 }}\n\t\t\t\t\t\t\t\tprimaryTypographyProps={{ variant: \"body2\" }}\n\t\t\t\t\t\t\t\tprimary={String(value)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</ListItemButton>\n\t\t\t\t\t</ListItem>\n\t\t\t\t);\n\t\t\t})}\n\t\t</List>\n\t) : null;\n\n\treturn (\n\t\t<Dialog\n\t\t\topen={open}\n\t\t\tonClose={closeHandler}\n\t\t\tmaxWidth=\"xs\"\n\t\t\tfullWidth\n\t\t\tPaperProps={{\n\t\t\t\tsx: {\n\t\t\t\t\t// bgcolor: data.backgroundColor,\n\t\t\t\t\t// color: data.textColor,\n\t\t\t\t},\n\t\t\t}}\n\t\t>\n\t\t\t<DialogTitle sx={{ m: 0, p: 2 }} id=\"customized-dialog-title\">\n\t\t\t\t{data.header || oidObject.common.name}\n\t\t\t</DialogTitle>\n\t\t\t<IconButton\n\t\t\t\taria-label=\"close\"\n\t\t\t\tonClick={closeHandler}\n\t\t\t\tsx={(theme) => ({\n\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t\tright: 8,\n\t\t\t\t\ttop: 8,\n\t\t\t\t\tcolor: theme.palette.grey[500],\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<CloseIcon />\n\t\t\t</IconButton>\n\t\t\t<DialogContent\n\t\t\t\tsx={{\n\t\t\t\t\toverflow: \"unset\",\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Stack\n\t\t\t\t\tdivider={Object.keys(widgetStates).length && <Divider flexItem />}\n\t\t\t\t\tsx={{\n\t\t\t\t\t\tpx: 2,\n\t\t\t\t\t}}\n\t\t\t\t\tspacing={0}\n\t\t\t\t\tcomponent={Paper}\n\t\t\t\t>\n\t\t\t\t\t{ChangeSlider}\n\t\t\t\t\t{ChangeList}\n\t\t\t\t</Stack>\n\t\t\t</DialogContent>\n\t\t</Dialog>\n\t);\n}\n\nexport default CollectionChangeDialog;\n","import { Avatar, Box, Button, Typography } from \"@mui/material\";\nimport React, { useCallback, useState, useContext } from \"react\";\nimport CollectionBase from \"../components/CollectionBase\";\nimport CollectionBaseImage from \"../components/CollectionBaseImage\";\nimport CollectionChangeDialog from \"../components/CollectionChangeDialog\";\nimport { CollectionContext } from \"../components/CollectionProvider\";\nimport useData from \"../hooks/useData\";\nimport useHtmlValue from \"../hooks/useHtmlValue\";\nimport useStyles from \"../hooks/useStyles\";\nimport useValueState from \"../hooks/useValueState\";\n\nfunction StateCollection() {\n\tconst [contentRef, setContentRef] = useState(null);\n\tconst { widget, oidObject } = useContext(CollectionContext);\n\tconst { textStyles, fontStyles } = useStyles(widget.style);\n\tconst { data, widgetStates } = useData(\"oid\");\n\tconst { value: oidValue, setValueState: setOidValueState } =\n\t\tuseValueState(\"oid\");\n\tconst [open, setOpen] = useState(false);\n\n\tconst oidType = oidObject?.common?.type;\n\n\tconst onlyStates = widget.data.onlyStates;\n\n\tconst downHandler = () => {\n\t\tif (\n\t\t\tonlyStates &&\n\t\t\tNumber(widget.data.values_count) === 2 &&\n\t\t\twidget.data.statePushButton\n\t\t) {\n\t\t\tsetTimeout(() => setOidValueState(widget.data.value1), 0);\n\t\t}\n\t};\n\n\tconst upHandler = () => {\n\t\tif (\n\t\t\tonlyStates &&\n\t\t\tNumber(widget.data.values_count) === 2 &&\n\t\t\twidget.data.statePushButton\n\t\t) {\n\t\t\tsetTimeout(() => setOidValueState(widget.data.value2), 0);\n\t\t}\n\t};\n\n\tconst clickHandler = useCallback(() => {\n\t\tif (!onlyStates) {\n\t\t\tsetOpen(true);\n\t\t\treturn;\n\t\t}\n\n\t\tswitch (Number(widget.data.values_count)) {\n\t\t\tcase 1:\n\t\t\t\tsetOidValueState(widget.data.value1);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t!widget.data.statePushButton &&\n\t\t\t\tString(oidValue) === String(widget.data.value1)\n\t\t\t\t\t? setOidValueState(widget.data.value2)\n\t\t\t\t\t: setOidValueState(widget.data.value1);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsetOpen(true);\n\t\t\t\tbreak;\n\t\t}\n\t}, [\n\t\toidValue,\n\t\tonlyStates,\n\t\twidget.data.values_count,\n\t\twidget.data.statePushButton,\n\t\twidget.data.value1,\n\t\twidget.data.value2,\n\t\tsetOidValueState,\n\t]);\n\n\tconst StateButton = (\n\t\t<Button\n\t\t\tdisabled={widget.data.onlyDisplay}\n\t\t\tonClick={clickHandler}\n\t\t\tonMouseDown={downHandler}\n\t\t\tonMouseUp={upHandler}\n\t\t\t// onMouseOut={upHandler}\n\t\t\tonTouchStart={downHandler}\n\t\t\tonTouchEnd={upHandler}\n\t\t\tsx={{\n\t\t\t\twidth: \"100%\",\n\t\t\t\theight: \"100%\",\n\n\t\t\t\tcolor:\n\t\t\t\t\tdata.iconColorActive ||\n\t\t\t\t\tdata.iconColor ||\n\t\t\t\t\tdata.textColorActive ||\n\t\t\t\t\tdata.textColor,\n\t\t\t\t\"&:hover\": {\n\t\t\t\t\tbgcolor: \"transparent\",\n\t\t\t\t\tfilter:\n\t\t\t\t\t\t(data.iconHoverActive && `brightness(${data.iconHoverActive})`) ||\n\t\t\t\t\t\t(data.iconHover && `brightness(${data.iconHover})`),\n\t\t\t\t},\n\t\t\t}}\n\t\t>\n\t\t\t<Box\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{!widget.data.noIcon && (data.iconActive || data.icon) && (\n\t\t\t\t\t<Box\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t// overflow: \"hidden\",\n\n\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\tflexGrow: 1,\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<Avatar\n\t\t\t\t\t\t\tvariant=\"square\"\n\t\t\t\t\t\t\tsrc={data.iconActive || data.icon}\n\t\t\t\t\t\t\timgProps={{\n\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\tobjectFit: \"contain\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\toverflow: \"hidden\",\n\n\t\t\t\t\t\t\t\twidth:\n\t\t\t\t\t\t\t\t\t(typeof data.iconSizeOnly === \"number\" &&\n\t\t\t\t\t\t\t\t\t\t`calc(100% * ${data.iconSizeOnly} / 100)`) ||\n\t\t\t\t\t\t\t\t\t\"100%\",\n\t\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\t\t(typeof data.iconSizeOnly === \"number\" &&\n\t\t\t\t\t\t\t\t\t\t`calc(100% * ${data.iconSizeOnly} / 100)`) ||\n\t\t\t\t\t\t\t\t\t\"100%\",\n\n\t\t\t\t\t\t\t\tleft: `calc(0px + ${data.iconXOffset})`,\n\t\t\t\t\t\t\t\ttop: `calc(0px - ${data.iconYOffset})`,\n\n\t\t\t\t\t\t\t\tbgcolor: \"transparent\",\n\t\t\t\t\t\t\t\tcolor: data.iconColorActive || data.iconColor,\n\t\t\t\t\t\t\t\tfilter:\n\t\t\t\t\t\t\t\t\t(data.iconActive || data.icon) &&\n\t\t\t\t\t\t\t\t\t(data.iconColorActive || data.iconColor) &&\n\t\t\t\t\t\t\t\t\t\"drop-shadow(0px 10000px 0)\",\n\t\t\t\t\t\t\t\ttransform:\n\t\t\t\t\t\t\t\t\t(data.iconActive || data.icon) &&\n\t\t\t\t\t\t\t\t\t(data.iconColorActive || data.iconColor) &&\n\t\t\t\t\t\t\t\t\t\"translateY(-10000px)\",\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\n\t\t\t\t{!widget.data.noValue && (\n\t\t\t\t\t<Box\n\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\tflexGrow: 1,\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<Typography\n\t\t\t\t\t\t\tref={setContentRef}\n\t\t\t\t\t\t\tvariant=\"body2\"\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t...fontStyles,\n\t\t\t\t\t\t\t\t...textStyles,\n\t\t\t\t\t\t\t\tfontSize: data.valueSizeActive || data.valueSize,\n\t\t\t\t\t\t\t\tbgcolor: \"transparent\",\n\t\t\t\t\t\t\t\tcolor: data.textColorActive || data.textColor,\n\t\t\t\t\t\t\t\ttextTransform: \"none\",\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t</Box>\n\t\t</Button>\n\t);\n\n\tuseHtmlValue(contentRef, oidValue, widget, data);\n\n\tconst isValidType =\n\t\toidType === \"boolean\" ||\n\t\toidType === \"number\" ||\n\t\toidType === \"string\" ||\n\t\toidType === \"mixed\";\n\n\treturn (\n\t\t<>\n\t\t\t{open && (\n\t\t\t\t<CollectionChangeDialog\n\t\t\t\t\tdata={{ sampleInterval: null, sampleIntervalValue: null, delay: 100 }}\n\t\t\t\t\twidgetStates={widgetStates}\n\t\t\t\t\topen={open}\n\t\t\t\t\tcloseHandler={() => setOpen(false)}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t<CollectionBase isValidType={isValidType} data={data} oidValue={oidValue}>\n\t\t\t\t<CollectionBaseImage data={data} widget={widget} />\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\tjustifyContent: \"center\",\n\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{StateButton}\n\t\t\t\t</Box>\n\t\t\t</CollectionBase>\n\t\t</>\n\t);\n}\n\nexport default StateCollection;\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 delayFields from \"../lib/delayFields\";\nimport stateFields from \"../lib/stateFields\";\nimport StateCollection from \"./StateCollection\";\n\nclass StateCollectionWidget extends Generic {\n\tstatic getWidgetInfo() {\n\t\treturn {\n\t\t\tid: \"tplStateCollectionWidget\",\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\tvisSetColor: \"#0C0A43\", // Color of a widget set. it is enough to set color only in one widget of a set\n\t\t\tvisName: \"StateCollectionWidget\", // Name of widget\n\t\t\tvisWidgetLabel: \"state_collection_widget\", // Label for widget\n\t\t\tvisOrder: 3,\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()],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"button\", // group name\n\t\t\t\t\tlabel: \"group_button\",\n\t\t\t\t\tfields: [\n\t\t\t\t\t\t...commonObjectFields([\"string\", \"number\", \"boolean\", \"mixed\"]),\n\t\t\t\t\t\t...delayFields(),\n\t\t\t\t\t\t...stateFields(),\n\t\t\t\t\t],\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-state.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 StateCollectionWidget.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\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\thasPropertyValueChanged: this.hasPropertyValueChanged.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(<StateCollection />),\n\t\t\tcollectionContext,\n\t\t);\n\t}\n}\n\nexport default StateCollectionWidget;\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":["stateFields","type","component","_jsx","CollectionDivider","name","label","default","hidden","data","onlyStates","Number","values_count","tooltip","disabled","props","_oidObject$common","_oidObject$common2","_oidObject$common3","_oidObject$common4","widgetStates","open","closeHandler","widget","oidObject","getPropertyValue","useContext","CollectionContext","sliderValue","setSliderValue","useState","setValueState","setOidValueState","useValueState","oidStates","common","states","oidType","changeHandler","useCallback","value","ChangeSlider","undefined","min","max","Slider","sx","pb","size","marks","String","valueLabelDisplay","onChange","_","ChangeList","List","children","Object","entries","map","_ref","key","ListItem","disablePadding","ListItemButton","disableGutters","onClick","ListItemText","px","primaryTypographyProps","variant","primary","_jsxs","Dialog","onClose","maxWidth","fullWidth","PaperProps","DialogTitle","m","p","id","header","IconButton","theme","position","right","top","color","palette","grey","CloseIcon","DialogContent","overflow","Stack","divider","keys","length","Divider","flexItem","spacing","Paper","contentRef","setContentRef","textStyles","fontStyles","useStyles","style","useData","oidValue","setOpen","downHandler","statePushButton","setTimeout","value1","upHandler","value2","clickHandler","StateButton","Button","onlyDisplay","onMouseDown","onMouseUp","onTouchStart","onTouchEnd","width","height","iconColorActive","iconColor","textColorActive","textColor","bgcolor","filter","iconHoverActive","concat","iconHover","Box","display","justifyContent","alignItems","noIcon","iconActive","icon","flexGrow","Avatar","src","imgProps","objectFit","iconSizeOnly","left","iconXOffset","iconYOffset","transform","noValue","Typography","ref","_objectSpread","fontSize","valueSizeActive","valueSize","textTransform","useHtmlValue","isValidType","_Fragment","CollectionChangeDialog","sampleInterval","sampleIntervalValue","delay","CollectionBase","CollectionBaseImage","StateCollectionWidget","Generic","getWidgetInfo","visSet","visSetLabel","visSetColor","visName","visWidgetLabel","visOrder","visAttrs","fields","commonFields","commonObjectFields","delayFields","indexFrom","indexTo","groupName","allFields","visDefaultStyle","visPrev","propertiesUpdate","actualRxData","JSON","stringify","this","state","rxData","lastRxData","createStateObjectAsync","onRxDataChanged","payload","onRxStyleChanged","onStateUpdated","componentDidMount","super","renderWidgetBody","collectionContext","refService","rxStyle","setValue","setState","bind","values","isSignalVisible","hasPropertyValueChanged","mode","context","themeType","socket","wrappedContent","noCard","usedInWidget","withCollectionProvider","wrapContent","StateCollection","oidValueUnit","unit","contentValue","alias","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_SwitchCollectionWidget_SwitchCollectionWidget_jsx"],{4801:(t,e,i)=>{i.r(e),i.d(e,{default:()=>A});var o=i(7051),a=i(8437),n=i(6211),l=i(900),c=i(8679),r=i(375),s=i(5006),d=i(4376),h=i(579);const u=()=>[{type:"custom",component:()=>(0,h.jsx)(d.A,{})},{name:"thumbSize",label:"thumb_size",type:"slider",min:0,max:500,default:62,step:1},{name:"thumbColorTrue",label:"thumb_color_true",type:"color"},{name:"thumbColorFalse",label:"thumb_color_false",type:"color"},{type:"custom",component:()=>(0,h.jsx)(d.A,{})},{name:"trackSize",label:"track_size",type:"slider",min:0,max:100,default:10,step:1},{name:"trackColor",label:"track_color",type:"color"}];var p=i(7085),g=i(4657),m=i(6061),b=i(6016),w=i(2152),S=i(2671),v=i(9042),f=i(4535),x=i(8565);const C=(0,f.Ay)(v.A)((t=>{let{width:e,maxHeight:i,data:o,widget:a,theme:n}=t;return{width:"100%",height:"100%",padding:0,margin:0,"&.MuiSwitch-root":{overflow:"visible"},"& .MuiSwitch-switchBase":{margin:0,padding:0,top:"50%",left:"0%",transform:"translate(-50%, -50%) translateX(".concat(i>=(a.data.thumbSize||62)?a.data.thumbSize/2-4||27:i/2-4,"px)"),"& .MuiSwitch-input":{left:0,width:e},"&.Mui-checked":{top:"50%",left:"100%",transform:"translate(-50%, -50%) translateX(".concat(i>=(a.data.thumbSize||62)?-(a.data.thumbSize/2-4)||-35:-(i/2-4),"px)"),"& .MuiSwitch-input":{left:-e+(a.data.thumbSize||62),width:e},"& .MuiSwitch-thumb":{backgroundColor:a.data.thumbColorTrue||n.palette.primary.main},"& .MuiSwitch-thumb:before":{top:"calc(".concat(o.iconYOffset," * -1)"),left:o.iconXOffset,backgroundSize:"".concat(0===o.iconSizeOnly?"0":o.iconSizeOnly||"100","% ").concat(0===o.iconSizeOnly?"0":o.iconSizeOnly||"100","%"),backgroundImage:o.iconActive&&"url('".concat(o.iconActive,"')")},"& + .MuiSwitch-track":{backgroundColor:a.data.trackColor||("dark"===n.palette.mode?(0,x.alpha)("rgb(144, 202, 249)",.5):(0,x.alpha)("#1976d2",.5))}}},"& .MuiSwitch-thumb":{backgroundColor:a.data.thumbColorFalse,width:a.data.thumbSize||62,maxWidth:i,height:a.data.thumbSize||62,maxHeight:i,"&::before":{content:"''",position:"absolute",width:"100%",height:"100%",left:"calc(0px + ".concat(o.iconXOffset,")"),top:"calc(0px - ".concat(o.iconYOffset,")"),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"".concat(0===o.iconSizeOnly?"0":o.iconSizeOnly||"100","% ").concat(0===o.iconSizeOnly?"0":o.iconSizeOnly||"100","%"),backgroundImage:o.iconActive&&"url('".concat(o.iconActive,"')"),color:o.iconColorActive||o.iconColor,filter:o.iconColorActive||o.iconColor?"drop-shadow(0px 10000px 0)":null,transform:o.iconColorActive||o.iconColor?"translateY(-10000px)":null}},"& .MuiSwitch-track":{backgroundColor:a.data.trackColor&&(0,x.alpha)(a.data.trackColor,.5)||("dark"===n.palette.mode?(0,x.alpha)("#ffffff",.3):(0,x.alpha)("#000000",.38)),borderRadius:10}}}));const y=function(){var t,e,i,o,n;const l=(0,a.useRef)(null),{oidObject:c,widget:r}=(0,a.useContext)(b.C),{data:s}=(0,w.A)("oid"),{value:d,setValueState:u}=(0,S.A)("oid"),v=null===c||void 0===c||null===(t=c.common)||void 0===t?void 0:t.type,f="boolean"===v;return(0,h.jsxs)(g.A,{isValidType:f,data:s,oidValue:d,children:[(0,h.jsx)(m.A,{data:s,widget:r}),(0,h.jsx)(p.Box,{sx:{position:"relative",width:"100%",height:r.data.trackSize&&"".concat(r.data.trackSize,"%")||"10%"},children:(0,h.jsx)(p.Box,{ref:l,sx:{width:"100%",height:"100%",px:"8px",display:"flex",justifyContent:"center",alignItems:"center"},children:void 0!==d&&void 0!==r.data.thumbSize&&(0,h.jsx)(C,{disabled:"boolean"!==v,width:null===(e=l.current)||void 0===e?void 0:e.clientWidth,maxHeight:null===(i=l.current)||void 0===i||null===(o=i.parentElement)||void 0===o||null===(n=o.parentElement)||void 0===n?void 0:n.clientHeight,data:s,widget:r,checked:d,onChange:()=>u(!d),sx:{"& .MuiTouchRipple-root":{color:s.iconColorActive||s.iconColor||s.textColorActive||s.textColor}}})})})]})};class k extends n.A{static getWidgetInfo(){return{id:"tplSwitchCollectionWidget",visSet:"vis-2-widgets-collection",visSetLabel:"widgets_collection",visName:"SwitchCollectionWidget",visWidgetLabel:"switch_collection_widget",visOrder:2,visAttrs:[{name:"common",fields:[...(0,c.A)()]},{name:"switch",label:"group_switch",fields:[...(0,r.A)(["boolean"]),...(0,s.A)(),...u()]},{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-switch.png"}}getWidgetInfo(){return k.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,o.A)((0,o.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),hasPropertyValueChanged:this.hasPropertyValueChanged.bind(this),mode:this.props.context.themeType,socket:this.props.context.socket,theme:this.props.context.theme,wrappedContent:this.wrappedContent};return t.widget.data.noCard||t.widget.usedInWidget?this.wrappedContent=!1:this.wrappedContent=!0,(0,l.A)(this.wrapContent((0,h.jsx)(y,{})),e)}}const A=k}}]);
|
|
2
|
-
//# sourceMappingURL=src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.feec98bf.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/src_SwitchCollectionWidget_SwitchCollectionWidget_jsx.feec98bf.chunk.js","mappings":"0UAEA,MA4CA,EA5CqBA,IAAM,CAC1B,CACCC,KAAM,SACNC,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KAEpC,CACCC,KAAM,YACNC,MAAO,aACPL,KAAM,SACNM,IAAK,EACLC,IAAK,IACLC,QAAS,GACTC,KAAM,GAEP,CACCL,KAAM,iBACNC,MAAO,mBACPL,KAAM,SAEP,CACCI,KAAM,kBACNC,MAAO,oBACPL,KAAM,SAEP,CACCA,KAAM,SACNC,UAAWA,KAAMC,EAAAA,EAAAA,KAACC,EAAAA,EAAiB,KAEpC,CACCC,KAAM,YACNC,MAAO,aACPL,KAAM,SACNM,IAAK,EACLC,IAAK,IACLC,QAAS,GACTC,KAAM,GAEP,CACCL,KAAM,aACNC,MAAO,cACPL,KAAM,U,8FCtCR,MAsHA,GAtHyBU,EAAAA,EAAAA,IAAOC,EAAAA,EAAPD,EACxBE,IAAA,IAAC,MAAEC,EAAK,UAAEC,EAAS,KAAEC,EAAI,OAAEC,EAAM,MAAEC,GAAOL,EAAA,MAAM,CAC/CC,MAAO,OACPK,OAAQ,OAERC,QAAS,EACTC,OAAQ,EAER,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OmI,aAC5C9B,KAAK4B,gBAAiB,EAEtB5B,KAAK4B,gBAAiB,GAGhBG,EAAAA,EAAAA,GACN/B,KAAKgC,aAAYnJ,EAAAA,EAAAA,KAACoJ,EAAgB,KAClCpB,EAEF,EAGD,S","sources":["lib/switchFields.jsx","SwitchCollectionWidget/MaterialUISwitch.jsx","SwitchCollectionWidget/SwitchCollection.jsx","SwitchCollectionWidget/SwitchCollectionWidget.jsx"],"sourcesContent":["import CollectionDivider from \"../components/CollectionDivider\";\n\nconst switchFields = () => [\n\t{\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"thumbSize\",\n\t\tlabel: \"thumb_size\",\n\t\ttype: \"slider\",\n\t\tmin: 0,\n\t\tmax: 500,\n\t\tdefault: 62,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"thumbColorTrue\",\n\t\tlabel: \"thumb_color_true\",\n\t\ttype: \"color\",\n\t},\n\t{\n\t\tname: \"thumbColorFalse\",\n\t\tlabel: \"thumb_color_false\",\n\t\ttype: \"color\",\n\t},\n\t{\n\t\ttype: \"custom\",\n\t\tcomponent: () => <CollectionDivider />,\n\t},\n\t{\n\t\tname: \"trackSize\",\n\t\tlabel: \"track_size\",\n\t\ttype: \"slider\",\n\t\tmin: 0,\n\t\tmax: 100,\n\t\tdefault: 10,\n\t\tstep: 1,\n\t},\n\t{\n\t\tname: \"trackColor\",\n\t\tlabel: \"track_color\",\n\t\ttype: \"color\",\n\t},\n];\n\nexport default switchFields;\n","import Switch from \"@mui/material/Switch\";\nimport { styled } from \"@mui/material/styles\";\nimport { alpha } from \"@mui/material/styles\";\n\nconst MaterialUISwitch = styled(Switch)(\n\t({ width, maxHeight, data, widget, theme }) => ({\n\t\twidth: \"100%\",\n\t\theight: \"100%\",\n\n\t\tpadding: 0,\n\t\tmargin: 0,\n\n\t\t\"&.MuiSwitch-root\": {\n\t\t\toverflow: \"visible\", // erforderlich\n\t\t},\n\n\t\t\"& .MuiSwitch-switchBase\": {\n\t\t\t// overflow: \"hidden\", // ???\n\n\t\t\tmargin: 0,\n\t\t\tpadding: 0,\n\n\t\t\ttop: \"50%\",\n\t\t\tleft: \"0%\",\n\t\t\ttransform: `translate(-50%, -50%) translateX(${\n\t\t\t\tmaxHeight >= (widget.data.thumbSize || 62)\n\t\t\t\t\t? (widget.data.thumbSize / 2 - 4) || 31 - 4\n\t\t\t\t\t: maxHeight / 2 - 4\n\t\t\t}px)`,\n\n\t\t\t\"& .MuiSwitch-input\": {\n\t\t\t\tleft: 0,\n\t\t\t\twidth: width,\n\t\t\t},\n\n\t\t\t\"&.Mui-checked\": {\n\t\t\t\ttop: \"50%\",\n\t\t\t\tleft: \"100%\",\n\t\t\t\ttransform: `translate(-50%, -50%) translateX(${\n\t\t\t\t\tmaxHeight >= (widget.data.thumbSize || 62)\n\t\t\t\t\t\t? -(widget.data.thumbSize / 2 - 4) || -31 - 4\n\t\t\t\t\t\t: -(maxHeight / 2 - 4)\n\t\t\t\t}px)`,\n\n\t\t\t\t\"& .MuiSwitch-input\": {\n\t\t\t\t\tleft: -width + (widget.data.thumbSize || 62),\n\t\t\t\t\twidth: width,\n\t\t\t\t},\n\n\t\t\t\t\"& .MuiSwitch-thumb\": {\n\t\t\t\t\tbackgroundColor:\n\t\t\t\t\t\twidget.data.thumbColorTrue || theme.palette.primary.main,\n\t\t\t\t},\n\n\t\t\t\t\"& .MuiSwitch-thumb:before\": {\n\t\t\t\t\ttop: `calc(${data.iconYOffset} * -1)`,\n\t\t\t\t\tleft: data.iconXOffset,\n\n\t\t\t\t\tbackgroundSize: `${data.iconSizeOnly === 0 ? \"0\" : data.iconSizeOnly || \"100\"}% ${data.iconSizeOnly === 0 ? \"0\" : data.iconSizeOnly || \"100\"}%`,\n\t\t\t\t\tbackgroundImage: data.iconActive && `url('${data.iconActive}')`,\n\t\t\t\t},\n\n\t\t\t\t\"& + .MuiSwitch-track\": {\n\t\t\t\t\tbackgroundColor:\n\t\t\t\t\t\twidget.data.trackColor ||\n\t\t\t\t\t\t(theme.palette.mode === \"dark\"\n\t\t\t\t\t\t\t? alpha(\"rgb(144, 202, 249)\", 0.5)\n\t\t\t\t\t\t\t: alpha(\"#1976d2\", 0.5)),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\t\"& .MuiSwitch-thumb\": {\n\t\t\tbackgroundColor: widget.data.thumbColorFalse,\n\n\t\t\twidth: widget.data.thumbSize || 62,\n\t\t\tmaxWidth: maxHeight,\n\t\t\theight: widget.data.thumbSize || 62,\n\t\t\tmaxHeight: maxHeight,\n\n\t\t\t\"&::before\": {\n\t\t\t\tcontent: \"''\",\n\t\t\t\tposition: \"absolute\",\n\n\t\t\t\twidth: \"100%\",\n\t\t\t\theight: \"100%\",\n\n\t\t\t\t// top: `calc(${data.iconYOffset} * -1)`,\n\t\t\t\t// left: data.iconXOffset,\n\n\t\t\t\tleft: `calc(0px + ${data.iconXOffset})`,\n\t\t\t\ttop: `calc(0px - ${data.iconYOffset})`,\n\n\t\t\t\tbackgroundRepeat: \"no-repeat\",\n\t\t\t\tbackgroundPosition: \"center\",\n\n\t\t\t\tbackgroundSize: `${data.iconSizeOnly === 0 ? \"0\" : data.iconSizeOnly || \"100\"}% ${data.iconSizeOnly === 0 ? \"0\" : data.iconSizeOnly || \"100\"}%`,\n\t\t\t\tbackgroundImage: data.iconActive && `url('${data.iconActive}')`,\n\n\t\t\t\tcolor: data.iconColorActive || data.iconColor,\n\t\t\t\tfilter:\n\t\t\t\t\tdata.iconColorActive || data.iconColor\n\t\t\t\t\t\t? \"drop-shadow(0px 10000px 0)\"\n\t\t\t\t\t\t: null,\n\t\t\t\ttransform:\n\t\t\t\t\tdata.iconColorActive || data.iconColor\n\t\t\t\t\t\t? \"translateY(-10000px)\"\n\t\t\t\t\t\t: null,\n\t\t\t},\n\t\t},\n\n\t\t\"& .MuiSwitch-track\": {\n\t\t\tbackgroundColor:\n\t\t\t\t(widget.data.trackColor && alpha(widget.data.trackColor, 0.5)) ||\n\t\t\t\t(theme.palette.mode === \"dark\"\n\t\t\t\t\t? alpha(\"#ffffff\", 0.3)\n\t\t\t\t\t: alpha(\"#000000\", 0.38)),\n\t\t\tborderRadius: 20 / 2,\n\t\t},\n\t}),\n);\n\nexport default MaterialUISwitch;\n","import { Box } from \"@mui/material\";\nimport React, { useRef, useContext } from \"react\";\nimport CollectionBase from \"../components/CollectionBase\";\nimport CollectionBaseImage from \"../components/CollectionBaseImage\";\nimport { CollectionContext } from \"../components/CollectionProvider\";\nimport useData from \"../hooks/useData\";\nimport useValueState from \"../hooks/useValueState\";\nimport MaterialUISwitch from \"./MaterialUISwitch\";\n\nfunction SwitchCollection() {\n\tconst ref = useRef(null);\n\tconst { oidObject, widget } = useContext(CollectionContext);\n\tconst { data } = useData(\"oid\");\n\tconst { value: oidValue, setValueState: setOidValueState } =\n\t\tuseValueState(\"oid\");\n\n\tconst oidType = oidObject?.common?.type;\n\n\tconst isValidType = oidType === \"boolean\";\n\n\treturn (\n\t\t<CollectionBase isValidType={isValidType} data={data} oidValue={oidValue}>\n\t\t\t<CollectionBaseImage data={data} widget={widget} />\n\t\t\t<Box\n\t\t\t\tsx={{\n\t\t\t\t\tposition: \"relative\",\n\n\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\theight:\n\t\t\t\t\t\t(widget.data.trackSize && `${widget.data.trackSize}%`) || \"10%\",\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Box\n\t\t\t\t\tref={ref}\n\t\t\t\t\tsx={{\n\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\theight: \"100%\",\n\n\t\t\t\t\t\tpx: \"8px\",\n\n\t\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{oidValue !== undefined && widget.data.thumbSize !== undefined && (\n\t\t\t\t\t\t<MaterialUISwitch\n\t\t\t\t\t\t\tdisabled={oidType !== \"boolean\"}\n\t\t\t\t\t\t\twidth={ref.current?.clientWidth}\n\t\t\t\t\t\t\tmaxHeight={\n\t\t\t\t\t\t\t\tref.current?.parentElement?.parentElement?.clientHeight\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdata={data}\n\t\t\t\t\t\t\twidget={widget}\n\t\t\t\t\t\t\tchecked={oidValue}\n\t\t\t\t\t\t\tonChange={() => setOidValueState(!oidValue)}\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\"& .MuiTouchRipple-root\": {\n\t\t\t\t\t\t\t\t\tcolor:\n\t\t\t\t\t\t\t\t\t\tdata.iconColorActive ||\n\t\t\t\t\t\t\t\t\t\tdata.iconColor ||\n\t\t\t\t\t\t\t\t\t\tdata.textColorActive ||\n\t\t\t\t\t\t\t\t\t\tdata.textColor,\n\t\t\t\t\t\t\t\t},\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</Box>\n\t\t\t</Box>\n\t\t</CollectionBase>\n\t);\n}\n\nexport default SwitchCollection;\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 delayFields from \"../lib/delayFields\";\nimport switchFields from \"../lib/switchFields\";\nimport SwitchCollection from \"./SwitchCollection\";\n\nclass SwitchCollectionWidget extends Generic {\n\tstatic getWidgetInfo() {\n\t\treturn {\n\t\t\tid: \"tplSwitchCollectionWidget\",\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: \"SwitchCollectionWidget\", // Name of widget\n\t\t\tvisWidgetLabel: \"switch_collection_widget\", // Label for widget\n\t\t\tvisOrder: 2,\n\t\t\tvisAttrs: [\n\t\t\t\t// CollectionGroupCommonAttributes([\"boolean\"]),\n\t\t\t\t{\n\t\t\t\t\tname: \"common\", // group name\n\t\t\t\t\tfields: [...commonFields()],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"switch\",\n\t\t\t\t\tlabel: \"group_switch\",\n\t\t\t\t\tfields: [\n\t\t\t\t\t\t...commonObjectFields([\"boolean\"]),\n\t\t\t\t\t\t...delayFields(),\n\t\t\t\t\t\t...switchFields(),\n\t\t\t\t\t],\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\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-switch.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 SwitchCollectionWidget.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\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\thasPropertyValueChanged: this.hasPropertyValueChanged.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(<SwitchCollection />),\n\t\t\tcollectionContext,\n\t\t);\n\t}\n}\n\nexport default SwitchCollectionWidget;\n"],"names":["switchFields","type","component","_jsx","CollectionDivider","name","label","min","max","default","step","styled","Switch","_ref","width","maxHeight","data","widget","theme","height","padding","margin","overflow","top","left","transform","concat","thumbSize","backgroundColor","thumbColorTrue","palette","primary","main","iconYOffset","iconXOffset","backgroundSize","iconSizeOnly","backgroundImage","iconActive","trackColor","mode","alpha","thumbColorFalse","maxWidth","content","position","backgroundRepeat","backgroundPosition","color","iconColorActive","iconColor","filter","borderRadius","_oidObject$common","_ref$current","_ref$current2","_ref$current2$parentE","_ref$current2$parentE2","ref","useRef","oidObject","useContext","CollectionContext","useData","value","oidValue","setValueState","setOidValueState","useValueState","oidType","common","isValidType","_jsxs","CollectionBase","children","CollectionBaseImage","Box","sx","trackSize","px","display","justifyContent","alignItems","undefined","MaterialUISwitch","disabled","current","clientWidth","parentElement","clientHeight","checked","onChange","textColorActive","textColor","SwitchCollectionWidget","Generic","getWidgetInfo","id","visSet","visSetLabel","visName","visWidgetLabel","visOrder","visAttrs","fields","commonFields","commonObjectFields","delayFields","indexFrom","indexTo","groupName","allFields","visDefaultStyle","visPrev","propertiesUpdate","actualRxData","JSON","stringify","this","state","rxData","lastRxData","createStateObjectAsync","onRxDataChanged","payload","onRxStyleChanged","onStateUpdated","componentDidMount","super","renderWidgetBody","props","collectionContext","refService","style","_objectSpread","rxStyle","setValue","setState","bind","values","isSignalVisible","getPropertyValue","hasPropertyValueChanged","context","themeType","socket","wrappedContent","noCard","usedInWidget","withCollectionProvider","wrapContent","SwitchCollection"],"sourceRoot":""}
|