@itwin/map-layers 4.0.0-dev.24 → 4.0.0-dev.28
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 +9 -4
- package/lib/cjs/MapLayerPreferences.d.ts +88 -88
- package/lib/cjs/MapLayerPreferences.js +311 -312
- package/lib/cjs/MapLayerPreferences.js.map +1 -1
- package/lib/cjs/map-layers.d.ts +6 -6
- package/lib/cjs/map-layers.js +22 -22
- package/lib/cjs/mapLayers.d.ts +44 -44
- package/lib/cjs/mapLayers.js +61 -63
- package/lib/cjs/mapLayers.js.map +1 -1
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.d.ts +11 -11
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.js +51 -52
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.js.map +1 -1
- package/lib/cjs/ui/Interfaces.d.ts +50 -50
- package/lib/cjs/ui/Interfaces.js +2 -2
- package/lib/cjs/ui/Interfaces.js.map +1 -1
- package/lib/cjs/ui/MapFeatureInfoTool.d.ts +13 -13
- package/lib/cjs/ui/MapFeatureInfoTool.js +50 -50
- package/lib/cjs/ui/MapFeatureInfoTool.js.map +1 -1
- package/lib/cjs/ui/MapLayersUiItemsProvider.d.ts +8 -8
- package/lib/cjs/ui/MapLayersUiItemsProvider.js +38 -38
- package/lib/cjs/ui/MapLayersUiItemsProvider.js.map +1 -1
- package/lib/cjs/ui/widget/AttachLayerPopupButton.d.ts +14 -14
- package/lib/cjs/ui/widget/AttachLayerPopupButton.js +335 -338
- package/lib/cjs/ui/widget/AttachLayerPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/BasemapPanel.d.ts +8 -8
- package/lib/cjs/ui/widget/BasemapPanel.js +156 -156
- package/lib/cjs/ui/widget/BasemapPanel.js.map +1 -1
- package/lib/cjs/ui/widget/BasemapPanel.scss +87 -87
- package/lib/cjs/ui/widget/ConfirmMessageDialog.d.ts +21 -21
- package/lib/cjs/ui/widget/ConfirmMessageDialog.js +22 -25
- package/lib/cjs/ui/widget/ConfirmMessageDialog.js.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.d.ts +40 -40
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.js +138 -139
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.js.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoWidget.d.ts +7 -7
- package/lib/cjs/ui/widget/FeatureInfoWidget.js +65 -71
- package/lib/cjs/ui/widget/FeatureInfoWidget.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerDroppable.d.ts +19 -19
- package/lib/cjs/ui/widget/MapLayerDroppable.js +85 -88
- package/lib/cjs/ui/widget/MapLayerDroppable.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerManager.d.ts +26 -26
- package/lib/cjs/ui/widget/MapLayerManager.js +401 -403
- package/lib/cjs/ui/widget/MapLayerManager.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerManager.scss +409 -409
- package/lib/cjs/ui/widget/MapLayerSettingsMenu.d.ts +12 -12
- package/lib/cjs/ui/widget/MapLayerSettingsMenu.js +82 -83
- package/lib/cjs/ui/widget/MapLayerSettingsMenu.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.d.ts +7 -7
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.js +65 -65
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.scss +20 -20
- package/lib/cjs/ui/widget/MapLayersWidget.d.ts +11 -11
- package/lib/cjs/ui/widget/MapLayersWidget.js +31 -31
- package/lib/cjs/ui/widget/MapLayersWidget.js.map +1 -1
- package/lib/cjs/ui/widget/MapManagerSettings.d.ts +3 -3
- package/lib/cjs/ui/widget/MapManagerSettings.js +200 -200
- package/lib/cjs/ui/widget/MapManagerSettings.js.map +1 -1
- package/lib/cjs/ui/widget/MapManagerSettings.scss +29 -29
- package/lib/cjs/ui/widget/MapUrlDialog.d.ts +23 -23
- package/lib/cjs/ui/widget/MapUrlDialog.js +524 -527
- package/lib/cjs/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/cjs/ui/widget/MapUrlDialog.scss +100 -100
- package/lib/cjs/ui/widget/SelectMapFormat.d.ts +18 -18
- package/lib/cjs/ui/widget/SelectMapFormat.js +54 -59
- package/lib/cjs/ui/widget/SelectMapFormat.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersDataProvider.d.ts +20 -20
- package/lib/cjs/ui/widget/SubLayersDataProvider.js +75 -76
- package/lib/cjs/ui/widget/SubLayersDataProvider.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersPopupButton.d.ts +10 -10
- package/lib/cjs/ui/widget/SubLayersPopupButton.js +40 -40
- package/lib/cjs/ui/widget/SubLayersPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.d.ts +15 -15
- package/lib/cjs/ui/widget/SubLayersTree.js +413 -419
- package/lib/cjs/ui/widget/SubLayersTree.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.scss +69 -69
- package/lib/cjs/ui/widget/TransparencyPopupButton.d.ts +14 -14
- package/lib/cjs/ui/widget/TransparencyPopupButton.js +47 -47
- package/lib/cjs/ui/widget/TransparencyPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/TransparencyPopupButton.scss +36 -36
- package/lib/esm/MapLayerPreferences.d.ts +88 -88
- package/lib/esm/MapLayerPreferences.js +307 -308
- package/lib/esm/MapLayerPreferences.js.map +1 -1
- package/lib/esm/map-layers.d.ts +6 -6
- package/lib/esm/map-layers.js +10 -10
- package/lib/esm/mapLayers.d.ts +44 -44
- package/lib/esm/mapLayers.js +57 -59
- package/lib/esm/mapLayers.js.map +1 -1
- package/lib/esm/ui/FeatureInfoUiItemsProvider.d.ts +11 -11
- package/lib/esm/ui/FeatureInfoUiItemsProvider.js +47 -48
- package/lib/esm/ui/FeatureInfoUiItemsProvider.js.map +1 -1
- package/lib/esm/ui/Interfaces.d.ts +50 -50
- package/lib/esm/ui/Interfaces.js +1 -1
- package/lib/esm/ui/Interfaces.js.map +1 -1
- package/lib/esm/ui/MapFeatureInfoTool.d.ts +13 -13
- package/lib/esm/ui/MapFeatureInfoTool.js +45 -45
- package/lib/esm/ui/MapFeatureInfoTool.js.map +1 -1
- package/lib/esm/ui/MapLayersUiItemsProvider.d.ts +8 -8
- package/lib/esm/ui/MapLayersUiItemsProvider.js +34 -34
- package/lib/esm/ui/MapLayersUiItemsProvider.js.map +1 -1
- package/lib/esm/ui/widget/AttachLayerPopupButton.d.ts +14 -14
- package/lib/esm/ui/widget/AttachLayerPopupButton.js +331 -334
- package/lib/esm/ui/widget/AttachLayerPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/BasemapPanel.d.ts +8 -8
- package/lib/esm/ui/widget/BasemapPanel.js +152 -152
- package/lib/esm/ui/widget/BasemapPanel.js.map +1 -1
- package/lib/esm/ui/widget/BasemapPanel.scss +87 -87
- package/lib/esm/ui/widget/ConfirmMessageDialog.d.ts +21 -21
- package/lib/esm/ui/widget/ConfirmMessageDialog.js +18 -21
- package/lib/esm/ui/widget/ConfirmMessageDialog.js.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoDataProvider.d.ts +40 -40
- package/lib/esm/ui/widget/FeatureInfoDataProvider.js +134 -135
- package/lib/esm/ui/widget/FeatureInfoDataProvider.js.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoWidget.d.ts +7 -7
- package/lib/esm/ui/widget/FeatureInfoWidget.js +61 -67
- package/lib/esm/ui/widget/FeatureInfoWidget.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerDroppable.d.ts +19 -19
- package/lib/esm/ui/widget/MapLayerDroppable.js +81 -84
- package/lib/esm/ui/widget/MapLayerDroppable.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerManager.d.ts +26 -26
- package/lib/esm/ui/widget/MapLayerManager.js +396 -398
- package/lib/esm/ui/widget/MapLayerManager.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerManager.scss +409 -409
- package/lib/esm/ui/widget/MapLayerSettingsMenu.d.ts +12 -12
- package/lib/esm/ui/widget/MapLayerSettingsMenu.js +78 -79
- package/lib/esm/ui/widget/MapLayerSettingsMenu.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.d.ts +7 -7
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.js +61 -61
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.scss +20 -20
- package/lib/esm/ui/widget/MapLayersWidget.d.ts +11 -11
- package/lib/esm/ui/widget/MapLayersWidget.js +27 -27
- package/lib/esm/ui/widget/MapLayersWidget.js.map +1 -1
- package/lib/esm/ui/widget/MapManagerSettings.d.ts +3 -3
- package/lib/esm/ui/widget/MapManagerSettings.js +196 -196
- package/lib/esm/ui/widget/MapManagerSettings.js.map +1 -1
- package/lib/esm/ui/widget/MapManagerSettings.scss +29 -29
- package/lib/esm/ui/widget/MapUrlDialog.d.ts +23 -23
- package/lib/esm/ui/widget/MapUrlDialog.js +520 -523
- package/lib/esm/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/esm/ui/widget/MapUrlDialog.scss +100 -100
- package/lib/esm/ui/widget/SelectMapFormat.d.ts +18 -18
- package/lib/esm/ui/widget/SelectMapFormat.js +50 -55
- package/lib/esm/ui/widget/SelectMapFormat.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersDataProvider.d.ts +20 -20
- package/lib/esm/ui/widget/SubLayersDataProvider.js +71 -72
- package/lib/esm/ui/widget/SubLayersDataProvider.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersPopupButton.d.ts +10 -10
- package/lib/esm/ui/widget/SubLayersPopupButton.js +36 -36
- package/lib/esm/ui/widget/SubLayersPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.d.ts +15 -15
- package/lib/esm/ui/widget/SubLayersTree.js +408 -414
- package/lib/esm/ui/widget/SubLayersTree.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.scss +69 -69
- package/lib/esm/ui/widget/TransparencyPopupButton.d.ts +14 -14
- package/lib/esm/ui/widget/TransparencyPopupButton.js +43 -43
- package/lib/esm/ui/widget/TransparencyPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/TransparencyPopupButton.scss +36 -36
- package/package.json +14 -14
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
@import "~@itwin/core-react/lib/cjs/core-react/index";
|
|
6
|
-
|
|
7
|
-
$divider-color: $buic-background-toolbutton-stroke;
|
|
8
|
-
$hovered-icon-color: $buic-foreground-primary;
|
|
9
|
-
|
|
10
|
-
.map-manager-basemap {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
width: 100%;
|
|
14
|
-
align-items: flex-start;
|
|
15
|
-
margin-bottom: 15px;
|
|
16
|
-
|
|
17
|
-
* {
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.map-manager-base-header {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
width: 100%;
|
|
25
|
-
margin-top: 5px;
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.map-manager-base-label {
|
|
30
|
-
margin-left: 2px;
|
|
31
|
-
padding-right: 10px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.map-manager-base-item {
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: row;
|
|
37
|
-
align-items: center;
|
|
38
|
-
width: 100%;
|
|
39
|
-
|
|
40
|
-
& .iui-select {
|
|
41
|
-
overflow: hidden;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
.map-manager-base-item-select {
|
|
46
|
-
width: 100%; // makes the Select control fill empty space on the right
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
button.map-manager-base-settings-button {
|
|
50
|
-
border: none;
|
|
51
|
-
margin-left: 4px;
|
|
52
|
-
background-color: transparent;
|
|
53
|
-
color: $buic-foreground-body;
|
|
54
|
-
|
|
55
|
-
&:hover {
|
|
56
|
-
background-color: transparent;
|
|
57
|
-
color: $hovered-icon-color;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.uicore-reactSelectTop {
|
|
62
|
-
width: 100%;
|
|
63
|
-
line-height: inherit;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.map-manager-base-item-select {
|
|
67
|
-
height: 2.0em;
|
|
68
|
-
width: 100%;
|
|
69
|
-
min-width: 100px;
|
|
70
|
-
margin-right: 6px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.map-manager-base-item-transparency {
|
|
74
|
-
max-width: 160px;
|
|
75
|
-
width: 160px;
|
|
76
|
-
display: flex;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
margin-right: 6px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.map-manager-base-item-color.components-color-swatch {
|
|
82
|
-
margin-left: 6px;
|
|
83
|
-
width: 2em;
|
|
84
|
-
height: 2em;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
@import "~@itwin/core-react/lib/cjs/core-react/index";
|
|
6
|
+
|
|
7
|
+
$divider-color: $buic-background-toolbutton-stroke;
|
|
8
|
+
$hovered-icon-color: $buic-foreground-primary;
|
|
9
|
+
|
|
10
|
+
.map-manager-basemap {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
width: 100%;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
margin-bottom: 15px;
|
|
16
|
+
|
|
17
|
+
* {
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.map-manager-base-header {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
width: 100%;
|
|
25
|
+
margin-top: 5px;
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.map-manager-base-label {
|
|
30
|
+
margin-left: 2px;
|
|
31
|
+
padding-right: 10px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.map-manager-base-item {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
align-items: center;
|
|
38
|
+
width: 100%;
|
|
39
|
+
|
|
40
|
+
& .iui-select {
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
.map-manager-base-item-select {
|
|
46
|
+
width: 100%; // makes the Select control fill empty space on the right
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
button.map-manager-base-settings-button {
|
|
50
|
+
border: none;
|
|
51
|
+
margin-left: 4px;
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
color: $buic-foreground-body;
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
background-color: transparent;
|
|
57
|
+
color: $hovered-icon-color;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.uicore-reactSelectTop {
|
|
62
|
+
width: 100%;
|
|
63
|
+
line-height: inherit;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.map-manager-base-item-select {
|
|
67
|
+
height: 2.0em;
|
|
68
|
+
width: 100%;
|
|
69
|
+
min-width: 100px;
|
|
70
|
+
margin-right: 6px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.map-manager-base-item-transparency {
|
|
74
|
+
max-width: 160px;
|
|
75
|
+
width: 160px;
|
|
76
|
+
display: flex;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
margin-right: 6px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.map-manager-base-item-color.components-color-swatch {
|
|
82
|
+
margin-left: 6px;
|
|
83
|
+
width: 2em;
|
|
84
|
+
height: 2em;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CommonProps } from "@itwin/core-react";
|
|
3
|
-
import "./MapUrlDialog.scss";
|
|
4
|
-
interface ConfirmMessageDialogProps extends CommonProps {
|
|
5
|
-
/** Title to show in title bar of dialog */
|
|
6
|
-
title?: string | JSX.Element;
|
|
7
|
-
message?: string | JSX.Element;
|
|
8
|
-
onYesResult?: () => void;
|
|
9
|
-
onNoResult?: () => void;
|
|
10
|
-
onClose?: () => void;
|
|
11
|
-
onEscape?: () => void;
|
|
12
|
-
minWidth?: string | number;
|
|
13
|
-
/** Minimum height that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. Default: 100px */
|
|
14
|
-
minHeight?: string | number;
|
|
15
|
-
/** Maximum width that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */
|
|
16
|
-
maxWidth?: string | number;
|
|
17
|
-
/** Maximum height that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */
|
|
18
|
-
maxHeight?: string | number;
|
|
19
|
-
}
|
|
20
|
-
export declare function ConfirmMessageDialog(props: ConfirmMessageDialogProps): JSX.Element;
|
|
21
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CommonProps } from "@itwin/core-react";
|
|
3
|
+
import "./MapUrlDialog.scss";
|
|
4
|
+
interface ConfirmMessageDialogProps extends CommonProps {
|
|
5
|
+
/** Title to show in title bar of dialog */
|
|
6
|
+
title?: string | JSX.Element;
|
|
7
|
+
message?: string | JSX.Element;
|
|
8
|
+
onYesResult?: () => void;
|
|
9
|
+
onNoResult?: () => void;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
onEscape?: () => void;
|
|
12
|
+
minWidth?: string | number;
|
|
13
|
+
/** Minimum height that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. Default: 100px */
|
|
14
|
+
minHeight?: string | number;
|
|
15
|
+
/** Maximum width that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */
|
|
16
|
+
maxWidth?: string | number;
|
|
17
|
+
/** Maximum height that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */
|
|
18
|
+
maxHeight?: string | number;
|
|
19
|
+
}
|
|
20
|
+
export declare function ConfirmMessageDialog(props: ConfirmMessageDialogProps): JSX.Element;
|
|
21
|
+
export {};
|
|
22
22
|
//# sourceMappingURL=ConfirmMessageDialog.d.ts.map
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
// cSpell:ignore Modeless WMTS
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ConfirmMessageDialog = void 0;
|
|
9
|
-
const React = require("react");
|
|
10
|
-
const core_react_1 = require("@itwin/core-react");
|
|
11
|
-
require("./MapUrlDialog.scss");
|
|
12
|
-
const appui_abstract_1 = require("@itwin/appui-abstract");
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14
|
-
function ConfirmMessageDialog(props) {
|
|
15
|
-
const buttonCluster = React.useMemo(() =>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
React.createElement("div", null, props.message)));
|
|
24
|
-
}
|
|
25
|
-
exports.ConfirmMessageDialog = ConfirmMessageDialog;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
// cSpell:ignore Modeless WMTS
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ConfirmMessageDialog = void 0;
|
|
9
|
+
const React = require("react");
|
|
10
|
+
const core_react_1 = require("@itwin/core-react");
|
|
11
|
+
require("./MapUrlDialog.scss");
|
|
12
|
+
const appui_abstract_1 = require("@itwin/appui-abstract");
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14
|
+
function ConfirmMessageDialog(props) {
|
|
15
|
+
const buttonCluster = React.useMemo(() => [
|
|
16
|
+
{ type: appui_abstract_1.DialogButtonType.Yes, onClick: props.onYesResult ?? (() => { }) },
|
|
17
|
+
{ type: appui_abstract_1.DialogButtonType.No, onClick: props.onNoResult ?? (() => { }) },
|
|
18
|
+
], [props.onYesResult, props.onNoResult]);
|
|
19
|
+
return (React.createElement(core_react_1.Dialog, { className: props.className, title: props.title, opened: true, resizable: false, movable: true, modal: true, buttonCluster: buttonCluster, onClose: props.onClose, onEscape: props.onEscape, minHeight: props.minHeight, maxHeight: props.maxHeight, minWidth: props.minWidth, maxWidth: props.maxWidth, trapFocus: false },
|
|
20
|
+
React.createElement("div", null, props.message)));
|
|
21
|
+
}
|
|
22
|
+
exports.ConfirmMessageDialog = ConfirmMessageDialog;
|
|
26
23
|
//# sourceMappingURL=ConfirmMessageDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmMessageDialog.js","sourceRoot":"","sources":["../../../../src/ui/widget/ConfirmMessageDialog.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,8BAA8B;;;AAE9B,+BAA+B;AAC/B,kDAAwD;AAExD,+BAA6B;AAC7B,0DAAyD;AAoBzD,gEAAgE;AAChE,SAAgB,oBAAoB,CAAC,KAAgC;IAEnE,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE
|
|
1
|
+
{"version":3,"file":"ConfirmMessageDialog.js","sourceRoot":"","sources":["../../../../src/ui/widget/ConfirmMessageDialog.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,8BAA8B;;;AAE9B,+BAA+B;AAC/B,kDAAwD;AAExD,+BAA6B;AAC7B,0DAAyD;AAoBzD,gEAAgE;AAChE,SAAgB,oBAAoB,CAAC,KAAgC;IAEnE,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;QACxC,EAAE,IAAI,EAAE,iCAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,WAAW,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE;QACzE,EAAE,IAAI,EAAE,iCAAgB,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,UAAU,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE;KACxE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;IAE1C,OAAO,CACL,oBAAC,mBAAM,IACL,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,KAAK,EAChB,OAAO,EAAE,IAAI,EACb,KAAK,EAAE,IAAI,EACX,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,SAAS,EAAE,KAAK;QAEhB,iCAAM,KAAK,CAAC,OAAO,CAAO,CACnB,CACV,CAAC;AACJ,CAAC;AA3BD,oDA2BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n// cSpell:ignore Modeless WMTS\n\nimport * as React from \"react\";\nimport { CommonProps, Dialog } from \"@itwin/core-react\";\n\nimport \"./MapUrlDialog.scss\";\nimport { DialogButtonType } from \"@itwin/appui-abstract\";\n\ninterface ConfirmMessageDialogProps extends CommonProps {\n\n /** Title to show in title bar of dialog */\n title?: string | JSX.Element;\n message?: string | JSX.Element;\n onYesResult?: () => void;\n onNoResult?: () => void;\n onClose?: () => void;\n onEscape?: () => void;\n minWidth?: string | number;\n /** Minimum height that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. Default: 100px */\n minHeight?: string | number;\n /** Maximum width that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\n maxWidth?: string | number;\n /** Maximum height that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\n maxHeight?: string | number;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function ConfirmMessageDialog(props: ConfirmMessageDialogProps) {\n\n const buttonCluster = React.useMemo(() => [\n { type: DialogButtonType.Yes, onClick: props.onYesResult ?? (() => { }) },\n { type: DialogButtonType.No, onClick: props.onNoResult ?? (() => { }) },\n ], [props.onYesResult, props.onNoResult]);\n\n return (\n <Dialog\n className={props.className}\n title={props.title}\n opened={true}\n resizable={false}\n movable={true}\n modal={true}\n buttonCluster={buttonCluster}\n onClose={props.onClose}\n onEscape={props.onEscape}\n minHeight={props.minHeight}\n maxHeight={props.maxHeight}\n minWidth={props.minWidth}\n maxWidth={props.maxWidth}\n trapFocus={false}\n >\n <div>{props.message}</div>\n </Dialog>\n );\n}\n"]}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { PropertyRecord } from "@itwin/appui-abstract";
|
|
2
|
-
import { IPropertyDataProvider, PropertyCategory, PropertyData, PropertyDataChangeEvent } from "@itwin/components-react";
|
|
3
|
-
import { BeEvent } from "@itwin/core-bentley";
|
|
4
|
-
import { MapHitEvent } from "../Interfaces";
|
|
5
|
-
/**
|
|
6
|
-
* Implementation of [IPropertyDataProvider] that uses an associative array.
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare enum MapFeatureInfoLoadState {
|
|
10
|
-
DataLoadStart = 0,
|
|
11
|
-
DataLoadEnd = 1
|
|
12
|
-
}
|
|
13
|
-
export declare type MapFeatureInfoLoadListener = (state: MapFeatureInfoLoadState) => void;
|
|
14
|
-
export interface MapFeatureInfoDataUpdate {
|
|
15
|
-
recordCount: number;
|
|
16
|
-
}
|
|
17
|
-
export declare type MapFeatureInfoDataUpdatedListener = (data: MapFeatureInfoDataUpdate) => void;
|
|
18
|
-
export declare class FeatureInfoDataProvider implements IPropertyDataProvider, PropertyData {
|
|
19
|
-
private _removeListener;
|
|
20
|
-
label: PropertyRecord;
|
|
21
|
-
description?: string;
|
|
22
|
-
categories: PropertyCategory[];
|
|
23
|
-
records: {
|
|
24
|
-
[categoryName: string]: PropertyRecord[];
|
|
25
|
-
};
|
|
26
|
-
onDataChanged: PropertyDataChangeEvent;
|
|
27
|
-
onDataLoadStateChanged: BeEvent<MapFeatureInfoLoadListener>;
|
|
28
|
-
onDataUpdated: BeEvent<MapFeatureInfoDataUpdatedListener>;
|
|
29
|
-
constructor(onMapHit: MapHitEvent);
|
|
30
|
-
onUnload(): void;
|
|
31
|
-
private _handleMapHit;
|
|
32
|
-
addSubCategory(categoryName: string): void;
|
|
33
|
-
addCategory(category: PropertyCategory): number;
|
|
34
|
-
findCategoryIndex(category: PropertyCategory): number;
|
|
35
|
-
findCategoryIndexByName(name: string): number;
|
|
36
|
-
addProperty(propertyRecord: PropertyRecord, categoryName: string): void;
|
|
37
|
-
removeProperty(propertyRecord: PropertyRecord, categoryIdx: number): boolean;
|
|
38
|
-
replaceProperty(propertyRecord: PropertyRecord, categoryIdx: number, newRecord: PropertyRecord): boolean;
|
|
39
|
-
getData(): Promise<PropertyData>;
|
|
40
|
-
}
|
|
1
|
+
import { PropertyRecord } from "@itwin/appui-abstract";
|
|
2
|
+
import { IPropertyDataProvider, PropertyCategory, PropertyData, PropertyDataChangeEvent } from "@itwin/components-react";
|
|
3
|
+
import { BeEvent } from "@itwin/core-bentley";
|
|
4
|
+
import { MapHitEvent } from "../Interfaces";
|
|
5
|
+
/**
|
|
6
|
+
* Implementation of [IPropertyDataProvider] that uses an associative array.
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare enum MapFeatureInfoLoadState {
|
|
10
|
+
DataLoadStart = 0,
|
|
11
|
+
DataLoadEnd = 1
|
|
12
|
+
}
|
|
13
|
+
export declare type MapFeatureInfoLoadListener = (state: MapFeatureInfoLoadState) => void;
|
|
14
|
+
export interface MapFeatureInfoDataUpdate {
|
|
15
|
+
recordCount: number;
|
|
16
|
+
}
|
|
17
|
+
export declare type MapFeatureInfoDataUpdatedListener = (data: MapFeatureInfoDataUpdate) => void;
|
|
18
|
+
export declare class FeatureInfoDataProvider implements IPropertyDataProvider, PropertyData {
|
|
19
|
+
private _removeListener;
|
|
20
|
+
label: PropertyRecord;
|
|
21
|
+
description?: string;
|
|
22
|
+
categories: PropertyCategory[];
|
|
23
|
+
records: {
|
|
24
|
+
[categoryName: string]: PropertyRecord[];
|
|
25
|
+
};
|
|
26
|
+
onDataChanged: PropertyDataChangeEvent;
|
|
27
|
+
onDataLoadStateChanged: BeEvent<MapFeatureInfoLoadListener>;
|
|
28
|
+
onDataUpdated: BeEvent<MapFeatureInfoDataUpdatedListener>;
|
|
29
|
+
constructor(onMapHit: MapHitEvent);
|
|
30
|
+
onUnload(): void;
|
|
31
|
+
private _handleMapHit;
|
|
32
|
+
addSubCategory(categoryName: string): void;
|
|
33
|
+
addCategory(category: PropertyCategory): number;
|
|
34
|
+
findCategoryIndex(category: PropertyCategory): number;
|
|
35
|
+
findCategoryIndexByName(name: string): number;
|
|
36
|
+
addProperty(propertyRecord: PropertyRecord, categoryName: string): void;
|
|
37
|
+
removeProperty(propertyRecord: PropertyRecord, categoryIdx: number): boolean;
|
|
38
|
+
replaceProperty(propertyRecord: PropertyRecord, categoryIdx: number, newRecord: PropertyRecord): boolean;
|
|
39
|
+
getData(): Promise<PropertyData>;
|
|
40
|
+
}
|
|
41
41
|
//# sourceMappingURL=FeatureInfoDataProvider.d.ts.map
|