@esri/solutions-components 0.10.42 → 0.10.43

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 (112) hide show
  1. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +1 -1
  2. package/dist/cjs/calcite-block_5.cjs.entry.js +25 -26
  3. package/dist/cjs/{constants-51cf394f.js → constants-bed33322.js} +3 -11
  4. package/dist/cjs/crowdsource-reporter.cjs.entry.js +112 -49
  5. package/dist/cjs/{helpers-afcac967.js → helpers-0493759d.js} +1 -1
  6. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +2 -2
  7. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +3 -3
  8. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
  9. package/dist/cjs/instant-apps-create.cjs.entry.js +2 -2
  10. package/dist/cjs/instant-apps-export-views.cjs.entry.js +2 -2
  11. package/dist/cjs/instant-apps-export.cjs.entry.js +2 -2
  12. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +2 -2
  13. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +2 -2
  14. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +2 -2
  15. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +21 -7
  16. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +3 -3
  17. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +2 -2
  18. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +7 -7
  19. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +6 -6
  20. package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
  21. package/dist/cjs/instant-apps-popover.cjs.entry.js +2 -2
  22. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +2 -2
  23. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
  24. package/dist/cjs/instant-apps-splash.cjs.entry.js +6 -5
  25. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +2 -2
  26. package/dist/cjs/{loadModules-8567855e.js → loadModules-df8b13ca.js} +1 -1
  27. package/dist/cjs/loader.cjs.js +1 -1
  28. package/dist/cjs/{locale-4a18a858.js → locale-4b820602.js} +1 -1
  29. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  30. package/dist/cjs/solutions-components.cjs.js +1 -1
  31. package/dist/cjs/{utils-fa7ad44b.js → utils-3f10ea6b.js} +2 -2
  32. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +112 -49
  33. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +2 -2
  34. package/dist/components/crowdsource-reporter.js +112 -49
  35. package/dist/components/instant-apps-filter-list2.js +25 -26
  36. package/dist/components/instant-apps-interactive-legend-relationship2.js +19 -5
  37. package/dist/components/instant-apps-language-switcher.js +3 -3
  38. package/dist/components/instant-apps-language-translator2.js +4 -12
  39. package/dist/components/instant-apps-splash.js +4 -3
  40. package/dist/components/loadModules2.js +1 -1
  41. package/dist/components/solution-spatial-ref2.js +2 -2
  42. package/dist/components/utils4.js +1 -1
  43. package/dist/esm/calcite-action-pad_2.entry.js +1 -1
  44. package/dist/esm/calcite-block_5.entry.js +25 -26
  45. package/dist/esm/{constants-886c7c2c.js → constants-637a40f5.js} +3 -11
  46. package/dist/esm/crowdsource-reporter.entry.js +112 -49
  47. package/dist/esm/{helpers-91087955.js → helpers-91ca0f44.js} +1 -1
  48. package/dist/esm/instant-apps-app-guide.entry.js +2 -2
  49. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +3 -3
  50. package/dist/esm/instant-apps-control-panel.entry.js +1 -1
  51. package/dist/esm/instant-apps-create.entry.js +2 -2
  52. package/dist/esm/instant-apps-export-views.entry.js +2 -2
  53. package/dist/esm/instant-apps-export.entry.js +2 -2
  54. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +2 -2
  55. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +2 -2
  56. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +2 -2
  57. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +21 -7
  58. package/dist/esm/instant-apps-interactive-legend.entry.js +3 -3
  59. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +2 -2
  60. package/dist/esm/instant-apps-language-switcher.entry.js +7 -7
  61. package/dist/esm/instant-apps-language-translator.entry.js +6 -6
  62. package/dist/esm/instant-apps-measurement.entry.js +2 -2
  63. package/dist/esm/instant-apps-popover.entry.js +2 -2
  64. package/dist/esm/instant-apps-scoreboard.entry.js +2 -2
  65. package/dist/esm/instant-apps-sign-in.entry.js +2 -2
  66. package/dist/esm/instant-apps-splash.entry.js +6 -5
  67. package/dist/esm/instant-apps-time-filter.entry.js +2 -2
  68. package/dist/esm/{loadModules-03ba7abe.js → loadModules-d5a25252.js} +1 -1
  69. package/dist/esm/loader.js +1 -1
  70. package/dist/esm/{locale-ce177eb8.js → locale-77038bee.js} +1 -1
  71. package/dist/esm/solution-contents_3.entry.js +1 -1
  72. package/dist/esm/solutions-components.js +1 -1
  73. package/dist/esm/{utils-3fc29543.js → utils-0a78d3c9.js} +2 -2
  74. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-splash/instant-apps-splash.css +7 -0
  75. package/dist/solutions-components/{p-b739f26d.entry.js → p-053effee.entry.js} +1 -1
  76. package/dist/solutions-components/{p-af573e0d.js → p-09543b4e.js} +1 -1
  77. package/dist/solutions-components/p-1b1ff60a.entry.js +6 -0
  78. package/dist/solutions-components/{p-e4107150.entry.js → p-2291bf3f.entry.js} +1 -1
  79. package/dist/solutions-components/p-2cf41651.entry.js +6 -0
  80. package/dist/solutions-components/{p-fe3aea1a.entry.js → p-351c7cbf.entry.js} +1 -1
  81. package/dist/solutions-components/{p-90fc786f.entry.js → p-3d999f0f.entry.js} +1 -1
  82. package/dist/solutions-components/p-3fe6c230.entry.js +6 -0
  83. package/dist/solutions-components/p-4695cfab.js +6 -0
  84. package/dist/solutions-components/{p-43699470.entry.js → p-499489c5.entry.js} +1 -1
  85. package/dist/solutions-components/{p-5ff711ee.js → p-5104cc98.js} +1 -1
  86. package/dist/solutions-components/p-5e694bcc.entry.js +29 -0
  87. package/dist/solutions-components/{p-cbb86cf2.entry.js → p-6a3f2249.entry.js} +1 -1
  88. package/dist/solutions-components/{p-a7f56b28.entry.js → p-6e5ea1cb.entry.js} +1 -1
  89. package/dist/solutions-components/{p-9c170b30.entry.js → p-76a1236d.entry.js} +1 -1
  90. package/dist/solutions-components/{p-1e14b3d0.entry.js → p-78b6d3fe.entry.js} +1 -1
  91. package/dist/solutions-components/{p-c48be45f.entry.js → p-8a1a0f9b.entry.js} +1 -1
  92. package/dist/solutions-components/{p-5cbf3eed.entry.js → p-8d4a4498.entry.js} +1 -1
  93. package/dist/solutions-components/{p-4a02fd45.entry.js → p-9d9e0e74.entry.js} +1 -1
  94. package/dist/solutions-components/{p-50fb7f47.js → p-b49e1a78.js} +1 -1
  95. package/dist/solutions-components/{p-c551ffc5.entry.js → p-c399f2b8.entry.js} +1 -1
  96. package/dist/solutions-components/p-cb27611e.entry.js +6 -0
  97. package/dist/solutions-components/{p-4cd4cb85.js → p-d001e961.js} +1 -1
  98. package/dist/solutions-components/{p-523dcf4b.entry.js → p-d37a68f7.entry.js} +1 -1
  99. package/dist/solutions-components/{p-a2cf9fdc.entry.js → p-db7d5db8.entry.js} +1 -1
  100. package/dist/solutions-components/{p-6438d1ea.entry.js → p-e29e57db.entry.js} +1 -1
  101. package/dist/solutions-components/{p-a5b751e2.entry.js → p-e625aa69.entry.js} +1 -1
  102. package/dist/solutions-components/{p-2542d5c9.entry.js → p-e9fcc194.entry.js} +1 -1
  103. package/dist/solutions-components/{p-374ddead.entry.js → p-f4880179.entry.js} +1 -1
  104. package/dist/solutions-components/solutions-components.esm.js +1 -1
  105. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +43 -17
  106. package/package.json +7 -7
  107. package/dist/solutions-components/p-3fc18283.entry.js +0 -6
  108. package/dist/solutions-components/p-442dd59c.entry.js +0 -6
  109. package/dist/solutions-components/p-5585dcd3.entry.js +0 -6
  110. package/dist/solutions-components/p-953afbb3.entry.js +0 -29
  111. package/dist/solutions-components/p-ceb1030b.js +0 -6
  112. package/dist/solutions-components/p-f728af86.entry.js +0 -6
