@theseam/ui-common 0.4.14 → 0.4.15

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.
Files changed (33) hide show
  1. package/esm2020/google-maps/google-maps/google-maps.component.mjs +9 -2
  2. package/esm2020/google-maps/google-maps-api-loader/lazy-google-maps-api-loader.mjs +2 -1
  3. package/esm2020/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.component.mjs +3 -3
  4. package/esm2020/services/preferences/preferences-accessor.mjs +1 -1
  5. package/esm2020/services/preferences/preferences-manager.service.mjs +1 -1
  6. package/esm2020/services/preferences/preferences-record.mjs +1 -1
  7. package/esm2020/services/preferences/preferences.models.mjs +1 -1
  8. package/esm2020/story-helpers/story-preferences-accessor.service.mjs +1 -1
  9. package/esm2020/utils/geo-json/coerce-feature-collection.mjs +1 -1
  10. package/esm2020/utils/geo-json/is-feature-collection.validator.mjs +1 -1
  11. package/esm2020/utils/geo-json/is-only-geometry-types.mjs +1 -1
  12. package/esm2020/utils/geo-json/merge-polygons.mjs +1 -1
  13. package/esm2020/utils/geo-json/no-inner-rings.validator.mjs +1 -1
  14. package/esm2020/utils/geo-json/split-multi-polygons.mjs +1 -1
  15. package/esm2020/widget/preferences/widget-preferences.models.mjs +1 -1
  16. package/esm2020/widget/preferences/widget-preferences.service.mjs +1 -1
  17. package/esm2020/widget/preferences/widget-preferences.token.mjs +1 -1
  18. package/esm2020/widget/widget.models.mjs +1 -1
  19. package/fesm2015/theseam-ui-common-google-maps.mjs +12 -3
  20. package/fesm2015/theseam-ui-common-google-maps.mjs.map +1 -1
  21. package/fesm2015/theseam-ui-common-services.mjs.map +1 -1
  22. package/fesm2015/theseam-ui-common-story-helpers.mjs.map +1 -1
  23. package/fesm2015/theseam-ui-common-utils.mjs.map +1 -1
  24. package/fesm2015/theseam-ui-common-widget.mjs.map +1 -1
  25. package/fesm2020/theseam-ui-common-google-maps.mjs +11 -3
  26. package/fesm2020/theseam-ui-common-google-maps.mjs.map +1 -1
  27. package/fesm2020/theseam-ui-common-services.mjs.map +1 -1
  28. package/fesm2020/theseam-ui-common-story-helpers.mjs.map +1 -1
  29. package/fesm2020/theseam-ui-common-utils.mjs.map +1 -1
  30. package/fesm2020/theseam-ui-common-widget.mjs.map +1 -1
  31. package/google-maps/google-maps/google-maps.component.d.ts +2 -1
  32. package/google-maps/google-maps-api-loader/lazy-google-maps-api-loader.d.ts +1 -0
  33. package/package.json +1 -1
@@ -1410,7 +1410,14 @@ class TheSeamGoogleMapsComponent extends _TheSeamGoogleMapsMixinBase {
1410
1410
  // or upgrade to a more recent version that may not have the issue anymore.
1411
1411
  // TODO: Check if the switch to '@angular/google-maps' fixed this problem.
1412
1412
  this._googleMaps.reCenterOnFeatures();
1413
- this._googleMaps.googleMap?.setZoom(this.zoom);
1413
+ // NOTE: the input zoom level was getting reset after this function ran,
1414
+ // so putting in this idle listener to wait until the map is fully rendered
1415
+ // to set the zoom.
1416
+ this.idleListener = this._googleMaps.googleMap?.addListener('idle', () => {
1417
+ this._googleMaps.googleMap?.setZoom(this.zoom);
1418
+ this.idleListener?.remove();
1419
+ });
1420
+ this.mapReady.emit(this._googleMaps.googleMap);
1414
1421
  }
1415
1422
  _onClickDeleteFeature() {
1416
1423
  this._googleMaps.deleteSelection();
@@ -1831,13 +1838,13 @@ class TheSeamGoogleMapsPlacesAutoCompleteComponent {
1831
1838
  }
1832
1839
  }
1833
1840
  TheSeamGoogleMapsPlacesAutoCompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: TheSeamGoogleMapsPlacesAutoCompleteComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1834
