@astroapps/forms-core 2.0.1 → 2.1.0

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.
@@ -194,6 +194,7 @@ export interface DisplayOnlyRenderOptions extends RenderOptions {
194
194
  type: DataRenderType.DisplayOnly;
195
195
  emptyText?: string | null;
196
196
  sampleText?: string | null;
197
+ noSelection?: boolean | null;
197
198
  }
198
199
  export interface IconMapping {
199
200
  value: string;
package/lib/index.cjs CHANGED
@@ -1,4 +1,5 @@
1
1
  var controls = require('@astroapps/controls');
2
+ var date = require('@internationalized/date');
2
3
  var jsonata = require('jsonata');
3
4
  var uuid = require('uuid');
4
5
 
@@ -1173,7 +1174,11 @@ var DefaultSchemaInterface = /*#__PURE__*/function () {
1173
1174
  }
1174
1175
  if (parseDateTime === void 0) {
1175
1176
  parseDateTime = function parseDateTime(s) {
1176
- return Date.parse(s);
1177
+ try {
1178
+ return date.parseDateTime(s).toDate("UTC").getTime();
1179
+ } catch (e) {
1180
+ return Number.NaN;
1181
+ }
1177
1182
  };
1178
1183
  }
1179
1184
  this.boolStrings = void 0;