@esri/solutions-components 0.10.30 → 0.10.32
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +6 -6
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert_5.cjs.entry.js +33 -12
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_4.cjs.entry.js +15 -17
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
- package/dist/cjs/card-manager_3.cjs.entry.js +9 -9
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +45 -22
- package/dist/cjs/feature-list.cjs.entry.js +16 -10
- package/dist/cjs/layout-manager.cjs.entry.js +1 -1
- package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
- package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_ar.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_bg.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_bs.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_ca.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_cs.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_da.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_de.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_el.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_es.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_et.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_fi.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_fr.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_he.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_hr.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_hu.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_id.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_it.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_ja.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_ko.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_lt.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_lv.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_nb.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_nl.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_pl.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_pt-BR.json +2 -2
- package/dist/collection/assets/t9n/create-feature/resources_pt-PT.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_ro.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_ru.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_sk.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_sl.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_sr.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_sv.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_th.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_tr.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_uk.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_vi.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_zh-CN.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_zh-HK.json +1 -1
- package/dist/collection/assets/t9n/create-feature/resources_zh-TW.json +1 -1
- package/dist/collection/components/card-manager/card-manager.js +0 -2
- package/dist/collection/components/create-feature/create-feature.css +8 -1
- package/dist/collection/components/create-feature/create-feature.js +32 -31
- package/dist/collection/components/create-related-feature/create-related-feature.js +9 -26
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +45 -23
- package/dist/collection/components/feature-details/feature-details.js +6 -8
- package/dist/collection/components/feature-list/feature-list.js +16 -10
- package/dist/collection/components/layer-table/layer-table.css +6 -0
- package/dist/collection/components/layer-table/layer-table.js +4 -3
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
- package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
- package/dist/collection/components/map-card/map-card.css +3 -7
- package/dist/collection/components/map-card/map-card.js +3 -2
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.css +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/components/card-manager2.js +0 -2
- package/dist/components/create-feature2.js +33 -13
- package/dist/components/create-related-feature2.js +9 -10
- package/dist/components/crowdsource-reporter.js +45 -23
- package/dist/components/feature-details2.js +6 -8
- package/dist/components/feature-list2.js +16 -10
- package/dist/components/layer-table2.js +5 -4
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/list-flow-item.js +1 -1
- package/dist/components/location-flow-item.js +1 -1
- package/dist/components/map-card2.js +4 -3
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +2 -2
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/share-item.js +1 -1
- package/dist/components/solution-configuration.js +3 -3
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-accordion.js +1 -1
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +6 -6
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/calcite-alert_5.entry.js +33 -12
- package/dist/esm/calcite-combobox_3.entry.js +1 -1
- package/dist/esm/calcite-flow_4.entry.js +15 -17
- package/dist/esm/calcite-shell-panel_14.entry.js +6 -6
- package/dist/esm/card-manager_3.entry.js +9 -9
- package/dist/esm/crowdsource-reporter.entry.js +45 -22
- package/dist/esm/feature-list.entry.js +16 -10
- package/dist/esm/layout-manager.entry.js +1 -1
- package/dist/esm/list-flow-item.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/location-flow-item.entry.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/solution-configuration.entry.js +3 -3
- package/dist/esm/solution-contents_3.entry.js +3 -3
- package/dist/esm/solution-item-accordion.entry.js +1 -1
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ar.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_bg.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_bs.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ca.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_cs.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_da.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_de.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_el.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_es.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_et.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_fi.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_fr.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_he.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_hr.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_hu.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_id.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_it.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ja.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ko.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_lt.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_lv.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_nb.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_nl.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_pl.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_pt-BR.json +2 -2
- package/dist/solutions-components/assets/t9n/create-feature/resources_pt-PT.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ro.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_ru.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_sk.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_sl.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_sr.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_sv.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_th.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_tr.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_uk.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_vi.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_zh-CN.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_zh-HK.json +1 -1
- package/dist/solutions-components/assets/t9n/create-feature/resources_zh-TW.json +1 -1
- package/dist/solutions-components/{p-22bb693d.entry.js → p-06db1bfd.entry.js} +1 -1
- package/dist/solutions-components/p-1f072e2c.entry.js +11 -0
- package/dist/solutions-components/{p-6e1685bd.entry.js → p-3900240c.entry.js} +1 -1
- package/dist/solutions-components/{p-e72e2dcc.entry.js → p-42f75c8f.entry.js} +1 -1
- package/dist/solutions-components/p-4cb12506.entry.js +6 -0
- package/dist/solutions-components/p-51e2500f.entry.js +6 -0
- package/dist/solutions-components/{p-89b27ae3.entry.js → p-5fdb8f83.entry.js} +2 -2
- package/dist/solutions-components/{p-4e0045d5.entry.js → p-6c3261d7.entry.js} +1 -1
- package/dist/solutions-components/p-8a411917.entry.js +6 -0
- package/dist/solutions-components/{p-57ccfe47.entry.js → p-a07322cc.entry.js} +1 -1
- package/dist/solutions-components/{p-be2c7d0c.entry.js → p-a8525233.entry.js} +1 -1
- package/dist/solutions-components/{p-5b0e8838.entry.js → p-b9b77b87.entry.js} +1 -1
- package/dist/solutions-components/p-bd5f3c9e.entry.js +6 -0
- package/dist/solutions-components/p-cc4c013e.entry.js +6 -0
- package/dist/solutions-components/{p-4af0e4bd.entry.js → p-d08ece15.entry.js} +1 -1
- package/dist/solutions-components/{p-89a4ce79.entry.js → p-d119872d.entry.js} +1 -1
- package/dist/solutions-components/p-dd0bd439.entry.js +17 -0
- package/dist/solutions-components/{p-f8ee16f3.entry.js → p-ddc1218d.entry.js} +1 -1
- package/dist/solutions-components/p-e4a42efa.entry.js +6 -0
- package/dist/solutions-components/p-edd88d2d.entry.js +6 -0
- package/dist/solutions-components/p-fa7672c7.entry.js +6 -0
- package/dist/solutions-components/{p-ff8b0603.entry.js → p-ffa9a117.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/create-feature/create-feature.d.ts +17 -5
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +4 -4
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +10 -9
- package/dist/types/components/feature-list/feature-list.d.ts +1 -2
- package/dist/types/components.d.ts +0 -9
- package/package.json +1 -1
- package/dist/solutions-components/p-24ae549d.entry.js +0 -6
- package/dist/solutions-components/p-399dc933.entry.js +0 -17
- package/dist/solutions-components/p-3d7643a5.entry.js +0 -6
- package/dist/solutions-components/p-52094fca.entry.js +0 -6
- package/dist/solutions-components/p-634f86e5.entry.js +0 -11
- package/dist/solutions-components/p-662aa94e.entry.js +0 -6
- package/dist/solutions-components/p-790af200.entry.js +0 -6
- package/dist/solutions-components/p-94a5d59f.entry.js +0 -6
- package/dist/solutions-components/p-988c0d5e.entry.js +0 -6
- package/dist/solutions-components/p-a25c73c8.entry.js +0 -6
@@ -424,7 +424,7 @@ const MapFullscreen = class {
|
|
424
424
|
* Renders the component.
|
425
425
|
*/
|
426
426
|
render() {
|
427
|
-
return (h(Host, { key: '
|
427
|
+
return (h(Host, { key: '9fc5dfeffc8601763b27e001311ec317934ebcae' }, h("div", { key: '65f2ab96d7283a9a10a113be0cdef6a95de1ee1b', class: "fullscreen-widget", ref: (el) => { this._fullscreenElement = el; } })));
|
428
428
|
}
|
429
429
|
/**
|
430
430
|
* StencilJS: Called just after the component updates.
|
@@ -551,7 +551,7 @@ const MapLegend = class {
|
|
551
551
|
* StencilJS: Renders the component.
|
552
552
|
*/
|
553
553
|
render() {
|
554
|
-
return (h(Host, { key: '
|
554
|
+
return (h(Host, { key: 'f520dd3737b8b883d8e27eb9a63da25f6d5b9375' }, h("div", { key: '6775e1c58ecd4fe63d50358fe2cd4f050cb1d709', ref: (el) => { this._legendElement = el; } })));
|
555
555
|
}
|
556
556
|
/**
|
557
557
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -601,7 +601,7 @@ const MapLegend = class {
|
|
601
601
|
};
|
602
602
|
MapLegend.style = MapLegendStyle0;
|
603
603
|
|
604
|
-
const mapPickerCss = ":host{display:block;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100%}.width-26{width:26% !important}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.border-right{border-right:1px solid var(--calcite-color-border-3)}.action-bar-size{height:51px;width:100%}.map-list{position:absolute;display:flex;flex-direction:column;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-color-background);z-index:1000;width:100%;height:-moz-fit-content;height:fit-content}.display-none{display:none}.align-center{align-items:center}.adjusted-height{height:calc(100% - 52px);overflow-y:auto}";
|
604
|
+
const mapPickerCss = ":host{display:block;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100%}.width-26{width:26% !important}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.border-right{border-right:1px solid var(--calcite-color-border-3)}.action-bar-size{height:51px;width:100%}.map-list{position:absolute;display:flex;flex-direction:column;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-color-background);z-index:1000;width:100%;height:-moz-fit-content;height:fit-content}.display-none{display:none}.align-center{align-items:center}.adjusted-height{max-height:calc(100% - 52px);overflow-y:auto}";
|
605
605
|
const MapPickerStyle0 = mapPickerCss;
|
606
606
|
|
607
607
|
const MapPicker = class {
|
@@ -701,7 +701,7 @@ const MapPicker = class {
|
|
701
701
|
* Renders the component.
|
702
702
|
*/
|
703
703
|
render() {
|
704
|
-
return (h(Host, { key: '
|
704
|
+
return (h(Host, { key: '178a4e3fcd08972b0465885c4891a732ea970428' }, this._getToolbar(), this._getMapNameList(this._mapListExpanded)));
|
705
705
|
}
|
706
706
|
/**
|
707
707
|
* Called once after the component has loaded
|
@@ -885,7 +885,7 @@ const MapSearch = class {
|
|
885
885
|
* Renders the component.
|
886
886
|
*/
|
887
887
|
render() {
|
888
|
-
return (h(Host, { key: '
|
888
|
+
return (h(Host, { key: '7c990343af0d1077a7315fd131379bc891310e30' }, h("div", { key: '97cd41cf7f749f31701de3526cf2ef633eda48dd', class: "search-widget", ref: (el) => { this._searchElement = el; } })));
|
889
889
|
}
|
890
890
|
//--------------------------------------------------------------------------
|
891
891
|
//
|
@@ -1183,7 +1183,7 @@ const MapTools = class {
|
|
1183
1183
|
const toolMarginClass = this.enableSingleExpand ? "margin-top-1-2" : "";
|
1184
1184
|
const toolOrder = this.toolOrder ? this.toolOrder : ["legend", "search", "fullscreen", "floorfilter"];
|
1185
1185
|
const shadowClass = this.stackTools ? "box-shadow" : "";
|
1186
|
-
return (h(Host, { key: '
|
1186
|
+
return (h(Host, { key: '087d0879847a1a48e3e586d4e851a55f0640dfea' }, h("div", { key: 'cd76a75845afb17c42722125f30fb5c59d305671', class: containerClass }, this.enableSingleExpand ? (h("div", { class: "box-shadow" }, this._getActionGroup(toggleIcon, false, expandTip, () => this._toggleTools()))) : undefined, h("div", { key: 'f2522aa2d41243bcaf9ae75372c50454d354de1b', class: `${toolMarginClass} ${shadowClass} ${toolsClass}` }, this._getMapWidgets(toolOrder))), h("basemap-gallery", { key: '38762b76d6e5300800a1214a579cc7c76d4f00d7', basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), h("map-search", { key: '929003ecf89addceb07b6337a90f7d0558c67c18', class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, resultGraphicEnabled: true, searchConfiguration: this.searchConfiguration }), h("map-legend", { key: '46177bd0963cefc5b5b36e4b4c08e323193d14c9', class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), h("map-fullscreen", { key: 'dfb346c088e665f137143655a47539148a3d2580', class: fullscreenClass, mapView: this.mapView, onFullscreenStateChange: (evt) => this._fullscreenStateChange(evt.detail), ref: (el) => { this._fullscreenElement = el; } }), h("floor-filter", { key: '0c1bd8979355d6f5d2c7299bbca23f6762d94cc5', class: floorFilterClass, enabled: this.enableFloorFilter, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
|
1187
1187
|
}
|
1188
1188
|
//--------------------------------------------------------------------------
|
1189
1189
|
//
|
@@ -511,7 +511,7 @@ const MapDrawTools = class {
|
|
511
511
|
"border" : "border esri-widget esri-sketch__panel";
|
512
512
|
const undoRedoClass = this.drawMode === EDrawMode.SKETCH ?
|
513
513
|
"display-none" : "esri-widget esri-sketch__panel border-left esri-sketch__section";
|
514
|
-
return (h(Host, { key: '
|
514
|
+
return (h(Host, { key: '5f82fce6481912c103d709b5fefa3a890d291943' }, h("div", { key: '464d32d718167c5e7e2636fa0184622477fc5464', class: containerClass }, h("div", { key: '52a11f9d1b8f1692e67a7e706de3741e43c40591', ref: (el) => { this._sketchElement = el; } }), h("div", { key: '3a529e4e358ec4890513d7fcbbceadabb9e66a18', class: undoRedoClass }, h("calcite-action", { key: '98b684a186a03fe8868bde1978d59c7618a7635a', disabled: !this.undoEnabled, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), h("calcite-action", { key: 'b1d769fd984ecf7cf9e868029cc7a5aba5a39dc7', disabled: !this.redoEnabled, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo })))));
|
515
515
|
}
|
516
516
|
//--------------------------------------------------------------------------
|
517
517
|
//
|
@@ -571,7 +571,7 @@ const FlowItem = class {
|
|
571
571
|
};
|
572
572
|
FlowItem.style = CalciteFlowItemStyle0;
|
573
573
|
|
574
|
-
const createFeatureCss = ":host{display:block}.esri-editor__panel-toolbar{display:none !important}.esri-editor__panel-content{padding-block:0px !important}.esri-editor .esri-item-list__group__header{display:none !important}.esri-editor__panel-content__section .esri-widget__heading{display:none !important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px !important;padding-inline:10px !important}.search-widget{width:92% !important;margin:5px 14px 20px 14px}.display-none{display:none !important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px !important;position:absolute;bottom:0;width:calc(100% - 22px)
|
574
|
+
const createFeatureCss = ":host{display:block}.esri-editor__panel-toolbar{display:none !important}.esri-editor__panel-content{padding-block:0px !important}.esri-editor .esri-item-list__group__header{display:none !important}.esri-editor__panel-content__section .esri-widget__heading{display:none !important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px !important;padding-inline:10px !important}.search-widget{width:92% !important;margin:5px 14px 20px 14px}.display-none{display:none !important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px !important;position:absolute;bottom:0;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.esri-editor__panel-content{padding-block:10px !important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0 !important;min-height:0 !important}}";
|
575
575
|
const CreateFeatureStyle0 = createFeatureCss;
|
576
576
|
|
577
577
|
const CreateFeature = class {
|
@@ -676,6 +676,14 @@ const CreateFeature = class {
|
|
676
676
|
* __esri.FeatureLayer: selected feature layer;
|
677
677
|
*/
|
678
678
|
_selectedLayer;
|
679
|
+
/**
|
680
|
+
* HTMLDivElement: refrence for search div element
|
681
|
+
*/
|
682
|
+
_searchDiv;
|
683
|
+
/**
|
684
|
+
* HTMLCalciteNoticeElement: calcite notice refrence element
|
685
|
+
*/
|
686
|
+
_calciteNotice;
|
679
687
|
//--------------------------------------------------------------------------
|
680
688
|
//
|
681
689
|
// Watch handlers
|
@@ -723,15 +731,6 @@ const CreateFeature = class {
|
|
723
731
|
// Methods (public)
|
724
732
|
//
|
725
733
|
//--------------------------------------------------------------------------
|
726
|
-
/**
|
727
|
-
* Destroy the Editor widget instance
|
728
|
-
* @returns Promise that resolves when the operation is complete
|
729
|
-
*/
|
730
|
-
async close() {
|
731
|
-
if (this._editor) {
|
732
|
-
this._editor.destroy();
|
733
|
-
}
|
734
|
-
}
|
735
734
|
/**
|
736
735
|
* Submit the created feature
|
737
736
|
* @returns Promise that resolves when the operation is complete
|
@@ -799,6 +798,26 @@ const CreateFeature = class {
|
|
799
798
|
async componentDidLoad() {
|
800
799
|
await this.init();
|
801
800
|
}
|
801
|
+
/**
|
802
|
+
* Called after each render
|
803
|
+
* Used to adjust the map top in case of mobile
|
804
|
+
*/
|
805
|
+
componentDidRender() {
|
806
|
+
// update the map top according to space occupied by notice msg and search
|
807
|
+
if (this.isMobile) {
|
808
|
+
// get the height of notice, search and add 80px(editor msg) height to adjust the map top
|
809
|
+
const top = this._calciteNotice.offsetHeight + this._searchDiv.offsetHeight + 80;
|
810
|
+
this._mapViewContainer.style.top = `${top}px`;
|
811
|
+
}
|
812
|
+
}
|
813
|
+
/**
|
814
|
+
* StencilJS: Called every time the component is disconnected from the DOM,
|
815
|
+
*/
|
816
|
+
disconnectedCallback() {
|
817
|
+
if (this._editor) {
|
818
|
+
this._editor.destroy();
|
819
|
+
}
|
820
|
+
}
|
802
821
|
/**
|
803
822
|
* Renders the component.
|
804
823
|
*/
|
@@ -816,7 +835,8 @@ const CreateFeature = class {
|
|
816
835
|
else if (this._currentPage === 'featureForm') {
|
817
836
|
guidingMsg = this._translations.provideDetailsMsg;
|
818
837
|
}
|
819
|
-
return (h(Fragment, { key: '
|
838
|
+
return (h(Fragment, { key: '89634bf5707ea8390416d3087bfbe4e747bafcd7' }, showGuidingMsg && h("calcite-notice", { key: '4269224c2904f29060081f6cb8f383f1cf8d741d', class: "notice-msg", icon: "lightbulb", kind: "success", open: true, ref: el => this._calciteNotice = el }, h("div", { key: 'ecc3cca85c81d1cb7ab7cdc89b99e31afcb55f76', slot: "message" }, guidingMsg)), h("calcite-loader", { key: '34e492c0c469b39d4cfbcda17c4ba196ccb39eb8', class: loaderClass, label: "", scale: "s" }), h("div", { key: 'b2073ef4b6124b54038de34798cdf83337626023', class: featureFormClass, id: "feature-form" }), this.enableSearch &&
|
839
|
+
h("div", { key: 'cd13e98b6a40d5d89d271b5785f797e9bfc19900', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref", ref: el => this._searchDiv = el }), h("div", { key: '2575b2d20f7713b05a2024e77452af93eb64e147', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
|
820
840
|
}
|
821
841
|
//--------------------------------------------------------------------------
|
822
842
|
//
|
@@ -864,7 +884,8 @@ const CreateFeature = class {
|
|
864
884
|
this._mapViewContainer.classList.add('hide-map');
|
865
885
|
await new this.MapView({
|
866
886
|
map: this.mapView.map,
|
867
|
-
container: this._mapViewContainer
|
887
|
+
container: this._mapViewContainer,
|
888
|
+
zoom: this.mapView.zoom
|
868
889
|
}).when((view) => {
|
869
890
|
// update the mapView and load all widgets
|
870
891
|
this._updatedMapView = view;
|
@@ -1341,7 +1341,7 @@ const MapLayerPicker = class {
|
|
1341
1341
|
const id = "map-layer-picker";
|
1342
1342
|
let style = this.height > 0 ? { "height": `${this.height.toString()}px` } : {};
|
1343
1343
|
style = { ...style, "display": this.display };
|
1344
|
-
return (h(Host, { key: '
|
1344
|
+
return (h(Host, { key: 'e858ff58778eb1a40b40609f44705d9580ddd489' }, h("div", { key: '729c3ba4d508d02f79a2dd4856aef5c5662720d7', class: "map-layer-picker-container", style: style }, h("div", { key: '9055f9db9bc811797002ecb86da34e17b9cf77be', class: "map-layer-picker", style: style }, !this._hasValidLayers ? this._getInvalidPlaceholder() :
|
1345
1345
|
!this._hasMultipleLayers && this.showSingleLayerAsLabel ? this._getSingleLayerPlaceholder() :
|
1346
1346
|
this.type === "combobox" ? this._getCombobox(id) :
|
1347
1347
|
this.type === "select" ? this._getSelect(id) : this._getDropdown(id)))));
|
@@ -230,14 +230,6 @@ const CreateRelatedFeature = class {
|
|
230
230
|
// Methods (public)
|
231
231
|
//
|
232
232
|
//--------------------------------------------------------------------------
|
233
|
-
/**
|
234
|
-
* Destroy the Editor widget instance
|
235
|
-
*/
|
236
|
-
async close() {
|
237
|
-
if (this._editor) {
|
238
|
-
this._editor.destroy();
|
239
|
-
}
|
240
|
-
}
|
241
233
|
/**
|
242
234
|
* Submit the comment
|
243
235
|
*/
|
@@ -304,7 +296,7 @@ const CreateRelatedFeature = class {
|
|
304
296
|
}
|
305
297
|
render() {
|
306
298
|
const loaderClass = this._editorLoading ? "" : "display-none";
|
307
|
-
return (h(Fragment, { key: '
|
299
|
+
return (h(Fragment, { key: '641b4f6f51bce04b6263a1d7dc72a31839df970d' }, this.showGuidingMsg && h("calcite-notice", { key: '1a6e577bcc0632a7bc69dd411a692062a7ad176e', class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, h("div", { key: '55c5836314fcca69a259be3a36e34c527edcabf3', slot: "message" }, this._translations.provideDetailsMsg)), h("calcite-loader", { key: '18c5603a4a75c67a160a71caa15e94790f66d60b', class: loaderClass, label: "", scale: "s" })));
|
308
300
|
}
|
309
301
|
/**
|
310
302
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -312,6 +304,14 @@ const CreateRelatedFeature = class {
|
|
312
304
|
async componentDidLoad() {
|
313
305
|
await this.init();
|
314
306
|
}
|
307
|
+
/**
|
308
|
+
* StencilJS: Called every time the component is disconnected from the DOM,
|
309
|
+
*/
|
310
|
+
disconnectedCallback() {
|
311
|
+
if (this._editor) {
|
312
|
+
this._editor.destroy();
|
313
|
+
}
|
314
|
+
}
|
315
315
|
/**
|
316
316
|
* Display editor widget to create the new feature
|
317
317
|
* @protected
|
@@ -700,14 +700,12 @@ const FeatureDetails = class {
|
|
700
700
|
const allTables = await getAllTables(this.mapView);
|
701
701
|
let relatedTable = null;
|
702
702
|
let validRelationshipId = null;
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
return true;
|
710
|
-
}
|
703
|
+
selectedLayer.relationships.some((relationship) => {
|
704
|
+
const relatedTables = allTables.filter((table) => selectedLayer.url === table.url && table.layerId === relationship.relatedTableId);
|
705
|
+
if (relatedTables && relatedTables.length > 0) {
|
706
|
+
relatedTable = relatedTables[0];
|
707
|
+
validRelationshipId = relationship.id;
|
708
|
+
return true;
|
711
709
|
}
|
712
710
|
});
|
713
711
|
this.relatedTableId = relatedTable?.id ?? '';
|
@@ -2197,7 +2197,7 @@ const SolutionItemDetails = class {
|
|
2197
2197
|
* Renders the component.
|
2198
2198
|
*/
|
2199
2199
|
render() {
|
2200
|
-
return (h(Host, { key: '
|
2200
|
+
return (h(Host, { key: '84bfa00fcedb54a43856c92e8446305d15d1a54a' }, h("div", { key: 'bceaddf6dcc35e5a22cad12e661c17f716fd165e', class: "parent-container" }, h("div", { key: '17834a249ffbbbd3ee54617fa2f2224816dd59b1', class: "inputBottomSeparation" }, h("calcite-input", { key: '372ceefe695e7c54a4ad35cf5b496202037fd57c', id: "item-title", value: this.itemDetails.title })), h("div", { key: 'fc356bd1e3bb965b7555dcea9fccfce44ca96a31', class: "inputBottomSeparation" }, h("input", { key: '11dc51158e385025d139372682b33d2093956a50', accept: ".jpg,.gif,.png,image/jpg,image/gif,image/png", class: "display-none", onChange: (event) => (this._updateThumbnail(event)), ref: (el) => (this.browseForThumbnail = el), type: "file" }), h("button", { key: 'abc5c96ec20adb16026fd6a7c3eb41871512d360', class: "font-size--3 btn-link inline-block trailer-quarter", onClick: () => this._getThumbnail() }, h("svg", { key: '35ce23e7fe17e7f45110e028ddb0c31e033f6f34', class: "icon-inline icon-inline--on-left", height: "16", viewBox: "0 0 16 16", width: "16" }, h("path", { key: '0bab7e61e1261db38a1a62dd085f63de5993a640', d: "M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z" })), this._translations.editThumbnail), h("div", { key: '4dff94a716f70a350168ae123f0afb41f360fb3b', class: "flex" }, h("div", { key: 'bda8e51d80a72f221eb02ea915609b1e2175a56f', class: "img-container", ref: (el) => (this.thumbnailContainer = el) }, h("img", { key: '3b606e141fae758b24d6114d7433cfdec9570ba9', class: "scale-down", height: "133", id: "item-thumbnail", ref: (el) => (this.thumbnail = el), width: "200" })), h("div", { key: '3f5c6fd680a45c754e2b798566776363e94bf307', class: "snippet-count-container" }, h("calcite-input", { key: '3d35c224c6d8b34483712e392aeca8a87e0d0810', id: "item-snippet", maxLength: 250, type: "textarea", value: this.itemDetails.snippet }), h("label", { key: '1aecd6515a83c523c991d5ccd9516ff14384a13a', class: "font-size--3", id: "item-snippet-count", ref: (el) => (this.itemSnippetCount = el) })))), h("calcite-label", { key: '3052a4847edc5afd336a763e8e6933694aad9d6d' }, this._translations.description, h("label", { key: '595de020ea7e1e5b61296f7c9b17f1a02a0741e0', id: "item-description-label" }, h("calcite-input", { key: '135cb36c76f6462aa470f9b7680ebefa6be60018', id: "item-description", type: "textarea", value: this.itemDetails.description }))), h("calcite-label", { key: '8f51b5f1d2607e040b6a94920d2f581b3595838f' }, this._translations.tags, h("label", { key: '21b84a7bcb9d5b8b56e7b6ccee0b49e940e1faf3', id: "item-tags-label" }, h("calcite-input", { key: '8f3b14471019c703944e531abca80b01751b04e1', id: "item-tags", value: (this.itemDetails.tags && Array.isArray(this.itemDetails.tags) ? this.itemDetails.tags : [this.itemDetails.tags]).join(",") }))), this.itemType !== "Group" ? h("calcite-label", null, this._translations.credits, h("label", { id: "item-credits-label" }, h("calcite-input", { id: "item-credits", value: this.itemDetails.accessInformation }))) : null, this.itemType !== "Group" ? h("calcite-label", null, h("label", { id: "item-terms-label" }, this._translations.termsOfUse, h("calcite-input", { id: "item-terms", type: "textarea", value: this.itemDetails.licenseInfo }))) : null)));
|
2201
2201
|
}
|
2202
2202
|
componentDidRender() {
|
2203
2203
|
this._loadThumb();
|
@@ -2375,7 +2375,7 @@ const SolutionItemSharing = class {
|
|
2375
2375
|
* Renders the component.
|
2376
2376
|
*/
|
2377
2377
|
render() {
|
2378
|
-
return (h(Host, { key: '
|
2378
|
+
return (h(Host, { key: '6a9facacd8961a53dd4e49082def5573732d49bf' }, h("div", { key: '6eaf512253573a4db25ec64ebe1439228df4845d', class: "container-border" }, h("calcite-label", { key: 'db5680d010759bdb28b774293b8ae1522c9d8052' }, this._translations.groupInfo), this._renderItems(this.sharing))));
|
2379
2379
|
}
|
2380
2380
|
//--------------------------------------------------------------------------
|
2381
2381
|
//
|
@@ -2494,7 +2494,7 @@ const SolutionOrganizationVariables = class {
|
|
2494
2494
|
* Renders the component.
|
2495
2495
|
*/
|
2496
2496
|
render() {
|
2497
|
-
return (h(Host, { key: '
|
2497
|
+
return (h(Host, { key: '99ef09d7f851a57d42c7f7ad5cd6e303b9508d17' }, h("div", { key: '7217187249febdbbf3899d96cdbb2a45474343b7' }, h("h4", { key: 'd5d01648936de6726d7422f81f58ad998574ea87', class: "org-var-header" }, this._translations.orgVariables)), h("div", { key: '22d6f7fb4b0d8f570dbcf9dcac08dce7e2f6383e', class: "container-border" }, h("calcite-tree", { key: '5f21f4fc4b378da1b144dbeb1e19df2f43bcee61', id: "variable-label" }, this._renderHierarchy(this._organizationVariables)))));
|
2498
2498
|
}
|
2499
2499
|
//--------------------------------------------------------------------------
|
2500
2500
|
//
|
@@ -2592,7 +2592,7 @@ const SolutionResourceItem = class {
|
|
2592
2592
|
*/
|
2593
2593
|
render() {
|
2594
2594
|
const hasValidResources = this._hasValidResources();
|
2595
|
-
return (h(Host, { key: '
|
2595
|
+
return (h(Host, { key: 'eb76345d460620ea6229c1ac94eaf5dec9943c1e' }, h("div", { key: '8dfb91c0ca0d4201940e29bcb809002da1cd9d76', class: "resource-item" }, h("div", { key: 'a6ec9664d267c25eada0432e6825369fdc82676f', class: "margin-bottom-1" }, h("calcite-button", { key: 'd84827e9dbe4ad68544430c007b28c5e9929e076', appearance: "solid", class: "resource-button", color: "blue", onClick: () => this._addNewResource() }, this._translations.addResource), h("calcite-button", { key: 'd88b2928ca6994054f899823701327ece50a937b', appearance: "solid", color: "blue", disabled: !hasValidResources, onClick: () => this._downloadAll() }, this._translations.downloadAll)), h("div", { key: '445c0c3e2deb3b546f4c84186a148e8888477d13', class: "resources-container", style: { display: hasValidResources ? "inherit" : "none" } }, this._renderResourceList()))));
|
2596
2596
|
}
|
2597
2597
|
_removedResources = {};
|
2598
2598
|
//--------------------------------------------------------------------------
|
@@ -2874,7 +2874,7 @@ const SolutionTemplateData = class {
|
|
2874
2874
|
* Renders the component.
|
2875
2875
|
*/
|
2876
2876
|
render() {
|
2877
|
-
return (h(Host, { key: '
|
2877
|
+
return (h(Host, { key: '78d31b01a7b3aac5e3b63ec59fa0225e662c3532' }, h("div", { key: '84ad00f60d5ad98fc14fad50b2db93844e54a842', class: "solution-data-container" }, h("calcite-shell", { key: '0e56c32e9ba92e9e536ce16f30db4e59d1c71094', class: "light var-container", dir: "ltr" }, h("calcite-panel", { key: 'ab251fe749493d11b61359f3f018fa87917d83c6', class: "json-editor" }, h("div", { key: '94be603b8c03bccbcc31293839d633ffa0ca5b15', class: "solution-data-child-container calcite-match-height" }, h("json-editor", { key: '76a5a31ae0dc54d59a300e0d6cc6b543e994d322', class: "solution-data-editor-container", instanceid: this.itemId + "|" + this.instanceid, value: this.value }))), h("calcite-shell-panel", { key: '5405b6aa574c721965bbdd4aabf90981f82c7da7', "height-scale": "l", position: "end", slot: "contextual-panel", "width-scale": "xs" }, h("div", { key: 'e7b57aa1f91e479a7538b5bb60fff9ff096bc9c9', class: this.varsOpen ? "solution-data-child-container" : "solution-data-child-container-collapsed" }, h("calcite-button", { key: 'ddd017fee5c66d79cd2c6239b847aacef9e04070', appearance: "transparent", class: "collapse-btn", "icon-start": this.varsOpen ? "chevrons-right" : "chevrons-left", id: "collapse-vars", onClick: () => this._toggleVars(), scale: "s", title: this.varsOpen ? this._translations.collapse : this._translations.expand }), h("div", { key: 'a45aec86952e3172c76153b01a54076d97050de9', class: this.varsOpen ? "org-vars" : "org-vars display-none", id: "orgVars" }, h("solution-organization-variables", { key: 'e138b7ec4c256c916ef52cef6d17f0d9a839d506', value: this.organizationVariables })), h("div", { key: '9444585d82bc85f2cf535ecc8921b2d3f67b398d', class: this.varsOpen ? "sol-vars" : "sol-vars display-none", id: "solVars" }, h("solution-variables", { key: '030de51ff885c3ddf549fc4898c31ec23bb0d303', value: this.solutionVariables }))))))));
|
2878
2878
|
}
|
2879
2879
|
_initializing = false;
|
2880
2880
|
//--------------------------------------------------------------------------
|
@@ -2948,7 +2948,7 @@ const SolutionVariables = class {
|
|
2948
2948
|
* Renders the component.
|
2949
2949
|
*/
|
2950
2950
|
render() {
|
2951
|
-
return (h(Host, { key: '
|
2951
|
+
return (h(Host, { key: '5d3ed27bced41fb6bf6c393ddde152fb0056d25b' }, h("div", { key: 'cb05d3c237719abd539b21b38968a41364c1880e' }, h("h4", { key: '367eb15af209dfed31b43f705fb6de05e25bb374', class: "org-var-header" }, this._translations.solVariables)), h("div", { key: '10142202269a9f2eaa82c0b50a1980d9f3051208', class: "container-border" }, h("calcite-tree", { key: 'd89353a7fe357851a697df036ae7795154254759', id: "variable-label" }, this._renderHierarchy(this._solutionVariables)))));
|
2952
2952
|
}
|
2953
2953
|
//--------------------------------------------------------------------------
|
2954
2954
|
//
|
@@ -170,7 +170,6 @@ const CardManager = class {
|
|
170
170
|
*/
|
171
171
|
async _backFromCreateFeature() {
|
172
172
|
if (this._createFeature) {
|
173
|
-
await this._createFeature.close();
|
174
173
|
this._showCreateFeatureComponent = false;
|
175
174
|
this.backFromCreateWorkFlow.emit();
|
176
175
|
}
|
@@ -181,7 +180,6 @@ const CardManager = class {
|
|
181
180
|
* @protected
|
182
181
|
*/
|
183
182
|
_featureCreated() {
|
184
|
-
void this._createFeature.close();
|
185
183
|
this._showCreateFeatureComponent = false;
|
186
184
|
this._showSubmitBtn = false;
|
187
185
|
this._isFeatureCreated = true;
|
@@ -203,7 +201,7 @@ const CardManager = class {
|
|
203
201
|
};
|
204
202
|
CardManager.style = CardManagerStyle0;
|
205
203
|
|
206
|
-
const layerTableCss = ":host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{font-size:14px !important;color:var(--calcite-color-text-3) !important}.share-action{position:absolute;right:0}html[dir=\"rtl\"] .share-action{left:0}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.instant-app-share{height:50px !important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding:0}.esri-feature-table__table-container{height:100%}.search{--calcite-color-border-input:var(--calcite-color-border-3)}";
|
204
|
+
const layerTableCss = ":host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{font-size:14px !important;color:var(--calcite-color-text-3) !important}.share-action{position:absolute;right:0}html[dir=\"rtl\"] .share-action{left:0}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.instant-app-share{height:50px !important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding:0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1) !important}.search{--calcite-color-border-input:var(--calcite-color-border-3);width:60%;padding:10px}";
|
207
205
|
const LayerTableStyle0 = layerTableCss;
|
208
206
|
|
209
207
|
const LayerTable = class {
|
@@ -701,7 +699,7 @@ const LayerTable = class {
|
|
701
699
|
const showSearch = this._canShowFullTextSearch();
|
702
700
|
this._validateActiveActions();
|
703
701
|
return (h(Host, { key: '46394d7e108068600980efd766fbf5d91243f3c9' }, h("calcite-shell", { key: 'd831121a56070552139386033b02ddc2531c29e9' }, this._getTableControlRow("header"), h("div", { key: '591e0b0bba19f1dbe99049a470b5d3c04253a2c2', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'd70244a3c989a5bea8bbbaf33c4ebe9c04fc4515', class: "height-full width-full" }, showSearch &&
|
704
|
-
h("calcite-input", { key: '
|
702
|
+
h("div", { key: 'fd14c6dab7898e27bd61bbc03878c898d26f042a', class: "search-container" }, h("calcite-input", { key: '9675cc22233456446be8a6b9fc24842fbb3f88e2', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), h("calcite-loader", { key: '74447458a0ac4cee6934e7101a5fee2c180d1330', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '6c2a5ff4a69690fde002005eb9c55047c25ad63d', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
705
703
|
.replace("{{total}}", total)
|
706
704
|
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal()));
|
707
705
|
}
|
@@ -718,7 +716,7 @@ const LayerTable = class {
|
|
718
716
|
* Called after the component is rendered
|
719
717
|
*/
|
720
718
|
componentDidRender() {
|
721
|
-
// need to be called after each render to get the clicked mouseEvent
|
719
|
+
// need to be called after each render to get the clicked mouseEvent
|
722
720
|
document.onclick = (e) => this._handleDocumentClick(e);
|
723
721
|
document.onkeydown = (e) => this._handleKeyDown(e);
|
724
722
|
document.onkeyup = (e) => this._handleKeyUp(e);
|
@@ -865,7 +863,8 @@ const LayerTable = class {
|
|
865
863
|
*/
|
866
864
|
_getTableControlRow(slot) {
|
867
865
|
const id = "more-table-options";
|
868
|
-
|
866
|
+
const toolbarClass = this._canShowFullTextSearch() ? "border-bottom" : "";
|
867
|
+
return (h("div", { class: `display-flex height-51-px ${toolbarClass}`, ref: (el) => this._toolbar = el, slot: slot }, this._getActionBar(), !this.isMobile ? this._getDropdown(id) : undefined, this.enableShare && !this.isMobile ? this._getShare("share") : undefined));
|
869
868
|
}
|
870
869
|
/**
|
871
870
|
* Gets a row of controls that can be used for various interactions with the table
|
@@ -2108,7 +2107,7 @@ function joinAppProxies(map, config, appProxies) {
|
|
2108
2107
|
return map;
|
2109
2108
|
}
|
2110
2109
|
|
2111
|
-
const mapCardCss = ":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 53px)}.height-full{height:100%}.
|
2110
|
+
const mapCardCss = ":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 53px)}.height-full{height:100%}.height-49-px{height:49px}.box-shadow{box-shadow:none !important}.visibility-hidden-1{visibility:hidden;height:1px;}.display-none{display:none}.display-block{display:block}";
|
2112
2111
|
const MapCardStyle0 = mapCardCss;
|
2113
2112
|
|
2114
2113
|
const MapCard = class {
|
@@ -2375,12 +2374,13 @@ const MapCard = class {
|
|
2375
2374
|
* Renders the component.
|
2376
2375
|
*/
|
2377
2376
|
render() {
|
2378
|
-
const mapContainerClass = this.isMapLayout ? "display-flex height-
|
2377
|
+
const mapContainerClass = this.isMapLayout ? "display-flex height-49-px" : "";
|
2379
2378
|
const mapClass = this.hidden ? "visibility-hidden-1" : "";
|
2380
2379
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
2381
2380
|
const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
|
2381
|
+
const progressClass = this.isMapLayout ? "" : "display-none";
|
2382
2382
|
this._validateActiveActions();
|
2383
|
-
return (h(Host, { key: '
|
2383
|
+
return (h(Host, { key: '94d7399ed75c0e90487d6153a0d28ab6f722ae93' }, h("div", { key: 'e194d8800dd7a865e101d779d032d164f3e5562d', class: `${mapContainerClass} width-full`, ref: (el) => this._toolbar = el }, this._getActionBar(), !this.isMobile && this.isMapLayout && this._getDropdown("more-table-options")), h("calcite-progress", { key: '0abdbf4e8ba5861866aba7791dfdb91a7a5f4daa', class: progressClass, value: 0 }), h("div", { key: '83aa012aeef6ae64e49007d542fd949e7d4602f4', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { key: '229cc18b36885cad12d44c13e1fe37a97403b9d8', 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, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
|
2384
2384
|
}
|
2385
2385
|
/**
|
2386
2386
|
* Called each time after the component is loaded
|
@@ -54,7 +54,6 @@ const CrowdsourceReporter = class {
|
|
54
54
|
this._filterActive = false;
|
55
55
|
this._flowItems = [];
|
56
56
|
this._hasValidLayers = false;
|
57
|
-
this._loadingFeatureDetails = undefined;
|
58
57
|
this._mapInfo = undefined;
|
59
58
|
this._reportSubmitted = false;
|
60
59
|
this._selectedLayerName = undefined;
|
@@ -207,6 +206,10 @@ const CrowdsourceReporter = class {
|
|
207
206
|
* FilterInitState: filter's init state
|
208
207
|
*/
|
209
208
|
_filterInitState;
|
209
|
+
/**
|
210
|
+
* string: Previous selected layer id
|
211
|
+
*/
|
212
|
+
_prevSelectedLayerId;
|
210
213
|
//--------------------------------------------------------------------------
|
211
214
|
//
|
212
215
|
// Watch handlers
|
@@ -307,7 +310,7 @@ const CrowdsourceReporter = class {
|
|
307
310
|
*/
|
308
311
|
render() {
|
309
312
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
310
|
-
return (h(Host, { key: '
|
313
|
+
return (h(Host, { key: 'bb2f79258038360e5c0b894ce5a21dcdd41d0ce4' }, this._reportSubmitted && h("calcite-alert", { key: 'aa244cd93326c8817b851d2465c7b9c453117ad2', "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: '25d6d6bd01ee8dc260bce41ea6c43eafa609292e', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: '06851f2f8cabebd0e953c31bdddfdeac363a4e6e', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: 'f0d73a00a8150a78c48cc09e8901ad7dcb438e90', slot: "title" }, this._translations.error), h("div", { key: '0747a85bbf4936a28dd85a9ea0e8b416f70ee7cf', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: '55017090c066ad4e12023315bde39e8c7fa67091', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: 'cb63168c1fe507b7b93ac4f58d5283ad0d09b34b', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: '36b551428b32c7d93f4d04639504bfe326bbc9c8', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: '2e9865c5611f4960bb622f75f386a489abcbb484', slot: "title" }, this._translations.error), h("div", { key: 'ebdf339d63369e18b1c68867cdffb9bd40f52766', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: 'a08980aead377e11697e96e77aa514ed66dc9613' }, h("calcite-shell", { key: '6d96e769ece33073870f2b8f1a7ef6a44006c3f0', "content-behind": true }, this._getReporter()))));
|
311
314
|
}
|
312
315
|
//--------------------------------------------------------------------------
|
313
316
|
//
|
@@ -440,18 +443,29 @@ const CrowdsourceReporter = class {
|
|
440
443
|
this._filterActive = false;
|
441
444
|
this._filterUrlParams = null;
|
442
445
|
this._filterInitState = null;
|
443
|
-
|
446
|
+
if (this._featureList) {
|
447
|
+
await this._featureList.refresh();
|
448
|
+
}
|
449
|
+
if (this._layerList) {
|
450
|
+
await this._layerList.refresh();
|
451
|
+
}
|
444
452
|
}
|
445
453
|
/**
|
446
454
|
* Check if the layers definitionExpression has been modified and update the feature list depending on the applied filters
|
447
455
|
* @protected
|
448
456
|
*/
|
449
|
-
_handleFilterUpdate() {
|
457
|
+
async _handleFilterUpdate() {
|
458
|
+
this._showLoadingIndicator = true;
|
450
459
|
//if filter are applied the url params will be generated
|
451
460
|
//set the filter active state based on the length of applied filters
|
452
461
|
this._filterActive = this._filterList.urlParams.getAll('filter').length > 0;
|
453
462
|
this._filterUrlParams = this._filterList.urlParams.getAll('filter');
|
454
|
-
|
463
|
+
this._filterInitState = await this._filterList.getFilterInitState();
|
464
|
+
await this._featureList.refresh();
|
465
|
+
if (this._layerList) {
|
466
|
+
await this._layerList.refresh();
|
467
|
+
}
|
468
|
+
this._showLoadingIndicator = false;
|
455
469
|
}
|
456
470
|
/**
|
457
471
|
* Get the feature layer list
|
@@ -518,7 +532,6 @@ const CrowdsourceReporter = class {
|
|
518
532
|
*/
|
519
533
|
backFromCreateFeaturePanel() {
|
520
534
|
if (this._createFeature) {
|
521
|
-
void this._createFeature.close();
|
522
535
|
void this.updateNonVisibleLayersOnMap(false);
|
523
536
|
}
|
524
537
|
//on back form will be closed, so update the form state
|
@@ -539,7 +552,6 @@ const CrowdsourceReporter = class {
|
|
539
552
|
*/
|
540
553
|
backFromCreateRelatedFeaturePanel() {
|
541
554
|
if (this._createRelatedFeature) {
|
542
|
-
void this._createRelatedFeature.close();
|
543
555
|
this._showSubmitCancelButton = false;
|
544
556
|
}
|
545
557
|
//on back form will be closed, so update the form state
|
@@ -596,9 +608,6 @@ const CrowdsourceReporter = class {
|
|
596
608
|
* @protected
|
597
609
|
*/
|
598
610
|
async navigateToHomePage() {
|
599
|
-
if (this._createFeature) {
|
600
|
-
void this._createFeature.close();
|
601
|
-
}
|
602
611
|
if (this._layerList) {
|
603
612
|
void this._layerList.refresh();
|
604
613
|
}
|
@@ -620,6 +629,10 @@ const CrowdsourceReporter = class {
|
|
620
629
|
if (evt.detail.layerId && evt.detail.layerName) {
|
621
630
|
await this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
622
631
|
}
|
632
|
+
// reset the applied filter when switching to another layer
|
633
|
+
if (this._selectedLayerId !== this._prevSelectedLayerId && this._filterActive) {
|
634
|
+
await this.resetFilter();
|
635
|
+
}
|
623
636
|
void this.updateNonVisibleLayersOnMap(true);
|
624
637
|
// get the form template elements to pass in create-feature to create a LEVELID field in feature-form
|
625
638
|
this._getFormElements();
|
@@ -679,27 +692,33 @@ const CrowdsourceReporter = class {
|
|
679
692
|
await this.loadFeatureFromURLParams();
|
680
693
|
}
|
681
694
|
}
|
682
|
-
/**
|
695
|
+
/**
|
696
|
+
* On click of layer list item show feature list
|
683
697
|
* @param evt Event which has details of selected layerId and layerName
|
684
698
|
* @protected
|
685
699
|
*/
|
686
|
-
displayFeaturesList(evt) {
|
700
|
+
async displayFeaturesList(evt) {
|
687
701
|
this._updatedSorting = {
|
688
702
|
field: '',
|
689
703
|
order: 'desc'
|
690
704
|
};
|
691
|
-
this._filterActive = false;
|
692
705
|
this._updatedSortOption = "sortNewest";
|
693
|
-
|
706
|
+
await this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
|
694
707
|
this._flowItems = [...this._flowItems, "feature-list"];
|
708
|
+
// reset the applied filter when switching to another layer
|
709
|
+
if (this._selectedLayerId !== this._prevSelectedLayerId && this._filterActive) {
|
710
|
+
await this.resetFilter();
|
711
|
+
}
|
712
|
+
this._prevSelectedLayerId = this._selectedLayerId;
|
695
713
|
}
|
696
714
|
/**
|
697
|
-
*
|
715
|
+
* Reset's the applied filter
|
698
716
|
* @protected
|
699
717
|
*/
|
700
|
-
async
|
701
|
-
|
702
|
-
this.
|
718
|
+
async resetFilter() {
|
719
|
+
const prevLayer = await getLayerOrTable(this.mapView, this._prevSelectedLayerId);
|
720
|
+
prevLayer.definitionExpression = this._filterInitState.initDefExpressions[this._prevSelectedLayerId];
|
721
|
+
void this._handleFilterListReset();
|
703
722
|
}
|
704
723
|
/**
|
705
724
|
* On back from selected panel navigate to the previous panel
|
@@ -760,10 +779,14 @@ const CrowdsourceReporter = class {
|
|
760
779
|
*/
|
761
780
|
async getRelatedTable() {
|
762
781
|
const selectedLayer = this._currentFeature.layer;
|
763
|
-
const allRelatedTableIds = selectedLayer.relationships.map(a => a.relatedTableId);
|
764
782
|
const allTables = await getAllTables(this.mapView);
|
765
|
-
|
766
|
-
|
783
|
+
selectedLayer.relationships.some((relationship) => {
|
784
|
+
const relatedTables = allTables.filter((table) => selectedLayer.url === table.url && table.layerId === relationship.relatedTableId);
|
785
|
+
if (relatedTables && relatedTables.length > 0) {
|
786
|
+
this._relatedTable = relatedTables[0];
|
787
|
+
return true;
|
788
|
+
}
|
789
|
+
});
|
767
790
|
}
|
768
791
|
/**
|
769
792
|
* Show loading indicator while updating the feature details component
|
@@ -821,7 +844,7 @@ const CrowdsourceReporter = class {
|
|
821
844
|
*/
|
822
845
|
getFilterPanel() {
|
823
846
|
const currentLayersExpressions = this.layerExpressions ? this.layerExpressions.filter((exp) => exp.id === this._selectedLayerId) : [];
|
824
|
-
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations?.filterLayerTitle?.replace("{{title}}", this._selectedLayerName), loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.
|
847
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations?.filterLayerTitle?.replace("{{title}}", this._selectedLayerName), loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.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.backFromSelectedPanel.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(), ref: (el) => this._filterList = el, resetBtn: false, resetFiltersOnDisconnect: false, view: this.mapView, zoomBtn: false }))));
|
825
848
|
}
|
826
849
|
/**
|
827
850
|
* Returns the calcite-flow item for feature details
|