@iobroker/adapter-react-v5 4.11.3 → 4.11.4

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 (38) hide show
  1. package/Components/IconPicker.d.ts +9 -3
  2. package/Components/IconSelector.d.ts +1 -1
  3. package/Components/SimpleCron/cron2text.d.ts +4 -6
  4. package/Components/SimpleCron/cron2text.js +463 -481
  5. package/Components/SimpleCron/cronText.d.ts +1 -1
  6. package/Components/SimpleCron/cronText.js +46 -48
  7. package/Components/SimpleCron/index.d.ts +38 -7
  8. package/Components/SimpleCron/index.js +579 -729
  9. package/Components/SimpleCron/jquery.cron.locale.d.ts +28 -1
  10. package/Components/SimpleCron/jquery.cron.locale.js +530 -336
  11. package/Dialogs/ComplexCron.d.ts +13 -12
  12. package/Dialogs/ComplexCron.js +59 -130
  13. package/Dialogs/Cron.d.ts +17 -14
  14. package/Dialogs/Cron.js +92 -183
  15. package/Dialogs/SimpleCron.d.ts +11 -11
  16. package/Dialogs/SimpleCron.js +49 -119
  17. package/GenericApp.d.ts +7 -2
  18. package/GenericApp.js +3 -25
  19. package/README.md +3 -0
  20. package/i18n/de.json +2 -1
  21. package/i18n/en.json +2 -1
  22. package/i18n/es.json +2 -1
  23. package/i18n/fr.json +2 -1
  24. package/i18n/it.json +2 -1
  25. package/i18n/nl.json +2 -1
  26. package/i18n/pl.json +2 -1
  27. package/i18n/pt.json +2 -1
  28. package/i18n/ru.json +2 -1
  29. package/i18n/uk.json +2 -1
  30. package/i18n/zh-cn.json +2 -1
  31. package/package.json +1 -1
  32. package/Components/SimpleCron/cron2text.js.map +0 -1
  33. package/Components/SimpleCron/cronText.js.map +0 -1
  34. package/Components/SimpleCron/index.js.map +0 -1
  35. package/Components/SimpleCron/jquery.cron.locale.js.map +0 -1
  36. package/Dialogs/ComplexCron.js.map +0 -1
  37. package/Dialogs/Cron.js.map +0 -1
  38. package/Dialogs/SimpleCron.js.map +0 -1
@@ -12,9 +12,15 @@ interface IconPickerProps {
12
12
  disabled?: boolean;
13
13
  /** The icon change callback. */
14
14
  onChange: (icon: string) => void;
15
- icons: any[];
16
- onlyRooms: boolean;
17
- onlyDevices: boolean;
15
+ icons?: {
16
+ icon?: string;
17
+ src?: string;
18
+ href?: string;
19
+ name?: ioBroker.StringOrTranslated;
20
+ _id?: string;
21
+ }[];
22
+ onlyRooms?: boolean;
23
+ onlyDevices?: boolean;
18
24
  }
19
25
  declare const IconPicker: (props: IconPickerProps) => React.JSX.Element;
20
26
  export default IconPicker;
@@ -1,7 +1,7 @@
1
1
  import React, { Component } from 'react';
2
2
  import { Translator } from '../types';
3
3
  interface IconSelectorProps {
4
- icons: {
4
+ icons?: {
5
5
  icon?: string;
6
6
  src?: string;
7
7
  href?: string;
@@ -1,8 +1,6 @@
1
- export default cronToText;
1
+ import { CRON_LOCALE } from './jquery.cron.locale';
2
2
  /**
3
- * Given a cronspec, return the human-readable string.
4
- * @param {string} cronspec
5
- * @param withSeconds
6
- * @param {Object=} locale
3
+ * Given a cronSpec, return the human-readable string.
7
4
  */
8
- declare function cronToText(cronspec: string, withSeconds: any, locale?: any | undefined): string;
5
+ declare function cronToText(cronSpec: string, withSeconds: boolean, locale: CRON_LOCALE): string;
6
+ export default cronToText;