@iobroker/json-config 7.4.22 → 7.5.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/build/JsonConfig.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigAccordion.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigAlive.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigAutocomplete.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigAutocompleteSendTo.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigCRON.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigCertCollection.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigCertificateSelect.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigCertificates.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigCheckLicense.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigCheckbox.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigChip.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigColor.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigCoordinates.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigCustom.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigCustom.js +1 -16
- package/build/JsonConfigComponent/ConfigCustom.js.map +1 -1
- package/build/JsonConfigComponent/ConfigDatePicker.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigDeviceManager.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigFile.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigFileSelector.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigFunc.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigGeneric.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigIP.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigImageSendTo.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigImageUpload.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigInstanceSelect.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigInterface.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigJsonEditor.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigLanguage.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigLicense.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigNumber.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigObjectId.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigPanel.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigPanel.js +1 -1
- package/build/JsonConfigComponent/ConfigPanel.js.map +1 -1
- package/build/JsonConfigComponent/ConfigPassword.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigPattern.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigPort.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigQrCode.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigRoom.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigSelect.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigSelectSendTo.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigSendto.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigSetState.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigSlider.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigState.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigStaticDivider.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigStaticHeader.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigStaticImage.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigStaticInfo.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigStaticText.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigTable.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigTable.js +5 -2
- package/build/JsonConfigComponent/ConfigTable.js.map +1 -1
- package/build/JsonConfigComponent/ConfigTabs.d.ts +2 -1
- package/build/JsonConfigComponent/ConfigTabs.js +26 -13
- package/build/JsonConfigComponent/ConfigTabs.js.map +1 -1
- package/build/JsonConfigComponent/ConfigText.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigTextSendTo.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigTimePicker.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigTopic.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigUUID.d.ts +1 -1
- package/build/JsonConfigComponent/ConfigUser.d.ts +1 -1
- package/build/JsonConfigComponent/index.d.ts +1 -1
- package/package.json +3 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { ConfigItemSendTo } from '
|
|
2
|
+
import type { ConfigItemSendTo } from '../types';
|
|
3
3
|
import ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';
|
|
4
4
|
interface ConfigSendToProps extends ConfigGenericProps {
|
|
5
5
|
schema: ConfigItemSendTo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { ConfigItemSetState } from '
|
|
2
|
+
import type { ConfigItemSetState } from '../types';
|
|
3
3
|
import ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';
|
|
4
4
|
interface ConfigInstanceSelectProps extends ConfigGenericProps {
|
|
5
5
|
schema: ConfigItemSetState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { ConfigItemSlider } from '
|
|
2
|
+
import type { ConfigItemSlider } from '../types';
|
|
3
3
|
import ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';
|
|
4
4
|
interface ConfigSliderProps extends ConfigGenericProps {
|
|
5
5
|
schema: ConfigItemSlider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { ConfigItemState } from '
|
|
2
|
+
import type { ConfigItemState } from '../types';
|
|
3
3
|
import ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';
|
|
4
4
|
interface ConfigStateProps extends ConfigGenericProps {
|
|
5
5
|
schema: ConfigItemState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { ConfigItemStaticDivider } from '
|
|
2
|
+
import type { ConfigItemStaticDivider } from '../types';
|
|
3
3
|
import ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';
|
|
4
4
|
interface ConfigInstanceSelectProps extends ConfigGenericProps {
|
|
5
5
|
schema: ConfigItemStaticDivider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { ConfigItemStaticHeader } from '
|
|
2
|
+
import type { ConfigItemStaticHeader } from '../types';
|
|
3
3
|
import ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';
|
|
4
4
|
interface ConfigInstanceSelectProps extends ConfigGenericProps {
|
|
5
5
|
schema: ConfigItemStaticHeader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { ConfigItemStaticImage } from '
|
|
2
|
+
import type { ConfigItemStaticImage } from '../types';
|
|
3
3
|
import ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';
|
|
4
4
|
interface ConfigInstanceSelectProps extends ConfigGenericProps {
|
|
5
5
|
schema: ConfigItemStaticImage;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { ConfigItemStaticInfo } from '
|
|
2
|
+
import type { ConfigItemStaticInfo } from '../types';
|
|
3
3
|
import ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';
|
|
4
4
|
interface ConfigStaticInfoProps extends ConfigGenericProps {
|
|
5
5
|
schema: ConfigItemStaticInfo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { ConfigItemStaticText } from '
|
|
2
|
+
import type { ConfigItemStaticText } from '../types';
|
|
3
3
|
import ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';
|
|
4
4
|
interface ConfigStaticTextProps extends ConfigGenericProps {
|
|
5
5
|
schema: ConfigItemStaticText;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type JSX } from 'react';
|
|
2
|
-
import type { ConfigItemTableIndexed, ConfigItemTable } from '
|
|
2
|
+
import type { ConfigItemTableIndexed, ConfigItemTable } from '../types';
|
|
3
3
|
import ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';
|
|
4
4
|
interface ConfigTableProps extends ConfigGenericProps {
|
|
5
5
|
schema: ConfigItemTable;
|
|
@@ -259,7 +259,7 @@ class ConfigTable extends ConfigGeneric {
|
|
|
259
259
|
}
|
|
260
260
|
itemTable(attrItem, data, idx) {
|
|
261
261
|
const { schema } = this.props;
|
|
262
|
-
const schemaForAttribute = schema.items
|
|
262
|
+
const schemaForAttribute = schema.items?.find((el) => el.attr === attrItem);
|
|
263
263
|
if (!schemaForAttribute) {
|
|
264
264
|
return null;
|
|
265
265
|
}
|
|
@@ -330,7 +330,10 @@ class ConfigTable extends ConfigGeneric {
|
|
|
330
330
|
const isAsc = orderBy === property && order === 'asc';
|
|
331
331
|
const newOrder = orderCheck ? order : isAsc ? 'desc' : 'asc';
|
|
332
332
|
const newValue = this.stableSort(newOrder, property);
|
|
333
|
-
|
|
333
|
+
// update only if value is really changed
|
|
334
|
+
if (JSON.stringify(newValue) !== JSON.stringify(this.state.value)) {
|
|
335
|
+
this.setState({ value: newValue, order: newOrder, orderBy: property, iteration: this.state.iteration + 10000 }, () => this.applyFilter(false, newValue));
|
|
336
|
+
}
|
|
334
337
|
//}
|
|
335
338
|
};
|
|
336
339
|
stableSort = (order, orderBy) => {
|