@iobroker/json-config 8.5.5 → 9.0.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.
Files changed (136) hide show
  1. package/README.md +3 -0
  2. package/build/JsonConfig.d.ts +1 -1
  3. package/build/JsonConfig.js +1 -1
  4. package/build/JsonConfig.js.map +1 -1
  5. package/build/JsonConfigComponent/ChipInput.d.ts +1 -1
  6. package/build/JsonConfigComponent/ChipInput.js +4 -4
  7. package/build/JsonConfigComponent/ChipInput.js.map +1 -1
  8. package/build/JsonConfigComponent/ConfigAccordion.js +1 -1
  9. package/build/JsonConfigComponent/ConfigAccordion.js.map +1 -1
  10. package/build/JsonConfigComponent/ConfigAlive.js +1 -1
  11. package/build/JsonConfigComponent/ConfigAlive.js.map +1 -1
  12. package/build/JsonConfigComponent/ConfigAutocomplete.js +5 -2
  13. package/build/JsonConfigComponent/ConfigAutocomplete.js.map +1 -1
  14. package/build/JsonConfigComponent/ConfigAutocompleteSendTo.js +7 -4
  15. package/build/JsonConfigComponent/ConfigAutocompleteSendTo.js.map +1 -1
  16. package/build/JsonConfigComponent/ConfigCRON.js +1 -1
  17. package/build/JsonConfigComponent/ConfigCRON.js.map +1 -1
  18. package/build/JsonConfigComponent/ConfigCertCollection.js +1 -1
  19. package/build/JsonConfigComponent/ConfigCertCollection.js.map +1 -1
  20. package/build/JsonConfigComponent/ConfigCertificateSelect.js +1 -1
  21. package/build/JsonConfigComponent/ConfigCertificateSelect.js.map +1 -1
  22. package/build/JsonConfigComponent/ConfigCertificates.js +1 -1
  23. package/build/JsonConfigComponent/ConfigCertificates.js.map +1 -1
  24. package/build/JsonConfigComponent/ConfigCheckDocker.js +1 -1
  25. package/build/JsonConfigComponent/ConfigCheckDocker.js.map +1 -1
  26. package/build/JsonConfigComponent/ConfigCheckLicense.js +1 -1
  27. package/build/JsonConfigComponent/ConfigCheckLicense.js.map +1 -1
  28. package/build/JsonConfigComponent/ConfigCheckbox.js +1 -1
  29. package/build/JsonConfigComponent/ConfigCheckbox.js.map +1 -1
  30. package/build/JsonConfigComponent/ConfigChip.js +1 -1
  31. package/build/JsonConfigComponent/ConfigChip.js.map +1 -1
  32. package/build/JsonConfigComponent/ConfigColor.js +1 -1
  33. package/build/JsonConfigComponent/ConfigColor.js.map +1 -1
  34. package/build/JsonConfigComponent/ConfigCoordinates.js +1 -1
  35. package/build/JsonConfigComponent/ConfigCoordinates.js.map +1 -1
  36. package/build/JsonConfigComponent/ConfigCredentialSelect.js +2 -4
  37. package/build/JsonConfigComponent/ConfigCredentialSelect.js.map +1 -1
  38. package/build/JsonConfigComponent/ConfigCustom.js +3 -3
  39. package/build/JsonConfigComponent/ConfigCustom.js.map +1 -1
  40. package/build/JsonConfigComponent/ConfigDatePicker.js.map +1 -1
  41. package/build/JsonConfigComponent/ConfigDeviceManager.js.map +1 -1
  42. package/build/JsonConfigComponent/ConfigFile.js +1 -1
  43. package/build/JsonConfigComponent/ConfigFile.js.map +1 -1
  44. package/build/JsonConfigComponent/ConfigFileSelector.js +7 -2
  45. package/build/JsonConfigComponent/ConfigFileSelector.js.map +1 -1
  46. package/build/JsonConfigComponent/ConfigFunc.js +1 -1
  47. package/build/JsonConfigComponent/ConfigFunc.js.map +1 -1
  48. package/build/JsonConfigComponent/ConfigGeneric.d.ts +1 -1
  49. package/build/JsonConfigComponent/ConfigGeneric.js +58 -75
  50. package/build/JsonConfigComponent/ConfigGeneric.js.map +1 -1
  51. package/build/JsonConfigComponent/ConfigIFrame.js.map +1 -1
  52. package/build/JsonConfigComponent/ConfigIFrameSendTo.js +4 -2
  53. package/build/JsonConfigComponent/ConfigIFrameSendTo.js.map +1 -1
  54. package/build/JsonConfigComponent/ConfigIP.js +1 -1
  55. package/build/JsonConfigComponent/ConfigIP.js.map +1 -1
  56. package/build/JsonConfigComponent/ConfigImageSendTo.js +1 -1
  57. package/build/JsonConfigComponent/ConfigImageSendTo.js.map +1 -1
  58. package/build/JsonConfigComponent/ConfigImageUpload.js +1 -1
  59. package/build/JsonConfigComponent/ConfigImageUpload.js.map +1 -1
  60. package/build/JsonConfigComponent/ConfigInfoBox.js +1 -1
  61. package/build/JsonConfigComponent/ConfigInfoBox.js.map +1 -1
  62. package/build/JsonConfigComponent/ConfigInstanceSelect.js +1 -1
  63. package/build/JsonConfigComponent/ConfigInstanceSelect.js.map +1 -1
  64. package/build/JsonConfigComponent/ConfigInterface.js.map +1 -1
  65. package/build/JsonConfigComponent/ConfigJsonEditor.js +1 -1
  66. package/build/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
  67. package/build/JsonConfigComponent/ConfigLanguage.js +1 -1
  68. package/build/JsonConfigComponent/ConfigLanguage.js.map +1 -1
  69. package/build/JsonConfigComponent/ConfigLicense.js +1 -1
  70. package/build/JsonConfigComponent/ConfigLicense.js.map +1 -1
  71. package/build/JsonConfigComponent/ConfigNumber.js +2 -2
  72. package/build/JsonConfigComponent/ConfigNumber.js.map +1 -1
  73. package/build/JsonConfigComponent/ConfigOAuth2.js +1 -1
  74. package/build/JsonConfigComponent/ConfigOAuth2.js.map +1 -1
  75. package/build/JsonConfigComponent/ConfigObjectId.js +1 -1
  76. package/build/JsonConfigComponent/ConfigObjectId.js.map +1 -1
  77. package/build/JsonConfigComponent/ConfigPanel.js +7 -7
  78. package/build/JsonConfigComponent/ConfigPanel.js.map +1 -1
  79. package/build/JsonConfigComponent/ConfigPassword.js +1 -1
  80. package/build/JsonConfigComponent/ConfigPassword.js.map +1 -1
  81. package/build/JsonConfigComponent/ConfigPattern.js +1 -1
  82. package/build/JsonConfigComponent/ConfigPattern.js.map +1 -1
  83. package/build/JsonConfigComponent/ConfigPort.js +1 -1
  84. package/build/JsonConfigComponent/ConfigPort.js.map +1 -1
  85. package/build/JsonConfigComponent/ConfigQrCode.js +2 -0
  86. package/build/JsonConfigComponent/ConfigQrCode.js.map +1 -1
  87. package/build/JsonConfigComponent/ConfigQrCodeSendTo.js +3 -1
  88. package/build/JsonConfigComponent/ConfigQrCodeSendTo.js.map +1 -1
  89. package/build/JsonConfigComponent/ConfigRoom.js +1 -1
  90. package/build/JsonConfigComponent/ConfigRoom.js.map +1 -1
  91. package/build/JsonConfigComponent/ConfigSelect.js +1 -1
  92. package/build/JsonConfigComponent/ConfigSelect.js.map +1 -1
  93. package/build/JsonConfigComponent/ConfigSelectSendTo.js +1 -1
  94. package/build/JsonConfigComponent/ConfigSelectSendTo.js.map +1 -1
  95. package/build/JsonConfigComponent/ConfigSendto.js +1 -1
  96. package/build/JsonConfigComponent/ConfigSendto.js.map +1 -1
  97. package/build/JsonConfigComponent/ConfigSetState.js +1 -1
  98. package/build/JsonConfigComponent/ConfigSetState.js.map +1 -1
  99. package/build/JsonConfigComponent/ConfigSlider.js.map +1 -1
  100. package/build/JsonConfigComponent/ConfigState.js +5 -5
  101. package/build/JsonConfigComponent/ConfigState.js.map +1 -1
  102. package/build/JsonConfigComponent/ConfigStaticDivider.js +1 -1
  103. package/build/JsonConfigComponent/ConfigStaticDivider.js.map +1 -1
  104. package/build/JsonConfigComponent/ConfigStaticHeader.js.map +1 -1
  105. package/build/JsonConfigComponent/ConfigStaticImage.js +1 -1
  106. package/build/JsonConfigComponent/ConfigStaticImage.js.map +1 -1
  107. package/build/JsonConfigComponent/ConfigStaticInfo.js +1 -1
  108. package/build/JsonConfigComponent/ConfigStaticInfo.js.map +1 -1
  109. package/build/JsonConfigComponent/ConfigStaticText.js +1 -1
  110. package/build/JsonConfigComponent/ConfigStaticText.js.map +1 -1
  111. package/build/JsonConfigComponent/ConfigTable.d.ts +2 -2
  112. package/build/JsonConfigComponent/ConfigTable.js +6 -6
  113. package/build/JsonConfigComponent/ConfigTable.js.map +1 -1
  114. package/build/JsonConfigComponent/ConfigTabs.js.map +1 -1
  115. package/build/JsonConfigComponent/ConfigText.js +2 -2
  116. package/build/JsonConfigComponent/ConfigText.js.map +1 -1
  117. package/build/JsonConfigComponent/ConfigTextSendTo.js +1 -1
  118. package/build/JsonConfigComponent/ConfigTextSendTo.js.map +1 -1
  119. package/build/JsonConfigComponent/ConfigTimePicker.js.map +1 -1
  120. package/build/JsonConfigComponent/ConfigTopic.js.map +1 -1
  121. package/build/JsonConfigComponent/ConfigUUID.js +1 -1
  122. package/build/JsonConfigComponent/ConfigUUID.js.map +1 -1
  123. package/build/JsonConfigComponent/ConfigUser.js +1 -1
  124. package/build/JsonConfigComponent/ConfigUser.js.map +1 -1
  125. package/build/JsonConfigComponent/ConfigYamlEditor.js +1 -1
  126. package/build/JsonConfigComponent/ConfigYamlEditor.js.map +1 -1
  127. package/build/JsonConfigComponent/Icons.js.map +1 -1
  128. package/build/JsonConfigComponent/index.d.ts +1 -1
  129. package/build/JsonConfigComponent/index.js +1 -1
  130. package/build/JsonConfigComponent/index.js.map +1 -1
  131. package/build/JsonConfigComponent/wrapper/Components/CustomModal.js +2 -2
  132. package/build/JsonConfigComponent/wrapper/Components/CustomModal.js.map +1 -1
  133. package/build/JsonConfigComponent/wrapper/Components/Editor.js.map +1 -1
  134. package/build/index.js.map +1 -1
  135. package/build/types.d.ts +19 -34
  136. package/package.json +22 -11
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigStaticText.js","sourceRoot":"./src/","sources":["JsonConfigComponent/ConfigStaticText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAiB,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAGlE,OAAO,aAAmE,MAAM,iBAAiB,CAAC;AAElG,MAAM,MAAM,GAAwB;IAChC,SAAS,EAAE;QACP,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;KAChB;IACD,IAAI,EAAE,CAAC,KAAe,EAAuB,EAAE,CAAC,CAAC;QAC7C,cAAc,EAAE,WAAW;QAC3B,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,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I,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,CACvE,CAAC;wBACN,CAAC;oBACL,CAAC;gBACL,CAAC;gBACH,CAAC,CAAC,SAAS,IAGlB,IAAI,CACH,CACT,CAAC;IACN,CAAC;CACJ","sourcesContent":["import React, { type JSX } from 'react';\n\nimport { Box, Button } from '@mui/material';\n\nimport { type IobTheme, Utils } from '@iobroker/adapter-react-v5';\n\nimport type { ConfigItemStaticText } from '../types';\nimport ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';\n\nconst styles: Record<string, any> = {\n fullWidth: {\n height: '100%',\n width: '100%',\n },\n link: (theme: IobTheme): React.CSSProperties => ({\n textDecoration: 'underline',\n color: theme.palette.mode === 'dark' ? '#4dabf5' : '#254e72',\n cursor: 'pointer',\n }),\n};\n\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\nfunction onLink(href: string, target: '_blank' | '_self' | string | undefined, instanceId: string): void {\n let _target;\n let url = '';\n if (!href) {\n url = `#tab-instances/config/${instanceId}`;\n _target = target || '_self';\n } else if (href.toString().startsWith('#')) {\n _target = target || '_self';\n url = href;\n } else if (href.toString().startsWith('/')) {\n _target = target || '_self';\n url = href;\n } else if (href.startsWith('http://') || href.startsWith('https://')) {\n _target = target || '_blank';\n url = href;\n } else {\n url = `#tab-instances/config/${instanceId}/${href}`;\n _target = target || '_self';\n }\n if (_target === '_self') {\n // close dialog\n setTimeout(\n (_url: string) => {\n if (_url.startsWith('#')) {\n window.location.hash = _url;\n } else if (_url.startsWith('/')) {\n url = `${window.location.protocol}//${window.location.host}${url}`;\n } else if (_url.startsWith('http://') || _url.startsWith('https://')) {\n window.location.href = _url;\n }\n },\n 100,\n url,\n );\n } else {\n if (url.startsWith('#')) {\n url = `${window.location.protocol}//${window.location.host}${window.location.pathname}${url}`;\n } else if (url.startsWith('/')) {\n url = `${window.location.protocol}//${window.location.host}${url}`;\n }\n\n window.open(url, _target);\n }\n}\n\ninterface ConfigStaticTextProps extends ConfigGenericProps {\n schema: ConfigItemStaticText;\n}\n\nexport default class ConfigStaticText extends ConfigGeneric<ConfigStaticTextProps, ConfigGenericState> {\n renderItem(_error: string, disabled: boolean /* , defaultValue */): JSX.Element {\n if (this.props.schema.button) {\n const icon = this.getIcon();\n return (\n <Button\n variant={this.props.schema.variant || undefined}\n color={this.props.schema.color || 'grey'}\n style={{ ...styles.fullWidth, ...(this.props.schema.controlStyle || undefined) }}\n disabled={disabled}\n startIcon={icon}\n onClick={\n this.props.schema.href\n ? () => {\n // calculate one more time just before call\n const href = this.props.schema.href\n ? this.getText(this.props.schema.href, true)\n : null;\n if (href) {\n if (this.props.oContext.onBackEndCommand) {\n this.props.oContext.onBackEndCommand({\n command: 'link',\n url: href,\n target: this.props.schema.target,\n close: this.props.schema.close,\n });\n } else {\n onLink(\n href,\n this.props.schema.target,\n `${this.props.oContext.adapterName}.${this.props.oContext.instance}`,\n );\n }\n }\n }\n : undefined\n }\n >\n {this.getText(this.props.schema.text || this.props.schema.label, this.props.schema.noTranslation)}\n </Button>\n );\n }\n let text: string | JSX.Element | JSX.Element[] = this.getText(\n this.props.schema.text || this.props.schema.label,\n this.props.schema.noTranslation,\n );\n if (this.props.schema.format === 'html') {\n text = <div dangerouslySetInnerHTML={{ __html: text }} />;\n } else if (this.props.schema.format === 'json') {\n try {\n const obj = typeof text === 'string' ? JSON.parse(text) : text;\n text = (\n <pre style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word', margin: 0 }}>\n {JSON.stringify(obj, null, 2)}\n </pre>\n );\n } catch {\n // invalid JSON — just render as text\n // fallthrough to the next block\n }\n } else if (\n text &&\n (text.includes('<a ') || text.includes('<br') || text.includes('<b>') || text.includes('<i>'))\n ) {\n text = Utils.renderTextWithA(text);\n }\n\n return (\n <Box\n component=\"span\"\n style={{ ...(this.props.schema.controlStyle || undefined) }}\n sx={this.props.schema.href ? styles.link : undefined}\n onClick={\n this.props.schema.href\n ? () => {\n // calculate one more time just before call\n const href = this.props.schema.href ? this.getText(this.props.schema.href, true) : null;\n if (href) {\n if (this.props.oContext.onBackEndCommand) {\n this.props.oContext.onBackEndCommand({\n command: 'link',\n url: href,\n target: this.props.schema.target || '_blank',\n close: this.props.schema.close,\n });\n } else {\n onLink(\n href,\n this.props.schema.target || '_blank',\n `${this.props.oContext.adapterName}.${this.props.oContext.instance}`,\n );\n }\n }\n }\n : undefined\n }\n >\n {text}\n </Box>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"ConfigStaticText.js","sourceRoot":"src/","sources":["JsonConfigComponent/ConfigStaticText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAiB,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGhE,OAAO,aAAmE,MAAM,iBAAiB,CAAC;AAElG,MAAM,MAAM,GAAwB;IAChC,SAAS,EAAE;QACP,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;KAChB;IACD,IAAI,EAAE,CAAC,KAAe,EAAuB,EAAE,CAAC,CAAC;QAC7C,cAAc,EAAE,WAAW;QAC3B,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;QAC5D,MAAM,EAAE,SAAS;KACpB,CAAC;CACL,CAAC;AAEF,6EAA6E;AAC7E,SAAS,MAAM,CAAC,IAAY,EAAE,MAA+C,EAAE,UAAkB;IAC7F,IAAI,OAAO,CAAC;IACZ,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,GAAG,GAAG,yBAAyB,UAAU,EAAE,CAAC;QAC5C,OAAO,GAAG,MAAM,IAAI,OAAO,CAAC;IAChC,CAAC;SAAM,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,GAAG,CA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IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI;gBAClB,CAAC,CAAC,GAAG,EAAE;oBACD,2CAA2C;oBAC3C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;oBACxF,IAAI,IAAI,EAAE,CAAC;wBACP,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;4BACvC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gCACjC,OAAO,EAAE,MAAM;gCACf,GAAG,EAAE,IAAI;gCACT,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,IAAI,QAAQ;gCAC5C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;6BACjC,CAAC,CAAC;wBACP,CAAC;6BAAM,CAAC;4BACJ,MAAM,CACF,IAAI,EACJ,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,IAAI,QAAQ,EACpC,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,CACvE,CAAC;wBACN,CAAC;oBACL,CAAC;gBACL,CAAC;gBACH,CAAC,CAAC,SAAS,IAGlB,IAAI,CACH,CACT,CAAC;IACN,CAAC;CACJ","sourcesContent":["import React, { type JSX } from 'react';\n\nimport { Box, Button } from '@mui/material';\n\nimport { type IobTheme, Utils } from '@iobroker/gui-components';\n\nimport type { ConfigItemStaticText } from '../types';\nimport ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';\n\nconst styles: Record<string, any> = {\n fullWidth: {\n height: '100%',\n width: '100%',\n },\n link: (theme: IobTheme): React.CSSProperties => ({\n textDecoration: 'underline',\n color: theme.palette.mode === 'dark' ? '#4dabf5' : '#254e72',\n cursor: 'pointer',\n }),\n};\n\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\nfunction onLink(href: string, target: '_blank' | '_self' | string | undefined, instanceId: string): void {\n let _target;\n let url = '';\n if (!href) {\n url = `#tab-instances/config/${instanceId}`;\n _target = target || '_self';\n } else if (href.toString().startsWith('#')) {\n _target = target || '_self';\n url = href;\n } else if (href.toString().startsWith('/')) {\n _target = target || '_self';\n url = href;\n } else if (href.startsWith('http://') || href.startsWith('https://')) {\n _target = target || '_blank';\n url = href;\n } else {\n url = `#tab-instances/config/${instanceId}/${href}`;\n _target = target || '_self';\n }\n if (_target === '_self') {\n // close dialog\n setTimeout(\n (_url: string) => {\n if (_url.startsWith('#')) {\n window.location.hash = _url;\n } else if (_url.startsWith('/')) {\n url = `${window.location.protocol}//${window.location.host}${url}`;\n } else if (_url.startsWith('http://') || _url.startsWith('https://')) {\n window.location.href = _url;\n }\n },\n 100,\n url,\n );\n } else {\n if (url.startsWith('#')) {\n url = `${window.location.protocol}//${window.location.host}${window.location.pathname}${url}`;\n } else if (url.startsWith('/')) {\n url = `${window.location.protocol}//${window.location.host}${url}`;\n }\n\n window.open(url, _target);\n }\n}\n\ninterface ConfigStaticTextProps extends ConfigGenericProps {\n schema: ConfigItemStaticText;\n}\n\nexport default class ConfigStaticText extends ConfigGeneric<ConfigStaticTextProps, ConfigGenericState> {\n renderItem(_error: string, disabled: boolean /* , defaultValue */): JSX.Element {\n if (this.props.schema.button) {\n const icon = this.getIcon();\n return (\n <Button\n variant={this.props.schema.variant || undefined}\n color={this.props.schema.color || 'grey'}\n style={{ ...styles.fullWidth, ...(this.props.schema.controlStyle || undefined) }}\n disabled={disabled}\n startIcon={icon}\n onClick={\n this.props.schema.href\n ? () => {\n // calculate one more time just before call\n const href = this.props.schema.href\n ? this.getText(this.props.schema.href, true)\n : null;\n if (href) {\n if (this.props.oContext.onBackEndCommand) {\n this.props.oContext.onBackEndCommand({\n command: 'link',\n url: href,\n target: this.props.schema.target,\n close: this.props.schema.close,\n });\n } else {\n onLink(\n href,\n this.props.schema.target,\n `${this.props.oContext.adapterName}.${this.props.oContext.instance}`,\n );\n }\n }\n }\n : undefined\n }\n >\n {this.getText(this.props.schema.text || this.props.schema.label, this.props.schema.noTranslation)}\n </Button>\n );\n }\n let text: string | JSX.Element | JSX.Element[] = this.getText(\n this.props.schema.text || this.props.schema.label,\n this.props.schema.noTranslation,\n );\n if (this.props.schema.format === 'html') {\n text = <div dangerouslySetInnerHTML={{ __html: text }} />;\n } else if (this.props.schema.format === 'json') {\n try {\n const obj = typeof text === 'string' ? JSON.parse(text) : text;\n text = (\n <pre style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word', margin: 0 }}>\n {JSON.stringify(obj, null, 2)}\n </pre>\n );\n } catch {\n // invalid JSON — just render as text\n // fallthrough to the next block\n }\n } else if (\n text &&\n (text.includes('<a ') || text.includes('<br') || text.includes('<b>') || text.includes('<i>'))\n ) {\n text = Utils.renderTextWithA(text);\n }\n\n return (\n <Box\n component=\"span\"\n style={{ ...(this.props.schema.controlStyle || undefined) }}\n sx={this.props.schema.href ? styles.link : undefined}\n onClick={\n this.props.schema.href\n ? () => {\n // calculate one more time just before call\n const href = this.props.schema.href ? this.getText(this.props.schema.href, true) : null;\n if (href) {\n if (this.props.oContext.onBackEndCommand) {\n this.props.oContext.onBackEndCommand({\n command: 'link',\n url: href,\n target: this.props.schema.target || '_blank',\n close: this.props.schema.close,\n });\n } else {\n onLink(\n href,\n this.props.schema.target || '_blank',\n `${this.props.oContext.adapterName}.${this.props.oContext.instance}`,\n );\n }\n }\n }\n : undefined\n }\n >\n {text}\n </Box>\n );\n }\n}\n"]}
@@ -48,8 +48,8 @@ export default class ConfigTable extends ConfigGeneric<ConfigTableProps, ConfigT
48
48
  onTableRowError: (rowIndex: number) => (attr: string | undefined, error?: string) => void;
