@itwin/imodel-components-react 3.0.0-dev.77 → 3.0.0-dev.81
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/lib/{imodel-components-react → cjs/imodel-components-react}/UiIModelComponents.d.ts +0 -0
- package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/UiIModelComponents.js +0 -0
- package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/AlphaSlider.d.ts +0 -0
- package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/AlphaSlider.js +0 -0
- package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/AlphaSlider.scss +0 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/ColorPickerButton.d.ts +0 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/ColorPickerButton.js +1 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/ColorPickerButton.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/ColorPickerDialog.d.ts +0 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/ColorPickerDialog.js +0 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/ColorPickerPanel.d.ts +0 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerPanel.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/ColorPickerPanel.js +0 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerPanel.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/ColorPickerPanel.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/ColorPickerPopup.d.ts +0 -0
- package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/ColorPickerPopup.js +1 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/ColorPickerPopup.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/HueSlider.d.ts +0 -0
- package/lib/cjs/imodel-components-react/color/HueSlider.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/HueSlider.js +0 -0
- package/lib/cjs/imodel-components-react/color/HueSlider.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/HueSlider.scss +0 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/SaturationPicker.d.ts +0 -0
- package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/SaturationPicker.js +1 -1
- package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/SaturationPicker.scss +0 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/Swatch.d.ts +0 -0
- package/lib/cjs/imodel-components-react/color/Swatch.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/Swatch.js +8 -16
- package/lib/cjs/imodel-components-react/color/Swatch.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/Swatch.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/getCSSColorFromDef.d.ts +0 -0
- package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/color/getCSSColorFromDef.js +0 -0
- package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/editors/ColorEditor.d.ts +0 -0
- package/lib/cjs/imodel-components-react/editors/ColorEditor.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/editors/ColorEditor.js +0 -0
- package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/editors/ColorEditor.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/editors/WeightEditor.d.ts +0 -0
- package/lib/cjs/imodel-components-react/editors/WeightEditor.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/editors/WeightEditor.js +0 -0
- package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/editors/WeightEditor.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/inputs/QuantityInput.d.ts +0 -0
- package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/inputs/QuantityInput.js +0 -0
- package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/inputs/QuantityNumberInput.d.ts +0 -0
- package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/inputs/QuantityNumberInput.js +2 -13
- package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/inputs/QuantityNumberInput.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/lineweight/Swatch.d.ts +0 -0
- package/lib/cjs/imodel-components-react/lineweight/Swatch.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/lineweight/Swatch.js +12 -16
- package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/lineweight/Swatch.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/lineweight/WeightPickerButton.d.ts +0 -0
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/lineweight/WeightPickerButton.js +1 -1
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/lineweight/WeightPickerButton.scss +2 -2
- package/lib/{imodel-components-react → cjs/imodel-components-react}/navigationaids/Cube.d.ts +0 -0
- package/lib/cjs/imodel-components-react/navigationaids/Cube.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/navigationaids/Cube.js +9 -17
- package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/navigationaids/Cube.scss +0 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/navigationaids/CubeNavigationAid.d.ts +0 -0
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/navigationaids/CubeNavigationAid.js +6 -17
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/navigationaids/CubeNavigationAid.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/navigationaids/DrawingNavigationAid.d.ts +0 -0
- package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/navigationaids/DrawingNavigationAid.js +4 -1
- package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/navigationaids/DrawingNavigationAid.scss +2 -2
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatPanel.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatPanel.js +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatPanel.scss +2 -2
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatPrecision.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatPrecision.js +1 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatSample.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatSample.js +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatType.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/FormatType.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatType.js +3 -14
- package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatUnitLabel.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatUnitLabel.js +4 -15
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatUnits.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatUnits.js +11 -11
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/MiscFormatOptions.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/MiscFormatOptions.js +6 -6
- package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/QuantityFormatPanel.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/QuantityFormatPanel.js +2 -13
- package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/DecimalPrecision.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/DecimalPrecision.js +2 -13
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/DecimalSeparator.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/DecimalSeparator.js +2 -13
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/FractionPrecision.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/FractionPrecision.js +2 -13
- package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/ScientificType.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/ScientificType.js +2 -13
- package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/SignOption.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/SignOption.js +2 -13
- package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/StationSeparatorSelector.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/StationSeparatorSelector.js +2 -13
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/StationSizeSelector.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/StationSizeSelector.js +2 -13
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/ThousandsSelector.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/ThousandsSelector.js +2 -13
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/ThousandsSeparator.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/ThousandsSeparator.js +2 -2
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/UnitDescr.d.ts +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/misc/UnitDescr.js +0 -0
- package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/BaseSolarDataProvider.d.ts +0 -0
- package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/BaseSolarDataProvider.js +0 -0
- package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/BaseTimelineDataProvider.d.ts +0 -0
- package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/BaseTimelineDataProvider.js +1 -1
- package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/ContextMenu.d.ts +0 -0
- package/lib/cjs/imodel-components-react/timeline/ContextMenu.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/ContextMenu.js +0 -0
- package/lib/cjs/imodel-components-react/timeline/ContextMenu.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/ContextMenu.scss +2 -2
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/InlineEdit.d.ts +0 -0
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/InlineEdit.js +0 -0
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/InlineEdit.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/PlayerButton.d.ts +0 -0
- package/lib/cjs/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/PlayerButton.js +0 -0
- package/lib/cjs/imodel-components-react/timeline/PlayerButton.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/PlayerButton.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/Scrubber.d.ts +0 -0
- package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/Scrubber.js +0 -0
- package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/Scrubber.scss +2 -2
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/SolarTimeline.d.ts +0 -0
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/SolarTimeline.js +0 -0
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/SolarTimeline.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/SpeedTimeline.d.ts +0 -0
- package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/SpeedTimeline.js +0 -0
- package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/SpeedTimeline.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/Timeline.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/TimelineComponent.d.ts +0 -0
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/TimelineComponent.js +0 -0
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/TimelineComponent.scss +1 -1
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/interfaces.d.ts +0 -0
- package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/timeline/interfaces.js +0 -0
- package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/viewport/ViewportComponent.d.ts +0 -0
- package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/viewport/ViewportComponent.js +4 -1
- package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/viewport/ViewportComponentEvents.d.ts +0 -0
- package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +1 -0
- package/lib/{imodel-components-react → cjs/imodel-components-react}/viewport/ViewportComponentEvents.js +0 -0
- package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -0
- package/lib/{imodel-components-react.d.ts → cjs/imodel-components-react.d.ts} +0 -0
- package/lib/cjs/imodel-components-react.d.ts.map +1 -0
- package/lib/{imodel-components-react.js → cjs/imodel-components-react.js} +0 -0
- package/lib/cjs/imodel-components-react.js.map +1 -0
- package/lib/esm/imodel-components-react/UiIModelComponents.d.ts +34 -0
- package/lib/esm/imodel-components-react/UiIModelComponents.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/UiIModelComponents.js +75 -0
- package/lib/esm/imodel-components-react/UiIModelComponents.js.map +1 -0
- package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts +37 -0
- package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/color/AlphaSlider.js +161 -0
- package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +1 -0
- package/lib/esm/imodel-components-react/color/AlphaSlider.scss +63 -0
- package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts +38 -0
- package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/color/ColorPickerButton.js +83 -0
- package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +1 -0
- package/lib/esm/imodel-components-react/color/ColorPickerButton.scss +92 -0
- package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts +23 -0
- package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/color/ColorPickerDialog.js +39 -0
- package/lib/esm/imodel-components-react/color/ColorPickerDialog.js.map +1 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPanel.d.ts +22 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPanel.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPanel.js +123 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPanel.js.map +1 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPanel.scss +94 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts +44 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.js +94 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +1 -0
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +53 -0
- package/lib/esm/imodel-components-react/color/HueSlider.d.ts +23 -0
- package/lib/esm/imodel-components-react/color/HueSlider.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/color/HueSlider.js +174 -0
- package/lib/esm/imodel-components-react/color/HueSlider.js.map +1 -0
- package/lib/esm/imodel-components-react/color/HueSlider.scss +61 -0
- package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts +21 -0
- package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/color/SaturationPicker.js +188 -0
- package/lib/esm/imodel-components-react/color/SaturationPicker.js.map +1 -0
- package/lib/esm/imodel-components-react/color/SaturationPicker.scss +35 -0
- package/lib/esm/imodel-components-react/color/Swatch.d.ts +23 -0
- package/lib/esm/imodel-components-react/color/Swatch.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/color/Swatch.js +35 -0
- package/lib/esm/imodel-components-react/color/Swatch.js.map +1 -0
- package/lib/esm/imodel-components-react/color/Swatch.scss +24 -0
- package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts +7 -0
- package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js +20 -0
- package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js.map +1 -0
- package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts +45 -0
- package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/editors/ColorEditor.js +125 -0
- package/lib/esm/imodel-components-react/editors/ColorEditor.js.map +1 -0
- package/lib/esm/imodel-components-react/editors/ColorEditor.scss +19 -0
- package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts +48 -0
- package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/editors/WeightEditor.js +134 -0
- package/lib/esm/imodel-components-react/editors/WeightEditor.js.map +1 -0
- package/lib/esm/imodel-components-react/editors/WeightEditor.scss +17 -0
- package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts +26 -0
- package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/inputs/QuantityInput.js +71 -0
- package/lib/esm/imodel-components-react/inputs/QuantityInput.js.map +1 -0
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +45 -0
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js +240 -0
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -0
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +89 -0
- package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts +34 -0
- package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/lineweight/Swatch.js +60 -0
- package/lib/esm/imodel-components-react/lineweight/Swatch.js.map +1 -0
- package/lib/esm/imodel-components-react/lineweight/Swatch.scss +49 -0
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts +61 -0
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.js +134 -0
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.js.map +1 -0
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.scss +53 -0
- package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts +46 -0
- package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/navigationaids/Cube.js +101 -0
- package/lib/esm/imodel-components-react/navigationaids/Cube.js.map +1 -0
- package/lib/esm/imodel-components-react/navigationaids/Cube.scss +19 -0
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +174 -0
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js +573 -0
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -0
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.scss +181 -0
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +146 -0
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js +621 -0
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -0
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +134 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts +27 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js +77 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.scss +65 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts +18 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js +31 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts +19 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatSample.js +61 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts +18 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatType.js +64 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatType.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +18 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.js +84 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts +20 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js +111 -0
- package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +22 -0
- package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js +159 -0
- package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +23 -0
- package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js +132 -0
- package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +18 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.js +37 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +18 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js +25 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +17 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js +32 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts +19 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js +26 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts +18 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js +28 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +18 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +36 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +18 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js +25 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +18 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js +34 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +18 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +70 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +24 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js +97 -0
- package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -0
- package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +53 -0
- package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.js +140 -0
- package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.js.map +1 -0
- package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +32 -0
- package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js +66 -0
- package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -0
- package/lib/esm/imodel-components-react/timeline/ContextMenu.d.ts +55 -0
- package/lib/esm/imodel-components-react/timeline/ContextMenu.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/timeline/ContextMenu.js +55 -0
- package/lib/esm/imodel-components-react/timeline/ContextMenu.js.map +1 -0
- package/lib/esm/imodel-components-react/timeline/ContextMenu.scss +81 -0
- package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts +28 -0
- package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/timeline/InlineEdit.js +56 -0
- package/lib/esm/imodel-components-react/timeline/InlineEdit.js.map +1 -0
- package/lib/esm/imodel-components-react/timeline/InlineEdit.scss +27 -0
- package/lib/esm/imodel-components-react/timeline/PlayerButton.d.ts +34 -0
- package/lib/esm/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/timeline/PlayerButton.js +65 -0
- package/lib/esm/imodel-components-react/timeline/PlayerButton.js.map +1 -0
- package/lib/esm/imodel-components-react/timeline/PlayerButton.scss +26 -0
- package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts +55 -0
- package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/timeline/Scrubber.js +165 -0
- package/lib/esm/imodel-components-react/timeline/Scrubber.js.map +1 -0
- package/lib/esm/imodel-components-react/timeline/Scrubber.scss +107 -0
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts +78 -0
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.js +399 -0
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +1 -0
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.scss +358 -0
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts +16 -0
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js +29 -0
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js.map +1 -0
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +40 -0
- package/lib/esm/imodel-components-react/timeline/Timeline.scss +165 -0
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts +135 -0
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.js +341 -0
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +1 -0
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +164 -0
- package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +175 -0
- package/lib/esm/imodel-components-react/timeline/interfaces.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/timeline/interfaces.js +43 -0
- package/lib/esm/imodel-components-react/timeline/interfaces.js.map +1 -0
- package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +67 -0
- package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/viewport/ViewportComponent.js +227 -0
- package/lib/esm/imodel-components-react/viewport/ViewportComponent.js.map +1 -0
- package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts +107 -0
- package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +1 -0
- package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js +95 -0
- package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -0
- package/lib/esm/imodel-components-react.d.ts +84 -0
- package/lib/esm/imodel-components-react.d.ts.map +1 -0
- package/lib/esm/imodel-components-react.js +89 -0
- package/lib/esm/imodel-components-react.js.map +1 -0
- package/package.json +32 -27
- package/lib/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
- package/lib/imodel-components-react/UiIModelComponents.js.map +0 -1
- package/lib/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
- package/lib/imodel-components-react/color/AlphaSlider.js.map +0 -1
- package/lib/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
- package/lib/imodel-components-react/color/ColorPickerButton.js.map +0 -1
- package/lib/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
- package/lib/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
- package/lib/imodel-components-react/color/ColorPickerPanel.d.ts.map +0 -1
- package/lib/imodel-components-react/color/ColorPickerPanel.js.map +0 -1
- package/lib/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
- package/lib/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
- package/lib/imodel-components-react/color/HueSlider.d.ts.map +0 -1
- package/lib/imodel-components-react/color/HueSlider.js.map +0 -1
- package/lib/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
- package/lib/imodel-components-react/color/SaturationPicker.js.map +0 -1
- package/lib/imodel-components-react/color/Swatch.d.ts.map +0 -1
- package/lib/imodel-components-react/color/Swatch.js.map +0 -1
- package/lib/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
- package/lib/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
- package/lib/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
- package/lib/imodel-components-react/editors/ColorEditor.js.map +0 -1
- package/lib/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
- package/lib/imodel-components-react/editors/WeightEditor.js.map +0 -1
- package/lib/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
- package/lib/imodel-components-react/inputs/QuantityInput.js.map +0 -1
- package/lib/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
- package/lib/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
- package/lib/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
- package/lib/imodel-components-react/lineweight/Swatch.js.map +0 -1
- package/lib/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
- package/lib/imodel-components-react/lineweight/WeightPickerButton.js.map +0 -1
- package/lib/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
- package/lib/imodel-components-react/navigationaids/Cube.js.map +0 -1
- package/lib/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
- package/lib/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
- package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
- package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatType.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatUnitLabel.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
- package/lib/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
- package/lib/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
- package/lib/imodel-components-react/timeline/BaseSolarDataProvider.js.map +0 -1
- package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
- package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
- package/lib/imodel-components-react/timeline/ContextMenu.d.ts.map +0 -1
- package/lib/imodel-components-react/timeline/ContextMenu.js.map +0 -1
- package/lib/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
- package/lib/imodel-components-react/timeline/InlineEdit.js.map +0 -1
- package/lib/imodel-components-react/timeline/PlayerButton.d.ts.map +0 -1
- package/lib/imodel-components-react/timeline/PlayerButton.js.map +0 -1
- package/lib/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
- package/lib/imodel-components-react/timeline/Scrubber.js.map +0 -1
- package/lib/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
- package/lib/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
- package/lib/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
- package/lib/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
- package/lib/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
- package/lib/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
- package/lib/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
- package/lib/imodel-components-react/timeline/interfaces.js.map +0 -1
- package/lib/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
- package/lib/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
- package/lib/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
- package/lib/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
- package/lib/imodel-components-react.d.ts.map +0 -1
- package/lib/imodel-components-react.js.map +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Timeline
|
|
3
|
+
*/
|
|
4
|
+
import { Cartographic, ColorDef } from "@itwin/core-common";
|
|
5
|
+
import { IModelConnection, ScreenViewport } from "@itwin/core-frontend";
|
|
6
|
+
import { SolarDataProvider } from "./interfaces";
|
|
7
|
+
/** Base class that provides solar data for animation control
|
|
8
|
+
* @alpha
|
|
9
|
+
*/
|
|
10
|
+
export declare class BaseSolarDataProvider implements SolarDataProvider {
|
|
11
|
+
protected _projectTimeZoneOffset: number;
|
|
12
|
+
protected _viewport: ScreenViewport | undefined;
|
|
13
|
+
protected _cartographicCenter: Cartographic;
|
|
14
|
+
protected _shadowColor: ColorDef;
|
|
15
|
+
longitude: number;
|
|
16
|
+
latitude: number;
|
|
17
|
+
viewId: string;
|
|
18
|
+
supportsTimelineAnimation: boolean;
|
|
19
|
+
animationFraction: number;
|
|
20
|
+
private _projectDayStartMS;
|
|
21
|
+
private _projectSunriseMs;
|
|
22
|
+
private _projectSunsetMs;
|
|
23
|
+
private _zoneOffsetMs;
|
|
24
|
+
private _projectSunrise;
|
|
25
|
+
private _projectSunset;
|
|
26
|
+
private _projectDateTime;
|
|
27
|
+
private _projectDay;
|
|
28
|
+
protected initializeData(projectTimeZoneOffset: number, initialTime?: Date): void;
|
|
29
|
+
constructor(viewport?: ScreenViewport, longitude?: number, latitude?: number);
|
|
30
|
+
get timeZoneOffset(): number;
|
|
31
|
+
get shadowColor(): ColorDef;
|
|
32
|
+
set shadowColor(color: ColorDef);
|
|
33
|
+
get shouldShowTimeline(): boolean;
|
|
34
|
+
/** Get time at project location */
|
|
35
|
+
get timeOfDay(): Date;
|
|
36
|
+
/** The date can be in project time or if isProjectDate is false, it is assumed to be users current local time
|
|
37
|
+
* which will be adjusted to the same time at project location. */
|
|
38
|
+
setDateAndTime(date: Date, isProjectDate?: boolean): void;
|
|
39
|
+
/** Project Day Start */
|
|
40
|
+
get day(): Date;
|
|
41
|
+
/** Project Day Start in milliseconds */
|
|
42
|
+
get dayStartMs(): number;
|
|
43
|
+
getCartographicCenter(iModel: IModelConnection): Cartographic;
|
|
44
|
+
set viewport(viewport: ScreenViewport | undefined);
|
|
45
|
+
get viewport(): ScreenViewport | undefined;
|
|
46
|
+
protected getZone(location: Cartographic): number;
|
|
47
|
+
get sunrise(): Date;
|
|
48
|
+
get sunriseMs(): number;
|
|
49
|
+
get sunset(): Date;
|
|
50
|
+
get sunsetMs(): number;
|
|
51
|
+
onTimeChanged: (_time: Date) => void;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=BaseSolarDataProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseSolarDataProvider.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/BaseSolarDataProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAA4B,YAAY,EAAe,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAQjD;;GAEG;AACH,qBAAa,qBAAsB,YAAW,iBAAiB;IAC7D,SAAS,CA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ED,IAAW,QAAQ,IAAI,cAAc,GAAG,SAAS,CAEhD;IAED,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY;IAIxC,IAAW,OAAO,IAAI,IAAI,CAEzB;IAED,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,MAAM,IAAI,IAAI,CAExB;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAGM,aAAa,UAAW,IAAI,UAEjC;CACH"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Timeline
|
|
7
|
+
*/
|
|
8
|
+
import { Point3d } from "@itwin/core-geometry";
|
|
9
|
+
import { calculateSunriseOrSunset, Cartographic, ColorByName, ColorDef } from "@itwin/core-common";
|
|
10
|
+
const millisecPerMinute = 1000 * 60;
|
|
11
|
+
const millisecPerHour = millisecPerMinute * 60;
|
|
12
|
+
// the interface and class are in alpha state - it may change after usability testing - test coverage not complete
|
|
13
|
+
/* istanbul ignore file */
|
|
14
|
+
/** Base class that provides solar data for animation control
|
|
15
|
+
* @alpha
|
|
16
|
+
*/
|
|
17
|
+
export class BaseSolarDataProvider {
|
|
18
|
+
constructor(viewport, longitude, latitude) {
|
|
19
|
+
this._shadowColor = ColorDef.create(ColorByName.gray);
|
|
20
|
+
this.longitude = -75.17035; // long/lat of Philadelphia
|
|
21
|
+
this.latitude = 39.954927;
|
|
22
|
+
this.viewId = ""; // View Id used to determine sunrise and sunset
|
|
23
|
+
this.supportsTimelineAnimation = false; // set to true when provider determines animation data is available.
|
|
24
|
+
this.animationFraction = 0; // value from 0.0 to 1.0 that specifies the percentage complete for the animation.
|
|
25
|
+
this._projectDayStartMS = 0;
|
|
26
|
+
this._projectSunriseMs = 0;
|
|
27
|
+
this._projectSunsetMs = 0;
|
|
28
|
+
this._zoneOffsetMs = 0;
|
|
29
|
+
this._projectSunrise = new Date();
|
|
30
|
+
this._projectSunset = new Date();
|
|
31
|
+
this._projectDateTime = new Date();
|
|
32
|
+
this._projectDay = new Date();
|
|
33
|
+
// instanbul ignore next
|
|
34
|
+
this.onTimeChanged = (_time) => {
|
|
35
|
+
// to be implemented by derived class
|
|
36
|
+
};
|
|
37
|
+
this._viewport = viewport;
|
|
38
|
+
if (longitude)
|
|
39
|
+
this.longitude = longitude;
|
|
40
|
+
if (latitude)
|
|
41
|
+
this.latitude = latitude;
|
|
42
|
+
if (viewport)
|
|
43
|
+
this.viewId = viewport.view.id;
|
|
44
|
+
// project location
|
|
45
|
+
this._cartographicCenter = Cartographic.fromDegrees({ longitude: this.longitude, latitude: this.latitude, height: 0.0 });
|
|
46
|
+
this._projectTimeZoneOffset = this.getZone(this._cartographicCenter);
|
|
47
|
+
this.initializeData(this._projectTimeZoneOffset);
|
|
48
|
+
}
|
|
49
|
+
// projectTimeZoneOffset = zone offset in hours
|
|
50
|
+
initializeData(projectTimeZoneOffset, initialTime) {
|
|
51
|
+
if (!initialTime)
|
|
52
|
+
initialTime = new Date(Date.now()); // users local time
|
|
53
|
+
this._zoneOffsetMs = projectTimeZoneOffset * millisecPerHour;
|
|
54
|
+
const year = initialTime.getFullYear();
|
|
55
|
+
const month = initialTime.getMonth();
|
|
56
|
+
const date = initialTime.getDate();
|
|
57
|
+
const hours = initialTime.getHours();
|
|
58
|
+
const minutes = initialTime.getMinutes();
|
|
59
|
+
const initialUtcMs = Date.UTC(year, month, date, hours, minutes, 0, 0);
|
|
60
|
+
const initialProjectMs = initialUtcMs - this._zoneOffsetMs;
|
|
61
|
+
this._projectDateTime = new Date(initialProjectMs);
|
|
62
|
+
const utcDayMs = Date.UTC(year, month, date, 0, 0, 0, 0);
|
|
63
|
+
const utcDay = new Date(utcDayMs);
|
|
64
|
+
this._projectDayStartMS = utcDayMs - this._zoneOffsetMs;
|
|
65
|
+
this._projectDay = new Date(this._projectDayStartMS);
|
|
66
|
+
this._projectSunrise = calculateSunriseOrSunset(utcDay, this._cartographicCenter, true);
|
|
67
|
+
this._projectSunset = calculateSunriseOrSunset(utcDay, this._cartographicCenter, false);
|
|
68
|
+
this._projectSunriseMs = this._projectSunrise.getTime();
|
|
69
|
+
this._projectSunsetMs = this._projectSunset.getTime();
|
|
70
|
+
}
|
|
71
|
+
get timeZoneOffset() {
|
|
72
|
+
return this._projectTimeZoneOffset;
|
|
73
|
+
}
|
|
74
|
+
get shadowColor() {
|
|
75
|
+
return this._shadowColor;
|
|
76
|
+
}
|
|
77
|
+
set shadowColor(color) {
|
|
78
|
+
this._shadowColor = color;
|
|
79
|
+
}
|
|
80
|
+
get shouldShowTimeline() {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
/** Get time at project location */
|
|
84
|
+
get timeOfDay() {
|
|
85
|
+
return this._projectDateTime;
|
|
86
|
+
}
|
|
87
|
+
/** The date can be in project time or if isProjectDate is false, it is assumed to be users current local time
|
|
88
|
+
* which will be adjusted to the same time at project location. */
|
|
89
|
+
setDateAndTime(date, isProjectDate) {
|
|
90
|
+
let userDay = date;
|
|
91
|
+
// convert date from user date to project location
|
|
92
|
+
if (isProjectDate) {
|
|
93
|
+
const userOffset = date.getTimezoneOffset() * millisecPerMinute;
|
|
94
|
+
userDay = new Date(date.getTime() - userOffset - this._zoneOffsetMs);
|
|
95
|
+
}
|
|
96
|
+
this.initializeData(this._projectTimeZoneOffset, userDay);
|
|
97
|
+
}
|
|
98
|
+
/** Project Day Start */
|
|
99
|
+
get day() {
|
|
100
|
+
return this._projectDay;
|
|
101
|
+
}
|
|
102
|
+
/** Project Day Start in milliseconds */
|
|
103
|
+
get dayStartMs() {
|
|
104
|
+
return this._projectDayStartMS;
|
|
105
|
+
}
|
|
106
|
+
getCartographicCenter(iModel) {
|
|
107
|
+
if (iModel.isGeoLocated) {
|
|
108
|
+
const projectExtents = iModel.projectExtents;
|
|
109
|
+
const projectCenter = Point3d.createAdd2Scaled(projectExtents.low, .5, projectExtents.high, .5);
|
|
110
|
+
return iModel.spatialToCartographicFromEcef(projectCenter);
|
|
111
|
+
}
|
|
112
|
+
return Cartographic.fromDegrees({ longitude: this.longitude, latitude: this.latitude, height: 0.0 });
|
|
113
|
+
}
|
|
114
|
+
set viewport(viewport) {
|
|
115
|
+
this._viewport = viewport;
|
|
116
|
+
if (viewport)
|
|
117
|
+
this.viewId = viewport.view.id;
|
|
118
|
+
else
|
|
119
|
+
this.viewId = "";
|
|
120
|
+
}
|
|
121
|
+
get viewport() {
|
|
122
|
+
return this._viewport;
|
|
123
|
+
}
|
|
124
|
+
getZone(location) {
|
|
125
|
+
return Math.floor(.5 + location.longitudeDegrees / 15.0);
|
|
126
|
+
}
|
|
127
|
+
get sunrise() {
|
|
128
|
+
return this._projectSunrise;
|
|
129
|
+
}
|
|
130
|
+
get sunriseMs() {
|
|
131
|
+
return this._projectSunriseMs;
|
|
132
|
+
}
|
|
133
|
+
get sunset() {
|
|
134
|
+
return this._projectSunset;
|
|
135
|
+
}
|
|
136
|
+
get sunsetMs() {
|
|
137
|
+
return this._projectSunsetMs;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=BaseSolarDataProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseSolarDataProvider.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/BaseSolarDataProvider.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInG,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAE,CAAC;AACpC,MAAM,eAAe,GAAG,iBAAiB,GAAG,E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IAED,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;CAMF","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 { calculateSunriseOrSunset, Cartographic, ColorByName, ColorDef } from \"@itwin/core-common\";\nimport { IModelConnection, ScreenViewport } from \"@itwin/core-frontend\";\nimport { 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/* istanbul ignore file */\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)\n 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(utcDay, this._cartographicCenter, true);\n this._projectSunset = calculateSunriseOrSunset(utcDay, this._cartographicCenter, false);\n this._projectSunriseMs = this._projectSunrise.getTime();\n this._projectSunsetMs = this._projectSunset.getTime();\n }\n\n constructor(viewport?: ScreenViewport, longitude?: number, latitude?: number) {\n this._viewport = viewport;\n if (longitude)\n this.longitude = longitude;\n if (latitude)\n this.latitude = latitude;\n\n if (viewport)\n this.viewId = viewport.view.id;\n\n // project location\n this._cartographicCenter = Cartographic.fromDegrees({longitude: this.longitude, latitude: this.latitude, height: 0.0});\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(projectExtents.low, .5, projectExtents.high, .5);\n return iModel.spatialToCartographicFromEcef(projectCenter);\n }\n return Cartographic.fromDegrees({longitude: this.longitude, latitude: this.latitude, height: 0.0});\n }\n\n public set viewport(viewport: ScreenViewport | undefined) {\n this._viewport = viewport;\n if (viewport)\n this.viewId = viewport.view.id;\n else\n 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(.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 // instanbul ignore next\n public onTimeChanged = (_time: Date) => {\n // to be implemented by derived class\n };\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Timeline
|
|
3
|
+
*/
|
|
4
|
+
import { ScreenViewport } from "@itwin/core-frontend";
|
|
5
|
+
import { PlaybackSettings, TimelineDataProvider } from "./interfaces";
|
|
6
|
+
/** Base Timeline Data Provider
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export declare class BaseTimelineDataProvider implements TimelineDataProvider {
|
|
10
|
+
readonly id = "TestTimelineDataProvider";
|
|
11
|
+
start: Date | undefined;
|
|
12
|
+
end: Date | undefined;
|
|
13
|
+
viewId: string;
|
|
14
|
+
supportsTimelineAnimation: boolean;
|
|
15
|
+
animationFraction: number;
|
|
16
|
+
protected _viewport: ScreenViewport | undefined;
|
|
17
|
+
constructor(viewport?: ScreenViewport);
|
|
18
|
+
protected _settings: PlaybackSettings;
|
|
19
|
+
loadTimelineData(): Promise<boolean>;
|
|
20
|
+
/** Called to get the initial scrubber location */
|
|
21
|
+
get initialDuration(): number;
|
|
22
|
+
/** Called to get playback duration */
|
|
23
|
+
get duration(): number;
|
|
24
|
+
set viewport(viewport: ScreenViewport | undefined);
|
|
25
|
+
get viewport(): ScreenViewport | undefined;
|
|
26
|
+
get loop(): boolean;
|
|
27
|
+
getSettings(): PlaybackSettings;
|
|
28
|
+
updateSettings(settings: PlaybackSettings): void;
|
|
29
|
+
onPlaybackSettingChanged: (_settings: PlaybackSettings) => void;
|
|
30
|
+
onAnimationFractionChanged: (_animationFraction: number) => void;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=BaseTimelineDataProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTimelineDataProvider.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/BaseTimelineDataProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEtE;;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;IAOrC,SAAS,CAAC,SAAS,EAAE,gBAAgB,CAGnC;IAGW,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC;IAIjD,kDAAkD;IAClD,IAAW,eAAe,IAAI,MAAM,CAEnC;IAED,uCAAuC;IACvC,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAGD,IAAW,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,SAAS,EAMvD;IAGD,IAAW,QAAQ,IAAI,cAAc,GAAG,SAAS,CAEhD;IAED,IAAW,IAAI,IAAI,OAAO,CAEzB;IAEM,WAAW,IAAI,gBAAgB;IAI/B,cAAc,CAAC,QAAQ,EAAE,gBAAgB;IAKzC,wBAAwB,cAAe,gBAAgB,UAC5D;IAGK,0BAA0B,uBAAwB,MAAM,UAC7D;CACH"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Timeline
|
|
7
|
+
*/
|
|
8
|
+
/** Base Timeline Data Provider
|
|
9
|
+
* @alpha
|
|
10
|
+
*/
|
|
11
|
+
export class BaseTimelineDataProvider {
|
|
12
|
+
constructor(viewport) {
|
|
13
|
+
this.id = "TestTimelineDataProvider";
|
|
14
|
+
this.viewId = "";
|
|
15
|
+
this.supportsTimelineAnimation = false; // set to true when provider determines animation data is available.
|
|
16
|
+
this.animationFraction = 0; // value from 0.0 to 1.0 that specifies the percentage complete for the animation.
|
|
17
|
+
this._settings = {
|
|
18
|
+
duration: 20 * 1000,
|
|
19
|
+
loop: true,
|
|
20
|
+
};
|
|
21
|
+
// istanbul ignore next
|
|
22
|
+
this.onPlaybackSettingChanged = (_settings) => {
|
|
23
|
+
};
|
|
24
|
+
// istanbul ignore next
|
|
25
|
+
this.onAnimationFractionChanged = (_animationFraction) => {
|
|
26
|
+
};
|
|
27
|
+
this._viewport = viewport;
|
|
28
|
+
// istanbul ignore if - WIP
|
|
29
|
+
if (viewport)
|
|
30
|
+
this.viewId = viewport.view.id;
|
|
31
|
+
}
|
|
32
|
+
// istanbul ignore next
|
|
33
|
+
async loadTimelineData() {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
/** Called to get the initial scrubber location */
|
|
37
|
+
get initialDuration() {
|
|
38
|
+
return this.duration * this.animationFraction;
|
|
39
|
+
}
|
|
40
|
+
/** Called to get playback duration */
|
|
41
|
+
get duration() {
|
|
42
|
+
return (this.getSettings().duration) ? this.getSettings().duration : /* istanbul ignore next */ 20000;
|
|
43
|
+
}
|
|
44
|
+
// istanbul ignore next - WIP
|
|
45
|
+
set viewport(viewport) {
|
|
46
|
+
this._viewport = viewport;
|
|
47
|
+
if (viewport)
|
|
48
|
+
this.viewId = viewport.view.id;
|
|
49
|
+
else
|
|
50
|
+
this.viewId = "";
|
|
51
|
+
}
|
|
52
|
+
// istanbul ignore next - WIP
|
|
53
|
+
get viewport() {
|
|
54
|
+
return this._viewport;
|
|
55
|
+
}
|
|
56
|
+
get loop() {
|
|
57
|
+
return (undefined === this.getSettings().loop) ? /* istanbul ignore next */ false : this.getSettings().loop;
|
|
58
|
+
}
|
|
59
|
+
getSettings() {
|
|
60
|
+
return this._settings;
|
|
61
|
+
}
|
|
62
|
+
updateSettings(settings) {
|
|
63
|
+
this._settings = { ...this._settings, ...settings };
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=BaseTimelineDataProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTimelineDataProvider.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/BaseTimelineDataProvider.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAKH;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAUnC,YAAY,QAAyB;QATrB,OAAE,GAAG,0BAA0B,CAAC;QAGzC,WAAM,GAAG,EAAE,CAAC;QAEZ,8BAAyB,GAAG,KAAK,CAAC,CAAC,oEAAoE;QACvG,sBAAiB,GAAW,CAAC,CAAC,CAA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BAA0B,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,IAAK,CAAC;IAC/G,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;CASF","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 { ScreenViewport } from \"@itwin/core-frontend\";\nimport { 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 // istanbul ignore if - WIP\n if (viewport)\n this.viewId = viewport.view.id;\n }\n\n protected _settings: PlaybackSettings = {\n duration: 20 * 1000,\n loop: true,\n };\n\n // istanbul ignore next\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! : /* istanbul ignore next */ 20000;\n }\n\n // istanbul ignore next - WIP\n public set viewport(viewport: ScreenViewport | undefined) {\n this._viewport = viewport;\n if (viewport)\n this.viewId = viewport.view.id;\n else\n this.viewId = \"\";\n }\n\n // istanbul ignore next - WIP\n public get viewport(): ScreenViewport | undefined {\n return this._viewport;\n }\n\n public get loop(): boolean {\n return (undefined === this.getSettings().loop) ? /* istanbul ignore next */ false : 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 // istanbul ignore next\n public onPlaybackSettingChanged = (_settings: PlaybackSettings) => {\n };\n\n // istanbul ignore next\n public onAnimationFractionChanged = (_animationFraction: number) => {\n };\n}\n"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import "./ContextMenu.scss";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { RelativePosition } from "@itwin/appui-abstract";
|
|
4
|
+
import { CommonProps } from "@itwin/core-react";
|
|
5
|
+
/** Properties for [[ContextMenuItem]] component
|
|
6
|
+
* @internal
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
9
|
+
export interface MenuItem {
|
|
10
|
+
/** Name of the context menu item */
|
|
11
|
+
name?: string;
|
|
12
|
+
/** Optional icon */
|
|
13
|
+
icon?: string;
|
|
14
|
+
/** Disabled */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Checked or not */
|
|
17
|
+
checked?: boolean;
|
|
18
|
+
/** Separator */
|
|
19
|
+
isSeparator?: boolean;
|
|
20
|
+
/** Called when the item is clicked */
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A context menu item.
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
28
|
+
export declare class ContextMenuItem extends React.Component<MenuItem> {
|
|
29
|
+
private _onClick;
|
|
30
|
+
render(): JSX.Element;
|
|
31
|
+
}
|
|
32
|
+
/** Properties for [[ContextMenu]] component
|
|
33
|
+
* @internal
|
|
34
|
+
* @deprecated
|
|
35
|
+
*/
|
|
36
|
+
export interface ContextMenuProps extends CommonProps {
|
|
37
|
+
/** Show or hide the context menu */
|
|
38
|
+
isOpened: boolean;
|
|
39
|
+
/** Position the context menu relative to the parent */
|
|
40
|
+
position: RelativePosition;
|
|
41
|
+
/** List of context menu items */
|
|
42
|
+
items?: MenuItem[];
|
|
43
|
+
/** Called when the mouse is clicked outside the context menu */
|
|
44
|
+
onClickOutside?: () => void;
|
|
45
|
+
/** parent element */
|
|
46
|
+
parent: HTMLElement | null;
|
|
47
|
+
}
|
|
48
|
+
/** Context menu for timeline component
|
|
49
|
+
* @internal
|
|
50
|
+
* @deprecated
|
|
51
|
+
*/
|
|
52
|
+
export declare class ContextMenu extends React.Component<ContextMenuProps> {
|
|
53
|
+
render(): JSX.Element;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=ContextMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/ContextMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAS,MAAM,mBAAmB,CAAC;AAIvD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAGD;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;IAE5D,OAAO,CAAC,QAAQ,CAMd;IAGc,MAAM;CAqBvB;AAGD;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,uDAAuD;IACvD,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,iCAAiC;IACjC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,qBAAqB;IACrB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;CAC5B;AAGD;;;GAGG;AACH,qBAAa,WAAY,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;IAEhD,MAAM;CAgBvB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 "./ContextMenu.scss";
|
|
6
|
+
import classnames from "classnames";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { Popup } from "@itwin/core-react";
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/**
|
|
11
|
+
* A context menu item.
|
|
12
|
+
* @internal
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
export class ContextMenuItem extends React.Component {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this._onClick = (event) => {
|
|
19
|
+
event.stopPropagation();
|
|
20
|
+
// istanbul ignore else
|
|
21
|
+
if (!this.props.disabled && !this.props.isSeparator && this.props.onClick) {
|
|
22
|
+
this.props.onClick();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
// istanbul ignore next - WIP
|
|
27
|
+
render() {
|
|
28
|
+
const menuClassName = classnames("contextmenu-item-wip", this.props.disabled && "disabled", this.props.checked && "checked");
|
|
29
|
+
return (React.createElement(React.Fragment, null,
|
|
30
|
+
this.props.isSeparator && React.createElement("div", { className: "separator", role: "separator" }),
|
|
31
|
+
!this.props.isSeparator &&
|
|
32
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
33
|
+
React.createElement("li", { className: menuClassName, onClick: this._onClick, role: "menuitem" },
|
|
34
|
+
this.props.checked && React.createElement("span", { className: "icon icon-checkmark" }),
|
|
35
|
+
(this.props.icon && !this.props.checked) && React.createElement("span", { className: classnames("user-icon icon", this.props.icon) }),
|
|
36
|
+
React.createElement("span", null, this.props.name))));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/* istanbul ignore next */
|
|
40
|
+
/** Context menu for timeline component
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated
|
|
43
|
+
*/
|
|
44
|
+
export class ContextMenu extends React.Component {
|
|
45
|
+
// istanbul ignore next - WIP
|
|
46
|
+
render() {
|
|
47
|
+
const { items, parent, position, isOpened, onClickOutside } = this.props;
|
|
48
|
+
return (React.createElement(Popup, { isOpen: isOpened, target: parent, position: position, onClose: onClickOutside },
|
|
49
|
+
React.createElement("div", { "data-testid": "timeline-contextmenu-div", className: "contextmenu-wip" },
|
|
50
|
+
React.createElement("ul", null,
|
|
51
|
+
items && items.map((item, index) => (React.createElement(ContextMenuItem, { key: index, name: item.name, icon: item.icon, disabled: item.disabled, onClick: item.onClick, isSeparator: item.isSeparator }))),
|
|
52
|
+
this.props.children))));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=ContextMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextMenu.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/ContextMenu.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,oBAAoB,CAAC;AAC5B,OAAO,UAAU,MAAM,YAAY,CAAC;A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AAC,KAAK,CAAC,IAAI,CAAQ,CAC3B,CAEN,CACJ,CAAC;IACJ,CAAC;CACF;AAoBD,0BAA0B;AAC1B;;;GAGG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAA2B;IAChE,6BAA6B;IACb,MAAM;QACpB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACzE,OAAO,CACL,oBAAC,KAAK,IAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc;YAClF,4CAAiB,0BAA0B,EAAC,SAAS,EAAC,iBAAiB;gBACrE;oBACG,KAAK,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAc,EAAE,KAAa,EAAE,EAAE,CAAC,CACrD,oBAAC,eAAe,IAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,GAAI,CACjJ,CAAC;oBAED,IAAI,CAAC,KAAK,CAAC,QAAQ,CACjB,CACD,CACA,CACT,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport \"./ContextMenu.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { RelativePosition } from \"@itwin/appui-abstract\";\nimport { CommonProps, Popup } from \"@itwin/core-react\";\n/* eslint-disable deprecation/deprecation */\n\n/* istanbul ignore next */\n/** Properties for [[ContextMenuItem]] component\n * @internal\n * @deprecated\n */\nexport interface MenuItem {\n /** Name of the context menu item */\n name?: string;\n /** Optional icon */\n icon?: string;\n /** Disabled */\n disabled?: boolean;\n /** Checked or not */\n checked?: boolean;\n /** Separator */\n isSeparator?: boolean;\n /** Called when the item is clicked */\n onClick?: () => void;\n}\n\n/* istanbul ignore next */\n/**\n * A context menu item.\n * @internal\n * @deprecated\n */\nexport class ContextMenuItem extends React.Component<MenuItem> {\n\n private _onClick = (event: any) => {\n event.stopPropagation();\n // istanbul ignore else\n if (!this.props.disabled && !this.props.isSeparator && this.props.onClick) {\n this.props.onClick();\n }\n };\n\n // istanbul ignore next - WIP\n public override render() {\n const menuClassName = classnames(\n \"contextmenu-item-wip\",\n this.props.disabled && \"disabled\",\n this.props.checked && \"checked\",\n );\n\n return (\n <>\n {this.props.isSeparator && <div className=\"separator\" role=\"separator\" />}\n {!this.props.isSeparator &&\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\n <li className={menuClassName} onClick={this._onClick} role=\"menuitem\">\n {this.props.checked && <span className=\"icon icon-checkmark\" />}\n {(this.props.icon && !this.props.checked) && <span className={classnames(\"user-icon icon\", this.props.icon)} />}\n <span>{this.props.name}</span>\n </li>\n }\n </>\n );\n }\n}\n\n/* istanbul ignore next */\n/** Properties for [[ContextMenu]] component\n * @internal\n * @deprecated\n */\nexport interface ContextMenuProps extends CommonProps {\n /** Show or hide the context menu */\n isOpened: boolean;\n /** Position the context menu relative to the parent */\n position: RelativePosition;\n /** List of context menu items */\n items?: MenuItem[];\n /** Called when the mouse is clicked outside the context menu */\n onClickOutside?: () => void;\n /** parent element */\n parent: HTMLElement | null;\n}\n\n/* istanbul ignore next */\n/** Context menu for timeline component\n * @internal\n * @deprecated\n */\nexport class ContextMenu extends React.Component<ContextMenuProps> {\n // istanbul ignore next - WIP\n public override render() {\n const { items, parent, position, isOpened, onClickOutside } = this.props;\n return (\n <Popup isOpen={isOpened} target={parent} position={position} onClose={onClickOutside}>\n <div data-testid=\"timeline-contextmenu-div\" className=\"contextmenu-wip\">\n <ul>\n {items && items.map((item: MenuItem, index: number) => (\n <ContextMenuItem key={index} name={item.name} icon={item.icon} disabled={item.disabled} onClick={item.onClick} isSeparator={item.isSeparator} />\n ))\n }\n {this.props.children}\n </ul>\n </div>\n </Popup>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,81 @@
|
|
|
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/z-index";
|
|
6
|
+
@import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
|
|
7
|
+
|
|
8
|
+
// cspell:ignore contextmenu
|
|
9
|
+
|
|
10
|
+
.contextmenu-wip {
|
|
11
|
+
cursor: default;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
@include uicore-z-index(context-menu-z);
|
|
14
|
+
background: $buic-background-1;
|
|
15
|
+
border-radius: 3px;
|
|
16
|
+
max-width: 250px;
|
|
17
|
+
|
|
18
|
+
>ul {
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding: 6px 0;
|
|
21
|
+
list-style: none;
|
|
22
|
+
|
|
23
|
+
>.separator {
|
|
24
|
+
padding: .5em 0;
|
|
25
|
+
position: relative;
|
|
26
|
+
|
|
27
|
+
&:before {
|
|
28
|
+
content: '';
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 50%;
|
|
31
|
+
left: 32px;
|
|
32
|
+
right: 4px;
|
|
33
|
+
width: auto;
|
|
34
|
+
height: 1px;
|
|
35
|
+
background: #dce0e3;
|
|
36
|
+
transform: translateY(-50%);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.contextmenu-item-wip {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
margin: 0;
|
|
46
|
+
padding: .5em 0;
|
|
47
|
+
color: $buic-foreground-body;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
position: relative;
|
|
50
|
+
user-select: none;
|
|
51
|
+
|
|
52
|
+
>.user-icon,
|
|
53
|
+
>.icon-checkmark {
|
|
54
|
+
position: absolute;
|
|
55
|
+
left: 10px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// text
|
|
59
|
+
>span:last-child {
|
|
60
|
+
padding-left: 32px;
|
|
61
|
+
padding-right: 1em;
|
|
62
|
+
text-overflow: ellipsis;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:hover:not(.disabled) {
|
|
68
|
+
background: $buic-row-hover;
|
|
69
|
+
color: $buic-foreground-activehover;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.disabled {
|
|
74
|
+
color: $buic-foreground-disabled;
|
|
75
|
+
cursor: default;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
>.icon-checkmark {
|
|
79
|
+
color: $buic-foreground-primary;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "./InlineEdit.scss";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { CommonProps } from "@itwin/core-react";
|
|
4
|
+
interface InlineEditProps extends CommonProps {
|
|
5
|
+
defaultValue: string;
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
interface InlineEditState {
|
|
9
|
+
value: string;
|
|
10
|
+
originalValue: string;
|
|
11
|
+
}
|
|
12
|
+
/** Duration Inline Editor
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare class InlineEdit extends React.Component<InlineEditProps, InlineEditState> {
|
|
16
|
+
private _inputRef;
|
|
17
|
+
constructor(props: InlineEditProps);
|
|
18
|
+
/** @internal */
|
|
19
|
+
componentDidUpdate(prevProps: InlineEditProps, _prevState: InlineEditState): void;
|
|
20
|
+
private _onBlur;
|
|
21
|
+
private _onFocus;
|
|
22
|
+
private _onKeyDown;
|
|
23
|
+
private _onChange;
|
|
24
|
+
private _sendChange;
|
|
25
|
+
render(): JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=InlineEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,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,CAAC,eAAe,EAAE,eAAe,CAAC;IAC/E,OAAO,CAAC,SAAS,CAAuC;gBAE5C,KAAK,EAAE,eAAe;IAMlC,gBAAgB;IACA,kBAAkB,CAAC,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe;IAS1F,OAAO,CAAC,OAAO,CAEb;IAEF,OAAO,CAAC,QAAQ,CAEd;IAEF,OAAO,CAAC,UAAU,CAWhB;IAEF,OAAO,CAAC,SAAS,CAEf;IAEF,OAAO,CAAC,WAAW;IAMH,MAAM;CAcvB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 "./InlineEdit.scss";
|
|
6
|
+
import classnames from "classnames";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { SpecialKey } from "@itwin/appui-abstract";
|
|
9
|
+
import { Input } from "@itwin/itwinui-react";
|
|
10
|
+
/** Duration Inline Editor
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export class InlineEdit extends React.Component {
|
|
14
|
+
constructor(props) {
|
|
15
|
+
super(props);
|
|
16
|
+
this._inputRef = React.createRef();
|
|
17
|
+
// istanbul ignore next
|
|
18
|
+
this._onBlur = (event) => {
|
|
19
|
+
this._sendChange(event.target.value);
|
|
20
|
+
};
|
|
21
|
+
this._onFocus = (event) => {
|
|
22
|
+
event.target.select();
|
|
23
|
+
};
|
|
24
|
+
this._onKeyDown = (event) => {
|
|
25
|
+
switch (event.key) {
|
|
26
|
+
case SpecialKey.Escape:
|
|
27
|
+
this.setState((prevState) => ({ value: prevState.originalValue }), () => this._inputRef.current.select());
|
|
28
|
+
break;
|
|
29
|
+
case SpecialKey.Enter:
|
|
30
|
+
this._sendChange(this.state.value);
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
this._onChange = (event) => {
|
|
35
|
+
this.setState({ value: event.target.value });
|
|
36
|
+
};
|
|
37
|
+
this.state = { value: this.props.defaultValue, originalValue: this.props.defaultValue };
|
|
38
|
+
}
|
|
39
|
+
/** @internal */
|
|
40
|
+
componentDidUpdate(prevProps, _prevState) {
|
|
41
|
+
if (prevProps.defaultValue !== this.props.defaultValue) {
|
|
42
|
+
this.setState((_, props) => {
|
|
43
|
+
return { value: props.defaultValue, originalValue: props.defaultValue };
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
_sendChange(value) {
|
|
48
|
+
// istanbul ignore else
|
|
49
|
+
if (this.props.onChange)
|
|
50
|
+
this.props.onChange(value);
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
return (React.createElement(Input, { "data-testid": "timeline-duration-edit-input", className: classnames("inline-edit-input", this.props.className), ref: this._inputRef, type: "text", value: this.state.value, onFocus: this._onFocus, onBlur: this._onBlur, onKeyDown: this._onKeyDown, onChange: this._onChange }));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=InlineEdit.js.map
|