@esri/solutions-components 0.10.45 → 0.10.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/cjs/calcite-block_5.cjs.entry.js +21 -1
  2. package/dist/cjs/crowdsource-reporter.cjs.entry.js +53 -3
  3. package/dist/cjs/instant-apps-export.cjs.entry.js +18 -5
  4. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +5 -6
  5. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +13 -6
  6. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +7 -12
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/map-select-tools_3.cjs.entry.js +17 -17
  9. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  10. package/dist/cjs/solutions-components.cjs.js +1 -1
  11. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +84 -2
  12. package/dist/collection/components/map-select-tools/map-select-tools.js +54 -20
  13. package/dist/collection/components/public-notification/public-notification.js +1 -1
  14. package/dist/components/crowdsource-reporter.js +57 -5
  15. package/dist/components/instant-apps-export.js +18 -5
  16. package/dist/components/instant-apps-filter-list2.js +23 -2
  17. package/dist/components/instant-apps-language-switcher.js +5 -6
  18. package/dist/components/instant-apps-scoreboard.js +14 -6
  19. package/dist/components/instant-apps-time-filter.js +7 -12
  20. package/dist/components/map-select-tools2.js +19 -19
  21. package/dist/components/public-notification.js +1 -1
  22. package/dist/esm/calcite-block_5.entry.js +21 -1
  23. package/dist/esm/crowdsource-reporter.entry.js +53 -3
  24. package/dist/esm/instant-apps-export.entry.js +18 -5
  25. package/dist/esm/instant-apps-language-switcher.entry.js +5 -6
  26. package/dist/esm/instant-apps-scoreboard.entry.js +13 -6
  27. package/dist/esm/instant-apps-time-filter.entry.js +7 -12
  28. package/dist/esm/loader.js +1 -1
  29. package/dist/esm/map-select-tools_3.entry.js +17 -17
  30. package/dist/esm/public-notification.entry.js +1 -1
  31. package/dist/esm/solutions-components.js +1 -1
  32. package/dist/solutions-components/p-1336a071.entry.js +6 -0
  33. package/dist/solutions-components/p-41503b16.entry.js +6 -0
  34. package/dist/solutions-components/p-94e51621.entry.js +6 -0
  35. package/dist/solutions-components/{p-2cf41651.entry.js → p-c7f86f73.entry.js} +1 -1
  36. package/dist/solutions-components/p-e9a0d2f3.entry.js +6 -0
  37. package/dist/solutions-components/p-f09744aa.entry.js +6 -0
  38. package/dist/solutions-components/p-f86c2a0c.entry.js +6 -0
  39. package/dist/solutions-components/p-fdeceaf6.entry.js +29 -0
  40. package/dist/solutions-components/solutions-components.esm.js +1 -1
  41. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +17 -0
  42. package/dist/types/components/map-select-tools/map-select-tools.d.ts +8 -8
  43. package/dist/types/components.d.ts +20 -0
  44. package/package.json +7 -7
  45. package/dist/solutions-components/p-112df7b2.entry.js +0 -6
  46. package/dist/solutions-components/p-2291bf3f.entry.js +0 -6
  47. package/dist/solutions-components/p-5e694bcc.entry.js +0 -29
  48. package/dist/solutions-components/p-6e5ea1cb.entry.js +0 -6
  49. package/dist/solutions-components/p-add973e2.entry.js +0 -6
  50. package/dist/solutions-components/p-cb27611e.entry.js +0 -6
  51. package/dist/solutions-components/p-f4880179.entry.js +0 -6
@@ -1571,6 +1571,26 @@ const InstantAppsFilterList = class {
1571
1571
  const currentLayerExpressions = structuredClone(this.filterLayerExpressions);
1572
1572
  return Promise.resolve(currentLayerExpressions);
1573
1573
  }
