@esri/solutions-components 0.8.0 → 0.8.2

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 (32) hide show
  1. package/dist/cjs/buffer-tools_3.cjs.entry.js +3 -3
  2. package/dist/cjs/consent-manager.cjs.entry.js +11 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/map-select-tools_3.cjs.entry.js +31 -20
  5. package/dist/cjs/public-notification.cjs.entry.js +24 -1
  6. package/dist/cjs/solutions-components.cjs.js +1 -1
  7. package/dist/collection/components/consent-manager/consent-manager.js +13 -4
  8. package/dist/collection/components/map-draw-tools/map-draw-tools.js +3 -3
  9. package/dist/collection/components/map-select-tools/map-select-tools.js +33 -20
  10. package/dist/collection/components/public-notification/public-notification.js +24 -1
  11. package/dist/components/consent-manager.js +11 -1
  12. package/dist/components/map-draw-tools2.js +3 -3
  13. package/dist/components/map-select-tools2.js +32 -20
  14. package/dist/components/public-notification.js +24 -1
  15. package/dist/esm/buffer-tools_3.entry.js +3 -3
  16. package/dist/esm/consent-manager.entry.js +11 -1
  17. package/dist/esm/loader.js +1 -1
  18. package/dist/esm/map-select-tools_3.entry.js +31 -20
  19. package/dist/esm/public-notification.entry.js +24 -1
  20. package/dist/esm/solutions-components.js +1 -1
  21. package/dist/solutions-components/p-0f427774.entry.js +6 -0
  22. package/dist/solutions-components/{p-0e5274bd.entry.js → p-131bcc7f.entry.js} +1 -1
  23. package/dist/solutions-components/p-52b37bad.entry.js +6 -0
  24. package/dist/solutions-components/{p-35c9256b.entry.js → p-955647ea.entry.js} +1 -1
  25. package/dist/solutions-components/solutions-components.esm.js +1 -1
  26. package/dist/types/components/consent-manager/consent-manager.d.ts +6 -0
  27. package/dist/types/components/map-select-tools/map-select-tools.d.ts +5 -1
  28. package/dist/types/components/public-notification/public-notification.d.ts +12 -0
  29. package/dist/types/components.d.ts +1 -1
  30. package/package.json +1 -1
  31. package/dist/solutions-components/p-41bc9e9d.entry.js +0 -6
  32. package/dist/solutions-components/p-df29f4c2.entry.js +0 -6
@@ -575,10 +575,10 @@ const MapDrawTools = class {
575
575
  * @protected
576
576
  */
577
577
  _clearSketch() {
578
- var _a;
579
- this._sketchWidget.viewModel.cancel();
578
+ var _a, _b;
579
+ (_a = this._sketchWidget) === null || _a === void 0 ? void 0 : _a.viewModel.cancel();
580
580
  this.graphics = [];
581
- (_a = this._sketchGraphicsLayer) === null || _a === void 0 ? void 0 : _a.removeAll();
581
+ (_b = this._sketchGraphicsLayer) === null || _b === void 0 ? void 0 : _b.removeAll();
582
582
  }
583
583
  /**
584
584
  * Emit the undo event
@@ -1649,7 +1649,7 @@ const ConsentManager = class {
1649
1649
  * boolean: When true the telemetry instance has been loaded
1650
1650
  */
1651
1651
  this._loaded = false;
1652
- this.firstUseVar = "solutions-first-use";
1652
+ this.firstUseVar = undefined;
1653
1653
  this.measurementIds = undefined;
1654
1654
  this.portal = undefined;
1655
1655
  this._shouldRender = undefined;
@@ -1697,6 +1697,16 @@ const ConsentManager = class {
1697
1697
  render() {
1698
1698
  return this._shouldRender ? (index.h(index.Host, null, index.h("calcite-panel", { class: "consent-panel calcite-mode-dark", id: "cookie-policy" }, index.h("div", { class: "cookie-consent-popup-container" }, index.h("div", { id: "cookie-policy-description-top", tabindex: "-1" }, index.h("p", null, this._translations.dearVisitor), index.h("p", null, this._translations.useAnalytics)), index.h("div", { class: "button-container" }, index.h("calcite-button", { appearance: "solid", class: "padding-end-1", kind: "brand", onClick: () => this._refuse() }, this._translations.refuseAnalytics), index.h("calcite-button", { appearance: "solid", kind: "brand", onClick: () => this._accept() }, this._translations.acceptAnalytics)), index.h("div", null, index.h("p", null, this._translations.moreInfo, "\u00A0", index.h("calcite-link", { class: "link-text", href: "https://www.arcgis.com/", rel: "noopener noreferrer", target: "_blank" }, this._translations.protectionPolicy), this._translations.our, "\u00A0", index.h("calcite-link", { class: "link-text", href: "https://www.arcgis.com/", rel: "noopener noreferrer", target: "_blank" }, this._translations.cookiePolicy, "\u00A0"), this._translations.andOur, "\u00A0", index.h("calcite-link", { class: "link-text", href: "https://www.arcgis.com/", rel: "noopener noreferrer", target: "_blank" }, this._translations.cookiesInventory))))))) : undefined;
1699
1699
  }
1700
+ /**
1701
+ * Called once after the component is loaded
1702
+ *
1703
+ * @returns Promise when complete
1704
+ */
1705
+ async componentDidLoad() {
1706
+ this.consentGranted.emit({
1707
+ granted: localStorage.getItem(this.firstUseVar) === "true"
1708
+ });
1709
+ }
1700
1710
  //--------------------------------------------------------------------------
1701
1711
  //
1702
1712
  // Functions (protected)