@itwin/map-layers 5.4.4 → 5.6.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 +18 -2
- package/README.md +7 -7
- package/lib/cjs/BrowserStorage.d.ts.map +1 -1
- package/lib/cjs/BrowserStorage.js +23 -13
- package/lib/cjs/BrowserStorage.js.map +1 -1
- package/lib/cjs/CustomParamUtils.d.ts +1 -1
- package/lib/cjs/CustomParamUtils.d.ts.map +1 -1
- package/lib/cjs/CustomParamUtils.js +6 -3
- package/lib/cjs/CustomParamUtils.js.map +1 -1
- package/lib/cjs/CustomParamsMappingStorage.d.ts +1 -1
- package/lib/cjs/CustomParamsMappingStorage.d.ts.map +1 -1
- package/lib/cjs/CustomParamsMappingStorage.js +3 -3
- package/lib/cjs/CustomParamsMappingStorage.js.map +1 -1
- package/lib/cjs/CustomParamsStorage.d.ts +1 -1
- package/lib/cjs/CustomParamsStorage.d.ts.map +1 -1
- package/lib/cjs/CustomParamsStorage.js +3 -3
- package/lib/cjs/CustomParamsStorage.js.map +1 -1
- package/lib/cjs/MapLayerPreferences.d.ts +2 -1
- package/lib/cjs/MapLayerPreferences.d.ts.map +1 -1
- package/lib/cjs/MapLayerPreferences.js +50 -25
- package/lib/cjs/MapLayerPreferences.js.map +1 -1
- package/lib/cjs/MapLayersActionIds.d.ts +5 -0
- package/lib/cjs/MapLayersActionIds.d.ts.map +1 -0
- package/lib/cjs/MapLayersActionIds.js +10 -0
- package/lib/cjs/MapLayersActionIds.js.map +1 -0
- package/lib/cjs/MapLayersPrefBrowserStorage.d.ts.map +1 -1
- package/lib/cjs/MapLayersPrefBrowserStorage.js +4 -5
- package/lib/cjs/MapLayersPrefBrowserStorage.js.map +1 -1
- package/lib/cjs/PreferencesBrowserStorage.d.ts +17 -17
- package/lib/cjs/PreferencesBrowserStorage.d.ts.map +1 -1
- package/lib/cjs/PreferencesBrowserStorage.js +14 -14
- package/lib/cjs/PreferencesBrowserStorage.js.map +1 -1
- 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 +4 -3
- package/lib/cjs/map-layers.js.map +1 -1
- package/lib/cjs/mapLayers.d.ts +2 -2
- package/lib/cjs/mapLayers.d.ts.map +1 -1
- package/lib/cjs/mapLayers.js.map +1 -1
- package/lib/cjs/public/locales/en/mapLayers.json +179 -184
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.d.ts +3 -4
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.js +48 -18
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.js.map +1 -1
- package/lib/cjs/ui/Interfaces.d.ts +3 -3
- package/lib/cjs/ui/Interfaces.d.ts.map +1 -1
- package/lib/cjs/ui/Interfaces.js.map +1 -1
- package/lib/cjs/ui/MapLayersUiItemsProvider.d.ts +3 -2
- package/lib/cjs/ui/MapLayersUiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/ui/MapLayersUiItemsProvider.js +2 -6
- package/lib/cjs/ui/MapLayersUiItemsProvider.js.map +1 -1
- package/lib/cjs/ui/widget/AttachLayerPopupButton.d.ts.map +1 -1
- package/lib/cjs/ui/widget/AttachLayerPopupButton.js +81 -46
- 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 -25
- package/lib/cjs/ui/widget/BasemapPanel.js.map +1 -1
- package/lib/cjs/ui/widget/BasemapPanel.scss +2 -4
- package/lib/cjs/ui/widget/ConfirmMessageDialog.d.ts +1 -1
- package/lib/cjs/ui/widget/ConfirmMessageDialog.d.ts.map +1 -1
- package/lib/cjs/ui/widget/ConfirmMessageDialog.js +31 -8
- package/lib/cjs/ui/widget/ConfirmMessageDialog.js.map +1 -1
- package/lib/cjs/ui/widget/CustomParamEditDialog.d.ts +1 -1
- package/lib/cjs/ui/widget/CustomParamEditDialog.d.ts.map +1 -1
- package/lib/cjs/ui/widget/CustomParamEditDialog.js +34 -20
- package/lib/cjs/ui/widget/CustomParamEditDialog.js.map +1 -1
- package/lib/cjs/ui/widget/CustomParamEditDialog.scss +1 -2
- package/lib/cjs/ui/widget/CustomParamsSettings.d.ts.map +1 -1
- package/lib/cjs/ui/widget/CustomParamsSettings.js +42 -27
- package/lib/cjs/ui/widget/CustomParamsSettings.js.map +1 -1
- package/lib/cjs/ui/widget/CustomParamsSettings.scss +7 -9
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.d.ts +3 -2
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.d.ts.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.js +4 -2
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.js.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoWidget.d.ts +1 -1
- package/lib/cjs/ui/widget/FeatureInfoWidget.d.ts.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoWidget.js +34 -15
- package/lib/cjs/ui/widget/FeatureInfoWidget.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerActionButtons.d.ts +1 -1
- package/lib/cjs/ui/widget/MapLayerActionButtons.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapLayerActionButtons.js +30 -17
- package/lib/cjs/ui/widget/MapLayerActionButtons.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerDroppable.d.ts +2 -2
- package/lib/cjs/ui/widget/MapLayerDroppable.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapLayerDroppable.js +64 -50
- package/lib/cjs/ui/widget/MapLayerDroppable.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerManager.d.ts +2 -2
- package/lib/cjs/ui/widget/MapLayerManager.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapLayerManager.js +158 -84
- package/lib/cjs/ui/widget/MapLayerManager.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerManager.scss +3 -6
- package/lib/cjs/ui/widget/MapLayerSettingsMenu.d.ts +2 -2
- package/lib/cjs/ui/widget/MapLayerSettingsMenu.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapLayerSettingsMenu.js +33 -13
- package/lib/cjs/ui/widget/MapLayerSettingsMenu.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.js +36 -14
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.scss +5 -5
- package/lib/cjs/ui/widget/MapLayersWidget.d.ts +1 -1
- package/lib/cjs/ui/widget/MapLayersWidget.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapLayersWidget.js +34 -11
- package/lib/cjs/ui/widget/MapLayersWidget.js.map +1 -1
- package/lib/cjs/ui/widget/MapManagerMapLayersHeader.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapManagerMapLayersHeader.js +5 -8
- package/lib/cjs/ui/widget/MapManagerMapLayersHeader.js.map +1 -1
- package/lib/cjs/ui/widget/MapManagerSettings.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapManagerSettings.js +55 -56
- package/lib/cjs/ui/widget/MapManagerSettings.js.map +1 -1
- package/lib/cjs/ui/widget/MapManagerSettings.scss +1 -1
- package/lib/cjs/ui/widget/MapSelectFeaturesDialog.d.ts +2 -2
- package/lib/cjs/ui/widget/MapSelectFeaturesDialog.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapSelectFeaturesDialog.js +33 -18
- package/lib/cjs/ui/widget/MapSelectFeaturesDialog.js.map +1 -1
- package/lib/cjs/ui/widget/MapSelectFeaturesDialog.scss +1 -3
- package/lib/cjs/ui/widget/MapUrlDialog.d.ts +4 -3
- package/lib/cjs/ui/widget/MapUrlDialog.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapUrlDialog.js +104 -81
- package/lib/cjs/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/cjs/ui/widget/MapUrlDialog.scss +6 -7
- package/lib/cjs/ui/widget/SelectApiKey.d.ts.map +1 -1
- package/lib/cjs/ui/widget/SelectApiKey.js +38 -10
- package/lib/cjs/ui/widget/SelectApiKey.js.map +1 -1
- package/lib/cjs/ui/widget/SelectCustomParam.d.ts.map +1 -1
- package/lib/cjs/ui/widget/SelectCustomParam.js +40 -11
- package/lib/cjs/ui/widget/SelectCustomParam.js.map +1 -1
- package/lib/cjs/ui/widget/SelectMapFormat.d.ts +3 -3
- package/lib/cjs/ui/widget/SelectMapFormat.d.ts.map +1 -1
- package/lib/cjs/ui/widget/SelectMapFormat.js +36 -16
- package/lib/cjs/ui/widget/SelectMapFormat.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersDataProvider.d.ts +2 -2
- package/lib/cjs/ui/widget/SubLayersDataProvider.d.ts.map +1 -1
- package/lib/cjs/ui/widget/SubLayersDataProvider.js +13 -9
- package/lib/cjs/ui/widget/SubLayersDataProvider.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersPopupButton.d.ts +1 -1
- package/lib/cjs/ui/widget/SubLayersPopupButton.d.ts.map +1 -1
- package/lib/cjs/ui/widget/SubLayersPopupButton.js +30 -12
- package/lib/cjs/ui/widget/SubLayersPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.d.ts +2 -2
- package/lib/cjs/ui/widget/SubLayersTree.d.ts.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.js +83 -45
- package/lib/cjs/ui/widget/SubLayersTree.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.scss +4 -7
- package/lib/cjs/ui/widget/TransparencyPopupButton.d.ts.map +1 -1
- package/lib/cjs/ui/widget/TransparencyPopupButton.js +33 -16
- package/lib/cjs/ui/widget/TransparencyPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/TransparencyPopupButton.scss +1 -2
- package/lib/cjs/ui/widget/UserPreferencesStorageOptions.d.ts +1 -1
- package/lib/cjs/ui/widget/UserPreferencesStorageOptions.d.ts.map +1 -1
- package/lib/cjs/ui/widget/UserPreferencesStorageOptions.js +2 -8
- package/lib/cjs/ui/widget/UserPreferencesStorageOptions.js.map +1 -1
- package/lib/esm/BrowserStorage.d.ts.map +1 -1
- package/lib/esm/BrowserStorage.js +23 -13
- package/lib/esm/BrowserStorage.js.map +1 -1
- package/lib/esm/CustomParamUtils.d.ts +1 -1
- package/lib/esm/CustomParamUtils.d.ts.map +1 -1
- package/lib/esm/CustomParamUtils.js +6 -3
- package/lib/esm/CustomParamUtils.js.map +1 -1
- package/lib/esm/CustomParamsMappingStorage.d.ts +1 -1
- package/lib/esm/CustomParamsMappingStorage.d.ts.map +1 -1
- package/lib/esm/CustomParamsMappingStorage.js +3 -3
- package/lib/esm/CustomParamsMappingStorage.js.map +1 -1
- package/lib/esm/CustomParamsStorage.d.ts +1 -1
- package/lib/esm/CustomParamsStorage.d.ts.map +1 -1
- package/lib/esm/CustomParamsStorage.js +3 -3
- package/lib/esm/CustomParamsStorage.js.map +1 -1
- package/lib/esm/MapLayerPreferences.d.ts +2 -1
- package/lib/esm/MapLayerPreferences.d.ts.map +1 -1
- package/lib/esm/MapLayerPreferences.js +50 -25
- package/lib/esm/MapLayerPreferences.js.map +1 -1
- package/lib/esm/MapLayersActionIds.d.ts +5 -0
- package/lib/esm/MapLayersActionIds.d.ts.map +1 -0
- package/lib/esm/MapLayersActionIds.js +7 -0
- package/lib/esm/MapLayersActionIds.js.map +1 -0
- package/lib/esm/MapLayersPrefBrowserStorage.d.ts.map +1 -1
- package/lib/esm/MapLayersPrefBrowserStorage.js +4 -5
- package/lib/esm/MapLayersPrefBrowserStorage.js.map +1 -1
- package/lib/esm/PreferencesBrowserStorage.d.ts +17 -17
- package/lib/esm/PreferencesBrowserStorage.d.ts.map +1 -1
- package/lib/esm/PreferencesBrowserStorage.js +14 -14
- package/lib/esm/PreferencesBrowserStorage.js.map +1 -1
- 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 +4 -3
- package/lib/esm/map-layers.js.map +1 -1
- package/lib/esm/mapLayers.d.ts +2 -2
- package/lib/esm/mapLayers.d.ts.map +1 -1
- package/lib/esm/mapLayers.js.map +1 -1
- package/lib/esm/public/locales/en/mapLayers.json +179 -184
- package/lib/esm/ui/FeatureInfoUiItemsProvider.d.ts +3 -4
- package/lib/esm/ui/FeatureInfoUiItemsProvider.d.ts.map +1 -1
- package/lib/esm/ui/FeatureInfoUiItemsProvider.js +48 -18
- package/lib/esm/ui/FeatureInfoUiItemsProvider.js.map +1 -1
- package/lib/esm/ui/Interfaces.d.ts +3 -3
- package/lib/esm/ui/Interfaces.d.ts.map +1 -1
- package/lib/esm/ui/Interfaces.js.map +1 -1
- package/lib/esm/ui/MapLayersUiItemsProvider.d.ts +3 -2
- package/lib/esm/ui/MapLayersUiItemsProvider.d.ts.map +1 -1
- package/lib/esm/ui/MapLayersUiItemsProvider.js +2 -6
- package/lib/esm/ui/MapLayersUiItemsProvider.js.map +1 -1
- package/lib/esm/ui/widget/AttachLayerPopupButton.d.ts.map +1 -1
- package/lib/esm/ui/widget/AttachLayerPopupButton.js +57 -45
- 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 +19 -23
- package/lib/esm/ui/widget/BasemapPanel.js.map +1 -1
- package/lib/esm/ui/widget/BasemapPanel.scss +2 -4
- package/lib/esm/ui/widget/ConfirmMessageDialog.d.ts +1 -1
- package/lib/esm/ui/widget/ConfirmMessageDialog.d.ts.map +1 -1
- package/lib/esm/ui/widget/ConfirmMessageDialog.js +5 -5
- package/lib/esm/ui/widget/ConfirmMessageDialog.js.map +1 -1
- package/lib/esm/ui/widget/CustomParamEditDialog.d.ts +1 -1
- package/lib/esm/ui/widget/CustomParamEditDialog.d.ts.map +1 -1
- package/lib/esm/ui/widget/CustomParamEditDialog.js +9 -18
- package/lib/esm/ui/widget/CustomParamEditDialog.js.map +1 -1
- package/lib/esm/ui/widget/CustomParamEditDialog.scss +1 -2
- package/lib/esm/ui/widget/CustomParamsSettings.d.ts.map +1 -1
- package/lib/esm/ui/widget/CustomParamsSettings.js +17 -25
- package/lib/esm/ui/widget/CustomParamsSettings.js.map +1 -1
- package/lib/esm/ui/widget/CustomParamsSettings.scss +7 -9
- package/lib/esm/ui/widget/FeatureInfoDataProvider.d.ts +3 -2
- package/lib/esm/ui/widget/FeatureInfoDataProvider.d.ts.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoDataProvider.js +4 -2
- package/lib/esm/ui/widget/FeatureInfoDataProvider.js.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoWidget.d.ts +1 -1
- package/lib/esm/ui/widget/FeatureInfoWidget.d.ts.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoWidget.js +10 -14
- package/lib/esm/ui/widget/FeatureInfoWidget.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerActionButtons.d.ts +1 -1
- package/lib/esm/ui/widget/MapLayerActionButtons.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapLayerActionButtons.js +6 -16
- package/lib/esm/ui/widget/MapLayerActionButtons.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerDroppable.d.ts +2 -2
- package/lib/esm/ui/widget/MapLayerDroppable.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapLayerDroppable.js +38 -47
- package/lib/esm/ui/widget/MapLayerDroppable.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerManager.d.ts +2 -2
- package/lib/esm/ui/widget/MapLayerManager.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapLayerManager.js +134 -83
- package/lib/esm/ui/widget/MapLayerManager.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerManager.scss +3 -6
- package/lib/esm/ui/widget/MapLayerSettingsMenu.d.ts +2 -2
- package/lib/esm/ui/widget/MapLayerSettingsMenu.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapLayerSettingsMenu.js +9 -12
- package/lib/esm/ui/widget/MapLayerSettingsMenu.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.js +11 -12
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.scss +5 -5
- package/lib/esm/ui/widget/MapLayersWidget.d.ts +1 -1
- package/lib/esm/ui/widget/MapLayersWidget.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapLayersWidget.js +9 -9
- package/lib/esm/ui/widget/MapLayersWidget.js.map +1 -1
- package/lib/esm/ui/widget/MapManagerMapLayersHeader.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapManagerMapLayersHeader.js +5 -8
- package/lib/esm/ui/widget/MapManagerMapLayersHeader.js.map +1 -1
- package/lib/esm/ui/widget/MapManagerSettings.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapManagerSettings.js +29 -53
- package/lib/esm/ui/widget/MapManagerSettings.js.map +1 -1
- package/lib/esm/ui/widget/MapManagerSettings.scss +1 -1
- package/lib/esm/ui/widget/MapSelectFeaturesDialog.d.ts +2 -2
- package/lib/esm/ui/widget/MapSelectFeaturesDialog.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapSelectFeaturesDialog.js +7 -15
- package/lib/esm/ui/widget/MapSelectFeaturesDialog.js.map +1 -1
- package/lib/esm/ui/widget/MapSelectFeaturesDialog.scss +1 -3
- package/lib/esm/ui/widget/MapUrlDialog.d.ts +4 -3
- package/lib/esm/ui/widget/MapUrlDialog.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapUrlDialog.js +79 -79
- package/lib/esm/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/esm/ui/widget/MapUrlDialog.scss +6 -7
- package/lib/esm/ui/widget/SelectApiKey.d.ts.map +1 -1
- package/lib/esm/ui/widget/SelectApiKey.js +12 -7
- package/lib/esm/ui/widget/SelectApiKey.js.map +1 -1
- package/lib/esm/ui/widget/SelectCustomParam.d.ts.map +1 -1
- package/lib/esm/ui/widget/SelectCustomParam.js +14 -8
- package/lib/esm/ui/widget/SelectCustomParam.js.map +1 -1
- package/lib/esm/ui/widget/SelectMapFormat.d.ts +3 -3
- package/lib/esm/ui/widget/SelectMapFormat.d.ts.map +1 -1
- package/lib/esm/ui/widget/SelectMapFormat.js +11 -14
- package/lib/esm/ui/widget/SelectMapFormat.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersDataProvider.d.ts +2 -2
- package/lib/esm/ui/widget/SubLayersDataProvider.d.ts.map +1 -1
- package/lib/esm/ui/widget/SubLayersDataProvider.js +13 -9
- package/lib/esm/ui/widget/SubLayersDataProvider.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersPopupButton.d.ts +1 -1
- package/lib/esm/ui/widget/SubLayersPopupButton.d.ts.map +1 -1
- package/lib/esm/ui/widget/SubLayersPopupButton.js +6 -11
- package/lib/esm/ui/widget/SubLayersPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.d.ts +2 -2
- package/lib/esm/ui/widget/SubLayersTree.d.ts.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.js +59 -44
- package/lib/esm/ui/widget/SubLayersTree.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.scss +4 -7
- package/lib/esm/ui/widget/TransparencyPopupButton.d.ts.map +1 -1
- package/lib/esm/ui/widget/TransparencyPopupButton.js +8 -14
- package/lib/esm/ui/widget/TransparencyPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/TransparencyPopupButton.scss +1 -2
- package/lib/esm/ui/widget/UserPreferencesStorageOptions.d.ts +1 -1
- package/lib/esm/ui/widget/UserPreferencesStorageOptions.d.ts.map +1 -1
- package/lib/esm/ui/widget/UserPreferencesStorageOptions.js +2 -8
- package/lib/esm/ui/widget/UserPreferencesStorageOptions.js.map +1 -1
- package/lib/public/locales/en/mapLayers.json +179 -184
- package/package.json +9 -21
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import "./MapUrlDialog.scss";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { MapLayerSource } from "@itwin/core-frontend";
|
|
4
|
+
import type { ImageMapLayerSettings } from "@itwin/core-common";
|
|
5
|
+
import type { MapLayerSourceValidation, ScreenViewport } from "@itwin/core-frontend";
|
|
6
|
+
import type { MapLayerOptions } from "../Interfaces";
|
|
6
7
|
export declare const MAP_TYPES: {
|
|
7
8
|
wms: string;
|
|
8
9
|
arcGis: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapUrlDialog.d.ts","sourceRoot":"","sources":["../../../../src/ui/widget/MapUrlDialog.tsx"],"names":[],"mappings":";AAMA,OAAO,qBAAqB,CAAC;AAI7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"MapUrlDialog.d.ts","sourceRoot":"","sources":["../../../../src/ui/widget/MapUrlDialog.tsx"],"names":[],"mappings":";AAMA,OAAO,qBAAqB,CAAC;AAI7B,OAAO,EAAa,cAAc,EAAqE,MAAM,sBAAsB,CAAC;AAapI,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAwB,wBAAwB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,eAAO,MAAM,SAAS;;;;;;CAMrB,CAAC;AAMF,oBAAY,iBAAiB,GAAG,QAAQ,GAAG,UAAU,CAAC;AACtD,UAAU,iBAAiB;IACzB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAGlC,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,qBAAqB,CAAC;QAC7B,UAAU,CAAC,EAAE,wBAAwB,CAAC;QACtC,MAAM,CAAC,EAAE,cAAc,CAAC;KACzB,CAAC;IAEF,oBAAoB,CAAC,EAAE,cAAc,CAAC;CACvC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,wBAAwB,CAAC;IACrC,cAAc,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC3C,qBAAqB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACnD;AAGD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,eA4rBpD"}
|
|
@@ -1,13 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
7
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
26
|
exports.MapUrlDialog = exports.MAP_TYPES = void 0;
|
|
27
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
/*---------------------------------------------------------------------------------------------
|
|
29
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
30
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
31
|
+
*--------------------------------------------------------------------------------------------*/
|
|
32
|
+
// cSpell:ignore Modeless WMTS
|
|
9
33
|
require("./MapUrlDialog.scss");
|
|
10
|
-
const React = require("react");
|
|
34
|
+
const React = __importStar(require("react"));
|
|
11
35
|
const appui_abstract_1 = require("@itwin/appui-abstract");
|
|
12
36
|
const core_bentley_1 = require("@itwin/core-bentley");
|
|
13
37
|
const core_frontend_1 = require("@itwin/core-frontend");
|
|
@@ -66,8 +90,9 @@ function MapUrlDialog(props) {
|
|
|
66
90
|
const getCustomParamsMapping = React.useCallback((url) => {
|
|
67
91
|
const cpMappingStorage = new CustomParamsMappingStorage_1.CustomParamsMappingStorage();
|
|
68
92
|
const cpMapping = cpMappingStorage.get(url.toLowerCase());
|
|
69
|
-
if (cpMapping && !Array.isArray(cpMapping))
|
|
93
|
+
if (cpMapping && !Array.isArray(cpMapping)) {
|
|
70
94
|
return cpMapping.customParamNames;
|
|
95
|
+
}
|
|
71
96
|
return [];
|
|
72
97
|
}, []);
|
|
73
98
|
const [dialogTitle] = React.useState(mapLayers_1.MapLayersUI.localization.getLocalizedString(props.signInModeArgs || props.mapLayerSourceToEdit ? "mapLayers:CustomAttach.EditCustomLayer" : "mapLayers:CustomAttach.AttachCustomLayer"));
|
|
@@ -108,8 +133,9 @@ function MapUrlDialog(props) {
|
|
|
108
133
|
const [mapType, setMapType] = React.useState(getFormatFromProps() ?? "ArcGIS");
|
|
109
134
|
const [customParamNamesChangedByUser, SetCustomParamNamesChangedByUser] = React.useState(false);
|
|
110
135
|
const [customParamNames, setCustomParamNames] = React.useState(() => {
|
|
111
|
-
if (mapUrl)
|
|
136
|
+
if (mapUrl) {
|
|
112
137
|
return getCustomParamsMapping(mapUrl);
|
|
138
|
+
}
|
|
113
139
|
return undefined;
|
|
114
140
|
});
|
|
115
141
|
// 'isMounted' is used to prevent any async operation once the hook has been
|
|
@@ -122,10 +148,10 @@ function MapUrlDialog(props) {
|
|
|
122
148
|
};
|
|
123
149
|
}, []);
|
|
124
150
|
const [isSettingsStorageAvailable] = React.useState(mapLayers_1.MapLayersUI.iTwinConfig && props?.activeViewport?.iModel?.iTwinId);
|
|
125
|
-
const [hasImodelContext] = React.useState(props?.activeViewport?.iModel?.iTwinId !== undefined
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
151
|
+
const [hasImodelContext] = React.useState(props?.activeViewport?.iModel?.iTwinId !== undefined &&
|
|
152
|
+
props.activeViewport.iModel.iTwinId !== core_bentley_1.Guid.empty &&
|
|
153
|
+
props?.activeViewport?.iModel?.iModelId !== undefined &&
|
|
154
|
+
props?.activeViewport.iModel.iModelId !== core_bentley_1.Guid.empty);
|
|
129
155
|
const handleCancel = React.useCallback(() => {
|
|
130
156
|
if (props.onCancelResult) {
|
|
131
157
|
props.onCancelResult();
|
|
@@ -134,13 +160,15 @@ function MapUrlDialog(props) {
|
|
|
134
160
|
}, [props]);
|
|
135
161
|
const onUsernameChange = React.useCallback((event) => {
|
|
136
162
|
setUserName(event.target.value);
|
|
137
|
-
if (invalidCredentialsProvided)
|
|
163
|
+
if (invalidCredentialsProvided) {
|
|
138
164
|
setInvalidCredentialsProvided(false);
|
|
165
|
+
}
|
|
139
166
|
}, [setUserName, invalidCredentialsProvided, setInvalidCredentialsProvided]);
|
|
140
167
|
const onPasswordChange = React.useCallback((event) => {
|
|
141
168
|
setPassword(event.target.value);
|
|
142
|
-
if (invalidCredentialsProvided)
|
|
169
|
+
if (invalidCredentialsProvided) {
|
|
143
170
|
setInvalidCredentialsProvided(false);
|
|
171
|
+
}
|
|
144
172
|
}, [setPassword, invalidCredentialsProvided, setInvalidCredentialsProvided]);
|
|
145
173
|
const handleArcGisLogin = React.useCallback(() => {
|
|
146
174
|
setLayerAuthPending(true);
|
|
@@ -151,8 +179,8 @@ function MapUrlDialog(props) {
|
|
|
151
179
|
}, [oauthProcessSucceeded]);
|
|
152
180
|
// return true if authorization is needed
|
|
153
181
|
const updateAuthState = React.useCallback(async (source, sourceValidation) => {
|
|
154
|
-
const sourceRequireAuth =
|
|
155
|
-
let invalidCredentials =
|
|
182
|
+
const sourceRequireAuth = sourceValidation.status === core_frontend_1.MapLayerSourceStatus.RequireAuth;
|
|
183
|
+
let invalidCredentials = sourceValidation.status === core_frontend_1.MapLayerSourceStatus.InvalidCredentials;
|
|
156
184
|
if (sourceRequireAuth) {
|
|
157
185
|
let hasTokenEndPoint = false;
|
|
158
186
|
const settings = source.toLayerSettings();
|
|
@@ -165,8 +193,7 @@ function MapUrlDialog(props) {
|
|
|
165
193
|
hasTokenEndPoint = true;
|
|
166
194
|
}
|
|
167
195
|
}
|
|
168
|
-
catch (_error) {
|
|
169
|
-
}
|
|
196
|
+
catch (_error) { }
|
|
170
197
|
}
|
|
171
198
|
else if (userName.length > 0 || password.length > 0) {
|
|
172
199
|
// This is a patch until @itwin\core-frontend return the expected 'InvalidCredentials' status.
|
|
@@ -255,7 +282,9 @@ function MapUrlDialog(props) {
|
|
|
255
282
|
await MapLayerPreferences_1.MapLayerPreferences.replaceSource(props.mapLayerSourceToEdit, source, vp.iModel.iTwinId, vp?.iModel.iModelId);
|
|
256
283
|
}
|
|
257
284
|
catch (err) {
|
|
258
|
-
const errorMessage = core_frontend_1.IModelApp.localization.getLocalizedString("mapLayers:Messages.MapLayerEditError", {
|
|
285
|
+
const errorMessage = core_frontend_1.IModelApp.localization.getLocalizedString("mapLayers:Messages.MapLayerEditError", {
|
|
286
|
+
layerName: props.mapLayerSourceToEdit?.name,
|
|
287
|
+
});
|
|
259
288
|
core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Error, errorMessage));
|
|
260
289
|
return;
|
|
261
290
|
}
|
|
@@ -275,7 +304,7 @@ function MapUrlDialog(props) {
|
|
|
275
304
|
if (validation.status === core_frontend_1.MapLayerSourceStatus.Valid) {
|
|
276
305
|
// Update service settings if storage is available and we are not prompting user for credentials
|
|
277
306
|
if (isSettingsStorageAvailable && !props.signInModeArgs) {
|
|
278
|
-
const storeOnIModel =
|
|
307
|
+
const storeOnIModel = hasImodelContext ? "Model" === settingsStorage : undefined;
|
|
279
308
|
const vp = props.activeViewport;
|
|
280
309
|
if (vp?.iModel.iTwinId && !(await MapLayerPreferences_1.MapLayerPreferences.storeSource(source, vp.iModel.iTwinId, vp.iModel.iModelId, storeOnIModel))) {
|
|
281
310
|
const msgError = mapLayers_1.MapLayersUI.localization.getLocalizedString("mapLayers:Messages.MapLayerPreferencesStoreFailed");
|
|
@@ -322,14 +351,27 @@ function MapUrlDialog(props) {
|
|
|
322
351
|
onOkResult();
|
|
323
352
|
}
|
|
324
353
|
})();
|
|
325
|
-
}, [
|
|
354
|
+
}, [
|
|
355
|
+
mapUrl,
|
|
356
|
+
createSource,
|
|
357
|
+
props.mapLayerSourceToEdit,
|
|
358
|
+
props.activeViewport,
|
|
359
|
+
props.signInModeArgs,
|
|
360
|
+
onOkResult,
|
|
361
|
+
customParamNames,
|
|
362
|
+
mapName,
|
|
363
|
+
isSettingsStorageAvailable,
|
|
364
|
+
hasImodelContext,
|
|
365
|
+
settingsStorage,
|
|
366
|
+
updateAuthState,
|
|
367
|
+
]);
|
|
326
368
|
React.useEffect(() => {
|
|
327
369
|
const handleOAuthProcessEnd = (success, _state) => {
|
|
328
370
|
onOauthProcessEnd.raiseEvent(success, _state);
|
|
329
371
|
};
|
|
330
372
|
const ac = core_frontend_1.IModelApp.mapLayerFormatRegistry.getAccessClient(mapType);
|
|
331
373
|
if (ac?.onOAuthProcessEnd) {
|
|
332
|
-
setAccessClient(ac); // cache it, so we
|
|
374
|
+
setAccessClient(ac); // cache it, so we don't need to make another lookup;
|
|
333
375
|
ac.onOAuthProcessEnd.addListener(handleOAuthProcessEnd);
|
|
334
376
|
}
|
|
335
377
|
setAccessClientInitialized(true);
|
|
@@ -362,9 +404,7 @@ function MapUrlDialog(props) {
|
|
|
362
404
|
React.useEffect(() => {
|
|
363
405
|
// Attach source asynchronously.
|
|
364
406
|
void (async () => {
|
|
365
|
-
if (isAccessClientInitialized
|
|
366
|
-
&& shouldAutoAttachSource
|
|
367
|
-
&& props.signInModeArgs !== undefined) {
|
|
407
|
+
if (isAccessClientInitialized && shouldAutoAttachSource && props.signInModeArgs !== undefined) {
|
|
368
408
|
try {
|
|
369
409
|
let source = props.signInModeArgs.source;
|
|
370
410
|
let validation = props.signInModeArgs.validation;
|
|
@@ -376,10 +416,12 @@ function MapUrlDialog(props) {
|
|
|
376
416
|
formatId: props.signInModeArgs.layer.formatId,
|
|
377
417
|
});
|
|
378
418
|
if (source !== undefined) {
|
|
379
|
-
if (props.signInModeArgs.layer.savedQueryParams)
|
|
419
|
+
if (props.signInModeArgs.layer.savedQueryParams) {
|
|
380
420
|
source.savedQueryParams = { ...props.signInModeArgs.layer.savedQueryParams };
|
|
381
|
-
|
|
421
|
+
}
|
|
422
|
+
if (props.signInModeArgs.layer.unsavedQueryParams) {
|
|
382
423
|
source.unsavedQueryParams = { ...props.signInModeArgs.layer.unsavedQueryParams };
|
|
424
|
+
}
|
|
383
425
|
setLayerAttachPending(true);
|
|
384
426
|
validation = await source.validateSource(true);
|
|
385
427
|
if (isMounted.current) {
|
|
@@ -399,19 +441,32 @@ function MapUrlDialog(props) {
|
|
|
399
441
|
const dialogContainer = React.useRef(null);
|
|
400
442
|
const readyToSave = React.useCallback(() => {
|
|
401
443
|
const credentialsSet = !!userName && !!password;
|
|
402
|
-
const ready =
|
|
403
|
-
&&
|
|
404
|
-
|
|
405
|
-
&&
|
|
406
|
-
&&
|
|
407
|
-
|
|
444
|
+
const ready = !!mapUrl &&
|
|
445
|
+
!!mapName &&
|
|
446
|
+
!layerAttachPending &&
|
|
447
|
+
(!serverRequireCredentials || credentialsSet) &&
|
|
448
|
+
!invalidCredentialsProvided &&
|
|
449
|
+
!incompatibleFormat &&
|
|
450
|
+
(externalLoginUrl === undefined || (externalLoginUrl !== undefined && oauthProcessSucceeded));
|
|
408
451
|
return ready;
|
|
409
|
-
}, [
|
|
452
|
+
}, [
|
|
453
|
+
userName,
|
|
454
|
+
password,
|
|
455
|
+
mapUrl,
|
|
456
|
+
mapName,
|
|
457
|
+
layerAttachPending,
|
|
458
|
+
serverRequireCredentials,
|
|
459
|
+
invalidCredentialsProvided,
|
|
460
|
+
incompatibleFormat,
|
|
461
|
+
externalLoginUrl,
|
|
462
|
+
oauthProcessSucceeded,
|
|
463
|
+
]);
|
|
410
464
|
const handleOnKeyDown = React.useCallback((event) => {
|
|
411
465
|
// eslint-disable-next-line deprecation/deprecation
|
|
412
466
|
if (event.key === appui_abstract_1.SpecialKey.Enter) {
|
|
413
|
-
if (readyToSave())
|
|
467
|
+
if (readyToSave()) {
|
|
414
468
|
handleOk();
|
|
469
|
+
}
|
|
415
470
|
}
|
|
416
471
|
}, [handleOk, readyToSave]);
|
|
417
472
|
// onOauthProcessEnd events handler
|
|
@@ -446,8 +501,9 @@ function MapUrlDialog(props) {
|
|
|
446
501
|
const handleOAuthPopupClose = React.useCallback(() => {
|
|
447
502
|
setShowOauthPopup(false);
|
|
448
503
|
setLayerAuthPending(false);
|
|
449
|
-
if (oauthProcessSucceeded === undefined)
|
|
450
|
-
setOAuthProcessSucceeded(false);
|
|
504
|
+
if (oauthProcessSucceeded === undefined) {
|
|
505
|
+
setOAuthProcessSucceeded(false);
|
|
506
|
+
} // indicates there was a failed attempt
|
|
451
507
|
}, [oauthProcessSucceeded]);
|
|
452
508
|
// Utility function to get warning message section
|
|
453
509
|
function renderWarningMessage() {
|
|
@@ -471,61 +527,28 @@ function MapUrlDialog(props) {
|
|
|
471
527
|
// Sometimes we want to add an extra node, such as a button
|
|
472
528
|
let extraNode;
|
|
473
529
|
if (oauthProcessSucceeded === false) {
|
|
474
|
-
extraNode =
|
|
475
|
-
React.createElement(itwinui_react_1.Button, { onClick: handleArcGisLogin }, externalLoginTryAgainLabel));
|
|
530
|
+
extraNode = ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(itwinui_react_1.Button, { onClick: handleArcGisLogin, children: externalLoginTryAgainLabel }) }));
|
|
476
531
|
}
|
|
477
532
|
if (warningMessage !== undefined) {
|
|
478
|
-
return (
|
|
479
|
-
React.createElement(itwinui_react_1.Icon, { size: "small" },
|
|
480
|
-
React.createElement(itwinui_icons_color_react_1.SvgStatusWarning, null)),
|
|
481
|
-
React.createElement("span", { className: "map-layer-source-warnMessage-label" }, warningMessage),
|
|
482
|
-
extraNode));
|
|
533
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "map-layer-source-warnMessage", children: [(0, jsx_runtime_1.jsx)(itwinui_react_1.Icon, { size: "small", children: (0, jsx_runtime_1.jsx)(itwinui_icons_color_react_1.SvgStatusWarning, {}) }), (0, jsx_runtime_1.jsx)("span", { className: "map-layer-source-warnMessage-label", children: warningMessage }), extraNode] }));
|
|
483
534
|
}
|
|
484
535
|
else {
|
|
485
|
-
return (
|
|
536
|
+
return (0, jsx_runtime_1.jsx)("span", { className: "map-layer-source-placeholder", children: "\u00A0" });
|
|
486
537
|
}
|
|
487
538
|
}
|
|
488
539
|
// Use a hook to display the popup.
|
|
489
540
|
// The display of the popup is controlled by the 'showOauthPopup' state variable.
|
|
490
541
|
(0, core_react_1.useCrossOriginPopup)(showOauthPopup, externalLoginUrl, externalLoginTitle, 450, 450, handleOAuthPopupClose);
|
|
491
542
|
function getFooter() {
|
|
492
|
-
return (
|
|
493
|
-
React.createElement("div", { className: "map-layer-source-footer-status" }),
|
|
494
|
-
React.createElement("div", null,
|
|
495
|
-
React.createElement(itwinui_react_1.Button, { className: "map-layer-features-footer-button", styleType: 'high-visibility', onClick: handleOk, disabled: !readyToSave() }, props?.mapLayerSourceToEdit ? mapLayers_1.MapLayersUI.translate("Dialog.Edit") : mapLayers_1.MapLayersUI.translate("Dialog.Add")),
|
|
496
|
-
React.createElement(itwinui_react_1.Button, { className: "map-layer-source-footer-button", styleType: 'default', onClick: handleCancel }, mapLayers_1.MapLayersUI.translate("Dialog.Cancel")))));
|
|
543
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "map-layer-source-footer", children: [(0, jsx_runtime_1.jsx)("div", { className: "map-layer-source-footer-status" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(itwinui_react_1.Button, { className: "map-layer-features-footer-button", styleType: "high-visibility", onClick: handleOk, disabled: !readyToSave(), children: props?.mapLayerSourceToEdit ? mapLayers_1.MapLayersUI.translate("Dialog.Edit") : mapLayers_1.MapLayersUI.translate("Dialog.Add") }), (0, jsx_runtime_1.jsx)(itwinui_react_1.Button, { className: "map-layer-source-footer-button", styleType: "default", onClick: handleCancel, children: mapLayers_1.MapLayersUI.translate("Dialog.Cancel") })] })] }));
|
|
497
544
|
}
|
|
498
|
-
return (
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
React.createElement(itwinui_react_1.Input, { className: "map-layer-source-input", placeholder: nameInputPlaceHolder, onChange: onNameChange, value: mapName, disabled: !!props.signInModeArgs || layerAttachPending || layerAuthPending }),
|
|
506
|
-
React.createElement("span", { className: "map-layer-source-label" }, urlLabel),
|
|
507
|
-
React.createElement(itwinui_react_1.Input, { className: "map-layer-source-input", placeholder: urlInputPlaceHolder, onKeyPress: handleOnKeyDown, onChange: onUrlChange, disabled: !!props.signInModeArgs || props.mapLayerSourceToEdit !== undefined || layerAttachPending || layerAuthPending, value: mapUrl }),
|
|
508
|
-
React.createElement("span", { className: "map-layer-source-label" },
|
|
509
|
-
mapLayers_1.MapLayersUI.translate("CustomAttach.CustomParamsLabel"),
|
|
510
|
-
React.createElement("div", { title: mapLayers_1.MapLayersUI.translate("Labels.TechPreviewBadgeTooltip"), className: "map-layer-source-previewBadge-icon" },
|
|
511
|
-
React.createElement(itwinui_react_1.Icon, { size: "small" },
|
|
512
|
-
React.createElement(itwinui_icons_color_react_1.SvgTechnicalPreviewMini, null)))),
|
|
513
|
-
React.createElement(SelectCustomParam_1.SelectCustomParam, { value: customParamNames, disabled: layerAttachPending || layerAuthPending, onChange: (paramNames) => { setCustomParamNames(paramNames); SetCustomParamNamesChangedByUser(true); resetSignInState(); } }),
|
|
514
|
-
serverRequireCredentials
|
|
515
|
-
&& externalLoginUrl === undefined // external login is handled in popup
|
|
516
|
-
&& props.mapLayerSourceToEdit === undefined &&
|
|
517
|
-
React.createElement(React.Fragment, null,
|
|
518
|
-
React.createElement("span", { className: "map-layer-source-label" }, userNameLabel),
|
|
519
|
-
React.createElement(itwinui_react_1.LabeledInput, { className: "map-layer-source-input", displayStyle: "inline", placeholder: serverRequireCredentials ? userNameRequiredLabel : userNameLabel, status: (!userName && serverRequireCredentials) || invalidCredentialsProvided ? "warning" : undefined, disabled: layerAttachPending || layerAuthPending, onChange: onUsernameChange, value: userName, size: "small" }),
|
|
520
|
-
React.createElement("span", { className: "map-layer-source-label" }, passwordLabel),
|
|
521
|
-
React.createElement(itwinui_react_1.LabeledInput, { className: "map-layer-source-input", displayStyle: "inline", type: "password", placeholder: serverRequireCredentials ? passwordRequiredLabel : passwordLabel, status: (!password && serverRequireCredentials) || invalidCredentialsProvided ? "warning" : undefined, disabled: layerAttachPending || layerAuthPending, onChange: onPasswordChange, onKeyPress: handleOnKeyDown, value: password, size: "small" })),
|
|
522
|
-
!props.signInModeArgs
|
|
523
|
-
&& !props.mapLayerSourceToEdit
|
|
524
|
-
&& React.createElement("div", { title: !isSettingsStorageAvailable ? noSaveSettingsWarning : "" }, hasImodelContext && mapLayerOptions?.showUserPreferencesStorageOptions && (React.createElement(UserPreferencesStorageOptions_1.UserPreferencesStorageOptions, { disabled: !isSettingsStorageAvailable, itwinChecked: settingsStorage === "iTwin", modelChecked: settingsStorage === "Model", onChange: onRadioChange }))))),
|
|
525
|
-
renderWarningMessage(),
|
|
526
|
-
(layerAttachPending || layerAuthPending) &&
|
|
527
|
-
React.createElement("div", { className: "map-layer-source-progressBar" },
|
|
528
|
-
React.createElement(itwinui_react_1.ProgressLinear, { indeterminate: true })))));
|
|
545
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: dialogContainer, children: (0, jsx_runtime_1.jsxs)(core_react_1.Dialog, { className: "map-layer-url-dialog", title: dialogTitle, opened: true, resizable: true, movable: true, modal: true, footer: getFooter(), onClose: handleCancel, onEscape: handleCancel, minHeight: 120, maxWidth: 600, titleStyle: { paddingLeft: "10px" }, footerStyle: { paddingBottom: "10px", paddingRight: "10px" }, trapFocus: false, children: [(0, jsx_runtime_1.jsx)("div", { className: "map-layer-url-dialog-content", children: (0, jsx_runtime_1.jsxs)("div", { className: "map-layer-source-url", children: [(0, jsx_runtime_1.jsx)("span", { className: "map-layer-source-label", children: typeLabel }), (0, jsx_runtime_1.jsx)(SelectMapFormat_1.SelectMapFormat, { value: mapType, disabled: props.signInModeArgs !== undefined || props.mapLayerSourceToEdit !== undefined || layerAttachPending || layerAuthPending, onChange: setMapType, mapTypesOptions: mapLayerOptions?.mapTypeOptions, status: incompatibleFormat ? "warning" : undefined, message: incompatibleFormat ? mapLayers_1.MapLayersUI.translate("CustomAttach.InvalidType") : undefined }), (0, jsx_runtime_1.jsx)("span", { className: "map-layer-source-label", children: nameLabel }), (0, jsx_runtime_1.jsx)(itwinui_react_1.Input, { className: "map-layer-source-input", placeholder: nameInputPlaceHolder, onChange: onNameChange, value: mapName, disabled: !!props.signInModeArgs || layerAttachPending || layerAuthPending }), (0, jsx_runtime_1.jsx)("span", { className: "map-layer-source-label", children: urlLabel }), (0, jsx_runtime_1.jsx)(itwinui_react_1.Input, { className: "map-layer-source-input", placeholder: urlInputPlaceHolder, onKeyPress: handleOnKeyDown, onChange: onUrlChange, disabled: !!props.signInModeArgs || props.mapLayerSourceToEdit !== undefined || layerAttachPending || layerAuthPending, value: mapUrl }), (0, jsx_runtime_1.jsxs)("span", { className: "map-layer-source-label", children: [mapLayers_1.MapLayersUI.translate("CustomAttach.CustomParamsLabel"), (0, jsx_runtime_1.jsx)("div", { title: mapLayers_1.MapLayersUI.translate("Labels.TechPreviewBadgeTooltip"), className: "map-layer-source-previewBadge-icon", children: (0, jsx_runtime_1.jsx)(itwinui_react_1.Icon, { size: "small", children: (0, jsx_runtime_1.jsx)(itwinui_icons_color_react_1.SvgTechnicalPreviewMini, {}) }) })] }), (0, jsx_runtime_1.jsx)(SelectCustomParam_1.SelectCustomParam, { value: customParamNames, disabled: layerAttachPending || layerAuthPending, onChange: (paramNames) => {
|
|
546
|
+
setCustomParamNames(paramNames);
|
|
547
|
+
SetCustomParamNamesChangedByUser(true);
|
|
548
|
+
resetSignInState();
|
|
549
|
+
} }), serverRequireCredentials &&
|
|
550
|
+
externalLoginUrl === undefined && // external login is handled in popup
|
|
551
|
+
props.mapLayerSourceToEdit === undefined && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { className: "map-layer-source-label", children: userNameLabel }), (0, jsx_runtime_1.jsx)(itwinui_react_1.LabeledInput, { className: "map-layer-source-input", displayStyle: "inline", placeholder: serverRequireCredentials ? userNameRequiredLabel : userNameLabel, status: (!userName && serverRequireCredentials) || invalidCredentialsProvided ? "warning" : undefined, disabled: layerAttachPending || layerAuthPending, onChange: onUsernameChange, value: userName, size: "small" }), (0, jsx_runtime_1.jsx)("span", { className: "map-layer-source-label", children: passwordLabel }), (0, jsx_runtime_1.jsx)(itwinui_react_1.LabeledInput, { className: "map-layer-source-input", displayStyle: "inline", type: "password", placeholder: serverRequireCredentials ? passwordRequiredLabel : passwordLabel, status: (!password && serverRequireCredentials) || invalidCredentialsProvided ? "warning" : undefined, disabled: layerAttachPending || layerAuthPending, onChange: onPasswordChange, onKeyPress: handleOnKeyDown, value: password, size: "small" })] })), !props.signInModeArgs && !props.mapLayerSourceToEdit && ((0, jsx_runtime_1.jsx)("div", { title: !isSettingsStorageAvailable ? noSaveSettingsWarning : "", children: hasImodelContext && mapLayerOptions?.showUserPreferencesStorageOptions && ((0, jsx_runtime_1.jsx)(UserPreferencesStorageOptions_1.UserPreferencesStorageOptions, { disabled: !isSettingsStorageAvailable, itwinChecked: settingsStorage === "iTwin", modelChecked: settingsStorage === "Model", onChange: onRadioChange })) }))] }) }), renderWarningMessage(), (layerAttachPending || layerAuthPending) && ((0, jsx_runtime_1.jsx)("div", { className: "map-layer-source-progressBar", children: (0, jsx_runtime_1.jsx)(itwinui_react_1.ProgressLinear, { indeterminate: true }) }))] }) }));
|
|
529
552
|
}
|
|
530
553
|
exports.MapUrlDialog = MapUrlDialog;
|
|
531
554
|
//# sourceMappingURL=MapUrlDialog.js.map
|