@remoteoss/json-schema-form 0.5.0-dev.20230717090149 → 0.5.0-dev.20230717103306

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/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
3
  Copyright (c) 2023 Remote Technology, Inc.
4
- NPM Package: @remoteoss/json-schema-form@0.5.0-dev.20230717090149
5
- Generated: Mon, 17 Jul 2023 09:02:11 GMT
4
+ NPM Package: @remoteoss/json-schema-form@0.5.0-dev.20230717103306
5
+ Generated: Mon, 17 Jul 2023 10:33:17 GMT
6
6
 
7
7
  MIT License
8
8
 
@@ -393,10 +393,16 @@ var compareDates = (d1, d2) => {
393
393
  }
394
394
  };
395
395
  var validateMinDate = (value, minDate) => {
396
+ if (!value) {
397
+ return true;
398
+ }
396
399
  const compare = compareDates(value, minDate);
397
400
  return compare === "GREATER" || compare === "EQUAL" ? true : false;
398
401
  };
399
402
  var validateMaxDate = (value, minDate) => {
403
+ if (!value) {
404
+ return true;
405
+ }
400
406
  const compare = compareDates(value, minDate);
401
407
  return compare === "LESSER" || compare === "EQUAL" ? true : false;
402
408
  };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
3
  Copyright (c) 2023 Remote Technology, Inc.
4
- NPM Package: @remoteoss/json-schema-form@0.5.0-dev.20230717090149
5
- Generated: Mon, 17 Jul 2023 09:02:11 GMT
4
+ NPM Package: @remoteoss/json-schema-form@0.5.0-dev.20230717103306
5
+ Generated: Mon, 17 Jul 2023 10:33:17 GMT
6
6
 
7
7
  MIT License
8
8
 
@@ -357,10 +357,16 @@ var compareDates = (d1, d2) => {
357
357
  }
358
358
  };
359
359
  var validateMinDate = (value, minDate) => {
360
+ if (!value) {
361
+ return true;
362
+ }
360
363
  const compare = compareDates(value, minDate);
361
364
  return compare === "GREATER" || compare === "EQUAL" ? true : false;
362
365
  };
363
366
  var validateMaxDate = (value, minDate) => {
367
+ if (!value) {
368
+ return true;
369
+ }
364
370
  const compare = compareDates(value, minDate);
365
371
  return compare === "LESSER" || compare === "EQUAL" ? true : false;
366
372
  };
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
3
  Copyright (c) 2023 Remote Technology, Inc.
4
- NPM Package: @remoteoss/json-schema-form@0.5.0-dev.20230717090149
5
- Generated: Mon, 17 Jul 2023 09:02:11 GMT
4
+ NPM Package: @remoteoss/json-schema-form@0.5.0-dev.20230717103306
5
+ Generated: Mon, 17 Jul 2023 10:33:17 GMT
6
6
 
7
7
  MIT License
8
8
 
@@ -11333,10 +11333,16 @@ var compareDates = (d1, d2) => {
11333
11333
  }
11334
11334
  };
11335
11335
  var validateMinDate = (value, minDate) => {
11336
+ if (!value) {
11337
+ return true;
11338
+ }
11336
11339
  const compare = compareDates(value, minDate);
11337
11340
  return compare === "GREATER" || compare === "EQUAL" ? true : false;
11338
11341
  };
11339
11342
  var validateMaxDate = (value, minDate) => {
11343
+ if (!value) {
11344
+ return true;
11345
+ }
11340
11346
  const compare = compareDates(value, minDate);
11341
11347
  return compare === "LESSER" || compare === "EQUAL" ? true : false;
11342
11348
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remoteoss/json-schema-form",
3
- "version": "0.5.0-dev.20230717090149",
3
+ "version": "0.5.0-dev.20230717103306",
4
4
  "description": "Headless UI form powered by JSON Schemas",
5
5
  "author": "Remote.com <engineering@remote.com> (https://remote.com/)",
6
6
  "license": "MIT",