@itwin/imodel-components-react 4.17.0 → 5.0.0-dev.2
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/README.md +15 -2
- package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.d.ts +1 -1
- package/lib/imodel-components-react/UiIModelComponents.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/UiIModelComponents.js +4 -7
- package/lib/imodel-components-react/UiIModelComponents.js.map +1 -0
- package/lib/imodel-components-react/color/AlphaSlider.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/AlphaSlider.js +1 -1
- package/lib/imodel-components-react/color/AlphaSlider.js.map +1 -0
- package/lib/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.js +4 -3
- package/lib/imodel-components-react/color/ColorPickerButton.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.scss +2 -4
- package/lib/imodel-components-react/color/ColorPickerDialog.d.ts.map +1 -0
- package/lib/imodel-components-react/color/ColorPickerDialog.js.map +1 -0
- package/lib/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.js +4 -3
- package/lib/imodel-components-react/color/ColorPickerPopup.js.map +1 -0
- package/lib/imodel-components-react/color/HueSlider.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js.map +1 -1
- package/lib/imodel-components-react/color/SaturationPicker.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/SaturationPicker.js +1 -1
- package/lib/imodel-components-react/color/SaturationPicker.js.map +1 -0
- package/lib/imodel-components-react/color/Swatch.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js.map +1 -1
- package/lib/imodel-components-react/color/getCSSColorFromDef.d.ts.map +1 -0
- package/lib/imodel-components-react/color/getCSSColorFromDef.js.map +1 -0
- package/lib/imodel-components-react/editors/ColorEditor.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/editors/ColorEditor.js +3 -4
- package/lib/imodel-components-react/editors/ColorEditor.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.scss +0 -2
- package/lib/imodel-components-react/editors/WeightEditor.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/editors/WeightEditor.js +3 -4
- package/lib/imodel-components-react/editors/WeightEditor.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.scss +0 -2
- package/lib/imodel-components-react/inputs/QuantityInput.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js.map +1 -1
- package/lib/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -0
- package/lib/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.scss +1 -1
- package/lib/imodel-components-react/lineweight/Swatch.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js.map +1 -1
- package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.scss +2 -4
- package/lib/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js.map +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.scss +5 -6
- package/lib/imodel-components-react/navigationaids/Cube.d.ts.map +1 -0
- package/lib/imodel-components-react/navigationaids/Cube.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.d.ts +1 -1
- package/lib/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.js +3 -3
- package/lib/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.scss +1 -2
- package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.js +2 -2
- package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.scss +9 -10
- package/lib/imodel-components-react/quantityformat/FormatPanel.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.js +6 -6
- package/lib/imodel-components-react/quantityformat/FormatPanel.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.scss +0 -2
- package/lib/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.js +3 -3
- package/lib/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.js +1 -1
- package/lib/imodel-components-react/quantityformat/FormatSample.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/FormatType.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js.map +1 -1
- package/lib/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js.map +1 -1
- package/lib/imodel-components-react/quantityformat/FormatUnits.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.js +2 -2
- package/lib/imodel-components-react/quantityformat/FormatUnits.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.js +7 -7
- package/lib/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.js +1 -1
- package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js.map +1 -1
- package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.js +2 -2
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.d.ts +1 -1
- package/lib/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js.map +1 -1
- package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.d.ts +1 -1
- package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +1 -0
- package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -0
- package/lib/imodel-components-react/timeline/InlineEdit.d.ts.map +1 -0
- package/lib/imodel-components-react/timeline/InlineEdit.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.scss +3 -5
- package/lib/imodel-components-react/timeline/PlayButton.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/PlayButton.js +1 -1
- package/lib/imodel-components-react/timeline/PlayButton.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/Scrubber.d.ts +2 -4
- package/lib/imodel-components-react/timeline/Scrubber.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.js +19 -12
- package/lib/imodel-components-react/timeline/Scrubber.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.scss +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.d.ts +1 -1
- package/lib/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.js +3 -3
- package/lib/imodel-components-react/timeline/SolarTimeline.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.scss +0 -2
- package/lib/imodel-components-react/timeline/SpeedTimeline.d.ts.map +1 -0
- package/lib/imodel-components-react/timeline/SpeedTimeline.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.scss +2 -4
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Timeline.scss +7 -9
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.d.ts +1 -1
- package/lib/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.js +5 -5
- package/lib/imodel-components-react/timeline/TimelineComponent.js.map +1 -0
- package/lib/imodel-components-react/timeline/interfaces.d.ts.map +1 -0
- package/lib/imodel-components-react/timeline/interfaces.js.map +1 -0
- package/lib/imodel-components-react/useTranslation.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/useTranslation.js +2 -2
- package/lib/imodel-components-react/useTranslation.js.map +1 -0
- package/lib/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.js +1 -1
- package/lib/imodel-components-react/viewport/ViewportComponent.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.d.ts +1 -1
- package/lib/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.js +1 -1
- package/lib/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -0
- package/lib/imodel-components-react.d.ts +77 -0
- package/lib/imodel-components-react.d.ts.map +1 -0
- package/lib/imodel-components-react.js +90 -0
- package/lib/imodel-components-react.js.map +1 -0
- package/lib/internal.d.ts +2 -0
- package/lib/internal.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react/navigationaids/Cube.scss → internal.js} +2 -15
- package/lib/internal.js.map +1 -0
- package/package.json +46 -36
- package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/UiIModelComponents.js +0 -78
- package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/AlphaSlider.js +0 -182
- package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +0 -119
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +0 -90
- package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js +0 -76
- package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +0 -141
- package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/HueSlider.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/HueSlider.js +0 -201
- package/lib/cjs/imodel-components-react/color/HueSlider.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/SaturationPicker.js +0 -197
- package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/Swatch.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/Swatch.js +0 -63
- package/lib/cjs/imodel-components-react/color/Swatch.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js +0 -24
- package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
- package/lib/cjs/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/editors/ColorEditor.js +0 -150
- package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +0 -1
- package/lib/cjs/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/editors/WeightEditor.js +0 -153
- package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +0 -1
- package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/inputs/QuantityInput.js +0 -94
- package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +0 -1
- package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +0 -265
- package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
- package/lib/cjs/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/lineweight/Swatch.js +0 -84
- package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +0 -1
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js +0 -160
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +0 -1
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +0 -51
- package/lib/cjs/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/navigationaids/Cube.js +0 -151
- package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +0 -1
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +0 -153
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +0 -683
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +0 -178
- package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +0 -736
- package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js +0 -112
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +0 -55
- package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js +0 -56
- package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +0 -94
- package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatType.js +0 -115
- package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js +0 -117
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js +0 -137
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js +0 -193
- package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +0 -145
- package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js +0 -104
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js +0 -59
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js +0 -87
- package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js +0 -60
- package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js +0 -68
- package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +0 -76
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js +0 -59
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js +0 -65
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +0 -106
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js +0 -135
- package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js +0 -150
- package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js +0 -64
- package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.js +0 -86
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +0 -24
- package/lib/cjs/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/PlayButton.js +0 -50
- package/lib/cjs/imodel-components-react/timeline/PlayButton.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/Scrubber.js +0 -185
- package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +0 -105
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts +0 -60
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +0 -358
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +0 -45
- package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js +0 -57
- package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/Timeline.scss +0 -165
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts +0 -100
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +0 -286
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/interfaces.js +0 -46
- package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +0 -1
- package/lib/cjs/imodel-components-react/useTranslation.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/useTranslation.js +0 -52
- package/lib/cjs/imodel-components-react/useTranslation.js.map +0 -1
- package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js +0 -267
- package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
- package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js +0 -119
- package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
- package/lib/cjs/imodel-components-react.d.ts +0 -80
- package/lib/cjs/imodel-components-react.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react.js +0 -103
- package/lib/cjs/imodel-components-react.js.map +0 -1
- package/lib/esm/imodel-components-react/UiIModelComponents.d.ts +0 -29
- package/lib/esm/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/UiIModelComponents.js.map +0 -1
- package/lib/esm/imodel-components-react/UiIModelComponents.json +0 -150
- package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts +0 -36
- package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +0 -1
- package/lib/esm/imodel-components-react/color/AlphaSlider.scss +0 -71
- package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts +0 -40
- package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts +0 -26
- package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts +0 -47
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +0 -62
- package/lib/esm/imodel-components-react/color/HueSlider.d.ts +0 -25
- package/lib/esm/imodel-components-react/color/HueSlider.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/HueSlider.scss +0 -78
- package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts +0 -23
- package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/SaturationPicker.js.map +0 -1
- package/lib/esm/imodel-components-react/color/SaturationPicker.scss +0 -36
- package/lib/esm/imodel-components-react/color/Swatch.d.ts +0 -25
- package/lib/esm/imodel-components-react/color/Swatch.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/Swatch.scss +0 -22
- package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts +0 -7
- package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
- package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts +0 -42
- package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/editors/ColorEditor.js.map +0 -1
- package/lib/esm/imodel-components-react/editors/ColorEditor.scss +0 -18
- package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts +0 -44
- package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/editors/WeightEditor.js.map +0 -1
- package/lib/esm/imodel-components-react/editors/WeightEditor.scss +0 -16
- package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts +0 -26
- package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +0 -47
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +0 -106
- package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts +0 -33
- package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/lineweight/Swatch.scss +0 -48
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts +0 -59
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts +0 -46
- package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/Cube.js.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +0 -144
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +0 -134
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts +0 -29
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts +0 -19
- package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts +0 -20
- package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts +0 -19
- package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +0 -19
- package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts +0 -21
- package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +0 -23
- package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +0 -24
- package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +0 -17
- package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts +0 -19
- package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +0 -24
- package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +0 -53
- package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +0 -32
- package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts +0 -27
- package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/InlineEdit.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts +0 -12
- package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/PlayButton.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts +0 -54
- package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/Scrubber.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts +0 -16
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +0 -40
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +0 -48
- package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +0 -146
- package/lib/esm/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/interfaces.js.map +0 -1
- package/lib/esm/imodel-components-react/useTranslation.d.ts +0 -7
- package/lib/esm/imodel-components-react/useTranslation.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/useTranslation.js.map +0 -1
- package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +0 -43
- package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
- package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts +0 -119
- package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
- package/lib/esm/imodel-components-react.d.ts +0 -80
- package/lib/esm/imodel-components-react.d.ts.map +0 -1
- package/lib/esm/imodel-components-react.js +0 -85
- package/lib/esm/imodel-components-react.js.map +0 -1
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.json +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerButton.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityInput.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/Cube.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatType.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.js +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/InlineEdit.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/PlayButton.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/interfaces.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/interfaces.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/useTranslation.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StationSizeSelector.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/StationSizeSelector.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAYtD;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAA+B;IACjE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC3D,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,gBAAgB,GAA2B;QAC/C;YACE,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,SAAS,CAAC,iCAAiC,CAAC;SACpD;QACD;YACE,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,SAAS,CAAC,mCAAmC,CAAC;SACtD;KACF,CAAC;IAEF,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,CAAC,QAAgB,EAAE,EAAE;QACnB,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,CAAC;AACJ,CAAC","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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select } from \"@itwin/itwinui-react\";\nimport { useTranslation } from \"../../useTranslation\";\n\n/** Properties of [[StationSizeSelector]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface StationSizeSelectorProps extends CommonProps {\n value: number;\n disabled: boolean;\n onChange: (value: number) => void;\n}\n\n/** Component use to set Station size (number of digits from right until '+').\n * @internal\n */\nexport function StationSizeSelector(props: StationSizeSelectorProps) {\n const { value, disabled, onChange, ...otherProps } = props;\n const { translate } = useTranslation();\n const separatorOptions: SelectOption<number>[] = [\n {\n value: 2,\n label: translate(\"QuantityFormat.station_size.two\"),\n },\n {\n value: 3,\n label: translate(\"QuantityFormat.station_size.three\"),\n },\n ];\n\n const handleOnChange = React.useCallback(\n (newValue: number) => {\n onChange && onChange(newValue);\n },\n [onChange]\n );\n\n return (\n <Select\n options={separatorOptions}\n disabled={disabled}\n value={value}\n onChange={handleOnChange}\n size=\"small\"\n {...otherProps}\n />\n );\n}\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module QuantityFormat
|
|
3
|
-
*/
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import type { CommonProps } from "@itwin/core-react";
|
|
6
|
-
/** Properties of [[ThousandsSelector]] component.
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export interface ThousandsSelectorProps extends CommonProps {
|
|
10
|
-
separator: string;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
onChange: (value: string) => void;
|
|
13
|
-
}
|
|
14
|
-
/** Component use to set Quantity Format thousand group separator.
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export declare function ThousandsSelector(props: ThousandsSelectorProps): React.JSX.Element;
|
|
18
|
-
//# sourceMappingURL=ThousandsSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThousandsSelector.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/ThousandsSelector.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD;;GAEG;AAEH,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,qBAkC9D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThousandsSelector.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/ThousandsSelector.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAYtD;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC3C,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IAEvC,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC1C,MAAM,iBAAiB,GAA2B;YAChD;gBACE,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,SAAS,CAAC,yCAAyC,CAAC;aAC5D;YACD;gBACE,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,SAAS,CAAC,yCAAyC,CAAC;aAC5D;SACF,CAAC;QACF,MAAM,qBAAqB,GAA2B,EAAE,CAAC;QACzD,IACE,SAAS;YACT,iBAAiB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC,EAC9D,CAAC;YACD,qBAAqB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACrE,CAAC;QACD,qBAAqB,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,CAAC;QACjD,OAAO,qBAAqB,CAAC;IAC/B,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IAE3B,OAAO,CACL,oBAAC,MAAM,IACL,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,SAAS,EAChB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,CAAC;AACJ,CAAC","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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select } from \"@itwin/itwinui-react\";\nimport { useTranslation } from \"../../useTranslation\";\n\n/** Properties of [[ThousandsSelector]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface ThousandsSelectorProps extends CommonProps {\n separator: string;\n disabled: boolean;\n onChange: (value: string) => void;\n}\n\n/** Component use to set Quantity Format thousand group separator.\n * @internal\n */\nexport function ThousandsSelector(props: ThousandsSelectorProps) {\n const { separator, ...otherProps } = props;\n const { translate } = useTranslation();\n\n const separatorOptions = React.useMemo(() => {\n const uomDefaultEntries: SelectOption<string>[] = [\n {\n value: \",\",\n label: translate(\"QuantityFormat.thousand_separator.comma\"),\n },\n {\n value: \".\",\n label: translate(\"QuantityFormat.thousand_separator.point\"),\n },\n ];\n const completeListOfEntries: SelectOption<string>[] = [];\n if (\n undefined ===\n uomDefaultEntries.find((option) => option.value === separator)\n ) {\n completeListOfEntries.push({ value: separator, label: separator });\n }\n completeListOfEntries.push(...uomDefaultEntries);\n return completeListOfEntries;\n }, [separator, translate]);\n\n return (\n <Select\n options={separatorOptions}\n value={separator}\n size=\"small\"\n {...otherProps}\n />\n );\n}\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module QuantityFormat
|
|
3
|
-
*/
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import type { CommonProps } from "@itwin/core-react";
|
|
6
|
-
import type { FormatProps } from "@itwin/core-quantity";
|
|
7
|
-
/** Properties of [[ThousandsSeparator]] component.
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export interface ThousandsSeparatorProps extends CommonProps {
|
|
11
|
-
formatProps: FormatProps;
|
|
12
|
-
onChange?: (format: FormatProps) => void;
|
|
13
|
-
}
|
|
14
|
-
/** Component use to set Quantity Format thousand group separator.
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export declare function ThousandsSeparator(props: ThousandsSeparatorProps): React.JSX.Element;
|
|
18
|
-
//# sourceMappingURL=ThousandsSeparator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThousandsSeparator.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/ThousandsSeparator.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAMxD;;GAEG;AAEH,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC1D,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,qBAiGhE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThousandsSeparator.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/ThousandsSeparator.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,YA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C;QACF,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACvC,CAAC,EACD,CAAC,WAAW,EAAE,gBAAgB,EAAE,oBAAoB,CAAC,CACtD,CAAC;IAEF,OAAO,CACL;QACE,8BAAM,SAAS,EAAE,cAAc,IAC5B,SAAS,CAAC,iDAAiD,CAAC,CACxD;QACP,oBAAC,QAAQ,mBACK,yBAAyB,EACrC,OAAO,EAAE,gBAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC,EACxD,QAAQ,EAAE,iCAAiC,GAC3C;QACF,8BACE,SAAS,EAAE,UAAU,CACnB,cAAc,EACd,CAAC,gBAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC,IAAI,iBAAiB,CACtE,IAEA,SAAS,CAAC,8CAA8C,CAAC,CACrD;QACP,oBAAC,iBAAiB,mBACJ,8BAA8B,EAC1C,SAAS,EAAE,WAAW,CAAC,iBAAiB,IAAI,GAAG,EAC/C,QAAQ,EAAE,CAAC,gBAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAC1D,QAAQ,EAAE,6BAA6B,GACvC,CACD,CACJ,CAAC;AACJ,CAAC","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 QuantityFormat\n */\n\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport type { FormatProps } from \"@itwin/core-quantity\";\nimport { Format, FormatTraits, getTraitString } from \"@itwin/core-quantity\";\nimport { Checkbox } from \"@itwin/itwinui-react\";\nimport { ThousandsSelector } from \"./ThousandsSelector\";\nimport { useTranslation } from \"../../useTranslation\";\n\n/** Properties of [[ThousandsSeparator]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface ThousandsSeparatorProps extends CommonProps {\n formatProps: FormatProps;\n onChange?: (format: FormatProps) => void;\n}\n\n/** Component use to set Quantity Format thousand group separator.\n * @internal\n */\nexport function ThousandsSeparator(props: ThousandsSeparatorProps) {\n const { formatProps, onChange } = props;\n const { translate } = useTranslation();\n\n const handleSetFormatProps = React.useCallback(\n (newProps: FormatProps) => {\n onChange && onChange(newProps);\n },\n [onChange]\n );\n\n const setFormatTrait = React.useCallback(\n (trait: FormatTraits, setActive: boolean) => {\n const traitStr = getTraitString(trait);\n let formatTraits: string[] = [traitStr];\n if (setActive) {\n // setting trait\n if (formatProps.formatTraits) {\n const traits = Array.isArray(formatProps.formatTraits)\n ? formatProps.formatTraits\n : formatProps.formatTraits.split(/,|;|\\|/);\n formatTraits = [...traits, traitStr];\n }\n } else {\n // clearing trait\n if (formatProps.formatTraits) {\n const traits = Array.isArray(formatProps.formatTraits)\n ? formatProps.formatTraits\n : formatProps.formatTraits.split(/,|;|\\|/);\n formatTraits = traits.filter((traitEntry) => traitEntry !== traitStr);\n }\n }\n const newFormatProps = { ...formatProps, formatTraits };\n handleSetFormatProps(newFormatProps);\n },\n [formatProps, handleSetFormatProps]\n );\n\n const handleUseThousandsSeparatorChange = React.useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setFormatTrait(FormatTraits.Use1000Separator, e.target.checked);\n },\n [setFormatTrait]\n );\n\n const isFormatTraitSet = React.useCallback(\n (trait: FormatTraits) => {\n return Format.isFormatTraitSetInProps(formatProps, trait);\n },\n [formatProps]\n );\n\n const handleThousandSeparatorChange = React.useCallback(\n (thousandSeparator: string) => {\n let decimalSeparator = formatProps.decimalSeparator;\n // make sure 1000 and decimal separator do not match\n if (isFormatTraitSet(FormatTraits.Use1000Separator)) {\n if (thousandSeparator === \".\") decimalSeparator = \",\";\n // thousandSeparator === \",\"\n else decimalSeparator = \".\";\n }\n const newFormatProps = {\n ...formatProps,\n thousandSeparator,\n decimalSeparator,\n };\n handleSetFormatProps(newFormatProps);\n },\n [formatProps, isFormatTraitSet, handleSetFormatProps]\n );\n\n return (\n <>\n <span className={\"uicore-label\"}>\n {translate(\"QuantityFormat.labels.useThousandSeparatorLabel\")}\n </span>\n <Checkbox\n data-testid=\"use-thousands-separator\"\n checked={isFormatTraitSet(FormatTraits.Use1000Separator)}\n onChange={handleUseThousandsSeparatorChange}\n />\n <span\n className={classnames(\n \"uicore-label\",\n !isFormatTraitSet(FormatTraits.Use1000Separator) && \"uicore-disabled\"\n )}\n >\n {translate(\"QuantityFormat.labels.thousandSeparatorLabel\")}\n </span>\n <ThousandsSelector\n data-testid=\"thousands-separator-selector\"\n separator={formatProps.thousandSeparator ?? \",\"}\n disabled={!isFormatTraitSet(FormatTraits.Use1000Separator)}\n onChange={handleThousandSeparatorChange}\n />\n </>\n );\n}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module QuantityFormat
|
|
3
|
-
*/
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import type { UnitsProvider } from "@itwin/core-quantity";
|
|
6
|
-
import type { CommonProps } from "@itwin/core-react";
|
|
7
|
-
/** Properties of [[UnitDescr]] component.
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export interface UnitDescrProps extends CommonProps {
|
|
11
|
-
name: string;
|
|
12
|
-
parentUnitName?: string;
|
|
13
|
-
label: string;
|
|
14
|
-
index: number;
|
|
15
|
-
unitsProvider: UnitsProvider;
|
|
16
|
-
readonly?: boolean;
|
|
17
|
-
onUnitChange: (value: string, index: number) => void;
|
|
18
|
-
onLabelChange: (value: string, index: number) => void;
|
|
19
|
-
}
|
|
20
|
-
/** Component use to display dropdown list of possible units.
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
|
-
export declare function UnitDescr(props: UnitDescrProps): React.JSX.Element;
|
|
24
|
-
//# sourceMappingURL=UnitDescr.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UnitDescr.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/UnitDescr.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAa,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD;;GAEG;AAEH,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD;AA8CD;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,qBAmH9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UnitDescr.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/UnitDescr.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAiBrD,KAAK,UAAU,qBAAqB,CAClC,aAA0B,EAC1B,MAAiB,EACjB,aAA4B;IAE5B,MAAM,qBAAqB,GAAG,aAAa,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QAC7D,MAAM,UAAU,GAAG,MAAM,aAAa,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,I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ACtC,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAG,KAAK,CAAC,WAAW,CAC1C,CAAC,QAAgB,EAAE,EAAE;QACnB,YAAY,IAAI,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAChD,CAAC,EACD,CAAC,KAAK,EAAE,YAAY,CAAC,CACtB,CAAC;IAEF,MAAM,mBAAmB,GAAG,KAAK,CAAC,WAAW,CAC3C,CAAC,CAAsC,EAAE,EAAE;QACzC,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,aAAa,IAAI,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACxD,CAAC,EACD,CAAC,KAAK,EAAE,aAAa,CAAC,CACvB,CAAC;IAEF,OAAO,CACL;QACE,oBAAC,MAAM,IACL,OAAO,EAAE,WAAW,iBACP,QAAQ,WAAW,CAAC,IAAI,EAAE,EACvC,KAAK,EAAE,GAAG,WAAW,CAAC,IAAI,IAAI,WAAW,CAAC,KAAK,EAAE,EACjD,QAAQ,EAAE,kBAAkB,EAC5B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,OAAO,GACZ;QACF,oBAAC,KAAK,mBACS,cAAc,WAAW,CAAC,IAAI,EAAE,EAC7C,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,mBAAmB,EAC7B,IAAI,EAAC,OAAO,GACZ,CACD,CACJ,CAAC;AACJ,CAAC","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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type { UnitProps, UnitsProvider } from \"@itwin/core-quantity\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Input, Select } from \"@itwin/itwinui-react\";\n\n/** Properties of [[UnitDescr]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface UnitDescrProps extends CommonProps {\n name: string;\n parentUnitName?: string;\n label: string;\n index: number;\n unitsProvider: UnitsProvider;\n readonly?: boolean;\n onUnitChange: (value: string, index: number) => void;\n onLabelChange: (value: string, index: number) => void;\n}\n\nasync function getUnitConversionData(\n possibleUnits: UnitProps[],\n toUnit: UnitProps,\n unitsProvider: UnitsProvider\n) {\n const unitConversionEntries = possibleUnits.map(async (unit) => {\n const conversion = await unitsProvider.getConversion(unit, toUnit);\n return { conversion, unitProps: unit };\n });\n return unitConversionEntries;\n}\n\nasync function getPossibleUnits(\n parentUnit: UnitProps,\n unitsProvider: UnitsProvider,\n ensureCompatibleComposite: boolean\n) {\n const phenomenon = parentUnit.phenomenon;\n const possibleUnits = await unitsProvider.getUnitsByFamily(phenomenon);\n if (!ensureCompatibleComposite) return possibleUnits;\n\n const conversionPromises = await getUnitConversionData(\n possibleUnits,\n parentUnit,\n unitsProvider\n );\n const conversionEntries = await Promise.all(conversionPromises);\n // sort the entries so the best potential sub unit will be the first one in the array\n return conversionEntries\n .filter(\n (entry) =>\n entry.unitProps.system === parentUnit.system &&\n entry.conversion.factor < 1\n )\n .sort((a, b) => b.conversion.factor - a.conversion.factor)\n .map((value) => value.unitProps);\n}\n\nfunction getUnitName(fullUnitName: string) {\n const nameParts = fullUnitName.split(/[.:]/);\n if (nameParts.length > 0) return nameParts[nameParts.length - 1];\n throw Error(\"Bad unit name encountered\");\n}\n\n/** Component use to display dropdown list of possible units.\n * @internal\n */\nexport function UnitDescr(props: UnitDescrProps) {\n const {\n name,\n label,\n parentUnitName,\n index,\n onUnitChange,\n onLabelChange,\n readonly,\n unitsProvider,\n } = props;\n const [unitOptions, setUnitOptions] = React.useState<SelectOption<string>[]>([\n { value: name, label: getUnitName(name) },\n ]);\n const [currentUnit, setCurrentUnit] = React.useState({ name, label });\n const isMounted = React.useRef(false);\n\n React.useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n });\n\n React.useEffect(() => {\n async function fetchAllowableUnitSelections() {\n const currentUnitProps = await unitsProvider.findUnitByName(name);\n const parentUnit = await unitsProvider.findUnitByName(\n parentUnitName ? parentUnitName : name\n );\n if (parentUnit && currentUnitProps) {\n let potentialSubUnit: UnitProps | undefined;\n const potentialUnits = await getPossibleUnits(\n parentUnit,\n unitsProvider,\n index !== 0\n );\n if (index < 3) {\n const potentialSubUnits = await getPossibleUnits(\n currentUnitProps,\n unitsProvider,\n true\n );\n if (potentialSubUnits.length) potentialSubUnit = potentialSubUnits[0];\n }\n\n const options =\n potentialUnits.length > 0\n ? potentialUnits\n .map((unitValue) => {\n return {\n value: `${unitValue.name}:${unitValue.label}`,\n label: getUnitName(unitValue.name),\n };\n })\n .sort((a, b) => a.label.localeCompare(b.label))\n : [\n {\n value: `${currentUnitProps.name}:${currentUnitProps.label}`,\n label: getUnitName(name),\n },\n ];\n\n if (potentialSubUnit) {\n // construct an entry that will provide the name and label of the unit to add\n options.push({\n value: `ADDSUBUNIT:${potentialSubUnit.name}:${potentialSubUnit.label}`,\n label: \"Add sub-unit\",\n }); // NEEDSWORK - i18n\n }\n\n if (index !== 0) options.push({ value: \"REMOVEUNIT\", label: \"Remove\" }); // NEEDSWORK - i18n\n\n if (isMounted.current) {\n setUnitOptions(options);\n setCurrentUnit(currentUnitProps);\n }\n }\n }\n void fetchAllowableUnitSelections();\n }, [index, label, name, parentUnitName, unitsProvider]);\n\n const handleOnUnitChange = React.useCallback(\n (newValue: string) => {\n onUnitChange && onUnitChange(newValue, index);\n },\n [index, onUnitChange]\n );\n\n const handleOnLabelChange = React.useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n e.preventDefault();\n onLabelChange && onLabelChange(e.target.value, index);\n },\n [index, onLabelChange]\n );\n\n return (\n <>\n <Select\n options={unitOptions}\n data-testid={`unit-${currentUnit.name}`}\n value={`${currentUnit.name}:${currentUnit.label}`}\n onChange={handleOnUnitChange}\n disabled={readonly}\n size=\"small\"\n />\n <Input\n data-testid={`unit-label-${currentUnit.name}`}\n value={label}\n onChange={handleOnLabelChange}\n size=\"small\"\n />\n </>\n );\n}\n"]}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Timeline
|
|
3
|
-
*/
|
|
4
|
-
import { Cartographic, ColorDef } from "@itwin/core-common";
|
|
5
|
-
import type { IModelConnection, ScreenViewport } from "@itwin/core-frontend";
|
|
6
|
-
import type { SolarDataProvider } from "./interfaces";
|
|
7
|
-
/** Base class that provides solar data for animation control
|
|
8
|
-
* @alpha
|
|
9
|
-
*/
|
|
10
|
-
export declare class BaseSolarDataProvider implements SolarDataProvider {
|
|
11
|
-
protected _projectTimeZoneOffset: number;
|
|
12
|
-
protected _viewport: ScreenViewport | undefined;
|
|
13
|
-
protected _cartographicCenter: Cartographic;
|
|
14
|
-
protected _shadowColor: ColorDef;
|
|
15
|
-
longitude: number;
|
|
16
|
-
latitude: number;
|
|
17
|
-
viewId: string;
|
|
18
|
-
supportsTimelineAnimation: boolean;
|
|
19
|
-
animationFraction: number;
|
|
20
|
-
private _projectDayStartMS;
|
|
21
|
-
private _projectSunriseMs;
|
|
22
|
-
private _projectSunsetMs;
|
|
23
|
-
private _zoneOffsetMs;
|
|
24
|
-
private _projectSunrise;
|
|
25
|
-
private _projectSunset;
|
|
26
|
-
private _projectDateTime;
|
|
27
|
-
private _projectDay;
|
|
28
|
-
protected initializeData(projectTimeZoneOffset: number, initialTime?: Date): void;
|
|
29
|
-
constructor(viewport?: ScreenViewport, longitude?: number, latitude?: number);
|
|
30
|
-
get timeZoneOffset(): number;
|
|
31
|
-
get shadowColor(): ColorDef;
|
|
32
|
-
set shadowColor(color: ColorDef);
|
|
33
|
-
get shouldShowTimeline(): boolean;
|
|
34
|
-
/** Get time at project location */
|
|
35
|
-
get timeOfDay(): Date;
|
|
36
|
-
/** The date can be in project time or if isProjectDate is false, it is assumed to be users current local time
|
|
37
|
-
* which will be adjusted to the same time at project location. */
|
|
38
|
-
setDateAndTime(date: Date, isProjectDate?: boolean): void;
|
|
39
|
-
/** Project Day Start */
|
|
40
|
-
get day(): Date;
|
|
41
|
-
/** Project Day Start in milliseconds */
|
|
42
|
-
get dayStartMs(): number;
|
|
43
|
-
getCartographicCenter(iModel: IModelConnection): Cartographic;
|
|
44
|
-
set viewport(viewport: ScreenViewport | undefined);
|
|
45
|
-
get viewport(): ScreenViewport | undefined;
|
|
46
|
-
protected getZone(location: Cartographic): number;
|
|
47
|
-
get sunrise(): Date;
|
|
48
|
-
get sunriseMs(): number;
|
|
49
|
-
get sunset(): Date;
|
|
50
|
-
get sunsetMs(): number;
|
|
51
|
-
onTimeChanged: (_time: Date) => void;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=BaseSolarDataProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSolarDataProvider.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/BaseSolarDataProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAEL,YAAY,EAEZ,QAAQ,EACT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAOtD;;GAEG;AACH,qBAAa,qBAAsB,YAAW,iBAAiB;IAC7D,SAAS,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACzC,SAAS,CAAC,SAAS,EAAE,cAAc,GAAG,SAAS,CAAC;IAChD,SAAS,CAAC,mBAAmB,EAAE,YAAY,CAAC;IAC5C,SAAS,CAAC,YAAY,WAAqC;IAEpD,SAAS,EAAE,MAAM,CAAa;IAC9B,QAAQ,EAAE,MAAM,CAAa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,IAAI,MAAM,CAE5B;IAEM,aAAa,UAAW,IAAI,UAEjC;CACH"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Timeline
|
|
3
|
-
*/
|
|
4
|
-
import type { ScreenViewport } from "@itwin/core-frontend";
|
|
5
|
-
import type { PlaybackSettings, TimelineDataProvider } from "./interfaces";
|
|
6
|
-
/** Base Timeline Data Provider
|
|
7
|
-
* @alpha
|
|
8
|
-
*/
|
|
9
|
-
export declare class BaseTimelineDataProvider implements TimelineDataProvider {
|
|
10
|
-
readonly id = "TestTimelineDataProvider";
|
|
11
|
-
start: Date | undefined;
|
|
12
|
-
end: Date | undefined;
|
|
13
|
-
viewId: string;
|
|
14
|
-
supportsTimelineAnimation: boolean;
|
|
15
|
-
animationFraction: number;
|
|
16
|
-
protected _viewport: ScreenViewport | undefined;
|
|
17
|
-
constructor(viewport?: ScreenViewport);
|
|
18
|
-
protected _settings: PlaybackSettings;
|
|
19
|
-
loadTimelineData(): Promise<boolean>;
|
|
20
|
-
/** Called to get the initial scrubber location */
|
|
21
|
-
get initialDuration(): number;
|
|
22
|
-
/** Called to get playback duration */
|
|
23
|
-
get duration(): number;
|
|
24
|
-
set viewport(viewport: ScreenViewport | undefined);
|
|
25
|
-
get viewport(): ScreenViewport | undefined;
|
|
26
|
-
get loop(): boolean;
|
|
27
|
-
getSettings(): PlaybackSettings;
|
|
28
|
-
updateSettings(settings: PlaybackSettings): void;
|
|
29
|
-
onPlaybackSettingChanged: (_settings: PlaybackSettings) => void;
|
|
30
|
-
onAnimationFractionChanged: (_animationFraction: number) => void;
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=BaseTimelineDataProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTimelineDataProvider.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/BaseTimelineDataProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE3E;;GAEG;AACH,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,SAAgB,EAAE,8BAA8B;IACzC,KAAK,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,GAAG,EAAE,IAAI,GAAG,SAAS,CAAC;IACtB,MAAM,SAAM;IAEZ,yBAAyB,UAAS;IAClC,iBAAiB,EAAE,MAAM,CAAK;IACrC,SAAS,CAAC,SAAS,EAAE,cAAc,GAAG,SAAS,CAAC;gBAEpC,QAAQ,CAAC,EAAE,cAAc;IAKrC,SAAS,CAAC,SAAS,EAAE,gBAAgB,CAGnC;IAEW,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC;IAIjD,kDAAkD;IAClD,IAAW,eAAe,IAAI,MAAM,CAEnC;IAED,uCAAuC;IACvC,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,SAAS,EAIvD;IAED,IAAW,QAAQ,IAAI,cAAc,GAAG,SAAS,CAEhD;IAED,IAAW,IAAI,IAAI,OAAO,CAIzB;IAEM,WAAW,IAAI,gBAAgB;IAI/B,cAAc,CAAC,QAAQ,EAAE,gBAAgB;IAIzC,wBAAwB,cAAe,gBAAgB,UAAQ;IAE/D,0BAA0B,uBAAwB,MAAM,UAAQ;CACxE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTimelineDataProvider.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/BaseTimelineDataProvider.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAKH;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAUnC,YAAY,QAAyB;QATrB,OAAE,GAAG,0BAA0B,CAAC;QAGzC,WAAM,GAAG,EAAE,CAAC;QAE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EAAE,CAAC,IAAK,CAAC;IAC/B,CAAC;IAEM,WAAW;QAChB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAEM,cAAc,CAAC,QAA0B;QAC9C,IAAI,CAAC,SAAS,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,GAAG,QAAQ,EAAE,CAAC;IACtD,CAAC;CAKF","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 Timeline\n */\n\nimport type { ScreenViewport } from \"@itwin/core-frontend\";\nimport type { PlaybackSettings, TimelineDataProvider } from \"./interfaces\";\n\n/** Base Timeline Data Provider\n * @alpha\n */\nexport class BaseTimelineDataProvider implements TimelineDataProvider {\n public readonly id = \"TestTimelineDataProvider\";\n public start: Date | undefined;\n public end: Date | undefined;\n public viewId = \"\";\n\n public supportsTimelineAnimation = false; // set to true when provider determines animation data is available.\n public animationFraction: number = 0; // value from 0.0 to 1.0 that specifies the percentage complete for the animation.\n protected _viewport: ScreenViewport | undefined;\n\n constructor(viewport?: ScreenViewport) {\n this._viewport = viewport;\n if (viewport) this.viewId = viewport.view.id;\n }\n\n protected _settings: PlaybackSettings = {\n duration: 20 * 1000,\n loop: true,\n };\n\n public async loadTimelineData(): Promise<boolean> {\n return false;\n }\n\n /** Called to get the initial scrubber location */\n public get initialDuration(): number {\n return this.duration * this.animationFraction;\n }\n\n /** Called to get playback duration */\n public get duration(): number {\n return this.getSettings().duration ? this.getSettings().duration! : 20000;\n }\n\n public set viewport(viewport: ScreenViewport | undefined) {\n this._viewport = viewport;\n if (viewport) this.viewId = viewport.view.id;\n else this.viewId = \"\";\n }\n\n public get viewport(): ScreenViewport | undefined {\n return this._viewport;\n }\n\n public get loop(): boolean {\n return undefined === this.getSettings().loop\n ? false\n : this.getSettings().loop!;\n }\n\n public getSettings(): PlaybackSettings {\n return this._settings;\n }\n\n public updateSettings(settings: PlaybackSettings) {\n this._settings = { ...this._settings, ...settings };\n }\n\n public onPlaybackSettingChanged = (_settings: PlaybackSettings) => {};\n\n public onAnimationFractionChanged = (_animationFraction: number) => {};\n}\n"]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import "./InlineEdit.scss";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { CommonProps } from "@itwin/core-react";
|
|
4
|
-
interface InlineEditProps extends CommonProps {
|
|
5
|
-
defaultValue: string;
|
|
6
|
-
onChange?: (value: string) => void;
|
|
7
|
-
}
|
|
8
|
-
interface InlineEditState {
|
|
9
|
-
value: string;
|
|
10
|
-
originalValue: string;
|
|
11
|
-
}
|
|
12
|
-
/** Duration Inline Editor
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
export declare class InlineEdit extends React.Component<InlineEditProps, InlineEditState> {
|
|
16
|
-
private _inputRef;
|
|
17
|
-
constructor(props: InlineEditProps);
|
|
18
|
-
componentDidUpdate(prevProps: InlineEditProps, _prevState: InlineEditState): void;
|
|
19
|
-
private _onBlur;
|
|
20
|
-
private _onFocus;
|
|
21
|
-
private _onKeyDown;
|
|
22
|
-
private _onChange;
|
|
23
|
-
private _sendChange;
|
|
24
|
-
render(): React.JSX.Element;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=InlineEdit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InlineEdit.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/InlineEdit.tsx"],"names":[],"mappings":"AAIA,OAAO,mBAAmB,CAAC;AAE3B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,UAAU,eAAgB,SAAQ,WAAW;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE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,IAAI,CAAC,KAAK,CAAC,QAAQ;YAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,CAAC;IAEe,MAAM;QACpB,OAAO,CACL,oBAAC,KAAK,mBACQ,8BAA8B,EAC1C,SAAS,EAAE,UAAU,CAAC,mBAAmB,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAChE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,GAAG,EAAE,IAAI,CAAC,SAAS,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,QAAQ,EACtB,MAAM,EAAE,IAAI,CAAC,OAAO,EACpB,SAAS,EAAE,IAAI,CAAC,UAAU,EAC1B,QAAQ,EAAE,IAAI,CAAC,SAAS,GACxB,CACH,CAAC;IACJ,CAAC;CACF","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 *--------------------------------------------------------------------------------------------*/\nimport \"./InlineEdit.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { Key } from \"ts-key-enum\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { Input } from \"@itwin/itwinui-react\";\n\n// eslint-disable-next-line deprecation/deprecation\ninterface InlineEditProps extends CommonProps {\n defaultValue: string;\n onChange?: (value: string) => void;\n}\n\ninterface InlineEditState {\n value: string;\n originalValue: string;\n}\n\n/** Duration Inline Editor\n * @internal\n */\nexport class InlineEdit extends React.Component<\n InlineEditProps,\n InlineEditState\n> {\n private _inputRef = React.createRef<HTMLInputElement>();\n\n constructor(props: InlineEditProps) {\n super(props);\n\n this.state = {\n value: this.props.defaultValue,\n originalValue: this.props.defaultValue,\n };\n }\n\n public override componentDidUpdate(\n prevProps: InlineEditProps,\n _prevState: InlineEditState\n ) {\n if (prevProps.defaultValue !== this.props.defaultValue) {\n this.setState((_, props) => {\n return { value: props.defaultValue, originalValue: props.defaultValue };\n });\n }\n }\n\n private _onBlur = (event: React.ChangeEvent<HTMLInputElement>) => {\n this._sendChange(event.target.value);\n };\n\n private _onFocus = (event: React.ChangeEvent<HTMLInputElement>) => {\n event.target.select();\n };\n\n private _onKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n switch (event.key) {\n case Key.Escape.valueOf():\n this.setState(\n (prevState) => ({ value: prevState.originalValue }),\n () => this._inputRef.current!.select()\n );\n break;\n case Key.Enter.valueOf():\n this._sendChange(this.state.value);\n break;\n }\n };\n\n private _onChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n this.setState({ value: event.target.value });\n };\n\n private _sendChange(value: string) {\n if (this.props.onChange) this.props.onChange(value);\n }\n\n public override render() {\n return (\n <Input\n data-testid=\"timeline-duration-edit-input\"\n className={classnames(\"inline-edit-input\", this.props.className)}\n style={this.props.style}\n ref={this._inputRef}\n type=\"text\"\n value={this.state.value}\n size=\"small\"\n onFocus={this._onFocus}\n onBlur={this._onBlur}\n onKeyDown={this._onKeyDown}\n onChange={this._onChange}\n />\n );\n }\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface PlayButtonProps {
|
|
3
|
-
isPlaying: boolean;
|
|
4
|
-
onPlay?: () => void;
|
|
5
|
-
onPause?: () => void;
|
|
6
|
-
}
|
|
7
|
-
/** Play/pause button used in timeline components.
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export declare function PlayButton({ isPlaying, onPlay, onPause }: PlayButtonProps): React.JSX.Element;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=PlayButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlayButton.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/PlayButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,UAAU,eAAe;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,eAAe,qBAoBzE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlayButton.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/PlayButton.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAQnD;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAmB;IACxE,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,KAAK,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;IAExE,OAAO,CACL,oBAAC,UAAU,IACT,SAAS,EAAC,YAAY,EACtB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,GAAG,EAAE;YACZ,IAAI,SAAS,EAAE,CAAC;gBACd,OAAO,EAAE,EAAE,CAAC;gBACZ,OAAO;YACT,CAAC;YAED,MAAM,EAAE,EAAE,CAAC;QACb,CAAC,IAEA,SAAS,CAAC,CAAC,CAAC,oBAAC,QAAQ,OAAG,CAAC,CAAC,CAAC,oBAAC,OAAO,OAAG,CAC5B,CACd,CAAC;AACJ,CAAC","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 *--------------------------------------------------------------------------------------------*/\nimport * as React from \"react\";\nimport { SvgPause, SvgPlay } from \"@itwin/itwinui-icons-react\";\nimport { IconButton } from \"@itwin/itwinui-react\";\nimport { useTranslation } from \"../useTranslation\";\n\ninterface PlayButtonProps {\n isPlaying: boolean;\n onPlay?: () => void;\n onPause?: () => void;\n}\n\n/** Play/pause button used in timeline components.\n * @internal\n */\nexport function PlayButton({ isPlaying, onPlay, onPause }: PlayButtonProps) {\n const { translate } = useTranslation();\n const label = translate(isPlaying ? \"timeline.pause\" : \"timeline.play\");\n\n return (\n <IconButton\n styleType=\"borderless\"\n label={label}\n onClick={() => {\n if (isPlaying) {\n onPause?.();\n return;\n }\n\n onPlay?.();\n }}\n >\n {isPlaying ? <SvgPause /> : <SvgPlay />}\n </IconButton>\n );\n}\n"]}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import "./Scrubber.scss";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { Slider } from "@itwin/itwinui-react";
|
|
4
|
-
import type { CommonProps } from "@itwin/core-react";
|
|
5
|
-
import type { TimelineDateMarkerProps } from "./TimelineComponent";
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export declare function getPercentageOfRectangle(rect: DOMRect, pointer: number): number;
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare function RailMarkers({ showToolTip, percent, tooltipText, markDate, }: {
|
|
12
|
-
showToolTip: boolean;
|
|
13
|
-
percent: number;
|
|
14
|
-
tooltipText: string;
|
|
15
|
-
markDate?: DateMarkerProps;
|
|
16
|
-
}): React.JSX.Element;
|
|
17
|
-
/**
|
|
18
|
-
* Custom Timeline Thumb
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
|
-
export declare function CustomThumb(): React.JSX.Element;
|
|
22
|
-
/**
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
export declare function useFocusedThumb(sliderContainer: HTMLDivElement | undefined): boolean;
|
|
26
|
-
/** Properties for Scrubber/Slider used on timeline control
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
export interface ScrubberProps extends CommonProps {
|
|
30
|
-
currentDuration: number;
|
|
31
|
-
totalDuration: number;
|
|
32
|
-
isPlaying: boolean;
|
|
33
|
-
startDate?: Date;
|
|
34
|
-
endDate?: Date;
|
|
35
|
-
showTime?: boolean;
|
|
36
|
-
onChange?: (values: ReadonlyArray<number>) => void;
|
|
37
|
-
onUpdate?: (values: ReadonlyArray<number>) => void;
|
|
38
|
-
timeZoneOffset?: number;
|
|
39
|
-
markDate?: TimelineDateMarkerProps;
|
|
40
|
-
trackContainerProps?: React.ComponentProps<typeof Slider>["trackContainerProps"];
|
|
41
|
-
}
|
|
42
|
-
/** Properties for marking current date in RailMarkers
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
interface DateMarkerProps {
|
|
46
|
-
datePercentage: number;
|
|
47
|
-
dateMarker?: React.ReactNode;
|
|
48
|
-
}
|
|
49
|
-
/** Scrubber/Slider for timeline control
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
52
|
-
export declare function Scrubber(props: ScrubberProps): React.JSX.Element;
|
|
53
|
-
export {};
|
|
54
|
-
//# sourceMappingURL=Scrubber.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Scrubber.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/Scrubber.tsx"],"names":[],"mappings":"AAIA,OAAO,iBAAiB,CAAC;AACzB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,KAAK,EAAE,uBA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eAAe;QACf,aAAa;QACb,cAAc;QACd,SAAS;QACT,OAAO;QACP,cAAc;QACd,QAAQ;QACR,aAAa;QACb,KAAK,CAAC,QAAQ;KACf,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,MAAM,IACL,GAAG,EAAE,kBAAkB,EACvB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,CAAC,EACP,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,aAAa,EAClB,QAAQ,EAAC,EAAE,EACX,QAAQ,EAAC,EAAE,EACX,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,CAAC,eAAe,CAAC,EACzB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;YACjB,QAAQ,EAAE,oBAAC,WAAW,OAAG;YACzB,SAAS,EAAE,2BAA2B;SACvC,CAAC,EACF,UAAU,EAAE,SAAS,EACrB,cAAc,EAAE,kBAAkB,EAClC,aAAa,EAAE,iBAAiB,EAChC,cAAc,EAAE,kBAAkB,EAClC,mBAAmB,EAAE,mBAAmB,GACxC,CACH,CAAC;AACJ,CAAC","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 *--------------------------------------------------------------------------------------------*/\nimport \"./Scrubber.scss\";\nimport * as React from \"react\";\nimport { Slider } from \"@itwin/itwinui-react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { useEventListener } from \"@itwin/core-react\";\nimport { toDateString, toTimeString } from \"@itwin/components-react\";\nimport type { TimelineDateMarkerProps } from \"./TimelineComponent\";\n\n/**\n * @internal\n */\nexport function getPercentageOfRectangle(rect: DOMRect, pointer: number) {\n const position = Math.min(rect.right, Math.max(rect.left, pointer));\n return (position - rect.left) / rect.width;\n}\n\nconst formatDuration = (value: number) => {\n const addZero = (i: number) => {\n return i < 10 ? `0${i}` : i;\n };\n\n const date = new Date(value);\n const minutes = date.getUTCMinutes();\n const seconds = date.getUTCSeconds();\n return `${addZero(minutes)}:${addZero(seconds)}`;\n};\n\nconst formatDate = (\n startDate: Date,\n endDate: Date,\n fraction: number,\n timeZoneOffset?: number\n) => {\n const delta = (endDate.getTime() - startDate.getTime()) * fraction;\n const date = new Date(startDate.getTime() + delta);\n return toDateString(date, timeZoneOffset);\n};\n\nconst formatTime = (\n startDate: Date,\n endDate: Date,\n fraction: number,\n timeZoneOffset?: number\n) => {\n const delta = (endDate.getTime() - startDate.getTime()) * fraction;\n const date = new Date(startDate.getTime() + delta);\n return ` ${toTimeString(date, timeZoneOffset)}`;\n};\n\nfunction generateToolTipText(\n showTime: boolean,\n percent: number,\n min: number,\n max: number,\n startDate?: Date,\n endDate?: Date,\n timeZoneOffset = 0\n) {\n if (startDate && endDate)\n return `${formatDate(startDate, endDate, percent, timeZoneOffset)}${\n showTime ? formatTime(startDate, endDate, percent, timeZoneOffset) : \"\"\n } `;\n\n const val = Math.round(min + (max - min) * percent);\n return formatDuration(val);\n}\n\nfunction getPercentageFromDate(startDate: Date, endDate: Date, date?: Date) {\n const newDate = date ? date : new Date();\n const startTime = startDate.getTime();\n const totalDuration = endDate.getTime() - startTime;\n return (newDate.getTime() - startTime) / totalDuration;\n}\n\nfunction getDateMarker(\n dateMarkerPropsIn: TimelineDateMarkerProps,\n startDate: Date,\n endDate: Date\n): DateMarkerProps {\n const percentage = getPercentageFromDate(\n startDate,\n endDate,\n dateMarkerPropsIn.date\n );\n const marker = dateMarkerPropsIn.dateMarker ? (\n dateMarkerPropsIn.dateMarker\n ) : (\n <span className=\"date-marker-default\"></span>\n );\n return { datePercentage: percentage, dateMarker: marker };\n}\n\nfunction markDateInTimelineRange(\n dateMarkerProps?: TimelineDateMarkerProps,\n startDate?: Date,\n endDate?: Date\n): boolean {\n if (dateMarkerProps && startDate && endDate) {\n const inDate = dateMarkerProps.date ? dateMarkerProps.date : new Date();\n if (\n inDate.getTime() >= startDate.getTime() &&\n inDate.getTime() <= endDate.getTime()\n )\n return true;\n }\n return false;\n}\n\n/** @internal */\nexport function RailMarkers({\n showToolTip,\n percent,\n tooltipText,\n markDate,\n}: {\n showToolTip: boolean;\n percent: number;\n tooltipText: string;\n markDate?: DateMarkerProps;\n}) {\n return (\n <div className=\"components-timeline-rail-marker-container\">\n {showToolTip && (\n <div\n className=\"components-timeline-tooltip\"\n style={{ left: `${Math.round(percent * 100)}% ` }}\n >\n <span className=\"tooltip-text\">{tooltipText}</span>\n </div>\n )}\n {markDate && (\n <div\n className=\"components-timeline-date-marker\"\n data-testid=\"test-date-marker\"\n style={{ left: `${Math.round(markDate.datePercentage * 100)}% ` }}\n >\n {markDate.dateMarker}\n </div>\n )}\n </div>\n );\n}\n\n/**\n * Custom Timeline Thumb\n * @internal\n */\nexport function CustomThumb() {\n return (\n <div className=\"scrubber-handle\">\n <div />\n <div />\n <div />\n </div>\n );\n}\n\n/**\n * @internal\n */\nexport function useFocusedThumb(sliderContainer: HTMLDivElement | undefined) {\n const [thumbElement, setThumbElement] = React.useState<HTMLDivElement>();\n\n React.useLayoutEffect(() => {\n if (!sliderContainer) return;\n const element = sliderContainer.querySelector(\".components-timeline-thumb\");\n if (!element) return;\n setThumbElement(element as HTMLDivElement);\n }, [sliderContainer, thumbElement]);\n\n const [thumbHasFocus, setThumbHasFocus] = React.useState(false);\n\n const handleThumbFocus = React.useCallback(() => {\n setThumbHasFocus(true);\n }, []);\n\n const handleThumbBlur = React.useCallback(() => {\n setThumbHasFocus(false);\n }, []);\n\n useEventListener(\"focus\", handleThumbFocus, thumbElement);\n useEventListener(\"blur\", handleThumbBlur, thumbElement);\n return thumbHasFocus;\n}\n\n/** Properties for Scrubber/Slider used on timeline control\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface ScrubberProps extends CommonProps {\n currentDuration: number;\n totalDuration: number;\n isPlaying: boolean;\n startDate?: Date;\n endDate?: Date;\n showTime?: boolean;\n onChange?: (values: ReadonlyArray<number>) => void;\n onUpdate?: (values: ReadonlyArray<number>) => void;\n timeZoneOffset?: number;\n markDate?: TimelineDateMarkerProps;\n trackContainerProps?: React.ComponentProps<\n typeof Slider\n >[\"trackContainerProps\"];\n}\n\n/** Properties for marking current date in RailMarkers\n * @internal\n */\ninterface DateMarkerProps {\n datePercentage: number;\n dateMarker?: React.ReactNode;\n}\n/** Scrubber/Slider for timeline control\n * @internal\n */\nexport function Scrubber(props: ScrubberProps) {\n const {\n startDate,\n endDate,\n showTime,\n isPlaying,\n totalDuration,\n timeZoneOffset,\n currentDuration,\n className,\n onChange,\n onUpdate,\n trackContainerProps,\n } = props;\n\n const [sliderContainer, setSliderContainer] =\n React.useState<HTMLDivElement | null>(null);\n const [pointerPercent, setPointerPercent] = React.useState(0);\n\n const tooltipProps = React.useCallback(() => {\n return { visible: false };\n }, []);\n\n const [showRailTooltip, setShowRailTooltip] = React.useState(false);\n\n const handlePointerEnter = React.useCallback(() => {\n setShowRailTooltip(true);\n }, []);\n\n const handlePointerLeave = React.useCallback(() => {\n setShowRailTooltip(false);\n }, []);\n\n const handlePointerMove = React.useCallback(\n (event: React.PointerEvent) => {\n sliderContainer &&\n setPointerPercent(\n getPercentageOfRectangle(\n sliderContainer.getBoundingClientRect(),\n event.clientX\n )\n );\n },\n [sliderContainer]\n );\n\n const thumbHasFocus = useFocusedThumb(sliderContainer ?? undefined);\n\n const tickLabel = React.useMemo(() => {\n const showTip = isPlaying || showRailTooltip || thumbHasFocus;\n const percent =\n isPlaying || thumbHasFocus\n ? currentDuration / totalDuration\n : pointerPercent;\n const markDateInRange = markDateInTimelineRange(\n props.markDate,\n startDate,\n endDate\n );\n const currentDateMarker =\n props.markDate && markDateInRange && startDate && endDate\n ? getDateMarker(props.markDate, startDate, endDate)\n : undefined;\n const tooltipText = generateToolTipText(\n !!showTime,\n percent,\n 0,\n totalDuration,\n startDate,\n endDate,\n timeZoneOffset\n );\n return (\n <RailMarkers\n showToolTip={showTip}\n percent={percent}\n tooltipText={tooltipText}\n markDate={currentDateMarker}\n />\n );\n }, [\n isPlaying,\n showRailTooltip,\n currentDuration,\n totalDuration,\n pointerPercent,\n startDate,\n endDate,\n timeZoneOffset,\n showTime,\n thumbHasFocus,\n props.markDate,\n ]);\n\n return (\n <Slider\n ref={setSliderContainer}\n className={className}\n step={1}\n min={0}\n max={totalDuration}\n minLabel=\"\"\n maxLabel=\"\"\n onUpdate={onUpdate}\n onChange={onChange}\n values={[currentDuration]}\n tooltipProps={tooltipProps}\n thumbProps={() => ({\n children: <CustomThumb />,\n className: \"components-timeline-thumb\",\n })}\n tickLabels={tickLabel}\n onPointerEnter={handlePointerEnter}\n onPointerMove={handlePointerMove}\n onPointerLeave={handlePointerLeave}\n trackContainerProps={trackContainerProps}\n />\n );\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SolarTimeline.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/SolarTimeline.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAe,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AA4B3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AA8EtD,UAAU,2BAA2B;IACnC,YAAY,EAAE,iBAAiB,CAAC;IAChC,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,2BAA2B;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,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AC,OAAO,EAAC,EAAE,EAAC,IAAI,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,IACzD,kBAAkB,CAAC,SAAS,CAAC,2BAA2B,CAAC,CACrD;wBACP,oBAAC,YAAY,OAAG;wBAChB,oBAAC,eAAe,IAAC,kBAAkB,EAAC,KAAK,GAAG;wBAC5C,oBAAC,YAAY,IACX,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,GACvD,CACU,EAEhB,SAAS,EAAC,KAAK,EACf,UAAU,EAAE;wBACV,MAAM;qBACP;oBAED,oBAAC,UAAU,IACT,SAAS,EAAC,YAAY,iBACV,wBAAwB,EACpC,KAAK,EAAE,kBAAkB,CAAC,SAAS,CAAC,mBAAmB,CAAC,EACxD,OAAO,EAAE,IAAI,CAAC,oBAAoB;wBAElC,oBAAC,WAAW,OAAG,CACJ,CACL,CACL,CACH,CACP,CAAC;IACJ,CAAC;CACF;AAOD,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CACrC,SAAS,cAAc,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,GAAG;IAChD,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,OAAO,GAAG,SAAS,CAAC,wBAAwB,CAAC,CAAC;IAEpD,OAAO,CACL,oBAAC,OAAO,IAAC,OAAO,EAAE,OAAO;QACvB,oBAAC,MAAM,IACL,SAAS,EAAC,YAAY,EACtB,SAAS,EAAE,oBAAC,WAAW,OAAG,iBACd,wBAAwB,EACpC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG;YAER,8BAAM,SAAS,EAAC,0BAA0B,IAAE,QAAQ,CAAQ,CACrD,CACD,CACX,CAAC;AACJ,CAAC,CACF,CAAC","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 Timeline\n */\n\nimport \"./SolarTimeline.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { ColorByName, ColorDef } from \"@itwin/core-common\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { adjustDateToTimezone, UiComponents } from \"@itwin/components-react\";\nimport {\n Button,\n ColorBuilder,\n ColorInputPanel,\n ColorPalette,\n ColorPicker,\n DatePicker,\n Flex,\n Icon,\n IconButton,\n Label,\n Popover,\n Select,\n Slider,\n Text,\n Tooltip,\n VisuallyHidden,\n} from \"@itwin/itwinui-react\";\nimport {\n SvgCalendar,\n SvgLoop,\n SvgMoon,\n SvgSettings,\n SvgSun,\n} from \"@itwin/itwinui-icons-react\";\nimport type { SolarDataProvider } from \"./interfaces\";\nimport { UiIModelComponents } from \"../UiIModelComponents\";\nimport { PlayButton } from \"./PlayButton\";\nimport { useTranslation } from \"../useTranslation\";\n\nconst msPerMinute = 1000 * 60;\nconst msPerHour = msPerMinute * 60;\nconst defaultPlaybackDuration = 40 * 1000;\n\nconst offset = 6;\n\n// eslint-disable-next-line deprecation/deprecation\ninterface TimelineProps extends CommonProps {\n dayStartMs: number;\n sunRiseOffsetMs: number;\n sunSetOffsetMs: number;\n currentTimeOffsetMs: number;\n isPlaying: boolean;\n formatTick?: (ms: number) => string;\n formatTime: (ms: number) => string;\n onChange?: (values: ReadonlyArray<number>) => void;\n onUpdate?: (values: ReadonlyArray<number>) => void;\n}\n\nfunction Timeline(props: TimelineProps) {\n const {\n formatTick,\n formatTime,\n onChange,\n onUpdate,\n dayStartMs,\n sunSetOffsetMs,\n sunRiseOffsetMs,\n currentTimeOffsetMs,\n } = props;\n\n const tooltipContent = formatTime(dayStartMs + currentTimeOffsetMs);\n\n const className = classnames(\n \"solar-timeline\",\n props.className,\n formatTick && \"showticks\"\n );\n const sunRiseStr = formatTime(dayStartMs + sunRiseOffsetMs);\n const sunSetStr = formatTime(dayStartMs + sunSetOffsetMs);\n return (\n <div className={className}>\n <VisuallyHidden>Solar timeline</VisuallyHidden>\n <Slider\n thumbProps={() => ({ \"aria-labelledby\": \"timeline\" })}\n step={msPerMinute}\n min={sunRiseOffsetMs}\n max={sunSetOffsetMs}\n minLabel={\n <Tooltip content={sunRiseStr}>\n <Icon>\n <SvgSun />\n </Icon>\n </Tooltip>\n }\n maxLabel={\n <Tooltip content={sunSetStr}>\n <Icon>\n <SvgMoon />\n </Icon>\n </Tooltip>\n }\n onUpdate={onUpdate}\n onChange={onChange}\n values={[currentTimeOffsetMs]}\n tooltipProps={() => ({\n content: tooltipContent,\n })}\n />\n </div>\n );\n}\n\ninterface SolarTimelineComponentProps {\n dataProvider: SolarDataProvider; // provides date, sunrise, sunset in ms, also contains timezone offset from UTC, and updates the display style to current time.\n onPlayPause?: (playing: boolean) => void; // callback triggered when play/pause button is pressed\n duration?: number; // playback duration in milliseconds\n speed?: number;\n}\n\ninterface SolarTimelineComponentState {\n isPlaying: boolean; // timeline is currently playing or paused\n isDateOpened: boolean; // date picker is opened\n isSettingsOpened: boolean; // settings popup is opened\n dayStartMs: number;\n sunRiseOffsetMs: number;\n sunSetOffsetMs: number;\n sunDeltaMs: number;\n currentTimeOffsetMs: number;\n speed: number;\n loop: boolean;\n shadowColor: ColorDef;\n duration: number; // playback duration in milliseconds\n adjustedDuration: number; // playback duration in milliseconds/ speed\n}\n\n/** Solar Timeline\n * @alpha\n */\nexport class SolarTimeline extends React.PureComponent<\n SolarTimelineComponentProps,\n SolarTimelineComponentState\n> {\n private _requestFrame = 0;\n private _unmounted = false;\n private _timeLastCycle = 0;\n private _totalPlayTime = 0;\n\n private readonly _presetColors = [\n ColorDef.create(ColorByName.grey),\n ColorDef.create(ColorByName.lightGrey),\n ColorDef.create(ColorByName.darkGrey),\n ColorDef.create(ColorByName.lightBlue),\n ColorDef.create(ColorByName.lightGreen),\n ColorDef.create(ColorByName.darkGreen),\n ColorDef.create(ColorByName.tan),\n ColorDef.create(ColorByName.darkBrown),\n ];\n\n private readonly _speeds = [1, 2, 3, 4, 5, 6];\n\n constructor(props: SolarTimelineComponentProps) {\n super(props);\n\n const dayStartMs = this.props.dataProvider.dayStartMs;\n const sunRiseOffsetMs =\n this.props.dataProvider.sunrise.getTime() - dayStartMs;\n const sunSetOffsetMs =\n this.props.dataProvider.sunset.getTime() - dayStartMs;\n const sunDeltaMs = sunSetOffsetMs - sunRiseOffsetMs;\n const sunOffsetMs =\n this.props.dataProvider.timeOfDay.getTime() - dayStartMs;\n const currentTimeOffsetMs = this.ensureRange(\n sunOffsetMs,\n sunRiseOffsetMs,\n sunSetOffsetMs\n );\n const shadowColor = this.props.dataProvider.shadowColor;\n const duration = this.props.duration\n ? this.props.duration\n : defaultPlaybackDuration;\n const speed = this.props.speed ? this.props.speed : 2;\n const adjustedDuration = duration / speed;\n this.setPlaybackTimeBySunTime(\n currentTimeOffsetMs,\n sunRiseOffsetMs,\n sunDeltaMs,\n adjustedDuration\n );\n\n this.state = {\n isDateOpened: false,\n isSettingsOpened: false,\n isPlaying: false,\n dayStartMs,\n sunRiseOffsetMs,\n sunSetOffsetMs,\n sunDeltaMs,\n currentTimeOffsetMs,\n speed,\n loop: false,\n shadowColor,\n duration,\n adjustedDuration,\n };\n }\n\n public override componentWillUnmount() {\n window.cancelAnimationFrame(this._requestFrame);\n this._unmounted = true;\n }\n\n // recursively update the animation until we hit the end or the pause button is clicked\n private _updateAnimation = (_timestamp: number) => {\n if (!this.state.isPlaying || this._unmounted) {\n window.cancelAnimationFrame(this._requestFrame);\n return;\n }\n\n const currentTime = new Date().getTime();\n this._totalPlayTime += currentTime - this._timeLastCycle;\n this._timeLastCycle = currentTime;\n let percentComplete = this._totalPlayTime / this.state.adjustedDuration;\n if (percentComplete > 1) percentComplete = 1;\n\n let newPlayingState = true;\n\n // calculate the next sun time base on the percentage playback complete - should be int value as that is step amount for slider\n let nextSunOffset = Math.floor(\n this.state.sunRiseOffsetMs + percentComplete * this.state.sunDeltaMs\n );\n\n if (percentComplete > 0.99) {\n if (!this.state.loop) {\n newPlayingState = false;\n nextSunOffset = this.state.sunSetOffsetMs;\n window.cancelAnimationFrame(this._requestFrame);\n } else {\n nextSunOffset = this.state.sunRiseOffsetMs;\n this._totalPlayTime = 0;\n }\n }\n\n if (this.props.dataProvider.onTimeChanged) {\n const currentSunTime = new Date(this.state.dayStartMs + nextSunOffset);\n this.props.dataProvider.onTimeChanged(currentSunTime);\n }\n\n this.setState(\n { isPlaying: newPlayingState, currentTimeOffsetMs: nextSunOffset },\n () => {\n if (newPlayingState)\n this._requestFrame = window.requestAnimationFrame(\n this._updateAnimation\n );\n }\n );\n };\n\n private _play(sunTimeMs: number) {\n this._timeLastCycle = new Date().getTime();\n\n // start playing\n this.setState({ isPlaying: true, currentTimeOffsetMs: sunTimeMs }, () => {\n this._requestFrame = window.requestAnimationFrame(this._updateAnimation);\n if (this.props.onPlayPause) this.props.onPlayPause(true);\n });\n }\n\n // user clicked pause button\n private _onPause = () => {\n if (!this.state.isPlaying) return;\n\n const currentTime = new Date().getTime();\n this._totalPlayTime += currentTime - this._timeLastCycle;\n\n // stop requesting frames\n window.cancelAnimationFrame(this._requestFrame);\n\n // stop playing\n this.setState({ isPlaying: false });\n\n if (this.props.onPlayPause) this.props.onPlayPause(false);\n };\n\n // user clicked play button\n private _onPlay = () => {\n if (this.state.isPlaying) return;\n\n if (\n this.state.currentTimeOffsetMs >= this.state.sunSetOffsetMs ||\n this.state.currentTimeOffsetMs <= this.state.sunRiseOffsetMs\n ) {\n this._totalPlayTime = 0;\n this._play(this.state.sunRiseOffsetMs);\n } else {\n this._play(this.state.currentTimeOffsetMs);\n }\n };\n\n private setPlaybackTimeBySunTime(\n sunOffsetMs: number,\n sunRiseOffsetMs: number,\n sunDeltaMs: number,\n adjustedDuration?: number\n ) {\n this._totalPlayTime =\n ((sunOffsetMs - sunRiseOffsetMs) / sunDeltaMs) *\n (adjustedDuration ? adjustedDuration : this.state.adjustedDuration);\n }\n\n private _onDateChange = (newDate: Date) => {\n this.props.dataProvider.setDateAndTime(newDate);\n\n const dayStartMs = this.props.dataProvider.dayStartMs;\n const sunRiseOffsetMs =\n this.props.dataProvider.sunrise.getTime() - dayStartMs;\n const sunSetOffsetMs =\n this.props.dataProvider.sunset.getTime() - dayStartMs;\n const sunDeltaMs = sunSetOffsetMs - sunRiseOffsetMs;\n\n /** call dataProvider to update display style */\n // this.props.dataProvider.onTimeChanged?.(this.props.dataProvider.timeOfDay);\n\n // Update time\n const newHours = newDate.getHours();\n const newMinutes = newDate.getMinutes();\n const newSunTime = newHours * msPerHour + newMinutes * msPerMinute;\n const dateWithNewTime = new Date(dayStartMs + newSunTime);\n // this.props.dataProvider.setDateAndTime(dateWithNewTime, true);\n\n const currentTimeOffsetMs = this.ensureRange(\n newSunTime,\n sunRiseOffsetMs,\n sunSetOffsetMs\n );\n this.setPlaybackTimeBySunTime(\n currentTimeOffsetMs,\n sunRiseOffsetMs,\n sunDeltaMs\n );\n this._timeLastCycle = new Date().getTime();\n\n this.props.dataProvider.onTimeChanged?.(dateWithNewTime);\n this.setState({\n dayStartMs,\n sunRiseOffsetMs,\n sunSetOffsetMs,\n currentTimeOffsetMs,\n sunDeltaMs,\n isDateOpened: false,\n });\n };\n\n private _onCloseSettingsPopup = () => {\n this.setState({ isSettingsOpened: false });\n };\n\n private _onOpenSettingsPopup = () => {\n this.setState((prevState) => ({\n isSettingsOpened: !prevState.isSettingsOpened,\n }));\n };\n\n private ensureRange(value: number, min: number, max: number): number {\n return Math.max(Math.min(value, max), min);\n }\n\n private processSunTimeChange(sunTime: number) {\n if (sunTime === this.state.currentTimeOffsetMs) return;\n\n const currentTimeOffsetMs = this.ensureRange(\n sunTime,\n this.state.sunRiseOffsetMs,\n this.state.sunSetOffsetMs\n );\n\n if (this.props.dataProvider.onTimeChanged) {\n const currentSunTime = new Date(\n this.state.dayStartMs + currentTimeOffsetMs\n );\n this.props.dataProvider.onTimeChanged(currentSunTime);\n }\n\n this.setState({ currentTimeOffsetMs }, () => {\n const currentTime = new Date().getTime();\n this._timeLastCycle = currentTime;\n const percentComplete =\n (currentTimeOffsetMs - this.state.sunRiseOffsetMs) /\n this.state.sunDeltaMs;\n this._totalPlayTime = percentComplete * this.state.adjustedDuration;\n });\n }\n\n private _onUpdate = (values: ReadonlyArray<number>) => {\n if (!this.state.isPlaying) this.processSunTimeChange(values[0]);\n };\n\n private _onChange = (values: ReadonlyArray<number>) => {\n if (!this.state.isPlaying) this.processSunTimeChange(values[0]);\n };\n\n private _onSpeedChange = (value: number) => {\n const adjustedDuration = this.state.duration / value;\n this.setState({ speed: value, adjustedDuration });\n };\n\n private _onToggleLoop = () => {\n this.setState((prevState) => ({ loop: !prevState.loop }));\n };\n\n private _formatTime = (ms: number) => {\n const date = new Date(ms);\n const amLabel = UiComponents.translate(\"time.am\");\n const pmLabel = UiComponents.translate(\"time.pm\");\n // convert project date to browser locale date\n const localTime = adjustDateToTimezone(\n date,\n this.props.dataProvider.timeZoneOffset * 60\n );\n let hours = localTime.getHours();\n const minutes = date.getMinutes();\n const abbrev = hours < 12 ? amLabel : hours === 24 ? amLabel : pmLabel;\n hours = hours > 12 ? hours - 12 : hours;\n const hoursStr = hours.toLocaleString(undefined, {\n minimumIntegerDigits: 2,\n });\n const minutesStr = minutes.toLocaleString(undefined, {\n minimumIntegerDigits: 2,\n });\n return `${hoursStr}:${minutesStr} ${abbrev}`;\n };\n\n public getLocalTime(ticks: number): Date {\n const projectTime = new Date(ticks);\n // convert project date to browser locale date\n return adjustDateToTimezone(\n projectTime,\n this.props.dataProvider.timeZoneOffset * 60\n );\n }\n\n public override render() {\n const { dataProvider } = this.props;\n const {\n speed: currentSpeed,\n loop,\n currentTimeOffsetMs,\n sunRiseOffsetMs,\n sunSetOffsetMs,\n } = this.state;\n const months = [\n UiComponents.translate(\"month.short.january\"),\n UiComponents.translate(\"month.short.february\"),\n UiComponents.translate(\"month.short.march\"),\n UiComponents.translate(\"month.short.april\"),\n UiComponents.translate(\"month.short.may\"),\n UiComponents.translate(\"month.short.june\"),\n UiComponents.translate(\"month.short.july\"),\n UiComponents.translate(\"month.short.august\"),\n UiComponents.translate(\"month.short.september\"),\n UiComponents.translate(\"month.short.october\"),\n UiComponents.translate(\"month.short.november\"),\n UiComponents.translate(\"month.short.december\"),\n ];\n\n const localTime = this.getLocalTime(\n this.state.dayStartMs + this.state.currentTimeOffsetMs\n );\n const formattedTime = this._formatTime(\n dataProvider.dayStartMs + currentTimeOffsetMs\n );\n const formattedDate = `${\n months[localTime.getMonth()]\n }, ${localTime.getDate()}`;\n\n return (\n <div className=\"solar-timeline-wrapper\">\n <Flex flexWrap=\"wrap\" gap=\"none\" className=\"solar-timeline-start\">\n <PlayButton\n isPlaying={this.state.isPlaying}\n onPlay={this._onPlay}\n onPause={this._onPause}\n />\n <Popover\n content={\n <DatePicker\n date={localTime}\n onChange={this._onDateChange}\n showTime\n use12Hours\n />\n }\n visible={this.state.isDateOpened}\n onVisibleChange={(isDateOpened) => {\n this.setState({ isDateOpened });\n }}\n placement=\"top\"\n middleware={{\n offset,\n }}\n >\n <CalendarButton\n onClick={() => {\n const isDateOpened = !this.state.isDateOpened;\n this.setState({ isDateOpened });\n }}\n >\n {formattedDate} @ {formattedTime}\n </CalendarButton>\n </Popover>\n </Flex>\n\n <Timeline\n dayStartMs={dataProvider.dayStartMs}\n sunSetOffsetMs={sunSetOffsetMs}\n sunRiseOffsetMs={sunRiseOffsetMs}\n currentTimeOffsetMs={currentTimeOffsetMs}\n onChange={this._onChange}\n onUpdate={this._onUpdate}\n formatTime={this._formatTime}\n isPlaying={this.state.isPlaying}\n />\n\n <Flex\n justifyContent=\"flex-end\"\n flexWrap=\"wrap\"\n gap=\"none\"\n className=\"solar-timeline-end\"\n >\n <VisuallyHidden>\n <Label htmlFor=\"speed\">Timeline speed</Label>\n </VisuallyHidden>\n <Tooltip\n content={UiIModelComponents.translate(\"solartimeline.speed\")}\n >\n <Select\n native\n styleType=\"borderless\"\n triggerProps={{\n name: \"speed\",\n }}\n onChange={(newValue) => this._onSpeedChange(Number(newValue))}\n value={currentSpeed.toString()}\n options={this._speeds.map((speed) => ({\n value: speed.toString(),\n label: `${speed}x`,\n }))}\n />\n </Tooltip>\n\n <IconButton\n styleType=\"borderless\"\n label={UiIModelComponents.translate(\"timeline.repeat\")}\n onClick={this._onToggleLoop}\n isActive={loop}\n >\n <SvgLoop />\n </IconButton>\n\n <Popover\n content={\n <ColorPicker\n selectedColor={this.state.shadowColor.colors}\n onChangeComplete={(color) => {\n const colorDef = ColorDef.create(color.toTbgr());\n this.setState(\n { shadowColor: colorDef },\n () => (this.props.dataProvider.shadowColor = colorDef)\n );\n }}\n >\n <Text variant=\"title\" as=\"h2\" style={{ textAlign: \"center\" }}>\n {UiIModelComponents.translate(\"solarsettings.shadowcolor\")}\n </Text>\n <ColorBuilder />\n <ColorInputPanel defaultColorFormat=\"hsl\" />\n <ColorPalette\n colors={this._presetColors.map((color) => color.colors)}\n />\n </ColorPicker>\n }\n placement=\"top\"\n middleware={{\n offset,\n }}\n >\n <IconButton\n styleType=\"borderless\"\n data-testid=\"shadow-settings-button\"\n label={UiIModelComponents.translate(\"timeline.settings\")}\n onClick={this._onOpenSettingsPopup}\n >\n <SvgSettings />\n </IconButton>\n </Popover>\n </Flex>\n </div>\n );\n }\n}\n\ninterface CalendarButtonProps {\n children?: React.ReactNode;\n onClick?: () => void;\n}\n\nconst CalendarButton = React.forwardRef<HTMLButtonElement, CalendarButtonProps>(\n function CalendarButton({ children, onClick }, ref) {\n const { translate } = useTranslation();\n const tooltip = translate(\"solartimeline.dateTime\");\n\n return (\n <Tooltip content={tooltip}>\n <Button\n styleType=\"borderless\"\n startIcon={<SvgCalendar />}\n data-testid=\"solar-date-time-button\"\n title={tooltip}\n onClick={onClick}\n ref={ref}\n >\n <span className=\"solar-timeline-date-time\">{children}</span>\n </Button>\n </Tooltip>\n );\n }\n);\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Timeline
|
|
3
|
-
*/
|
|
4
|
-
import "./SpeedTimeline.scss";
|
|
5
|
-
import * as React from "react";
|
|
6
|
-
import type { CommonProps } from "@itwin/core-react";
|
|
7
|
-
interface SpeedProps extends CommonProps {
|
|
8
|
-
speed: number;
|
|
9
|
-
onChange?: (value: number) => void;
|
|
10
|
-
}
|
|
11
|
-
/** Speed Timeline used in Solar Timeline component
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
export declare function SpeedTimeline(props: SpeedProps): React.JSX.Element;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=SpeedTimeline.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpeedTimeline.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/SpeedTimeline.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD,UAAU,UAAW,SAAQ,WAAW;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,qBA0B9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpeedTimeline.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/SpeedTimeline.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,sBAAsB,CAAC;AAC9B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAW9C;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,KAAiB;IAC7C,MAAM,QAAQ,GAAG,CAAC,MAA6B,EAAE,EAAE;QACjD,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;YAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxE,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QAC1C,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,6BAAK,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3D,oBAAC,MAAM,IACL,IAAI,EAAE,CAAC,EACP,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,CAAC,EACN,QAAQ,EAAC,EAAE,EACX,QAAQ,EAAC,EAAE,EACX,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EACrB,gBAAgB,EAAC,MAAM,EACvB,YAAY,EAAE,YAAY,GAC1B,CACE,CACP,CAAC;AACJ,CAAC","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 Timeline\n */\n\nimport \"./SpeedTimeline.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { Slider } from \"@itwin/itwinui-react\";\nimport type { CommonProps } from \"@itwin/core-react\";\n\n// component is in alpha state - it may change after usability testing - test coverage not complete\n\n// eslint-disable-next-line deprecation/deprecation\ninterface SpeedProps extends CommonProps {\n speed: number;\n onChange?: (value: number) => void;\n}\n\n/** Speed Timeline used in Solar Timeline component\n * @internal\n */\nexport function SpeedTimeline(props: SpeedProps) {\n const onChange = (values: ReadonlyArray<number>) => {\n const value = values[0];\n if (props.onChange && value >= 1 && value <= 6) props.onChange(value);\n };\n\n const tooltipProps = React.useCallback(() => {\n return { visible: false };\n }, []);\n\n return (\n <div className={classnames(\"speed-timeline\", props.className)}>\n <Slider\n step={1}\n min={1}\n max={6}\n minLabel=\"\"\n maxLabel=\"\"\n onUpdate={onChange}\n onChange={onChange}\n values={[props.speed]}\n trackDisplayMode=\"none\"\n tooltipProps={tooltipProps}\n />\n </div>\n );\n}\n"]}
|
|
@@ -1,40 +0,0 @@
|
|
|
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/style/themecolors";
|
|
6
|
-
|
|
7
|
-
.speed-timeline {
|
|
8
|
-
position: relative;
|
|
9
|
-
height: 25px;
|
|
10
|
-
|
|
11
|
-
.railOuter {
|
|
12
|
-
position: absolute;
|
|
13
|
-
width: 100%;
|
|
14
|
-
height: 100%;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.railInner {
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: 50%;
|
|
21
|
-
transform: translateY(-50%);
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 2px;
|
|
24
|
-
pointer-events: none;
|
|
25
|
-
background: $buic-background-5;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.scrubberHandle {
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: 50%;
|
|
31
|
-
transform: translate(-50%, -50%);
|
|
32
|
-
z-index: 4;
|
|
33
|
-
width: 12px;
|
|
34
|
-
height: 12px;
|
|
35
|
-
cursor: pointer;
|
|
36
|
-
border: none;
|
|
37
|
-
border-radius: 50%;
|
|
38
|
-
background: $buic-foreground-primary;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineComponent.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/TimelineComponent.tsx"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAQnD,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,cAAc,CAAC;AAU5E;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IAEd,+CAA+C;IAC/C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,6DAA6D;IAC7D,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,6GAA6G;IAC7G,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,wEAAwE;IACxE,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,gEAAgE;IAChE,OAAO,CAAC,EAAE,IAAI,CAAC;IACf;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,C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