49
49
  static descendingComparator(a: Record<string, any>, b: Record<string, any>, orderBy: string): number;
50
50
  static getComparator(order: 'desc' | 'asc', orderBy: string): (a: Record<string, any>, b: Record<string, any>) => number;
51
- static getFilterValue(el: React.RefObject<HTMLInputElement>): string;
52
- static setFilterValue(el: React.RefObject<HTMLInputElement>, filterValue: string): void;
51
+ static getFilterValue(el: React.RefObject<HTMLInputElement | null>): string;
52
+ static setFilterValue(el: React.RefObject<HTMLInputElement | null>, filterValue: string): void;
53
53
  handleRequestSort: (property: string, orderCheck?: boolean) => void;
54
54
  stableSort: (order: "desc" | "asc", orderBy: string) => Record<string, any>[];
55
55
  renderShowHideFilter(headCell: ConfigItemTableIndexed): React.JSX.Element | null;
@@ -1,8 +1,8 @@
1
1
  import React, { createRef } from 'react';
2
2
  import Dropzone from 'react-dropzone';
3
- import { Accordion, AccordionDetails, AccordionSummary, Button, Card, Collapse, Dialog, DialogActions, DialogContent, DialogTitle, Grid2, IconButton, InputAdornment, Paper, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, TableSortLabel, TextField, Toolbar, Tooltip, Typography, FormHelperText, Box, } from '@mui/material';
3
+ import { Accordion, AccordionDetails, AccordionSummary, Button, Card, Collapse, Dialog, DialogActions, DialogContent, DialogTitle, Grid, IconButton, InputAdornment, Paper, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, TableSortLabel, TextField, Toolbar, Tooltip, Typography, FormHelperText, Box, } from '@mui/material';
4
4
  import { Add as AddIcon, Delete as DeleteIcon, Close as CloseIcon, ArrowUpward as UpIcon, ArrowDownward as DownIcon, FilterAlt as IconFilterOn, FilterAltOff as IconFilterOff, ContentCopy as CopyContentIcon, Download as ExportIcon, Warning as ErrorIcon, UploadFile as ImportIcon, Close as IconClose, ExpandMore as ExpandMoreIcon, } from '@mui/icons-material';
