@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":"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,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module QuantityFormat
|
|
8
|
-
*/
|
|
9
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
-
}
|
|
15
|
-
Object.defineProperty(o, k2, desc);
|
|
16
|
-
}) : (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === undefined) k2 = k;
|
|
18
|
-
o[k2] = m[k];
|
|
19
|
-
}));
|
|
20
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
-
}) : function(o, v) {
|
|
23
|
-
o["default"] = v;
|
|
24
|
-
});
|
|
25
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
-
if (mod && mod.__esModule) return mod;
|
|
27
|
-
var result = {};
|
|
28
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
-
__setModuleDefault(result, mod);
|
|
30
|
-
return result;
|
|
31
|
-
};
|
|
32
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.UnitDescr = void 0;
|
|
34
|
-
const React = __importStar(require("react"));
|
|
35
|
-
const itwinui_react_1 = require("@itwin/itwinui-react");
|
|
36
|
-
async function getUnitConversionData(possibleUnits, toUnit, unitsProvider) {
|
|
37
|
-
const unitConversionEntries = possibleUnits.map(async (unit) => {
|
|
38
|
-
const conversion = await unitsProvider.getConversion(unit, toUnit);
|
|
39
|
-
return { conversion, unitProps: unit };
|
|
40
|
-
});
|
|
41
|
-
return unitConversionEntries;
|
|
42
|
-
}
|
|
43
|
-
async function getPossibleUnits(parentUnit, unitsProvider, ensureCompatibleComposite) {
|
|
44
|
-
const phenomenon = parentUnit.phenomenon;
|
|
45
|
-
const possibleUnits = await unitsProvider.getUnitsByFamily(phenomenon);
|
|
46
|
-
if (!ensureCompatibleComposite)
|
|
47
|
-
return possibleUnits;
|
|
48
|
-
const conversionPromises = await getUnitConversionData(possibleUnits, parentUnit, unitsProvider);
|
|
49
|
-
const conversionEntries = await Promise.all(conversionPromises);
|
|
50
|
-
// sort the entries so the best potential sub unit will be the first one in the array
|
|
51
|
-
return conversionEntries
|
|
52
|
-
.filter((entry) => entry.unitProps.system === parentUnit.system &&
|
|
53
|
-
entry.conversion.factor < 1)
|
|
54
|
-
.sort((a, b) => b.conversion.factor - a.conversion.factor)
|
|
55
|
-
.map((value) => value.unitProps);
|
|
56
|
-
}
|
|
57
|
-
function getUnitName(fullUnitName) {
|
|
58
|
-
const nameParts = fullUnitName.split(/[.:]/);
|
|
59
|
-
if (nameParts.length > 0)
|
|
60
|
-
return nameParts[nameParts.length - 1];
|
|
61
|
-
throw Error("Bad unit name encountered");
|
|
62
|
-
}
|
|
63
|
-
/** Component use to display dropdown list of possible units.
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
function UnitDescr(props) {
|
|
67
|
-
const { name, label, parentUnitName, index, onUnitChange, onLabelChange, readonly, unitsProvider, } = props;
|
|
68
|
-
const [unitOptions, setUnitOptions] = React.useState([
|
|
69
|
-
{ value: name, label: getUnitName(name) },
|
|
70
|
-
]);
|
|
71
|
-
const [currentUnit, setCurrentUnit] = React.useState({ name, label });
|
|
72
|
-
const isMounted = React.useRef(false);
|
|
73
|
-
React.useEffect(() => {
|
|
74
|
-
isMounted.current = true;
|
|
75
|
-
return () => {
|
|
76
|
-
isMounted.current = false;
|
|
77
|
-
};
|
|
78
|
-
});
|
|
79
|
-
React.useEffect(() => {
|
|
80
|
-
async function fetchAllowableUnitSelections() {
|
|
81
|
-
const currentUnitProps = await unitsProvider.findUnitByName(name);
|
|
82
|
-
const parentUnit = await unitsProvider.findUnitByName(parentUnitName ? parentUnitName : name);
|
|
83
|
-
if (parentUnit && currentUnitProps) {
|
|
84
|
-
let potentialSubUnit;
|
|
85
|
-
const potentialUnits = await getPossibleUnits(parentUnit, unitsProvider, index !== 0);
|
|
86
|
-
if (index < 3) {
|
|
87
|
-
const potentialSubUnits = await getPossibleUnits(currentUnitProps, unitsProvider, true);
|
|
88
|
-
if (potentialSubUnits.length)
|
|
89
|
-
potentialSubUnit = potentialSubUnits[0];
|
|
90
|
-
}
|
|
91
|
-
const options = potentialUnits.length > 0
|
|
92
|
-
? potentialUnits
|
|
93
|
-
.map((unitValue) => {
|
|
94
|
-
return {
|
|
95
|
-
value: `${unitValue.name}:${unitValue.label}`,
|
|
96
|
-
label: getUnitName(unitValue.name),
|
|
97
|
-
};
|
|
98
|
-
})
|
|
99
|
-
.sort((a, b) => a.label.localeCompare(b.label))
|
|
100
|
-
: [
|
|
101
|
-
{
|
|
102
|
-
value: `${currentUnitProps.name}:${currentUnitProps.label}`,
|
|
103
|
-
label: getUnitName(name),
|
|
104
|
-
},
|
|
105
|
-
];
|
|
106
|
-
if (potentialSubUnit) {
|
|
107
|
-
// construct an entry that will provide the name and label of the unit to add
|
|
108
|
-
options.push({
|
|
109
|
-
value: `ADDSUBUNIT:${potentialSubUnit.name}:${potentialSubUnit.label}`,
|
|
110
|
-
label: "Add sub-unit",
|
|
111
|
-
}); // NEEDSWORK - i18n
|
|
112
|
-
}
|
|
113
|
-
if (index !== 0)
|
|
114
|
-
options.push({ value: "REMOVEUNIT", label: "Remove" }); // NEEDSWORK - i18n
|
|
115
|
-
if (isMounted.current) {
|
|
116
|
-
setUnitOptions(options);
|
|
117
|
-
setCurrentUnit(currentUnitProps);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
void fetchAllowableUnitSelections();
|
|
122
|
-
}, [index, label, name, parentUnitName, unitsProvider]);
|
|
123
|
-
const handleOnUnitChange = React.useCallback((newValue) => {
|
|
124
|
-
onUnitChange && onUnitChange(newValue, index);
|
|
125
|
-
}, [index, onUnitChange]);
|
|
126
|
-
const handleOnLabelChange = React.useCallback((e) => {
|
|
127
|
-
e.preventDefault();
|
|
128
|
-
onLabelChange && onLabelChange(e.target.value, index);
|
|
129
|
-
}, [index, onLabelChange]);
|
|
130
|
-
return (React.createElement(React.Fragment, null,
|
|
131
|
-
React.createElement(itwinui_react_1.Select, { options: unitOptions, "data-testid": `unit-${currentUnit.name}`, value: `${currentUnit.name}:${currentUnit.label}`, onChange: handleOnUnitChange, disabled: readonly, size: "small" }),
|
|
132
|
-
React.createElement(itwinui_react_1.Input, { "data-testid": `unit-label-${currentUnit.name}`, value: label, onChange: handleOnLabelChange, size: "small" })));
|
|
133
|
-
}
|
|
134
|
-
exports.UnitDescr = UnitDescr;
|
|
135
|
-
//# sourceMappingURL=UnitDescr.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UnitDescr.js","sourceRoot":"","sources":["../../../../../src/imodel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mBACS,cAAc,WAAW,CAAC,IAAI,EAAE,EAC7C,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,mBAAmB,EAC7B,IAAI,EAAC,OAAO,GACZ,CACD,CACJ,CAAC;AACJ,CAAC;AAnHD,8BAmHC","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 +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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;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAEM,aAAa,UAAW,IAAI,UAEjC;CACH"}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module Timeline
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.BaseSolarDataProvider = void 0;
|
|
11
|
-
const core_geometry_1 = require("@itwin/core-geometry");
|
|
12
|
-
const core_common_1 = require("@itwin/core-common");
|
|
13
|
-
const millisecPerMinute = 1000 * 60;
|
|
14
|
-
const millisecPerHour = millisecPerMinute * 60;
|
|
15
|
-
// the interface and class are in alpha state - it may change after usability testing - test coverage not complete
|
|
16
|
-
/** Base class that provides solar data for animation control
|
|
17
|
-
* @alpha
|
|
18
|
-
*/
|
|
19
|
-
class BaseSolarDataProvider {
|
|
20
|
-
// projectTimeZoneOffset = zone offset in hours
|
|
21
|
-
initializeData(projectTimeZoneOffset, initialTime) {
|
|
22
|
-
if (!initialTime)
|
|
23
|
-
initialTime = new Date(Date.now()); // users local time
|
|
24
|
-
this._zoneOffsetMs = projectTimeZoneOffset * millisecPerHour;
|
|
25
|
-
const year = initialTime.getFullYear();
|
|
26
|
-
const month = initialTime.getMonth();
|
|
27
|
-
const date = initialTime.getDate();
|
|
28
|
-
const hours = initialTime.getHours();
|
|
29
|
-
const minutes = initialTime.getMinutes();
|
|
30
|
-
const initialUtcMs = Date.UTC(year, month, date, hours, minutes, 0, 0);
|
|
31
|
-
const initialProjectMs = initialUtcMs - this._zoneOffsetMs;
|
|
32
|
-
this._projectDateTime = new Date(initialProjectMs);
|
|
33
|
-
const utcDayMs = Date.UTC(year, month, date, 0, 0, 0, 0);
|
|
34
|
-
const utcDay = new Date(utcDayMs);
|
|
35
|
-
this._projectDayStartMS = utcDayMs - this._zoneOffsetMs;
|
|
36
|
-
this._projectDay = new Date(this._projectDayStartMS);
|
|
37
|
-
this._projectSunrise = (0, core_common_1.calculateSunriseOrSunset)(utcDay, this._cartographicCenter, true);
|
|
38
|
-
this._projectSunset = (0, core_common_1.calculateSunriseOrSunset)(utcDay, this._cartographicCenter, false);
|
|
39
|
-
this._projectSunriseMs = this._projectSunrise.getTime();
|
|
40
|
-
this._projectSunsetMs = this._projectSunset.getTime();
|
|
41
|
-
}
|
|
42
|
-
constructor(viewport, longitude, latitude) {
|
|
43
|
-
this._shadowColor = core_common_1.ColorDef.create(core_common_1.ColorByName.gray);
|
|
44
|
-
this.longitude = -75.17035; // long/lat of Philadelphia
|
|
45
|
-
this.latitude = 39.954927;
|
|
46
|
-
this.viewId = ""; // View Id used to determine sunrise and sunset
|
|
47
|
-
this.supportsTimelineAnimation = false; // set to true when provider determines animation data is available.
|
|
48
|
-
this.animationFraction = 0; // value from 0.0 to 1.0 that specifies the percentage complete for the animation.
|
|
49
|
-
this._projectDayStartMS = 0;
|
|
50
|
-
this._projectSunriseMs = 0;
|
|
51
|
-
this._projectSunsetMs = 0;
|
|
52
|
-
this._zoneOffsetMs = 0;
|
|
53
|
-
this._projectSunrise = new Date();
|
|
54
|
-
this._projectSunset = new Date();
|
|
55
|
-
this._projectDateTime = new Date();
|
|
56
|
-
this._projectDay = new Date();
|
|
57
|
-
this.onTimeChanged = (_time) => {
|
|
58
|
-
// to be implemented by derived class
|
|
59
|
-
};
|
|
60
|
-
this._viewport = viewport;
|
|
61
|
-
if (longitude)
|
|
62
|
-
this.longitude = longitude;
|
|
63
|
-
if (latitude)
|
|
64
|
-
this.latitude = latitude;
|
|
65
|
-
if (viewport)
|
|
66
|
-
this.viewId = viewport.view.id;
|
|
67
|
-
// project location
|
|
68
|
-
this._cartographicCenter = core_common_1.Cartographic.fromDegrees({
|
|
69
|
-
longitude: this.longitude,
|
|
70
|
-
latitude: this.latitude,
|
|
71
|
-
height: 0.0,
|
|
72
|
-
});
|
|
73
|
-
this._projectTimeZoneOffset = this.getZone(this._cartographicCenter);
|
|
74
|
-
this.initializeData(this._projectTimeZoneOffset);
|
|
75
|
-
}
|
|
76
|
-
get timeZoneOffset() {
|
|
77
|
-
return this._projectTimeZoneOffset;
|
|
78
|
-
}
|
|
79
|
-
get shadowColor() {
|
|
80
|
-
return this._shadowColor;
|
|
81
|
-
}
|
|
82
|
-
set shadowColor(color) {
|
|
83
|
-
this._shadowColor = color;
|
|
84
|
-
}
|
|
85
|
-
get shouldShowTimeline() {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
/** Get time at project location */
|
|
89
|
-
get timeOfDay() {
|
|
90
|
-
return this._projectDateTime;
|
|
91
|
-
}
|
|
92
|
-
/** The date can be in project time or if isProjectDate is false, it is assumed to be users current local time
|
|
93
|
-
* which will be adjusted to the same time at project location. */
|
|
94
|
-
setDateAndTime(date, isProjectDate) {
|
|
95
|
-
let userDay = date;
|
|
96
|
-
// convert date from user date to project location
|
|
97
|
-
if (isProjectDate) {
|
|
98
|
-
const userOffset = date.getTimezoneOffset() * millisecPerMinute;
|
|
99
|
-
userDay = new Date(date.getTime() - userOffset - this._zoneOffsetMs);
|
|
100
|
-
}
|
|
101
|
-
this.initializeData(this._projectTimeZoneOffset, userDay);
|
|
102
|
-
}
|
|
103
|
-
/** Project Day Start */
|
|
104
|
-
get day() {
|
|
105
|
-
return this._projectDay;
|
|
106
|
-
}
|
|
107
|
-
/** Project Day Start in milliseconds */
|
|
108
|
-
get dayStartMs() {
|
|
109
|
-
return this._projectDayStartMS;
|
|
110
|
-
}
|
|
111
|
-
getCartographicCenter(iModel) {
|
|
112
|
-
if (iModel.isGeoLocated) {
|
|
113
|
-
const projectExtents = iModel.projectExtents;
|
|
114
|
-
const projectCenter = core_geometry_1.Point3d.createAdd2Scaled(projectExtents.low, 0.5, projectExtents.high, 0.5);
|
|
115
|
-
return iModel.spatialToCartographicFromEcef(projectCenter);
|
|
116
|
-
}
|
|
117
|
-
return core_common_1.Cartographic.fromDegrees({
|
|
118
|
-
longitude: this.longitude,
|
|
119
|
-
latitude: this.latitude,
|
|
120
|
-
height: 0.0,
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
set viewport(viewport) {
|
|
124
|
-
this._viewport = viewport;
|
|
125
|
-
if (viewport)
|
|
126
|
-
this.viewId = viewport.view.id;
|
|
127
|
-
else
|
|
128
|
-
this.viewId = "";
|
|
129
|
-
}
|
|
130
|
-
get viewport() {
|
|
131
|
-
return this._viewport;
|
|
132
|
-
}
|
|
133
|
-
getZone(location) {
|
|
134
|
-
return Math.floor(0.5 + location.longitudeDegrees / 15.0);
|
|
135
|
-
}
|
|
136
|
-
get sunrise() {
|
|
137
|
-
return this._projectSunrise;
|
|
138
|
-
}
|
|
139
|
-
get sunriseMs() {
|
|
140
|
-
return this._projectSunriseMs;
|
|
141
|
-
}
|
|
142
|
-
get sunset() {
|
|
143
|
-
return this._projectSunset;
|
|
144
|
-
}
|
|
145
|
-
get sunsetMs() {
|
|
146
|
-
return this._projectSunsetMs;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
exports.BaseSolarDataProvider = BaseSolarDataProvider;
|
|
150
|
-
//# sourceMappingURL=BaseSolarDataProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSolarDataProvider.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/BaseSolarDataProvider.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,wDAA+C;AAC/C,oDAK4B;AAI5B,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAE,CAAC;AACpC,MAAM,eAAe,GAAG,iBAAiB,GAAG,EAAE,CAAC;AAE/C,kHAAkH;AAElH;;GAEG;AACH,MAAa,qBAAqB;IAqBhC,+CAA+C;I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D,sDA2KC","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 { Point3d } from \"@itwin/core-geometry\";\nimport {\n calculateSunriseOrSunset,\n Cartographic,\n ColorByName,\n ColorDef,\n} from \"@itwin/core-common\";\nimport type { IModelConnection, ScreenViewport } from \"@itwin/core-frontend\";\nimport type { SolarDataProvider } from \"./interfaces\";\n\nconst millisecPerMinute = 1000 * 60;\nconst millisecPerHour = millisecPerMinute * 60;\n\n// the interface and class are in alpha state - it may change after usability testing - test coverage not complete\n\n/** Base class that provides solar data for animation control\n * @alpha\n */\nexport class BaseSolarDataProvider implements SolarDataProvider {\n protected _projectTimeZoneOffset: number; // used to convert between project time and local time\n protected _viewport: ScreenViewport | undefined;\n protected _cartographicCenter: Cartographic;\n protected _shadowColor = ColorDef.create(ColorByName.gray);\n\n public longitude: number = -75.17035; // long/lat of Philadelphia\n public latitude: number = 39.954927;\n public viewId = \"\"; // View Id used to determine sunrise and sunset\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\n private _projectDayStartMS = 0;\n private _projectSunriseMs = 0;\n private _projectSunsetMs = 0;\n private _zoneOffsetMs = 0;\n private _projectSunrise = new Date();\n private _projectSunset = new Date();\n private _projectDateTime = new Date();\n private _projectDay = new Date();\n\n // projectTimeZoneOffset = zone offset in hours\n protected initializeData(projectTimeZoneOffset: number, initialTime?: Date) {\n if (!initialTime) initialTime = new Date(Date.now()); // users local time\n\n this._zoneOffsetMs = projectTimeZoneOffset * millisecPerHour;\n const year = initialTime.getFullYear();\n const month = initialTime.getMonth();\n const date = initialTime.getDate();\n const hours = initialTime.getHours();\n const minutes = initialTime.getMinutes();\n const initialUtcMs = Date.UTC(year, month, date, hours, minutes, 0, 0);\n const initialProjectMs = initialUtcMs - this._zoneOffsetMs;\n this._projectDateTime = new Date(initialProjectMs);\n\n const utcDayMs = Date.UTC(year, month, date, 0, 0, 0, 0);\n const utcDay = new Date(utcDayMs);\n this._projectDayStartMS = utcDayMs - this._zoneOffsetMs;\n this._projectDay = new Date(this._projectDayStartMS);\n this._projectSunrise = calculateSunriseOrSunset(\n utcDay,\n this._cartographicCenter,\n true\n );\n this._projectSunset = calculateSunriseOrSunset(\n utcDay,\n this._cartographicCenter,\n false\n );\n this._projectSunriseMs = this._projectSunrise.getTime();\n this._projectSunsetMs = this._projectSunset.getTime();\n }\n\n constructor(\n viewport?: ScreenViewport,\n longitude?: number,\n latitude?: number\n ) {\n this._viewport = viewport;\n if (longitude) this.longitude = longitude;\n if (latitude) this.latitude = latitude;\n\n if (viewport) this.viewId = viewport.view.id;\n\n // project location\n this._cartographicCenter = Cartographic.fromDegrees({\n longitude: this.longitude,\n latitude: this.latitude,\n height: 0.0,\n });\n this._projectTimeZoneOffset = this.getZone(this._cartographicCenter);\n\n this.initializeData(this._projectTimeZoneOffset);\n }\n\n public get timeZoneOffset(): number {\n return this._projectTimeZoneOffset;\n }\n\n public get shadowColor(): ColorDef {\n return this._shadowColor;\n }\n\n public set shadowColor(color: ColorDef) {\n this._shadowColor = color;\n }\n\n public get shouldShowTimeline() {\n return false;\n }\n\n /** Get time at project location */\n public get timeOfDay(): Date {\n return this._projectDateTime;\n }\n\n /** The date can be in project time or if isProjectDate is false, it is assumed to be users current local time\n * which will be adjusted to the same time at project location. */\n public setDateAndTime(date: Date, isProjectDate?: boolean) {\n let userDay = date;\n\n // convert date from user date to project location\n if (isProjectDate) {\n const userOffset = date.getTimezoneOffset() * millisecPerMinute;\n userDay = new Date(date.getTime() - userOffset - this._zoneOffsetMs);\n }\n\n this.initializeData(this._projectTimeZoneOffset, userDay);\n }\n\n /** Project Day Start */\n public get day(): Date {\n return this._projectDay;\n }\n\n /** Project Day Start in milliseconds */\n public get dayStartMs(): number {\n return this._projectDayStartMS;\n }\n\n public getCartographicCenter(iModel: IModelConnection): Cartographic {\n if (iModel.isGeoLocated) {\n const projectExtents = iModel.projectExtents;\n const projectCenter = Point3d.createAdd2Scaled(\n projectExtents.low,\n 0.5,\n projectExtents.high,\n 0.5\n );\n return iModel.spatialToCartographicFromEcef(projectCenter);\n }\n return Cartographic.fromDegrees({\n longitude: this.longitude,\n latitude: this.latitude,\n height: 0.0,\n });\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 protected getZone(location: Cartographic) {\n return Math.floor(0.5 + location.longitudeDegrees / 15.0);\n }\n\n public get sunrise(): Date {\n return this._projectSunrise;\n }\n\n public get sunriseMs(): number {\n return this._projectSunriseMs;\n }\n\n public get sunset(): Date {\n return this._projectSunset;\n }\n\n public get sunsetMs(): number {\n return this._projectSunsetMs;\n }\n\n public onTimeChanged = (_time: Date) => {\n // to be implemented by derived class\n };\n}\n"]}
|
|
@@ -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,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module Timeline
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.BaseTimelineDataProvider = void 0;
|
|
11
|
-
/** Base Timeline Data Provider
|
|
12
|
-
* @alpha
|
|
13
|
-
*/
|
|
14
|
-
class BaseTimelineDataProvider {
|
|
15
|
-
constructor(viewport) {
|
|
16
|
-
this.id = "TestTimelineDataProvider";
|
|
17
|
-
this.viewId = "";
|
|
18
|
-
this.supportsTimelineAnimation = false; // set to true when provider determines animation data is available.
|
|
19
|
-
this.animationFraction = 0; // value from 0.0 to 1.0 that specifies the percentage complete for the animation.
|
|
20
|
-
this._settings = {
|
|
21
|
-
duration: 20 * 1000,
|
|
22
|
-
loop: true,
|
|
23
|
-
};
|
|
24
|
-
this.onPlaybackSettingChanged = (_settings) => { };
|
|
25
|
-
this.onAnimationFractionChanged = (_animationFraction) => { };
|
|
26
|
-
this._viewport = viewport;
|
|
27
|
-
if (viewport)
|
|
28
|
-
this.viewId = viewport.view.id;
|
|
29
|
-
}
|
|
30
|
-
async loadTimelineData() {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
/** Called to get the initial scrubber location */
|
|
34
|
-
get initialDuration() {
|
|
35
|
-
return this.duration * this.animationFraction;
|
|
36
|
-
}
|
|
37
|
-
/** Called to get playback duration */
|
|
38
|
-
get duration() {
|
|
39
|
-
return this.getSettings().duration ? this.getSettings().duration : 20000;
|
|
40
|
-
}
|
|
41
|
-
set viewport(viewport) {
|
|
42
|
-
this._viewport = viewport;
|
|
43
|
-
if (viewport)
|
|
44
|
-
this.viewId = viewport.view.id;
|
|
45
|
-
else
|
|
46
|
-
this.viewId = "";
|
|
47
|
-
}
|
|
48
|
-
get viewport() {
|
|
49
|
-
return this._viewport;
|
|
50
|
-
}
|
|
51
|
-
get loop() {
|
|
52
|
-
return undefined === this.getSettings().loop
|
|
53
|
-
? false
|
|
54
|
-
: this.getSettings().loop;
|
|
55
|
-
}
|
|
56
|
-
getSettings() {
|
|
57
|
-
return this._settings;
|
|
58
|
-
}
|
|
59
|
-
updateSettings(settings) {
|
|
60
|
-
this._settings = { ...this._settings, ...settings };
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.BaseTimelineDataProvider = BaseTimelineDataProvider;
|
|
64
|
-
//# sourceMappingURL=BaseTimelineDataProvider.js.map
|
|
@@ -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,MAAa,wBAAwB;IAUnC,YAA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AAE,CAAC,IAAI;YAC1C,CAAC,CAAC,KAAK;YACP,CAAC,CAAC,IAAI,CAAC,WAAW,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;AA7DD,4DA6DC","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 +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,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK,CAAC,SAAS,CAC7C,eAAe,EACf,eAAe,CAChB;IACC,OAAO,CAAC,SAAS,CAAuC;gBAE5C,KAAK,EAAE,eAAe;IASlB,kBAAkB,CAChC,SAAS,EAAE,eAAe,EAC1B,UAAU,EAAE,eAAe;IAS7B,OAAO,CAAC,OAAO,CAEb;IAEF,OAAO,CAAC,QAAQ,CAEd;IAEF,OAAO,CAAC,UAAU,CAYhB;IAEF,OAAO,CAAC,SAAS,CAEf;IAEF,OAAO,CAAC,WAAW;IAIH,MAAM;CAiBvB"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.InlineEdit = void 0;
|
|
30
|
-
/*---------------------------------------------------------------------------------------------
|
|
31
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
32
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
33
|
-
*--------------------------------------------------------------------------------------------*/
|
|
34
|
-
require("./InlineEdit.scss");
|
|
35
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
36
|
-
const React = __importStar(require("react"));
|
|
37
|
-
const ts_key_enum_1 = require("ts-key-enum");
|
|
38
|
-
const itwinui_react_1 = require("@itwin/itwinui-react");
|
|
39
|
-
/** Duration Inline Editor
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
class InlineEdit extends React.Component {
|
|
43
|
-
constructor(props) {
|
|
44
|
-
super(props);
|
|
45
|
-
this._inputRef = React.createRef();
|
|
46
|
-
this._onBlur = (event) => {
|
|
47
|
-
this._sendChange(event.target.value);
|
|
48
|
-
};
|
|
49
|
-
this._onFocus = (event) => {
|
|
50
|
-
event.target.select();
|
|
51
|
-
};
|
|
52
|
-
this._onKeyDown = (event) => {
|
|
53
|
-
switch (event.key) {
|
|
54
|
-
case ts_key_enum_1.Key.Escape.valueOf():
|
|
55
|
-
this.setState((prevState) => ({ value: prevState.originalValue }), () => this._inputRef.current.select());
|
|
56
|
-
break;
|
|
57
|
-
case ts_key_enum_1.Key.Enter.valueOf():
|
|
58
|
-
this._sendChange(this.state.value);
|
|
59
|
-
break;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
this._onChange = (event) => {
|
|
63
|
-
this.setState({ value: event.target.value });
|
|
64
|
-
};
|
|
65
|
-
this.state = {
|
|
66
|
-
value: this.props.defaultValue,
|
|
67
|
-
originalValue: this.props.defaultValue,
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
componentDidUpdate(prevProps, _prevState) {
|
|
71
|
-
if (prevProps.defaultValue !== this.props.defaultValue) {
|
|
72
|
-
this.setState((_, props) => {
|
|
73
|
-
return { value: props.defaultValue, originalValue: props.defaultValue };
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
_sendChange(value) {
|
|
78
|
-
if (this.props.onChange)
|
|
79
|
-
this.props.onChange(value);
|
|
80
|
-
}
|
|
81
|
-
render() {
|
|
82
|
-
return (React.createElement(itwinui_react_1.Input, { "data-testid": "timeline-duration-edit-input", className: (0, classnames_1.default)("inline-edit-input", this.props.className), style: this.props.style, ref: this._inputRef, type: "text", value: this.state.value, size: "small", onFocus: this._onFocus, onBlur: this._onBlur, onKeyDown: this._onKeyDown, onChange: this._onChange }));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
exports.InlineEdit = InlineEdit;
|
|
86
|
-
//# sourceMappingURL=InlineEdit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InlineEdit.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/InlineEdit.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;gGAGgG;AAChG,6BAA2B;AAC3B,4DAAoC;AACpC,6CAA+B;AAC/B,6CAAkC;AAElC,wDAA6C;AAa7C;;GAEG;AACH,MAAa,UAAW,SAAQ,KAAK,CAAC,SAGrC;IAGC,YAAY,KAAsB;QAChC,KAAK,CAAC,KAAK,CAAC,CAAC;QAHP,cAAS,GAAG,KAAK,CAAC,SAAS,EAAoB,CAAC;QAsBhD,YAAO,GAAG,CAAC,KAA0C,EAAE,EAAE;YAC/D,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC,CAAC;QAEM,aAAQ,GAAG,CAAC,KAA0C,EAAE,EAAE;YAChE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACxB,CAAC,CAAC;QAEM,eAAU,GAAG,CAAC,KAA4C,EAAE,EAAE;YACpE,QAAQ,KAAK,CAAC,GAAG,EAAE,CAAC;gBAClB,KAAK,iBAAG,CAAC,MAAM,CAAC,OAAO,EAAE;oBACvB,IAAI,CAAC,QAAQ,CACX,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,CAAC,EACnD,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,OAAQ,CAAC,MAAM,EAAE,CACvC,CAAC;oBACF,MAAM;gBACR,KAAK,iBAAG,CAAC,KAAK,CAAC,OAAO,EAAE;oBACtB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK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AAE,IAAI,CAAC,OAAO,EACpB,SAAS,EAAE,IAAI,CAAC,UAAU,EAC1B,QAAQ,EAAE,IAAI,CAAC,SAAS,GACxB,CACH,CAAC;IACJ,CAAC;CACF;AAzED,gCAyEC","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,24 +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
|
-
.inline-edit-input {
|
|
8
|
-
color: var(--iui-color-text);
|
|
9
|
-
background: inherit;
|
|
10
|
-
border: 1px solid transparent;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
padding: 0px;
|
|
13
|
-
|
|
14
|
-
&:hover {
|
|
15
|
-
border: 1px solid $buic-background-5;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&:focus {
|
|
19
|
-
background: $buic-background-1;
|
|
20
|
-
border: 1px solid $buic-background-5;
|
|
21
|
-
outline: none;
|
|
22
|
-
color: var(--iui-color-text-hover);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -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,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.PlayButton = void 0;
|
|
27
|
-
/*---------------------------------------------------------------------------------------------
|
|
28
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
29
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
30
|
-
*--------------------------------------------------------------------------------------------*/
|
|
31
|
-
const React = __importStar(require("react"));
|
|
32
|
-
const itwinui_icons_react_1 = require("@itwin/itwinui-icons-react");
|
|
33
|
-
const itwinui_react_1 = require("@itwin/itwinui-react");
|
|
34
|
-
const useTranslation_1 = require("../useTranslation");
|
|
35
|
-
/** Play/pause button used in timeline components.
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
|
-
function PlayButton({ isPlaying, onPlay, onPause }) {
|
|
39
|
-
const { translate } = (0, useTranslation_1.useTranslation)();
|
|
40
|
-
const label = translate(isPlaying ? "timeline.pause" : "timeline.play");
|
|
41
|
-
return (React.createElement(itwinui_react_1.IconButton, { styleType: "borderless", label: label, onClick: () => {
|
|
42
|
-
if (isPlaying) {
|
|
43
|
-
onPause?.();
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
onPlay?.();
|
|
47
|
-
} }, isPlaying ? React.createElement(itwinui_icons_react_1.SvgPause, null) : React.createElement(itwinui_icons_react_1.SvgPlay, null)));
|
|
48
|
-
}
|
|
49
|
-
exports.PlayButton = PlayButton;
|
|
50
|
-
//# sourceMappingURL=PlayButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlayButton.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/PlayButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;gGAGgG;AAChG,6CAA+B;AAC/B,oEAA+D;AAC/D,wDAAkD;AAClD,sDAAmD;AAQnD;;GAEG;AACH,SAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAmB;IACxE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IACvC,MAAM,KAAK,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;IAExE,OAAO,CACL,oBAAC,0BAAU,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,8BAAQ,OAAG,CAAC,CAAC,CAAC,oBAAC,6BAAO,OAAG,CAC5B,CACd,CAAC;AACJ,CAAC;AApBD,gCAoBC","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 +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,uBAAuB,EAAE,MAAM,qBA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