@esri/solutions-components 0.8.20 → 0.8.21
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/crowdsource-reporter/resources_ar.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_bg.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_bs.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_ca.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_cs.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_da.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_de.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_el.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_es.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_et.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_fi.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_fr.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_he.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_hr.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_hu.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_id.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_it.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_ja.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_ko.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_lt.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_lv.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_nb.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_nl.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_pl.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_pt-BR.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_pt-PT.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_ro.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_ru.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_sk.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_sl.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_sr.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_sv.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_th.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_tr.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_uk.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_vi.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-CN.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-HK.json +0 -1
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-TW.json +0 -1
- package/dist/assets/t9n/layer-list/resources_ar.json +1 -1
- package/dist/assets/t9n/layer-list/resources_bg.json +1 -1
- package/dist/assets/t9n/layer-list/resources_bs.json +1 -1
- package/dist/assets/t9n/layer-list/resources_ca.json +1 -1
- package/dist/assets/t9n/layer-list/resources_cs.json +1 -1
- package/dist/assets/t9n/layer-list/resources_da.json +1 -1
- package/dist/assets/t9n/layer-list/resources_de.json +1 -1
- package/dist/assets/t9n/layer-list/resources_el.json +1 -1
- package/dist/assets/t9n/layer-list/resources_es.json +1 -1
- package/dist/assets/t9n/layer-list/resources_et.json +1 -1
- package/dist/assets/t9n/layer-list/resources_fi.json +1 -1
- package/dist/assets/t9n/layer-list/resources_fr.json +1 -1
- package/dist/assets/t9n/layer-list/resources_he.json +1 -1
- package/dist/assets/t9n/layer-list/resources_hr.json +1 -1
- package/dist/assets/t9n/layer-list/resources_hu.json +1 -1
- package/dist/assets/t9n/layer-list/resources_id.json +1 -1
- package/dist/assets/t9n/layer-list/resources_it.json +1 -1
- package/dist/assets/t9n/layer-list/resources_ja.json +1 -1
- package/dist/assets/t9n/layer-list/resources_ko.json +1 -1
- package/dist/assets/t9n/layer-list/resources_lt.json +1 -1
- package/dist/assets/t9n/layer-list/resources_lv.json +1 -1
- package/dist/assets/t9n/layer-list/resources_nb.json +1 -1
- package/dist/assets/t9n/layer-list/resources_nl.json +1 -1
- package/dist/assets/t9n/layer-list/resources_pl.json +1 -1
- package/dist/assets/t9n/layer-list/resources_pt-BR.json +1 -1
- package/dist/assets/t9n/layer-list/resources_pt-PT.json +1 -1
- package/dist/assets/t9n/layer-list/resources_ro.json +1 -1
- package/dist/assets/t9n/layer-list/resources_ru.json +1 -1
- package/dist/assets/t9n/layer-list/resources_sk.json +1 -1
- package/dist/assets/t9n/layer-list/resources_sl.json +1 -1
- package/dist/assets/t9n/layer-list/resources_sr.json +1 -1
- package/dist/assets/t9n/layer-list/resources_sv.json +1 -1
- package/dist/assets/t9n/layer-list/resources_th.json +1 -1
- package/dist/assets/t9n/layer-list/resources_tr.json +1 -1
- package/dist/assets/t9n/layer-list/resources_uk.json +1 -1
- package/dist/assets/t9n/layer-list/resources_vi.json +1 -1
- package/dist/assets/t9n/layer-list/resources_zh-CN.json +1 -1
- package/dist/assets/t9n/layer-list/resources_zh-HK.json +1 -1
- package/dist/assets/t9n/layer-list/resources_zh-TW.json +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +3 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +18 -2
- 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 +21 -1
- package/dist/collection/components/layer-table/layer-table.js +3 -2
- package/dist/components/crowdsource-manager.js +21 -3
- package/dist/components/layer-table2.js +3 -2
- package/dist/esm/card-manager_3.entry.js +3 -2
- package/dist/esm/crowdsource-manager.entry.js +18 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/p-1cf1a4d5.entry.js +6 -0
- package/dist/solutions-components/p-51d2370c.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-347a2b0d.entry.js +0 -6
- package/dist/solutions-components/p-6a598429.entry.js +0 -6
|
@@ -258,6 +258,7 @@ const LayerTable = class {
|
|
|
258
258
|
this._initLayerExpressions();
|
|
259
259
|
this._initToolInfos();
|
|
260
260
|
this._updateToolbar();
|
|
261
|
+
await this._sortTable();
|
|
261
262
|
}
|
|
262
263
|
/**
|
|
263
264
|
* watch for changes in map view and get the first layer
|
|
@@ -393,7 +394,7 @@ const LayerTable = class {
|
|
|
393
394
|
const selected = this.selectedIds.length.toString();
|
|
394
395
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
|
395
396
|
this._validateActiveActions();
|
|
396
|
-
return (index.h(index.Host, { key: '
|
|
397
|
+
return (index.h(index.Host, { key: 'a8110680363000bcec4eb6f0b4a94ee2f677dcca' }, index.h("calcite-shell", { key: '3c4471daca709db284ede134712933ada2213bdd' }, this._getTableControlRow("header"), index.h("div", { key: 'fce44e957e4490d6fd9cbcff02beec8cf1a780f4', class: `width-full ${tableHeightClass}` }, index.h("calcite-panel", { key: 'e75572b0f313f99489268f6d63b27b78c8722331', class: "height-full width-full" }, index.h("calcite-loader", { key: '2a34bd84408d1aff552f2818976e03c487443215', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), index.h("div", { key: '0823308992c61fa803cf5a526d903b629327c251', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (index.h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
|
397
398
|
.replace("{{total}}", total)
|
|
398
399
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
|
399
400
|
}
|
|
@@ -1206,7 +1207,7 @@ const LayerTable = class {
|
|
|
1206
1207
|
configuredLayer = this.mapInfo.layerOptions.layers.filter((layer) => layer.id === this._layer.id);
|
|
1207
1208
|
if (configuredLayer && configuredLayer.length > 0) {
|
|
1208
1209
|
configuredLayer = configuredLayer[0];
|
|
1209
|
-
//if sort field is defined and sortField is available in the fields then use it
|
|
1210
|
+
//if sort field is defined and sortField is available in the fields then use it
|
|
1210
1211
|
if (configuredLayer.sortField && ((_d = configuredLayer.fields) === null || _d === void 0 ? void 0 : _d.includes(configuredLayer.sortField))) {
|
|
1211
1212
|
sortField = configuredLayer.sortField;
|
|
1212
1213
|
}
|
|
@@ -100,6 +100,20 @@ const CrowdsourceManager = class {
|
|
|
100
100
|
enableZoomWatchHandler() {
|
|
101
101
|
this._initMapZoom();
|
|
102
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* When true the map will be hidden on load
|
|
105
|
+
*/
|
|
106
|
+
hideMapOnLoadWatchHandler() {
|
|
107
|
+
this.showHideMapPopupAndTable(true);
|
|
108
|
+
this._expandPopup = this.hideMapOnLoad;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* When true the map will be hidden on load
|
|
112
|
+
*/
|
|
113
|
+
mapInfosWatchHandler() {
|
|
114
|
+
console.log("mapInfosWatchHandler");
|
|
115
|
+
console.log(this.mapInfos);
|
|
116
|
+
}
|
|
103
117
|
/**
|
|
104
118
|
* Listen for changes in feature selection and show or hide the map, popup, and table
|
|
105
119
|
*/
|
|
@@ -184,7 +198,7 @@ const CrowdsourceManager = class {
|
|
|
184
198
|
render() {
|
|
185
199
|
// only avoid border when we have a header color that is not white
|
|
186
200
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
|
187
|
-
return (index.h(index.Host, { key: '
|
|
201
|
+
return (index.h(index.Host, { key: '8deef9c7dc113fa8aa03bb0841f5ec10a39de007' }, index.h("calcite-shell", { key: '652ec17baa763639ee7828383be371339c034670', class: "position-relative" }, index.h("calcite-panel", { key: '8ec3c3bd12c2fbed9b5166b683ee9cf79c7f3a88', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
|
188
202
|
}
|
|
189
203
|
/**
|
|
190
204
|
* Called after each render
|
|
@@ -506,7 +520,9 @@ const CrowdsourceManager = class {
|
|
|
506
520
|
}
|
|
507
521
|
get el() { return index.getElement(this); }
|
|
508
522
|
static get watchers() { return {
|
|
509
|
-
"enableZoom": ["enableZoomWatchHandler"]
|
|
523
|
+
"enableZoom": ["enableZoomWatchHandler"],
|
|
524
|
+
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"],
|
|
525
|
+
"mapInfos": ["mapInfosWatchHandler"]
|
|
510
526
|
}; }
|
|
511
527
|
};
|
|
512
528
|
CrowdsourceManager.style = CrowdsourceManagerStyle0;
|