@iobroker/adapter-react-v5 4.13.17 → 4.13.20

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.
@@ -365,7 +365,7 @@ class ComplexCron extends react_1.Component {
365
365
  this.setState({ hours: value, modes }, () => this.recalcCron());
366
366
  }
367
367
  else if (attr === 'dates') {
368
- this.setState({ hours: value, modes }, () => this.recalcCron());
368
+ this.setState({ dates: value, modes }, () => this.recalcCron());
369
369
  }
370
370
  else if (attr === 'months') {
371
371
  this.setState({ months: value, modes }, () => this.recalcCron());
@@ -388,7 +388,7 @@ class ComplexCron extends react_1.Component {
388
388
  this.setState({ hours: value }, () => this.recalcCron());
389
389
  }
390
390
  else if (attr === 'dates') {
391
- this.setState({ hours: value }, () => this.recalcCron());
391
+ this.setState({ dates: value }, () => this.recalcCron());
392
392
  }
393
393
  else if (attr === 'months') {
394
394
  this.setState({ months: value }, () => this.recalcCron());
package/GenericApp.d.ts CHANGED
@@ -35,7 +35,7 @@ declare class GenericApp<TProps extends GenericAppProps = GenericAppProps, TStat
35
35
  private _secret;
36
36
  protected _systemConfig: ioBroker.SystemConfigCommon | undefined;
37
37
  private savedNative;
38
- private common;
38
+ protected common: ioBroker.InstanceCommon | null;
39
39
  private sentryStarted;
40
40
  private sentryInited;
41
41
  private resizeTimer;
@@ -59,10 +59,7 @@ declare class GenericApp<TProps extends GenericAppProps = GenericAppProps, TStat
59
59
  onReceiveMessage: (message: {
60
60
  data: string;
61
61
  } | null) => void;
62
- /**
63
- * @private
64
- */
65
- onResize: () => void;
62
+ private onResize;
66
63
  /**
67
64
  * Gets the width depending on the window inner width.
68
65
  * @returns {import('./types').Width}
@@ -155,7 +152,6 @@ declare class GenericApp<TProps extends GenericAppProps = GenericAppProps, TStat
155
152
  renderToast(): React.JSX.Element;
156
153
  /**
157
154
  * Closes the dialog.
158
- * @private
159
155
  */
160
156
  static onClose(): void;
161
157
  /**
@@ -180,17 +176,14 @@ declare class GenericApp<TProps extends GenericAppProps = GenericAppProps, TStat
180
176
  * Renders the save and close buttons.
181
177
  */
182
178
  renderSaveCloseButtons(): React.JSX.Element | null;
183
- /**
184
- * @private
185
- */
186
- _updateNativeValue(obj: Record<string, any>, attrs: string | string[], value: any): boolean;
179
+ private _updateNativeValue;
187
180
  /**
188
181
  * Update the native value
189
182
  * @param attr The attribute name with dots as delimiter.
190
183
  * @param value The new value.
191
184
  * @param cb Callback which will be called upon completion.
192
185
  */
193
- updateNativeValue(attr: string, value: any, cb: () => void): void;
186
+ updateNativeValue(attr: string, value: any, cb?: () => void): void;
194
187
  /**
195
188
  * Set the error text to be shown.
196
189
  */
package/GenericApp.js CHANGED
@@ -164,9 +164,6 @@ class GenericApp extends Router_1.default {
164
164
  }
165
165
  }
166
166
  };
167
- /**
168
- * @private
169
- */
170
167
  this.onResize = () => {
171
168
  this.resizeTimer && clearTimeout(this.resizeTimer);
172
169
  this.resizeTimer = setTimeout(() => {
@@ -647,7 +644,6 @@ class GenericApp extends Router_1.default {
647
644
  }
648
645
  /**
649
646
  * Closes the dialog.
650
- * @private
651
647
  */
652
648
  static onClose() {
653
649
  if (typeof window.parent !== 'undefined' && window.parent) {
@@ -718,9 +714,6 @@ class GenericApp extends Router_1.default {
718
714
  } }) : null,
719
715
  this.state.confirmClose ? react_1.default.createElement(Confirm_1.default, { title: i18n_1.default.t('ra_Please confirm'), text: i18n_1.default.t('ra_Some data are not stored. Discard?'), ok: i18n_1.default.t('ra_Discard'), cancel: i18n_1.default.t('ra_Cancel'), onClose: isYes => this.setState({ confirmClose: false }, () => isYes && GenericApp.onClose()) }) : null);
720
716
  }
721
- /**
722
- * @private
723
- */
724
717
  _updateNativeValue(obj, attrs, value) {
725
718
  if (typeof attrs !== 'object') {
726
719
  attrs = attrs.split('.');
package/README.md CHANGED
@@ -670,9 +670,10 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
670
670
  -->
671
671
 
672
672
  ## Changelog
673
- ### 4.13.17 (2024-05-21)
673
+ ### 4.13.20 (2024-05-22)
674
674
  * (bluefox) Better types added
675
675
  * (bluefox) updated theme definitions
676
+ * (bluefox) corrected dates in cron dialog
676
677
 
677
678
  ### 4.13.14 (2024-05-19)
678
679
  * (bluefox) Updated packages
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "4.13.17",
3
+ "version": "4.13.20",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "Denis Haev (bluefox)",