- TheSeamGoogleMapsPlacesAutoCompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: TheSeamGoogleMapsPlacesAutoCompleteComponent, selector: "seam-google-maps-places-autocomplete", inputs: { label: "label", icon: "icon", disabled: "disabled", placeholder: "placeholder", autocorrect: "autocorrect", autocapitalize: "autocapitalize", tabIndex: "tabIndex", options: "options" }, outputs: { placeChanged: "placeChanged" }, host: { listeners: { "click": "_onClick(event)", "focus": "_onFocus($event)" }, properties: { "attr.tabindex": "this._attrTabIndex" } }, viewQueries: [{ propertyName: "_inputDirective", first: true, predicate: ["inp"], descendants: true, read: InputDirective, static: true }, { propertyName: "__autocompleteDirective", first: true, predicate: TheSeamGoogleMapsPlacesAutocompleteDirective, descendants: true, static: true }], exportAs: ["seamGoogleMapsPlacesAutoComplete"], ngImport: i0, template: "<div *ngIf=\"icon\" class=\"search-container--icon-wrapper\">\r\n <seam-icon [icon]=\"icon\" class=\"text-muted\" size=\"lg\"></seam-icon>\r\n</div>\r\n<label *ngIf=\"label || placeholder\" [attr.for]=\"inp.id\" class=\"sr-only\">{{ label || placeholder }}</label>\r\n<input #inp=\"seamInput\"\r\n seamInput\r\n seamGoogleMapsPlacesAutocomplete\r\n [disabled]=\"disabled\"\r\n [attr.placeholder]=\"placeholder\"\r\n [attr.autocorrect]=\"autocorrect\"\r\n [attr.autocapitalize]=\"autocapitalize\"\r\n [options]=\"_options\"\r\n/>\r\n", styles: [":host{position:relative;width:100%}:host>input{padding-left:40px}:host .search-container--icon-wrapper{position:absolute;top:6px;left:10px;bottom:0}:host .search-container--icon-wrapper ::ng-deep .svg-inline--fa{vertical-align:middle}\n"], dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "seam-icon", inputs: ["grayscaleOnDisable", "disabled", "iconClass", "icon", "size", "showDefaultOnError", "defaultIcon", "iconType"] }, { kind: "directive", type: i3.InputDirective, selector: "input[seamInput], textarea[seamInput], ng-select[seamInput], seam-checkbox[seamInput] [ngbRadioGroup], seam-tel-input[seamInput], quill-editor[seamInput], seam-google-maps[seamInput]", inputs: ["seamInputSize", "id", "type", "placeholder", "required", "disabled", "readonly"], exportAs: ["seamInput"] }, { kind: "directive", type: TheSeamGoogleMapsPlacesAutocompleteDirective, selector: "input[seamGoogleMapsPlacesAutocomplete]", inputs: ["options"], outputs: ["placeChanged"], exportAs: ["seamGoogleMapsPlacesAutocomplete"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1841
+ TheSeamGoogleMapsPlacesAutoCompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: TheSeamGoogleMapsPlacesAutoCompleteComponent, selector: "seam-google-maps-places-autocomplete", inputs: { label: "label", icon: "icon", disabled: "disabled", placeholder: "placeholder", autocorrect: "autocorrect", autocapitalize: "autocapitalize", tabIndex: "tabIndex", options: "options" }, outputs: { placeChanged: "placeChanged" }, host: { listeners: { "click": "_onClick(event)", "focus": "_onFocus($event)" }, properties: { "attr.tabindex": "this._attrTabIndex" } }, viewQueries: [{ propertyName: "_inputDirective", first: true, predicate: ["inp"], descendants: true, read: InputDirective, static: true }, { propertyName: "__autocompleteDirective", first: true, predicate: TheSeamGoogleMapsPlacesAutocompleteDirective, descendants: true, static: true }], exportAs: ["seamGoogleMapsPlacesAutoComplete"], ngImport: i0, template: "<div *ngIf=\"icon\" class=\"search-container--icon-wrapper\">\n <seam-icon [icon]=\"icon\" class=\"text-muted\" size=\"lg\"></seam-icon>\n</div>\n<label *ngIf=\"label || placeholder\" [attr.for]=\"inp.id\" class=\"sr-only\">{{ label || placeholder }}</label>\n<input #inp=\"seamInput\"\n seamInput\n seamGoogleMapsPlacesAutocomplete\n [disabled]=\"disabled\"\n [attr.placeholder]=\"placeholder\"\n [attr.autocorrect]=\"autocorrect\"\n [attr.autocapitalize]=\"autocapitalize\"\n [options]=\"_options\"\n/>\n", styles: [":host{position:relative;width:100%}:host>input{padding-left:40px}:host .search-container--icon-wrapper{position:absolute;top:6px;left:10px;bottom:0}:host .search-container--icon-wrapper ::ng-deep .svg-inline--fa{vertical-align:middle}\n"], dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "seam-icon", inputs: ["grayscaleOnDisable", "disabled", "iconClass", "icon", "size", "showDefaultOnError", "defaultIcon", "iconType"] }, { kind: "directive", type: i3.InputDirective, selector: "input[seamInput], textarea[seamInput], ng-select[seamInput], seam-checkbox[seamInput] [ngbRadioGroup], seam-tel-input[seamInput], quill-editor[seamInput], seam-google-maps[seamInput]", inputs: ["seamInputSize", "id", "type", "placeholder", "required", "disabled", "readonly"], exportAs: ["seamInput"] }, { kind: "directive", type: TheSeamGoogleMapsPlacesAutocompleteDirective, selector: "input[seamGoogleMapsPlacesAutocomplete]", inputs: ["options"], outputs: ["placeChanged"], exportAs: ["seamGoogleMapsPlacesAutocomplete"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1835
1842
  __decorate([
1836
1843
  InputBoolean()
1837
1844
  ], TheSeamGoogleMapsPlacesAutoCompleteComponent.prototype, "disabled", void 0);
1838
1845
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: TheSeamGoogleMapsPlacesAutoCompleteComponent, decorators: [{
1839
1846
  type: Component,
1840
- args: [{ selector: 'seam-google-maps-places-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'seamGoogleMapsPlacesAutoComplete', template: "<div *ngIf=\"icon\" class=\"search-container--icon-wrapper\">\r\n <seam-icon [icon]=\"icon\" class=\"text-muted\" size=\"lg\"></seam-icon>\r\n</div>\r\n<label *ngIf=\"label || placeholder\" [attr.for]=\"inp.id\" class=\"sr-only\">{{ label || placeholder }}</label>\r\n<input #inp=\"seamInput\"\r\n seamInput\r\n seamGoogleMapsPlacesAutocomplete\r\n [disabled]=\"disabled\"\r\n [attr.placeholder]=\"placeholder\"\r\n [attr.autocorrect]=\"autocorrect\"\r\n [attr.autocapitalize]=\"autocapitalize\"\r\n [options]=\"_options\"\r\n/>\r\n", styles: [":host{position:relative;width:100%}:host>input{padding-left:40px}:host .search-container--icon-wrapper{position:absolute;top:6px;left:10px;bottom:0}:host .search-container--icon-wrapper ::ng-deep .svg-inline--fa{vertical-align:middle}\n"] }]
1847
+ args: [{ selector: 'seam-google-maps-places-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'seamGoogleMapsPlacesAutoComplete', template: "<div *ngIf=\"icon\" class=\"search-container--icon-wrapper\">\n <seam-icon [icon]=\"icon\" class=\"text-muted\" size=\"lg\"></seam-icon>\n</div>\n<label *ngIf=\"label || placeholder\" [attr.for]=\"inp.id\" class=\"sr-only\">{{ label || placeholder }}</label>\n<input #inp=\"seamInput\"\n seamInput\n seamGoogleMapsPlacesAutocomplete\n [disabled]=\"disabled\"\n [attr.placeholder]=\"placeholder\"\n [attr.autocorrect]=\"autocorrect\"\n [attr.autocapitalize]=\"autocapitalize\"\n [options]=\"_options\"\n/>\n", styles: [":host{position:relative;width:100%}:host>input{padding-left:40px}:host .search-container--icon-wrapper{position:absolute;top:6px;left:10px;bottom:0}:host .search-container--icon-wrapper ::ng-deep .svg-inline--fa{vertical-align:middle}\n"] }]
1841
1848
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { label: [{
1842
1849
  type: Input
1843
1850
  }], icon: [{
@@ -1993,6 +2000,7 @@ class TheSeamLazyMapsApiLoader extends TheSeamGoogleMapsApiLoader {
1993
2000
  libraries: this._config.libraries,
1994
2001
  region: this._config.region,
1995
2002
  language: this._config.language || (this._localeId !== 'en-US' ? this._localeId : null),
2003
+ loading: this._config.loading || 'async'
1996
2004
  };
1997
2005
  const params = Object.keys(queryParams)
1998
2006
  // Remove undefined or null params.