@remoteoss/remote-json-schema-form-kit 0.0.10

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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Adds the specified number of days to the given date.
3
+ * @param a - The date to add days to in "YYYY-MM-DD" format.
4
+ * @param b - The number of days to add.
5
+ * @returns The new date in "YYYY-MM-DD" format.
6
+ */
7
+ export declare function dateAddDays(a: string, b: number): string;
8
+ //# sourceMappingURL=dateAddDays.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateAddDays.d.ts","sourceRoot":"","sources":["../../src/json-logic-operators/dateAddDays.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAExD"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Adds the specified number of months to the given date.
3
+ * @param a - The date to add months to in "YYYY-MM-DD" format.
4
+ * @param b - The number of months to add.
5
+ * @returns The new date in "YYYY-MM-DD" format.
6
+ */
7
+ export declare function dateAddMonths(a: string, b: number): string;
8
+ //# sourceMappingURL=dateAddMonths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateAddMonths.d.ts","sourceRoot":"","sources":["../../src/json-logic-operators/dateAddMonths.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE1D"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns the difference in days between two dates in "YYYY-MM-DD" format.
3
+ * @param a - The first date in "YYYY-MM-DD" format.
4
+ * @param b - The second date in "YYYY-MM-DD" format.
5
+ * @returns The difference in days between the two dates.
6
+ */
7
+ export declare function dateDifferenceInDays(a: string, b: string): number;
8
+ //# sourceMappingURL=dateDifferenceInDays.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateDifferenceInDays.d.ts","sourceRoot":"","sources":["../../src/json-logic-operators/dateDifferenceInDays.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjE"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns the difference in months between two dates in "YYYY-MM-DD" format.
3
+ * @param a - The first date in "YYYY-MM-DD" format.
4
+ * @param b - The second date in "YYYY-MM-DD" format.
5
+ * @returns The difference in months between the two dates.
6
+ */
7
+ export declare function dateDifferenceInMonths(a: string, b: string): number;
8
+ //# sourceMappingURL=dateDifferenceInMonths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateDifferenceInMonths.d.ts","sourceRoot":"","sources":["../../src/json-logic-operators/dateDifferenceInMonths.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEnE"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns the difference in weeks between two dates in "YYYY-MM-DD" format.
3
+ * @param a - The first date in "YYYY-MM-DD" format.
4
+ * @param b - The second date in "YYYY-MM-DD" format.
5
+ * @returns The difference in weeks between the two dates.
6
+ */
7
+ export declare function dateDifferenceInWeeks(a: string, b: string): number;
8
+ //# sourceMappingURL=dateDifferenceInWeeks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateDifferenceInWeeks.d.ts","sourceRoot":"","sources":["../../src/json-logic-operators/dateDifferenceInWeeks.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAElE"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Formats the given date to the specified format.
3
+ * @param date - The date to format in "YYYY-MM-DD" format.
4
+ * @param formatStr - The format string.
5
+ * @returns The formatted date.
6
+ */
7
+ export declare function dateFormat(date: string, formatStr: string): string;
8
+ //# sourceMappingURL=dateFormat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateFormat.d.ts","sourceRoot":"","sources":["../../src/json-logic-operators/dateFormat.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAElE"}
@@ -0,0 +1,15 @@
1
+ import { dateAddDays } from './dateAddDays';
2
+ import { dateAddMonths } from './dateAddMonths';
3
+ import { dateDifferenceInDays } from './dateDifferenceInDays';
4
+ import { dateDifferenceInMonths } from './dateDifferenceInMonths';
5
+ import { dateDifferenceInWeeks } from './dateDifferenceInWeeks';
6
+ import { dateFormat } from './dateFormat';
7
+ export declare const operators: {
8
+ date_add_days: typeof dateAddDays;
9
+ date_add_months: typeof dateAddMonths;
10
+ date_difference_in_days: typeof dateDifferenceInDays;
11
+ date_difference_in_months: typeof dateDifferenceInMonths;
12
+ date_format: typeof dateFormat;
13
+ date_difference_in_weeks: typeof dateDifferenceInWeeks;
14
+ };
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/json-logic-operators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,SAAS;;;;;;;CAOrB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@remoteoss/remote-json-schema-form-kit",
3
+ "version": "0.0.10",
4
+ "description": "Remote's kit for json-schema-form",
5
+ "keywords": [
6
+ "JSON",
7
+ "form",
8
+ "json-schema",
9
+ "schema"
10
+ ],
11
+ "license": "MIT",
12
+ "author": "Remote.com <engineering@remote.com> (https://remote.com/)",
13
+ "main": "dist/index.mjs",
14
+ "types": "dist/index.d.ts",
15
+ "type": "module",
16
+ "files": [
17
+ "dist/",
18
+ "README.md",
19
+ "CHANGELOG.md"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public",
23
+ "registry": "https://registry.npmjs.org/"
24
+ },
25
+ "scripts": {
26
+ "build": "tsup && yarn build:types",
27
+ "build:types": "tsc -p tsconfig.build.json",
28
+ "dev": "NODE_ENV=development tsup --watch",
29
+ "test": "jest --colors --logHeapUsage --selectProjects test",
30
+ "test:file": "yarn test --runTestsByPath",
31
+ "lint": "jest --maxWorkers=4 --selectProjects eslint",
32
+ "format": "oxfmt",
33
+ "format:check": "oxfmt --check",
34
+ "types:check": "tsc --noEmit",
35
+ "check:pr-version:ci": "node scripts/pr-dev-version",
36
+ "prepack": "node -e \"let p=JSON.parse(require('fs').readFileSync('package.json','utf8'));p.main='dist/index.mjs';p.types='dist/index.d.ts';require('fs').writeFileSync('package.json',JSON.stringify(p,null,2)+'\\n')\"",
37
+ "postpack": "git checkout -- package.json"
38
+ },
39
+ "dependencies": {
40
+ "@remoteoss/json-schema-form": "^1.2.11",
41
+ "@remoteoss/json-schema-form-v0-deprecated": "npm:@remoteoss/json-schema-form@0.12.3-beta.0",
42
+ "date-fns": "^4.1.0"
43
+ },
44
+ "devDependencies": {
45
+ "@babel/core": "^7.28.5",
46
+ "@types/jest": "^29.5.14",
47
+ "babel-jest": "^29.6.1",
48
+ "jest-presets": "*",
49
+ "timezone-mock": "^1.4.2",
50
+ "tsup": "^8.3.5"
51
+ },
52
+ "engines": {
53
+ "node": ">=18.14.0"
54
+ },
55
+ "jest-runner-eslint": {
56
+ "cliOptions": {
57
+ "maxWarnings": 0
58
+ }
59
+ }
60
+ }