@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.
Files changed (66) hide show
  1. package/build/JsonConfig.d.ts +1 -1
  2. package/build/JsonConfigComponent/ConfigAccordion.d.ts +1 -1
  3. package/build/JsonConfigComponent/ConfigAlive.d.ts +1 -1
  4. package/build/JsonConfigComponent/ConfigAutocomplete.d.ts +1 -1
  5. package/build/JsonConfigComponent/ConfigAutocompleteSendTo.d.ts +1 -1
  6. package/build/JsonConfigComponent/ConfigCRON.d.ts +1 -1
  7. package/build/JsonConfigComponent/ConfigCertCollection.d.ts +1 -1
  8. package/build/JsonConfigComponent/ConfigCertificateSelect.d.ts +1 -1
  9. package/build/JsonConfigComponent/ConfigCertificates.d.ts +1 -1
  10. package/build/JsonConfigComponent/ConfigCheckLicense.d.ts +1 -1
  11. package/build/JsonConfigComponent/ConfigCheckbox.d.ts +1 -1
  12. package/build/JsonConfigComponent/ConfigChip.d.ts +1 -1
  13. package/build/JsonConfigComponent/ConfigColor.d.ts +1 -1
  14. package/build/JsonConfigComponent/ConfigCoordinates.d.ts +1 -1
  15. package/build/JsonConfigComponent/ConfigCustom.d.ts +1 -1
  16. package/build/JsonConfigComponent/ConfigCustom.js +1 -16
  17. package/build/JsonConfigComponent/ConfigCustom.js.map +1 -1
  18. package/build/JsonConfigComponent/ConfigDatePicker.d.ts +1 -1
  19. package/build/JsonConfigComponent/ConfigDeviceManager.d.ts +1 -1
  20. package/build/JsonConfigComponent/ConfigFile.d.ts +1 -1
  21. package/build/JsonConfigComponent/ConfigFileSelector.d.ts +1 -1
  22. package/build/JsonConfigComponent/ConfigFunc.d.ts +1 -1
  23. package/build/JsonConfigComponent/ConfigGeneric.d.ts +1 -1
  24. package/build/JsonConfigComponent/ConfigIP.d.ts +1 -1
  25. package/build/JsonConfigComponent/ConfigImageSendTo.d.ts +1 -1
  26. package/build/JsonConfigComponent/ConfigImageUpload.d.ts +1 -1
  27. package/build/JsonConfigComponent/ConfigInstanceSelect.d.ts +1 -1
  28. package/build/JsonConfigComponent/ConfigInterface.d.ts +1 -1
  29. package/build/JsonConfigComponent/ConfigJsonEditor.d.ts +1 -1
  30. package/build/JsonConfigComponent/ConfigLanguage.d.ts +1 -1
  31. package/build/JsonConfigComponent/ConfigLicense.d.ts +1 -1
  32. package/build/JsonConfigComponent/ConfigNumber.d.ts +1 -1
  33. package/build/JsonConfigComponent/ConfigObjectId.d.ts +1 -1
  34. package/build/JsonConfigComponent/ConfigPanel.d.ts +1 -1
  35. package/build/JsonConfigComponent/ConfigPanel.js +1 -1
  36. package/build/JsonConfigComponent/ConfigPanel.js.map +1 -1
  37. package/build/JsonConfigComponent/ConfigPassword.d.ts +1 -1
  38. package/build/JsonConfigComponent/ConfigPattern.d.ts +1 -1
  39. package/build/JsonConfigComponent/ConfigPort.d.ts +1 -1
  40. package/build/JsonConfigComponent/ConfigQrCode.d.ts +1 -1
  41. package/build/JsonConfigComponent/ConfigRoom.d.ts +1 -1
  42. package/build/JsonConfigComponent/ConfigSelect.d.ts +1 -1
  43. package/build/JsonConfigComponent/ConfigSelectSendTo.d.ts +1 -1
  44. package/build/JsonConfigComponent/ConfigSendto.d.ts +1 -1
  45. package/build/JsonConfigComponent/ConfigSetState.d.ts +1 -1
  46. package/build/JsonConfigComponent/ConfigSlider.d.ts +1 -1
  47. package/build/JsonConfigComponent/ConfigState.d.ts +1 -1
  48. package/build/JsonConfigComponent/ConfigStaticDivider.d.ts +1 -1
  49. package/build/JsonConfigComponent/ConfigStaticHeader.d.ts +1 -1
  50. package/build/JsonConfigComponent/ConfigStaticImage.d.ts +1 -1
  51. package/build/JsonConfigComponent/ConfigStaticInfo.d.ts +1 -1
  52. package/build/JsonConfigComponent/ConfigStaticText.d.ts +1 -1
  53. package/build/JsonConfigComponent/ConfigTable.d.ts +1 -1
  54. package/build/JsonConfigComponent/ConfigTable.js +5 -2
  55. package/build/JsonConfigComponent/ConfigTable.js.map +1 -1
  56. package/build/JsonConfigComponent/ConfigTabs.d.ts +2 -1
  57. package/build/JsonConfigComponent/ConfigTabs.js +26 -13
  58. package/build/JsonConfigComponent/ConfigTabs.js.map +1 -1
  59. package/build/JsonConfigComponent/ConfigText.d.ts +1 -1
  60. package/build/JsonConfigComponent/ConfigTextSendTo.d.ts +1 -1
  61. package/build/JsonConfigComponent/ConfigTimePicker.d.ts +1 -1
  62. package/build/JsonConfigComponent/ConfigTopic.d.ts +1 -1
  63. package/build/JsonConfigComponent/ConfigUUID.d.ts +1 -1
  64. package/build/JsonConfigComponent/ConfigUser.d.ts +1 -1
  65. package/build/JsonConfigComponent/index.d.ts +1 -1
  66. package/package.json +3 -4
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
- import type { ConfigItemSendTo } from '#JC/types';
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 '#JC/types';
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 '#JC/types';
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 '#JC/types';
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 '#JC/types';
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 '#JC/types';
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 '#JC/types';
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 '#JC/types';
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 '#JC/types';
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 '#JC/types';
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 && schema.items.find((el) => el.attr === attrItem);
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
- this.setState({ value: newValue, order: newOrder, orderBy: property, iteration: this.state.iteration + 10000 }, () => this.applyFilter(false, newValue));
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) => {