1574
+ handleUpdatingT9nData(t9nLayerExpressions) {
1575
+ var _a;
1576
+ if (t9nLayerExpressions == null)
1577
+ return Promise.resolve();
1578
+ (_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.forEach(layerExpression => {
1579
+ var _a;
1580
+ const t9nLayerExpression = t9nLayerExpressions === null || t9nLayerExpressions === void 0 ? void 0 : t9nLayerExpressions.find(t9nLayerExpression => t9nLayerExpression.id === layerExpression.id);
1581
+ if (t9nLayerExpression != null) {
1582
+ layerExpression.title = t9nLayerExpression.title;
1583
+ (_a = layerExpression.expressions) === null || _a === void 0 ? void 0 : _a.forEach(expression => {
1584
+ var _a;
1585
+ const t9nExpression = (_a = t9nLayerExpression.expressions) === null || _a === void 0 ? void 0 : _a.find(t9nExpression => t9nExpression.id === expression.id);
1586
+ if (t9nExpression != null) {
1587
+ expression.name = t9nExpression.name;
1588
+ }
1589
+ });
1590
+ }
1591
+ });
1592
+ return Promise.resolve();
1593
+ }
1574
1594
  connectedCallback() {
1575
1595
  if (this.layerExpressions == null && this.view == null)
1576
1596
  return;
@@ -1612,7 +1632,7 @@ const InstantAppsFilterList = class {
1612
1632
  render() {
1613
1633
  const filterConfig = this.loading ? this.renderLoading() : this.initFilterConfig();
1614
1634
  const footer = this.renderFooter();
1615
- return (index.h(index.Host, { key: '92daa28c3cada3360d3b3d4202f54842e2e42923' }, index.h("calcite-panel", { key: '43ed17c41f1c42dcb25a19423e1638885a4ca64b', class: this.baseClass, ref: el => (this.panelEl = el) }, index.h("slot", { key: 'df4bc6bdf21127e781f930cf476af2a5d8199c87', slot: "header-content", name: "filter-header-content" }), index.h("slot", { key: 'c2e6744535fb85e40ddd4de215f693258bf31e87', slot: "header-actions-end", name: "filter-header-actions-end" }), index.h("div", { key: "filter-container", class: CSS$1.filterContainer }, filterConfig, footer))));
1635
+ return (index.h(index.Host, { key: 'b3949fb2efa7587520eee01619be306a936b2f05' }, index.h("calcite-panel", { key: '2336ee3cd209346516ebb12780f7158fc88aa35c', class: this.baseClass, ref: el => (this.panelEl = el) }, index.h("slot", { key: 'd7400f3192055b45d9f75d19fcac85138f2958f8', slot: "header-content", name: "filter-header-content" }), index.h("slot", { key: 'fb684d06b51fd62fcc56129851444fad10beafc4', slot: "header-actions-end", name: "filter-header-actions-end" }), index.h("div", { key: "filter-container", class: CSS$1.filterContainer }, filterConfig, footer))));
1616
1636
  }
1617
1637
  renderLoading() {
1618
1638
  return index.h("calcite-loader", { label: "Loading filters..." });
@@ -215,6 +215,10 @@ const CrowdsourceReporter = class {
215
215
  * { [key: string]: string }: definitionExpressions for each layer
216
216
  */
217
217
  _initDefExpressions;
218
+ /**
219
+ * ILayerExpression[]: translated values for layerExpressions
220
+ */
221
+ _t9nLayerExpressions;
218
222
  //--------------------------------------------------------------------------
219
223
  //
220
224
  // Watch handlers
@@ -285,11 +289,34 @@ const CrowdsourceReporter = class {
285
289
  }, 50);
286
290
  }
287
291
  }
292
+ /**
293
+ * Called each time the layerExpressions prop is changed
294
+ */
295
+ async layerExpressionsWatchHandler() {
296
+ this.resetFilterList();
297
+ await this.handleSelectedLayersFilter();
298
+ await this._featureList?.refresh();
299
+ }
288
300
  //--------------------------------------------------------------------------
289
301
  //
290
302
  // Methods (public)
291
303
  //
292
304
  //--------------------------------------------------------------------------
305
+ /**
306
+ * Method to update layerExpressions with the translated values
307
+ */
308
+ async updateLayerExpressionsT9n(t9nLayerExpressions) {
309
+ this._t9nLayerExpressions = t9nLayerExpressions ? t9nLayerExpressions : this.layerExpressions;
310
+ if (this._filterList != null) {
311
+ await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);
312
+ }
313
+ else if (this._currentLayerExpressions != null) {
314
+ const currentLayerExpressions = structuredClone(this._currentLayerExpressions);
315
+ this.handleLayerExpressionsT9n(currentLayerExpressions, this._t9nLayerExpressions);
316
+ this._currentLayerExpressions = currentLayerExpressions;
317
+ }
318
+ return Promise.resolve();
319
+ }
293
320
  //--------------------------------------------------------------------------
294
321
  //
295
322
  // Events (public)
@@ -336,7 +363,7 @@ const CrowdsourceReporter = class {
336
363
  */
337
364
  render() {
338
365
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
339
- return (index.h(index.Host, { key: 'f1dd6d85210210a73fff30a5d98370da1834be7b' }, this._reportSubmitted && index.h("calcite-alert", { key: 'b84760fcbf4bfcf0f038be272f74eda97ce17bd9', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: '27aa04dd8575ad27898f7848bc2733a03a33e70f', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && index.h("calcite-alert", { key: '3fc2721bed573ad10bbb1c81af126e2e8ca90b12', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, index.h("div", { key: '4993e5c5b52d650b094c2890d0e4516cc87ffb69', slot: "title" }, this._translations.error), index.h("div", { key: '272b17f4c0239d8b295d6f2c0c02f1ba236d840d', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && index.h("calcite-alert", { key: '5b9e1a2bd129888ec0764ad9b05e5056653d3c33', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: 'bd428297f5fe85cbf7edc42c61c64c299d7954b7', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && index.h("calcite-alert", { key: '2aa1927ca27f9ec15a16f8e68905a1cf203ef833', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, index.h("div", { key: '4bff5fb03586edf0f9ea21649d1de4c34034e539', slot: "title" }, this._translations.error), index.h("div", { key: '7ea6c71dbbac15c2f43242ba00c9e461177051a1', slot: "message" }, this._translations.addingCommentFailedMsg)), index.h("div", { key: '3aa6bfc19a1e82ab90d2ab42aa9a577b3a2b6d8f' }, index.h("calcite-shell", { key: 'f27355d4f655c0a0931158f38f0be3eb28f6c4d4', "content-behind": true }, this._getReporter()))));
366
+ return (index.h(index.Host, { key: 'b6052369762b8c3e58ef1a4bf49f9f639e8f20f0' }, this._reportSubmitted && index.h("calcite-alert", { key: 'ea78ecf7f186cd9d2642288cd20017fc51945a47', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: 'bca0fe4cc41938d401f2209e8e0eeb0ec8eb7eb4', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && index.h("calcite-alert", { key: '3cc3f7823c77997002261e5a44da38b798355078', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, index.h("div", { key: 'bfb524575668f85759111f71ed76a62aa4d8ff36', slot: "title" }, this._translations.error), index.h("div", { key: '25b174bdcf9126a6ea2ee3bf0b0a3d3e1a84d37f', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && index.h("calcite-alert", { key: 'f2cf41d7f1a09a8c56a8a70ec9c87685463e0ed3', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: '000e66b1b85c954da28eda2cdde44d6a4f441ff8', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && index.h("calcite-alert", { key: 'ec0d3b4ca27690452bb14777e716cf1c100e0ec8', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, index.h("div", { key: 'dedf6bbf4d250e7108562a9bd05417e71c94dad4', slot: "title" }, this._translations.error), index.h("div", { key: 'b5c591bcc14feed655fa07e8d87accd281108f09', slot: "message" }, this._translations.addingCommentFailedMsg)), index.h("div", { key: '301ea807350d9c0a2bf5f45c01e40897bf644dd8' }, index.h("calcite-shell", { key: '386e94e32d12bf41ae76e9c78ad26a3d00158db6', "content-behind": true }, this._getReporter()))));
340
367
  }
341
368
  //--------------------------------------------------------------------------
342
369
  //
@@ -1219,7 +1246,11 @@ const CrowdsourceReporter = class {
1219
1246
  */
1220
1247
  async handleSelectedLayersFilter() {
1221
1248
  if (this._selectedLayer) {
1222
- this._currentLayerExpressions = this.layerExpressions ? this.layerExpressions.filter(exp => exp.id === this._selectedLayerId) : [];
1249
+ const currentLayerExpressions = this.layerExpressions ? structuredClone(this.layerExpressions.filter(exp => exp.id === this._selectedLayerId)) : [];
1250
+ if (this._t9nLayerExpressions != null) {
1251
+ this.handleLayerExpressionsT9n(currentLayerExpressions, this._t9nLayerExpressions);
1252
+ }
1253
+ this._currentLayerExpressions = currentLayerExpressions;
1223
1254
  this.setActiveDefinitionExpressions();
1224
1255
  }
1225
1256
  }
@@ -1298,12 +1329,31 @@ const CrowdsourceReporter = class {
1298
1329
  this._initDefExpressions[fl.id] = fl.definitionExpression;
1299
1330
  });
1300
1331
  }
1332
+ /**
1333
+ * Handles updating the layer expressions with the translated strings
1334
+ * @protected
1335
+ */
1336
+ handleLayerExpressionsT9n(layerExpressions, layerExpressionsT9n) {
1337
+ layerExpressions?.forEach(layerExpression => {
1338
+ const t9nLayerExpression = layerExpressionsT9n?.find(t9nLayerExpression => t9nLayerExpression.id === layerExpression.id);
1339
+ if (t9nLayerExpression != null) {
1340
+ layerExpression.title = t9nLayerExpression.title;
1341
+ layerExpression.expressions?.forEach(expression => {
1342
+ const t9nExpression = t9nLayerExpression.expressions?.find(t9nExpression => t9nExpression.id === expression.id);
1343
+ if (t9nExpression != null) {
1344
+ expression.name = t9nExpression.name;
1345
+ }
1346
+ });
1347
+ }
1348
+ });
1349
+ }
1301
1350
  static get watchers() { return {
1302
1351
  "isMobile": ["isMobileWatchHandler"],
1303
1352
  "locale": ["localeWatchHandler"],
1304
1353
  "mapView": ["mapViewWatchHandler"],
1305
1354
  "floorLevel": ["floorLevelWatchHandler"],
1306
- "showMyReportsOnly": ["showMyReportsOnlyWatchHandler"]
1355
+ "showMyReportsOnly": ["showMyReportsOnlyWatchHandler"],
1356
+ "layerExpressions": ["layerExpressionsWatchHandler"]
1307
1357
  }; }
1308
1358
  };
1309
1359
  CrowdsourceReporter.style = CrowdsourceReporterStyle0;
@@ -1552,18 +1552,31 @@ const InstantAppsExport = class {
1552
1552
  }
1553
1553
  }
1554
1554
  }
1555
- convertToImage() {
1555
+ async convertToImage() {
1556
1556
  const options = { backgroundColor: '#FFF', skipFonts: true };
1557
- if (this.selectedFileType === 'JPG') {
1558
- toJpeg(this.printEl, options).then(this.handleGetImage.bind(this));
1557
+ let data = '';
1558
+ try {
1559
+ if (this.selectedFileType === 'JPG') {
1560
+ data = await toJpeg(this.printEl, options);
1561
+ }
1562
+ else {
1563
+ data = await toPng(this.printEl, options);
1564
+ }
1559
1565
  }
1560
- else {
1561
- toPng(this.printEl, options).then(this.handleGetImage.bind(this));
1566
+ catch (_a) {
1567
+ this.logoImage = undefined;
1568
+ await new Promise(resolve => setTimeout(resolve, 500));
1569
+ data = await toJpeg(this.printEl, options);
1570
+ }
1571
+ finally {
1572
+ this.handleGetImage(data);
1562
1573
  }
1563
1574
  }
1564
1575
  handleGetImage(dataUrl) {
1565
1576
  var _a;
1566
1577
  this.resetPrintContent();
1578
+ if (!dataUrl)
1579
+ return;
1567
1580
  this.dataUrl = dataUrl;
1568
1581
  this.setMapAreaOnClick(false);
1569
1582
  this.showPreview(dataUrl);
@@ -110,14 +110,13 @@ const InstantAppsLanguageSwitcher = class {
110
110
  if (selectedLanguage !== userLocale)
111
111
  eventData['data'] = t9nData[translatedLanguage];
112
112
  const params = new URLSearchParams(window.location.search);
113
- if (selectedLanguage !== userLocale) {
114
- // Set url parameter 'locale' with value
113
+ const locale = this.intl.normalizeMessageBundleLocale(this.selectedLanguage);
114
+ intl.setLocale(locale);
115
+ // Set url parameter 'locale' with value
116
+ const docElLang = this.intl.normalizeMessageBundleLocale(document.documentElement.lang);
117
+ if (docElLang !== this.selectedLanguage) {
115
118
  params.set('locale', this.selectedLanguage);
116
119
  }
117
- else {
118
- params.delete('locale');
119
- }
120
- intl.setLocale(selectedLanguage);
121
120
  if (this.view) {
122
121
  const [WebMap] = await loadModules.loadModules(['esri/WebMap']);
123
122
  const webmap = (_b = (_a = this.locales.filter(localeItem => localeItem.locale === selectedLanguage)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.webmap;
@@ -54,6 +54,7 @@ const InstantAppsScoreboard = class {
54
54
  this.itemLimit = 6;
55
55
  this.autoDockEnabled = true;
56
56
  this.geometry = null;
57
+ this.queryType = 'layerView';
57
58
  this.state = "loading" /* Scoreboard.Loading */;
58
59
  this.messages = undefined;
59
60
  this.itemIndex = 0;
@@ -245,10 +246,10 @@ const InstantAppsScoreboard = class {
245
246
  const isLoading = state === "loading" /* Scoreboard.Loading */;
246
247
  const isCalculating = state === "calculating" /* Scoreboard.Calculating */;
247
248
  const isDisabled = state === "disabled" /* Scoreboard.Disabled */;
248
- const progress = isLoading || isCalculating || ((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating) ? this.renderProgress() : null;
249
+ const progress = isLoading || isCalculating || (this.queryType === 'layerView' && ((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating)) ? this.renderProgress() : null;
249
250
  const positionClass = this.getPositionClass;
250
251
  const styleClass = this.getStyleClass;
251
- return index.h(index.Host, { key: '5fed5010f728e5d8c4866af3bc38b41ac9b5424f', class: `${positionClass} ${styleClass}` }, isDisabled ? null : [progress, ((_b = this.items) === null || _b === void 0 ? void 0 : _b.length) > 0 ? this.renderBase() : null]);
252
+ return index.h(index.Host, { key: '5a7e3fdc0753d3f951a71397519ebf07ecd68e03', class: `${positionClass} ${styleClass}` }, isDisabled ? null : [progress, ((_b = this.items) === null || _b === void 0 ? void 0 : _b.length) > 0 ? this.renderBase() : null]);
252
253
  }
253
254
  renderBase() {
254
255
  return (index.h("div", { key: "instant-apps-scoreboard-base", class: BASE }, this.renderContent()));
@@ -366,7 +367,7 @@ const InstantAppsScoreboard = class {
366
367
  };
367
368
  const getStatDefinitionQuery = (layerView, statDefinition) => {
368
369
  var _a, _b, _c, _d, _e;
369
- const query = layerView.createQuery();
370
+ const query = this.queryType === 'layer' ? layerView.layer.createQuery() : layerView.createQuery();
370
371
  const outStatistics = [statDefinition];
371
372
  const geometry = this.geometry ? this.geometry : this.view.extent;
372
373
  query.outStatistics = outStatistics;
@@ -384,7 +385,7 @@ const InstantAppsScoreboard = class {
384
385
  return;
385
386
  const statDefinition = getStatsDefinition(item);
386
387
  const query = getStatDefinitionQuery(layerView, statDefinition);
387
- const queryFeaturesRes = layerView.queryFeatures(query);
388
+ const queryFeaturesRes = this.queryType === 'layer' ? layerView.layer.queryFeatures(query) : layerView.queryFeatures(query);
388
389
  queryFeaturePromises.push(queryFeaturesRes);
389
390
  };
390
391
  };
@@ -421,7 +422,10 @@ const InstantAppsScoreboard = class {
421
422
  const whenOnceConfig = { once: true, initial: true };
422
423
  const isNotInteractingWatcher = () => {
423
424
  var _a;
424
- return (_a = this.reactiveUtils) === null || _a === void 0 ? void 0 : _a.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.interacting); }, () => this.calculateScoreboardItemValues(), whenOnceConfig);
425
+ return (_a = this.reactiveUtils) === null || _a === void 0 ? void 0 : _a.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.interacting); }, () => {
426
+ if (this.queryType === 'layerView')
427
+ this.calculateScoreboardItemValues();
428
+ }, whenOnceConfig);
425
429
  };
426
430
  const stationaryWatcher = () => {
427
431
  var _a;
@@ -434,7 +438,10 @@ const InstantAppsScoreboard = class {
434
438
  }
435
439
  initViewUpdateWatcher() {
436
440
  return this.reactiveUtils.watch(() => { var _a; return (_a = this.view) === null || _a === void 0 ? void 0 : _a.updating; }, () => {
437
- this.reactiveUtils.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating); }, () => this.calculateScoreboardItemValues(), { once: true, initial: true });
441
+ this.reactiveUtils.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating); }, () => {
442
+ if (this.queryType === 'layerView')
443
+ this.calculateScoreboardItemValues();
444
+ }, { once: true, initial: true });
438
445
  }, { initial: true });
439
446
  }
440
447
  watchLayerVisibility() {
@@ -37,31 +37,25 @@ let e$a;function has(a){return "function"==typeof e$a[a]?e$a[a]=e$a[a](globalThi
37
37
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
38
38
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
39
39
  */
40
- function o$8(n){return "Int8Array"===n?.constructor?.name}function u$6(n){return "Uint8Array"===n?.constructor?.name}function e$9(n){return "Uint8ClampedArray"===n?.constructor?.name}function c$6(n){return "Int16Array"===n?.constructor?.name}function i$6(n){return "Uint16Array"===n?.constructor?.name}function a$6(n){return "Int32Array"===n?.constructor?.name}function f$5(n){return "Uint32Array"===n?.constructor?.name}function s$6(n){return "Float32Array"===n?.constructor?.name}function m$5(n){return "Float64Array"===n?.constructor?.name}
40
+ function o$8(n){return "Int8Array"===n?.constructor?.name}function u$6(n){return "Uint8Array"===n?.constructor?.name}function e$9(n){return "Uint8ClampedArray"===n?.constructor?.name}function c$6(n){return "Int16Array"===n?.constructor?.name}function i$6(n){return "Uint16Array"===n?.constructor?.name}function a$5(n){return "Int32Array"===n?.constructor?.name}function f$5(n){return "Uint32Array"===n?.constructor?.name}function s$6(n){return "Float32Array"===n?.constructor?.name}function m$5(n){return "Float64Array"===n?.constructor?.name}
41
41
 
42
42
  /*
43
43
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
44
44
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
45
45
  */
46
- function a$5(t){if(!t||"object"!=typeof t||"function"==typeof t)return t;const n=O$2(t);if(null!=n)return n;if(y$4(t))return t.clone();if(m$4(t))return t.map(a$5);if(b$2(t))return t.clone();const e={};for(const r of Object.getOwnPropertyNames(t))e[r]=a$5(t[r]);return e}function y$4(t){return "function"==typeof t.clone}function m$4(t){return "function"==typeof t.map&&"function"==typeof t.forEach}function b$2(t){return "function"==typeof t.notifyChange&&"function"==typeof t.watch}function O$2(t){if(o$8(t)||u$6(t)||e$9(t)||c$6(t)||i$6(t)||a$6(t)||f$5(t)||s$6(t)||m$5(t))return t.slice();if(t instanceof Date)return new Date(t.getTime());if(t instanceof ArrayBuffer){return t.slice(0,t.byteLength)}if(t instanceof Map){const n=new Map;for(const[e,r]of t)n.set(e,a$5(r));return n}if(t instanceof Set){const n=new Set;for(const e of t)n.add(a$5(e));return n}return null}
46
+ function a$4(t){if(!t||"object"!=typeof t||"function"==typeof t)return t;const n=O$2(t);if(null!=n)return n;if(y$4(t))return t.clone();if(m$4(t))return t.map(a$4);if(b$2(t))return t.clone();const e={};for(const r of Object.getOwnPropertyNames(t))e[r]=a$4(t[r]);return e}function y$4(t){return "function"==typeof t.clone}function m$4(t){return "function"==typeof t.map&&"function"==typeof t.forEach}function b$2(t){return "function"==typeof t.notifyChange&&"function"==typeof t.watch}function O$2(t){if(o$8(t)||u$6(t)||e$9(t)||c$6(t)||i$6(t)||a$5(t)||f$5(t)||s$6(t)||m$5(t))return t.slice();if(t instanceof Date)return new Date(t.getTime());if(t instanceof ArrayBuffer){return t.slice(0,t.byteLength)}if(t instanceof Map){const n=new Map;for(const[e,r]of t)n.set(e,a$4(r));return n}if(t instanceof Set){const n=new Set;for(const e of t)n.add(a$4(e));return n}return null}
47
47
 
48
48
  /*
49
49
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
50
50
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
51
51
  */
52
- function n$7(r,n,t=!1){return f$4(r,n,t)}function t$4(r,n){if(null!=n)return n[r]||u$5(r.split("."),!1,n)}function u$5(r,n,t){let e=t;for(const i of r){if(null==e)return;if(!(i in e)){if(!n)return;e[i]={};}e=e[i];}return e}function f$4(n,t,e){return t?Object.keys(t).reduce(((n,i)=>{let u=n[i],l=t[i];return u===l?n:void 0===u?(n[i]=a$5(l),n):(Array.isArray(l)||Array.isArray(n)?(u=u?Array.isArray(u)?n[i]=u.slice():n[i]=[u]:n[i]=[],l&&(Array.isArray(l)||(l=[l]),e?l.forEach((r=>{u.includes(r)||u.push(r);})):n[i]=l.slice())):l&&"object"==typeof l?n[i]=f$4(u,l,e):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=l),n)}),n||{}):n}
52
+ function n$7(r,n,t=!1){return f$4(r,n,t)}function t$4(r,n){if(null!=n)return n[r]||u$5(r.split("."),!1,n)}function u$5(r,n,t){let e=t;for(const i of r){if(null==e)return;if(!(i in e)){if(!n)return;e[i]={};}e=e[i];}return e}function f$4(n,t,e){return t?Object.keys(t).reduce(((n,i)=>{let u=n[i],l=t[i];return u===l?n:void 0===u?(n[i]=a$4(l),n):(Array.isArray(l)||Array.isArray(n)?(u=u?Array.isArray(u)?n[i]=u.slice():n[i]=[u]:n[i]=[],l&&(Array.isArray(l)||(l=[l]),e?l.forEach((r=>{u.includes(r)||u.push(r);})):n[i]=l.slice())):l&&"object"==typeof l?n[i]=f$4(u,l,e):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=l),n)}),n||{}):n}
53
53
 
54
54
  /*
55
55
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
56
56
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
57
57
  */
58
- const a$4="20241101";
59
-
60
- /*
61
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
62
- See https://js.arcgis.com/4.31/esri/copyright.txt for details.
63
- */
64
- const s$5={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(n$7(s$5,globalThis.esriConfig,!0),delete s$5.has),!s$5.assetsPath){{const e="4.31.0";s$5.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${a$4}/assets`;}s$5.defaultAssetsPath=s$5.assetsPath;}
58
+ const s$5={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(n$7(s$5,globalThis.esriConfig,!0),delete s$5.has),!s$5.assetsPath){{const e="4.31";s$5.assetsPath=`https://js.arcgis.com/${e}/@arcgis/core/assets`;}s$5.defaultAssetsPath=s$5.assetsPath;}
65
59
 
66
60
  /*
67
61
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
@@ -85,7 +79,7 @@ function s$4(s,e){return s.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,((s,r)
85
79
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
86
80
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
87
81
  */
88
- class s$3 extends e$8{constructor(e,t,r){super(e,t,r);}toJSON(){if(null!=this.details)try{return {name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((t,r)=>{if(r&&"object"==typeof r&&"function"==typeof r.toJSON)return r;try{return a$5(r)}catch(s){return "[object]"}})))}}catch(r){throw n$6.getLogger("esri.core.Error").error(r),r}return {name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s$3(e.name,e.message,e.details)}}s$3.prototype.type="error";
82
+ class s$3 extends e$8{constructor(e,t,r){super(e,t,r);}toJSON(){if(null!=this.details)try{return {name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((t,r)=>{if(r&&"object"==typeof r&&"function"==typeof r.toJSON)return r;try{return a$4(r)}catch(s){return "[object]"}})))}}catch(r){throw n$6.getLogger("esri.core.Error").error(r),r}return {name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s$3(e.name,e.message,e.details)}}s$3.prototype.type="error";
89
83
 
90
84
  /*
91
85
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
@@ -394,11 +388,12 @@ class InstantAppsTimeFilterViewModel {
394
388
  }
395
389
  }
396
390
  applyFeatureEffect(layerView, timeExtent, filterMode) {
391
+ var _a;
397
392
  if (!layerView)
398
393
  return;
399
394
  if (layerView.filter)
400
395
  layerView.set('filter', null);
401
- if (!layerView.featureEffect || filterMode) {
396
+ if (!(layerView === null || layerView === void 0 ? void 0 : layerView.featureEffect) || !((_a = layerView === null || layerView === void 0 ? void 0 : layerView.featureEffect) === null || _a === void 0 ? void 0 : _a.filter) || filterMode) {
402
397
  this.handleUpdatedFeatureEffect(layerView, timeExtent);
403
398
  return;
404
399
  }