@@ -108,7 +108,6 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
108
108
  this.filterLayerExpressions = undefined;
109
109
  this.messages = undefined;
110
110
  this.baseClass = baseClassLight;
111
- this.disabled = true;
112
111
  this.initDefExpressions = undefined;
113
112
  this.initMapImageExpressions = undefined;
114
113
  this.initPointCloudFilters = undefined;
@@ -129,31 +128,27 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
129
128
  });
130
129
  }
131
130
  forceReset() {
132
- this.handleResetFilter();
133
- return this.initExpressions();
131
+ this.resetExpressions();
132
+ return Promise.resolve();
134
133
  }
135
- restoreFilters(filterParamString, filterInitState) {
136
- this.filterLayerExpressions = structuredClone(this.layerExpressions);
134
+ updateInitDefExpressions(filterInitState) {
137
135
  this.initDefExpressions = filterInitState.initDefExpressions;
138
136
  this.initMapImageExpressions = filterInitState.initMapImageExpressions;
139
137
  this.initPointCloudFilters = filterInitState.initPointCloudFilters;
140
- const filters = filterParamString === null || filterParamString === void 0 ? void 0 : filterParamString.split(';').map(filter => JSON.parse(filter));
141
- if (filters) {
142
- this.filterCount = this.applyFilters(filters);
143
- }
144
- return this.initExpressions();
138
+ return Promise.resolve();
139
+ }
140
+ getCurrentLayerExpressions() {
141
+ const currentLayerExpressions = structuredClone(this.filterLayerExpressions);
142
+ return Promise.resolve(currentLayerExpressions);
145
143
  }
146
144
  connectedCallback() {
147
- var _a;
148
145
  if (this.layerExpressions == null && this.view == null)
149
146
  return;
150
147
  this.isLayerExpUpdated = true;
151
148
  this.filterLayerExpressions = structuredClone(this.layerExpressions);
152
- this.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) ? undefined : true;
153
149
  this.handleLayerExpressionsUpdate();
154
150
  }
155
151
  async componentWillLoad() {
156
- var _a;
157
152
  this.baseClass = getMode(this.el) === 'dark' ? baseClassDark : baseClassLight;
158
153
  await this.initializeModules();
159
154
  getMessages(this);
@@ -161,14 +156,15 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
161
156
  return;
162
157
  this.isLayerExpUpdated = true;
163
158
  this.filterLayerExpressions = this.layerExpressions != null ? structuredClone(this.layerExpressions) : [];
164
- this.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) ? undefined : true;
165
159
  if (this.view == null)
