@formio/js 5.0.3-rc.4 → 5.0.3-rc.6

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.
@@ -12,7 +12,7 @@
12
12
 
13
13
  /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
14
14
 
15
- /*! formiojs v5.0.3-rc.4 | https://unpkg.com/formiojs@5.0.3-rc.4/LICENSE.txt */
15
+ /*! formiojs v5.0.3-rc.6 | https://unpkg.com/formiojs@5.0.3-rc.6/LICENSE.txt */
16
16
 
17
17
  /**
18
18
  * @license
@@ -20,7 +20,7 @@
20
20
 
21
21
  /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
22
22
 
23
- /*! formiojs v5.0.3-rc.4 | https://unpkg.com/formiojs@5.0.3-rc.4/LICENSE.txt */
23
+ /*! formiojs v5.0.3-rc.6 | https://unpkg.com/formiojs@5.0.3-rc.6/LICENSE.txt */
24
24
 
25
25
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
26
26
 
package/lib/cjs/Embed.js CHANGED
@@ -418,7 +418,7 @@ Formio.formioReady = new Promise((ready, reject) => {
418
418
  _a._formioReady = ready;
419
419
  _a._formioReadyReject = reject;
420
420
  });
421
- Formio.version = '5.0.3-rc.4';
421
+ Formio.version = '5.0.3-rc.6';
422
422
  // Create a report.
423
423
  Formio.Report = {
424
424
  create: (element, submission, options = {}) => __awaiter(void 0, void 0, void 0, function* () {
package/lib/cjs/Formio.js CHANGED
@@ -11,7 +11,7 @@ const CDN_1 = __importDefault(require("./CDN"));
11
11
  const providers_1 = __importDefault(require("./providers"));
12
12
  sdk_1.Formio.cdn = new CDN_1.default();
13
13
  sdk_1.Formio.Providers = providers_1.default;
14
- sdk_1.Formio.version = '5.0.3-rc.4';
14
+ sdk_1.Formio.version = '5.0.3-rc.6';
15
15
  CDN_1.default.defaultCDN = sdk_1.Formio.version.includes('rc') ? 'https://cdn.test-form.io' : 'https://cdn.form.io';
16
16
  const isNil = (val) => val === null || val === undefined;
17
17
  sdk_1.Formio.prototype.uploadFile = function (storage, file, fileName, dir, progressCallback, url, options, fileKey, groupPermissions, groupId, uploadStartCallback, abortCallback, multipartOptions) {
package/lib/cjs/Wizard.js CHANGED
@@ -724,10 +724,9 @@ class Wizard extends Webform_1.default {
724
724
  }
725
725
  }
726
726
  validateCurrentPage(flags = {}) {
727
- var _a, _b;
727
+ var _a, _b, _c;
728
728
  const components = (_a = this.currentPage) === null || _a === void 0 ? void 0 : _a.components.map((component) => component.component);
729
- // Accessing the parent ensures the right instance (whether it's the parent Wizard or a nested Wizard) performs its validation
730
- return (_b = this.currentPage) === null || _b === void 0 ? void 0 : _b.parent.validateComponents(components, this.currentPage.parent.data, flags);
729
+ return (_b = this.currentPage) === null || _b === void 0 ? void 0 : _b.validateComponents(components, (_c = this.currentPage) === null || _c === void 0 ? void 0 : _c.data, flags);
731
730
  }
732
731
  emitPrevPage() {
733
732
  this.emit('prevPage', { page: this.page, submission: this.submission });
@@ -1132,7 +1132,7 @@ class SelectComponent extends ListComponent_1.default {
1132
1132
  }
1133
1133
  // Choices will return undefined if nothing is selected. We really want '' to be empty.
1134
1134
  if (value === undefined || value === null) {
1135
- value = '';
1135
+ value = this.emptyValue;
1136
1136
  }
1137
1137
  return value;
1138
1138
  }
package/lib/mjs/Embed.js CHANGED
@@ -14,7 +14,7 @@ export class Formio {
14
14
  Formio._formioReady = ready;
15
15
  Formio._formioReadyReject = reject;
16
16
  });
17
- static version = '5.0.3-rc.4';
17
+ static version = '5.0.3-rc.6';
18
18
  static setLicense(license, norecurse = false) {
19
19
  Formio.license = license;
20
20
  if (!norecurse && Formio.FormioClass) {
package/lib/mjs/Formio.js CHANGED
@@ -4,7 +4,7 @@ import CDN from './CDN';
4
4
  import Providers from './providers';
5
5
  FormioCore.cdn = new CDN();
6
6
  FormioCore.Providers = Providers;
7
- FormioCore.version = '5.0.3-rc.4';
7
+ FormioCore.version = '5.0.3-rc.6';
8
8
  CDN.defaultCDN = FormioCore.version.includes('rc') ? 'https://cdn.test-form.io' : 'https://cdn.form.io';
9
9
  const isNil = (val) => val === null || val === undefined;
10
10
  FormioCore.prototype.uploadFile = function (storage, file, fileName, dir, progressCallback, url, options, fileKey, groupPermissions, groupId, uploadStartCallback, abortCallback, multipartOptions) {
package/lib/mjs/Wizard.js CHANGED
@@ -715,8 +715,7 @@ export default class Wizard extends Webform {
715
715
  }
716
716
  validateCurrentPage(flags = {}) {
717
717
  const components = this.currentPage?.components.map((component) => component.component);
718
- // Accessing the parent ensures the right instance (whether it's the parent Wizard or a nested Wizard) performs its validation
719
- return this.currentPage?.parent.validateComponents(components, this.currentPage.parent.data, flags);
718
+ return this.currentPage?.validateComponents(components, this.currentPage?.data, flags);
720
719
  }
721
720
  emitPrevPage() {
722
721
  this.emit('prevPage', { page: this.page, submission: this.submission });
@@ -1161,7 +1161,7 @@ export default class SelectComponent extends ListComponent {
1161
1161
  }
1162
1162
  // Choices will return undefined if nothing is selected. We really want '' to be empty.
1163
1163
  if (value === undefined || value === null) {
1164
- value = '';
1164
+ value = this.emptyValue;
1165
1165
  }
1166
1166
  return value;
1167
1167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.3-rc.4",
3
+ "version": "5.0.3-rc.6",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "homepage": "https://github.com/formio/formio.js#readme",
81
81
  "dependencies": {
82
- "@formio/bootstrap": "3.0.2-rc.3",
82
+ "@formio/bootstrap": "3.0.2-rc.5",
83
83
  "@formio/choices.js": "^10.2.1",
84
84
  "@formio/core": "2.3.4-rc.1",
85
85
  "@formio/text-mask-addons": "3.8.0-formio.4",