@itwin/imodel-components-react 5.0.0-dev.2 → 5.0.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 +47 -1
- package/lib/cjs/imodel-components-react/color/AlphaSlider.scss +71 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +88 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerPopup.scss +62 -0
- package/lib/cjs/imodel-components-react/color/HueSlider.scss +78 -0
- package/lib/cjs/imodel-components-react/color/SaturationPicker.scss +36 -0
- package/lib/cjs/imodel-components-react/color/Swatch.scss +22 -0
- package/lib/cjs/imodel-components-react/editors/ColorEditor.scss +16 -0
- package/lib/cjs/imodel-components-react/editors/WeightEditor.scss +14 -0
- package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.scss +106 -0
- package/lib/cjs/imodel-components-react/lineweight/Swatch.scss +46 -0
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +50 -0
- package/lib/cjs/imodel-components-react/navigationaids/Cube.scss +19 -0
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +177 -0
- package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.scss +133 -0
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +53 -0
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +22 -0
- package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +105 -0
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +43 -0
- package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.scss +38 -0
- package/lib/cjs/imodel-components-react/timeline/Timeline.scss +163 -0
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.scss +48 -0
- package/lib/esm/imodel-components-react/color/AlphaSlider.scss +71 -0
- package/lib/esm/imodel-components-react/color/ColorPickerButton.scss +88 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +62 -0
- package/lib/esm/imodel-components-react/color/HueSlider.scss +78 -0
- package/lib/esm/imodel-components-react/color/SaturationPicker.scss +36 -0
- package/lib/esm/imodel-components-react/color/Swatch.scss +22 -0
- package/lib/esm/imodel-components-react/editors/ColorEditor.scss +16 -0
- package/lib/esm/imodel-components-react/editors/WeightEditor.scss +14 -0
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +106 -0
- package/lib/esm/imodel-components-react/lineweight/Swatch.scss +46 -0
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.scss +50 -0
- package/lib/esm/imodel-components-react/navigationaids/Cube.scss +19 -0
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.scss +177 -0
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +133 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.scss +53 -0
- package/lib/esm/imodel-components-react/timeline/InlineEdit.scss +22 -0
- package/lib/esm/imodel-components-react/timeline/Scrubber.scss +105 -0
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.scss +43 -0
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +38 -0
- package/lib/esm/imodel-components-react/timeline/Timeline.scss +163 -0
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +48 -0
- package/lib/imodel-components-react/ToolUtilities.d.ts +33 -0
- package/lib/imodel-components-react/ToolUtilities.d.ts.map +1 -0
- package/lib/imodel-components-react/ToolUtilities.js +40 -0
- package/lib/imodel-components-react/ToolUtilities.js.map +1 -0
- package/lib/imodel-components-react.d.ts +1 -0
- package/lib/imodel-components-react.d.ts.map +1 -1
- package/lib/imodel-components-react.js +1 -0
- package/lib/imodel-components-react.js.map +1 -1
- package/package.json +11 -17
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
.timeline {
|
|
6
|
+
position: relative;
|
|
7
|
+
height: 110px;
|
|
8
|
+
background: var(--iui-color-background);
|
|
9
|
+
border: 1px solid var(--iui-color-background-disabled);
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.rail {
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 40px;
|
|
17
|
+
top: 50%;
|
|
18
|
+
transform: translateY(-50%);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
z-index: 3;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.rail-center {
|
|
24
|
+
position: absolute;
|
|
25
|
+
left: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
top: 50%;
|
|
28
|
+
transform: translateY(-50%);
|
|
29
|
+
height: 4px;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
background: var(--iui-color-background-disabled);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tooltip-rail {
|
|
36
|
+
position: absolute;
|
|
37
|
+
margin-left: -11px;
|
|
38
|
+
top: 50%;
|
|
39
|
+
transform: translateY(-50%);
|
|
40
|
+
z-index: 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.needle {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 0;
|
|
46
|
+
transform: translateX(-50%);
|
|
47
|
+
z-index: 4;
|
|
48
|
+
width: 2px;
|
|
49
|
+
height: 100%;
|
|
50
|
+
background: var(--iui-color-icon-accent);
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.handle {
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 50%;
|
|
57
|
+
transform: translate(-50%, -50%);
|
|
58
|
+
z-index: 4;
|
|
59
|
+
width: 14px;
|
|
60
|
+
height: 14px;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
border: none;
|
|
63
|
+
border-radius: 50%;
|
|
64
|
+
background: var(--iui-color-icon-accent);
|
|
65
|
+
border: 2px solid var(--iui-color-background);
|
|
66
|
+
|
|
67
|
+
> span {
|
|
68
|
+
position: absolute;
|
|
69
|
+
left: 50%;
|
|
70
|
+
bottom: -25px;
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
transform: translateX(-50%);
|
|
74
|
+
color: rgba(black, 0.85);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
input {
|
|
78
|
+
position: absolute;
|
|
79
|
+
border: none;
|
|
80
|
+
margin-top: 10px;
|
|
81
|
+
top: 1.2rem;
|
|
82
|
+
left: 50%;
|
|
83
|
+
transform: translateX(-50%);
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
input:focus {
|
|
88
|
+
cursor: text;
|
|
89
|
+
left: -0.25rem;
|
|
90
|
+
top: calc(1.2rem - 0.25rem);
|
|
91
|
+
width: 140px;
|
|
92
|
+
padding: 0.25rem;
|
|
93
|
+
border: 1px solid #ddd;
|
|
94
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.11);
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
outline: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.tick-line {
|
|
101
|
+
position: absolute;
|
|
102
|
+
width: 2px;
|
|
103
|
+
height: 11px;
|
|
104
|
+
transform: translateX(-50%);
|
|
105
|
+
background: var(--iui-color-background-disabled);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.tick-label {
|
|
109
|
+
position: absolute;
|
|
110
|
+
margin-top: 9px;
|
|
111
|
+
font-size: 14px;
|
|
112
|
+
color: rgba(black, 0.85);
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.tick-label.start {
|
|
117
|
+
left: -50px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.tick-label.end {
|
|
121
|
+
right: -50px;
|
|
122
|
+
text-align: right;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.tick-label.tick {
|
|
126
|
+
margin-left: 11px;
|
|
127
|
+
text-align: left;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.tooltip {
|
|
131
|
+
position: absolute;
|
|
132
|
+
top: -20px;
|
|
133
|
+
display: inline-block;
|
|
134
|
+
border-bottom: 1px dotted #222;
|
|
135
|
+
margin-left: 22px;
|
|
136
|
+
font-size: 14px;
|
|
137
|
+
|
|
138
|
+
.tooltip-text {
|
|
139
|
+
width: 100px;
|
|
140
|
+
background-color: #222;
|
|
141
|
+
color: #fff;
|
|
142
|
+
// opacity: 0.8;
|
|
143
|
+
text-align: center;
|
|
144
|
+
border-radius: 6px;
|
|
145
|
+
padding: 8px 0;
|
|
146
|
+
position: absolute;
|
|
147
|
+
z-index: 1;
|
|
148
|
+
bottom: 150%;
|
|
149
|
+
left: 50%;
|
|
150
|
+
margin-left: -60px;
|
|
151
|
+
|
|
152
|
+
&:after {
|
|
153
|
+
content: "";
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 100%;
|
|
156
|
+
left: 50%;
|
|
157
|
+
margin-left: -5px;
|
|
158
|
+
border-width: 5px;
|
|
159
|
+
border-style: solid;
|
|
160
|
+
border-color: #222 transparent transparent transparent;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
.timeline-component {
|
|
6
|
+
width: 100%;
|
|
7
|
+
min-width: 275px;
|
|
8
|
+
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
align-items: center;
|
|
12
|
+
padding: 8px 16px;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
gap: 8px;
|
|
15
|
+
|
|
16
|
+
.time-container {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.timeline-time {
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
color: var(--iui-color-text-muted);
|
|
25
|
+
text-align: center;
|
|
26
|
+
min-height: inherit;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.timeline-duration-time {
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
width: 40px;
|
|
32
|
+
color: var(--iui-color-text);
|
|
33
|
+
text-align: center;
|
|
34
|
+
min-height: inherit;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.timeline-date {
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
color: var(--iui-color-text-muted);
|
|
40
|
+
padding-bottom: 4px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.slider {
|
|
44
|
+
position: relative;
|
|
45
|
+
flex: 1;
|
|
46
|
+
margin: 0 20px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Common
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import type { ToolType } from "@itwin/core-frontend";
|
|
6
|
+
/** A {@link @itwin/core-frontend#ToolType} with an icon element specified as a React element. */
|
|
7
|
+
type ToolWithIcon<T extends ToolType> = T & {
|
|
8
|
+
iconElement: React.ReactElement;
|
|
9
|
+
};
|
|
10
|
+
/** Utilities related to {@link @itwin/core-frontend#Tool} class.
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare namespace ToolUtilities {
|
|
14
|
+
/**
|
|
15
|
+
* Defines an icon property for a specified {@link @itwin/core-frontend#ToolType}.
|
|
16
|
+
*
|
|
17
|
+
* ```tsx
|
|
18
|
+
* ToolUtilities.defineIcon(MyTool, <SvgPlaceholder />);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Alternatively, consumers can define the `iconElement` property directly on the tool class.
|
|
22
|
+
* ```tsx
|
|
23
|
+
* class MyTool extends Tool {
|
|
24
|
+
* public static iconElement = <SvgPlaceholder />;
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
function defineIcon<T extends ToolType>(toolType: T, iconElement: React.ReactElement): ToolWithIcon<T>;
|
|
29
|
+
/** Type guard for a {@link @itwin/core-frontend#ToolType} with an `iconElement` property. */
|
|
30
|
+
function isWithIcon<T extends ToolType>(toolType: T): toolType is ToolWithIcon<T>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=ToolUtilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolUtilities.d.ts","sourceRoot":"","sources":["../../src/imodel-components-react/ToolUtilities.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,iGAAiG;AACjG,KAAK,YAAY,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,GAAG;IAC1C,WAAW,EAAE,KAAK,CAAC,YAAY,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,yBAAiB,aAAa,CAAC;IAC7B;;;;;;;;;;;;;OAaG;IACH,SAAgB,UAAU,CAAC,CAAC,SAAS,QAAQ,EAC3C,QAAQ,EAAE,CAAC,EACX,WAAW,EAAE,KAAK,CAAC,YAAY,GAC9B,YAAY,CAAC,CAAC,CAAC,CAIjB;IAED,6FAA6F;IAC7F,SAAgB,UAAU,CAAC,CAAC,SAAS,QAAQ,EAC3C,QAAQ,EAAE,CAAC,GACV,QAAQ,IAAI,YAAY,CAAC,CAAC,CAAC,CAI7B;CACF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Common
|
|
7
|
+
*/
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
/** Utilities related to {@link @itwin/core-frontend#Tool} class.
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export var ToolUtilities;
|
|
13
|
+
(function (ToolUtilities) {
|
|
14
|
+
/**
|
|
15
|
+
* Defines an icon property for a specified {@link @itwin/core-frontend#ToolType}.
|
|
16
|
+
*
|
|
17
|
+
* ```tsx
|
|
18
|
+
* ToolUtilities.defineIcon(MyTool, <SvgPlaceholder />);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Alternatively, consumers can define the `iconElement` property directly on the tool class.
|
|
22
|
+
* ```tsx
|
|
23
|
+
* class MyTool extends Tool {
|
|
24
|
+
* public static iconElement = <SvgPlaceholder />;
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
function defineIcon(toolType, iconElement) {
|
|
29
|
+
const withIcon = toolType;
|
|
30
|
+
withIcon.iconElement = iconElement;
|
|
31
|
+
return withIcon;
|
|
32
|
+
}
|
|
33
|
+
ToolUtilities.defineIcon = defineIcon;
|
|
34
|
+
/** Type guard for a {@link @itwin/core-frontend#ToolType} with an `iconElement` property. */
|
|
35
|
+
function isWithIcon(toolType) {
|
|
36
|
+
return ("iconElement" in toolType && React.isValidElement(toolType.iconElement));
|
|
37
|
+
}
|
|
38
|
+
ToolUtilities.isWithIcon = isWithIcon;
|
|
39
|
+
})(ToolUtilities || (ToolUtilities = {}));
|
|
40
|
+
//# sourceMappingURL=ToolUtilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolUtilities.js","sourceRoot":"","sources":["../../src/imodel-components-react/ToolUtilities.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B;;GAEG;AACH,MAAM,KAAW,aAAa,CAgC7B;AAhCD,WAAiB,aAAa;IAC5B;;;;;;;;;;;;;OAaG;IACH,SAAgB,UAAU,CACxB,QAAW,EACX,WAA+B;QAE/B,MAAM,QAAQ,GAAG,QAAsC,CAAC;QACxD,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAPe,wBAAU,aAOzB,CAAA;IAED,6FAA6F;IAC7F,SAAgB,UAAU,CACxB,QAAW;QAEX,OAAO,CACL,aAAa,IAAI,QAAQ,IAAI,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,CACxE,CAAC;IACJ,CAAC;IANe,wBAAU,aAMzB,CAAA;AACH,CAAC,EAhCgB,aAAa,KAAb,aAAa,QAgC7B","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/** @packageDocumentation\n * @module Common\n */\n\nimport * as React from \"react\";\nimport type { ToolType } from \"@itwin/core-frontend\";\n\n/** A {@link @itwin/core-frontend#ToolType} with an icon element specified as a React element. */\ntype ToolWithIcon<T extends ToolType> = T & {\n iconElement: React.ReactElement;\n};\n\n/** Utilities related to {@link @itwin/core-frontend#Tool} class.\n * @public\n */\nexport namespace ToolUtilities {\n /**\n * Defines an icon property for a specified {@link @itwin/core-frontend#ToolType}.\n *\n * ```tsx\n * ToolUtilities.defineIcon(MyTool, <SvgPlaceholder />);\n * ```\n *\n * Alternatively, consumers can define the `iconElement` property directly on the tool class.\n * ```tsx\n * class MyTool extends Tool {\n * public static iconElement = <SvgPlaceholder />;\n * }\n * ```\n */\n export function defineIcon<T extends ToolType>(\n toolType: T,\n iconElement: React.ReactElement\n ): ToolWithIcon<T> {\n const withIcon = toolType as unknown as ToolWithIcon<T>;\n withIcon.iconElement = iconElement;\n return withIcon;\n }\n\n /** Type guard for a {@link @itwin/core-frontend#ToolType} with an `iconElement` property. */\n export function isWithIcon<T extends ToolType>(\n toolType: T\n ): toolType is ToolWithIcon<T> {\n return (\n \"iconElement\" in toolType && React.isValidElement(toolType.iconElement)\n );\n }\n}\n"]}
|
|
@@ -30,6 +30,7 @@ export { SolarTimeline } from "./imodel-components-react/timeline/SolarTimeline.
|
|
|
30
30
|
export { BaseSolarDataProvider } from "./imodel-components-react/timeline/BaseSolarDataProvider.js";
|
|
31
31
|
export { ViewStateProp, ViewportComponent, ViewportProps, } from "./imodel-components-react/viewport/ViewportComponent.js";
|
|
32
32
|
export { ViewportComponentEvents, CubeRotationChangeEvent, CubeRotationChangeEventArgs, DrawingViewportChangeEvent, DrawingViewportChangeEventArgs, StandardRotationChangeEvent, StandardRotationChangeEventArgs, ViewClassFullNameChangedEvent, ViewClassFullNameChangedEventArgs, ViewIdChangedEvent, ViewIdChangedEventArgs, ViewRotationChangeEvent, ViewRotationChangeEventArgs, } from "./imodel-components-react/viewport/ViewportComponentEvents.js";
|
|
33
|
+
export { ToolUtilities } from "./imodel-components-react/ToolUtilities.js";
|
|
33
34
|
/** @docs-package-description
|
|
34
35
|
* The imodel-components-react package contains React components that depend on the core-frontend, core-common or core-quantity packages.
|
|
35
36
|
* The components pertain to Color, Cube, LineWeight, Navigation Aids, Quantity Inputs, Timeline and Viewport.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imodel-components-react.d.ts","sourceRoot":"","sources":["../src/imodel-components-react.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAErF,OAAO,EACL,WAAW,EACX,gBAAgB,GACjB,MAAM,gDAAgD,CAA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CAAC;AAClE,OAAO,EACL,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,eAAe,EACf,oBAAoB,GACrB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EACL,WAAW,EACX,gBAAgB,GACjB,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,+DAA+D,CAAC;AACvE,OAAO,EACL,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,iEAAiE,CAAC;AAEzE,OAAO,EACL,8BAA8B,EAC9B,gBAAgB,EAChB,6BAA6B,EAC7B,iBAAiB,EACjB,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,GACd,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAC1G,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAEpG,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,aAAa,GACd,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,EAC9B,2BAA2B,EAC3B,+BAA+B,EAC/B,6BAA6B,EAC7B,iCAAiC,EACjC,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"imodel-components-react.d.ts","sourceRoot":"","sources":["../src/imodel-components-react.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AA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;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
|
|
@@ -35,6 +35,7 @@ export { SolarTimeline } from "./imodel-components-react/timeline/SolarTimeline.
|
|
|
35
35
|
export { BaseSolarDataProvider } from "./imodel-components-react/timeline/BaseSolarDataProvider.js";
|
|
36
36
|
export { ViewportComponent, } from "./imodel-components-react/viewport/ViewportComponent.js";
|
|
37
37
|
export { ViewportComponentEvents, CubeRotationChangeEvent, DrawingViewportChangeEvent, StandardRotationChangeEvent, ViewClassFullNameChangedEvent, ViewIdChangedEvent, ViewRotationChangeEvent, } from "./imodel-components-react/viewport/ViewportComponentEvents.js";
|
|
38
|
+
export { ToolUtilities } from "./imodel-components-react/ToolUtilities.js";
|
|
38
39
|
// #region "SideEffects"
|
|
39
40
|
import { StandardEditorNames, StandardTypeNames } from "@itwin/appui-abstract";
|
|
40
41
|
import { PropertyEditorManager } from "@itwin/components-react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imodel-components-react.js","sourceRoot":"","sources":["../src/imodel-components-react.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,4CAA4C;AAE5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAErF,OAAO,EACL,WAAW,GAEZ,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,iBAAiB,GAElB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACL,iBAAiB,GAElB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACL,gBAAgB,GAEjB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,SAAS,GAEV,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,gBAAgB,GAEjB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,WAAW,GAEZ,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EACL,WAAW,EACX,mBAAmB,G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EL,iBAAiB,GAElB,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EAEvB,0BAA0B,EAE1B,2BAA2B,EAE3B,6BAA6B,EAE7B,kBAAkB,EAElB,uBAAuB,GAExB,MAAM,+DAA+D,CAAC;AAEvE,wBAAwB;AAExB,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAEzF,qBAAqB,CAAC,cAAc,CAClC,iBAAiB,CAAC,MAAM,EACxB,mBAAmB,EACnB,mBAAmB,CAAC,WAAW,CAChC,CAAC;AACF,qBAAqB,CAAC,cAAc,CAClC,iBAAiB,CAAC,MAAM,EACxB,oBAAoB,EACpB,mBAAmB,CAAC,YAAY,CACjC,CAAC;AAEF,2BAA2B;AAE3B;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","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/* eslint-disable deprecation/deprecation */\n\nexport { UiIModelComponents } from \"./imodel-components-react/UiIModelComponents.js\";\n\nexport {\n AlphaSlider,\n AlphaSliderProps,\n} from \"./imodel-components-react/color/AlphaSlider.js\";\nexport {\n ColorPickerButton,\n ColorPickerProps,\n} from \"./imodel-components-react/color/ColorPickerButton.js\";\nexport {\n ColorPickerDialog,\n ColorPickerDialogProps,\n} from \"./imodel-components-react/color/ColorPickerDialog.js\";\nexport {\n ColorPickerPopup,\n ColorPickerPopupProps,\n} from \"./imodel-components-react/color/ColorPickerPopup.js\";\nexport {\n HueSlider,\n HueSliderProps,\n} from \"./imodel-components-react/color/HueSlider.js\";\nexport {\n SaturationPicker,\n SaturationPickerProps,\n} from \"./imodel-components-react/color/SaturationPicker.js\";\nexport {\n ColorSwatch,\n ColorSwatchProps,\n} from \"./imodel-components-react/color/Swatch.js\";\n\nexport {\n ColorEditor,\n ColorPropertyEditor,\n} from \"./imodel-components-react/editors/ColorEditor.js\";\nexport {\n WeightEditor,\n WeightPropertyEditor,\n} from \"./imodel-components-react/editors/WeightEditor.js\";\n\nexport {\n QuantityInput,\n QuantityProps,\n} from \"./imodel-components-react/inputs/QuantityInput.js\";\nexport {\n QuantityNumberInput,\n QuantityNumberInputProps,\n StepFunctionProp,\n} from \"./imodel-components-react/inputs/QuantityNumberInput.js\";\n\nexport {\n LineWeightSwatch,\n LineWeightSwatchProps,\n} from \"./imodel-components-react/lineweight/Swatch.js\";\nexport {\n WeightPickerButton,\n WeightPickerProps,\n} from \"./imodel-components-react/lineweight/WeightPickerButton.js\";\n\nexport {\n Cube,\n CubeProps,\n Face,\n} from \"./imodel-components-react/navigationaids/Cube.js\";\nexport {\n CubeNavigationAid,\n CubeNavigationAidProps,\n CubeNavigationHitBoxX,\n CubeNavigationHitBoxY,\n CubeNavigationHitBoxZ,\n} from \"./imodel-components-react/navigationaids/CubeNavigationAid.js\";\nexport {\n DrawingNavigationAid,\n DrawingNavigationAidProps,\n} from \"./imodel-components-react/navigationaids/DrawingNavigationAid.js\";\n\nexport {\n FormatPanel,\n FormatPanelProps,\n} from \"./imodel-components-react/quantityformat/FormatPanel.js\";\nexport {\n FormatPrecision,\n FormatPrecisionProps,\n} from \"./imodel-components-react/quantityformat/FormatPrecision.js\";\nexport {\n FormatSample,\n FormatSampleProps,\n} from \"./imodel-components-react/quantityformat/FormatSample.js\";\nexport {\n FormatTypeOption,\n FormatTypeOptionProps,\n} from \"./imodel-components-react/quantityformat/FormatType.js\";\nexport {\n FormatUnitLabel,\n FormatUnitLabelProps,\n} from \"./imodel-components-react/quantityformat/FormatUnitLabel.js\";\nexport {\n FormatUnits,\n FormatUnitsProps,\n} from \"./imodel-components-react/quantityformat/FormatUnits.js\";\nexport {\n MiscFormatOptions,\n MiscFormatOptionsProps,\n} from \"./imodel-components-react/quantityformat/MiscFormatOptions.js\";\nexport {\n QuantityFormatPanel,\n QuantityFormatPanelProps,\n} from \"./imodel-components-react/quantityformat/QuantityFormatPanel.js\";\n\nexport {\n AnimationFractionChangeHandler,\n PlaybackSettings,\n PlaybackSettingsChangeHandler,\n SolarDataProvider,\n SolarPlaybackProgressHandler,\n TimelineDataProvider,\n TimelineDateDisplay,\n TimelinePausePlayAction,\n TimelinePausePlayArgs,\n TimelineScale,\n} from \"./imodel-components-react/timeline/interfaces.js\";\nexport { BaseTimelineDataProvider } from \"./imodel-components-react/timeline/BaseTimelineDataProvider.js\";\nexport {\n TimelineComponent,\n TimelineComponentProps,\n TimelineDateMarkerProps,\n TimelineMenuItemOption,\n TimelineMenuItemProps,\n} from \"./imodel-components-react/timeline/TimelineComponent.js\";\nexport { SolarTimeline } from \"./imodel-components-react/timeline/SolarTimeline.js\";\nexport { BaseSolarDataProvider } from \"./imodel-components-react/timeline/BaseSolarDataProvider.js\";\n\nexport {\n ViewStateProp,\n ViewportComponent,\n ViewportProps,\n} from \"./imodel-components-react/viewport/ViewportComponent.js\";\nexport {\n ViewportComponentEvents,\n CubeRotationChangeEvent,\n CubeRotationChangeEventArgs,\n DrawingViewportChangeEvent,\n DrawingViewportChangeEventArgs,\n StandardRotationChangeEvent,\n StandardRotationChangeEventArgs,\n ViewClassFullNameChangedEvent,\n ViewClassFullNameChangedEventArgs,\n ViewIdChangedEvent,\n ViewIdChangedEventArgs,\n ViewRotationChangeEvent,\n ViewRotationChangeEventArgs,\n} from \"./imodel-components-react/viewport/ViewportComponentEvents.js\";\n\n// #region \"SideEffects\"\n\nimport { StandardEditorNames, StandardTypeNames } from \"@itwin/appui-abstract\";\nimport { PropertyEditorManager } from \"@itwin/components-react\";\nimport { ColorPropertyEditor } from \"./imodel-components-react/editors/ColorEditor.js\";\nimport { WeightPropertyEditor } from \"./imodel-components-react/editors/WeightEditor.js\";\n\nPropertyEditorManager.registerEditor(\n StandardTypeNames.Number,\n ColorPropertyEditor,\n StandardEditorNames.ColorPicker\n);\nPropertyEditorManager.registerEditor(\n StandardTypeNames.Number,\n WeightPropertyEditor,\n StandardEditorNames.WeightPicker\n);\n\n// #endregion \"SideEffects\"\n\n/** @docs-package-description\n * The imodel-components-react package contains React components that depend on the core-frontend, core-common or core-quantity packages.\n * The components pertain to Color, Cube, LineWeight, Navigation Aids, Quantity Inputs, Timeline and Viewport.\n */\n/**\n * @docs-group-description Color\n * Classes and components for working with and picking a Color.\n */\n/**\n * @docs-group-description Common\n * Common classes used across various UI components.\n */\n/**\n * @docs-group-description Cube\n * Component for 3D Cube.\n */\n/**\n * @docs-group-description Inputs\n * Input Components that format and parse input for IModelApps.\n */\n/**\n * @docs-group-description LineWeight\n * Classes and components for working with and picking a Line Weight.\n */\n/**\n * @docs-group-description NavigationAids\n * Classes and components for working with Navigation Aids.\n */\n/**\n * @docs-group-description PropertyEditors\n * Classes and components for working with Property Editors.\n */\n/**\n * @docs-group-description QuantityFormat\n * Classes and components for working with a Quantity Formats.\n */\n/**\n * @docs-group-description Timeline\n * Classes and components that provide a timeline\n */\n/**\n * @docs-group-description Viewport\n * Classes and components for working with a Viewport.\n */\n"]}
|
|
1
|
+
{"version":3,"file":"imodel-components-react.js","sourceRoot":"","sources":["../src/imodel-components-react.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,4CAA4C;AAE5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAErF,OAAO,EACL,WAAW,GAEZ,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,iBAAiB,GAElB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACL,iBAAiB,GAElB,MAA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AEvB,aAAa,GACd,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAC1G,OAAO,EACL,iBAAiB,GAKlB,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAEpG,OAAO,EAEL,iBAAiB,GAElB,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EAEvB,0BAA0B,EAE1B,2BAA2B,EAE3B,6BAA6B,EAE7B,kBAAkB,EAElB,uBAAuB,GAExB,MAAM,+DAA+D,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,wBAAwB;AAExB,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAEzF,qBAAqB,CAAC,cAAc,CAClC,iBAAiB,CAAC,MAAM,EACxB,mBAAmB,EACnB,mBAAmB,CAAC,WAAW,CAChC,CAAC;AACF,qBAAqB,CAAC,cAAc,CAClC,iBAAiB,CAAC,MAAM,EACxB,oBAAoB,EACpB,mBAAmB,CAAC,YAAY,CACjC,CAAC;AAEF,2BAA2B;AAE3B;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","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/* eslint-disable deprecation/deprecation */\n\nexport { UiIModelComponents } from \"./imodel-components-react/UiIModelComponents.js\";\n\nexport {\n AlphaSlider,\n AlphaSliderProps,\n} from \"./imodel-components-react/color/AlphaSlider.js\";\nexport {\n ColorPickerButton,\n ColorPickerProps,\n} from \"./imodel-components-react/color/ColorPickerButton.js\";\nexport {\n ColorPickerDialog,\n ColorPickerDialogProps,\n} from \"./imodel-components-react/color/ColorPickerDialog.js\";\nexport {\n ColorPickerPopup,\n ColorPickerPopupProps,\n} from \"./imodel-components-react/color/ColorPickerPopup.js\";\nexport {\n HueSlider,\n HueSliderProps,\n} from \"./imodel-components-react/color/HueSlider.js\";\nexport {\n SaturationPicker,\n SaturationPickerProps,\n} from \"./imodel-components-react/color/SaturationPicker.js\";\nexport {\n ColorSwatch,\n ColorSwatchProps,\n} from \"./imodel-components-react/color/Swatch.js\";\n\nexport {\n ColorEditor,\n ColorPropertyEditor,\n} from \"./imodel-components-react/editors/ColorEditor.js\";\nexport {\n WeightEditor,\n WeightPropertyEditor,\n} from \"./imodel-components-react/editors/WeightEditor.js\";\n\nexport {\n QuantityInput,\n QuantityProps,\n} from \"./imodel-components-react/inputs/QuantityInput.js\";\nexport {\n QuantityNumberInput,\n QuantityNumberInputProps,\n StepFunctionProp,\n} from \"./imodel-components-react/inputs/QuantityNumberInput.js\";\n\nexport {\n LineWeightSwatch,\n LineWeightSwatchProps,\n} from \"./imodel-components-react/lineweight/Swatch.js\";\nexport {\n WeightPickerButton,\n WeightPickerProps,\n} from \"./imodel-components-react/lineweight/WeightPickerButton.js\";\n\nexport {\n Cube,\n CubeProps,\n Face,\n} from \"./imodel-components-react/navigationaids/Cube.js\";\nexport {\n CubeNavigationAid,\n CubeNavigationAidProps,\n CubeNavigationHitBoxX,\n CubeNavigationHitBoxY,\n CubeNavigationHitBoxZ,\n} from \"./imodel-components-react/navigationaids/CubeNavigationAid.js\";\nexport {\n DrawingNavigationAid,\n DrawingNavigationAidProps,\n} from \"./imodel-components-react/navigationaids/DrawingNavigationAid.js\";\n\nexport {\n FormatPanel,\n FormatPanelProps,\n} from \"./imodel-components-react/quantityformat/FormatPanel.js\";\nexport {\n FormatPrecision,\n FormatPrecisionProps,\n} from \"./imodel-components-react/quantityformat/FormatPrecision.js\";\nexport {\n FormatSample,\n FormatSampleProps,\n} from \"./imodel-components-react/quantityformat/FormatSample.js\";\nexport {\n FormatTypeOption,\n FormatTypeOptionProps,\n} from \"./imodel-components-react/quantityformat/FormatType.js\";\nexport {\n FormatUnitLabel,\n FormatUnitLabelProps,\n} from \"./imodel-components-react/quantityformat/FormatUnitLabel.js\";\nexport {\n FormatUnits,\n FormatUnitsProps,\n} from \"./imodel-components-react/quantityformat/FormatUnits.js\";\nexport {\n MiscFormatOptions,\n MiscFormatOptionsProps,\n} from \"./imodel-components-react/quantityformat/MiscFormatOptions.js\";\nexport {\n QuantityFormatPanel,\n QuantityFormatPanelProps,\n} from \"./imodel-components-react/quantityformat/QuantityFormatPanel.js\";\n\nexport {\n AnimationFractionChangeHandler,\n PlaybackSettings,\n PlaybackSettingsChangeHandler,\n SolarDataProvider,\n SolarPlaybackProgressHandler,\n TimelineDataProvider,\n TimelineDateDisplay,\n TimelinePausePlayAction,\n TimelinePausePlayArgs,\n TimelineScale,\n} from \"./imodel-components-react/timeline/interfaces.js\";\nexport { BaseTimelineDataProvider } from \"./imodel-components-react/timeline/BaseTimelineDataProvider.js\";\nexport {\n TimelineComponent,\n TimelineComponentProps,\n TimelineDateMarkerProps,\n TimelineMenuItemOption,\n TimelineMenuItemProps,\n} from \"./imodel-components-react/timeline/TimelineComponent.js\";\nexport { SolarTimeline } from \"./imodel-components-react/timeline/SolarTimeline.js\";\nexport { BaseSolarDataProvider } from \"./imodel-components-react/timeline/BaseSolarDataProvider.js\";\n\nexport {\n ViewStateProp,\n ViewportComponent,\n ViewportProps,\n} from \"./imodel-components-react/viewport/ViewportComponent.js\";\nexport {\n ViewportComponentEvents,\n CubeRotationChangeEvent,\n CubeRotationChangeEventArgs,\n DrawingViewportChangeEvent,\n DrawingViewportChangeEventArgs,\n StandardRotationChangeEvent,\n StandardRotationChangeEventArgs,\n ViewClassFullNameChangedEvent,\n ViewClassFullNameChangedEventArgs,\n ViewIdChangedEvent,\n ViewIdChangedEventArgs,\n ViewRotationChangeEvent,\n ViewRotationChangeEventArgs,\n} from \"./imodel-components-react/viewport/ViewportComponentEvents.js\";\n\nexport { ToolUtilities } from \"./imodel-components-react/ToolUtilities.js\";\n\n// #region \"SideEffects\"\n\nimport { StandardEditorNames, StandardTypeNames } from \"@itwin/appui-abstract\";\nimport { PropertyEditorManager } from \"@itwin/components-react\";\nimport { ColorPropertyEditor } from \"./imodel-components-react/editors/ColorEditor.js\";\nimport { WeightPropertyEditor } from \"./imodel-components-react/editors/WeightEditor.js\";\n\nPropertyEditorManager.registerEditor(\n StandardTypeNames.Number,\n ColorPropertyEditor,\n StandardEditorNames.ColorPicker\n);\nPropertyEditorManager.registerEditor(\n StandardTypeNames.Number,\n WeightPropertyEditor,\n StandardEditorNames.WeightPicker\n);\n\n// #endregion \"SideEffects\"\n\n/** @docs-package-description\n * The imodel-components-react package contains React components that depend on the core-frontend, core-common or core-quantity packages.\n * The components pertain to Color, Cube, LineWeight, Navigation Aids, Quantity Inputs, Timeline and Viewport.\n */\n/**\n * @docs-group-description Color\n * Classes and components for working with and picking a Color.\n */\n/**\n * @docs-group-description Common\n * Common classes used across various UI components.\n */\n/**\n * @docs-group-description Cube\n * Component for 3D Cube.\n */\n/**\n * @docs-group-description Inputs\n * Input Components that format and parse input for IModelApps.\n */\n/**\n * @docs-group-description LineWeight\n * Classes and components for working with and picking a Line Weight.\n */\n/**\n * @docs-group-description NavigationAids\n * Classes and components for working with Navigation Aids.\n */\n/**\n * @docs-group-description PropertyEditors\n * Classes and components for working with Property Editors.\n */\n/**\n * @docs-group-description QuantityFormat\n * Classes and components for working with a Quantity Formats.\n */\n/**\n * @docs-group-description Timeline\n * Classes and components that provide a timeline\n */\n/**\n * @docs-group-description Viewport\n * Classes and components for working with a Viewport.\n */\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/imodel-components-react",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "A react component library of iTwin.js UI iModel components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./lib/imodel-components-react.d.ts",
|
|
@@ -36,20 +36,17 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@itwin/appui-abstract": "^4.0.0",
|
|
39
|
-
"@itwin/components-react": "^5.0.0
|
|
39
|
+
"@itwin/components-react": "^5.0.0",
|
|
40
40
|
"@itwin/core-bentley": "^4.0.0",
|
|
41
41
|
"@itwin/core-common": "^4.0.0",
|
|
42
42
|
"@itwin/core-frontend": "^4.0.0",
|
|
43
43
|
"@itwin/core-geometry": "^4.0.0",
|
|
44
44
|
"@itwin/core-quantity": "^4.0.0",
|
|
45
|
-
"@itwin/core-react": "^5.0.0
|
|
45
|
+
"@itwin/core-react": "^5.0.0",
|
|
46
|
+
"@itwin/itwinui-react": "^3.15.0",
|
|
46
47
|
"react": "^18.0.0",
|
|
47
48
|
"react-dom": "^18.0.0"
|
|
48
49
|
},
|
|
49
|
-
"//devDependencies": [
|
|
50
|
-
"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
|
|
51
|
-
"NOTE: All tools used by scripts in this package must be listed as devDependencies"
|
|
52
|
-
],
|
|
53
50
|
"devDependencies": {
|
|
54
51
|
"@itwin/appui-abstract": "^4.0.0",
|
|
55
52
|
"@itwin/build-tools": "4.10.0-dev.31",
|
|
@@ -60,6 +57,7 @@
|
|
|
60
57
|
"@itwin/core-orbitgt": "^4.0.0",
|
|
61
58
|
"@itwin/core-quantity": "^4.0.0",
|
|
62
59
|
"@itwin/eslint-plugin": "^4.1.1",
|
|
60
|
+
"@itwin/itwinui-react": "^3.15.0",
|
|
63
61
|
"@itwin/webgl-compatibility": "^4.0.0",
|
|
64
62
|
"@testing-library/dom": "^10.1.0",
|
|
65
63
|
"@testing-library/react": "^15.0.7",
|
|
@@ -85,26 +83,22 @@
|
|
|
85
83
|
"typescript": "~5.3.3",
|
|
86
84
|
"upath": "^2.0.1",
|
|
87
85
|
"vitest": "^1.6.0",
|
|
88
|
-
"@itwin/components-react": "5.0.0
|
|
89
|
-
"@itwin/core-react": "5.0.0
|
|
86
|
+
"@itwin/components-react": "5.0.0",
|
|
87
|
+
"@itwin/core-react": "5.0.0"
|
|
90
88
|
},
|
|
91
|
-
"//dependencies": [
|
|
92
|
-
"NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API",
|
|
93
|
-
"NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"
|
|
94
|
-
],
|
|
95
89
|
"dependencies": {
|
|
96
|
-
"@bentley/icons-generic": "^1.0.34",
|
|
97
|
-
"@itwin/itwinui-react": "^3.11.2",
|
|
98
|
-
"@itwin/itwinui-variables": "^3.0.0",
|
|
99
90
|
"@itwin/itwinui-icons-react": "^2.8.0",
|
|
100
91
|
"classnames": "2.5.1",
|
|
101
92
|
"ts-key-enum": "~2.0.12"
|
|
102
93
|
},
|
|
103
94
|
"scripts": {
|
|
104
95
|
"start": "run-p -l \"build -- -w\" \"copy:** -- -w\"",
|
|
105
|
-
"build": "npm run copy:css && npm run copy:locale && tsc",
|
|
96
|
+
"build": "npm run copy:css && npm run compat:css && npm run copy:locale && tsc",
|
|
106
97
|
"copy:css": "cpx \"./src/**/*.*css\" ./lib",
|
|
107
98
|
"copy:locale": "cpx ./src/imodel-components-react/UiIModelComponents.json ./lib/public/locales/en",
|
|
99
|
+
"compat:css": "npm run compat:cjs && npm run compat:esm",
|
|
100
|
+
"compat:cjs": "cpx \"./src/**/*.{*css,svg}\" ./lib/cjs",
|
|
101
|
+
"compat:esm": "cpx \"./src/**/*.{*css,svg}\" ./lib/esm",
|
|
108
102
|
"clean": "rimraf lib .rush/temp/package-deps*.json",
|
|
109
103
|
"cover": "vitest run --coverage",
|
|
110
104
|
"lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
|