react-cron-generator 2.0.0 → 2.0.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/cron-tab/custom.d.ts +8 -0
- package/build/cron-tab/daily.d.ts +8 -0
- package/build/cron-tab/hourly.d.ts +8 -0
- package/build/cron-tab/minutes.d.ts +8 -0
- package/build/cron-tab/monthly.d.ts +8 -0
- package/build/cron-tab/weekly.d.ts +8 -0
- package/build/cron.d.ts +16 -0
- package/build/hour-select/index.d.ts +8 -0
- package/build/index.d.ts +4 -0
- package/{dist → build}/index.js +32 -231
- package/build/index.js.map +1 -0
- package/build/meta/index.d.ts +26 -0
- package/build/minutes-select/index.d.ts +8 -0
- package/package.json +4 -4
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Custom from '../cron-tab/custom';
|
|
2
|
+
export declare type HeaderKeyType = "MINUTES" | "HOURLY" | "DAILY" | "WEEKLY" | "MONTHLY" | "CUSTOM";
|
|
3
|
+
export declare type HeaderValType = "Minutes" | "Hourly" | "Daily" | "Weekly" | "Monthly" | "Custom";
|
|
4
|
+
interface HeadersKeyInterface {
|
|
5
|
+
MINUTES: 'MINUTES';
|
|
6
|
+
HOURLY: 'HOURLY';
|
|
7
|
+
DAILY: 'DAILY';
|
|
8
|
+
WEEKLY: 'WEEKLY';
|
|
9
|
+
MONTHLY: 'MONTHLY';
|
|
10
|
+
CUSTOM: 'CUSTOM';
|
|
11
|
+
}
|
|
12
|
+
export declare const HEADER: HeadersKeyInterface;
|
|
13
|
+
interface MetadataInterface {
|
|
14
|
+
component: typeof Custom;
|
|
15
|
+
name: HeaderValType;
|
|
16
|
+
initialCron: string[];
|
|
17
|
+
}
|
|
18
|
+
export declare const metadata: MetadataInterface[];
|
|
19
|
+
/**
|
|
20
|
+
* Validate and load headers
|
|
21
|
+
* @param {*} options
|
|
22
|
+
*/
|
|
23
|
+
export declare const loadHeaders: (options?: {
|
|
24
|
+
headers: HeaderKeyType[];
|
|
25
|
+
}) => HeaderValType[];
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChangeEvent, FunctionComponent } from 'react';
|
|
2
|
+
interface MinutesSelectProp {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
onChange(event: ChangeEvent<HTMLSelectElement>): void;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
declare const MinutesSelect: FunctionComponent<MinutesSelectProp>;
|
|
8
|
+
export default MinutesSelect;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-cron-generator",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Simple react component to generate cron expression",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React cron generator",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"cronstrue": "^2.12.0"
|
|
20
20
|
},
|
|
21
|
-
"main": "
|
|
22
|
-
"module": "
|
|
21
|
+
"main": "build/index.js",
|
|
22
|
+
"module": "build/index.js",
|
|
23
23
|
"files": [
|
|
24
|
-
"
|
|
24
|
+
"build",
|
|
25
25
|
"README.md"
|
|
26
26
|
],
|
|
27
27
|
"repository": {
|