@esri/solutions-components 0.10.41 → 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/card-manager_3.cjs.entry.js +11 -12
- package/dist/cjs/{constants-51cf394f.js → constants-bed33322.js} +3 -11
- package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -3
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +114 -52
- 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-manager/crowdsource-manager.js +4 -3
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +114 -52
- package/dist/collection/components/layer-table/layer-table.js +14 -11
- package/dist/collection/components/map-card/map-card.js +9 -5
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +2 -2
- package/dist/components/crowdsource-manager.js +4 -3
- package/dist/components/crowdsource-reporter.js +114 -52
- 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/layer-table2.js +8 -9
- package/dist/components/loadModules2.js +1 -1
- package/dist/components/map-card2.js +3 -3
- 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/card-manager_3.entry.js +11 -12
- package/dist/esm/{constants-886c7c2c.js → constants-637a40f5.js} +3 -11
- package/dist/esm/crowdsource-manager.entry.js +4 -3
- package/dist/esm/crowdsource-reporter.entry.js +114 -52
- 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-6d1922cc.entry.js → p-8b92fe23.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-a1d8aed8.entry.js +6 -0
- 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 +44 -18
- package/dist/types/components/layer-table/layer-table.d.ts +2 -2
- package/dist/types/components/map-card/map-card.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +7 -7
- package/dist/solutions-components/p-3fc18283.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-cced387c.entry.js +0 -6
- package/dist/solutions-components/p-ceb1030b.js +0 -6
- package/dist/solutions-components/p-e9026f9a.entry.js +0 -6
- package/dist/solutions-components/p-f728af86.entry.js +0 -6
@@ -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
|
};
|
@@ -323,8 +323,8 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
323
323
|
/**
|
324
324
|
* updates the filter
|
325
325
|
*/
|
326
|
-
async updateFilterState() {
|
327
|
-
this._filterActive =
|
326
|
+
async updateFilterState(active) {
|
327
|
+
this._filterActive = active;
|
328
328
|
this._updateShareUrl();
|
329
329
|
}
|
330
330
|
/**
|
@@ -401,7 +401,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
401
401
|
const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
|
402
402
|
const progressClass = this.isMapLayout ? "" : "display-none";
|
403
403
|
this._validateActiveActions();
|
404
|
-
return (h(Host, { key: '
|
404
|
+
return (h(Host, { key: '525ee5ce855cf5aa4f8c50e7e88be6c6236046ac' }, h("div", { key: '899898ee0b2ba9048ed24716a339c94d3106a52e', class: `${mapContainerClass} width-full`, ref: (el) => this._toolbar = el }, this._getActionBar(), !this.isMobile && this.isMapLayout && this._getDropdown("more-table-options"), this.enableShare && !this.isMobile && this.isMapLayout ? this._getShare("share") : undefined), h("calcite-progress", { key: '896569eb6cf65f45cbebb4b36f5b01ada5ed1092', class: progressClass, value: 0 }), h("div", { key: '79cac798541783bdc74e4b13f9df4d7564eb99f4', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { key: '730d48c4ce98af3872bfa6c486e8749e18c24477', basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: this.enableSingleExpand, homeZoomToolsSize: this.homeZoomToolsSize, locale: this.locale, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
|
405
405
|
}
|
406
406
|
/**
|
407
407
|
* Called each time after the component is loaded
|
@@ -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;
|
@@ -584,8 +584,8 @@ const LayerTable = class {
|
|
584
584
|
/**
|
585
585
|
* Updates the filter
|
586
586
|
*/
|
587
|
-
async filterUpdate() {
|
588
|
-
await this._handleFilterUpdate();
|
587
|
+
async filterUpdate(active) {
|
588
|
+
await this._handleFilterUpdate(active);
|
589
589
|
}
|
590
590
|
/**
|
591
591
|
* Closes the filter
|
@@ -727,10 +727,10 @@ const LayerTable = class {
|
|
727
727
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
728
728
|
const showSearch = this._canShowFullTextSearch();
|
729
729
|
this._validateActiveActions();
|
730
|
-
return (h(Host, { key: '
|
731
|
-
h("div", { key: '
|
730
|
+
return (h(Host, { key: 'f56462fd5d5afa71052cf2557069bb2fee15aaeb' }, h("calcite-shell", { key: '92ccfa2235269aad6da5f918f79ec8ae100e99ca' }, this._getTableControlRow("header"), h("div", { key: 'e5b8fe5e4236e1a7b7e9d31ad784d9bb52a6918d', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'eca933d832e5b6efddb025211c253bf09e41ab22', class: "height-full width-full" }, showSearch &&
|
731
|
+
h("div", { key: 'e819896c4264db3ee95d10194b67da65997b541d', class: "search-container" }, h("calcite-input", { key: 'e979c7962205caf072057332280b9e04ecd233c4', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), h("calcite-loader", { key: 'ee715472a4f819dd1e9328e75022439e9bba1334', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '8085821dea31de1fcbb1119e5791c0dea744e470', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
732
732
|
.replace("{{total}}", total)
|
733
|
-
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal(), h("delete-dialog", { key: '
|
733
|
+
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal(), h("delete-dialog", { key: '20c9a06c3f0d44433d9442755d25658c249e102c', id: "deleteDialogId", ids: this._getIds(), layer: this._layer, locale: this.locale, onDeleteDialogClose: () => this._deleteDialogOpen = false, open: this._deleteDialogOpen, ref: (el) => this._deleteDialog = el })));
|
734
734
|
}
|
735
735
|
_deleteDialog;
|
736
736
|
/**
|
@@ -1775,7 +1775,7 @@ const LayerTable = class {
|
|
1775
1775
|
* @protected
|
1776
1776
|
*/
|
1777
1777
|
_filterModal() {
|
1778
|
-
return (h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: () => void this._closeFilter(), open: this._filterOpen, widthScale: "s" }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations?.filter?.replace("{{title}}", this._layer?.title)), h("div", { slot: "content" }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtn: true, closeBtnOnClick: async () => this._closeFilter(), comboboxOverlayPositioning: "fixed", layerExpressions: this._layerExpressions, onFilterListReset: () => void this._handleFilterListReset(), onFilterUpdate: () => void this._handleFilterUpdate(), ref: (el) => this._filterList = el, view: this.mapView, zoomBtn: false }))));
|
1778
|
+
return (h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: () => void this._closeFilter(), open: this._filterOpen, widthScale: "s" }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations?.filter?.replace("{{title}}", this._layer?.title)), h("div", { slot: "content" }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtn: true, closeBtnOnClick: async () => this._closeFilter(), comboboxOverlayPositioning: "fixed", layerExpressions: this._layerExpressions, onFilterListReset: () => void this._handleFilterListReset(), onFilterUpdate: () => void this._handleFilterUpdate(this._filterList.filterCount > 0), ref: (el) => this._filterList = el, view: this.mapView, zoomBtn: false }))));
|
1779
1779
|
}
|
1780
1780
|
/**
|
1781
1781
|
* Reset the filter active prop
|
@@ -1790,7 +1790,7 @@ const LayerTable = class {
|
|
1790
1790
|
* Check if the layers definitionExpression has been modified
|
1791
1791
|
* @protected
|
1792
1792
|
*/
|
1793
|
-
async _handleFilterUpdate() {
|
1793
|
+
async _handleFilterUpdate(active) {
|
1794
1794
|
const defExp = this._layer.definitionExpression;
|
1795
1795
|
if (this._floorExpression) {
|
1796
1796
|
const regEx = new RegExp(`${this._floorField} = ['].+[']`, "gm");
|
@@ -1798,8 +1798,7 @@ const LayerTable = class {
|
|
1798
1798
|
defExp.replace(regEx, this._floorExpression) : defExp ?
|
1799
1799
|
`${defExp} AND (${this._floorExpression})` : this._floorExpression;
|
1800
1800
|
}
|
1801
|
-
this._filterActive =
|
1802
|
-
(this._floorExpression ? this._layer.definitionExpression !== this._floorExpression : true);
|
1801
|
+
this._filterActive = active;
|
1803
1802
|
this._updateShareUrl();
|
1804
1803
|
await this._searchFullText();
|
1805
1804
|
}
|
@@ -2388,8 +2387,8 @@ const MapCard = class {
|
|
2388
2387
|
/**
|
2389
2388
|
* updates the filter
|
2390
2389
|
*/
|
2391
|
-
async updateFilterState() {
|
2392
|
-
this._filterActive =
|
2390
|
+
async updateFilterState(active) {
|
2391
|
+
this._filterActive = active;
|
2393
2392
|
this._updateShareUrl();
|
2394
2393
|
}
|
2395
2394
|
/**
|
@@ -2466,7 +2465,7 @@ const MapCard = class {
|
|
2466
2465
|
const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
|
2467
2466
|
const progressClass = this.isMapLayout ? "" : "display-none";
|
2468
2467
|
this._validateActiveActions();
|
2469
|
-
return (h(Host, { key: '
|
2468
|
+
return (h(Host, { key: '525ee5ce855cf5aa4f8c50e7e88be6c6236046ac' }, h("div", { key: '899898ee0b2ba9048ed24716a339c94d3106a52e', class: `${mapContainerClass} width-full`, ref: (el) => this._toolbar = el }, this._getActionBar(), !this.isMobile && this.isMapLayout && this._getDropdown("more-table-options"), this.enableShare && !this.isMobile && this.isMapLayout ? this._getShare("share") : undefined), h("calcite-progress", { key: '896569eb6cf65f45cbebb4b36f5b01ada5ed1092', class: progressClass, value: 0 }), h("div", { key: '79cac798541783bdc74e4b13f9df4d7564eb99f4', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { key: '730d48c4ce98af3872bfa6c486e8749e18c24477', basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: this.enableSingleExpand, homeZoomToolsSize: this.homeZoomToolsSize, locale: this.locale, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
|
2470
2469
|
}
|
2471
2470
|
/**
|
2472
2471
|
* Called each time after the component is loaded
|
@@ -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) {
|
@@ -532,9 +532,10 @@ const CrowdsourceManager = class {
|
|
532
532
|
return (h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: () => void this._closeFilter(), open: this._filterOpen, widthScale: "s" }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations?.filter?.replace("{{title}}", this._layer?.title)), h("div", { slot: "content" }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtn: true, closeBtnOnClick: async () => this._closeFilter(), comboboxOverlayPositioning: "fixed", layerExpressions: this._layerExpressions, onFilterListReset: () => {
|
533
533
|
this._handleFilterListReset();
|
534
534
|
void this._mapCard.resetFilter();
|
535
|
-
}, onFilterUpdate: () => {
|
536
|
-
|
537
|
-
|
535
|
+
}, onFilterUpdate: async () => {
|
536
|
+
const active = this._filterList.filterCount > 0;
|
537
|
+
await this._layerTable?.filterUpdate(active);
|
538
|
+
await this._mapCard.updateFilterState(active);
|
538
539
|
}, ref: (el) => this._filterList = el, view: this._mapView, zoomBtn: false }))));
|
539
540
|
}
|
540
541
|
/**
|