@googlemaps/extended-component-library
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -7,4 +7,4 @@ /** | ||
/** Package version of this component library. */ | ||
export declare const LIBRARY_VERSION = "0.6.1"; | ||
export declare const LIBRARY_VERSION = "0.6.2"; | ||
/** Identifier of where this component library is sourced from. */ | ||
export declare const ATTRIBUTION_SOURCE_ID = "GIT"; |
@@ -7,5 +7,5 @@ /** | ||
/** Package version of this component library. */ | ||
export const LIBRARY_VERSION = '0.6.1'; // x-release-please-version | ||
export const LIBRARY_VERSION = '0.6.2'; // x-release-please-version | ||
/** Identifier of where this component library is sourced from. */ | ||
export const ATTRIBUTION_SOURCE_ID = 'NPM'; | ||
//# sourceMappingURL=constants.js.map |
@@ -63,8 +63,8 @@ [Extended Component Library](../../README.md) | ||
| Attribute | Property | Property type | Description | Default | [Reflects?](https://open-wc.org/guides/knowledge/attributes-and-properties/#attribute-and-property-reflection) | | ||
| ------------- | ------------ | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------- | | ||
| `feature-set` | `featureSet` | `FeatureSet` | Chooses the capabilities of this store locator:<br/><br/>* `'basic'` shows a list of locations with pins on a map.<br/><br/>* `'intermediate'` adds a search input so users can find the location closest to them.<br/><br/>* `'advanced'` brings in a Place details view to show photos, hours, and reviews for each location. | | ✅ | | ||
| `map-id` | `mapId` | `string \| undefined` | The Map ID of the map. See the [Map ID documentation](https://developers.google.com/maps/documentation/get-map-id?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components) for more information. | | ✅ | | ||
| `listings` | `listings` | `StoreLocatorListing[] \| undefined` | List of locations to display in the store locator. | | ❌ | | ||
| `mapOptions` | `mapOptions` | `Partial<google.maps.MapOptions> \| undefined` | Overrides for the map options. Provide values for `center` and `zoom` to display a map when `listings` is empty. | | ❌ | | ||
| Attribute | Property | Property type | Description | Default | [Reflects?](https://open-wc.org/guides/knowledge/attributes-and-properties/#attribute-and-property-reflection) | | ||
| ------------- | ------------ | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------- | | ||
| `feature-set` | `featureSet` | `FeatureSet` | Chooses the capabilities of this store locator:<br/><br/>* `'basic'` shows a list of locations with pins on a map.<br/><br/>* `'intermediate'` adds a search input so users can find the location closest to them.<br/><br/>* `'advanced'` brings in a Place details view to show photos, hours, and reviews for each location. | | ✅ | | ||
| `map-id` | `mapId` | `string \| undefined` | The Map ID of the map. See the [Map ID documentation](https://developers.google.com/maps/documentation/get-map-id?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components) for more information. | | ✅ | | ||
| | `listings` | `StoreLocatorListing[] \| undefined` | List of locations to display in the store locator. | | ❌ | | ||
| | `mapOptions` | `Partial<google.maps.MapOptions> \| undefined` | Overrides for the map options. Provide values for `center` and `zoom` to display a map when `listings` is empty. | `{ mapTypeControl: false, maxZoom: 17, streetViewControl: false }` | ❌ | | ||
@@ -71,0 +71,0 @@ ## Methods |
@@ -138,3 +138,3 @@ /** | ||
*/ | ||
protected shouldUpdate(): boolean; | ||
protected shouldUpdate(changedProperties: Map<string, unknown>): boolean; | ||
/** | ||
@@ -141,0 +141,0 @@ * Notes on willUpdate(): |
@@ -28,2 +28,7 @@ /** | ||
import { storeLocatorStyles } from './store_locator_styles.js'; | ||
const DEFAULT_MAP_OPTIONS = { | ||
mapTypeControl: false, | ||
maxZoom: 17, | ||
streetViewControl: false | ||
}; | ||
/** | ||
@@ -110,2 +115,7 @@ * The store locator component displays an experience where your website's users | ||
this.featureSet = FeatureSet.ADVANCED; | ||
/** | ||
* Overrides for the map options. Provide values for `center` and `zoom` to | ||
* display a map when `listings` is empty. | ||
*/ | ||
this.mapOptions = DEFAULT_MAP_OPTIONS; | ||
this.internalListings = []; | ||
@@ -124,3 +134,3 @@ this.initialized = false; | ||
*/ | ||
shouldUpdate() { | ||
shouldUpdate(changedProperties) { | ||
return this.initialized; | ||
@@ -472,7 +482,7 @@ } | ||
__decorate([ | ||
property(), | ||
property({ attribute: false }), | ||
__metadata("design:type", Array) | ||
], StoreLocator.prototype, "listings", void 0); | ||
__decorate([ | ||
property(), | ||
property({ attribute: false }), | ||
__metadata("design:type", Object) | ||
@@ -479,0 +489,0 @@ ], StoreLocator.prototype, "mapOptions", void 0); |
{ | ||
"name": "@googlemaps/extended-component-library", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Web Components for building rich experiences with the Google Maps JavaScript API.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1251215
12731