@esri/solutions-components 0.8.59 → 0.8.61
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
- package/dist/cjs/buffer-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-alert_4.cjs.entry.js +4 -4
- package/dist/cjs/calcite-block_5.cjs.entry.js +4 -4
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-flow_6.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -2
- package/dist/cjs/card-manager_3.cjs.entry.js +24 -9
- package/dist/cjs/consent-manager.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -12
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +2 -2
- package/dist/cjs/{downloadUtils-2e169425.js → downloadUtils-f4b01945.js} +2 -2
- package/dist/cjs/feature-list.cjs.entry.js +4 -4
- package/dist/cjs/{helpers-95c28cf3.js → helpers-0104985c.js} +1 -1
- package/dist/cjs/{index.es-301b8d18.js → index.es-08ff626f.js} +3 -3
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-create.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-export.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-popover.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-splash.cjs.entry.js +4 -4
- package/dist/cjs/{languageSwitcher-f0bb94fa.js → languageSwitcher-dc2dd354.js} +1 -1
- package/dist/cjs/{languageUtil-f22ce913.js → languageUtil-a3e1eafd.js} +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +2 -2
- package/dist/cjs/{loadModules-36d49819.js → loadModules-8567855e.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-708985a1.js → locale-1d07e942.js} +2 -2
- package/dist/cjs/{locale-f6fd03d2.js → locale-31289fc5.js} +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/{popupUtils-36e57a27.js → popupUtils-64405c62.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +3 -3
- package/dist/cjs/solution-configuration.cjs.entry.js +2 -2
- package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
- package/dist/cjs/{utils-31a22d49.js → utils-0ab15745.js} +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -11
- package/dist/collection/components/layer-table/layer-table.js +21 -6
- package/dist/components/crowdsource-manager.js +3 -12
- package/dist/components/layer-table2.js +21 -6
- package/dist/esm/basemap-gallery_7.entry.js +2 -2
- package/dist/esm/buffer-tools_3.entry.js +2 -2
- package/dist/esm/calcite-action-pad_2.entry.js +2 -2
- package/dist/esm/calcite-alert_4.entry.js +4 -4
- package/dist/esm/calcite-block_5.entry.js +4 -4
- package/dist/esm/calcite-dropdown-group_2.entry.js +2 -2
- package/dist/esm/calcite-flow_6.entry.js +2 -2
- package/dist/esm/calcite-shell-panel_14.entry.js +2 -2
- package/dist/esm/card-manager_3.entry.js +24 -9
- package/dist/esm/consent-manager.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +4 -12
- package/dist/esm/crowdsource-reporter.entry.js +2 -2
- package/dist/esm/{downloadUtils-5fbd8a40.js → downloadUtils-408e0384.js} +2 -2
- package/dist/esm/feature-list.entry.js +4 -4
- package/dist/esm/{helpers-3d53560f.js → helpers-3407a4b6.js} +1 -1
- package/dist/esm/{index.es-66571353.js → index.es-cac1405b.js} +3 -3
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
- package/dist/esm/instant-apps-control-panel.entry.js +2 -2
- package/dist/esm/instant-apps-create.entry.js +4 -4
- package/dist/esm/instant-apps-export.entry.js +4 -4
- package/dist/esm/instant-apps-header.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +5 -5
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +4 -4
- package/dist/esm/instant-apps-language-switcher.entry.js +6 -6
- package/dist/esm/instant-apps-language-translator.entry.js +6 -6
- package/dist/esm/instant-apps-measurement.entry.js +4 -4
- package/dist/esm/instant-apps-popover.entry.js +4 -4
- package/dist/esm/instant-apps-scoreboard.entry.js +4 -4
- package/dist/esm/instant-apps-sign-in.entry.js +4 -4
- package/dist/esm/instant-apps-splash.entry.js +4 -4
- package/dist/esm/{languageSwitcher-b665499d.js → languageSwitcher-9db90f1e.js} +1 -1
- package/dist/esm/{languageUtil-a3e6adf6.js → languageUtil-2b6e191a.js} +1 -1
- package/dist/esm/layout-manager.entry.js +2 -2
- package/dist/esm/{loadModules-9c062d08.js → loadModules-03ba7abe.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-28d48640.js → locale-4adfc8cf.js} +1 -1
- package/dist/esm/{locale-b4e7d56f.js → locale-d66155ee.js} +2 -2
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/{popupUtils-4a91aa2a.js → popupUtils-142f616a.js} +2 -2
- package/dist/esm/public-notification.entry.js +3 -3
- package/dist/esm/solution-configuration.entry.js +2 -2
- package/dist/esm/solution-contents_3.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +2 -2
- package/dist/esm/{utils-5484fcbf.js → utils-efd425d4.js} +1 -1
- package/dist/solutions-components/p-03b07165.entry.js +6 -0
- package/dist/solutions-components/{p-9e3b0220.entry.js → p-0534b446.entry.js} +1 -1
- package/dist/solutions-components/{p-3e8562b5.entry.js → p-057f9296.entry.js} +1 -1
- package/dist/solutions-components/{p-ce4b6931.entry.js → p-09de2308.entry.js} +1 -1
- package/dist/solutions-components/{p-7696af8e.entry.js → p-120a2091.entry.js} +1 -1
- package/dist/solutions-components/{p-5cc6eb18.js → p-12f9f81d.js} +1 -1
- package/dist/solutions-components/{p-427b4593.js → p-1c64264d.js} +1 -1
- package/dist/solutions-components/{p-ccd1e256.entry.js → p-2671a80b.entry.js} +1 -1
- package/dist/solutions-components/{p-d2de2b2a.entry.js → p-2e2e975a.entry.js} +1 -1
- package/dist/solutions-components/{p-c742acd9.js → p-2fc63144.js} +1 -1
- package/dist/solutions-components/{p-969828ab.entry.js → p-30f0687e.entry.js} +1 -1
- package/dist/solutions-components/p-318eac43.entry.js +6 -0
- package/dist/solutions-components/{p-6e6e6d23.entry.js → p-3ec70ff5.entry.js} +1 -1
- package/dist/solutions-components/{p-bbc7dd5e.entry.js → p-4250f852.entry.js} +1 -1
- package/dist/solutions-components/{p-36e199e0.entry.js → p-4bfec58a.entry.js} +1 -1
- package/dist/solutions-components/{p-ae50581b.entry.js → p-4c8fdf0b.entry.js} +1 -1
- package/dist/solutions-components/{p-65581d83.js → p-4cd4cb85.js} +1 -1
- package/dist/solutions-components/{p-b7123452.entry.js → p-54562381.entry.js} +1 -1
- package/dist/solutions-components/{p-2d6d44b5.entry.js → p-6067b27a.entry.js} +1 -1
- package/dist/solutions-components/{p-986ee365.entry.js → p-62e5aea4.entry.js} +1 -1
- package/dist/solutions-components/{p-00291b93.js → p-67c3ac62.js} +2 -2
- package/dist/solutions-components/{p-c6fd40f9.entry.js → p-6e65d93b.entry.js} +1 -1
- package/dist/solutions-components/{p-bd871071.entry.js → p-6f4a40fa.entry.js} +1 -1
- package/dist/solutions-components/{p-d73b90ab.entry.js → p-7058b4fa.entry.js} +1 -1
- package/dist/solutions-components/{p-44fea43a.js → p-742b5af7.js} +1 -1
- package/dist/solutions-components/{p-0cd87dca.entry.js → p-7b9207e4.entry.js} +1 -1
- package/dist/solutions-components/{p-6c7a990a.entry.js → p-80e42752.entry.js} +1 -1
- package/dist/solutions-components/{p-b92e9047.entry.js → p-83640661.entry.js} +1 -1
- package/dist/solutions-components/{p-2467b476.entry.js → p-83fdb1d4.entry.js} +1 -1
- package/dist/solutions-components/{p-1c3c83a5.js → p-841863b8.js} +1 -1
- package/dist/solutions-components/{p-a8d62b7d.entry.js → p-967411c5.entry.js} +1 -1
- package/dist/solutions-components/{p-af2c8aa9.js → p-ac122d9e.js} +1 -1
- package/dist/solutions-components/{p-cb4842dd.entry.js → p-b0985f9d.entry.js} +1 -1
- package/dist/solutions-components/{p-dae9d5b3.entry.js → p-bc8b4f68.entry.js} +1 -1
- package/dist/solutions-components/{p-ffd41e25.js → p-c0bf1d9f.js} +3 -3
- package/dist/solutions-components/{p-bb7463ed.entry.js → p-d3a2d182.entry.js} +1 -1
- package/dist/solutions-components/{p-e80751f4.entry.js → p-d61bbc4c.entry.js} +1 -1
- package/dist/solutions-components/{p-2961c63c.entry.js → p-d72b4031.entry.js} +1 -1
- package/dist/solutions-components/{p-881ead62.entry.js → p-d783ae9a.entry.js} +1 -1
- package/dist/solutions-components/{p-61f88049.entry.js → p-ddd9d50f.entry.js} +1 -1
- package/dist/solutions-components/{p-295f850a.entry.js → p-df2fc967.entry.js} +1 -1
- package/dist/solutions-components/{p-1e6c6ec4.entry.js → p-e900ec51.entry.js} +1 -1
- package/dist/solutions-components/{p-df56c019.entry.js → p-ed71dfdc.entry.js} +1 -1
- package/dist/solutions-components/{p-219f209e.entry.js → p-ee62f91c.entry.js} +1 -1
- package/dist/solutions-components/{p-e8ed3fa6.entry.js → p-f629ed65.entry.js} +1 -1
- package/dist/solutions-components/{p-932d6f29.entry.js → p-faed40ad.entry.js} +1 -1
- package/dist/solutions-components/{p-91142a26.js → p-fea7535c.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +0 -4
- package/package.json +1 -1
- package/dist/solutions-components/p-13404ad7.entry.js +0 -6
- package/dist/solutions-components/p-d300430b.entry.js +0 -6
- package/dist/solutions-components_commit.txt +0 -8
- /package/dist/cjs/{esri-loader-a56cbcbe.js → esri-loader-08dc41bd.js} +0 -0
- /package/dist/esm/{esri-loader-781d738a.js → esri-loader-c6842c6b.js} +0 -0
- /package/dist/solutions-components/{p-6a68306c.js → p-0a24ad5f.js} +0 -0
@@ -8,9 +8,9 @@
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
10
|
const index = require('./index-ff18be0d.js');
|
11
|
-
const locale = require('./locale-
|
11
|
+
const locale = require('./locale-31289fc5.js');
|
12
12
|
const common = require('./common-7ee7ad73.js');
|
13
|
-
require('./esri-loader-
|
13
|
+
require('./esri-loader-08dc41bd.js');
|
14
14
|
require('./_commonjsHelpers-baf43783.js');
|
15
15
|
require('./solution-resource-a09a6fe0.js');
|
16
16
|
require('./index-f64944ad.js');
|
@@ -115,13 +115,6 @@ export class CrowdsourceManager {
|
|
115
115
|
this.showHideMapPopupAndTable(this.hideMapOnLoad && !this._isMobile);
|
116
116
|
this._expandPopup = this.hideMapOnLoad && !this._isMobile;
|
117
117
|
}
|
118
|
-
/**
|
119
|
-
* When true the map will be hidden on load
|
120
|
-
*/
|
121
|
-
mapInfosWatchHandler() {
|
122
|
-
console.log("mapInfosWatchHandler");
|
123
|
-
console.log(this.mapInfos);
|
124
|
-
}
|
125
118
|
/**
|
126
119
|
* Listen for changes in feature selection and show or hide the map, popup, and table
|
127
120
|
*/
|
@@ -207,7 +200,7 @@ export class CrowdsourceManager {
|
|
207
200
|
render() {
|
208
201
|
// only avoid border when we have a header color that is not white
|
209
202
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
210
|
-
return (h(Host, { key: '
|
203
|
+
return (h(Host, { key: 'f16033bd0f93446f9e0aeb38a6b172d021586a25' }, h("calcite-shell", { key: '9aee01a563e12168373ddc1aea40e1fac2f65cc4', class: "position-relative" }, h("calcite-panel", { key: 'e2333aedf094999f56823650b7585ac5915668ea', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
211
204
|
}
|
212
205
|
/**
|
213
206
|
* Called after each render
|
@@ -1267,9 +1260,6 @@ export class CrowdsourceManager {
|
|
1267
1260
|
}, {
|
1268
1261
|
"propName": "hideMapOnLoad",
|
1269
1262
|
"methodName": "hideMapOnLoadWatchHandler"
|
1270
|
-
}, {
|
1271
|
-
"propName": "mapInfos",
|
1272
|
-
"methodName": "mapInfosWatchHandler"
|
1273
1263
|
}];
|
1274
1264
|
}
|
1275
1265
|
static get listeners() {
|
@@ -182,7 +182,6 @@ export class LayerTable {
|
|
182
182
|
this._initLayerExpressions();
|
183
183
|
this._initToolInfos();
|
184
184
|
this._updateToolbar();
|
185
|
-
console.log("mapInfoWatchHandler");
|
186
185
|
await this._sortTable();
|
187
186
|
}
|
188
187
|
/**
|
@@ -329,7 +328,7 @@ export class LayerTable {
|
|
329
328
|
const selected = this.selectedIds.length.toString();
|
330
329
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
331
330
|
this._validateActiveActions();
|
332
|
-
return (h(Host, { key: '
|
331
|
+
return (h(Host, { key: 'ac2aafd7877dc7c97067dbf0d7ae642799ff6af7' }, h("calcite-shell", { key: '06963da4964e6075f09c21506af9b0fdc2a62a4f' }, this._getTableControlRow("header"), h("div", { key: '1d1c5aede89e78f61f677234a81d3960acdd9a73', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'c9b8336e1d0dc77faec304b26a04673be63173d6', class: "height-full width-full" }, h("calcite-loader", { key: 'abd051ee71d7d73e67480593911f7e20b3121b0c', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: 'e9ba0160f5c74aae1fa9f0ce97e698d034bb09da', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
333
332
|
.replace("{{total}}", total)
|
334
333
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
335
334
|
}
|
@@ -993,11 +992,16 @@ export class LayerTable {
|
|
993
992
|
*/
|
994
993
|
_resetColumnTemplates() {
|
995
994
|
var _a, _b;
|
995
|
+
console.log("_resetColumnTemplates");
|
996
996
|
const columnTemplates = this._getColumnTemplates((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id, (_b = this._layer) === null || _b === void 0 ? void 0 : _b.fields);
|
997
997
|
const hasChange = columnTemplates === null || columnTemplates === void 0 ? void 0 : columnTemplates.some((ct, i) => {
|
998
998
|
var _a;
|
999
999
|
return JSON.stringify((_a = this._table) === null || _a === void 0 ? void 0 : _a.tableTemplate.columnTemplates[i]) !== JSON.stringify(ct);
|
1000
1000
|
});
|
1001
|
+
console.log(this._table);
|
1002
|
+
console.log(columnTemplates);
|
1003
|
+
console.log(hasChange);
|
1004
|
+
console.log(!this._columnsInfo);
|
1001
1005
|
if (this._table && columnTemplates && (hasChange || !this._columnsInfo)) {
|
1002
1006
|
this._table.tableTemplate = new this.TableTemplate({
|
1003
1007
|
columnTemplates
|
@@ -1011,6 +1015,9 @@ export class LayerTable {
|
|
1011
1015
|
*/
|
1012
1016
|
async _resetTable() {
|
1013
1017
|
var _a;
|
1018
|
+
console.log("_resetTable");
|
1019
|
+
console.log(this._table);
|
1020
|
+
console.log(this._layer);
|
1014
1021
|
this._clearSelection();
|
1015
1022
|
this._allIds = await queryAllIds(this._layer);
|
1016
1023
|
if (!this._table) {
|
@@ -1024,6 +1031,8 @@ export class LayerTable {
|
|
1024
1031
|
await this._initLayerRefresh();
|
1025
1032
|
this._checkEditEnabled();
|
1026
1033
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
1034
|
+
await this._table.when();
|
1035
|
+
console.log("after table when");
|
1027
1036
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
1028
1037
|
.then(async () => {
|
1029
1038
|
console.log("this._table.state === 'loaded'");
|
@@ -1130,18 +1139,23 @@ export class LayerTable {
|
|
1130
1139
|
* Sort the table with the configured field and the sort order
|
1131
1140
|
*/
|
1132
1141
|
async _sortTable() {
|
1133
|
-
var _a, _b, _c, _d, _e, _f;
|
1142
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
1143
|
+
console.log("_sortTable");
|
1144
|
+
console.log(this._table);
|
1145
|
+
console.log(this._layer);
|
1146
|
+
console.log((_b = (_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.layerOptions) === null || _b === void 0 ? void 0 : _b.layers);
|
1147
|
+
console.log((_d = (_c = this.mapInfo) === null || _c === void 0 ? void 0 : _c.layerOptions) === null || _d === void 0 ? void 0 : _d.layers);
|
1134
1148
|
//By default sort the table using objectIdField and in descending order
|
1135
|
-
let sortField = (
|
1149
|
+
let sortField = (_e = this._layer) === null || _e === void 0 ? void 0 : _e.objectIdField;
|
1136
1150
|
let sortOrder = 'desc';
|
1137
1151
|
let configuredLayer;
|
1138
1152
|
//get the sortField and sortOrder from the configuration
|
1139
|
-
if (((
|
1153
|
+
if (((_h = (_g = (_f = this.mapInfo) === null || _f === void 0 ? void 0 : _f.layerOptions) === null || _g === void 0 ? void 0 : _g.layers) === null || _h === void 0 ? void 0 : _h.length) > 0 && ((_j = this._layer) === null || _j === void 0 ? void 0 : _j.id)) {
|
1140
1154
|
configuredLayer = this.mapInfo.layerOptions.layers.filter((layer) => layer.id === this._layer.id);
|
1141
1155
|
if (configuredLayer && configuredLayer.length > 0) {
|
1142
1156
|
configuredLayer = configuredLayer[0];
|
1143
1157
|
//if sort field is defined and sortField is available in the fields then use it
|
1144
|
-
if (configuredLayer.sortField && ((
|
1158
|
+
if (configuredLayer.sortField && ((_k = configuredLayer.fields) === null || _k === void 0 ? void 0 : _k.includes(configuredLayer.sortField))) {
|
1145
1159
|
sortField = configuredLayer.sortField;
|
1146
1160
|
}
|
1147
1161
|
//use sort order if configured
|
@@ -1149,6 +1163,7 @@ export class LayerTable {
|
|
1149
1163
|
}
|
1150
1164
|
}
|
1151
1165
|
if (this._table && this._layer) {
|
1166
|
+
console.log("has layer and has table");
|
1152
1167
|
await this._table.when();
|
1153
1168
|
await this._layer.when(() => {
|
1154
1169
|
console.log("sort on this._layer.when");
|
@@ -165,13 +165,6 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
165
165
|
this.showHideMapPopupAndTable(this.hideMapOnLoad && !this._isMobile);
|
166
166
|
this._expandPopup = this.hideMapOnLoad && !this._isMobile;
|
167
167
|
}
|
168
|
-
/**
|
169
|
-
* When true the map will be hidden on load
|
170
|
-
*/
|
171
|
-
mapInfosWatchHandler() {
|
172
|
-
console.log("mapInfosWatchHandler");
|
173
|
-
console.log(this.mapInfos);
|
174
|
-
}
|
175
168
|
/**
|
176
169
|
* Listen for changes in feature selection and show or hide the map, popup, and table
|
177
170
|
*/
|
@@ -257,7 +250,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
257
250
|
render() {
|
258
251
|
// only avoid border when we have a header color that is not white
|
259
252
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
260
|
-
return (h(Host, { key: '
|
253
|
+
return (h(Host, { key: 'f16033bd0f93446f9e0aeb38a6b172d021586a25' }, h("calcite-shell", { key: '9aee01a563e12168373ddc1aea40e1fac2f65cc4', class: "position-relative" }, h("calcite-panel", { key: 'e2333aedf094999f56823650b7585ac5915668ea', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
261
254
|
}
|
262
255
|
/**
|
263
256
|
* Called after each render
|
@@ -593,8 +586,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
593
586
|
get el() { return this; }
|
594
587
|
static get watchers() { return {
|
595
588
|
"enableZoom": ["enableZoomWatchHandler"],
|
596
|
-
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
|
597
|
-
"mapInfos": ["mapInfosWatchHandler"]
|
589
|
+
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
|
598
590
|
}; }
|
599
591
|
static get style() { return CrowdsourceManagerStyle0; }
|
600
592
|
}, [0, "crowdsource-manager", {
|
@@ -648,8 +640,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
648
640
|
"_tableOnly": [32]
|
649
641
|
}, [[8, "featureSelectionChange", "featureSelectionChange"], [8, "popupClosed", "popupClosed"], [8, "idsFound", "idsFound"], [8, "layoutChanged", "layoutChanged"], [8, "mapChanged", "mapChanged"], [8, "beforeMapChanged", "beforeMapChanged"], [8, "layerSelectionChange", "layerSelectionChange"], [8, "mapInfoChange", "mapInfoChange"]], {
|
650
642
|
"enableZoom": ["enableZoomWatchHandler"],
|
651
|
-
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
|
652
|
-
"mapInfos": ["mapInfosWatchHandler"]
|
643
|
+
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
|
653
644
|
}]);
|
654
645
|
function defineCustomElement$1() {
|
655
646
|
if (typeof customElements === "undefined") {
|
@@ -212,7 +212,6 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
212
212
|
this._initLayerExpressions();
|
213
213
|
this._initToolInfos();
|
214
214
|
this._updateToolbar();
|
215
|
-
console.log("mapInfoWatchHandler");
|
216
215
|
await this._sortTable();
|
217
216
|
}
|
218
217
|
/**
|
@@ -359,7 +358,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
359
358
|
const selected = this.selectedIds.length.toString();
|
360
359
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
361
360
|
this._validateActiveActions();
|
362
|
-
return (h(Host, { key: '
|
361
|
+
return (h(Host, { key: 'ac2aafd7877dc7c97067dbf0d7ae642799ff6af7' }, h("calcite-shell", { key: '06963da4964e6075f09c21506af9b0fdc2a62a4f' }, this._getTableControlRow("header"), h("div", { key: '1d1c5aede89e78f61f677234a81d3960acdd9a73', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'c9b8336e1d0dc77faec304b26a04673be63173d6', class: "height-full width-full" }, h("calcite-loader", { key: 'abd051ee71d7d73e67480593911f7e20b3121b0c', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: 'e9ba0160f5c74aae1fa9f0ce97e698d034bb09da', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
363
362
|
.replace("{{total}}", total)
|
364
363
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
365
364
|
}
|
@@ -1023,11 +1022,16 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1023
1022
|
*/
|
1024
1023
|
_resetColumnTemplates() {
|
1025
1024
|
var _a, _b;
|
1025
|
+
console.log("_resetColumnTemplates");
|
1026
1026
|
const columnTemplates = this._getColumnTemplates((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id, (_b = this._layer) === null || _b === void 0 ? void 0 : _b.fields);
|
1027
1027
|
const hasChange = columnTemplates === null || columnTemplates === void 0 ? void 0 : columnTemplates.some((ct, i) => {
|
1028
1028
|
var _a;
|
1029
1029
|
return JSON.stringify((_a = this._table) === null || _a === void 0 ? void 0 : _a.tableTemplate.columnTemplates[i]) !== JSON.stringify(ct);
|
1030
1030
|
});
|
1031
|
+
console.log(this._table);
|
1032
|
+
console.log(columnTemplates);
|
1033
|
+
console.log(hasChange);
|
1034
|
+
console.log(!this._columnsInfo);
|
1031
1035
|
if (this._table && columnTemplates && (hasChange || !this._columnsInfo)) {
|
1032
1036
|
this._table.tableTemplate = new this.TableTemplate({
|
1033
1037
|
columnTemplates
|
@@ -1041,6 +1045,9 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1041
1045
|
*/
|
1042
1046
|
async _resetTable() {
|
1043
1047
|
var _a;
|
1048
|
+
console.log("_resetTable");
|
1049
|
+
console.log(this._table);
|
1050
|
+
console.log(this._layer);
|
1044
1051
|
this._clearSelection();
|
1045
1052
|
this._allIds = await queryAllIds(this._layer);
|
1046
1053
|
if (!this._table) {
|
@@ -1054,6 +1061,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1054
1061
|
await this._initLayerRefresh();
|
1055
1062
|
this._checkEditEnabled();
|
1056
1063
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
1064
|
+
await this._table.when();
|
1065
|
+
console.log("after table when");
|
1057
1066
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
1058
1067
|
.then(async () => {
|
1059
1068
|
console.log("this._table.state === 'loaded'");
|
@@ -1160,18 +1169,23 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1160
1169
|
* Sort the table with the configured field and the sort order
|
1161
1170
|
*/
|
1162
1171
|
async _sortTable() {
|
1163
|
-
var _a, _b, _c, _d, _e, _f;
|
1172
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
1173
|
+
console.log("_sortTable");
|
1174
|
+
console.log(this._table);
|
1175
|
+
console.log(this._layer);
|
1176
|
+
console.log((_b = (_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.layerOptions) === null || _b === void 0 ? void 0 : _b.layers);
|
1177
|
+
console.log((_d = (_c = this.mapInfo) === null || _c === void 0 ? void 0 : _c.layerOptions) === null || _d === void 0 ? void 0 : _d.layers);
|
1164
1178
|
//By default sort the table using objectIdField and in descending order
|
1165
|
-
let sortField = (
|
1179
|
+
let sortField = (_e = this._layer) === null || _e === void 0 ? void 0 : _e.objectIdField;
|
1166
1180
|
let sortOrder = 'desc';
|
1167
1181
|
let configuredLayer;
|
1168
1182
|
//get the sortField and sortOrder from the configuration
|
1169
|
-
if (((
|
1183
|
+
if (((_h = (_g = (_f = this.mapInfo) === null || _f === void 0 ? void 0 : _f.layerOptions) === null || _g === void 0 ? void 0 : _g.layers) === null || _h === void 0 ? void 0 : _h.length) > 0 && ((_j = this._layer) === null || _j === void 0 ? void 0 : _j.id)) {
|
1170
1184
|
configuredLayer = this.mapInfo.layerOptions.layers.filter((layer) => layer.id === this._layer.id);
|
1171
1185
|
if (configuredLayer && configuredLayer.length > 0) {
|
1172
1186
|
configuredLayer = configuredLayer[0];
|
1173
1187
|
//if sort field is defined and sortField is available in the fields then use it
|
1174
|
-
if (configuredLayer.sortField && ((
|
1188
|
+
if (configuredLayer.sortField && ((_k = configuredLayer.fields) === null || _k === void 0 ? void 0 : _k.includes(configuredLayer.sortField))) {
|
1175
1189
|
sortField = configuredLayer.sortField;
|
1176
1190
|
}
|
1177
1191
|
//use sort order if configured
|
@@ -1179,6 +1193,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1179
1193
|
}
|
1180
1194
|
}
|
1181
1195
|
if (this._table && this._layer) {
|
1196
|
+
console.log("has layer and has table");
|
1182
1197
|
await this._table.when();
|
1183
1198
|
await this._layer.when(() => {
|
1184
1199
|
console.log("sort on this._layer.when");
|
@@ -4,8 +4,8 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-83b693bc.js';
|
7
|
-
import { l as loadModules, g as getLocaleComponentStrings } from './locale-
|
8
|
-
import './esri-loader-
|
7
|
+
import { l as loadModules, g as getLocaleComponentStrings } from './locale-4adfc8cf.js';
|
8
|
+
import './esri-loader-c6842c6b.js';
|
9
9
|
import './_commonjsHelpers-089957fe.js';
|
10
10
|
|
11
11
|
const basemapGalleryCss = ":host{display:block}";
|
@@ -4,11 +4,11 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-83b693bc.js';
|
7
|
-
import { l as loadModules, g as getLocaleComponentStrings } from './locale-
|
7
|
+
import { l as loadModules, g as getLocaleComponentStrings } from './locale-4adfc8cf.js';
|
8
8
|
import { y as setRequestedIcon } from './dom-d675fe65.js';
|
9
9
|
import { f as EDrawMode } from './interfaces-586e863c.js';
|
10
10
|
import { s as state } from './publicNotificationStore-08faccff.js';
|
11
|
-
import './esri-loader-
|
11
|
+
import './esri-loader-c6842c6b.js';
|
12
12
|
import './_commonjsHelpers-089957fe.js';
|
13
13
|
import './guid-f05d01d5.js';
|
14
14
|
import './resources-1febf4c6.js';
|
@@ -11,13 +11,13 @@ import { c as connectLocalized, d as disconnectLocalized } from './locale-a4cbae
|
|
11
11
|
import { u as updateMessages, c as connectMessages, d as disconnectMessages, s as setUpMessages } from './t9n-dd2a98fc.js';
|
12
12
|
import { t as toggleChildActionText, E as ExpandToggle } from './ExpandToggle-12c73c9f.js';
|
13
13
|
import { c as createObserver } from './observers-fcb1c07b.js';
|
14
|
-
import { l as loadModules } from './loadModules-
|
14
|
+
import { l as loadModules } from './loadModules-03ba7abe.js';
|
15
15
|
import './guid-f05d01d5.js';
|
16
16
|
import './resources-1febf4c6.js';
|
17
17
|
import './key-092b6260.js';
|
18
18
|
import './resources-7c4efc5e.js';
|
19
19
|
import './resources-7d202c09.js';
|
20
|
-
import './esri-loader-
|
20
|
+
import './esri-loader-c6842c6b.js';
|
21
21
|
import './_commonjsHelpers-089957fe.js';
|
22
22
|
|
23
23
|
/*!
|
@@ -11,17 +11,17 @@ import { N as NumberStringFormat, c as connectLocalized, d as disconnectLocalize
|
|
11
11
|
import { o as onToggleOpenCloseComponent } from './openCloseComponent-bbe76c58.js';
|
12
12
|
import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-dd2a98fc.js';
|
13
13
|
import { K as KindIcons } from './resources-ae36eaff.js';
|
14
|
-
import { g as getLocaleComponentStrings, l as loadModules } from './locale-
|
14
|
+
import { g as getLocaleComponentStrings, l as loadModules } from './locale-4adfc8cf.js';
|
15
15
|
import { a as getAllLayers } from './mapViewUtils-e3de60cc.js';
|
16
|
-
import { P as PopupUtils } from './popupUtils-
|
16
|
+
import { P as PopupUtils } from './popupUtils-142f616a.js';
|
17
17
|
import './guid-f05d01d5.js';
|
18
18
|
import './resources-1febf4c6.js';
|
19
19
|
import './key-092b6260.js';
|
20
20
|
import './observers-fcb1c07b.js';
|
21
|
-
import './esri-loader-
|
21
|
+
import './esri-loader-c6842c6b.js';
|
22
22
|
import './_commonjsHelpers-089957fe.js';
|
23
23
|
import './interfaces-586e863c.js';
|
24
|
-
import './downloadUtils-
|
24
|
+
import './downloadUtils-408e0384.js';
|
25
25
|
import './solution-resource-3108caf7.js';
|
26
26
|
import './index-a1e91462.js';
|
27
27
|
import './restHelpersGet-5c822bcd.js';
|
@@ -21,16 +21,16 @@ import { c as connectFocusTrap, d as deactivateFocusTrap, a as activateFocusTrap
|
|
21
21
|
import { g as guid } from './guid-f05d01d5.js';
|
22
22
|
import { g as getIconScale } from './component-960ddabf.js';
|
23
23
|
import { V as Validation } from './Validation-6712b322.js';
|
24
|
-
import { l as loadModules } from './loadModules-
|
25
|
-
import { g as getMessages } from './locale-
|
24
|
+
import { l as loadModules } from './loadModules-03ba7abe.js';
|
25
|
+
import { g as getMessages } from './locale-d66155ee.js';
|
26
26
|
import { g as getMode } from './mode-8c5f5dc9.js';
|
27
27
|
import './observers-fcb1c07b.js';
|
28
28
|
import './resources-1febf4c6.js';
|
29
29
|
import './browser-e76c94f7.js';
|
30
30
|
import './debounce-6e9ade8c.js';
|
31
|
-
import './esri-loader-
|
31
|
+
import './esri-loader-c6842c6b.js';
|
32
32
|
import './_commonjsHelpers-089957fe.js';
|
33
|
-
import './languageUtil-
|
33
|
+
import './languageUtil-2b6e191a.js';
|
34
34
|
|
35
35
|
/*!
|
36
36
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
@@ -6,10 +6,10 @@
|
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-83b693bc.js';
|
7
7
|
import { c as createObserver } from './observers-fcb1c07b.js';
|
8
8
|
import { C as CSS } from './resources-16800cce.js';
|
9
|
-
import { g as getLocaleComponentStrings } from './locale-
|
9
|
+
import { g as getLocaleComponentStrings } from './locale-4adfc8cf.js';
|
10
10
|
import { d as getMapLayerHash, p as getMapTableHash } from './mapViewUtils-e3de60cc.js';
|
11
11
|
import { s as state } from './publicNotificationStore-08faccff.js';
|
12
|
-
import './esri-loader-
|
12
|
+
import './esri-loader-c6842c6b.js';
|
13
13
|
import './_commonjsHelpers-089957fe.js';
|
14
14
|
import './interfaces-586e863c.js';
|
15
15
|
import './index-d97f4f15.js';
|
@@ -11,13 +11,13 @@ import { c as connectInteractive, u as updateHostInteraction, d as disconnectInt
|
|
11
11
|
import { c as connectLocalized, d as disconnectLocalized } from './locale-a4cbae12.js';
|
12
12
|
import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-dd2a98fc.js';
|
13
13
|
import { S as SLOTS$1 } from './resources-810e7513.js';
|
14
|
-
import { l as loadModules, f as formatNumber, g as getLocaleComponentStrings } from './locale-
|
14
|
+
import { l as loadModules, f as formatNumber, g as getLocaleComponentStrings } from './locale-4adfc8cf.js';
|
15
15
|
import { a as getAllLayers, g as getLayerOrTable, b as getAllTables, d as getMapLayerHash } from './mapViewUtils-e3de60cc.js';
|
16
16
|
import './guid-f05d01d5.js';
|
17
17
|
import './resources-1febf4c6.js';
|
18
18
|
import './browser-e76c94f7.js';
|
19
19
|
import './key-092b6260.js';
|
20
|
-
import './esri-loader-
|
20
|
+
import './esri-loader-c6842c6b.js';
|
21
21
|
import './_commonjsHelpers-089957fe.js';
|
22
22
|
import './interfaces-586e863c.js';
|
23
23
|
|
@@ -20,7 +20,7 @@ import { q as getItemIndex, m as mutationObserverCallback, d as deselectRemovedI
|
|
20
20
|
import { d as dragActive, a as disconnectSortableComponent, c as connectSortableComponent } from './sortableComponent-e4ebf0bf.js';
|
21
21
|
import { C as CSS$5, S as SLOTS$3 } from './resources-dd68a4aa.js';
|
22
22
|
import { I as ICON_TYPES$1 } from './resources-e4b779b0.js';
|
23
|
-
import { g as getLocaleComponentStrings } from './locale-
|
23
|
+
import { g as getLocaleComponentStrings } from './locale-4adfc8cf.js';
|
24
24
|
import { s as state } from './solution-store-1c36ce1d.js';
|
25
25
|
import { d as EUpdateType } from './interfaces-586e863c.js';
|
26
26
|
import { E as EFileType } from './solution-resource-3108caf7.js';
|
@@ -30,7 +30,7 @@ import './browser-e76c94f7.js';
|
|
30
30
|
import './array-2604a55d.js';
|
31
31
|
import './resources-3587e9a5.js';
|
32
32
|
import './debounce-6e9ade8c.js';
|
33
|
-
import './esri-loader-
|
33
|
+
import './esri-loader-c6842c6b.js';
|
34
34
|
import './_commonjsHelpers-089957fe.js';
|
35
35
|
import './index-d97f4f15.js';
|
36
36
|
import './restHelpersGet-5c822bcd.js';
|
@@ -4,10 +4,10 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-83b693bc.js';
|
7
|
-
import { g as getLocaleComponentStrings, l as loadModules } from './locale-
|
7
|
+
import { g as getLocaleComponentStrings, l as loadModules } from './locale-4adfc8cf.js';
|
8
8
|
import { q as queryFeaturesByID, g as getLayerOrTable, e as goToSelection, f as queryAllIds, i as queryAllOidsWithQueryFeatures, j as queryFeaturesByGlobalID, c as getFeatureLayerView } from './mapViewUtils-e3de60cc.js';
|
9
|
-
import { d as downloadCSV } from './downloadUtils-
|
10
|
-
import './esri-loader-
|
9
|
+
import { d as downloadCSV } from './downloadUtils-408e0384.js';
|
10
|
+
import './esri-loader-c6842c6b.js';
|
11
11
|
import './_commonjsHelpers-089957fe.js';
|
12
12
|
import './interfaces-586e863c.js';
|
13
13
|
import './solution-resource-3108caf7.js';
|
@@ -265,7 +265,6 @@ const LayerTable = class {
|
|
265
265
|
this._initLayerExpressions();
|
266
266
|
this._initToolInfos();
|
267
267
|
this._updateToolbar();
|
268
|
-
console.log("mapInfoWatchHandler");
|
269
268
|
await this._sortTable();
|
270
269
|
}
|
271
270
|
/**
|
@@ -412,7 +411,7 @@ const LayerTable = class {
|
|
412
411
|
const selected = this.selectedIds.length.toString();
|
413
412
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
414
413
|
this._validateActiveActions();
|
415
|
-
return (h(Host, { key: '
|
414
|
+
return (h(Host, { key: 'ac2aafd7877dc7c97067dbf0d7ae642799ff6af7' }, h("calcite-shell", { key: '06963da4964e6075f09c21506af9b0fdc2a62a4f' }, this._getTableControlRow("header"), h("div", { key: '1d1c5aede89e78f61f677234a81d3960acdd9a73', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'c9b8336e1d0dc77faec304b26a04673be63173d6', class: "height-full width-full" }, h("calcite-loader", { key: 'abd051ee71d7d73e67480593911f7e20b3121b0c', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: 'e9ba0160f5c74aae1fa9f0ce97e698d034bb09da', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
416
415
|
.replace("{{total}}", total)
|
417
416
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
418
417
|
}
|
@@ -1076,11 +1075,16 @@ const LayerTable = class {
|
|
1076
1075
|
*/
|
1077
1076
|
_resetColumnTemplates() {
|
1078
1077
|
var _a, _b;
|
1078
|
+
console.log("_resetColumnTemplates");
|
1079
1079
|
const columnTemplates = this._getColumnTemplates((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id, (_b = this._layer) === null || _b === void 0 ? void 0 : _b.fields);
|
1080
1080
|
const hasChange = columnTemplates === null || columnTemplates === void 0 ? void 0 : columnTemplates.some((ct, i) => {
|
1081
1081
|
var _a;
|
1082
1082
|
return JSON.stringify((_a = this._table) === null || _a === void 0 ? void 0 : _a.tableTemplate.columnTemplates[i]) !== JSON.stringify(ct);
|
1083
1083
|
});
|
1084
|
+
console.log(this._table);
|
1085
|
+
console.log(columnTemplates);
|
1086
|
+
console.log(hasChange);
|
1087
|
+
console.log(!this._columnsInfo);
|
1084
1088
|
if (this._table && columnTemplates && (hasChange || !this._columnsInfo)) {
|
1085
1089
|
this._table.tableTemplate = new this.TableTemplate({
|
1086
1090
|
columnTemplates
|
@@ -1094,6 +1098,9 @@ const LayerTable = class {
|
|
1094
1098
|
*/
|
1095
1099
|
async _resetTable() {
|
1096
1100
|
var _a;
|
1101
|
+
console.log("_resetTable");
|
1102
|
+
console.log(this._table);
|
1103
|
+
console.log(this._layer);
|
1097
1104
|
this._clearSelection();
|
1098
1105
|
this._allIds = await queryAllIds(this._layer);
|
1099
1106
|
if (!this._table) {
|
@@ -1107,6 +1114,8 @@ const LayerTable = class {
|
|
1107
1114
|
await this._initLayerRefresh();
|
1108
1115
|
this._checkEditEnabled();
|
1109
1116
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
1117
|
+
await this._table.when();
|
1118
|
+
console.log("after table when");
|
1110
1119
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
1111
1120
|
.then(async () => {
|
1112
1121
|
console.log("this._table.state === 'loaded'");
|
@@ -1213,18 +1222,23 @@ const LayerTable = class {
|
|
1213
1222
|
* Sort the table with the configured field and the sort order
|
1214
1223
|
*/
|
1215
1224
|
async _sortTable() {
|
1216
|
-
var _a, _b, _c, _d, _e, _f;
|
1225
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
1226
|
+
console.log("_sortTable");
|
1227
|
+
console.log(this._table);
|
1228
|
+
console.log(this._layer);
|
1229
|
+
console.log((_b = (_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.layerOptions) === null || _b === void 0 ? void 0 : _b.layers);
|
1230
|
+
console.log((_d = (_c = this.mapInfo) === null || _c === void 0 ? void 0 : _c.layerOptions) === null || _d === void 0 ? void 0 : _d.layers);
|
1217
1231
|
//By default sort the table using objectIdField and in descending order
|
1218
|
-
let sortField = (
|
1232
|
+
let sortField = (_e = this._layer) === null || _e === void 0 ? void 0 : _e.objectIdField;
|
1219
1233
|
let sortOrder = 'desc';
|
1220
1234
|
let configuredLayer;
|
1221
1235
|
//get the sortField and sortOrder from the configuration
|
1222
|
-
if (((
|
1236
|
+
if (((_h = (_g = (_f = this.mapInfo) === null || _f === void 0 ? void 0 : _f.layerOptions) === null || _g === void 0 ? void 0 : _g.layers) === null || _h === void 0 ? void 0 : _h.length) > 0 && ((_j = this._layer) === null || _j === void 0 ? void 0 : _j.id)) {
|
1223
1237
|
configuredLayer = this.mapInfo.layerOptions.layers.filter((layer) => layer.id === this._layer.id);
|
1224
1238
|
if (configuredLayer && configuredLayer.length > 0) {
|
1225
1239
|
configuredLayer = configuredLayer[0];
|
1226
1240
|
//if sort field is defined and sortField is available in the fields then use it
|
1227
|
-
if (configuredLayer.sortField && ((
|
1241
|
+
if (configuredLayer.sortField && ((_k = configuredLayer.fields) === null || _k === void 0 ? void 0 : _k.includes(configuredLayer.sortField))) {
|
1228
1242
|
sortField = configuredLayer.sortField;
|
1229
1243
|
}
|
1230
1244
|
//use sort order if configured
|
@@ -1232,6 +1246,7 @@ const LayerTable = class {
|
|
1232
1246
|
}
|
1233
1247
|
}
|
1234
1248
|
if (this._table && this._layer) {
|
1249
|
+
console.log("has layer and has table");
|
1235
1250
|
await this._table.when();
|
1236
1251
|
await this._layer.when(() => {
|
1237
1252
|
console.log("sort on this._layer.when");
|
@@ -4,8 +4,8 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-83b693bc.js';
|
7
|
-
import { g as getLocaleComponentStrings } from './locale-
|
8
|
-
import './esri-loader-
|
7
|
+
import { g as getLocaleComponentStrings } from './locale-4adfc8cf.js';
|
8
|
+
import './esri-loader-c6842c6b.js';
|
9
9
|
import './_commonjsHelpers-089957fe.js';
|
10
10
|
|
11
11
|
function shouldDisableTracking(options = {}) {
|
@@ -4,10 +4,10 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-83b693bc.js';
|
7
|
-
import { g as getLocaleComponentStrings } from './locale-
|
7
|
+
import { g as getLocaleComponentStrings } from './locale-4adfc8cf.js';
|
8
8
|
import { E as ELayoutMode } from './interfaces-586e863c.js';
|
9
9
|
import { g as getLayerOrTable } from './mapViewUtils-e3de60cc.js';
|
10
|
-
import './esri-loader-
|
10
|
+
import './esri-loader-c6842c6b.js';
|
11
11
|
import './_commonjsHelpers-089957fe.js';
|
12
12
|
|
13
13
|
const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}";
|
@@ -109,13 +109,6 @@ const CrowdsourceManager = class {
|
|
109
109
|
this.showHideMapPopupAndTable(this.hideMapOnLoad && !this._isMobile);
|
110
110
|
this._expandPopup = this.hideMapOnLoad && !this._isMobile;
|
111
111
|
}
|
112
|
-
/**
|
113
|
-
* When true the map will be hidden on load
|
114
|
-
*/
|
115
|
-
mapInfosWatchHandler() {
|
116
|
-
console.log("mapInfosWatchHandler");
|
117
|
-
console.log(this.mapInfos);
|
118
|
-
}
|
119
112
|
/**
|
120
113
|
* Listen for changes in feature selection and show or hide the map, popup, and table
|
121
114
|
*/
|
@@ -201,7 +194,7 @@ const CrowdsourceManager = class {
|
|
201
194
|
render() {
|
202
195
|
// only avoid border when we have a header color that is not white
|
203
196
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
204
|
-
return (h(Host, { key: '
|
197
|
+
return (h(Host, { key: 'f16033bd0f93446f9e0aeb38a6b172d021586a25' }, h("calcite-shell", { key: '9aee01a563e12168373ddc1aea40e1fac2f65cc4', class: "position-relative" }, h("calcite-panel", { key: 'e2333aedf094999f56823650b7585ac5915668ea', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
205
198
|
}
|
206
199
|
/**
|
207
200
|
* Called after each render
|
@@ -537,8 +530,7 @@ const CrowdsourceManager = class {
|
|
537
530
|
get el() { return getElement(this); }
|
538
531
|
static get watchers() { return {
|
539
532
|
"enableZoom": ["enableZoomWatchHandler"],
|
540
|
-
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
|
541
|
-
"mapInfos": ["mapInfosWatchHandler"]
|
533
|
+
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
|
542
534
|
}; }
|
543
535
|
};
|
544
536
|
CrowdsourceManager.style = CrowdsourceManagerStyle0;
|
@@ -4,9 +4,9 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment, g as getElement } from './index-83b693bc.js';
|
7
|
-
import { l as loadModules, g as getLocaleComponentStrings } from './locale-
|
7
|
+
import { l as loadModules, g as getLocaleComponentStrings } from './locale-4adfc8cf.js';
|
8
8
|
import { g as getLayerOrTable, a as getAllLayers, b as getAllTables, c as getFeatureLayerView, h as highlightFeatures, d as getMapLayerHash, q as queryFeaturesByID } from './mapViewUtils-e3de60cc.js';
|
9
|
-
import './esri-loader-
|
9
|
+
import './esri-loader-c6842c6b.js';
|
10
10
|
import './_commonjsHelpers-089957fe.js';
|
11
11
|
import './interfaces-586e863c.js';
|
12
12
|
|