@esri/solutions-components 0.10.42 → 0.10.44
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 +32 -4
- 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/layer-table/layer-table.js +32 -4
- 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/layer-table2.js +32 -4
- 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/card-manager_3.entry.js +32 -4
- 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-f0509d41.entry.js +6 -0
- 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/dist/types/components/layer-table/layer-table.d.ts +4 -0
- 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-a1d8aed8.entry.js +0 -6
- package/dist/solutions-components/p-ceb1030b.js +0 -6
- package/dist/solutions-components/p-f728af86.entry.js +0 -6
@@ -248,17 +248,17 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
248
248
|
*/
|
249
249
|
_formElements = [];
|
250
250
|
/**
|
251
|
-
* string
|
251
|
+
* string: Previous selected layer id
|
252
252
|
*/
|
253
|
-
|
253
|
+
_prevSelectedLayerId;
|
254
254
|
/**
|
255
|
-
*
|
255
|
+
* ILayerExpression[]: current LayerExpressions based on the selected layer
|
256
256
|
*/
|
257
|
-
|
257
|
+
_currentLayerExpressions;
|
258
258
|
/**
|
259
|
-
* string:
|
259
|
+
* { [key: string]: string }: definitionExpressions for each layer
|
260
260
|
*/
|
261
|
-
|
261
|
+
_initDefExpressions;
|
262
262
|
//--------------------------------------------------------------------------
|
263
263
|
//
|
264
264
|
// Watch handlers
|
@@ -283,6 +283,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
283
283
|
*/
|
284
284
|
async mapViewWatchHandler() {
|
285
285
|
await this.mapView.when(async () => {
|
286
|
+
this.setInitExpressions();
|
286
287
|
await this.setMapView();
|
287
288
|
});
|
288
289
|
}
|
@@ -361,15 +362,25 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
361
362
|
this._layers = this.reportingOptions ? Object.keys(this.reportingOptions).filter((layerId) => {
|
362
363
|
return this.reportingOptions[layerId].visible;
|
363
364
|
}) : [];
|
365
|
+
this.setInitExpressions();
|
364
366
|
await this.setMapView();
|
365
367
|
});
|
366
368
|
}
|
369
|
+
/**
|
370
|
+
* StencilJS: Called before every render().
|
371
|
+
* Update the filter list's initial definition expressions when the filter list component is available
|
372
|
+
*/
|
373
|
+
componentWillRender() {
|
374
|
+
if (this._flowItems.includes('filter-panel')) {
|
375
|
+
void this._filterList?.updateInitDefExpressions({ initDefExpressions: this._initDefExpressions });
|
376
|
+
}
|
377
|
+
}
|
367
378
|
/**
|
368
379
|
* Renders the component.
|
369
380
|
*/
|
370
381
|
render() {
|
371
382
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
372
|
-
return (h(Host, { key: '
|
383
|
+
return (h(Host, { key: 'f1dd6d85210210a73fff30a5d98370da1834be7b' }, this._reportSubmitted && h("calcite-alert", { key: 'b84760fcbf4bfcf0f038be272f74eda97ce17bd9', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '27aa04dd8575ad27898f7848bc2733a03a33e70f', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: '3fc2721bed573ad10bbb1c81af126e2e8ca90b12', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '4993e5c5b52d650b094c2890d0e4516cc87ffb69', slot: "title" }, this._translations.error), h("div", { key: '272b17f4c0239d8b295d6f2c0c02f1ba236d840d', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: '5b9e1a2bd129888ec0764ad9b05e5056653d3c33', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: 'bd428297f5fe85cbf7edc42c61c64c299d7954b7', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: '2aa1927ca27f9ec15a16f8e68905a1cf203ef833', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: '4bff5fb03586edf0f9ea21649d1de4c34034e539', slot: "title" }, this._translations.error), h("div", { key: '7ea6c71dbbac15c2f43242ba00c9e461177051a1', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: '3aa6bfc19a1e82ab90d2ab42aa9a577b3a2b6d8f' }, h("calcite-shell", { key: 'f27355d4f655c0a0931158f38f0be3eb28f6c4d4', "content-behind": true }, this._getReporter()))));
|
373
384
|
}
|
374
385
|
//--------------------------------------------------------------------------
|
375
386
|
//
|
@@ -433,7 +444,6 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
433
444
|
break;
|
434
445
|
case "filter-panel":
|
435
446
|
renderLists.push(this.getFilterPanel());
|
436
|
-
void this._restoreFilters();
|
437
447
|
break;
|
438
448
|
case "feature-details":
|
439
449
|
renderLists.push(this.getFeatureDetailsFlowItem());
|
@@ -480,20 +490,6 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
480
490
|
return (h("calcite-popover", { autoClose: true, label: "", offsetDistance: 0, placement: this.isMobile ? "leading-start" : "bottom-start", pointerDisabled: true, referenceElement: "sort-popover" }, h("calcite-list", { "selection-mode": "single" }, h("calcite-list-item", { label: this._translations.sortNewest, onCalciteListItemSelect: () => { void this.sortOptionClick(this._selectedLayer.objectIdField, "desc", "sortNewest"); }, selected: this._updatedSortOption === "sortNewest", value: "sortNewest" }), h("calcite-list-item", { label: this._translations.sortOldest, onCalciteListItemSelect: () => { void this.sortOptionClick(this._selectedLayer.objectIdField, "asc", "sortOldest"); }, selected: this._updatedSortOption === "sortOldest", value: "sortOldest" }), canSortByVotes &&
|
481
491
|
h(Fragment, null, h("calcite-list-item", { label: this._translations.sortHighestVoted, onCalciteListItemSelect: () => { void this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField, "desc", "sortHighestVoted"); }, selected: this._updatedSortOption === "sortHighestVoted", value: "sortHighestVoted" }), h("calcite-list-item", { label: this._translations.sortLowestVoted, onCalciteListItemSelect: () => { void this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField, "asc", "sortLowestVoted"); }, selected: this._updatedSortOption === "sortLowestVoted", value: "sortLowestVoted" })))));
|
482
492
|
}
|
483
|
-
/**
|
484
|
-
* Restores the applied filters
|
485
|
-
* @protected
|
486
|
-
*/
|
487
|
-
_restoreFilters() {
|
488
|
-
// call the restore function when instant-apps-filter-list is ready
|
489
|
-
setTimeout(() => {
|
490
|
-
const canRestoreFilter = this._filterList && this._filterUrlParams && this._filterInitState;
|
491
|
-
if (canRestoreFilter) {
|
492
|
-
void this._filterList.restoreFilters(this._filterUrlParams[0], this._filterInitState);
|
493
|
-
}
|
494
|
-
this._filterInitState = null;
|
495
|
-
}, 200);
|
496
|
-
}
|
497
493
|
/**
|
498
494
|
* Reset the filter
|
499
495
|
* @protected
|
@@ -501,8 +497,6 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
501
497
|
async _handleFilterListReset() {
|
502
498
|
//on reset filter list reset the filter states
|
503
499
|
this._filterActive = false;
|
504
|
-
this._filterUrlParams = null;
|
505
|
-
this._filterInitState = null;
|
506
500
|
}
|
507
501
|
/**
|
508
502
|
* Check if the layers definitionExpression has been modified and update the feature list depending on the applied filters
|
@@ -510,9 +504,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
510
504
|
*/
|
511
505
|
async _handleFilterUpdate(active) {
|
512
506
|
this._showLoadingIndicator = true;
|
513
|
-
//if filters are applied the url params will be generated
|
514
507
|
this._filterActive = active;
|
515
|
-
this._filterUrlParams = this._filterList.urlParams.getAll('filter');
|
516
508
|
await this._featureList.refresh();
|
517
509
|
this._showLoadingIndicator = false;
|
518
510
|
}
|
@@ -679,10 +671,6 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
679
671
|
if (evt.detail.layerId && evt.detail.layerName) {
|
680
672
|
await this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
681
673
|
}
|
682
|
-
// reset the applied filter when switching to another layer
|
683
|
-
if (this._selectedLayerId !== this._prevSelectedLayerId && this._filterActive) {
|
684
|
-
await this.resetFilter();
|
685
|
-
}
|
686
674
|
void this.updateNonVisibleLayersOnMap(true);
|
687
675
|
// get the form template elements to pass in create-feature to create a LEVELID field in feature-form
|
688
676
|
this._getFormElements();
|
@@ -754,28 +742,18 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
754
742
|
};
|
755
743
|
this._updatedSortOption = "sortNewest";
|
756
744
|
await this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
745
|
+
void this.handleSelectedLayersFilter();
|
757
746
|
this._flowItems = [...this._flowItems, "feature-list"];
|
758
|
-
// reset the applied filter when switching to another layer
|
759
|
-
if (this._selectedLayerId !== this._prevSelectedLayerId && this._filterActive) {
|
760
|
-
await this.resetFilter();
|
761
|
-
}
|
762
747
|
this._prevSelectedLayerId = this._selectedLayerId;
|
763
748
|
}
|
764
|
-
/**
|
765
|
-
* Reset's the applied filter
|
766
|
-
* @protected
|
767
|
-
*/
|
768
|
-
async resetFilter() {
|
769
|
-
const prevLayer = await getLayerOrTable(this.mapView, this._prevSelectedLayerId);
|
770
|
-
prevLayer.definitionExpression = this._filterInitState.initDefExpressions[this._prevSelectedLayerId];
|
771
|
-
void this._handleFilterListReset();
|
772
|
-
}
|
773
749
|
/**
|
774
750
|
* On back from filter panel get the filter's init state
|
775
751
|
* @protected
|
776
752
|
*/
|
777
753
|
async backFromFilterPanel() {
|
778
|
-
this.
|
754
|
+
if (this._filterList != null) {
|
755
|
+
this._currentLayerExpressions = await this._filterList.getCurrentLayerExpressions();
|
756
|
+
}
|
779
757
|
await this._featureList.refresh();
|
780
758
|
this.backFromSelectedPanel();
|
781
759
|
}
|
@@ -890,9 +868,8 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
890
868
|
* @protected
|
891
869
|
*/
|
892
870
|
getFeatureListFlowItem(layerId, layerName) {
|
893
|
-
const layerExpressions = this.layerExpressions?.filter((exp) => exp.id === this._selectedLayerId);
|
894
871
|
const canCreateReports = this._getLayersConfig(this._selectedLayerId)?.reporting && this._layerItemsHash[this._selectedLayerId].supportsAdd;
|
895
|
-
const showFilterIcon =
|
872
|
+
const showFilterIcon = this._currentLayerExpressions?.length > 0;
|
896
873
|
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: layerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this._toggleSort(), h("calcite-action", { icon: "sort-ascending-arrow", id: "sort-popover", slot: "header-actions-end", text: this._translations.sort, title: this._translations.sort }), showFilterIcon && h("calcite-action", { icon: "filter", indicator: this._filterActive, onClick: () => { this._flowItems = [...this._flowItems, "filter-panel"]; }, slot: "header-actions-end", text: this._translations.filter, title: this._translations.filter }), this.isMobile && this.getActionToExpandCollapsePanel(), this.enableNewReports && canCreateReports &&
|
897
874
|
h("calcite-button", { appearance: "solid", onClick: this.navigateToCreateFeature.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), h("calcite-panel", { "full-height": true }, h("feature-list", { applyLayerViewFilter: this.showMyReportsOnly, class: "height-full", highlightOnHover: true, locale: this.locale, mapView: this.mapView, noFeaturesFoundMsg: this._translations.featureErrorMsg, onFeatureSelect: this.onFeatureSelectFromList.bind(this), pageSize: 30, ref: el => this._featureList = el, reportingOptions: this.reportingOptions, selectedLayerId: layerId, showFeatureSymbol: this.showFeatureSymbol, sortingInfo: this._updatedSorting }))));
|
898
875
|
}
|
@@ -902,8 +879,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
902
879
|
* @protected
|
903
880
|
*/
|
904
881
|
getFilterPanel() {
|
905
|
-
|
906
|
-
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations?.filterLayerTitle?.replace("{{title}}", this._selectedLayerName), loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromFilterPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("div", { class: "width-full", slot: "footer" }, h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", disabled: !this._filterActive, onClick: () => { void this._filterList?.forceReset(); }, width: "full" }, this._translations.resetFilter), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromFilterPanel.bind(this), width: "full" }, this._translations.close))), h("calcite-panel", { "full-height": true }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtnOnClick: () => undefined, comboboxOverlayPositioning: "fixed", layerExpressions: currentLayersExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(this._filterList.filterCount > 0), ref: (el) => this._filterList = el, resetBtn: false, resetFiltersOnDisconnect: false, view: this.mapView, zoomBtn: false }))));
|
882
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations?.filterLayerTitle?.replace("{{title}}", this._selectedLayerName), loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromFilterPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("div", { class: "width-full", slot: "footer" }, h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", disabled: !this._filterActive, onClick: this.resetFilterList.bind(this), width: "full" }, this._translations.resetFilter), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromFilterPanel.bind(this), width: "full" }, this._translations.close))), h("calcite-panel", { "full-height": true }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtnOnClick: () => undefined, comboboxOverlayPositioning: "fixed", layerExpressions: this._currentLayerExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(this._filterList.filterCount > 0), ref: (el) => this._filterList = el, resetBtn: false, resetFiltersOnDisconnect: false, view: this.mapView, zoomBtn: false }))));
|
907
883
|
}
|
908
884
|
/**
|
909
885
|
* Returns the calcite-flow item for feature details
|
@@ -963,6 +939,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
963
939
|
else {
|
964
940
|
if (this._editableLayerIds.length > 1) {
|
965
941
|
void this.setSelectedLayer('', '');
|
942
|
+
void this.handlePrevLayersFilter();
|
966
943
|
}
|
967
944
|
this._currentFeatureId = '';
|
968
945
|
}
|
@@ -1219,7 +1196,8 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
1219
1196
|
detail: this._editableLayerIds
|
1220
1197
|
};
|
1221
1198
|
await this.layerListLoaded(evt);
|
1222
|
-
|
1199
|
+
await this.setSelectedLayer(this._validLayers[0].id, this._validLayers[0].title);
|
1200
|
+
void this.handleSelectedLayersFilter();
|
1223
1201
|
}
|
1224
1202
|
/**
|
1225
1203
|
* Updates the share url for current selected feature
|
@@ -1279,6 +1257,91 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
1279
1257
|
}
|
1280
1258
|
}
|
1281
1259
|
}
|
1260
|
+
/**
|
1261
|
+
* Handles updating the current layer expressions and definition expression for the selected layer
|
1262
|
+
* @protected
|
1263
|
+
*/
|
1264
|
+
async handleSelectedLayersFilter() {
|
1265
|
+
if (this._selectedLayer) {
|
1266
|
+
this._currentLayerExpressions = this.layerExpressions ? this.layerExpressions.filter(exp => exp.id === this._selectedLayerId) : [];
|
1267
|
+
this.setActiveDefinitionExpressions();
|
1268
|
+
}
|
1269
|
+
}
|
1270
|
+
/**
|
1271
|
+
* Handles updating the previous layer's definition expression to it's initial definition expression
|
1272
|
+
* @protected
|
1273
|
+
*/
|
1274
|
+
async handlePrevLayersFilter() {
|
1275
|
+
if (this._prevSelectedLayerId) {
|
1276
|
+
const prevLayer = await getLayerOrTable(this.mapView, this._prevSelectedLayerId);
|
1277
|
+
if (prevLayer) {
|
1278
|
+
prevLayer.definitionExpression = this._initDefExpressions[this._prevSelectedLayerId];
|
1279
|
+
}
|
1280
|
+
}
|
1281
|
+
}
|
1282
|
+
/**
|
1283
|
+
* Resets the selected layer's definition expression with the initial definition expression
|
1284
|
+
* @protected
|
1285
|
+
*/
|
1286
|
+
resetFilterList() {
|
1287
|
+
void this._filterList?.forceReset();
|
1288
|
+
if (this._selectedLayer != null) {
|
1289
|
+
this._selectedLayer.definitionExpression = this._initDefExpressions[this._selectedLayerId];
|
1290
|
+
this._filterActive = false;
|
1291
|
+
}
|
1292
|
+
}
|
1293
|
+
/**
|
1294
|
+
* Sets the active definition expressions for the selected layer
|
1295
|
+
* @protected
|
1296
|
+
*/
|
1297
|
+
setActiveDefinitionExpressions() {
|
1298
|
+
if (this._selectedLayer == null) {
|
1299
|
+
return;
|
1300
|
+
}
|
1301
|
+
const defExpressions = [];
|
1302
|
+
if (this._currentLayerExpressions?.length > 0) {
|
1303
|
+
const layerExpression = this._currentLayerExpressions[0];
|
1304
|
+
for (const expression of layerExpression.expressions) {
|
1305
|
+
const { active, definitionExpression } = expression;
|
1306
|
+
if (active && definitionExpression) {
|
1307
|
+
defExpressions.push(`(${definitionExpression})`);
|
1308
|
+
}
|
1309
|
+
}
|
1310
|
+
this._filterActive = defExpressions.length > 0;
|
1311
|
+
this.updateFilterLayerDefExpression(defExpressions, layerExpression.operator);
|
1312
|
+
}
|
1313
|
+
}
|
1314
|
+
/**
|
1315
|
+
* Updates the selected layer's definition expression based on the active expressions
|
1316
|
+
* @protected
|
1317
|
+
*/
|
1318
|
+
updateFilterLayerDefExpression(defExpressions, operator) {
|
1319
|
+
const initDefExpression = this._initDefExpressions[this._selectedLayerId];
|
1320
|
+
const combinedExpressions = defExpressions?.length > 0 && initDefExpression != null
|
1321
|
+
? `(${defExpressions.join(operator)}) AND (${initDefExpression})`
|
1322
|
+
: defExpressions.length > 0
|
1323
|
+
? defExpressions.join(operator)
|
1324
|
+
: initDefExpression;
|
1325
|
+
this._selectedLayer.definitionExpression = combinedExpressions;
|
1326
|
+
}
|
1327
|
+
/**
|
1328
|
+
* Sets the initial definition expressions for all the feature layers
|
1329
|
+
* @protected
|
1330
|
+
*/
|
1331
|
+
setInitExpressions() {
|
1332
|
+
this._initDefExpressions = {};
|
1333
|
+
if (this.mapView == null) {
|
1334
|
+
return;
|
1335
|
+
}
|
1336
|
+
const map = this.mapView.map;
|
1337
|
+
map.allLayers.concat(map.allTables).forEach(layer => {
|
1338
|
+
if (layer.type !== "feature") {
|
1339
|
+
return;
|
1340
|
+
}
|
1341
|
+
const fl = layer;
|
1342
|
+
this._initDefExpressions[fl.id] = fl.definitionExpression;
|
1343
|
+
});
|
1344
|
+
}
|
1282
1345
|
static get watchers() { return {
|
1283
1346
|
"isMobile": ["isMobileWatchHandler"],
|
1284
1347
|
"locale": ["localeWatchHandler"],
|
@@ -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;
|