166
160
  return;
167
161
  this.handleLayerExpressionsUpdate();
168
162
  }
169
- componentWillRender() {
163
+ componentDidRender() {
170
164
  var _a;
171
- this.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) > 0 ? undefined : true;
165
+ if (this.resetBtnEl != null) {
166
+ this.resetBtnEl.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) > 0 ? false : true;
167
+ }
172
168
  }
173
169
  disconnectedCallback() {
174
170
  if (this.resetFiltersOnDisconnect) {
@@ -186,7 +182,7 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
186
182
  render() {
187
183
  const filterConfig = this.loading ? this.renderLoading() : this.initFilterConfig();
188
184
  const footer = this.renderFooter();
189
- return (h(Host, { key: '055d2a02c5118e59462af8759c6bf2f39304fd75' }, h("calcite-panel", { key: '0335c9b28101257551902737ef373543aebee1f6', class: this.baseClass, ref: el => (this.panelEl = el) }, h("slot", { key: '4b471e66583b3f2fd733688d65ce8d3b2acbeb66', slot: "header-content", name: "filter-header-content" }), h("slot", { key: 'f5832075687a6812b902643fd057587b438b38cf', slot: "header-actions-end", name: "filter-header-actions-end" }), h("div", { key: "filter-container", class: CSS.filterContainer }, filterConfig, footer))));
185
+ return (h(Host, { key: '92daa28c3cada3360d3b3d4202f54842e2e42923' }, h("calcite-panel", { key: '43ed17c41f1c42dcb25a19423e1638885a4ca64b', class: this.baseClass, ref: el => (this.panelEl = el) }, h("slot", { key: 'df4bc6bdf21127e781f930cf476af2a5d8199c87', slot: "header-content", name: "filter-header-content" }), h("slot", { key: 'c2e6744535fb85e40ddd4de215f693258bf31e87', slot: "header-actions-end", name: "filter-header-actions-end" }), h("div", { key: "filter-container", class: CSS.filterContainer }, filterConfig, footer))));
190
186
  }
191
187
  renderLoading() {
192
188
  return h("calcite-loader", { label: "Loading filters..." });
@@ -259,7 +255,7 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
259
255
  var _a, _b, _c;
260
256
  const closeText = this.closeBtnText != null ? this.closeBtnText : (_a = this.messages) === null || _a === void 0 ? void 0 : _a.close;
261
257
  const btnWidth = this.closeBtn && this.resetBtn ? 'half' : 'full';
262
- return (h("div", { class: CSS.footer, slot: "footer" }, this.resetBtn ? (h("calcite-button", { appearance: "outline", width: btnWidth, disabled: this.disabled, onClick: this.handleResetFilter.bind(this) }, (_b = this.messages) === null || _b === void 0 ? void 0 : _b.resetFilter)) : undefined, this.closeBtn ? (h("calcite-button", { appearance: "solid", width: btnWidth, kind: "brand", onClick: (_c = this.closeBtnOnClick) === null || _c === void 0 ? void 0 : _c.bind(this) }, closeText)) : undefined));
258
+ return (h("div", { class: CSS.footer, slot: "footer" }, this.resetBtn ? (h("calcite-button", { appearance: "outline", width: btnWidth, ref: (el) => (this.resetBtnEl = el), onClick: this.handleResetFilter.bind(this) }, (_b = this.messages) === null || _b === void 0 ? void 0 : _b.resetFilter)) : undefined, this.closeBtn ? (h("calcite-button", { appearance: "solid", width: btnWidth, kind: "brand", onClick: (_c = this.closeBtnOnClick) === null || _c === void 0 ? void 0 : _c.bind(this) }, closeText)) : undefined));
263
259
  }
264
260
  renderZoomTo(layerExpression) {
265
261
  var _a;
@@ -290,23 +286,29 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
290
286
  }
291
287
  async initExpressions() {
292
288
  this.loading = true;
293
- if (this.filterLayerExpressions == null || this.view == null)
289
+ if (this.filterLayerExpressions == null || this.view == null) {
290
+ this.loading = false;
294
291
  return;
292
+ }
295
293
  await this.processExpressions();
296
294
  this.loading = false;
297
295
  }
298
296
  async processExpressions() {
299
- var _a;
300
297
  if (!this.filterLayerExpressions)
301
298
  return;
302
299
  for (const layerExpression of this.filterLayerExpressions) {
303
300
  for (const expression of layerExpression.expressions || []) {
304
- expression.active = (_a = expression.active) !== null && _a !== void 0 ? _a : expression.definitionExpression != null;
305
301
  await this.setInitExpression(layerExpression, expression);
306
302
  }
307
303
  }
308
304
  }
309
305
  handleResetFilter() {
306
+ this.resetExpressions();
307
+ this.resetAllFilters();
308
+ this.generateURLParams();
309
+ this.filterListReset.emit();
310
+ }
311
+ resetExpressions() {
310
312
  var _a;
311
313
  (_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.forEach(layerExpression => {
312
314
  var _a;
@@ -334,9 +336,6 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
334
336
  expression.active = false;
335
337
  });
336
338
  });
337
- this.resetAllFilters();
338
- this.generateURLParams();
339
- this.filterListReset.emit();
340
339
  }
341
340
  resetExpressionUI(type, expression) {
342
341
  const { id } = expression;
@@ -1109,13 +1108,13 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
1109
1108
  "filterLayerExpressions": [32],
1110
1109
  "messages": [32],
1111
1110
  "baseClass": [32],
1112
- "disabled": [32],
1113
1111
  "initDefExpressions": [32],
1114
1112
  "initMapImageExpressions": [32],
1115
1113
  "initPointCloudFilters": [32],
1116
1114
  "getFilterInitState": [64],
1117
1115
  "forceReset": [64],
1118
- "restoreFilters": [64]
1116
+ "updateInitDefExpressions": [64],
1117
+ "getCurrentLayerExpressions": [64]
1119
1118
  }, undefined, {
1120
1119
  "view": ["watchViewHandler"],
1121
1120
  "layerExpressions": ["watchLayerExpressions"]
@@ -89,15 +89,29 @@ const InstantAppsInteractiveLegendRelationship = /*@__PURE__*/ proxyCustomElemen
89
89
  if (!cellGroup)
90
90
  return;
91
91
  cellGroup.map((cell, cellIndex) => {
92
- var _a, _b;
92
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
93
93
  const uvInfos = ((_b = (_a = this.activeLayerInfo) === null || _a === void 0 ? void 0 : _a.layer) === null || _b === void 0 ? void 0 : _b.renderer).uniqueValueInfos;
94
94
  if (uvInfos[cellIndex]) {
95
- const color = uvInfos[cellIndex].symbol.color;
95
+ const CIMSymbolColor_Index = (_g = (_f = (_e = (_d = (_c = uvInfos === null || uvInfos === void 0 ? void 0 : uvInfos[cellIndex]) === null || _c === void 0 ? void 0 : _c.symbol) === null || _d === void 0 ? void 0 : _d['data']) === null || _e === void 0 ? void 0 : _e.symbol) === null || _f === void 0 ? void 0 : _f.symbolLayers) === null || _g === void 0 ? void 0 : _g[1].color;
96
+ const colorFromUVInfo_Index = (_j = (_h = uvInfos === null || uvInfos === void 0 ? void 0 : uvInfos[cellIndex]) === null || _h === void 0 ? void 0 : _h.symbol) === null || _j === void 0 ? void 0 : _j.color;
96
97
  uvInfos.forEach((uvInfo, index) => {
97
- const itemColor = uvInfo.symbol.color;
98
- const match = color.r === itemColor.r && color.g === itemColor.g && color.b === itemColor.b && color.a === itemColor.a;
99
- if (match)
98
+ var _a, _b, _c, _d, _e;
99
+ const colorFromUVInfo = (_a = uvInfo === null || uvInfo === void 0 ? void 0 : uvInfo.symbol) === null || _a === void 0 ? void 0 : _a.color;
100
+ const CIMSymbolColor = (_e = (_d = (_c = (_b = uvInfo === null || uvInfo === void 0 ? void 0 : uvInfo.symbol) === null || _b === void 0 ? void 0 : _b['data']) === null || _c === void 0 ? void 0 : _c.symbol) === null || _d === void 0 ? void 0 : _d.symbolLayers) === null || _e === void 0 ? void 0 : _e[1].color;
101
+ let match = false;
102
+ if (CIMSymbolColor) {
103
+ match = CIMSymbolColor.every((value, i) => value === CIMSymbolColor_Index[i]);
104
+ }
105
+ else {
106
+ match =
107
+ colorFromUVInfo.r === colorFromUVInfo_Index.r &&
108
+ colorFromUVInfo.g === colorFromUVInfo_Index.g &&
109
+ colorFromUVInfo.b === colorFromUVInfo_Index.b &&
110
+ colorFromUVInfo.a === colorFromUVInfo_Index.a;
111
+ }
112
+ if (match) {
100
113
  this.setCellAttributes(cell, index);
114
+ }
101
115
  });
102
116
  cell.classList.add('esri-interactive-legend__svg-rect-element');
103
117
  }
@@ -54,7 +54,7 @@ const InstantAppsLanguageSwitcher$1 = /*@__PURE__*/ proxyCustomElement(class Ins
54
54
  this.messages = await getMessages(document.createElement('instant-apps-language-translator'));
55
55
  try {
56
56
  this.portalItemResource = (await getPortalItemResource(this.portalItem));
57
- const t9nData = await fetchResourceData(request, this.portalItemResource);
57
+ const t9nData = await fetchResourceData(this.portalItemResource);
58
58
  this.t9nData = t9nData !== null && t9nData !== void 0 ? t9nData : {};
59
59
  }
60
60
  catch (err) {
@@ -95,7 +95,7 @@ const InstantAppsLanguageSwitcher$1 = /*@__PURE__*/ proxyCustomElement(class Ins
95
95
  const trigger = this.renderTrigger();
96
96
  const dropdown = this.renderDropdownItems();
97
97
  const defaultLocale = this.renderDefaultLocale();
98
- return (h("calcite-dropdown", { key: 'ce2effa615127d96ffa5995e09e6b92256d1e549', onCalciteDropdownBeforeOpen: () => (this.trigger.iconEnd = 'chevron-up'), onCalciteDropdownBeforeClose: () => (this.trigger.iconEnd = 'chevron-down'), "overlay-positioning": this.calciteDropdownOverlayPositioning, "width-scale": "m" }, trigger, defaultLocale, dropdown));
98
+ return (h("calcite-dropdown", { key: '7f9b97b70ec4a84ebd17d0d41ba598ae15304f10', onCalciteDropdownBeforeOpen: () => (this.trigger.iconEnd = 'chevron-up'), onCalciteDropdownBeforeClose: () => (this.trigger.iconEnd = 'chevron-down'), "overlay-positioning": this.calciteDropdownOverlayPositioning, "width-scale": "m" }, trigger, defaultLocale, dropdown));
99
99
  }
100
100
  renderDefaultLocale() {
101
101
  const { userLocale } = this;
@@ -177,7 +177,7 @@ const InstantAppsLanguageSwitcher$1 = /*@__PURE__*/ proxyCustomElement(class Ins
177
177
  async refresh() {
178
178
  try {
179
179
  const resource = (await getPortalItemResource(this.portalItem));
180
- const t9nData = await fetchResourceData(this.request, resource);
180
+ const t9nData = await fetchResourceData(resource);
181
181
  this.t9nData = t9nData;
182
182
  const refreshedData = { locale: this.selectedLanguage, data: t9nData[this.selectedLanguage] };
183
183
  this.selectedLanguageUpdated.emit(refreshedData);
@@ -24,17 +24,9 @@ import { d as defineCustomElement$3 } from './instant-apps-ckeditor-wrapper2.js'
24
24
  import { d as defineCustomElement$2 } from './instant-apps-language-translator-item2.js';
25
25
  import { d as defineCustomElement$1 } from './instant-apps-language-translator-search2.js';
26
26
 
27
- async function fetchResourceData(request, resource) {
28
- var _a, _b, _c;
27
+ async function fetchResourceData(resource) {
29
28
  try {
30
- const token = (_c = (_b = (_a = resource === null || resource === void 0 ? void 0 : resource.portalItem) === null || _a === void 0 ? void 0 : _a.portal) === null || _b === void 0 ? void 0 : _b['credential']) === null || _c === void 0 ? void 0 : _c['token'];
31
- const reqConfig = { responseType: 'json' };
32
- if (token)
33
- reqConfig.query = { token };
34
- var cacheBuster = 'cacheBuster=' + Date.now();
35
- const url = `${resource.url}?${cacheBuster}`;
36
- const reqRes = await request(url, reqConfig);
37
- const t9nData = reqRes.data;
29
+ const t9nData = await resource.fetch('json', { cacheBust: true });
38
30
  return Promise.resolve(t9nData);
39
31
  }
40
32
  catch (err) {
@@ -977,14 +969,14 @@ const InstantAppsLanguageTranslator = /*@__PURE__*/ proxyCustomElement(class Ins
977
969
  try {
978
970
  const portalItemResource = (await getPortalItemResource(this.portalItem));
979
971
  store.set('portalItemResource', portalItemResource);
980
- const t9nData = await fetchResourceData(this.request, portalItemResource);
972
+ const t9nData = await fetchResourceData(portalItemResource);
981
973
  store.set('lastSave', t9nData.lastSave);
982
974
  store.set('portalItemResourceT9n', t9nData !== null && t9nData !== void 0 ? t9nData : {});
983
975
  }
984
976
  catch (_a) { }
985
977
  }
986
978
  render() {
987
- return (h(Host, { key: '1f68786d3e9bced7a2242033cf51fc4937bc910a' }, this.renderModal(), this.renderPopoverTip()));
979
+ return (h(Host, { key: 'bbd0cf37c4aa5e145ee14cc17f8a005bcc28ac9c' }, this.renderModal(), this.renderPopoverTip()));
988
980
  }
989
981
  renderModal() {
990
982
  return (h("calcite-modal", { open: this.open, scale: "l", fullscreen: true, onCalciteModalClose: this.close.bind(this) }, this.renderHeader(), this.renderContent(), this.renderPrimaryContent()));
@@ -53,11 +53,12 @@ function removeItemFromLocalStorage(key) {
53
53
  (_a = window === null || window === void 0 ? void 0 : window.localStorage) === null || _a === void 0 ? void 0 : _a.removeItem(key);
54
54
  }
55
55
 
56
- const instantAppsSplashCss = ":host{display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:flex;align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom:0}";
56
+ const instantAppsSplashCss = ":host{--instant-apps-splash-content-max-height:100%;display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:flex;align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom:0}:host .instant-apps-splash__content{max-height:var(--instant-apps-splash-content-max-height)}";
57
57
  const InstantAppsSplashStyle0 = instantAppsSplashCss;
58
58
 
59
59
  const CSS = {
60
60
  back: 'instant-apps-splash__back-content',
61
+ content: 'instant-apps-splash__content',
61
62
  };
62
63
  const InstantAppsSplash$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsSplash extends HTMLElement {
63
64
  constructor() {
@@ -99,7 +100,7 @@ const InstantAppsSplash$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsSp
99
100
  getMessages(this);
100
101
  }
101
102
  render() {
102
- return (h("calcite-modal", { key: '1ab8d4142fe5c3ac087c2146af6f8510183af8a8', onCalciteModalClose: this.close.bind(this), open: this.open, closeButtonDisabled: this.closeButtonDisabled, outsideCloseDisabled: this.outsideCloseDisabled }, this.renderHeader(), this.renderContent(), this.localStorageKey ? this.renderDontShowThisAgainCheckbox() : null, this.renderPrimaryButton(), this.secondaryButton ? this.renderSecondaryButton() : null));
103
+ return (h("calcite-modal", { key: '9496c3fd2cee50e19313f82ca1acd5532e8ba4d1', onCalciteModalClose: this.close.bind(this), open: this.open, closeButtonDisabled: this.closeButtonDisabled, outsideCloseDisabled: this.outsideCloseDisabled }, this.renderHeader(), this.renderContent(), this.localStorageKey ? this.renderDontShowThisAgainCheckbox() : null, this.renderPrimaryButton(), this.secondaryButton ? this.renderSecondaryButton() : null));
103
104
  }
104
105
  renderHeader() {
105
106
  const { titleText } = this;
@@ -107,7 +108,7 @@ const InstantAppsSplash$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsSp
107
108
  }
108
109
  renderContent() {
109
110
  const { content } = this;
110
- return (h("div", { slot: "content", innerHTML: content }, h("slot", { name: "custom-action" })));
111
+ return (h("div", { slot: "content", class: CSS.content, innerHTML: content }, h("slot", { name: "custom-action" })));
111
112
  }
112
113
  renderDontShowThisAgainCheckbox() {
113
114
  const { localStorageKey, messages } = this;
@@ -13,7 +13,7 @@ import { e as esriLoader } from './esri-loader.js';
13
13
  * See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14
14
  */
15
15
  const loadModules = async (moduleNames, options) => {
16
- esriLoader.exports.setDefaultOptions({ url: 'https://js.arcgis.com/4.30/' });
16
+ esriLoader.exports.setDefaultOptions({ url: 'https://js.arcgis.com/4.31/' });
17
17
  const mods = await esriLoader.exports.loadModules(moduleNames, options);
18
18
  return mods.map(mod => (mod.__esModule && mod.default ? mod.default : mod));
19
19
  };
@@ -64,7 +64,7 @@ const SolutionSpatialRef = /*@__PURE__*/ proxyCustomElement(class SolutionSpatia
64
64
  }
65
65
  render() {
66
66
  this._updateUIFromStore();
67
- return (h(Host, { key: 'c4d6b7debb3852da999002bd1d9394ba4a4f2da8' }, h("label", { key: 'e16a28157db4c3aece6a00460816c3394f1f9198', class: "switch-label" }, h("calcite-switch", { key: '48d3b1c12aa93c50ccf424ccaf0a810855227b8d', checked: this.enabled, class: "spatial-ref-switch", onCalciteSwitchChange: (event) => this.enabled = event.target.checked, scale: "m" }), this._translations.enableSpatialReference), h("br", { key: '0e7eb35accdccef9f17e0a24b17180d25c4f054a' }), h("div", { key: '257e130fdda5e42a8c40662f21c3d315f91562c7', class: "spatial-ref-component", id: "spatialRefDefn" }, this._renderFeatureServicesList(this.featureServices)), h("label", { key: 'd7581971bb310c6c4b0fb1015db59a359da54b90', class: "switch-label spatial-ref-component" }, h("calcite-switch", { key: '3045b179955101fc5baff8ca09cb10d0077e35ca', checked: this.enableDefault, class: "spatial-ref-switch", disabled: !this.enabled, onCalciteSwitchChange: (event) => this.enableDefault = event.target.checked, scale: "m" }), this._translations.enableDefaultSpatialReference)));
67
+ return (h(Host, { key: 'b8775ad1a6a18c0b32d020c02d6f9fe13f5d578a' }, h("label", { key: 'd10fa03d4d127579eed4fec2c6c907dc46166bdf', class: "switch-label" }, h("calcite-switch", { key: 'ce47d98234008f377d674851ce77c68ebaa4fd71', checked: this.enabled, class: "spatial-ref-switch", onCalciteSwitchChange: (event) => this.enabled = event.target.checked, scale: "m" }), this._translations.enableSpatialReference), h("br", { key: '54dc5ccf3fec55650f62d8dbeb09071c8e88805c' }), h("div", { key: '03257e474d254e4d5a0dd10ac7ab6e8b88f85d54', class: "spatial-ref-component", id: "spatialRefDefn" }, this._renderFeatureServicesList(this.featureServices)), h("label", { key: 'fac415766affa3b1620ce6a5c3d5ef900b25944f', class: "switch-label spatial-ref-component" }, h("calcite-switch", { key: '611b69b0895267702a69a70436033274d3d28892', checked: this.enableDefault, class: "spatial-ref-switch", disabled: !this.enabled, onCalciteSwitchChange: (event) => this.enableDefault = event.target.checked, scale: "m" }), this._translations.enableDefaultSpatialReference)));
68
68
  }
69
69
  //--------------------------------------------------------------------------
70
70
  //
@@ -271,7 +271,7 @@ const SolutionSpatialRef = /*@__PURE__*/ proxyCustomElement(class SolutionSpatia
271
271
  "enabled": [1540],
272
272
  "enableDefault": [1540, "enable-default"],
273
273
  "featureServices": [1040],
274
- "locale": [1],
274
+ "locale": [1025],
275
275
  "_translations": [32],
276
276
  "_testAccess": [64]
277
277
  }, [[8, "solutionStoreHasChanges", "solutionStoreHasChanges"]], {
@@ -129,7 +129,7 @@ function initExternalCKEditorStyles() {
129
129
  document.head.appendChild(style);
130
130
  }
131
131
  async function updateLastSave(resource) {
132
- const data = await resource.fetch();
132
+ const data = store.get('portalItemResourceT9n');
133
133
  const lastSave = Date.now();
134
134
  store.set('lastSave', lastSave);
135
135
  const dataStr = JSON.stringify(Object.assign(Object.assign({}, data), { lastSave }));
@@ -11,7 +11,7 @@ import { c as connectLocalized, d as disconnectLocalized } from './locale-24516f
11
11
  import { u as updateMessages, c as connectMessages, d as disconnectMessages, s as setUpMessages } from './t9n-9a5d28cf.js';
12
12
  import { t as toggleChildActionText, E as ExpandToggle } from './ExpandToggle-4d440eb0.js';
13
13
  import { c as createObserver } from './observers-c83631e8.js';
14
- import { l as loadModules } from './loadModules-03ba7abe.js';
14
+ import { l as loadModules } from './loadModules-d5a25252.js';
15
15
  import './guid-b0fb1de3.js';
16
16
  import './resources-8e2ed936.js';
17
17
  import './browser-b67d8df6.js';
@@ -23,8 +23,8 @@ import { g as guid } from './guid-b0fb1de3.js';
23
23
  import { g as getIconScale } from './component-83541c88.js';
24
24
  import { V as Validation } from './Validation-cf136c56.js';
25
25
  import { s as syncHiddenFormInput } from './input-e01adc49.js';
26
- import { l as loadModules } from './loadModules-03ba7abe.js';
27
- import { g as getMessages } from './locale-ce177eb8.js';
26
+ import { l as loadModules } from './loadModules-d5a25252.js';
27
+ import { g as getMessages } from './locale-77038bee.js';
28
28
  import { g as getMode } from './mode-8c5f5dc9.js';
29
29
  import './observers-c83631e8.js';
30
30
  import './resources-8e2ed936.js';
@@ -1534,7 +1534,6 @@ const InstantAppsFilterList = class {
1534
1534
  this.filterLayerExpressions = undefined;
1535
1535
  this.messages = undefined;
1536
1536
  this.baseClass = baseClassLight;
1537
- this.disabled = true;
1538
1537
  this.initDefExpressions = undefined;
1539
1538
  this.initMapImageExpressions = undefined;
1540
1539
  this.initPointCloudFilters = undefined;
@@ -1555,31 +1554,27 @@ const InstantAppsFilterList = class {
1555
1554
  });
1556
1555
  }
1557
1556
  forceReset() {
1558
- this.handleResetFilter();
1559
- return this.initExpressions();
1557
+ this.resetExpressions();
1558
+ return Promise.resolve();
1560
1559
  }
1561
- restoreFilters(filterParamString, filterInitState) {
1562
- this.filterLayerExpressions = structuredClone(this.layerExpressions);
1560
+ updateInitDefExpressions(filterInitState) {
1563
1561
  this.initDefExpressions = filterInitState.initDefExpressions;
1564
1562
  this.initMapImageExpressions = filterInitState.initMapImageExpressions;
1565
1563
  this.initPointCloudFilters = filterInitState.initPointCloudFilters;
1566
- const filters = filterParamString === null || filterParamString === void 0 ? void 0 : filterParamString.split(';').map(filter => JSON.parse(filter));
1567
- if (filters) {
1568
- this.filterCount = this.applyFilters(filters);
1569
- }
1570
- return this.initExpressions();
1564
+ return Promise.resolve();
1565
+ }
1566
+ getCurrentLayerExpressions() {
1567
+ const currentLayerExpressions = structuredClone(this.filterLayerExpressions);
1568
+ return Promise.resolve(currentLayerExpressions);
1571
1569
  }
1572
1570
  connectedCallback() {
1573
- var _a;
1574
1571
  if (this.layerExpressions == null && this.view == null)
1575
1572
  return;
1576
1573
  this.isLayerExpUpdated = true;
1577
1574
  this.filterLayerExpressions = structuredClone(this.layerExpressions);
1578
- this.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) ? undefined : true;
1579
1575
  this.handleLayerExpressionsUpdate();
1580
1576
  }
1581
1577
  async componentWillLoad() {
1582
- var _a;
1583
1578
  this.baseClass = getMode(this.el) === 'dark' ? baseClassDark : baseClassLight;
1584
1579
  await this.initializeModules();
1585
1580
  getMessages(this);
@@ -1587,14 +1582,15 @@ const InstantAppsFilterList = class {
1587
1582
  return;
1588
1583
  this.isLayerExpUpdated = true;
1589
1584
  this.filterLayerExpressions = this.layerExpressions != null ? structuredClone(this.layerExpressions) : [];
1590
- this.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) ? undefined : true;
1591
1585
  if (this.view == null)
1592
1586
  return;
1593
1587
  this.handleLayerExpressionsUpdate();
1594
1588
  }
1595
- componentWillRender() {
1589
+ componentDidRender() {
1596
1590
  var _a;
1597
- this.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) > 0 ? undefined : true;
1591
+ if (this.resetBtnEl != null) {
1592
+ this.resetBtnEl.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) > 0 ? false : true;
1593
+ }
1598
1594
  }
1599
1595
  disconnectedCallback() {
1600
1596
  if (this.resetFiltersOnDisconnect) {
@@ -1612,7 +1608,7 @@ const InstantAppsFilterList = class {
1612
1608
  render() {
1613
1609
  const filterConfig = this.loading ? this.renderLoading() : this.initFilterConfig();
1614
1610
  const footer = this.renderFooter();
1615
- return (h(Host, { key: '055d2a02c5118e59462af8759c6bf2f39304fd75' }, h("calcite-panel", { key: '0335c9b28101257551902737ef373543aebee1f6', class: this.baseClass, ref: el => (this.panelEl = el) }, h("slot", { key: '4b471e66583b3f2fd733688d65ce8d3b2acbeb66', slot: "header-content", name: "filter-header-content" }), h("slot", { key: 'f5832075687a6812b902643fd057587b438b38cf', slot: "header-actions-end", name: "filter-header-actions-end" }), h("div", { key: "filter-container", class: CSS$1.filterContainer }, filterConfig, footer))));
1611
+ return (h(Host, { key: '92daa28c3cada3360d3b3d4202f54842e2e42923' }, h("calcite-panel", { key: '43ed17c41f1c42dcb25a19423e1638885a4ca64b', class: this.baseClass, ref: el => (this.panelEl = el) }, h("slot", { key: 'df4bc6bdf21127e781f930cf476af2a5d8199c87', slot: "header-content", name: "filter-header-content" }), h("slot", { key: 'c2e6744535fb85e40ddd4de215f693258bf31e87', slot: "header-actions-end", name: "filter-header-actions-end" }), h("div", { key: "filter-container", class: CSS$1.filterContainer }, filterConfig, footer))));
1616
1612
  }
1617
1613
  renderLoading() {
1618
1614
  return h("calcite-loader", { label: "Loading filters..." });
@@ -1685,7 +1681,7 @@ const InstantAppsFilterList = class {
1685
1681
  var _a, _b, _c;
1686
1682
  const closeText = this.closeBtnText != null ? this.closeBtnText : (_a = this.messages) === null || _a === void 0 ? void 0 : _a.close;
1687
1683
  const btnWidth = this.closeBtn && this.resetBtn ? 'half' : 'full';
1688
- return (h("div", { class: CSS$1.footer, slot: "footer" }, this.resetBtn ? (h("calcite-button", { appearance: "outline", width: btnWidth, disabled: this.disabled, onClick: this.handleResetFilter.bind(this) }, (_b = this.messages) === null || _b === void 0 ? void 0 : _b.resetFilter)) : undefined, this.closeBtn ? (h("calcite-button", { appearance: "solid", width: btnWidth, kind: "brand", onClick: (_c = this.closeBtnOnClick) === null || _c === void 0 ? void 0 : _c.bind(this) }, closeText)) : undefined));
1684
+ return (h("div", { class: CSS$1.footer, slot: "footer" }, this.resetBtn ? (h("calcite-button", { appearance: "outline", width: btnWidth, ref: (el) => (this.resetBtnEl = el), onClick: this.handleResetFilter.bind(this) }, (_b = this.messages) === null || _b === void 0 ? void 0 : _b.resetFilter)) : undefined, this.closeBtn ? (h("calcite-button", { appearance: "solid", width: btnWidth, kind: "brand", onClick: (_c = this.closeBtnOnClick) === null || _c === void 0 ? void 0 : _c.bind(this) }, closeText)) : undefined));
1689
1685
  }
1690
1686
  renderZoomTo(layerExpression) {
1691
1687
  var _a;
@@ -1716,23 +1712,29 @@ const InstantAppsFilterList = class {
1716
1712
  }
1717
1713
  async initExpressions() {
1718
1714
  this.loading = true;
1719
- if (this.filterLayerExpressions == null || this.view == null)
1715
+ if (this.filterLayerExpressions == null || this.view == null) {
1716
+ this.loading = false;
1720
1717
  return;
1718
+ }
1721
1719
  await this.processExpressions();
1722
1720
  this.loading = false;
1723
1721
  }
1724
1722
  async processExpressions() {
1725
- var _a;
1726
1723
  if (!this.filterLayerExpressions)
1727
1724
  return;
1728
1725
  for (const layerExpression of this.filterLayerExpressions) {
1729
1726
  for (const expression of layerExpression.expressions || []) {
1730
- expression.active = (_a = expression.active) !== null && _a !== void 0 ? _a : expression.definitionExpression != null;
1731
1727
  await this.setInitExpression(layerExpression, expression);
1732
1728
  }
1733
1729
  }
1734
1730
  }
1735
1731
  handleResetFilter() {
1732
+ this.resetExpressions();
1733
+ this.resetAllFilters();
1734
+ this.generateURLParams();
1735
+ this.filterListReset.emit();
1736
+ }
1737
+ resetExpressions() {
1736
1738
  var _a;
1737
1739
  (_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.forEach(layerExpression => {
1738
1740
  var _a;
@@ -1760,9 +1762,6 @@ const InstantAppsFilterList = class {
1760
1762
  expression.active = false;
1761
1763
  });
1762
1764
  });
1763
- this.resetAllFilters();
1764
- this.generateURLParams();
1765
- this.filterListReset.emit();
1766
1765
  }
1767
1766
  resetExpressionUI(type, expression) {
1768
1767
  const { id } = expression;
@@ -3,19 +3,11 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import { l as loadModules } from './loadModules-03ba7abe.js';
6
+ import { l as loadModules } from './loadModules-d5a25252.js';
7
7
 
8
- async function fetchResourceData(request, resource) {
9
- var _a, _b, _c;
8
+ async function fetchResourceData(resource) {
10
9
  try {
11
- const token = (_c = (_b = (_a = resource === null || resource === void 0 ? void 0 : resource.portalItem) === null || _a === void 0 ? void 0 : _a.portal) === null || _b === void 0 ? void 0 : _b['credential']) === null || _c === void 0 ? void 0 : _c['token'];
12
- const reqConfig = { responseType: 'json' };
13
- if (token)
14
- reqConfig.query = { token };
15
- var cacheBuster = 'cacheBuster=' + Date.now();
16
- const url = `${resource.url}?${cacheBuster}`;
17
- const reqRes = await request(url, reqConfig);
18
- const t9nData = reqRes.data;
10
+ const t9nData = await resource.fetch('json', { cacheBust: true });
19
11
  return Promise.resolve(t9nData);
20
12
  }
21
13
  catch (err) {