@esri/solutions-components 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -152,6 +152,8 @@ const LayerTable = class {
152
152
  this.mapInfo = undefined;
153
153
  this.mapView = undefined;
154
154
  this.onlyShowUpdatableLayers = undefined;
155
+ this.shareIncludeEmbed = undefined;
156
+ this.shareIncludeSocial = undefined;
155
157
  this.showNewestFirst = undefined;
156
158
  this.zoomAndScrollToSelected = undefined;
157
159
  this._confirmDelete = false;
@@ -699,7 +701,7 @@ const LayerTable = class {
699
701
  * @returns VNode The node representing the DOM element that will contain the action
700
702
  */
701
703
  _getShare(icon) {
702
- return (index.h("div", { class: "share-action", id: this._getId(icon) }, index.h("instant-apps-social-share", { autoUpdateShareUrl: false, class: "instant-app-share", popoverButtonIconScale: "s", ref: el => this._shareNode = el, scale: "m", shareButtonColor: "neutral", socialMedia: true, view: this.mapView }), this._getToolTip("bottom", icon, this._translations.share)));
704
+ return (index.h("div", { class: "share-action", id: this._getId(icon) }, index.h("instant-apps-social-share", { autoUpdateShareUrl: false, class: "instant-app-share", embed: this.shareIncludeEmbed, popoverButtonIconScale: "s", ref: el => this._shareNode = el, scale: "m", shareButtonColor: "neutral", socialMedia: this.shareIncludeSocial, view: this.mapView }), this._getToolTip("bottom", icon, this._translations.share)));
703
705
  }
704
706
  /**
705
707
  * Called each time the values that are used for custom url params change
@@ -48,6 +48,8 @@ const CrowdsourceManager = class {
48
48
  this.mapInfos = [];
49
49
  this.onlyShowUpdatableLayers = true;
50
50
  this.searchConfiguration = undefined;
51
+ this.shareIncludeEmbed = undefined;
52
+ this.shareIncludeSocial = undefined;
51
53
  this.theme = "light";
52
54
  this.zoomAndScrollToSelected = false;
53
55
  this._expandPopup = false;
@@ -343,7 +345,7 @@ const CrowdsourceManager = class {
343
345
  this.classicGrid && layoutMode === interfaces.ELayoutMode.VERTICAL ? "panel-end" :
344
346
  layoutMode === interfaces.ELayoutMode.HORIZONTAL ? "header" : "panel-start";
345
347
  const hasMapAndLayer = this.defaultWebmap && this.defaultLayer;
346
- return (index.h("calcite-shell", { class: tableSizeClass + " border-bottom" }, index.h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, index.h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), index.h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, index.h("span", null, tooltip))), index.h("div", { class: "width-full height-full position-relative" }, index.h("layer-table", { defaultGlobalId: hasMapAndLayer ? this._defaultGlobalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !this.defaultGlobalId ? this._defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableShare: this.enableShare, enableZoom: this.enableZoom, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))));
348
+ return (index.h("calcite-shell", { class: tableSizeClass + " border-bottom" }, index.h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, index.h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), index.h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, index.h("span", null, tooltip))), index.h("div", { class: "width-full height-full position-relative" }, index.h("layer-table", { defaultGlobalId: hasMapAndLayer ? this._defaultGlobalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !this.defaultGlobalId ? this._defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableShare: this.enableShare, enableZoom: this.enableZoom, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))));
347
349
  }
348
350
  /**
349
351
  * Open/Close the appropriate panel.