@esri/solutions-components 0.8.6 → 0.8.7
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 +6 -4
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +6 -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 +102 -66
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +78 -2
- package/dist/collection/utils/interfaces.ts +16 -0
- package/dist/components/crowdsource-manager.js +12 -8
- package/dist/components/crowdsource-reporter.js +10 -2
- package/dist/esm/crowdsource-manager.entry.js +6 -4
- package/dist/esm/crowdsource-reporter.entry.js +6 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/p-6db185bf.entry.js +6 -0
- package/dist/solutions-components/p-e8f13354.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 +22 -14
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +17 -1
- package/dist/types/components.d.ts +50 -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,27 @@ 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
70
|
this.searchConfiguration = undefined;
|
71
71
|
this.shareIncludeEmbed = undefined;
|
72
72
|
this.shareIncludeSocial = undefined;
|
73
|
+
this.showNewestFirst = true;
|
73
74
|
this.theme = "light";
|
74
75
|
this.zoomAndScrollToSelected = false;
|
76
|
+
this.zoomToScale = undefined;
|
75
77
|
this._expandPopup = false;
|
76
78
|
this._hideFooter = false;
|
77
79
|
this._hideTable = false;
|
@@ -522,6 +524,27 @@ export class CrowdsourceManager {
|
|
522
524
|
"attribute": "app-proxies",
|
523
525
|
"reflect": false
|
524
526
|
},
|
527
|
+
"basemapConfig": {
|
528
|
+
"type": "unknown",
|
529
|
+
"mutable": false,
|
530
|
+
"complexType": {
|
531
|
+
"original": "IBasemapConfig",
|
532
|
+
"resolved": "IBasemapConfig",
|
533
|
+
"references": {
|
534
|
+
"IBasemapConfig": {
|
535
|
+
"location": "import",
|
536
|
+
"path": "../../utils/interfaces",
|
537
|
+
"id": "src/utils/interfaces.ts::IBasemapConfig"
|
538
|
+
}
|
539
|
+
}
|
540
|
+
},
|
541
|
+
"required": false,
|
542
|
+
"optional": false,
|
543
|
+
"docs": {
|
544
|
+
"tags": [],
|
545
|
+
"text": "IBasemapConfig: List of any basemaps to filter out from the basemap widget"
|
546
|
+
}
|
547
|
+
},
|
525
548
|
"defaultCenter": {
|
526
549
|
"type": "string",
|
527
550
|
"mutable": false,
|
@@ -648,7 +671,7 @@ export class CrowdsourceManager {
|
|
648
671
|
"reflect": false,
|
649
672
|
"defaultValue": "false"
|
650
673
|
},
|
651
|
-
"
|
674
|
+
"enableBasemap": {
|
652
675
|
"type": "boolean",
|
653
676
|
"mutable": false,
|
654
677
|
"complexType": {
|
@@ -660,13 +683,13 @@ export class CrowdsourceManager {
|
|
660
683
|
"optional": false,
|
661
684
|
"docs": {
|
662
685
|
"tags": [],
|
663
|
-
"text": "boolean: when true the
|
686
|
+
"text": "boolean: when true the basemap widget will be available"
|
664
687
|
},
|
665
|
-
"attribute": "enable-
|
688
|
+
"attribute": "enable-basemap",
|
666
689
|
"reflect": false,
|
667
690
|
"defaultValue": "true"
|
668
691
|
},
|
669
|
-
"
|
692
|
+
"enableColumnReorder": {
|
670
693
|
"type": "boolean",
|
671
694
|
"mutable": false,
|
672
695
|
"complexType": {
|
@@ -678,13 +701,13 @@ export class CrowdsourceManager {
|
|
678
701
|
"optional": false,
|
679
702
|
"docs": {
|
680
703
|
"tags": [],
|
681
|
-
"text": "boolean: when true the
|
704
|
+
"text": "boolean: when true the layer table will support drag/drop of columns to adjust order"
|
682
705
|
},
|
683
|
-
"attribute": "enable-
|
706
|
+
"attribute": "enable-column-reorder",
|
684
707
|
"reflect": false,
|
685
708
|
"defaultValue": "true"
|
686
709
|
},
|
687
|
-
"
|
710
|
+
"enableCSV": {
|
688
711
|
"type": "boolean",
|
689
712
|
"mutable": false,
|
690
713
|
"complexType": {
|
@@ -696,13 +719,13 @@ export class CrowdsourceManager {
|
|
696
719
|
"optional": false,
|
697
720
|
"docs": {
|
698
721
|
"tags": [],
|
699
|
-
"text": "boolean: when true the
|
722
|
+
"text": "boolean: when true the export to csv button will be available"
|
700
723
|
},
|
701
|
-
"attribute": "enable-
|
724
|
+
"attribute": "enable-c-s-v",
|
702
725
|
"reflect": false,
|
703
726
|
"defaultValue": "true"
|
704
727
|
},
|
705
|
-
"
|
728
|
+
"enableFloorFilter": {
|
706
729
|
"type": "boolean",
|
707
730
|
"mutable": false,
|
708
731
|
"complexType": {
|
@@ -716,11 +739,11 @@ export class CrowdsourceManager {
|
|
716
739
|
"tags": [],
|
717
740
|
"text": "boolean: when true the fullscreen widget will be available"
|
718
741
|
},
|
719
|
-
"attribute": "enable-
|
742
|
+
"attribute": "enable-floor-filter",
|
720
743
|
"reflect": false,
|
721
744
|
"defaultValue": "true"
|
722
745
|
},
|
723
|
-
"
|
746
|
+
"enableFullscreen": {
|
724
747
|
"type": "boolean",
|
725
748
|
"mutable": false,
|
726
749
|
"complexType": {
|
@@ -732,13 +755,13 @@ export class CrowdsourceManager {
|
|
732
755
|
"optional": false,
|
733
756
|
"docs": {
|
734
757
|
"tags": [],
|
735
|
-
"text": "boolean: when true
|
758
|
+
"text": "boolean: when true the fullscreen widget will be available"
|
736
759
|
},
|
737
|
-
"attribute": "enable-
|
760
|
+
"attribute": "enable-fullscreen",
|
738
761
|
"reflect": false,
|
739
|
-
"defaultValue": "
|
762
|
+
"defaultValue": "true"
|
740
763
|
},
|
741
|
-
"
|
764
|
+
"enableHome": {
|
742
765
|
"type": "boolean",
|
743
766
|
"mutable": false,
|
744
767
|
"complexType": {
|
@@ -750,13 +773,13 @@ export class CrowdsourceManager {
|
|
750
773
|
"optional": false,
|
751
774
|
"docs": {
|
752
775
|
"tags": [],
|
753
|
-
"text": "boolean: when true the
|
776
|
+
"text": "boolean: when true the home widget will be available"
|
754
777
|
},
|
755
|
-
"attribute": "enable-
|
778
|
+
"attribute": "enable-home",
|
756
779
|
"reflect": false,
|
757
780
|
"defaultValue": "true"
|
758
781
|
},
|
759
|
-
"
|
782
|
+
"enableInlineEdit": {
|
760
783
|
"type": "boolean",
|
761
784
|
"mutable": false,
|
762
785
|
"complexType": {
|
@@ -768,13 +791,13 @@ export class CrowdsourceManager {
|
|
768
791
|
"optional": false,
|
769
792
|
"docs": {
|
770
793
|
"tags": [],
|
771
|
-
"text": "boolean: when true
|
794
|
+
"text": "boolean: when true edits can be applied directly within the table"
|
772
795
|
},
|
773
|
-
"attribute": "enable-
|
796
|
+
"attribute": "enable-inline-edit",
|
774
797
|
"reflect": false,
|
775
|
-
"defaultValue": "
|
798
|
+
"defaultValue": "false"
|
776
799
|
},
|
777
|
-
"
|
800
|
+
"enableLegend": {
|
778
801
|
"type": "boolean",
|
779
802
|
"mutable": false,
|
780
803
|
"complexType": {
|
@@ -786,13 +809,13 @@ export class CrowdsourceManager {
|
|
786
809
|
"optional": false,
|
787
810
|
"docs": {
|
788
811
|
"tags": [],
|
789
|
-
"text": "boolean: when true the
|
812
|
+
"text": "boolean: when true the legend widget will be available"
|
790
813
|
},
|
791
|
-
"attribute": "enable-
|
814
|
+
"attribute": "enable-legend",
|
792
815
|
"reflect": false,
|
793
|
-
"defaultValue": "
|
816
|
+
"defaultValue": "true"
|
794
817
|
},
|
795
|
-
"
|
818
|
+
"enableSearch": {
|
796
819
|
"type": "boolean",
|
797
820
|
"mutable": false,
|
798
821
|
"complexType": {
|
@@ -804,13 +827,13 @@ export class CrowdsourceManager {
|
|
804
827
|
"optional": false,
|
805
828
|
"docs": {
|
806
829
|
"tags": [],
|
807
|
-
"text": "boolean: when true the
|
830
|
+
"text": "boolean: when true the search widget will be available"
|
808
831
|
},
|
809
|
-
"attribute": "enable-
|
832
|
+
"attribute": "enable-search",
|
810
833
|
"reflect": false,
|
811
834
|
"defaultValue": "true"
|
812
835
|
},
|
813
|
-
"
|
836
|
+
"enableShare": {
|
814
837
|
"type": "boolean",
|
815
838
|
"mutable": false,
|
816
839
|
"complexType": {
|
@@ -822,13 +845,13 @@ export class CrowdsourceManager {
|
|
822
845
|
"optional": false,
|
823
846
|
"docs": {
|
824
847
|
"tags": [],
|
825
|
-
"text": "boolean: when true the
|
848
|
+
"text": "boolean: when true the share widget will be available"
|
826
849
|
},
|
827
|
-
"attribute": "enable-
|
850
|
+
"attribute": "enable-share",
|
828
851
|
"reflect": false,
|
829
|
-
"defaultValue": "
|
852
|
+
"defaultValue": "false"
|
830
853
|
},
|
831
|
-
"
|
854
|
+
"enableZoom": {
|
832
855
|
"type": "boolean",
|
833
856
|
"mutable": false,
|
834
857
|
"complexType": {
|
@@ -840,34 +863,13 @@ export class CrowdsourceManager {
|
|
840
863
|
"optional": false,
|
841
864
|
"docs": {
|
842
865
|
"tags": [],
|
843
|
-
"text": "boolean: when true the
|
866
|
+
"text": "boolean: when true the zoom widget will be available"
|
844
867
|
},
|
845
|
-
"attribute": "enable-
|
868
|
+
"attribute": "enable-zoom",
|
846
869
|
"reflect": false,
|
847
870
|
"defaultValue": "true"
|
848
871
|
},
|
849
|
-
"
|
850
|
-
"type": "unknown",
|
851
|
-
"mutable": false,
|
852
|
-
"complexType": {
|
853
|
-
"original": "IBasemapConfig",
|
854
|
-
"resolved": "IBasemapConfig",
|
855
|
-
"references": {
|
856
|
-
"IBasemapConfig": {
|
857
|
-
"location": "import",
|
858
|
-
"path": "../../utils/interfaces",
|
859
|
-
"id": "src/utils/interfaces.ts::IBasemapConfig"
|
860
|
-
}
|
861
|
-
}
|
862
|
-
},
|
863
|
-
"required": false,
|
864
|
-
"optional": false,
|
865
|
-
"docs": {
|
866
|
-
"tags": [],
|
867
|
-
"text": "IBasemapConfig: List of any basemaps to filter out from the basemap widget"
|
868
|
-
}
|
869
|
-
},
|
870
|
-
"showNewestFirst": {
|
872
|
+
"hideMapOnLoad": {
|
871
873
|
"type": "boolean",
|
872
874
|
"mutable": false,
|
873
875
|
"complexType": {
|
@@ -879,11 +881,10 @@ export class CrowdsourceManager {
|
|
879
881
|
"optional": false,
|
880
882
|
"docs": {
|
881
883
|
"tags": [],
|
882
|
-
"text": "boolean: when true the
|
884
|
+
"text": "boolean: when true the map will be hidden on load"
|
883
885
|
},
|
884
|
-
"attribute": "
|
885
|
-
"reflect": false
|
886
|
-
"defaultValue": "true"
|
886
|
+
"attribute": "hide-map-on-load",
|
887
|
+
"reflect": false
|
887
888
|
},
|
888
889
|
"mapInfos": {
|
889
890
|
"type": "unknown",
|
@@ -980,6 +981,24 @@ export class CrowdsourceManager {
|
|
980
981
|
"attribute": "share-include-social",
|
981
982
|
"reflect": false
|
982
983
|
},
|
984
|
+
"showNewestFirst": {
|
985
|
+
"type": "boolean",
|
986
|
+
"mutable": false,
|
987
|
+
"complexType": {
|
988
|
+
"original": "boolean",
|
989
|
+
"resolved": "boolean",
|
990
|
+
"references": {}
|
991
|
+
},
|
992
|
+
"required": false,
|
993
|
+
"optional": false,
|
994
|
+
"docs": {
|
995
|
+
"tags": [],
|
996
|
+
"text": "boolean: when true the table will be sorted by objectid in descending order by default"
|
997
|
+
},
|
998
|
+
"attribute": "show-newest-first",
|
999
|
+
"reflect": false,
|
1000
|
+
"defaultValue": "true"
|
1001
|
+
},
|
983
1002
|
"theme": {
|
984
1003
|
"type": "string",
|
985
1004
|
"mutable": false,
|
@@ -1021,6 +1040,23 @@ export class CrowdsourceManager {
|
|
1021
1040
|
"attribute": "zoom-and-scroll-to-selected",
|
1022
1041
|
"reflect": false,
|
1023
1042
|
"defaultValue": "false"
|
1043
|
+
},
|
1044
|
+
"zoomToScale": {
|
1045
|
+
"type": "number",
|
1046
|
+
"mutable": false,
|
1047
|
+
"complexType": {
|
1048
|
+
"original": "number",
|
1049
|
+
"resolved": "number",
|
1050
|
+
"references": {}
|
1051
|
+
},
|
1052
|
+
"required": false,
|
1053
|
+
"optional": false,
|
1054
|
+
"docs": {
|
1055
|
+
"tags": [],
|
1056
|
+
"text": "number: default scale to zoom to when zooming to a single point feature"
|
1057
|
+
},
|
1058
|
+
"attribute": "zoom-to-scale",
|
1059
|
+
"reflect": false
|
1024
1060
|
}
|
1025
1061
|
};
|
1026
1062
|
}
|
@@ -41,8 +41,11 @@ export class CrowdsourceReporter {
|
|
41
41
|
this.objectId = undefined;
|
42
42
|
this.center = undefined;
|
43
43
|
this.level = undefined;
|
44
|
+
this.popupHeaderHoverColor = undefined;
|
45
|
+
this.popupHeaderColor = undefined;
|
44
46
|
this.reportButtonText = undefined;
|
45
47
|
this.reportsHeader = undefined;
|
48
|
+
this.reportingOptions = undefined;
|
46
49
|
this.reportSubmittedMessage = undefined;
|
47
50
|
this.searchConfiguration = undefined;
|
48
51
|
this.showComments = undefined;
|
@@ -52,6 +55,7 @@ export class CrowdsourceReporter {
|
|
52
55
|
this.mapInfos = [];
|
53
56
|
this.theme = "light";
|
54
57
|
this.enableZoom = true;
|
58
|
+
this.zoomToScale = undefined;
|
55
59
|
this._mapInfo = undefined;
|
56
60
|
this._flowItems = [];
|
57
61
|
this._sidePanelCollapsed = false;
|
@@ -410,7 +414,7 @@ export class CrowdsourceReporter {
|
|
410
414
|
// highlight the newly selected feature only when it has valid geometry
|
411
415
|
if (selectedFeature && selectedFeature.geometry && selectedFeature.layer) {
|
412
416
|
const selectedLayerView = await getFeatureLayerView(this.mapView, selectedFeature.layer.id);
|
413
|
-
// remove previous highlight options (if any) to highlight the feature by default color
|
417
|
+
// remove previous highlight options (if any) to highlight the feature by default color
|
414
418
|
selectedLayerView.highlightOptions = null;
|
415
419
|
this._highlightHandle = await highlightFeatures([selectedFeature.getObjectId()], selectedLayerView, this.mapView, true);
|
416
420
|
}
|
@@ -494,7 +498,7 @@ export class CrowdsourceReporter {
|
|
494
498
|
var _a;
|
495
499
|
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
500
|
});
|
497
|
-
// if clicked graphic's layer is one of the reporting layers then show details in layer panel
|
501
|
+
// if clicked graphic's layer is one of the reporting layers then show details in layer panel
|
498
502
|
if (reportingLayerGraphics.length > 0) {
|
499
503
|
//update the selectedFeature
|
500
504
|
this.setSelectedFeatures(reportingLayerGraphics);
|
@@ -887,6 +891,40 @@ export class CrowdsourceReporter {
|
|
887
891
|
"attribute": "level",
|
888
892
|
"reflect": false
|
889
893
|
},
|
894
|
+
"popupHeaderHoverColor": {
|
895
|
+
"type": "string",
|
896
|
+
"mutable": false,
|
897
|
+
"complexType": {
|
898
|
+
"original": "string",
|
899
|
+
"resolved": "string",
|
900
|
+
"references": {}
|
901
|
+
},
|
902
|
+
"required": false,
|
903
|
+
"optional": false,
|
904
|
+
"docs": {
|
905
|
+
"tags": [],
|
906
|
+
"text": "string: The color that will be displayed on hover when expanding the popup header"
|
907
|
+
},
|
908
|
+
"attribute": "popup-header-hover-color",
|
909
|
+
"reflect": false
|
910
|
+
},
|
911
|
+
"popupHeaderColor": {
|
912
|
+
"type": "string",
|
913
|
+
"mutable": false,
|
914
|
+
"complexType": {
|
915
|
+
"original": "string",
|
916
|
+
"resolved": "string",
|
917
|
+
"references": {}
|
918
|
+
},
|
919
|
+
"required": false,
|
920
|
+
"optional": false,
|
921
|
+
"docs": {
|
922
|
+
"tags": [],
|
923
|
+
"text": "string: The background color to apply to the popup header"
|
924
|
+
},
|
925
|
+
"attribute": "popup-header-color",
|
926
|
+
"reflect": false
|
927
|
+
},
|
890
928
|
"reportButtonText": {
|
891
929
|
"type": "string",
|
892
930
|
"mutable": false,
|
@@ -921,6 +959,27 @@ export class CrowdsourceReporter {
|
|
921
959
|
"attribute": "reports-header",
|
922
960
|
"reflect": false
|
923
961
|
},
|
962
|
+
"reportingOptions": {
|
963
|
+
"type": "unknown",
|
964
|
+
"mutable": false,
|
965
|
+
"complexType": {
|
966
|
+
"original": "IReportingOptions",
|
967
|
+
"resolved": "IReportingOptions",
|
968
|
+
"references": {
|
969
|
+
"IReportingOptions": {
|
970
|
+
"location": "import",
|
971
|
+
"path": "../../utils/interfaces",
|
972
|
+
"id": "src/utils/interfaces.ts::IReportingOptions"
|
973
|
+
}
|
974
|
+
}
|
975
|
+
},
|
976
|
+
"required": false,
|
977
|
+
"optional": false,
|
978
|
+
"docs": {
|
979
|
+
"tags": [],
|
980
|
+
"text": "IReportingOptions: Key options for reporting"
|
981
|
+
}
|
982
|
+
},
|
924
983
|
"reportSubmittedMessage": {
|
925
984
|
"type": "string",
|
926
985
|
"mutable": false,
|
@@ -1093,6 +1152,23 @@ export class CrowdsourceReporter {
|
|
1093
1152
|
"attribute": "enable-zoom",
|
1094
1153
|
"reflect": false,
|
1095
1154
|
"defaultValue": "true"
|
1155
|
+
},
|
1156
|
+
"zoomToScale": {
|
1157
|
+
"type": "number",
|
1158
|
+
"mutable": false,
|
1159
|
+
"complexType": {
|
1160
|
+
"original": "number",
|
1161
|
+
"resolved": "number",
|
1162
|
+
"references": {}
|
1163
|
+
},
|
1164
|
+
"required": false,
|
1165
|
+
"optional": false,
|
1166
|
+
"docs": {
|
1167
|
+
"tags": [],
|
1168
|
+
"text": "number: default scale to zoom to when zooming to a single point feature"
|
1169
|
+
},
|
1170
|
+
"attribute": "zoom-to-scale",
|
1171
|
+
"reflect": false
|
1096
1172
|
}
|
1097
1173
|
};
|
1098
1174
|
}
|
@@ -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]: IReportOption;
|
581
|
+
}
|
582
|
+
|
583
|
+
export interface IReportOption {
|
584
|
+
reporting: boolean;
|
585
|
+
comment: boolean;
|
586
|
+
like: boolean;
|
587
|
+
dislike: boolean;
|
588
|
+
likeField: string;
|
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,27 @@ 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
117
|
this.searchConfiguration = undefined;
|
118
118
|
this.shareIncludeEmbed = undefined;
|
119
119
|
this.shareIncludeSocial = undefined;
|
120
|
+
this.showNewestFirst = true;
|
120
121
|
this.theme = "light";
|
121
122
|
this.zoomAndScrollToSelected = false;
|
123
|
+
this.zoomToScale = undefined;
|
122
124
|
this._expandPopup = false;
|
123
125
|
this._hideFooter = false;
|
124
126
|
this._hideTable = false;
|
@@ -546,6 +548,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
546
548
|
static get style() { return crowdsourceManagerCss; }
|
547
549
|
}, [0, "crowdsource-manager", {
|
548
550
|
"appProxies": [8, "app-proxies"],
|
551
|
+
"basemapConfig": [16],
|
549
552
|
"defaultCenter": [1, "default-center"],
|
550
553
|
"defaultGlobalId": [1, "default-global-id"],
|
551
554
|
"defaultLayer": [1, "default-layer"],
|
@@ -553,26 +556,27 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
553
556
|
"defaultOid": [1, "default-oid"],
|
554
557
|
"defaultWebmap": [1, "default-webmap"],
|
555
558
|
"enableAutoRefresh": [4, "enable-auto-refresh"],
|
559
|
+
"enableBasemap": [4, "enable-basemap"],
|
556
560
|
"enableColumnReorder": [4, "enable-column-reorder"],
|
557
561
|
"enableCSV": [4, "enable-c-s-v"],
|
558
562
|
"enableFloorFilter": [4, "enable-floor-filter"],
|
559
563
|
"enableFullscreen": [4, "enable-fullscreen"],
|
564
|
+
"enableHome": [4, "enable-home"],
|
560
565
|
"enableInlineEdit": [4, "enable-inline-edit"],
|
561
566
|
"enableLegend": [4, "enable-legend"],
|
562
567
|
"enableSearch": [4, "enable-search"],
|
563
568
|
"enableShare": [4, "enable-share"],
|
564
|
-
"enableHome": [4, "enable-home"],
|
565
569
|
"enableZoom": [4, "enable-zoom"],
|
566
|
-
"
|
567
|
-
"basemapConfig": [16],
|
568
|
-
"showNewestFirst": [4, "show-newest-first"],
|
570
|
+
"hideMapOnLoad": [4, "hide-map-on-load"],
|
569
571
|
"mapInfos": [16],
|
570
572
|
"onlyShowUpdatableLayers": [4, "only-show-updatable-layers"],
|
571
573
|
"searchConfiguration": [16],
|
572
574
|
"shareIncludeEmbed": [4, "share-include-embed"],
|
573
575
|
"shareIncludeSocial": [4, "share-include-social"],
|
576
|
+
"showNewestFirst": [4, "show-newest-first"],
|
574
577
|
"theme": [1],
|
575
578
|
"zoomAndScrollToSelected": [4, "zoom-and-scroll-to-selected"],
|
579
|
+
"zoomToScale": [2, "zoom-to-scale"],
|
576
580
|
"_expandPopup": [32],
|
577
581
|
"_hideFooter": [32],
|
578
582
|
"_hideTable": [32],
|
@@ -63,8 +63,11 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
63
63
|
this.objectId = undefined;
|
64
64
|
this.center = undefined;
|
65
65
|
this.level = undefined;
|
66
|
+
this.popupHeaderHoverColor = undefined;
|
67
|
+
this.popupHeaderColor = undefined;
|
66
68
|
this.reportButtonText = undefined;
|
67
69
|
this.reportsHeader = undefined;
|
70
|
+
this.reportingOptions = undefined;
|
68
71
|
this.reportSubmittedMessage = undefined;
|
69
72
|
this.searchConfiguration = undefined;
|
70
73
|
this.showComments = undefined;
|
@@ -74,6 +77,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
74
77
|
this.mapInfos = [];
|
75
78
|
this.theme = "light";
|
76
79
|
this.enableZoom = true;
|
80
|
+
this.zoomToScale = undefined;
|
77
81
|
this._mapInfo = undefined;
|
78
82
|
this._flowItems = [];
|
79
83
|
this._sidePanelCollapsed = false;
|
@@ -432,7 +436,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
432
436
|
// highlight the newly selected feature only when it has valid geometry
|
433
437
|
if (selectedFeature && selectedFeature.geometry && selectedFeature.layer) {
|
434
438
|
const selectedLayerView = await getFeatureLayerView(this.mapView, selectedFeature.layer.id);
|
435
|
-
// remove previous highlight options (if any) to highlight the feature by default color
|
439
|
+
// remove previous highlight options (if any) to highlight the feature by default color
|
436
440
|
selectedLayerView.highlightOptions = null;
|
437
441
|
this._highlightHandle = await highlightFeatures([selectedFeature.getObjectId()], selectedLayerView, this.mapView, true);
|
438
442
|
}
|
@@ -516,7 +520,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
516
520
|
var _a;
|
517
521
|
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
522
|
});
|
519
|
-
// if clicked graphic's layer is one of the reporting layers then show details in layer panel
|
523
|
+
// if clicked graphic's layer is one of the reporting layers then show details in layer panel
|
520
524
|
if (reportingLayerGraphics.length > 0) {
|
521
525
|
//update the selectedFeature
|
522
526
|
this.setSelectedFeatures(reportingLayerGraphics);
|
@@ -678,8 +682,11 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
678
682
|
"objectId": [1, "object-id"],
|
679
683
|
"center": [1],
|
680
684
|
"level": [1],
|
685
|
+
"popupHeaderHoverColor": [1, "popup-header-hover-color"],
|
686
|
+
"popupHeaderColor": [1, "popup-header-color"],
|
681
687
|
"reportButtonText": [1, "report-button-text"],
|
682
688
|
"reportsHeader": [1, "reports-header"],
|
689
|
+
"reportingOptions": [16],
|
683
690
|
"reportSubmittedMessage": [1, "report-submitted-message"],
|
684
691
|
"searchConfiguration": [16],
|
685
692
|
"showComments": [4, "show-comments"],
|
@@ -689,6 +696,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
689
696
|
"mapInfos": [16],
|
690
697
|
"theme": [1],
|
691
698
|
"enableZoom": [4, "enable-zoom"],
|
699
|
+
"zoomToScale": [2, "zoom-to-scale"],
|
692
700
|
"_mapInfo": [32],
|
693
701
|
"_flowItems": [32],
|
694
702
|
"_sidePanelCollapsed": [32],
|