@esri/solutions-components 0.7.8 → 0.7.9
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.
- package/dist/assets/t9n/layer-table/resources.json +1 -0
- package/dist/assets/t9n/layer-table/resources_en.json +1 -0
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +15 -6
- package/dist/cjs/card-manager_3.cjs.entry.js +42 -5
- package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -2
- package/dist/collection/components/layer-table/layer-table.js +42 -5
- package/dist/collection/components/map-layer-picker/map-layer-picker.css +1 -0
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +69 -5
- package/dist/collection/utils/interfaces.ts +5 -0
- package/dist/components/crowdsource-manager.js +15 -3
- package/dist/components/layer-table2.js +42 -5
- package/dist/components/map-layer-picker2.js +17 -6
- package/dist/esm/calcite-combobox_6.entry.js +15 -6
- package/dist/esm/card-manager_3.entry.js +42 -5
- package/dist/esm/crowdsource-manager.entry.js +12 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-546a3d3c.entry.js → p-a9bbd352.entry.js} +1 -1
- package/dist/solutions-components/p-c9b4d52f.entry.js +6 -0
- package/dist/solutions-components/p-f7870ec1.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +5 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
- package/dist/types/components/layer-table/layer-table.d.ts +14 -0
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +15 -1
- package/dist/types/components.d.ts +23 -2
- package/dist/types/preact.d.ts +2 -1
- package/dist/types/utils/interfaces.d.ts +4 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-1b9709ce.entry.js +0 -6
- package/dist/solutions-components/p-4f1c4004.entry.js +0 -6
@@ -53,6 +53,7 @@ const CrowdsourceManager = class {
|
|
53
53
|
this._layoutMode = ELayoutMode.GRID;
|
54
54
|
this._mapView = undefined;
|
55
55
|
this._panelOpen = true;
|
56
|
+
this._tableOnly = false;
|
56
57
|
}
|
57
58
|
//--------------------------------------------------------------------------
|
58
59
|
//
|
@@ -102,6 +103,16 @@ const CrowdsourceManager = class {
|
|
102
103
|
// Events (public)
|
103
104
|
//
|
104
105
|
//--------------------------------------------------------------------------
|
106
|
+
/**
|
107
|
+
* Listen for idsFound event to be fired so we can know that all layer ids have been fetched
|
108
|
+
*/
|
109
|
+
async idsFound(evt) {
|
110
|
+
const ids = evt.detail;
|
111
|
+
this._tableOnly = ids.tableIds.length > 0 && ids.layerIds.length === 0;
|
112
|
+
if (this._tableOnly) {
|
113
|
+
this._expandPopup = true;
|
114
|
+
}
|
115
|
+
}
|
105
116
|
/**
|
106
117
|
* Listen for layoutChanged event to be fired so we can adjust the layout
|
107
118
|
*/
|
@@ -299,7 +310,7 @@ const CrowdsourceManager = class {
|
|
299
310
|
const tooltip = this._expandPopup ? this._translations.collapsePopup : this._translations.expandPopup;
|
300
311
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
301
312
|
const popupNodeClass = !this._expandPopup ? "height-full" : ((_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.length) === 1 ? "position-absolute-0" : "position-absolute-50";
|
302
|
-
return (h("div", { class: "calcite-mode-dark " + popupNodeClass }, h("calcite-panel", null, h("div", { class: "display-flex align-items-center", slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information)), h("calcite-action", { icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end", text: "" }), h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)), this._getCardNode())));
|
313
|
+
return (h("div", { class: "calcite-mode-dark " + popupNodeClass }, h("calcite-panel", null, h("div", { class: "display-flex align-items-center", slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information)), h("calcite-action", { disabled: this._tableOnly, icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end", text: "" }), !this._tableOnly ? h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)) : undefined, this._getCardNode())));
|
303
314
|
}
|
304
315
|
/**
|
305
316
|
* Toggle the popup information
|