@itwin/map-layers 5.0.0-dev.3 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -1
- package/lib/cjs/MapLayerPreferences.js +1 -1
- package/lib/cjs/MapLayerPreferences.js.map +1 -1
- package/lib/cjs/MapLayersPrefBrowserStorage.d.ts +5 -0
- package/lib/cjs/MapLayersPrefBrowserStorage.d.ts.map +1 -0
- package/lib/cjs/MapLayersPrefBrowserStorage.js +16 -0
- package/lib/cjs/MapLayersPrefBrowserStorage.js.map +1 -0
- package/lib/cjs/PreferencesBrowserStorage.d.ts +36 -0
- package/lib/cjs/PreferencesBrowserStorage.d.ts.map +1 -0
- package/lib/cjs/PreferencesBrowserStorage.js +92 -0
- package/lib/cjs/PreferencesBrowserStorage.js.map +1 -0
- package/lib/cjs/map-layers.d.ts +1 -0
- package/lib/cjs/map-layers.d.ts.map +1 -1
- package/lib/cjs/map-layers.js +1 -0
- package/lib/cjs/map-layers.js.map +1 -1
- package/lib/cjs/public/locales/en/mapLayers.json +7 -2
- package/lib/cjs/ui/widget/AttachLayerPopupButton.d.ts.map +1 -1
- package/lib/cjs/ui/widget/AttachLayerPopupButton.js +144 -64
- package/lib/cjs/ui/widget/AttachLayerPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/BasemapPanel.d.ts.map +1 -1
- package/lib/cjs/ui/widget/BasemapPanel.js +44 -15
- package/lib/cjs/ui/widget/BasemapPanel.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerDroppable.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapLayerDroppable.js +31 -3
- package/lib/cjs/ui/widget/MapLayerDroppable.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerManager.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapLayerManager.js +35 -57
- package/lib/cjs/ui/widget/MapLayerManager.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerManager.scss +2 -8
- package/lib/cjs/ui/widget/MapSelectFeaturesDialog.d.ts +11 -0
- package/lib/cjs/ui/widget/MapSelectFeaturesDialog.d.ts.map +1 -0
- package/lib/cjs/ui/widget/MapSelectFeaturesDialog.js +58 -0
- package/lib/cjs/ui/widget/MapSelectFeaturesDialog.js.map +1 -0
- package/lib/cjs/ui/widget/MapSelectFeaturesDialog.scss +17 -0
- package/lib/cjs/ui/widget/MapUrlDialog.d.ts +7 -2
- package/lib/cjs/ui/widget/MapUrlDialog.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapUrlDialog.js +38 -134
- package/lib/cjs/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/cjs/ui/widget/MapUrlDialog.scss +10 -10
- package/lib/cjs/ui/widget/SubLayersDataProvider.d.ts +3 -3
- package/lib/cjs/ui/widget/SubLayersDataProvider.d.ts.map +1 -1
- package/lib/cjs/ui/widget/SubLayersDataProvider.js +4 -5
- package/lib/cjs/ui/widget/SubLayersDataProvider.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersPopupButton.d.ts +3 -7
- package/lib/cjs/ui/widget/SubLayersPopupButton.d.ts.map +1 -1
- package/lib/cjs/ui/widget/SubLayersPopupButton.js +2 -2
- package/lib/cjs/ui/widget/SubLayersPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.d.ts +17 -9
- package/lib/cjs/ui/widget/SubLayersTree.d.ts.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.js +59 -112
- package/lib/cjs/ui/widget/SubLayersTree.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.scss +12 -3
- package/lib/esm/MapLayerPreferences.js +1 -1
- package/lib/esm/MapLayerPreferences.js.map +1 -1
- package/lib/esm/MapLayersPrefBrowserStorage.d.ts +5 -0
- package/lib/esm/MapLayersPrefBrowserStorage.d.ts.map +1 -0
- package/lib/esm/MapLayersPrefBrowserStorage.js +12 -0
- package/lib/esm/MapLayersPrefBrowserStorage.js.map +1 -0
- package/lib/esm/PreferencesBrowserStorage.d.ts +36 -0
- package/lib/esm/PreferencesBrowserStorage.d.ts.map +1 -0
- package/lib/esm/PreferencesBrowserStorage.js +88 -0
- package/lib/esm/PreferencesBrowserStorage.js.map +1 -0
- package/lib/esm/map-layers.d.ts +1 -0
- package/lib/esm/map-layers.d.ts.map +1 -1
- package/lib/esm/map-layers.js +1 -0
- package/lib/esm/map-layers.js.map +1 -1
- package/lib/esm/public/locales/en/mapLayers.json +7 -2
- package/lib/esm/ui/widget/AttachLayerPopupButton.d.ts.map +1 -1
- package/lib/esm/ui/widget/AttachLayerPopupButton.js +145 -65
- package/lib/esm/ui/widget/AttachLayerPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/BasemapPanel.d.ts.map +1 -1
- package/lib/esm/ui/widget/BasemapPanel.js +44 -15
- package/lib/esm/ui/widget/BasemapPanel.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerDroppable.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapLayerDroppable.js +32 -4
- package/lib/esm/ui/widget/MapLayerDroppable.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerManager.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapLayerManager.js +36 -58
- package/lib/esm/ui/widget/MapLayerManager.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerManager.scss +2 -8
- package/lib/esm/ui/widget/MapSelectFeaturesDialog.d.ts +11 -0
- package/lib/esm/ui/widget/MapSelectFeaturesDialog.d.ts.map +1 -0
- package/lib/esm/ui/widget/MapSelectFeaturesDialog.js +54 -0
- package/lib/esm/ui/widget/MapSelectFeaturesDialog.js.map +1 -0
- package/lib/esm/ui/widget/MapSelectFeaturesDialog.scss +17 -0
- package/lib/esm/ui/widget/MapUrlDialog.d.ts +7 -2
- package/lib/esm/ui/widget/MapUrlDialog.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapUrlDialog.js +38 -134
- package/lib/esm/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/esm/ui/widget/MapUrlDialog.scss +10 -10
- package/lib/esm/ui/widget/SubLayersDataProvider.d.ts +3 -3
- package/lib/esm/ui/widget/SubLayersDataProvider.d.ts.map +1 -1
- package/lib/esm/ui/widget/SubLayersDataProvider.js +4 -5
- package/lib/esm/ui/widget/SubLayersDataProvider.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersPopupButton.d.ts +3 -7
- package/lib/esm/ui/widget/SubLayersPopupButton.d.ts.map +1 -1
- package/lib/esm/ui/widget/SubLayersPopupButton.js +2 -2
- package/lib/esm/ui/widget/SubLayersPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.d.ts +17 -9
- package/lib/esm/ui/widget/SubLayersTree.d.ts.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.js +60 -113
- package/lib/esm/ui/widget/SubLayersTree.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.scss +12 -3
- package/lib/public/locales/en/mapLayers.json +7 -2
- package/package.json +26 -25
|
@@ -65,7 +65,16 @@
|
|
|
65
65
|
|
|
66
66
|
.map-manager-sublayer-tree-content {
|
|
67
67
|
flex-grow: 1;
|
|
68
|
-
width:
|
|
69
|
-
height:
|
|
70
|
-
overflow:
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
overflow: auto;
|
|
71
|
+
}
|
|
72
|
+
.map-manager-sublayer-tree-searchbox {
|
|
73
|
+
padding-top: 3.3px;
|
|
74
|
+
padding-bottom: 3.3px;
|
|
75
|
+
|
|
76
|
+
// We override the default padding of the search box input otherwise it
|
|
77
|
+
// makes the vertical scrollbar of the tree of padded too, and doesnt look good.
|
|
78
|
+
padding-inline: 0px;
|
|
79
|
+
padding-inline-start: 4px;
|
|
71
80
|
}
|
|
@@ -39,15 +39,18 @@
|
|
|
39
39
|
"MissingCredentials": "This layer requires credentials to be provided",
|
|
40
40
|
"Name": "Name",
|
|
41
41
|
"NameInputPlaceHolder": "Enter Map Name",
|
|
42
|
+
"NoLayersSelected": "Please select at least one layer",
|
|
42
43
|
"RemoveLayerDefButtonTitle": "Delete layer definition",
|
|
43
44
|
"RemoveLayerDefDialogMessage": "Are you sure you want to delete {{layerName}} ?",
|
|
44
45
|
"RemoveLayerDefDialogTitle": "Delete layer definition",
|
|
45
46
|
"RemoveLayerDefError": "Could not delete map layer definition: {{layerName}}",
|
|
46
47
|
"RemoveLayerDefSuccess": "Successfully deleted map layer definition: {{layerName}}",
|
|
47
48
|
"SearchPlaceholder": "Search...",
|
|
49
|
+
"SelectLayersToCreate": "Select layers to be created",
|
|
48
50
|
"StoreOnModelSettings": "Store on Model Settings",
|
|
49
51
|
"StoreOnITwinSettings": "Store on iTwin Settings",
|
|
50
52
|
"TechPreviewBadgeTooltip": "Technology preview",
|
|
53
|
+
"TooManyLayersSelected": "There are currently {{layerCount}} layers selected; Adding too many layers may impact performance.",
|
|
51
54
|
"Type": "Type",
|
|
52
55
|
"URL": "URL",
|
|
53
56
|
"UrlInputPlaceHolder": "Enter Map Source URL",
|
|
@@ -64,9 +67,10 @@
|
|
|
64
67
|
"NotSupported": "No active viewport or geo-located iModel available.",
|
|
65
68
|
"NoRangeDefined": "No range is defined for Map Layer",
|
|
66
69
|
"Start": "Map Layers Extension Loaded",
|
|
67
|
-
"MapLayerAttached": "Map layer {{
|
|
70
|
+
"MapLayerAttached": "Map layer {{layerNames}} attached",
|
|
71
|
+
"MapLayersAttached": "Map layers ({{sourceName}}) attached",
|
|
68
72
|
"MapLayerAttachedRequiresAuth": "Map layer {{sourceName}} attached, but requires credentials to be provided",
|
|
69
|
-
"MapLayerAttachError": "Error '{{error}}' occurred attaching MapLayer
|
|
73
|
+
"MapLayerAttachError": "Error '{{error}}' occurred attaching MapLayer '{{sourceName}}'",
|
|
70
74
|
"MapLayerAttachMissingViewOrSource": "Missing view or source",
|
|
71
75
|
"MapLayerEditError": "Failed to edit '{{layerName}}'",
|
|
72
76
|
"MapLayerLayerSettingsConversionError": "Conversion to layer settings failed",
|
|
@@ -119,6 +123,7 @@
|
|
|
119
123
|
"AllOn": "Turn on all Sub-layers",
|
|
120
124
|
"AllOff": "Turn off all Sub-layers",
|
|
121
125
|
"Hide": "Hide Sub-layers",
|
|
126
|
+
"NoResults": "No Results",
|
|
122
127
|
"NoSubLayers": "No Sub-layers Available",
|
|
123
128
|
"SearchPlaceholder": "Search...",
|
|
124
129
|
"Show": "Show Sub-layers"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/map-layers",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Extension that adds a Map Layers Widget",
|
|
5
5
|
"main": "lib/cjs/map-layers.js",
|
|
6
6
|
"module": "lib/esm/map-layers.js",
|
|
@@ -26,27 +26,29 @@
|
|
|
26
26
|
"react-beautiful-dnd": "^13.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@itwin/appui-abstract": "^4.0.
|
|
30
|
-
"@itwin/appui-layout-react": "^4.0.
|
|
31
|
-
"@itwin/appui-react": "^4.0.
|
|
32
|
-
"@itwin/build-tools": "^4.0.
|
|
33
|
-
"@itwin/components-react": "^4.0.
|
|
34
|
-
"@itwin/core-bentley": "^4.0.
|
|
35
|
-
"@itwin/core-common": "^4.0.
|
|
36
|
-
"@itwin/core-frontend": "^4.0.
|
|
37
|
-
"@itwin/core-geometry": "^4.0.
|
|
38
|
-
"@itwin/core-orbitgt": "^4.0.
|
|
39
|
-
"@itwin/core-quantity": "^4.0.
|
|
40
|
-
"@itwin/core-react": "^4.0.
|
|
41
|
-
"@itwin/core-telemetry": "^4.0.
|
|
29
|
+
"@itwin/appui-abstract": "^4.0.6",
|
|
30
|
+
"@itwin/appui-layout-react": "^4.0.1",
|
|
31
|
+
"@itwin/appui-react": "^4.0.1",
|
|
32
|
+
"@itwin/build-tools": "^4.0.6",
|
|
33
|
+
"@itwin/components-react": "^4.0.1",
|
|
34
|
+
"@itwin/core-bentley": "^4.0.6",
|
|
35
|
+
"@itwin/core-common": "^4.0.6",
|
|
36
|
+
"@itwin/core-frontend": "^4.0.6",
|
|
37
|
+
"@itwin/core-geometry": "^4.0.6",
|
|
38
|
+
"@itwin/core-orbitgt": "^4.0.6",
|
|
39
|
+
"@itwin/core-quantity": "^4.0.6",
|
|
40
|
+
"@itwin/core-react": "^4.0.1",
|
|
41
|
+
"@itwin/core-telemetry": "^4.0.6",
|
|
42
42
|
"@itwin/eslint-plugin": "^4.0.0-dev.38",
|
|
43
|
-
"@itwin/imodel-components-react": "^4.0.
|
|
43
|
+
"@itwin/imodel-components-react": "^4.0.1",
|
|
44
44
|
"@itwin/itwinui-variables": "^2.0.0",
|
|
45
|
-
"@itwin/itwinui-react": "^2.
|
|
46
|
-
"@itwin/webgl-compatibility": "^4.0.
|
|
45
|
+
"@itwin/itwinui-react": "^2.11.2",
|
|
46
|
+
"@itwin/webgl-compatibility": "^4.0.6",
|
|
47
|
+
"@testing-library/dom": "^8.12.0",
|
|
47
48
|
"@testing-library/react": "^12.0.0",
|
|
48
49
|
"@testing-library/react-hooks": "^7.0.2",
|
|
49
|
-
"@types/chai": "4.3.
|
|
50
|
+
"@types/chai": "4.3.5",
|
|
51
|
+
"@types/jsdom-global": "^3.0.4",
|
|
50
52
|
"@types/enzyme": "3.9.3",
|
|
51
53
|
"@types/mocha": "^8.2.2",
|
|
52
54
|
"@types/node": "^18.11.5",
|
|
@@ -55,15 +57,14 @@
|
|
|
55
57
|
"@types/sinon": "^9.0.0",
|
|
56
58
|
"@types/sinon-chai": "^3.2.0",
|
|
57
59
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
|
|
58
|
-
"chai": "^4.
|
|
60
|
+
"chai": "^4.3.7",
|
|
59
61
|
"chai-as-promised": "^7",
|
|
60
|
-
"chai-jest-snapshot": "^2.0.0",
|
|
61
62
|
"chai-spies": "1.0.0",
|
|
62
63
|
"cpx2": "^3.0.0",
|
|
63
64
|
"enzyme": "3.10.0",
|
|
64
65
|
"enzyme-to-json": "^3.3.4",
|
|
65
66
|
"eslint": "^7.11.0",
|
|
66
|
-
"jsdom": "^
|
|
67
|
+
"jsdom": "^22.1.0",
|
|
67
68
|
"jsdom-global": "3.0.2",
|
|
68
69
|
"mocha": "^10.0.0",
|
|
69
70
|
"nyc": "^15.1.0",
|
|
@@ -78,13 +79,13 @@
|
|
|
78
79
|
"typescript": "~4.4.0"
|
|
79
80
|
},
|
|
80
81
|
"peerDependencies": {
|
|
81
|
-
"@itwin/appui-abstract": "^4.0.0
|
|
82
|
+
"@itwin/appui-abstract": "^4.0.0",
|
|
82
83
|
"@itwin/appui-layout-react": "^4.0.0",
|
|
83
84
|
"@itwin/appui-react": "^4.0.0",
|
|
84
85
|
"@itwin/components-react": "^4.0.0",
|
|
85
|
-
"@itwin/core-bentley": "^4.0.0
|
|
86
|
-
"@itwin/core-common": "^4.0.0
|
|
87
|
-
"@itwin/core-frontend": "^4.0.0
|
|
86
|
+
"@itwin/core-bentley": "^4.0.0",
|
|
87
|
+
"@itwin/core-common": "^4.0.0",
|
|
88
|
+
"@itwin/core-frontend": "^4.0.0",
|
|
88
89
|
"@itwin/core-react": "^4.0.0",
|
|
89
90
|
"@itwin/imodel-components-react": "^4.0.0",
|
|
90
91
|
"react": "^17.0.0",
|