@esri/solutions-components 0.8.6 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/crowdsource-manager.cjs.entry.js +10 -4
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +4 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +165 -57
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +42 -2
- package/dist/collection/utils/interfaces.ts +16 -0
- package/dist/components/crowdsource-manager.js +20 -8
- package/dist/components/crowdsource-reporter.js +6 -2
- package/dist/esm/crowdsource-manager.entry.js +10 -4
- package/dist/esm/crowdsource-reporter.entry.js +4 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/p-13ca3b00.entry.js +6 -0
- package/dist/solutions-components/p-a3a11749.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +16 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +38 -14
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +9 -1
- package/dist/types/components.d.ts +66 -2
- package/dist/types/utils/interfaces.d.ts +14 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-273d833b.entry.js +0 -6
- package/dist/solutions-components/p-45ed16d5.entry.js +0 -6
@@ -45,6 +45,7 @@ export class CrowdsourceManager {
|
|
45
45
|
*/
|
46
46
|
this._shouldSetMapView = false;
|
47
47
|
this.appProxies = undefined;
|
48
|
+
this.basemapConfig = undefined;
|
48
49
|
this.defaultCenter = "";
|
49
50
|
this.defaultGlobalId = "";
|
50
51
|
this.defaultLayer = "";
|
@@ -52,26 +53,31 @@ export class CrowdsourceManager {
|
|
52
53
|
this.defaultOid = "";
|
53
54
|
this.defaultWebmap = "";
|
54
55
|
this.enableAutoRefresh = false;
|
56
|
+
this.enableBasemap = true;
|
55
57
|
this.enableColumnReorder = true;
|
56
58
|
this.enableCSV = true;
|
57
59
|
this.enableFloorFilter = true;
|
58
60
|
this.enableFullscreen = true;
|
61
|
+
this.enableHome = true;
|
59
62
|
this.enableInlineEdit = false;
|
60
63
|
this.enableLegend = true;
|
61
64
|
this.enableSearch = true;
|
62
65
|
this.enableShare = false;
|
63
|
-
this.enableHome = true;
|
64
66
|
this.enableZoom = true;
|
65
|
-
this.
|
66
|
-
this.basemapConfig = undefined;
|
67
|
-
this.showNewestFirst = true;
|
67
|
+
this.hideMapOnLoad = undefined;
|
68
68
|
this.mapInfos = [];
|
69
69
|
this.onlyShowUpdatableLayers = true;
|
70
|
+
this.popupHeaderColor = undefined;
|
71
|
+
this.popupHeaderHoverColor = undefined;
|
72
|
+
this.popupHeaderHoverTextColor = undefined;
|
73
|
+
this.popupHeaderTextColor = undefined;
|
70
74
|
this.searchConfiguration = undefined;
|
71
75
|
this.shareIncludeEmbed = undefined;
|
72
76
|
this.shareIncludeSocial = undefined;
|
77
|
+
this.showNewestFirst = true;
|
73
78
|
this.theme = "light";
|
74
79
|
this.zoomAndScrollToSelected = false;
|
80
|
+
this.zoomToScale = undefined;
|
75
81
|
this._expandPopup = false;
|
76
82
|
this._hideFooter = false;
|
77
83
|
this._hideTable = false;
|
@@ -522,6 +528,27 @@ export class CrowdsourceManager {
|
|
522
528
|
"attribute": "app-proxies",
|
523
529
|
"reflect": false
|
524
530
|
},
|
531
|
+
"basemapConfig": {
|
532
|
+
"type": "unknown",
|
533
|
+
"mutable": false,
|
534
|
+
"complexType": {
|
535
|
+
"original": "IBasemapConfig",
|
536
|
+
"resolved": "IBasemapConfig",
|
537
|
+
"references": {
|
538
|
+
"IBasemapConfig": {
|
539
|
+
"location": "import",
|
540
|
+
"path": "../../utils/interfaces",
|
541
|
+
"id": "src/utils/interfaces.ts::IBasemapConfig"
|
542
|
+
}
|
543
|
+
}
|
544
|
+
},
|
545
|
+
"required": false,
|
546
|
+
"optional": false,
|
547
|
+
"docs": {
|
548
|
+
"tags": [],
|
549
|
+
"text": "IBasemapConfig: List of any basemaps to filter out from the basemap widget"
|
550
|
+
}
|
551
|
+
},
|
525
552
|
"defaultCenter": {
|
526
553
|
"type": "string",
|
527
554
|
"mutable": false,
|
@@ -648,6 +675,24 @@ export class CrowdsourceManager {
|
|
648
675
|
"reflect": false,
|
649
676
|
"defaultValue": "false"
|
650
677
|
},
|
678
|
+
"enableBasemap": {
|
679
|
+
"type": "boolean",
|
680
|
+
"mutable": false,
|
681
|
+
"complexType": {
|
682
|
+
"original": "boolean",
|
683
|
+
"resolved": "boolean",
|
684
|
+
"references": {}
|
685
|
+
},
|
686
|
+
"required": false,
|
687
|
+
"optional": false,
|
688
|
+
"docs": {
|
689
|
+
"tags": [],
|
690
|
+
"text": "boolean: when true the basemap widget will be available"
|
691
|
+
},
|
692
|
+
"attribute": "enable-basemap",
|
693
|
+
"reflect": false,
|
694
|
+
"defaultValue": "true"
|
695
|
+
},
|
651
696
|
"enableColumnReorder": {
|
652
697
|
"type": "boolean",
|
653
698
|
"mutable": false,
|
@@ -720,6 +765,24 @@ export class CrowdsourceManager {
|
|
720
765
|
"reflect": false,
|
721
766
|
"defaultValue": "true"
|
722
767
|
},
|
768
|
+
"enableHome": {
|
769
|
+
"type": "boolean",
|
770
|
+
"mutable": false,
|
771
|
+
"complexType": {
|
772
|
+
"original": "boolean",
|
773
|
+
"resolved": "boolean",
|
774
|
+
"references": {}
|
775
|
+
},
|
776
|
+
"required": false,
|
777
|
+
"optional": false,
|
778
|
+
"docs": {
|
779
|
+
"tags": [],
|
780
|
+
"text": "boolean: when true the home widget will be available"
|
781
|
+
},
|
782
|
+
"attribute": "enable-home",
|
783
|
+
"reflect": false,
|
784
|
+
"defaultValue": "true"
|
785
|
+
},
|
723
786
|
"enableInlineEdit": {
|
724
787
|
"type": "boolean",
|
725
788
|
"mutable": false,
|
@@ -792,7 +855,7 @@ export class CrowdsourceManager {
|
|
792
855
|
"reflect": false,
|
793
856
|
"defaultValue": "false"
|
794
857
|
},
|
795
|
-
"
|
858
|
+
"enableZoom": {
|
796
859
|
"type": "boolean",
|
797
860
|
"mutable": false,
|
798
861
|
"complexType": {
|
@@ -804,13 +867,13 @@ export class CrowdsourceManager {
|
|
804
867
|
"optional": false,
|
805
868
|
"docs": {
|
806
869
|
"tags": [],
|
807
|
-
"text": "boolean: when true the
|
870
|
+
"text": "boolean: when true the zoom widget will be available"
|
808
871
|
},
|
809
|
-
"attribute": "enable-
|
872
|
+
"attribute": "enable-zoom",
|
810
873
|
"reflect": false,
|
811
874
|
"defaultValue": "true"
|
812
875
|
},
|
813
|
-
"
|
876
|
+
"hideMapOnLoad": {
|
814
877
|
"type": "boolean",
|
815
878
|
"mutable": false,
|
816
879
|
"complexType": {
|
@@ -822,13 +885,34 @@ export class CrowdsourceManager {
|
|
822
885
|
"optional": false,
|
823
886
|
"docs": {
|
824
887
|
"tags": [],
|
825
|
-
"text": "boolean: when true the
|
888
|
+
"text": "boolean: when true the map will be hidden on load"
|
826
889
|
},
|
827
|
-
"attribute": "
|
828
|
-
"reflect": false
|
829
|
-
"defaultValue": "true"
|
890
|
+
"attribute": "hide-map-on-load",
|
891
|
+
"reflect": false
|
830
892
|
},
|
831
|
-
"
|
893
|
+
"mapInfos": {
|
894
|
+
"type": "unknown",
|
895
|
+
"mutable": false,
|
896
|
+
"complexType": {
|
897
|
+
"original": "IMapInfo[]",
|
898
|
+
"resolved": "IMapInfo[]",
|
899
|
+
"references": {
|
900
|
+
"IMapInfo": {
|
901
|
+
"location": "import",
|
902
|
+
"path": "../../utils/interfaces",
|
903
|
+
"id": "src/utils/interfaces.ts::IMapInfo"
|
904
|
+
}
|
905
|
+
}
|
906
|
+
},
|
907
|
+
"required": false,
|
908
|
+
"optional": false,
|
909
|
+
"docs": {
|
910
|
+
"tags": [],
|
911
|
+
"text": "IMapInfo[]: array of map infos (name and id)"
|
912
|
+
},
|
913
|
+
"defaultValue": "[]"
|
914
|
+
},
|
915
|
+
"onlyShowUpdatableLayers": {
|
832
916
|
"type": "boolean",
|
833
917
|
"mutable": false,
|
834
918
|
"complexType": {
|
@@ -840,90 +924,79 @@ export class CrowdsourceManager {
|
|
840
924
|
"optional": false,
|
841
925
|
"docs": {
|
842
926
|
"tags": [],
|
843
|
-
"text": "boolean:
|
927
|
+
"text": "boolean: When true only editable layers that support the update capability will be available"
|
844
928
|
},
|
845
|
-
"attribute": "
|
929
|
+
"attribute": "only-show-updatable-layers",
|
846
930
|
"reflect": false,
|
847
931
|
"defaultValue": "true"
|
848
932
|
},
|
849
|
-
"
|
850
|
-
"type": "
|
933
|
+
"popupHeaderColor": {
|
934
|
+
"type": "string",
|
851
935
|
"mutable": false,
|
852
936
|
"complexType": {
|
853
|
-
"original": "
|
854
|
-
"resolved": "
|
855
|
-
"references": {
|
856
|
-
"IBasemapConfig": {
|
857
|
-
"location": "import",
|
858
|
-
"path": "../../utils/interfaces",
|
859
|
-
"id": "src/utils/interfaces.ts::IBasemapConfig"
|
860
|
-
}
|
861
|
-
}
|
937
|
+
"original": "string",
|
938
|
+
"resolved": "string",
|
939
|
+
"references": {}
|
862
940
|
},
|
863
941
|
"required": false,
|
864
942
|
"optional": false,
|
865
943
|
"docs": {
|
866
944
|
"tags": [],
|
867
|
-
"text": "
|
868
|
-
}
|
945
|
+
"text": "string: The background color to apply to the popup header"
|
946
|
+
},
|
947
|
+
"attribute": "popup-header-color",
|
948
|
+
"reflect": false
|
869
949
|
},
|
870
|
-
"
|
871
|
-
"type": "
|
950
|
+
"popupHeaderHoverColor": {
|
951
|
+
"type": "string",
|
872
952
|
"mutable": false,
|
873
953
|
"complexType": {
|
874
|
-
"original": "
|
875
|
-
"resolved": "
|
954
|
+
"original": "string",
|
955
|
+
"resolved": "string",
|
876
956
|
"references": {}
|
877
957
|
},
|
878
958
|
"required": false,
|
879
959
|
"optional": false,
|
880
960
|
"docs": {
|
881
961
|
"tags": [],
|
882
|
-
"text": "
|
962
|
+
"text": "string: The color that will be displayed on hover when expanding the popup header"
|
883
963
|
},
|
884
|
-
"attribute": "
|
885
|
-
"reflect": false
|
886
|
-
"defaultValue": "true"
|
964
|
+
"attribute": "popup-header-hover-color",
|
965
|
+
"reflect": false
|
887
966
|
},
|
888
|
-
"
|
889
|
-
"type": "
|
967
|
+
"popupHeaderHoverTextColor": {
|
968
|
+
"type": "string",
|
890
969
|
"mutable": false,
|
891
970
|
"complexType": {
|
892
|
-
"original": "
|
893
|
-
"resolved": "
|
894
|
-
"references": {
|
895
|
-
"IMapInfo": {
|
896
|
-
"location": "import",
|
897
|
-
"path": "../../utils/interfaces",
|
898
|
-
"id": "src/utils/interfaces.ts::IMapInfo"
|
899
|
-
}
|
900
|
-
}
|
971
|
+
"original": "string",
|
972
|
+
"resolved": "string",
|
973
|
+
"references": {}
|
901
974
|
},
|
902
975
|
"required": false,
|
903
976
|
"optional": false,
|
904
977
|
"docs": {
|
905
978
|
"tags": [],
|
906
|
-
"text": "
|
979
|
+
"text": "string: The font color that will be displayed on hover when expanding the popup header"
|
907
980
|
},
|
908
|
-
"
|
981
|
+
"attribute": "popup-header-hover-text-color",
|
982
|
+
"reflect": false
|
909
983
|
},
|
910
|
-
"
|
911
|
-
"type": "
|
984
|
+
"popupHeaderTextColor": {
|
985
|
+
"type": "string",
|
912
986
|
"mutable": false,
|
913
987
|
"complexType": {
|
914
|
-
"original": "
|
915
|
-
"resolved": "
|
988
|
+
"original": "string",
|
989
|
+
"resolved": "string",
|
916
990
|
"references": {}
|
917
991
|
},
|
918
992
|
"required": false,
|
919
993
|
"optional": false,
|
920
994
|
"docs": {
|
921
995
|
"tags": [],
|
922
|
-
"text": "
|
996
|
+
"text": "string: The font color to apply to the popup header"
|
923
997
|
},
|
924
|
-
"attribute": "
|
925
|
-
"reflect": false
|
926
|
-
"defaultValue": "true"
|
998
|
+
"attribute": "popup-header-text-color",
|
999
|
+
"reflect": false
|
927
1000
|
},
|
928
1001
|
"searchConfiguration": {
|
929
1002
|
"type": "unknown",
|
@@ -980,6 +1053,24 @@ export class CrowdsourceManager {
|
|
980
1053
|
"attribute": "share-include-social",
|
981
1054
|
"reflect": false
|
982
1055
|
},
|
1056
|
+
"showNewestFirst": {
|
1057
|
+
"type": "boolean",
|
1058
|
+
"mutable": false,
|
1059
|
+
"complexType": {
|
1060
|
+
"original": "boolean",
|
1061
|
+
"resolved": "boolean",
|
1062
|
+
"references": {}
|
1063
|
+
},
|
1064
|
+
"required": false,
|
1065
|
+
"optional": false,
|
1066
|
+
"docs": {
|
1067
|
+
"tags": [],
|
1068
|
+
"text": "boolean: when true the table will be sorted by objectid in descending order by default"
|
1069
|
+
},
|
1070
|
+
"attribute": "show-newest-first",
|
1071
|
+
"reflect": false,
|
1072
|
+
"defaultValue": "true"
|
1073
|
+
},
|
983
1074
|
"theme": {
|
984
1075
|
"type": "string",
|
985
1076
|
"mutable": false,
|
@@ -1021,6 +1112,23 @@ export class CrowdsourceManager {
|
|
1021
1112
|
"attribute": "zoom-and-scroll-to-selected",
|
1022
1113
|
"reflect": false,
|
1023
1114
|
"defaultValue": "false"
|
1115
|
+
},
|
1116
|
+
"zoomToScale": {
|
1117
|
+
"type": "number",
|
1118
|
+
"mutable": false,
|
1119
|
+
"complexType": {
|
1120
|
+
"original": "number",
|
1121
|
+
"resolved": "number",
|
1122
|
+
"references": {}
|
1123
|
+
},
|
1124
|
+
"required": false,
|
1125
|
+
"optional": false,
|
1126
|
+
"docs": {
|
1127
|
+
"tags": [],
|
1128
|
+
"text": "number: default scale to zoom to when zooming to a single point feature"
|
1129
|
+
},
|
1130
|
+
"attribute": "zoom-to-scale",
|
1131
|
+
"reflect": false
|
1024
1132
|
}
|
1025
1133
|
};
|
1026
1134
|
}
|
@@ -43,6 +43,7 @@ export class CrowdsourceReporter {
|
|
43
43
|
this.level = undefined;
|
44
44
|
this.reportButtonText = undefined;
|
45
45
|
this.reportsHeader = undefined;
|
46
|
+
this.reportingOptions = undefined;
|
46
47
|
this.reportSubmittedMessage = undefined;
|
47
48
|
this.searchConfiguration = undefined;
|
48
49
|
this.showComments = undefined;
|
@@ -52,6 +53,7 @@ export class CrowdsourceReporter {
|
|
52
53
|
this.mapInfos = [];
|
53
54
|
this.theme = "light";
|
54
55
|
this.enableZoom = true;
|
56
|
+
this.zoomToScale = undefined;
|
55
57
|
this._mapInfo = undefined;
|
56
58
|
this._flowItems = [];
|
57
59
|
this._sidePanelCollapsed = false;
|
@@ -410,7 +412,7 @@ export class CrowdsourceReporter {
|
|
410
412
|
// highlight the newly selected feature only when it has valid geometry
|
411
413
|
if (selectedFeature && selectedFeature.geometry && selectedFeature.layer) {
|
412
414
|
const selectedLayerView = await getFeatureLayerView(this.mapView, selectedFeature.layer.id);
|
413
|
-
// remove previous highlight options (if any) to highlight the feature by default color
|
415
|
+
// remove previous highlight options (if any) to highlight the feature by default color
|
414
416
|
selectedLayerView.highlightOptions = null;
|
415
417
|
this._highlightHandle = await highlightFeatures([selectedFeature.getObjectId()], selectedLayerView, this.mapView, true);
|
416
418
|
}
|
@@ -494,7 +496,7 @@ export class CrowdsourceReporter {
|
|
494
496
|
var _a;
|
495
497
|
return !this._validLayers.includes(graphic.layer) && ((_a = graphic === null || graphic === void 0 ? void 0 : graphic.layer) === null || _a === void 0 ? void 0 : _a.id);
|
496
498
|
});
|
497
|
-
// if clicked graphic's layer is one of the reporting layers then show details in layer panel
|
499
|
+
// if clicked graphic's layer is one of the reporting layers then show details in layer panel
|
498
500
|
if (reportingLayerGraphics.length > 0) {
|
499
501
|
//update the selectedFeature
|
500
502
|
this.setSelectedFeatures(reportingLayerGraphics);
|
@@ -921,6 +923,27 @@ export class CrowdsourceReporter {
|
|
921
923
|
"attribute": "reports-header",
|
922
924
|
"reflect": false
|
923
925
|
},
|
926
|
+
"reportingOptions": {
|
927
|
+
"type": "unknown",
|
928
|
+
"mutable": false,
|
929
|
+
"complexType": {
|
930
|
+
"original": "IReportingOptions",
|
931
|
+
"resolved": "IReportingOptions",
|
932
|
+
"references": {
|
933
|
+
"IReportingOptions": {
|
934
|
+
"location": "import",
|
935
|
+
"path": "../../utils/interfaces",
|
936
|
+
"id": "src/utils/interfaces.ts::IReportingOptions"
|
937
|
+
}
|
938
|
+
}
|
939
|
+
},
|
940
|
+
"required": false,
|
941
|
+
"optional": false,
|
942
|
+
"docs": {
|
943
|
+
"tags": [],
|
944
|
+
"text": "IReportingOptions: Key options for reporting"
|
945
|
+
}
|
946
|
+
},
|
924
947
|
"reportSubmittedMessage": {
|
925
948
|
"type": "string",
|
926
949
|
"mutable": false,
|
@@ -1093,6 +1116,23 @@ export class CrowdsourceReporter {
|
|
1093
1116
|
"attribute": "enable-zoom",
|
1094
1117
|
"reflect": false,
|
1095
1118
|
"defaultValue": "true"
|
1119
|
+
},
|
1120
|
+
"zoomToScale": {
|
1121
|
+
"type": "number",
|
1122
|
+
"mutable": false,
|
1123
|
+
"complexType": {
|
1124
|
+
"original": "number",
|
1125
|
+
"resolved": "number",
|
1126
|
+
"references": {}
|
1127
|
+
},
|
1128
|
+
"required": false,
|
1129
|
+
"optional": false,
|
1130
|
+
"docs": {
|
1131
|
+
"tags": [],
|
1132
|
+
"text": "number: default scale to zoom to when zooming to a single point feature"
|
1133
|
+
},
|
1134
|
+
"attribute": "zoom-to-scale",
|
1135
|
+
"reflect": false
|
1096
1136
|
}
|
1097
1137
|
};
|
1098
1138
|
}
|
@@ -572,3 +572,19 @@ export interface IConsentResponse {
|
|
572
572
|
export interface IManagedLayers {
|
573
573
|
[key: string]: "buffer" | "sketch";
|
574
574
|
}
|
575
|
+
|
576
|
+
/**
|
577
|
+
* Key is the layers guid
|
578
|
+
*/
|
579
|
+
export interface IReportingOptions {
|
580
|
+
[key: string]: IReportingOption;
|
581
|
+
}
|
582
|
+
|
583
|
+
export interface IReportingOption {
|
584
|
+
reporting: boolean;
|
585
|
+
comment: boolean;
|
586
|
+
like: boolean;
|
587
|
+
likeField?: string;
|
588
|
+
dislike: boolean;
|
589
|
+
dislikeField?: string;
|
590
|
+
}
|
@@ -92,6 +92,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
92
92
|
*/
|
93
93
|
this._shouldSetMapView = false;
|
94
94
|
this.appProxies = undefined;
|
95
|
+
this.basemapConfig = undefined;
|
95
96
|
this.defaultCenter = "";
|
96
97
|
this.defaultGlobalId = "";
|
97
98
|
this.defaultLayer = "";
|
@@ -99,26 +100,31 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
99
100
|
this.defaultOid = "";
|
100
101
|
this.defaultWebmap = "";
|
101
102
|
this.enableAutoRefresh = false;
|
103
|
+
this.enableBasemap = true;
|
102
104
|
this.enableColumnReorder = true;
|
103
105
|
this.enableCSV = true;
|
104
106
|
this.enableFloorFilter = true;
|
105
107
|
this.enableFullscreen = true;
|
108
|
+
this.enableHome = true;
|
106
109
|
this.enableInlineEdit = false;
|
107
110
|
this.enableLegend = true;
|
108
111
|
this.enableSearch = true;
|
109
112
|
this.enableShare = false;
|
110
|
-
this.enableHome = true;
|
111
113
|
this.enableZoom = true;
|
112
|
-
this.
|
113
|
-
this.basemapConfig = undefined;
|
114
|
-
this.showNewestFirst = true;
|
114
|
+
this.hideMapOnLoad = undefined;
|
115
115
|
this.mapInfos = [];
|
116
116
|
this.onlyShowUpdatableLayers = true;
|
117
|
+
this.popupHeaderColor = undefined;
|
118
|
+
this.popupHeaderHoverColor = undefined;
|
119
|
+
this.popupHeaderHoverTextColor = undefined;
|
120
|
+
this.popupHeaderTextColor = undefined;
|
117
121
|
this.searchConfiguration = undefined;
|
118
122
|
this.shareIncludeEmbed = undefined;
|
119
123
|
this.shareIncludeSocial = undefined;
|
124
|
+
this.showNewestFirst = true;
|
120
125
|
this.theme = "light";
|
121
126
|
this.zoomAndScrollToSelected = false;
|
127
|
+
this.zoomToScale = undefined;
|
122
128
|
this._expandPopup = false;
|
123
129
|
this._hideFooter = false;
|
124
130
|
this._hideTable = false;
|
@@ -546,6 +552,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
546
552
|
static get style() { return crowdsourceManagerCss; }
|
547
553
|
}, [0, "crowdsource-manager", {
|
548
554
|
"appProxies": [8, "app-proxies"],
|
555
|
+
"basemapConfig": [16],
|
549
556
|
"defaultCenter": [1, "default-center"],
|
550
557
|
"defaultGlobalId": [1, "default-global-id"],
|
551
558
|
"defaultLayer": [1, "default-layer"],
|
@@ -553,26 +560,31 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
553
560
|
"defaultOid": [1, "default-oid"],
|
554
561
|
"defaultWebmap": [1, "default-webmap"],
|
555
562
|
"enableAutoRefresh": [4, "enable-auto-refresh"],
|
563
|
+
"enableBasemap": [4, "enable-basemap"],
|
556
564
|
"enableColumnReorder": [4, "enable-column-reorder"],
|
557
565
|
"enableCSV": [4, "enable-c-s-v"],
|
558
566
|
"enableFloorFilter": [4, "enable-floor-filter"],
|
559
567
|
"enableFullscreen": [4, "enable-fullscreen"],
|
568
|
+
"enableHome": [4, "enable-home"],
|
560
569
|
"enableInlineEdit": [4, "enable-inline-edit"],
|
561
570
|
"enableLegend": [4, "enable-legend"],
|
562
571
|
"enableSearch": [4, "enable-search"],
|
563
572
|
"enableShare": [4, "enable-share"],
|
564
|
-
"enableHome": [4, "enable-home"],
|
565
573
|
"enableZoom": [4, "enable-zoom"],
|
566
|
-
"
|
567
|
-
"basemapConfig": [16],
|
568
|
-
"showNewestFirst": [4, "show-newest-first"],
|
574
|
+
"hideMapOnLoad": [4, "hide-map-on-load"],
|
569
575
|
"mapInfos": [16],
|
570
576
|
"onlyShowUpdatableLayers": [4, "only-show-updatable-layers"],
|
577
|
+
"popupHeaderColor": [1, "popup-header-color"],
|
578
|
+
"popupHeaderHoverColor": [1, "popup-header-hover-color"],
|
579
|
+
"popupHeaderHoverTextColor": [1, "popup-header-hover-text-color"],
|
580
|
+
"popupHeaderTextColor": [1, "popup-header-text-color"],
|
571
581
|
"searchConfiguration": [16],
|
572
582
|
"shareIncludeEmbed": [4, "share-include-embed"],
|
573
583
|
"shareIncludeSocial": [4, "share-include-social"],
|
584
|
+
"showNewestFirst": [4, "show-newest-first"],
|
574
585
|
"theme": [1],
|
575
586
|
"zoomAndScrollToSelected": [4, "zoom-and-scroll-to-selected"],
|
587
|
+
"zoomToScale": [2, "zoom-to-scale"],
|
576
588
|
"_expandPopup": [32],
|
577
589
|
"_hideFooter": [32],
|
578
590
|
"_hideTable": [32],
|
@@ -65,6 +65,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
65
65
|
this.level = undefined;
|
66
66
|
this.reportButtonText = undefined;
|
67
67
|
this.reportsHeader = undefined;
|
68
|
+
this.reportingOptions = undefined;
|
68
69
|
this.reportSubmittedMessage = undefined;
|
69
70
|
this.searchConfiguration = undefined;
|
70
71
|
this.showComments = undefined;
|
@@ -74,6 +75,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
74
75
|
this.mapInfos = [];
|
75
76
|
this.theme = "light";
|
76
77
|
this.enableZoom = true;
|
78
|
+
this.zoomToScale = undefined;
|
77
79
|
this._mapInfo = undefined;
|
78
80
|
this._flowItems = [];
|
79
81
|
this._sidePanelCollapsed = false;
|
@@ -432,7 +434,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
432
434
|
// highlight the newly selected feature only when it has valid geometry
|
433
435
|
if (selectedFeature && selectedFeature.geometry && selectedFeature.layer) {
|
434
436
|
const selectedLayerView = await getFeatureLayerView(this.mapView, selectedFeature.layer.id);
|
435
|
-
// remove previous highlight options (if any) to highlight the feature by default color
|
437
|
+
// remove previous highlight options (if any) to highlight the feature by default color
|
436
438
|
selectedLayerView.highlightOptions = null;
|
437
439
|
this._highlightHandle = await highlightFeatures([selectedFeature.getObjectId()], selectedLayerView, this.mapView, true);
|
438
440
|
}
|
@@ -516,7 +518,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
516
518
|
var _a;
|
517
519
|
return !this._validLayers.includes(graphic.layer) && ((_a = graphic === null || graphic === void 0 ? void 0 : graphic.layer) === null || _a === void 0 ? void 0 : _a.id);
|
518
520
|
});
|
519
|
-
// if clicked graphic's layer is one of the reporting layers then show details in layer panel
|
521
|
+
// if clicked graphic's layer is one of the reporting layers then show details in layer panel
|
520
522
|
if (reportingLayerGraphics.length > 0) {
|
521
523
|
//update the selectedFeature
|
522
524
|
this.setSelectedFeatures(reportingLayerGraphics);
|
@@ -680,6 +682,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
680
682
|
"level": [1],
|
681
683
|
"reportButtonText": [1, "report-button-text"],
|
682
684
|
"reportsHeader": [1, "reports-header"],
|
685
|
+
"reportingOptions": [16],
|
683
686
|
"reportSubmittedMessage": [1, "report-submitted-message"],
|
684
687
|
"searchConfiguration": [16],
|
685
688
|
"showComments": [4, "show-comments"],
|
@@ -689,6 +692,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
689
692
|
"mapInfos": [16],
|
690
693
|
"theme": [1],
|
691
694
|
"enableZoom": [4, "enable-zoom"],
|
695
|
+
"zoomToScale": [2, "zoom-to-scale"],
|
692
696
|
"_mapInfo": [32],
|
693
697
|
"_flowItems": [32],
|
694
698
|
"_sidePanelCollapsed": [32],
|
@@ -36,6 +36,7 @@ const CrowdsourceManager = class {
|
|
36
36
|
*/
|
37
37
|
this._shouldSetMapView = false;
|
38
38
|
this.appProxies = undefined;
|
39
|
+
this.basemapConfig = undefined;
|
39
40
|
this.defaultCenter = "";
|
40
41
|
this.defaultGlobalId = "";
|
41
42
|
this.defaultLayer = "";
|
@@ -43,26 +44,31 @@ const CrowdsourceManager = class {
|
|
43
44
|
this.defaultOid = "";
|
44
45
|
this.defaultWebmap = "";
|
45
46
|
this.enableAutoRefresh = false;
|
47
|
+
this.enableBasemap = true;
|
46
48
|
this.enableColumnReorder = true;
|
47
49
|
this.enableCSV = true;
|
48
50
|
this.enableFloorFilter = true;
|
49
51
|
this.enableFullscreen = true;
|
52
|
+
this.enableHome = true;
|
50
53
|
this.enableInlineEdit = false;
|
51
54
|
this.enableLegend = true;
|
52
55
|
this.enableSearch = true;
|
53
56
|
this.enableShare = false;
|
54
|
-
this.enableHome = true;
|
55
57
|
this.enableZoom = true;
|
56
|
-
this.
|
57
|
-
this.basemapConfig = undefined;
|
58
|
-
this.showNewestFirst = true;
|
58
|
+
this.hideMapOnLoad = undefined;
|
59
59
|
this.mapInfos = [];
|
60
60
|
this.onlyShowUpdatableLayers = true;
|
61
|
+
this.popupHeaderColor = undefined;
|
62
|
+
this.popupHeaderHoverColor = undefined;
|
63
|
+
this.popupHeaderHoverTextColor = undefined;
|
64
|
+
this.popupHeaderTextColor = undefined;
|
61
65
|
this.searchConfiguration = undefined;
|
62
66
|
this.shareIncludeEmbed = undefined;
|
63
67
|
this.shareIncludeSocial = undefined;
|
68
|
+
this.showNewestFirst = true;
|
64
69
|
this.theme = "light";
|
65
70
|
this.zoomAndScrollToSelected = false;
|
71
|
+
this.zoomToScale = undefined;
|
66
72
|
this._expandPopup = false;
|
67
73
|
this._hideFooter = false;
|
68
74
|
this._hideTable = false;
|