@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.
@@ -53,6 +53,8 @@ export class CrowdsourceManager {
53
53
  this.mapInfos = [];
54
54
  this.onlyShowUpdatableLayers = true;
55
55
  this.searchConfiguration = undefined;
56
+ this.shareIncludeEmbed = undefined;
57
+ this.shareIncludeSocial = undefined;
56
58
  this.theme = "light";
57
59
  this.zoomAndScrollToSelected = false;
58
60
  this._expandPopup = false;
@@ -348,7 +350,7 @@ export class CrowdsourceManager {
348
350
  this.classicGrid && layoutMode === ELayoutMode.VERTICAL ? "panel-end" :
349
351
  layoutMode === ELayoutMode.HORIZONTAL ? "header" : "panel-start";
350
352
  const hasMapAndLayer = this.defaultWebmap && this.defaultLayer;
351
- return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip))), h("div", { class: "width-full height-full position-relative" }, 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 }))));
353
+ return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip))), h("div", { class: "width-full height-full position-relative" }, 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 }))));
352
354
  }
353
355
  /**
354
356
  * Open/Close the appropriate panel.
@@ -895,6 +897,40 @@ export class CrowdsourceManager {
895
897
  "text": "ISearchConfiguration: Configuration details for the Search widget"
896
898
  }
897
899
  },
900
+ "shareIncludeEmbed": {
901
+ "type": "boolean",
902
+ "mutable": false,
903
+ "complexType": {
904
+ "original": "boolean",
905
+ "resolved": "boolean",
906
+ "references": {}
907
+ },
908
+ "required": false,
909
+ "optional": false,
910
+ "docs": {
911
+ "tags": [],
912
+ "text": "boolean: When true the share options will include embed option"
913
+ },
914
+ "attribute": "share-include-embed",
915
+ "reflect": false
916
+ },
917
+ "shareIncludeSocial": {
918
+ "type": "boolean",
919
+ "mutable": false,
920
+ "complexType": {
921
+ "original": "boolean",
922
+ "resolved": "boolean",
923
+ "references": {}
924
+ },
925
+ "required": false,
926
+ "optional": false,
927
+ "docs": {
928
+ "tags": [],
929
+ "text": "boolean: When true the share options will include social media sharing"
930
+ },
931
+ "attribute": "share-include-social",
932
+ "reflect": false
933
+ },
898
934
  "theme": {
899
935
  "type": "string",
900
936
  "mutable": false,
@@ -66,6 +66,8 @@ export class LayerTable {
66
66
  this.mapInfo = undefined;
67
67
  this.mapView = undefined;
68
68
  this.onlyShowUpdatableLayers = undefined;
69
+ this.shareIncludeEmbed = undefined;
70
+ this.shareIncludeSocial = undefined;
69
71
  this.showNewestFirst = undefined;
70
72
  this.zoomAndScrollToSelected = undefined;
71
73
  this._confirmDelete = false;
@@ -613,7 +615,7 @@ export class LayerTable {
613
615
  * @returns VNode The node representing the DOM element that will contain the action
614
616
  */
615
617
  _getShare(icon) {
616
- return (h("div", { class: "share-action", id: this._getId(icon) }, 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)));
618
+ return (h("div", { class: "share-action", id: this._getId(icon) }, 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)));
617
619
  }