5
- import { I18n } from '@iobroker/adapter-react-v5';
5
+ import { I18n } from '@iobroker/gui-components';
6
6
  import ConfigGeneric from './ConfigGeneric';
7
7
  import ConfigPanel from './ConfigPanel';
8
8
  const MAX_SIZE = 1024 * 1024; // 1MB
@@ -897,7 +897,7 @@ export default class ConfigTable extends ConfigGeneric {
897
897
  }
898
898
  const importExportVisible = (!schema.noDelete && schema.import) || schema.export;
899
899
  if (importExportVisible || schema.items?.find(item => item.sort || item.filter)) {
900
- return (React.createElement(Grid2, { size: {
900
+ return (React.createElement(Grid, { size: {
901
901
  xs: schema.xs || 12, // if xs is not defined, take the full width
902
902
  sm: schema.sm || undefined,
903
903
  md: schema.md || undefined,
@@ -937,7 +937,7 @@ export default class ConfigTable extends ConfigGeneric {
937
937
  tdStyle = { paddingTop: 1, paddingBottom: 1 };
938
938
  }
939
939
  const doAnyFilterSet = this.isAnyFilterSet();
940
- return (React.createElement(Grid2, { size: {
940
+ return (React.createElement(Grid, { size: {
941
941
  xs: schema.xs || 12, // if xs is not defined, take the full width
942
942
  sm: schema.sm || undefined,
943
943
  md: schema.md || undefined,
@@ -961,11 +961,11 @@ export default class ConfigTable extends ConfigGeneric {
961
961
  const tdStyleHidden = { padding: 0, borderBottom: 'none' };
962
962
  visibleValue ||= this.state.value.map((_, i) => i);
963
963
  const doAnyFilterSet = this.isAnyFilterSet();
964
- return (React.createElement(Grid2, { container: true },
964
+ return (React.createElement(Grid, { container: true },
965
965
  this.showImportDialog(),
966
966
  this.showTypeOfImportDialog(),
967
967
  this.enhancedFilterCard(),
968
- visibleValue.map((idx, i) => (React.createElement(Grid2, { key: `${idx}_${i}`, size: {
968
+ visibleValue.map((idx, i) => (React.createElement(Grid, { key: `${idx}_${i}`, size: {
969
969
  xs: schema.xs || 12, // if xs is not defined, take the full width
970
970
  sm: schema.sm || undefined,
971
971
  md: schema.md || undefined,