@esri/solutions-components 0.10.42 → 0.10.43
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block_5.cjs.entry.js +25 -26
- package/dist/cjs/{constants-51cf394f.js → constants-bed33322.js} +3 -11
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +112 -49
- package/dist/cjs/{helpers-afcac967.js → helpers-0493759d.js} +1 -1
- package/dist/cjs/instant-apps-app-guide.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-create.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +21 -7
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +7 -7
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popover.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-splash.cjs.entry.js +6 -5
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +2 -2
- package/dist/cjs/{loadModules-8567855e.js → loadModules-df8b13ca.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-4a18a858.js → locale-4b820602.js} +1 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/{utils-fa7ad44b.js → utils-3f10ea6b.js} +2 -2
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +112 -49
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +2 -2
- package/dist/components/crowdsource-reporter.js +112 -49
- package/dist/components/instant-apps-filter-list2.js +25 -26
- package/dist/components/instant-apps-interactive-legend-relationship2.js +19 -5
- package/dist/components/instant-apps-language-switcher.js +3 -3
- package/dist/components/instant-apps-language-translator2.js +4 -12
- package/dist/components/instant-apps-splash.js +4 -3
- package/dist/components/loadModules2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +2 -2
- package/dist/components/utils4.js +1 -1
- package/dist/esm/calcite-action-pad_2.entry.js +1 -1
- package/dist/esm/calcite-block_5.entry.js +25 -26
- package/dist/esm/{constants-886c7c2c.js → constants-637a40f5.js} +3 -11
- package/dist/esm/crowdsource-reporter.entry.js +112 -49
- package/dist/esm/{helpers-91087955.js → helpers-91ca0f44.js} +1 -1
- package/dist/esm/instant-apps-app-guide.entry.js +2 -2
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +3 -3
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-create.entry.js +2 -2
- package/dist/esm/instant-apps-export-views.entry.js +2 -2
- package/dist/esm/instant-apps-export.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +21 -7
- package/dist/esm/instant-apps-interactive-legend.entry.js +3 -3
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +2 -2
- package/dist/esm/instant-apps-language-switcher.entry.js +7 -7
- package/dist/esm/instant-apps-language-translator.entry.js +6 -6
- package/dist/esm/instant-apps-measurement.entry.js +2 -2
- package/dist/esm/instant-apps-popover.entry.js +2 -2
- package/dist/esm/instant-apps-scoreboard.entry.js +2 -2
- package/dist/esm/instant-apps-sign-in.entry.js +2 -2
- package/dist/esm/instant-apps-splash.entry.js +6 -5
- package/dist/esm/instant-apps-time-filter.entry.js +2 -2
- package/dist/esm/{loadModules-03ba7abe.js → loadModules-d5a25252.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-ce177eb8.js → locale-77038bee.js} +1 -1
- package/dist/esm/solution-contents_3.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/{utils-3fc29543.js → utils-0a78d3c9.js} +2 -2
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-splash/instant-apps-splash.css +7 -0
- package/dist/solutions-components/{p-b739f26d.entry.js → p-053effee.entry.js} +1 -1
- package/dist/solutions-components/{p-af573e0d.js → p-09543b4e.js} +1 -1
- package/dist/solutions-components/p-1b1ff60a.entry.js +6 -0
- package/dist/solutions-components/{p-e4107150.entry.js → p-2291bf3f.entry.js} +1 -1
- package/dist/solutions-components/p-2cf41651.entry.js +6 -0
- package/dist/solutions-components/{p-fe3aea1a.entry.js → p-351c7cbf.entry.js} +1 -1
- package/dist/solutions-components/{p-90fc786f.entry.js → p-3d999f0f.entry.js} +1 -1
- package/dist/solutions-components/p-3fe6c230.entry.js +6 -0
- package/dist/solutions-components/p-4695cfab.js +6 -0
- package/dist/solutions-components/{p-43699470.entry.js → p-499489c5.entry.js} +1 -1
- package/dist/solutions-components/{p-5ff711ee.js → p-5104cc98.js} +1 -1
- package/dist/solutions-components/p-5e694bcc.entry.js +29 -0
- package/dist/solutions-components/{p-cbb86cf2.entry.js → p-6a3f2249.entry.js} +1 -1
- package/dist/solutions-components/{p-a7f56b28.entry.js → p-6e5ea1cb.entry.js} +1 -1
- package/dist/solutions-components/{p-9c170b30.entry.js → p-76a1236d.entry.js} +1 -1
- package/dist/solutions-components/{p-1e14b3d0.entry.js → p-78b6d3fe.entry.js} +1 -1
- package/dist/solutions-components/{p-c48be45f.entry.js → p-8a1a0f9b.entry.js} +1 -1
- package/dist/solutions-components/{p-5cbf3eed.entry.js → p-8d4a4498.entry.js} +1 -1
- package/dist/solutions-components/{p-4a02fd45.entry.js → p-9d9e0e74.entry.js} +1 -1
- package/dist/solutions-components/{p-50fb7f47.js → p-b49e1a78.js} +1 -1
- package/dist/solutions-components/{p-c551ffc5.entry.js → p-c399f2b8.entry.js} +1 -1
- package/dist/solutions-components/p-cb27611e.entry.js +6 -0
- package/dist/solutions-components/{p-4cd4cb85.js → p-d001e961.js} +1 -1
- package/dist/solutions-components/{p-523dcf4b.entry.js → p-d37a68f7.entry.js} +1 -1
- package/dist/solutions-components/{p-a2cf9fdc.entry.js → p-db7d5db8.entry.js} +1 -1
- package/dist/solutions-components/{p-6438d1ea.entry.js → p-e29e57db.entry.js} +1 -1
- package/dist/solutions-components/{p-a5b751e2.entry.js → p-e625aa69.entry.js} +1 -1
- package/dist/solutions-components/{p-2542d5c9.entry.js → p-e9fcc194.entry.js} +1 -1
- package/dist/solutions-components/{p-374ddead.entry.js → p-f4880179.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +43 -17
- package/package.json +7 -7
- package/dist/solutions-components/p-3fc18283.entry.js +0 -6
- package/dist/solutions-components/p-442dd59c.entry.js +0 -6
- package/dist/solutions-components/p-5585dcd3.entry.js +0 -6
- package/dist/solutions-components/p-953afbb3.entry.js +0 -29
- package/dist/solutions-components/p-ceb1030b.js +0 -6
- 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.
|
133
|
-
return
|
131
|
+
this.resetExpressions();
|
132
|
+
return Promise.resolve();
|
134
133
|
}
|
135
|
-
|
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
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
return
|
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
|
-
|
163
|
+
componentDidRender() {
|
170
164
|
var _a;
|
171
|
-
|
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: '
|
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,
|
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
|
-
"
|
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
|
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
|
-
|
98
|
-
const
|
99
|
-
|
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(
|
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: '
|
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(
|
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(
|
28
|
-
var _a, _b, _c;
|
27
|
+
async function fetchResourceData(resource) {
|
29
28
|
try {
|
30
|
-
const
|
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(
|
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: '
|
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: '
|
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.
|
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: '
|
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": [
|
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 =
|
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-
|
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-
|
27
|
-
import { g as getMessages } from './locale-
|
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.
|
1559
|
-
return
|
1557
|
+
this.resetExpressions();
|
1558
|
+
return Promise.resolve();
|
1560
1559
|
}
|
1561
|
-
|
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
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
return
|
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
|
-
|
1589
|
+
componentDidRender() {
|
1596
1590
|
var _a;
|
1597
|
-
|
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: '
|
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,
|
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-
|
6
|
+
import { l as loadModules } from './loadModules-d5a25252.js';
|
7
7
|
|
8
|
-
async function fetchResourceData(
|
9
|
-
var _a, _b, _c;
|
8
|
+
async function fetchResourceData(resource) {
|
10
9
|
try {
|
11
|
-
const
|
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) {
|