618
620
  /**
619
621
  * Called each time the values that are used for custom url params change
@@ -1314,6 +1316,40 @@ export class LayerTable {
1314
1316
  "attribute": "only-show-updatable-layers",
1315
1317
  "reflect": false
1316
1318
  },
1319
+ "shareIncludeEmbed": {
1320
+ "type": "boolean",
1321
+ "mutable": false,
1322
+ "complexType": {
1323
+ "original": "boolean",
1324
+ "resolved": "boolean",
1325
+ "references": {}
1326
+ },
1327
+ "required": false,
1328
+ "optional": false,
1329
+ "docs": {
1330
+ "tags": [],
1331
+ "text": "boolean: When true the share options will include embed option"
1332
+ },
1333
+ "attribute": "share-include-embed",
1334
+ "reflect": false
1335
+ },
1336
+ "shareIncludeSocial": {
1337
+ "type": "boolean",
1338
+ "mutable": false,
1339
+ "complexType": {
1340
+ "original": "boolean",
1341
+ "resolved": "boolean",
1342
+ "references": {}
1343
+ },
1344
+ "required": false,
1345
+ "optional": false,
1346
+ "docs": {
1347
+ "tags": [],
1348
+ "text": "boolean: When true the share options will include social media sharing"
1349
+ },
1350
+ "attribute": "share-include-social",
1351
+ "reflect": false
1352
+ },
1317
1353
  "showNewestFirst": {
1318
1354
  "type": "boolean",
1319
1355
  "mutable": false,
@@ -87,6 +87,8 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
87
87
  this.mapInfos = [];
88
88
  this.onlyShowUpdatableLayers = true;
89
89
  this.searchConfiguration = undefined;
90
+ this.shareIncludeEmbed = undefined;
91
+ this.shareIncludeSocial = undefined;
90
92
  this.theme = "light";
91
93
  this.zoomAndScrollToSelected = false;
92
94
  this._expandPopup = false;
@@ -382,7 +384,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
382
384
  this.classicGrid && layoutMode === ELayoutMode.VERTICAL ? "panel-end" :
383
385
  layoutMode === ELayoutMode.HORIZONTAL ? "header" : "panel-start";
384
386
  const hasMapAndLayer = this.defaultWebmap && this.defaultLayer;
385
- return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip))), h("div", { class: "width-full height-full position-relative" }, 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 }))));
387
+ return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip))), h("div", { class: "width-full height-full position-relative" }, 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 }))));
386
388
  }
387
389
  /**
388
390
  * Open/Close the appropriate panel.
@@ -491,6 +493,8 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
491
493
  "mapInfos": [16],
492
494
  "onlyShowUpdatableLayers": [4, "only-show-updatable-layers"],
493
495
  "searchConfiguration": [16],
496
+ "shareIncludeEmbed": [4, "share-include-embed"],
497
+ "shareIncludeSocial": [4, "share-include-social"],
494
498
  "theme": [1],
495
499
  "zoomAndScrollToSelected": [4, "zoom-and-scroll-to-selected"],
496
500
  "_expandPopup": [32],
@@ -81,6 +81,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
81
81
  this.mapInfo = undefined;
82
82
  this.mapView = undefined;
83
83
  this.onlyShowUpdatableLayers = undefined;
84
+ this.shareIncludeEmbed = undefined;
85
+ this.shareIncludeSocial = undefined;
84
86
  this.showNewestFirst = undefined;
85
87
  this.zoomAndScrollToSelected = undefined;
86
88
  this._confirmDelete = false;
@@ -628,7 +630,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
628
630
  * @returns VNode The node representing the DOM element that will contain the action
629
631
  */
630
632
  _getShare(icon) {
631
- return (h("div", { class: "share-action", id: this._getId(icon) }, 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)));
633
+ return (h("div", { class: "share-action", id: this._getId(icon) }, 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)));
632
634
  }
633
635
  /**
634
636
  * Called each time the values that are used for custom url params change
@@ -1133,6 +1135,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
1133
1135
  "mapInfo": [16],
1134
1136
  "mapView": [16],
1135
1137
  "onlyShowUpdatableLayers": [4, "only-show-updatable-layers"],
1138
+ "shareIncludeEmbed": [4, "share-include-embed"],
1139
+ "shareIncludeSocial": [4, "share-include-social"],
1136
1140
  "showNewestFirst": [4, "show-newest-first"],
1137
1141
  "zoomAndScrollToSelected": [4, "zoom-and-scroll-to-selected"],
1138
1142
  "_confirmDelete": [32],
@@ -148,6 +148,8 @@ const LayerTable = class {
148
148
  this.mapInfo = undefined;
149
149
  this.mapView = undefined;
150
150
  this.onlyShowUpdatableLayers = undefined;
151
+ this.shareIncludeEmbed = undefined;
152
+ this.shareIncludeSocial = undefined;
151
153
  this.showNewestFirst = undefined;
152
154
  this.zoomAndScrollToSelected = undefined;
153
155
  this._confirmDelete = false;
@@ -695,7 +697,7 @@ const LayerTable = class {
695
697
  * @returns VNode The node representing the DOM element that will contain the action
696
698
  */
697
699
  _getShare(icon) {
698
- return (h("div", { class: "share-action", id: this._getId(icon) }, 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)));
700
+ return (h("div", { class: "share-action", id: this._getId(icon) }, 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)));
699
701
  }
700
702
  /**
701
703
  * Called each time the values that are used for custom url params change
@@ -44,6 +44,8 @@ const CrowdsourceManager = class {
44
44
  this.mapInfos = [];
45
45
  this.onlyShowUpdatableLayers = true;
46
46
  this.searchConfiguration = undefined;
47
+ this.shareIncludeEmbed = undefined;
48
+ this.shareIncludeSocial = undefined;
47
49
  this.theme = "light";
48
50
  this.zoomAndScrollToSelected = false;
49
51
  this._expandPopup = false;
@@ -339,7 +341,7 @@ const CrowdsourceManager = class {
339
341
  this.classicGrid && layoutMode === ELayoutMode.VERTICAL ? "panel-end" :
340
342
  layoutMode === ELayoutMode.HORIZONTAL ? "header" : "panel-start";
341
343
  const hasMapAndLayer = this.defaultWebmap && this.defaultLayer;
342
- return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip))), h("div", { class: "width-full height-full position-relative" }, 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 }))));
344
+ return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip))), h("div", { class: "width-full height-full position-relative" }, 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 }))));
343
345
  }
344
346
  /**
345
347
  * Open/Close the appropriate panel.