gd-sprest-bs 9.5.0 → 9.5.3

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.
@@ -25,7 +25,7 @@ var DateTime = function (props) {
25
25
  options.enableTime = props.showTime;
26
26
  options.dateFormat = options.dateFormat || ("m-d-Y" + (props.showTime ? " H:i K" : ""));
27
27
  // See if the value is a string
28
- if (typeof (props.value) === "string") {
28
+ if (props.value && typeof (props.value) === "string") {
29
29
  options.defaultDate = new Date(props.value);
30
30
  }
31
31
  else {
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  Object.defineProperty(exports, "__esModule", { value: true });
3
14
  exports.ListForm = void 0;
4
15
  var gd_sprest_1 = require("gd-sprest");
@@ -773,7 +784,8 @@ exports.ListForm.renderEditForm = function (props) {
773
784
  // Return the flag
774
785
  return isValid;
775
786
  },
776
- save: function () {
787
+ save: function (customValues) {
788
+ if (customValues === void 0) { customValues = {}; }
777
789
  var onSaving = function (values) {
778
790
  return new Promise(function (resolve) {
779
791
  // See if a save event exists
@@ -794,7 +806,7 @@ exports.ListForm.renderEditForm = function (props) {
794
806
  // Return a promise
795
807
  return new Promise(function (resolve, reject) {
796
808
  // Call the saving event
797
- onSaving(getValues()).then(function (values) {
809
+ onSaving(__assign(__assign({}, getValues()), customValues)).then(function (values) {
798
810
  // Update the item
799
811
  exports.ListForm.saveItem(props.info, values).then(function (info) {
800
812
  // Remove the attachments