@esri/solutions-components 0.8.60 → 0.8.62
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 +3 -3
- package/dist/cjs/card-manager_3.cjs.entry.js +32 -8
- 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-85009d64.js} +6 -3
- 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-cc49d45d.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-fe880b9e.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +3 -3
- package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
- package/dist/cjs/{solution-store-d9f3ea44.js → solution-store-4e35404b.js} +10 -0
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
- package/dist/cjs/store-manager.cjs.entry.js +1 -1
- 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 +29 -5
- package/dist/collection/utils/downloadUtils.js +4 -1
- package/dist/collection/utils/downloadUtils.ts +4 -1
- package/dist/components/crowdsource-manager.js +3 -12
- package/dist/components/downloadUtils.js +4 -1
- package/dist/components/layer-table2.js +29 -5
- package/dist/components/solution-store.js +10 -0
- 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 +3 -3
- package/dist/esm/card-manager_3.entry.js +32 -8
- 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-f2c49e23.js} +6 -3
- 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-680dba03.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-21b9dbe5.js} +2 -2
- package/dist/esm/public-notification.entry.js +3 -3
- package/dist/esm/solution-configuration.entry.js +3 -3
- package/dist/esm/solution-contents_3.entry.js +3 -3
- package/dist/esm/{solution-store-1c36ce1d.js → solution-store-840c5489.js} +10 -0
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +2 -2
- package/dist/esm/store-manager.entry.js +1 -1
- package/dist/esm/{utils-5484fcbf.js → utils-efd425d4.js} +1 -1
- package/dist/solutions-components/{p-9e3b0220.entry.js → p-0534b446.entry.js} +1 -1
- package/dist/solutions-components/{p-ce4b6931.entry.js → p-09de2308.entry.js} +1 -1
- package/dist/solutions-components/{p-5cc6eb18.js → p-12f9f81d.js} +1 -1
- package/dist/solutions-components/{p-0cd87dca.entry.js → p-1412173c.entry.js} +1 -1
- package/dist/solutions-components/{p-b7123452.entry.js → p-14900698.entry.js} +1 -1
- package/dist/solutions-components/{p-00291b93.js → p-17946a3f.js} +3 -3
- package/dist/solutions-components/{p-427b4593.js → p-1c64264d.js} +1 -1
- package/dist/solutions-components/{p-7696af8e.entry.js → p-1d285ae1.entry.js} +1 -1
- package/dist/solutions-components/{p-ccd1e256.entry.js → p-2671a80b.entry.js} +1 -1
- package/dist/solutions-components/{p-881ead62.entry.js → p-2a8b04de.entry.js} +1 -1
- package/dist/solutions-components/{p-d2de2b2a.entry.js → p-2e2e975a.entry.js} +1 -1
- package/dist/solutions-components/{p-44fea43a.js → p-2fb21ae5.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-90864588.entry.js → p-42c2d9d8.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-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-c6fd40f9.entry.js → p-6e65d93b.entry.js} +1 -1
- package/dist/solutions-components/{p-d73b90ab.entry.js → p-7058b4fa.entry.js} +1 -1
- package/dist/solutions-components/{p-932d6f29.entry.js → p-72347474.entry.js} +1 -1
- package/dist/solutions-components/{p-91142a26.js → p-75cb415f.js} +1 -1
- package/dist/solutions-components/{p-6c7a990a.entry.js → p-80e42752.entry.js} +1 -1
- package/dist/solutions-components/{p-3e8562b5.entry.js → p-8100a48d.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-bd871071.entry.js → p-bf0bb8c2.entry.js} +1 -1
- package/dist/solutions-components/{p-ffd41e25.js → p-c0bf1d9f.js} +3 -3
- package/dist/solutions-components/{p-2afdcdfc.js → p-c1936856.js} +1 -1
- package/dist/solutions-components/p-cd8d6e52.entry.js +6 -0
- 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-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/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/downloadUtils.ts +4 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +0 -4
- package/dist/types/components/layer-table/layer-table.d.ts +8 -0
- package/package.json +6 -6
- 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');
|
@@ -8,7 +8,7 @@
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
10
|
const index = require('./index-ff18be0d.js');
|
11
|
-
const solutionStore = require('./solution-store-
|
11
|
+
const solutionStore = require('./solution-store-4e35404b.js');
|
12
12
|
const templates = require('./templates-f7a3bf48.js');
|
13
13
|
require('./index-97020c9d.js');
|
14
14
|
require('./interfaces-7cd0a48a.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() {
|
@@ -43,6 +43,10 @@ export class LayerTable {
|
|
43
43
|
* boolean: When true the default OID provided via url param has been honored and should now be ignored
|
44
44
|
*/
|
45
45
|
this._defaultOidHonored = false;
|
46
|
+
/**
|
47
|
+
* boolean: When true the table has been successfully loaded
|
48
|
+
*/
|
49
|
+
this._loaded = false;
|
46
50
|
/**
|
47
51
|
* boolean: When true the observer has been set and we don't need to set it again
|
48
52
|
*/
|
@@ -182,7 +186,6 @@ export class LayerTable {
|
|
182
186
|
this._initLayerExpressions();
|
183
187
|
this._initToolInfos();
|
184
188
|
this._updateToolbar();
|
185
|
-
console.log("mapInfoWatchHandler");
|
186
189
|
await this._sortTable();
|
187
190
|
}
|
188
191
|
/**
|
@@ -329,7 +332,7 @@ export class LayerTable {
|
|
329
332
|
const selected = this.selectedIds.length.toString();
|
330
333
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
331
334
|
this._validateActiveActions();
|
332
|
-
return (h(Host, { key: '
|
335
|
+
return (h(Host, { key: '9707f29bc69d0b56ae548b8004af6a0872105a40' }, h("calcite-shell", { key: 'e44e4b3dc934efec9698f6a9a24c21a1e1755e34' }, this._getTableControlRow("header"), h("div", { key: '88e82fe17e8f6c2bf01f0353c30992c108c6b9f1', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: '463130e64abde593fafa0333daf6dabec116a33a', class: "height-full width-full" }, h("calcite-loader", { key: '2aa6e9a0ebf5508253adfb5a6d71340e7de01df2', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '0d50f1bed585ab19a31d6875fab1f0fbdbc957d3', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
333
336
|
.replace("{{total}}", total)
|
334
337
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
335
338
|
}
|
@@ -1011,6 +1014,7 @@ export class LayerTable {
|
|
1011
1014
|
*/
|
1012
1015
|
async _resetTable() {
|
1013
1016
|
var _a;
|
1017
|
+
this._loaded = false;
|
1014
1018
|
this._clearSelection();
|
1015
1019
|
this._allIds = await queryAllIds(this._layer);
|
1016
1020
|
if (!this._table) {
|
@@ -1024,9 +1028,27 @@ export class LayerTable {
|
|
1024
1028
|
await this._initLayerRefresh();
|
1025
1029
|
this._checkEditEnabled();
|
1026
1030
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
1031
|
+
await this._table.when();
|
1032
|
+
// This is a workaround.
|
1033
|
+
// In some cases the first time the app is loaded this._table.state === "loaded" is not being hit.
|
1034
|
+
// When this issue occurs we will wait for 1 second and attempt to finish the loading process
|
1035
|
+
setTimeout(() => {
|
1036
|
+
if (!this._loaded) {
|
1037
|
+
console.log(`table.state: ${this._table.state}`);
|
1038
|
+
void this.finishLoading();
|
1039
|
+
}
|
1040
|
+
}, 1000);
|
1027
1041
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
1028
1042
|
.then(async () => {
|
1029
|
-
|
1043
|
+
await this.finishLoading();
|
1044
|
+
});
|
1045
|
+
}
|
1046
|
+
/**
|
1047
|
+
* Finish the table loading tasks
|
1048
|
+
*/
|
1049
|
+
async finishLoading() {
|
1050
|
+
try {
|
1051
|
+
this._loaded = true;
|
1030
1052
|
this._table.highlightIds.removeAll();
|
1031
1053
|
this._table.clearSelectionFilter();
|
1032
1054
|
this._resetColumnTemplates();
|
@@ -1035,7 +1057,10 @@ export class LayerTable {
|
|
1035
1057
|
await this._sortTable();
|
1036
1058
|
this._initToolInfos();
|
1037
1059
|
this._updateToolbar();
|
1038
|
-
}
|
1060
|
+
}
|
1061
|
+
catch (e) {
|
1062
|
+
console.log(e);
|
1063
|
+
}
|
1039
1064
|
}
|
1040
1065
|
/**
|
1041
1066
|
* Update the current IDs when that layers data is modified
|
@@ -1151,7 +1176,6 @@ export class LayerTable {
|
|
1151
1176
|
if (this._table && this._layer) {
|
1152
1177
|
await this._table.when();
|
1153
1178
|
await this._layer.when(() => {
|
1154
|
-
console.log("sort on this._layer.when");
|
1155
1179
|
this._table.sortColumn(sortField, sortOrder);
|
1156
1180
|
});
|
1157
1181
|
}
|
@@ -617,7 +617,10 @@ export function _prepareAttributeValue(attributeValue, attributeType, attributeD
|
|
617
617
|
value = intl.formatNumber(value, numberFormatIntlOptions);
|
618
618
|
}
|
619
619
|
else {
|
620
|
-
value = intl.formatNumber(value
|
620
|
+
value = intl.formatNumber(value, {
|
621
|
+
maximumFractionDigits: 100,
|
622
|
+
maximumSignificantDigits: 21
|
623
|
+
});
|
621
624
|
}
|
622
625
|
break;
|
623
626
|
}
|
@@ -859,7 +859,10 @@ export function _prepareAttributeValue(
|
|
859
859
|
const numberFormatIntlOptions = intl.convertNumberFormatToIntlOptions(attributeFormat)
|
860
860
|
value = intl.formatNumber(value, numberFormatIntlOptions);
|
861
861
|
} else {
|
862
|
-
value = intl.formatNumber(value
|
862
|
+
value = intl.formatNumber(value, {
|
863
|
+
maximumFractionDigits: 100,
|
864
|
+
maximumSignificantDigits: 21
|
865
|
+
});
|
863
866
|
}
|
864
867
|
break;
|
865
868
|
}
|
@@ -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") {
|
@@ -2935,7 +2935,10 @@ function _prepareAttributeValue(attributeValue, attributeType, attributeDomain,
|
|
2935
2935
|
value = intl.formatNumber(value, numberFormatIntlOptions);
|
2936
2936
|
}
|
2937
2937
|
else {
|
2938
|
-
value = intl.formatNumber(value
|
2938
|
+
value = intl.formatNumber(value, {
|
2939
|
+
maximumFractionDigits: 100,
|
2940
|
+
maximumSignificantDigits: 21
|
2941
|
+
});
|
2939
2942
|
}
|
2940
2943
|
break;
|
2941
2944
|
}
|
@@ -73,6 +73,10 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
73
73
|
* boolean: When true the default OID provided via url param has been honored and should now be ignored
|
74
74
|
*/
|
75
75
|
this._defaultOidHonored = false;
|
76
|
+
/**
|
77
|
+
* boolean: When true the table has been successfully loaded
|
78
|
+
*/
|
79
|
+
this._loaded = false;
|
76
80
|
/**
|
77
81
|
* boolean: When true the observer has been set and we don't need to set it again
|
78
82
|
*/
|
@@ -212,7 +216,6 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
212
216
|
this._initLayerExpressions();
|
213
217
|
this._initToolInfos();
|
214
218
|
this._updateToolbar();
|
215
|
-
console.log("mapInfoWatchHandler");
|
216
219
|
await this._sortTable();
|
217
220
|
}
|
218
221
|
/**
|
@@ -359,7 +362,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
359
362
|
const selected = this.selectedIds.length.toString();
|
360
363
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
361
364
|
this._validateActiveActions();
|
362
|
-
return (h(Host, { key: '
|
365
|
+
return (h(Host, { key: '9707f29bc69d0b56ae548b8004af6a0872105a40' }, h("calcite-shell", { key: 'e44e4b3dc934efec9698f6a9a24c21a1e1755e34' }, this._getTableControlRow("header"), h("div", { key: '88e82fe17e8f6c2bf01f0353c30992c108c6b9f1', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: '463130e64abde593fafa0333daf6dabec116a33a', class: "height-full width-full" }, h("calcite-loader", { key: '2aa6e9a0ebf5508253adfb5a6d71340e7de01df2', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '0d50f1bed585ab19a31d6875fab1f0fbdbc957d3', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
363
366
|
.replace("{{total}}", total)
|
364
367
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
365
368
|
}
|
@@ -1041,6 +1044,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1041
1044
|
*/
|
1042
1045
|
async _resetTable() {
|
1043
1046
|
var _a;
|
1047
|
+
this._loaded = false;
|
1044
1048
|
this._clearSelection();
|
1045
1049
|
this._allIds = await queryAllIds(this._layer);
|
1046
1050
|
if (!this._table) {
|
@@ -1054,9 +1058,27 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1054
1058
|
await this._initLayerRefresh();
|
1055
1059
|
this._checkEditEnabled();
|
1056
1060
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
1061
|
+
await this._table.when();
|
1062
|
+
// This is a workaround.
|
1063
|
+
// In some cases the first time the app is loaded this._table.state === "loaded" is not being hit.
|
1064
|
+
// When this issue occurs we will wait for 1 second and attempt to finish the loading process
|
1065
|
+
setTimeout(() => {
|
1066
|
+
if (!this._loaded) {
|
1067
|
+
console.log(`table.state: ${this._table.state}`);
|
1068
|
+
void this.finishLoading();
|
1069
|
+
}
|
1070
|
+
}, 1000);
|
1057
1071
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
1058
1072
|
.then(async () => {
|
1059
|
-
|
1073
|
+
await this.finishLoading();
|
1074
|
+
});
|
1075
|
+
}
|
1076
|
+
/**
|
1077
|
+
* Finish the table loading tasks
|
1078
|
+
*/
|
1079
|
+
async finishLoading() {
|
1080
|
+
try {
|
1081
|
+
this._loaded = true;
|
1060
1082
|
this._table.highlightIds.removeAll();
|
1061
1083
|
this._table.clearSelectionFilter();
|
1062
1084
|
this._resetColumnTemplates();
|
@@ -1065,7 +1087,10 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1065
1087
|
await this._sortTable();
|
1066
1088
|
this._initToolInfos();
|
1067
1089
|
this._updateToolbar();
|
1068
|
-
}
|
1090
|
+
}
|
1091
|
+
catch (e) {
|
1092
|
+
console.log(e);
|
1093
|
+
}
|
1069
1094
|
}
|
1070
1095
|
/**
|
1071
1096
|
* Update the current IDs when that layers data is modified
|
@@ -1181,7 +1206,6 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1181
1206
|
if (this._table && this._layer) {
|
1182
1207
|
await this._table.when();
|
1183
1208
|
await this._layer.when(() => {
|
1184
|
-
console.log("sort on this._layer.when");
|
1185
1209
|
this._table.sortColumn(sortField, sortOrder);
|
1186
1210
|
});
|
1187
1211
|
}
|
@@ -173,6 +173,16 @@ function updateItem$1(requestOptions) {
|
|
173
173
|
if (requestOptions.params.extent && isBBox(requestOptions.params.extent)) {
|
174
174
|
requestOptions.params.extent = bboxToString(requestOptions.params.extent);
|
175
175
|
}
|
176
|
+
/* istanbul ignore if */
|
177
|
+
if (requestOptions.params.file &&
|
178
|
+
requestOptions.params.file.constructor &&
|
179
|
+
requestOptions.params.file.constructor.name === 'ReadStream') {
|
180
|
+
// dataSize is not an official parameter for the ArcGIS REST API but is needed
|
181
|
+
// to encode the ReadStream with an appropriate length. This is to overcome
|
182
|
+
// the form-data library bug:
|
183
|
+
// https://github.com/form-data/form-data/issues/508
|
184
|
+
requestOptions.params.dataSize = requestOptions.dataSize;
|
185
|
+
}
|
176
186
|
return request(url, requestOptions);
|
177
187
|
});
|
178
188
|
}
|
@@ -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-21b9dbe5.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-f2c49e23.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,8 +20,8 @@ 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-
|
24
|
-
import { s as state } from './solution-store-
|
23
|
+
import { g as getLocaleComponentStrings } from './locale-4adfc8cf.js';
|
24
|
+
import { s as state } from './solution-store-840c5489.js';
|
25
25
|
import { d as EUpdateType } from './interfaces-586e863c.js';
|
26
26
|
import { E as EFileType } from './solution-resource-3108caf7.js';
|
27
27
|
import './index-a1e91462.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-f2c49e23.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';
|
@@ -126,6 +126,10 @@ const LayerTable = class {
|
|
126
126
|
* boolean: When true the default OID provided via url param has been honored and should now be ignored
|
127
127
|
*/
|
128
128
|
this._defaultOidHonored = false;
|
129
|
+
/**
|
130
|
+
* boolean: When true the table has been successfully loaded
|
131
|
+
*/
|
132
|
+
this._loaded = false;
|
129
133
|
/**
|
130
134
|
* boolean: When true the observer has been set and we don't need to set it again
|
131
135
|
*/
|
@@ -265,7 +269,6 @@ const LayerTable = class {
|
|
265
269
|
this._initLayerExpressions();
|
266
270
|
this._initToolInfos();
|
267
271
|
this._updateToolbar();
|
268
|
-
console.log("mapInfoWatchHandler");
|
269
272
|
await this._sortTable();
|
270
273
|
}
|
271
274
|
/**
|
@@ -412,7 +415,7 @@ const LayerTable = class {
|
|
412
415
|
const selected = this.selectedIds.length.toString();
|
413
416
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
414
417
|
this._validateActiveActions();
|
415
|
-
return (h(Host, { key: '
|
418
|
+
return (h(Host, { key: '9707f29bc69d0b56ae548b8004af6a0872105a40' }, h("calcite-shell", { key: 'e44e4b3dc934efec9698f6a9a24c21a1e1755e34' }, this._getTableControlRow("header"), h("div", { key: '88e82fe17e8f6c2bf01f0353c30992c108c6b9f1', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: '463130e64abde593fafa0333daf6dabec116a33a', class: "height-full width-full" }, h("calcite-loader", { key: '2aa6e9a0ebf5508253adfb5a6d71340e7de01df2', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '0d50f1bed585ab19a31d6875fab1f0fbdbc957d3', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
416
419
|
.replace("{{total}}", total)
|
417
420
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
418
421
|
}
|
@@ -1094,6 +1097,7 @@ const LayerTable = class {
|
|
1094
1097
|
*/
|
1095
1098
|
async _resetTable() {
|
1096
1099
|
var _a;
|
1100
|
+
this._loaded = false;
|
1097
1101
|
this._clearSelection();
|
1098
1102
|
this._allIds = await queryAllIds(this._layer);
|
1099
1103
|
if (!this._table) {
|
@@ -1107,9 +1111,27 @@ const LayerTable = class {
|
|
1107
1111
|
await this._initLayerRefresh();
|
1108
1112
|
this._checkEditEnabled();
|
1109
1113
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
1114
|
+
await this._table.when();
|
1115
|
+
// This is a workaround.
|
1116
|
+
// In some cases the first time the app is loaded this._table.state === "loaded" is not being hit.
|
1117
|
+
// When this issue occurs we will wait for 1 second and attempt to finish the loading process
|
1118
|
+
setTimeout(() => {
|
1119
|
+
if (!this._loaded) {
|
1120
|
+
console.log(`table.state: ${this._table.state}`);
|
1121
|
+
void this.finishLoading();
|
1122
|
+
}
|
1123
|
+
}, 1000);
|
1110
1124
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
1111
1125
|
.then(async () => {
|
1112
|
-
|
1126
|
+
await this.finishLoading();
|
1127
|
+
});
|
1128
|
+
}
|
1129
|
+
/**
|
1130
|
+
* Finish the table loading tasks
|
1131
|
+
*/
|
1132
|
+
async finishLoading() {
|
1133
|
+
try {
|
1134
|
+
this._loaded = true;
|
1113
1135
|
this._table.highlightIds.removeAll();
|
1114
1136
|
this._table.clearSelectionFilter();
|
1115
1137
|
this._resetColumnTemplates();
|
@@ -1118,7 +1140,10 @@ const LayerTable = class {
|
|
1118
1140
|
await this._sortTable();
|
1119
1141
|
this._initToolInfos();
|
1120
1142
|
this._updateToolbar();
|
1121
|
-
}
|
1143
|
+
}
|
1144
|
+
catch (e) {
|
1145
|
+
console.log(e);
|
1146
|
+
}
|
1122
1147
|
}
|
1123
1148
|
/**
|
1124
1149
|
* Update the current IDs when that layers data is modified
|
@@ -1234,7 +1259,6 @@ const LayerTable = class {
|
|
1234
1259
|
if (this._table && this._layer) {
|
1235
1260
|
await this._table.when();
|
1236
1261
|
await this._layer.when(() => {
|
1237
|
-
console.log("sort on this._layer.when");
|
1238
1262
|
this._table.sortColumn(sortField, sortOrder);
|
1239
1263
|
});
|
1240
1264
|
}
|
@@ -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 = {}) {
|