@formio/js 5.0.0-dev.5650.f58394c → 5.0.0-dev.5651.a930364

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.
@@ -1222,16 +1222,9 @@ class Webform extends NestedDataComponent_1.default {
1222
1222
  * @param flags
1223
1223
  */
1224
1224
  onChange(flags, changed, modified, changes) {
1225
- var _a;
1226
1225
  flags = flags || {};
1227
1226
  let isChangeEventEmitted = false;
1228
- // If this Webform is a nested form, continue to bubble `modified` change to the root
1229
- if (((_a = this.parent) === null || _a === void 0 ? void 0 : _a.subForm) === this) {
1230
- super.onChange(Object.assign(Object.assign({}, flags), { modified }), false);
1231
- }
1232
- else {
1233
- super.onChange(flags, true);
1234
- }
1227
+ super.onChange(flags, true);
1235
1228
  const value = lodash_1.default.clone(this.submission);
1236
1229
  flags.changed = value.changed = changed;
1237
1230
  flags.changes = changes;
@@ -652,7 +652,8 @@ class FileComponent extends Field_1.default {
652
652
  // Check if file with the same name is being uploaded
653
653
  const fileWithSameNameUploading = this.filesToSync.filesToUpload
654
654
  .some(fileToSync => { var _a; return ((_a = fileToSync.file) === null || _a === void 0 ? void 0 : _a.name) === file.name; });
655
- const fileWithSameNameUploaded = lodash_1.default.some(this.dataValue, fileStatus => fileStatus.originalName === file.name);
655
+ const fileWithSameNameUploaded = this.dataValue
656
+ .some(fileStatus => fileStatus.originalName === file.name);
656
657
  return fileWithSameNameUploaded || fileWithSameNameUploading
657
658
  ? {
658
659
  status: 'error',
@@ -19,7 +19,7 @@ class GoogleAddressProvider extends AddressProvider_1.AddressProvider {
19
19
  var _a;
20
20
  super(options);
21
21
  this.setAutocompleteOptions();
22
- let src = 'https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback';
22
+ let src = 'https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&loading=async&callback=googleMapsCallback';
23
23
  if ((_a = options.params) === null || _a === void 0 ? void 0 : _a.key) {
24
24
  src += `&key=${options.params.key}`;
25
25
  }
@@ -1226,13 +1226,7 @@ export default class Webform extends NestedDataComponent {
1226
1226
  onChange(flags, changed, modified, changes) {
1227
1227
  flags = flags || {};
1228
1228
  let isChangeEventEmitted = false;
1229
- // If this Webform is a nested form, continue to bubble `modified` change to the root
1230
- if (this.parent?.subForm === this) {
1231
- super.onChange({ ...flags, modified }, false);
1232
- }
1233
- else {
1234
- super.onChange(flags, true);
1235
- }
1229
+ super.onChange(flags, true);
1236
1230
  const value = _.clone(this.submission);
1237
1231
  flags.changed = value.changed = changed;
1238
1232
  flags.changes = changes;
@@ -649,7 +649,8 @@ export default class FileComponent extends Field {
649
649
  // Check if file with the same name is being uploaded
650
650
  const fileWithSameNameUploading = this.filesToSync.filesToUpload
651
651
  .some(fileToSync => fileToSync.file?.name === file.name);
652
- const fileWithSameNameUploaded = _.some(this.dataValue, fileStatus => fileStatus.originalName === file.name);
652
+ const fileWithSameNameUploaded = this.dataValue
653
+ .some(fileStatus => fileStatus.originalName === file.name);
653
654
  return fileWithSameNameUploaded || fileWithSameNameUploading
654
655
  ? {
655
656
  status: 'error',
@@ -12,7 +12,7 @@ export class GoogleAddressProvider extends AddressProvider {
12
12
  constructor(options = {}) {
13
13
  super(options);
14
14
  this.setAutocompleteOptions();
15
- let src = 'https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback';
15
+ let src = 'https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&loading=async&callback=googleMapsCallback';
16
16
  if (options.params?.key) {
17
17
  src += `&key=${options.params.key}`;
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5650.f58394c",
3
+ "version": "5.0.0-dev.5651.a930364",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {