react-cron-generator 2.0.9 → 2.0.11

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/README.md CHANGED
@@ -6,6 +6,10 @@ Simple react component to generate cron expression
6
6
 
7
7
  Package helps to build linux scheduler cron expression.
8
8
 
9
+ [![npm version](https://badge.fury.io/js/react-cron-generator.svg)](https://badge.fury.io/js/react-cron-generator) ![Downloads](https://img.shields.io/npm/dm/react-cron-generator.svg)
10
+ <a href="https://github.com/sojinantony01/react-spread-sheet/blob/main/LICENSE">
11
+ <img src="https://img.shields.io/npm/l/react-cron-generator.svg" alt="license">
12
+ </a>
9
13
 
10
14
  ```
11
15
  data = '* * * * * * *'
@@ -64,6 +68,7 @@ export default App;
64
68
  | translateFn | translate function callback | method | No
65
69
  | locale | locale for cronstrue | en | No
66
70
  | options | Options for Cron component, *Must pass a valid cron value for available headers | All available headers | No
71
+ | disabled | Disable cron selector | false | No
67
72
 
68
73
 
69
74
  **translateFn**
@@ -3,6 +3,7 @@ interface CustomCronProp {
3
3
  onChange(e: string[]): void;
4
4
  value: string[];
5
5
  translate(e: string): string;
6
+ disabled?: boolean;
6
7
  }
7
8
  declare const CustomCron: React.FunctionComponent<CustomCronProp>;
8
9
  export default CustomCron;
@@ -3,6 +3,7 @@ interface DailyCronProp {
3
3
  onChange(e?: string[]): void;
4
4
  value: string[];
5
5
  translate(e: string): string;
6
+ disabled?: boolean;
6
7
  }
7
8
  declare const DailyCron: FunctionComponent<DailyCronProp>;
8
9
  export default DailyCron;
@@ -3,6 +3,7 @@ interface HourlyCronProp {
3
3
  onChange(e?: string[]): void;
4
4
  value: string[];
5
5
  translate(e: string): string;
6
+ disabled?: boolean;
6
7
  }
7
8
  declare const HourlyCron: FunctionComponent<HourlyCronProp>;
8
9
  export default HourlyCron;
@@ -3,6 +3,7 @@ interface MinutesCronProp {
3
3
  onChange(e: string[]): void;
4
4
  value: string[];
5
5
  translate(e: string): string;
6
+ disabled?: boolean;
6
7
  }
7
8
  declare const MinutesCron: FunctionComponent<MinutesCronProp>;
8
9
  export default MinutesCron;
@@ -3,6 +3,7 @@ interface MonthlyCronProp {
3
3
  onChange(e?: string[]): void;
4
4
  value: string[];
5
5
  translate(e: string): string;
6
+ disabled?: boolean;
6
7
  }
7
8
  declare const MonthlyCron: FunctionComponent<MonthlyCronProp>;
8
9
  export default MonthlyCron;
@@ -3,6 +3,7 @@ interface WeeklyCronProp {
3
3
  onChange(e?: string[]): void;
4
4
  value: string[];
5
5
  translate(e: string): string;
6
+ disabled?: boolean;
6
7
  }
7
8
  declare const WeeklyCron: FunctionComponent<WeeklyCronProp>;
8
9
  export default WeeklyCron;
package/build/cron.d.ts CHANGED
@@ -11,6 +11,7 @@ interface CronProp {
11
11
  options?: {
12
12
  headers: HeaderKeyType[];
13
13
  };
14
+ disabled?: boolean;
14
15
  }
15
16
  declare const Cron: React.FunctionComponent<CronProp>;
16
17
  export default Cron;