@esri/solutions-components 0.8.20 → 0.8.22
Sign up to get free protection for your applications and to get access to all the features.
- 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 +7 -6
- 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 +7 -6
- package/dist/components/crowdsource-manager.js +21 -3
- package/dist/components/layer-table2.js +7 -6
- package/dist/esm/card-manager_3.entry.js +7 -6
- 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-5a740f6c.entry.js +6 -0
- package/dist/solutions-components/p-f43d6a86.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
|
}
|
@@ -1196,18 +1197,18 @@ const LayerTable = class {
|
|
1196
1197
|
* Sort the table with the configured field and the sort order
|
1197
1198
|
*/
|
1198
1199
|
async _sortTable() {
|
1199
|
-
var _a, _b, _c, _d;
|
1200
|
+
var _a, _b, _c, _d, _e;
|
1200
1201
|
//By default sort the table using objectIdField and in descending order
|
1201
|
-
let sortField = this._layer.objectIdField;
|
1202
|
+
let sortField = (_a = this._layer) === null || _a === void 0 ? void 0 : _a.objectIdField;
|
1202
1203
|
let sortOrder = 'desc';
|
1203
1204
|
let configuredLayer;
|
1204
1205
|
//get the sortField and sortOrder from the configuration
|
1205
|
-
if (((
|
1206
|
+
if (((_d = (_c = (_b = this.mapInfo) === null || _b === void 0 ? void 0 : _b.layerOptions) === null || _c === void 0 ? void 0 : _c.layers) === null || _d === void 0 ? void 0 : _d.length) > 0) {
|
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 (configuredLayer.sortField && ((
|
1210
|
+
//if sort field is defined and sortField is available in the fields then use it
|
1211
|
+
if (configuredLayer.sortField && ((_e = configuredLayer.fields) === null || _e === void 0 ? void 0 : _e.includes(configuredLayer.sortField))) {
|
1211
1212
|
sortField = configuredLayer.sortField;
|
1212
1213
|
}
|
1213
1214
|
//use sort order if configured
|
@@ -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(this.hideMapOnLoad);
|
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: 'aa063ae3fc59a7f3969aaa5b569fbd0ef09a1766' }, index.h("calcite-shell", { key: 'd5d5cdb201c24f2123089c5cd5f70f973aa24e78', class: "position-relative" }, index.h("calcite-panel", { key: 'c95bb56946b85574825160acf1411fdf7308cc8c', 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;
|