@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
@import "~@itwin/core-react/lib/core-react/style/themecolors";
|
|
5
|
+
@import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
|
|
6
6
|
@import "~@itwin/itwinui-css/scss/style/typography";
|
|
7
7
|
|
|
8
8
|
$cube-outer-width: 96px;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawingNavigationAid.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/navigationaids/DrawingNavigationAid.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,6BAA6B,CAAC;AAErC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAsB,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAW,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACzG,OAAO,EAAa,gBAAgB,EAAE,cAAc,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAErH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,C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;IAUzB,OAAO,CAAC,OAAO,CAUb;IAEc,kBAAkB,CAAC,QAAQ,EAAE,4BAA4B;IAyBzD,oBAAoB;CAOrC"}
|
|
@@ -420,7 +420,10 @@ class DrawingNavigationAid extends React.Component {
|
|
|
420
420
|
const map = startMapOrigin.interpolate(a, mapOrigin);
|
|
421
421
|
const sz = startMapExtents.interpolate(a, mapExtents);
|
|
422
422
|
const dz = core_geometry_1.Geometry.interpolate(startDrawingZoom, a, drawingZoom);
|
|
423
|
-
const rootStyle =
|
|
423
|
+
const rootStyle = {
|
|
424
|
+
width: sz.x, height: sz.y,
|
|
425
|
+
...this.props.style,
|
|
426
|
+
};
|
|
424
427
|
const is3D = this._isViewport3D();
|
|
425
428
|
const tOr = rotateMinimapWithView || is3D ? rotation.multiplyVector(core_geometry_1.Vector3d.createFrom(or)) : core_geometry_1.Vector3d.createFrom(or);
|
|
426
429
|
const tMap = rotateMinimapWithView || is3D ? rotation.multiplyVector(core_geometry_1.Vector3d.createFrom(map)) : core_geometry_1.Vector3d.createFrom(map);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawingNavigationAid.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/navigationaids/DrawingNavigationAid.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAqC;AACrC,4DAAoC;AACpC,6CAA+B;AAC/B,oDAAsC;AACtC,wDAAyG;AACzG,wDAAqH;AACrH,0DAAmD;AAEnD,8DAA2D;AAC3D,iFAA2G;AAE3G,gDAAgD;AAChD,0DAA0D;AAE1D;;;GAGG;AACH,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,gCAAqB,CAAA;IACrB,gCAAqB,CAAA;AACvB,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB;AA6DD;;;GAGG;AACH,MAAa,oBAAqB,SAAQ,KAAK,CAAC,SAA+D;IAY7G,YAAY,KAA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AI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;oBACvF,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBACjC,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAClC,KAAK,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,8BAA8B;oBAC9E,IAAI,CAAC,OAAO,EAAE,CAAC;iBAChB;aACF;iBAAM,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;gBAC9M,IAAI,CAAC,OAAO,EAAE,CAAC;aAChB;SACF;IACH,CAAC;IAEe,oBAAoB;QAClC,IAAI,IAAI,CAAC,GAAG,EAAE;YACZ,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,0BAA0B,CAAC,yBAAS,CAAC,WAAW,CAAC;YACvI,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;SAC1C;IACH,CAAC;CAEF;AAjFD,0DAiFC","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 NavigationAids\n */\n\nimport \"./DrawingNavigationAid.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Constant, Geometry, Matrix3d, Point2d, Point3d, Point4d, Vector3d } from \"@itwin/core-geometry\";\nimport { IModelApp, IModelConnection, ScreenViewport, ViewManager, Viewport, ViewState } from \"@itwin/core-frontend\";\nimport { SpecialKey } from \"@itwin/appui-abstract\";\nimport { CommonProps } from \"@itwin/core-react\";\nimport { UiIModelComponents } from \"../UiIModelComponents\";\nimport { ViewportComponentEvents, ViewRotationChangeEventArgs } from \"../viewport/ViewportComponentEvents\";\n\n// cSpell:ignore Quaternion Quaternions unrotate\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n\n/**\n * Enum for mode that minimap is currently in\n * @internal\n */\nexport enum MapMode {\n Opened = \"map-opened\",\n Closed = \"map-closed\",\n}\n\n/** Properties for the [[DrawingNavigationAid]] component\n * @public\n */\nexport interface DrawingNavigationAidProps extends CommonProps {\n iModelConnection: IModelConnection;\n viewport?: Viewport;\n\n // used only in testing\n\n /** @internal */\n animationTime?: number;\n /** @internal */\n openSize?: Vector3d;\n /** @internal */\n closeSize?: Vector3d;\n /** @internal */\n initialMapMode?: MapMode;\n /** @internal */\n onAnimationEnd?: () => void;\n /** @internal */\n initialRotateMinimapWithView?: boolean;\n /** @internal */\n initialView?: ViewState;\n /** @internal */\n viewManagerOverride?: ViewManager;\n /** @internal */\n screenViewportOverride?: typeof ScreenViewport;\n}\n\n/** @internal */\ninterface DrawingNavigationAidState {\n startOrigin: Point3d;\n origin: Point3d;\n extents: Vector3d;\n startRotation: Matrix3d;\n rotation: Matrix3d;\n\n startMapOrigin: Point3d;\n mapOrigin: Point3d;\n startMapExtents: Vector3d;\n mapExtents: Vector3d;\n\n mouseStart: Point2d;\n panningDirection: Vector3d;\n startDrawingZoom: number;\n drawingZoom: number;\n\n mode: MapMode;\n animation: number;\n\n isMoving: boolean;\n isPanning: boolean;\n\n viewId: string;\n view: ViewState | undefined;\n\n rotateMinimapWithView: boolean;\n}\n\n/**\n * A Drawing Navigation Aid.\n * @public\n */\nexport class DrawingNavigationAid extends React.Component<DrawingNavigationAidProps, DrawingNavigationAidState> {\n private _rootElement = React.createRef<HTMLDivElement>();\n private _viewContainerElement = React.createRef<HTMLDivElement>();\n private _viewElement = React.createRef<HTMLDivElement>();\n private _rootOffset: DOMRect = DOMRect.fromRect({ x: 0, y: 0, width: 0, height: 0 });\n private _viewport: Viewport | undefined;\n private _animationFrame: any;\n private _mounted: boolean = false;\n\n /** @internal */\n public override readonly state: Readonly<DrawingNavigationAidState>;\n\n constructor(props: DrawingNavigationAidProps) {\n super(props);\n const mode = props.initialMapMode || MapMode.Closed;\n const mapExtents = mode === MapMode.Closed ? this._getClosedMapSize() : this._getOpenedMapSize();\n const startMapExtents = mapExtents;\n\n this.state = {\n startOrigin: Point3d.createZero(),\n origin: Point3d.createZero(),\n extents: Vector3d.create(1, 1, 1),\n startRotation: Matrix3d.createIdentity(),\n rotation: Matrix3d.createIdentity(),\n\n startMapOrigin: Point3d.createZero(),\n mapOrigin: Point3d.createZero(),\n startMapExtents,\n mapExtents,\n\n mouseStart: Point2d.createZero(),\n panningDirection: Vector3d.createZero(),\n startDrawingZoom: 1.0,\n drawingZoom: 1.0,\n\n mode,\n animation: 1.0,\n\n viewId: props.initialView !== undefined ? props.initialView.id : \"\",\n view: props.initialView,\n\n isMoving: false,\n isPanning: false,\n rotateMinimapWithView: props.initialRotateMinimapWithView !== undefined ? props.initialRotateMinimapWithView : false,\n };\n }\n\n /** @internal */\n public override render(): React.ReactNode {\n const {\n startOrigin, origin, extents,\n startRotation, rotation,\n startMapOrigin, mapOrigin,\n startMapExtents, mapExtents,\n startDrawingZoom, drawingZoom,\n animation,\n viewId,\n mode, rotateMinimapWithView,\n } = this.state;\n\n const a = DrawingNavigationAid._animationFn(animation);\n const rot = Matrix3d.createFromQuaternion(Point4d.interpolateQuaternions(startRotation.toQuaternion(), a, rotation.toQuaternion()));\n const or = startOrigin.interpolate(a, origin);\n const map = startMapOrigin.interpolate(a, mapOrigin);\n const sz = startMapExtents.interpolate(a, mapExtents);\n const dz = Geometry.interpolate(startDrawingZoom, a, drawingZoom);\n\n const rootStyle: React.CSSProperties = {\n width: sz.x, height: sz.y,\n ...this.props.style,\n };\n const is3D = this._isViewport3D();\n\n const tOr = rotateMinimapWithView || is3D ? rotation.multiplyVector(Vector3d.createFrom(or)) : Vector3d.createFrom(or);\n const tMap = rotateMinimapWithView || is3D ? rotation.multiplyVector(Vector3d.createFrom(map)) : Vector3d.createFrom(map);\n\n const tPosX = (tOr.x - extents.x / 2 - tMap.x) * dz + sz.x / 2;\n const tPosY = (-tOr.y - extents.y / 2 + tMap.y) * dz + sz.y / 2;\n const viewWindowStyle = {\n transform: `translate(${tPosX}px, ${tPosY}px)`,\n height: extents.y * dz,\n width: extents.x * dz,\n };\n if (!rotateMinimapWithView && !is3D)\n viewWindowStyle.transform =\n \"matrix3d(\" +\n `${rot.at(0, 0)}, ${rot.at(1, 0)}, ${rot.at(2, 0)}, 0, ` +\n `${rot.at(0, 1)}, ${rot.at(1, 1)}, ${rot.at(2, 1)}, 0, ` +\n `${rot.at(0, 2)}, ${rot.at(1, 2)}, ${rot.at(2, 2)}, 0, ` +\n `${tPosX}, ${tPosY}, 0, 1)`;\n const isAnimating = animation !== 1 && !startMapExtents.isExactEqual(mapExtents);\n if (mode === MapMode.Opened || isAnimating) {\n rootStyle.position = \"fixed\";\n rootStyle.right = window.innerWidth - this._rootOffset.right;\n rootStyle.top = this._rootOffset.top;\n }\n\n const halfExtents = extents.scale(.5);\n const offset = rotateMinimapWithView || is3D ? Vector3d.createZero() : rotation.multiplyTransposeVector(halfExtents).minus(halfExtents);\n\n const unrotateLabel = UiIModelComponents.translate(\"drawing.unrotate\");\n const e = sz.scale(1 / dz);\n const halfMapExtents = e.scale(.5);\n const mapOffset = rotateMinimapWithView || is3D ? rotation.multiplyTransposeVector(halfMapExtents) : halfMapExtents;\n const viewManager = this.props.viewManagerOverride ? this.props.viewManagerOverride : /* istanbul ignore next */ IModelApp.viewManager;\n const screenViewport = this.props.screenViewportOverride ? this.props.screenViewportOverride : /* istanbul ignore next */ ScreenViewport;\n const nodes = (\n <div className={classnames(\"components-drawing-navigation-aid\", this.props.className)}\n data-testid=\"components-drawing-navigation-aid\"\n ref={this._rootElement}\n onWheel={this._handleWheel}\n onMouseDown={this._handleDrawingMouseDown}\n style={rootStyle}\n role=\"presentation\">\n <DrawingNavigationCanvas view={this.state.view} viewManagerOverride={viewManager} screenViewportOverride={screenViewport} viewId={viewId} origin={map.plus(offset).minus(mapOffset)} extents={e} zoom={dz} rotation={rotateMinimapWithView || is3D ? rotation : Matrix3d.createIdentity()} />\n <div className=\"drawing-container\"\n data-testid=\"drawing-container\"\n ref={this._viewContainerElement}>\n <div className=\"drawing-view-window\"\n data-testid=\"drawing-view-window\"\n onMouseDown={this._handleWindowMouseDown}\n onTouchStart={this._handleWindowTouchStart}\n style={viewWindowStyle}\n ref={this._viewElement}\n role=\"presentation\" />\n {!is3D &&\n <div className={classnames(\"toggle-rotate-style\", \"icon\", \"icon-rotate-left\", { checked: rotateMinimapWithView })} data-testid=\"toggle-rotate-style\"\n style={mode === MapMode.Closed && !isAnimating ? { bottom: 2, left: 2 } : {}}\n title={UiIModelComponents.translate(\"drawing.rotateStyle\")}\n onClick={this._toggleRotationMode}\n role=\"presentation\" />}\n {!rot.isIdentity &&\n <div className=\"unrotate-button\" data-testid=\"drawing-unrotate-button\" style={mode === MapMode.Closed && !isAnimating ? { top: 2 } : {}} onClick={this._handleUnrotate}\n role=\"button\" tabIndex={-1}\n >\n {unrotateLabel}\n </div>\n }\n {mode === MapMode.Opened && !isAnimating && <>\n <div className=\"close\" data-testid=\"drawing-close-button\" onClick={this._closeLargeMap} role=\"button\" tabIndex={-1}>\n <div className=\"close-icon icon icon-sort-up\" />\n </div>\n <div className=\"zoom\">\n <div className=\"zoom-button icon icon-add\" data-testid=\"drawing-zoom-in-button\" onClick={this._handleZoomIn} role=\"button\" tabIndex={-1} />\n <div className=\"zoom-button icon icon-remove-2\" data-testid=\"drawing-zoom-out-button\" onClick={this._handleZoomOut} role=\"button\" tabIndex={-1} />\n </div>\n </>}\n </div>\n </div>\n );\n if (mode === MapMode.Closed && (animation === 1.0 || startMapExtents.isExactEqual(mapExtents))) {\n return nodes;\n } else {\n let drawingPortal = document.querySelector(\"#components-drawing-portal\");\n if (!drawingPortal) {\n drawingPortal = document.createElement(\"div\");\n drawingPortal.id = \"components-drawing-portal\";\n document.body.appendChild(drawingPortal);\n }\n return ReactDOM.createPortal(nodes, drawingPortal);\n }\n }\n\n private _isViewport3D = () => {\n return this.state.view !== undefined && this.state.view.is3d();\n };\n\n private _lastTime: number | undefined;\n\n private static _animationFn = (t: number) => t < .5 ? 2 * t ** 2 : -1 + (4 - 2 * t) * t;\n\n private _animation = () => {\n const t = Date.now();\n const delta = this._lastTime ? t - this._lastTime : 16;\n this._lastTime = t;\n if (this.state.animation !== 1) {\n const animation = Math.min(1, this.state.animation + delta / (1000 * (this.props.animationTime || 0.4)));\n this._updateFrustum();\n\n // istanbul ignore next\n if (this._mounted) {\n this.setState({ animation }, () => {\n this._animationFrame = setTimeout(this._animation, 16.667);\n });\n }\n } else {\n this._lastTime = undefined;\n this._animationEnd();\n }\n };\n\n private _animationEnd = () => {\n const hasViewportMoved = !this.state.origin.isAlmostEqual(this.state.startOrigin) ||\n !this.state.rotation.isAlmostEqual(this.state.startRotation);\n const startMapOrigin = Point3d.createFrom(this.state.mapOrigin);\n const startMapExtents = Vector3d.createFrom(this.state.mapExtents);\n const startDrawingZoom = this.state.drawingZoom;\n const startOrigin = this.state.origin;\n const startRotation = this.state.rotation;\n // istanbul ignore next\n if (this._mounted) {\n this.setState({ startMapOrigin, startDrawingZoom, startOrigin, startRotation, startMapExtents }, () => {\n // istanbul ignore else\n if (this.props.onAnimationEnd)\n this.props.onAnimationEnd();\n if (hasViewportMoved)\n this._updateFrustum(true);\n });\n }\n };\n\n private _lastPanTime: number | undefined;\n\n private _panAnimation = () => {\n const t = Date.now();\n if (this._lastPanTime === undefined)\n this._lastPanTime = t - 16.667;\n const delta = t - this._lastPanTime;\n this._lastPanTime = t;\n // istanbul ignore else\n if (!this.state.panningDirection.isAlmostZero && this.state.isMoving) {\n const { panningDirection } = this.state;\n const offset = panningDirection.scale(delta / 1000 / this.state.drawingZoom);\n const mapOrigin = this.state.mapOrigin.plus(offset);\n\n const origin = this.state.origin.plus(offset);\n this._updateFrustum();\n // istanbul ignore next\n if (this._mounted) {\n this.setState({ mapOrigin, origin, panningDirection }, () => {\n this._animationFrame = setTimeout(this._panAnimation, 16.667);\n });\n }\n } else {\n this._lastPanTime = undefined;\n this._updateFrustum(true);\n }\n };\n\n public override componentDidMount() {\n this._mounted = true;\n ViewportComponentEvents.onViewRotationChangeEvent.addListener(this._handleViewRotationChangeEvent);\n window.addEventListener(\"mousedown\", this._handleMouseDown as any);\n window.addEventListener(\"mouseup\", this._handleMouseDragEnd as any);\n window.addEventListener(\"mousemove\", this._handleMouseDrag as any);\n window.addEventListener(\"keyup\", this._handleKeyUp as any);\n }\n\n public override componentWillUnmount() {\n ViewportComponentEvents.onViewRotationChangeEvent.removeListener(this._handleViewRotationChangeEvent);\n window.removeEventListener(\"mousedown\", this._handleMouseDown as any);\n window.removeEventListener(\"mouseup\", this._handleMouseDragEnd as any);\n window.removeEventListener(\"mousemove\", this._handleMouseDrag as any);\n window.removeEventListener(\"keyup\", this._handleKeyUp as any);\n clearTimeout(this._animationFrame);\n if (this.props.onAnimationEnd)\n this.props.onAnimationEnd();\n\n const rt = document.getElementById(\"components-drawing-portal\") as HTMLDivElement;\n if (rt && rt.parentElement !== null && rt.children.length === 0) {\n rt.parentElement.removeChild(rt);\n }\n this._mounted = false;\n }\n\n // Synchronize with rotation coming from the Viewport\n private _handleViewRotationChangeEvent = (args: ViewRotationChangeEventArgs) => {\n // istanbul ignore else\n if (!this.state.isMoving && !this.state.isPanning && this.props.viewport === args.viewport) {\n const extents = args.viewport.view.getExtents().clone();\n const rotation = args.viewport.view.getRotation().clone();\n const halfExtents = extents.scale(.5);\n const offset = this.state.rotateMinimapWithView || this._isViewport3D() ? rotation.multiplyTransposeVector(halfExtents) : halfExtents;\n const origin = args.viewport.view.getOrigin().plus(offset);\n const deltaZoom = (this.state.extents.x - extents.x) / this.state.extents.x;\n let drawingZoom = this.state.drawingZoom / (1 - deltaZoom);\n const deltaOrigin = origin.minus(this.state.origin);\n let mapOrigin = this.state.mapOrigin.plus(deltaOrigin);\n mapOrigin = mapOrigin.plus(Vector3d.createFrom(origin.minus(mapOrigin)).scale(deltaZoom));\n if (this.state.viewId !== args.viewport.view.id) {\n const rect = this.state.rotateMinimapWithView || this._isViewport3D() ? extents : DrawingNavigationAid.findRotatedWindowDimensions(extents, rotation);\n const maxRectDim = Math.max(rect.y, rect.x);\n const maxExtentDim = Math.max(this.state.mapExtents.x, this.state.mapExtents.y);\n drawingZoom = maxExtentDim / (3 * maxRectDim);\n mapOrigin = origin.clone();\n this._viewport = args.viewport;\n this.setState({ viewId: args.viewport.view.id, view: args.viewport.view.clone() });\n }\n // istanbul ignore next\n if (this._mounted) {\n this.setState({\n startOrigin: origin, origin, extents,\n startRotation: rotation, rotation,\n startMapOrigin: mapOrigin, mapOrigin,\n startDrawingZoom: drawingZoom, drawingZoom,\n });\n }\n }\n };\n\n private _updateFrustum = (complete: boolean = false) => {\n const halfExtents = this.state.extents.scale(.5);\n const offset = this.state.rotateMinimapWithView || this._isViewport3D() ? this.state.rotation.multiplyTransposeVector(halfExtents) : halfExtents;\n const origin = this.state.origin.minus(offset);\n ViewportComponentEvents.setDrawingViewportState(origin, this.state.rotation, complete);\n };\n\n private _toggleRotationMode = () => {\n const rotateMinimapWithView = !this.state.rotateMinimapWithView;\n this.setState({ rotateMinimapWithView }, () => {\n if (this._viewport)\n this._handleViewRotationChangeEvent({ viewport: this._viewport });\n });\n };\n\n private _handleKeyUp = (event: React.KeyboardEvent) => {\n // istanbul ignore else\n if (event.key === SpecialKey.Escape && this.state.mode === MapMode.Opened) {\n this._closeLargeMap();\n }\n };\n\n private _lastClientXY: Point2d = Point2d.createZero();\n\n private _processWindowDrag(movement: Point2d) {\n const vect = Vector3d.create(movement.x / this.state.drawingZoom, -movement.y / this.state.drawingZoom, 0);\n const offset = this.state.rotateMinimapWithView || this._isViewport3D() ? this.state.rotation.multiplyTransposeVector(vect) : vect;\n const origin = this.state.origin.plus(offset);\n const panningDirection = this._getPanVector();\n const wasAlmostZero = this.state.panningDirection.isAlmostZero;\n this.setState({ startOrigin: origin, origin, panningDirection, isPanning: false }, () => {\n this._updateFrustum();\n if (wasAlmostZero && !this.state.panningDirection.isAlmostZero) {\n this._animationFrame = setTimeout(this._panAnimation, 16.667);\n }\n });\n }\n\n private _processWindowEndDrag() {\n this.setState({ isMoving: false });\n this._updateFrustum(true);\n if (this.state.mode === MapMode.Closed) {\n setTimeout(() => {\n const startMapOrigin = this.state.mapOrigin;\n const mapOrigin = this.state.origin.clone();\n // istanbul ignore next\n if (this._mounted) {\n this.setState({ startMapOrigin, mapOrigin, animation: 0 }, () => {\n this._animationFrame = setTimeout(this._animation, 16.667);\n });\n }\n }, 0);\n }\n }\n\n private _handleMouseDown = (event: React.MouseEvent) => {\n // Used only to determine if mouse was moved between mousedown and mouseup\n const mouseStart = Point2d.create(event.clientX, event.clientY);\n this.setState({ mouseStart });\n this._lastClientXY = Point2d.create(event.clientX, event.clientY);\n };\n\n private _handleDrawingMouseDown = (event: React.MouseEvent) => {\n if (this.state.mode === MapMode.Opened) {\n event.preventDefault();\n this.setState({ isPanning: true });\n }\n };\n\n private _handleWindowMouseDown = (event: React.MouseEvent) => {\n event.preventDefault();\n this.setState({ isMoving: true });\n };\n\n private _handleMouseDrag = (event: React.MouseEvent) => {\n const mouse = Point2d.create(event.clientX, event.clientY);\n const movement = mouse.minus(this._lastClientXY);\n if (this.state.isMoving) {\n // add scaled mouse movement\n this._processWindowDrag(movement);\n } else {\n // istanbul ignore else\n if (this.state.isPanning && this.state.mode === MapMode.Opened) {\n const vect = Vector3d.create(movement.x / this.state.drawingZoom, -movement.y / this.state.drawingZoom, 0);\n const offset = this.state.rotateMinimapWithView || this._isViewport3D() ? this.state.rotation.multiplyTransposeVector(vect) : vect;\n const mapOrigin = this.state.mapOrigin.minus(offset);\n this.setState({ startMapOrigin: mapOrigin, mapOrigin });\n }\n }\n this._lastClientXY = mouse;\n };\n\n private _handleMouseDragEnd = (event: React.MouseEvent) => {\n const mouse = Point2d.create(event.clientX, event.clientY);\n if (mouse.isAlmostEqual(this.state.mouseStart) &&\n this.state.mode === MapMode.Closed &&\n (event.target === this._viewContainerElement.current || event.target === this._viewElement.current)) {\n this._openLargeMap();\n } else if (this.state.isMoving) {\n this._processWindowEndDrag();\n } else if (this.state.isPanning) {\n // istanbul ignore else\n if (this.state.mode === MapMode.Opened) {\n event.stopPropagation();\n this.setState({ isPanning: false });\n }\n } else if ((!(event.target instanceof Node) || this._rootElement.current && !this._rootElement.current.contains(event.target)) && mouse.isAlmostEqual(this.state.mouseStart)) {\n this._closeLargeMap();\n }\n this._lastClientXY = Point2d.create(event.clientX, event.clientY);\n };\n\n // istanbul ignore next - unable to test touch\n private _handleWindowTouchStart = (event: any) => {\n if (1 !== event.targetTouches.length)\n return;\n window.addEventListener(\"touchmove\", this._onTouchMove, false);\n window.addEventListener(\"touchend\", this._onTouchEnd, false);\n const mouseStart = Point2d.create(event.targetTouches[0].clientX, event.targetTouches[0].clientY);\n this.setState({ mouseStart });\n this._lastClientXY = mouseStart.clone();\n this.setState({ isMoving: true });\n };\n\n // istanbul ignore next - unable to test touch\n private _onTouchMove = (event: TouchEvent) => {\n if (1 !== event.targetTouches.length)\n return;\n const mouse = Point2d.create(event.targetTouches[0].clientX, event.targetTouches[0].clientY);\n const movement = mouse.minus(this._lastClientXY);\n // add scaled mouse movement\n this._processWindowDrag(movement);\n this._lastClientXY = mouse;\n };\n\n // istanbul ignore next - unable to test touch\n private _onTouchEnd = (event: TouchEvent) => {\n if (0 !== event.targetTouches.length)\n return;\n this._processWindowEndDrag();\n if (0 !== event.changedTouches.length)\n this._lastClientXY = Point2d.create(event.changedTouches[0].clientX, event.changedTouches[0].clientY); // Doesn't seem necessary...but _handleMouseDragEnd sets it...\n window.removeEventListener(\"touchmove\", this._onTouchMove);\n window.removeEventListener(\"touchend\", this._onTouchEnd);\n };\n\n /** @internal */\n public static getDefaultClosedMapSize = (): Vector3d => {\n return Vector3d.create(96, 96);\n };\n\n /** @internal */\n public static getDefaultOpenedMapSize = (paddingX: number = 0, paddingY: number = 0): Vector3d => {\n return Vector3d.create(window.innerWidth / 3 - 2 * (window.innerWidth - paddingX), window.innerHeight / 3 - 2 * paddingY);\n };\n\n private _getClosedMapSize = (): Vector3d => {\n if (this.props.closeSize === undefined)\n return DrawingNavigationAid.getDefaultClosedMapSize();\n return this.props.closeSize;\n };\n\n private _getOpenedMapSize = (): Vector3d => {\n if (this.props.openSize === undefined)\n return DrawingNavigationAid.getDefaultOpenedMapSize(this._rootOffset.right, this._rootOffset.top);\n return this.props.openSize;\n };\n\n private _openLargeMap = () => {\n // istanbul ignore else\n if (this.state.mode === MapMode.Closed && this.state.animation === 1.0) {\n // istanbul ignore else\n if (this._rootElement.current) {\n const rect = this._rootElement.current.getBoundingClientRect();\n this._rootOffset = rect;\n }\n const startMapExtents = Vector3d.createFrom(this.state.mapExtents);\n const mapExtents = this._getOpenedMapSize();\n this.setState({\n mode: MapMode.Opened,\n isMoving: false, isPanning: false,\n mapExtents, startMapExtents,\n animation: 0,\n }, () => {\n this._animationFrame = setTimeout(this._animation);\n });\n }\n };\n\n private _closeLargeMap = () => {\n // istanbul ignore else\n if (this.state.mode === MapMode.Opened && this.state.animation === 1.0) {\n const startMapOrigin = this.state.mapOrigin;\n const mapOrigin = this.state.origin.clone();\n const startMapExtents = Vector3d.createFrom(this.state.mapExtents);\n const mapExtents = this._getClosedMapSize();\n const rect = this.state.rotateMinimapWithView || this._isViewport3D() ? this.state.extents : DrawingNavigationAid.findRotatedWindowDimensions(this.state.extents, this.state.rotation);\n const maxRectDim = Math.max(rect.y, rect.x);\n const maxExtentDim = Math.max(mapExtents.x, mapExtents.y);\n const drawingZoom = maxExtentDim / (3 * maxRectDim);\n const startDrawingZoom = this.state.drawingZoom;\n this.setState({\n mode: MapMode.Closed,\n startMapOrigin, mapOrigin,\n startDrawingZoom, drawingZoom,\n isMoving: false, isPanning: false,\n startMapExtents, mapExtents,\n panningDirection: Vector3d.createZero(),\n animation: 0,\n }, () => {\n this._animationFrame = setTimeout(this._animation, 16.667);\n });\n }\n };\n\n private _getPanVector = () => {\n const is3D = this._isViewport3D();\n const rect = this.state.rotateMinimapWithView || is3D ? this.state.extents : DrawingNavigationAid.findRotatedWindowDimensions(this.state.extents, this.state.rotation);\n\n const mapExtents = this.state.mapExtents.scale(1 / this.state.drawingZoom);\n\n const maxMagnitude = 80; // maximum acceleration\n const magnitudeTravel = 30; // How far, in pixels, that magnitude increases from 0 to max acceleration\n\n const diff = Vector3d.createFrom(this.state.origin.minus(this.state.mapOrigin));\n const diffVector = this.state.rotateMinimapWithView || is3D ? this.state.rotation.multiplyVector(diff) : diff;\n\n // capture any values\n const magnitudeVector = Vector3d.create(\n Math.max(0, Math.abs(diffVector.x) - (mapExtents.x - rect.x) / 2),\n Math.max(0, Math.abs(diffVector.y) - (mapExtents.y - rect.y) / 2),\n );\n if (magnitudeVector.isAlmostZero)\n return Vector3d.createZero();\n const magnitude = Math.min(magnitudeVector.magnitude() * this.state.drawingZoom, magnitudeTravel) / magnitudeTravel * maxMagnitude;\n\n const vect = Vector3d.createFrom(this.state.origin.minus(this.state.mapOrigin)); // vect will never be zero or magnitude would also be zero\n const norm = vect.normalize();\n return norm!.scale(magnitude); // norm is only undefined when vect is zero, in which it would have returned at magnitudeVector.isAlmostZero\n };\n\n private _handleWheel = (event: React.WheelEvent) => {\n // istanbul ignore else\n if (this.state.mode === MapMode.Opened && this.state.animation === 1) {\n const { mapOrigin, drawingZoom } = this.state;\n const mapSize = this._getOpenedMapSize();\n\n const mouseX = event.clientX - this._rootOffset.right + mapSize.x / 2;\n const mouseY = event.clientY - this._rootOffset.top - mapSize.y / 2;\n const is3D = this._isViewport3D();\n if (event.deltaY < 0) {\n const zoom = drawingZoom * 1.1;\n const vect = Vector3d.create(mouseX * 0.1 / zoom, -mouseY * 0.1 / zoom, 0);\n const offset = this.state.rotateMinimapWithView || is3D ? this.state.rotation.multiplyTransposeVector(vect) : vect;\n const m = mapOrigin.plus(offset);\n this.setState({ mapOrigin: m, drawingZoom: zoom });\n }\n if (event.deltaY > 0) {\n const zoom = drawingZoom / 1.1;\n const vect = Vector3d.create(mouseX * 0.1 / drawingZoom, -mouseY * 0.1 / drawingZoom, 0);\n const offset = this.state.rotateMinimapWithView || is3D ? this.state.rotation.multiplyTransposeVector(vect) : vect;\n const m = mapOrigin.minus(offset);\n this.setState({ mapOrigin: m, drawingZoom: zoom });\n }\n }\n };\n\n private _handleZoomIn = () => {\n const zoom = this.state.drawingZoom * 1.4;\n this.setState({ drawingZoom: zoom });\n };\n\n private _handleZoomOut = () => {\n const zoom = this.state.drawingZoom / 1.4;\n this.setState({ drawingZoom: zoom });\n };\n\n private _handleUnrotate = () => {\n const startRotation = this.state.rotation;\n const halfExtents = this.state.extents.scale(.5);\n const offset = this.state.rotateMinimapWithView || this._isViewport3D() ? Vector3d.createZero() : this.state.rotation.multiplyTransposeVector(halfExtents).minus(halfExtents);\n const startOrigin = this.state.origin;\n const origin = this.state.origin.plus(offset);\n const startMapOrigin = this.state.mapOrigin;\n const mapOrigin = this.state.mapOrigin.plus(offset);\n this.setState({ animation: 0, startOrigin, origin, startMapOrigin, mapOrigin, startRotation, rotation: Matrix3d.createIdentity() }, () => {\n this._animationFrame = setTimeout(this._animation, 16.667);\n });\n };\n\n /** @internal */\n public static findRotatedWindowDimensions = (extents: Vector3d, rotation: Matrix3d) => {\n const cos = rotation.at(0, 0);\n const sin = rotation.at(1, 0);\n // extents.x/y should be divided in half, but we don't have to do that immediately.\n const cosWidth = cos * extents.x;\n const sinHeight = sin * extents.y;\n\n const sinWidth = cos * extents.x;\n const cosHeight = sin * extents.y;\n\n const a = Math.atan2(sin, cos);\n\n if (a % Math.PI >= 0 && a % Math.PI < Math.PI / 2) {\n const y1 = -cosHeight - sinWidth;\n const x2 = cosWidth + sinHeight;\n const y3 = cosHeight + sinWidth;\n const x4 = -cosWidth - sinHeight;\n // Instead, divide total difference\n return Vector3d.create(Math.abs(x2 - x4) / 2, Math.abs(y1 - y3) / 2);\n } else {\n const x1 = -cosWidth + sinHeight;\n const y2 = -cosHeight + sinWidth;\n const x3 = cosWidth - sinHeight;\n const y4 = cosHeight - sinWidth;\n return Vector3d.create(Math.abs(x1 - x3) / 2, Math.abs(y2 - y4) / 2);\n }\n };\n}\n\n/** @internal */\nexport interface DrawingNavigationCanvasProps {\n view: ViewState | undefined;\n viewId?: string;\n origin: Point3d;\n extents: Vector3d;\n zoom: number;\n rotation: Matrix3d;\n viewManagerOverride?: ViewManager;\n screenViewportOverride?: typeof ScreenViewport;\n canvasSizeOverride?: boolean;\n}\n\n/** @internal */\nexport class DrawingNavigationCanvas extends React.Component<DrawingNavigationCanvasProps> {\n private _canvasElement = React.createRef<HTMLDivElement>();\n private _vp?: ScreenViewport;\n\n public override render(): React.ReactNode {\n return (\n <div className=\"drawing-canvas\"\n data-testid=\"drawing-canvas\"\n ref={this._canvasElement}>\n </div>\n );\n }\n\n public override componentDidMount() {\n if (this._canvasElement.current && this.props.view !== undefined) {\n const viewManager = this.props.viewManagerOverride ? this.props.viewManagerOverride : /* istanbul ignore next */ IModelApp.viewManager;\n /* istanbul ignore next */\n const screenViewport = this.props.screenViewportOverride ? this.props.screenViewportOverride : /* istanbul ignore next */ ScreenViewport;\n const previousView = viewManager.selectedView;\n this._vp = screenViewport.create(this._canvasElement.current, this.props.view);\n this.customizeViewport(this._vp);\n viewManager.addViewport(this._vp);\n void viewManager.setSelectedView(previousView); // switch to original viewport\n this._update();\n }\n }\n\n private customizeViewport(vp: ScreenViewport): void {\n /* istanbul ignore next */\n if (vp.logo.style)\n vp.logo.style.display = \"none\";\n\n /* istanbul ignore next */\n if (vp.viewFlags.acsTriad)\n vp.viewFlags = vp.viewFlags.with(\"acsTriad\", false);\n }\n\n private _update = () => {\n // istanbul ignore else\n if (this._vp) {\n const max = Math.max(this.props.extents.x, this.props.extents.y);\n this._vp.view.extentLimits = { max, min: Constant.oneMillimeter };\n this._vp.view.setOrigin(this.props.origin);\n this._vp.view.setRotation(this.props.rotation);\n this._vp.view.setExtents(this.props.extents);\n this._vp.applyViewState(this._vp.view);\n }\n };\n\n public override componentDidUpdate(oldProps: DrawingNavigationCanvasProps) {\n const viewManager = this.props.viewManagerOverride ? this.props.viewManagerOverride : /* istanbul ignore next */ IModelApp.viewManager;\n if (this.props.view !== undefined) {\n if (oldProps.view !== this.props.view) {\n const screenViewport = this.props.screenViewportOverride ? this.props.screenViewportOverride : /* istanbul ignore next */ ScreenViewport;\n if (oldProps !== undefined && oldProps.viewId !== \"\" && oldProps.viewId !== this.props.viewId && this._vp) {\n viewManager.dropViewport(this._vp, true);\n }\n // istanbul ignore else\n if (this._canvasElement.current &&\n (this.props.canvasSizeOverride ||\n ( /* istanbul ignore next */ this._canvasElement.current.clientWidth !== 0 && /* istanbul ignore next */ this._canvasElement.current.clientHeight !== 0))) {\n const previousView = viewManager.selectedView;\n this._vp = screenViewport.create(this._canvasElement.current, this.props.view.clone());\n this.customizeViewport(this._vp);\n viewManager.addViewport(this._vp);\n void viewManager.setSelectedView(previousView); // switch to original viewport\n this._update();\n }\n } else if (!this.props.origin.isExactEqual(oldProps.origin) || !this.props.extents.isExactEqual(oldProps.extents) || this.props.zoom !== oldProps.zoom || !this.props.rotation.isExactEqual(oldProps.rotation)) {\n this._update();\n }\n }\n }\n\n public override componentWillUnmount() {\n if (this._vp) {\n const viewManager = this.props.viewManagerOverride ? this.props.viewManagerOverride : /* istanbul ignore next */ IModelApp.viewManager;\n viewManager.dropViewport(this._vp, true);\n }\n }\n\n}\n"]}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
@import "~@itwin/core-react/lib/core-react/z-index";
|
|
6
|
-
@import "~@itwin/core-react/lib/core-react/style/themecolors";
|
|
5
|
+
@import "~@itwin/core-react/lib/cjs/core-react/z-index";
|
|
6
|
+
@import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
|
|
7
7
|
|
|
8
8
|
#components-drawing-portal {
|
|
9
9
|
@include uicore-z-index(dragged-widget);
|
package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatPanel.d.ts
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatPanel.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatPanel.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAU,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAQhD;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,aAAa,EAAE,WAAW,CAAC;IAC3B,aAAa,EAAE,aAAa,CAAC;IAC7B,eAAe,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC/C,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC;IACnI,sBAAsB,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;IAC1H,wBAAwB,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;CAC7H;AAOD;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAiElD"}
|
package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatPanel.js
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatPanel.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatPanel.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAA4B;AAC5B,6CAA+B;AAC/B,wDAAoG;AAEpG,uDAAoD;AACpD,iDAA8C;AAC9C,6CAAgD;AAChD,uDAAoD;AACpD,+CAA4C;AAC5C,2DAAwD;AAmBxD,KAAK,UAAU,kBAAkB,CAAC,WAAwB,EAAE,eAA0B,EAAE,aAA4B;IAClH,MAAM,YAAY,GAAG,MAAM,sBAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;IACvF,OAAO,6BAAa,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;AAC/F,CAAC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,KAAuB;IACjD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,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C,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,kBAAkB,GAAI;QAC1E,KAAK,CAAC,sBAAsB,IAAI,KAAK,CAAC,sBAAsB,CAAC,WAAW,EAAE,kBAAkB,CAAC;QAC9F,oBAAC,qCAAiB,IAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,IACxL,KAAK,CAAC,wBAAwB,IAAI,KAAK,CAAC,wBAAwB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAChF,CAChB,CACP,CAAC;AACJ,CAAC;AAjED,kCAiEC","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 \"./FormatPanel.scss\";\nimport * as React from \"react\";\nimport { Format, FormatProps, FormatterSpec, UnitProps, UnitsProvider } from \"@itwin/core-quantity\";\nimport { CommonProps } from \"@itwin/core-react\";\nimport { FormatPrecision } from \"./FormatPrecision\";\nimport { FormatSample } from \"./FormatSample\";\nimport { FormatTypeOption } from \"./FormatType\";\nimport { FormatUnitLabel } from \"./FormatUnitLabel\";\nimport { FormatUnits } from \"./FormatUnits\";\nimport { MiscFormatOptions } from \"./MiscFormatOptions\";\n\n/** Properties of [[FormatPanel]] component.\n * @alpha\n */\nexport interface FormatPanelProps extends CommonProps {\n initialFormat: FormatProps;\n unitsProvider: UnitsProvider;\n persistenceUnit: Promise<UnitProps> | UnitProps;\n showSample?: boolean;\n initialMagnitude?: number;\n // if true a only primary format properties are initially displayed and a \"More/Less\" link is added.\n enableMinimumProperties?: boolean;\n onFormatChange?: (format: FormatProps) => void;\n provideFormatSpec?: (formatProps: FormatProps, persistenceUnit: UnitProps, unitsProvider: UnitsProvider) => Promise<FormatterSpec>;\n providePrimaryChildren?: (formatProps: FormatProps, fireFormatChange: (newProps: FormatProps) => void) => React.ReactNode;\n provideSecondaryChildren?: (formatProps: FormatProps, fireFormatChange: (newProps: FormatProps) => void) => React.ReactNode;\n}\n\nasync function generateFormatSpec(formatProps: FormatProps, persistenceUnit: UnitProps, unitsProvider: UnitsProvider) {\n const actualFormat = await Format.createFromJSON(\"custom\", unitsProvider, formatProps);\n return FormatterSpec.create(actualFormat.name, actualFormat, unitsProvider, persistenceUnit);\n}\n\n/** Component to show/edit Quantity Format.\n * @alpha\n */\nexport function FormatPanel(props: FormatPanelProps) {\n const [formatSpec, setFormatSpec] = React.useState<FormatterSpec>();\n const { initialFormat, showSample, initialMagnitude, unitsProvider, persistenceUnit, onFormatChange, provideFormatSpec, enableMinimumProperties } = props;\n const [formatProps, setFormatProps] = React.useState(initialFormat);\n const [showOptions, setShowOptions] = React.useState(false);\n\n React.useEffect(() => {\n setFormatProps(initialFormat);\n setFormatSpec(undefined); // this will trigger the new spec to be created in the useEffect hook\n }, [initialFormat]);\n\n const handleUserFormatChanges = React.useCallback((newProps: FormatProps) => {\n setFormatProps(newProps);\n setFormatSpec(undefined); // this will trigger the new spec to be created in the useEffect hook\n onFormatChange && onFormatChange(newProps);\n }, [onFormatChange]);\n\n const isMounted = React.useRef(false);\n\n // runs returned function only when component is unmounted.\n React.useEffect(() => {\n isMounted.current = true;\n return (() => {\n isMounted.current = false;\n });\n }, []);\n\n React.useEffect(() => {\n async function fetchFormatSpec() {\n const pu = await persistenceUnit;\n let newFormatSpec: FormatterSpec;\n if (provideFormatSpec) {\n newFormatSpec = await provideFormatSpec(formatProps, pu, unitsProvider);\n } else {\n newFormatSpec = await generateFormatSpec(formatProps, pu, unitsProvider);\n }\n isMounted.current && setFormatSpec(newFormatSpec);\n }\n if (!formatSpec)\n fetchFormatSpec(); // eslint-disable-line @typescript-eslint/no-floating-promises\n }, [formatProps, formatSpec, persistenceUnit, provideFormatSpec, unitsProvider]);\n\n const handleFormatChange = React.useCallback((newFormatProps: FormatProps) => {\n handleUserFormatChanges(newFormatProps);\n }, [handleUserFormatChanges]);\n\n const handleShowOptions = React.useCallback((show: boolean) => {\n setShowOptions(show);\n }, []);\n\n return (\n <div className=\"components-quantityFormat-panel\">\n {showSample &&\n <FormatSample formatSpec={formatSpec} initialMagnitude={initialMagnitude} />\n }\n <FormatUnits unitsProvider={unitsProvider} persistenceUnit={formatSpec?.persistenceUnit} initialFormat={formatProps} onUnitsChange={handleFormatChange} />\n <FormatUnitLabel formatProps={formatProps} onUnitLabelChange={handleFormatChange} />\n <FormatTypeOption formatProps={formatProps} onChange={handleFormatChange} />\n <FormatPrecision formatProps={formatProps} onChange={handleFormatChange} />\n {props.providePrimaryChildren && props.providePrimaryChildren(formatProps, handleFormatChange)}\n <MiscFormatOptions formatProps={formatProps} onChange={handleFormatChange} enableMinimumProperties={enableMinimumProperties} showOptions={showOptions} onShowHideOptions={handleShowOptions}>\n {props.provideSecondaryChildren && props.provideSecondaryChildren(formatProps, handleFormatChange)}\n </MiscFormatOptions>\n </div>\n );\n}\n"]}
|
package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatPanel.scss
RENAMED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
@import "~@itwin/core-react/lib/core-react/inputs/variables";
|
|
6
|
-
@import "~@itwin/core-react/lib/core-react/select/select";
|
|
5
|
+
@import "~@itwin/core-react/lib/cjs/core-react/inputs/variables";
|
|
6
|
+
@import "~@itwin/core-react/lib/cjs/core-react/select/select";
|
|
7
7
|
@import "~@itwin/itwinui-css/scss/style/typography";
|
|
8
8
|
|
|
9
9
|
.components-quantityFormat-panel {
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatPrecision.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatPrecision.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAU,WAAW,EAAc,MAAM,sBAAsB,CAAC;AAKvE;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,eAoB1D"}
|
|
@@ -39,7 +39,7 @@ function FormatPrecision(props) {
|
|
|
39
39
|
var _a, _b;
|
|
40
40
|
const { formatProps, onChange } = props;
|
|
41
41
|
const handlePrecisionChange = React.useCallback((precision) => {
|
|
42
|
-
const newFormatProps =
|
|
42
|
+
const newFormatProps = { ...formatProps, precision };
|
|
43
43
|
onChange && onChange(newFormatProps);
|
|
44
44
|
}, [formatProps, onChange]);
|
|
45
45
|
const formatType = core_quantity_1.Format.parseFormatType(formatProps.type, "format");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatPrecision.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatPrecision.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAA+B;AAE/B,wDAAuE;AACvE,8DAAmE;AACnE,gEAAqE;AACrE,8DAA2D;AAU3D;;GAEG;AACH,SAAgB,eAAe,CAAC,KAA2B;;IACzD,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAExC,MAAM,qBAAqB,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,SAAiB,EAAE,EAAE;QACpE,MAAM,cAAc,GAAG,EAAE,GAAG,WAAW,EAAE,SAAS,EAAE,CAAC;QACrD,QAAQ,IAAI,QAAQ,CAAC,cAAc,CAAC,CAAC;IACvC,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE5B,MAAM,UAAU,GAAG,sBAAM,CAAC,eAAe,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAEtE,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,uCAAkB,CAAC,SAAS,CAAC,iCAAiC,CAAC,CAAC,CAAC;IAC5F,OAAO,CACL;QACE,8BAAM,SAAS,EAAE,cAAc,IAAG,KAAK,CAAC,OAAO,CAAQ;QACtD,UAAU,KAAK,0BAAU,CAAC,UAAU,CAAC,CAAC;YACrC,oBAAC,6CAAyB,mBAAa,6BAA6B,EAAC,SAAS,EAAE,MAAA,WAAW,CAAC,SAAS,mCAAI,CAAC,EAAE,QAAQ,EAAE,qBAAqB,GAAI,CAAC,CAAC;YACjJ,oBAAC,2CAAwB,mBAAa,4BAA4B,EAAC,SAAS,EAAE,MAAA,WAAW,CAAC,SAAS,mCAAI,CAAC,EAAE,QAAQ,EAAE,qBAAqB,GAAI,CAE9I,CACJ,CAAC;AACJ,CAAC;AApBD,0CAoBC","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 { CommonProps } from \"@itwin/core-react\";\nimport { Format, FormatProps, FormatType } from \"@itwin/core-quantity\";\nimport { DecimalPrecisionSelector } from \"./misc/DecimalPrecision\";\nimport { FractionPrecisionSelector } from \"./misc/FractionPrecision\";\nimport { UiIModelComponents } from \"../UiIModelComponents\";\n\n/** Properties of [[FormatPrecision]] component.\n * @alpha\n */\nexport interface FormatPrecisionProps extends CommonProps {\n formatProps: FormatProps;\n onChange?: (format: FormatProps) => void;\n}\n\n/** Component to show/edit Quantity Format Precision.\n * @alpha\n */\nexport function FormatPrecision(props: FormatPrecisionProps) {\n const { formatProps, onChange } = props;\n\n const handlePrecisionChange = React.useCallback((precision: number) => {\n const newFormatProps = { ...formatProps, precision };\n onChange && onChange(newFormatProps);\n }, [formatProps, onChange]);\n\n const formatType = Format.parseFormatType(formatProps.type, \"format\");\n\n const label = React.useRef(UiIModelComponents.translate(\"QuantityFormat.labels.precision\"));\n return (\n <>\n <span className={\"uicore-label\"}>{label.current}</span>\n {formatType === FormatType.Fractional ?\n <FractionPrecisionSelector data-testid=\"fraction-precision-selector\" precision={formatProps.precision ?? 0} onChange={handlePrecisionChange} /> :\n <DecimalPrecisionSelector data-testid=\"decimal-precision-selector\" precision={formatProps.precision ?? 0} onChange={handlePrecisionChange} />\n }\n </>\n );\n}\n"]}
|
package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatSample.d.ts
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatSample.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatSample.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAC;AAI7D;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,eAuDpD"}
|
package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatSample.js
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatSample.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatSample.t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,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,mBAAmB,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,iBAAiB,GAAI;YAAC,0BAA0B,CAC7N;QACN,CAAC,UAAU,IAAI,8BAAM,SAAS,EAAE,cAAc,IAAG,cAAc,CAAC,OAAO,CAAQ;QAChF;YACG,UAAU,IAAI,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,oBAAC,wBAAW,IAAC,QAAQ,EAAC,yBAAyB,GAAG;YAChG,6CAAkB,yBAAyB,EAAC,SAAS,EAAE,mDAAmD,IAAG,cAAc,CAAQ,CAC9H,CACN,CACJ,CAAC;AACJ,CAAC;AAvDD,oCAuDC","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 { FormatterSpec } from \"@itwin/core-quantity\";\nimport { SpecialKey } from \"@itwin/appui-abstract\";\nimport { CommonProps, WebFontIcon } from \"@itwin/core-react\";\nimport { Input } from \"@itwin/itwinui-react\";\nimport { UiIModelComponents } from \"../UiIModelComponents\";\n\n/** Properties of [[FormatSample]] component.\n * @alpha\n */\nexport interface FormatSampleProps extends CommonProps {\n formatSpec?: FormatterSpec;\n initialMagnitude?: number;\n hideLabels?: boolean;\n}\n\n/** Component to show the persistence value and formatted value given a FormatterSpec.\n * @alpha\n */\nexport function FormatSample(props: FormatSampleProps) {\n const { initialMagnitude, formatSpec, hideLabels } = props;\n const initialValue = initialMagnitude ?? 0;\n const [magnitude, setMagnitude] = React.useState(initialValue);\n const [sampleValue, setSampleValue] = React.useState(initialValue.toString());\n\n React.useEffect(() => {\n const value = initialMagnitude ?? 0;\n setMagnitude(value);\n setSampleValue(value.toString());\n }, [initialMagnitude]);\n\n const handleOnValueBlur = React.useCallback(() => {\n let newValue = Number.parseFloat(sampleValue);\n if (Number.isNaN(newValue))\n newValue = 0;\n setMagnitude(newValue);\n setSampleValue(newValue.toString());\n }, [sampleValue]);\n\n const handleOnValueChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {\n setSampleValue(event.target.value);\n }, []);\n\n const handleKeyDown = React.useCallback((e: React.KeyboardEvent<HTMLInputElement>) => {\n // istanbul ignore else\n if (e.key === SpecialKey.Enter) {\n let newValue = Number.parseFloat(sampleValue);\n if (Number.isNaN(newValue))\n newValue = 0;\n setMagnitude(newValue);\n setSampleValue(newValue.toString());\n e.preventDefault();\n }\n }, [sampleValue]);\n\n const activePersistenceUnitLabel = formatSpec ? formatSpec.persistenceUnit.label : \"\";\n const formattedValue = formatSpec ? formatSpec.applyFormatting(magnitude) : \"\";\n\n const valueLabel = React.useRef(UiIModelComponents.translate(\"QuantityFormat.labels.value\"));\n const formattedLabel = React.useRef(UiIModelComponents.translate(\"QuantityFormat.labels.formatted\"));\n\n return (\n <>\n {!hideLabels && <span className={\"uicore-label\"}>{valueLabel.current}</span>}\n <span className=\"components-inline\">\n <Input data-testid=\"format-sample-input\" className={\"components-quantity-persistence-input\"} value={sampleValue} onChange={handleOnValueChange} onKeyDown={handleKeyDown} onBlur={handleOnValueBlur} />{activePersistenceUnitLabel}\n </span>\n {!hideLabels && <span className={\"uicore-label\"}>{formattedLabel.current}</span>}\n <span>\n {hideLabels && (formattedValue.length > 0) && <WebFontIcon iconName=\"icon-progress-forward-2\" />}\n <span data-testid=\"format-sample-formatted\" className={\"uicore-label components-quantity-formatted-sample\"}>{formattedValue}</span>\n </span>\n </>\n );\n}\n"]}
|
package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatType.d.ts
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatType.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatType.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAA4B,WAAW,EAAmD,MAAM,sBAAsB,CAAC;AAgC9H;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACxD,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,eAoC5D"}
|
package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatType.js
RENAMED
|
@@ -25,17 +25,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
-
var t = {};
|
|
30
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
-
t[p] = s[p];
|
|
32
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
-
t[p[i]] = s[p[i]];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
29
|
exports.FormatTypeOption = void 0;
|
|
41
30
|
const React = __importStar(require("react"));
|
|
@@ -46,7 +35,7 @@ const itwinui_react_1 = require("@itwin/itwinui-react");
|
|
|
46
35
|
* @alpha
|
|
47
36
|
*/
|
|
48
37
|
function FormatTypeSelector(props) {
|
|
49
|
-
const { type, onChange
|
|
38
|
+
const { type, onChange, ...otherProps } = props;
|
|
50
39
|
const formatOptions = React.useRef([
|
|
51
40
|
{ value: core_quantity_1.FormatType.Decimal, label: UiIModelComponents_1.UiIModelComponents.translate("QuantityFormat.decimal") },
|
|
52
41
|
{ value: core_quantity_1.FormatType.Scientific, label: UiIModelComponents_1.UiIModelComponents.translate("QuantityFormat.scientific") },
|
|
@@ -56,7 +45,7 @@ function FormatTypeSelector(props) {
|
|
|
56
45
|
const handleOnChange = React.useCallback((newValue) => {
|
|
57
46
|
onChange && onChange(newValue);
|
|
58
47
|
}, [onChange]);
|
|
59
|
-
return (React.createElement(itwinui_react_1.Select,
|
|
48
|
+
return (React.createElement(itwinui_react_1.Select, { options: formatOptions.current, value: type, onChange: handleOnChange, ...otherProps }));
|
|
60
49
|
}
|
|
61
50
|
/** Component to set the Quantity Format type.
|
|
62
51
|
* @alpha
|
|
@@ -85,7 +74,7 @@ function FormatTypeOption(props) {
|
|
|
85
74
|
precision = core_quantity_1.FractionalPrecision.Eight;
|
|
86
75
|
break;
|
|
87
76
|
}
|
|
88
|
-
const newFormatProps =
|
|
77
|
+
const newFormatProps = { ...formatProps, type, precision, scientificType, stationOffsetSize };
|
|
89
78
|
onChange && onChange(newFormatProps);
|
|
90
79
|
}, [formatProps, onChange]);
|
|
91
80
|
const formatType = core_quantity_1.Format.parseFormatType(formatProps.type, "format");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatType.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatType.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAA+B;AAE/B,8DAA2D;AAC3D,wDAA8H;AAC9H,wDAA4D;AAU5D;;GAEG;AACH,SAAS,kBAAkB,CAAC,KAA8B;IACxD,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAChD,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAA6B;QAC7D,EAAE,KAAK,EAAE,0BAAU,CAAC,OAAO,E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sB,CAAC,8BAAc,CAAC,UAAU,CAAC,CAAC;gBAC1E,MAAM;YACR,KAAK,0BAAU,CAAC,OAAO;gBACrB,SAAS,GAAG,gCAAgB,CAAC,IAAI,CAAC;gBAClC,MAAM;YACR,KAAK,0BAAU,CAAC,OAAO;gBACrB,SAAS,GAAG,gCAAgB,CAAC,GAAG,CAAC;gBACjC,iBAAiB,GAAG,CAAA,MAAA,WAAW,CAAC,SAAS,0CAAE,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,iBAAiB,GAAG,QAAQ,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACnG,MAAM;YACR,KAAK,0BAAU,CAAC,UAAU;gBACxB,SAAS,GAAG,mCAAmB,CAAC,KAAK,CAAC;gBACtC,MAAM;SACT;QACD,MAAM,cAAc,GAAG,EAAE,GAAG,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC;QAC9F,QAAQ,IAAI,QAAQ,CAAC,cAAc,CAAC,CAAC;IACvC,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE5B,MAAM,UAAU,GAAG,sBAAM,CAAC,eAAe,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACtE,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,uCAAkB,CAAC,SAAS,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAEvF,OAAO,CACL;QACE,8BAAM,SAAS,EAAE,sBAAsB,IAAG,KAAK,CAAC,OAAO,CAAQ;QAC/D,oBAAC,kBAAkB,mBAAa,sBAAsB,EAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,sBAAsB,GAAI,CAC5G,CACJ,CAAC;AACJ,CAAC;AApCD,4CAoCC","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 { CommonProps } from \"@itwin/core-react\";\nimport { UiIModelComponents } from \"../UiIModelComponents\";\nimport { DecimalPrecision, Format, FormatProps, FormatType, FractionalPrecision, ScientificType } from \"@itwin/core-quantity\";\nimport { Select, SelectOption } from \"@itwin/itwinui-react\";\n\n/** Properties of [[FormatTypeSelector]] component.\n * @alpha\n */\ninterface FormatTypeSelectorProps extends CommonProps {\n type: FormatType;\n onChange: (value: FormatType) => void;\n}\n\n/** Component to select the format type.\n * @alpha\n */\nfunction FormatTypeSelector(props: FormatTypeSelectorProps) {\n const { type, onChange, ...otherProps } = props;\n const formatOptions = React.useRef<SelectOption<FormatType>[]>([\n { value: FormatType.Decimal, label: UiIModelComponents.translate(\"QuantityFormat.decimal\") },\n { value: FormatType.Scientific, label: UiIModelComponents.translate(\"QuantityFormat.scientific\") },\n { value: FormatType.Station, label: UiIModelComponents.translate(\"QuantityFormat.station\") },\n { value: FormatType.Fractional, label: UiIModelComponents.translate(\"QuantityFormat.fractional\") },\n ]);\n\n const handleOnChange = React.useCallback((newValue: FormatType) => {\n onChange && onChange(newValue);\n }, [onChange]);\n\n return (\n <Select options={formatOptions.current} value={type} onChange={handleOnChange} {...otherProps} />\n );\n}\n\n/** Properties of [[FormatTypeOptionProps]] component.\n * @alpha\n */\nexport interface FormatTypeOptionProps extends CommonProps {\n formatProps: FormatProps;\n onChange?: (format: FormatProps) => void;\n}\n\n/** Component to set the Quantity Format type.\n * @alpha\n */\nexport function FormatTypeOption(props: FormatTypeOptionProps) {\n const { formatProps, onChange } = props;\n const handleFormatTypeChange = React.useCallback((newType: FormatType) => {\n const type = Format.formatTypeToString(newType);\n let precision: number | undefined;\n let stationOffsetSize: number | undefined;\n let scientificType: string | undefined;\n switch (newType) { // type must be decimal, fractional, scientific, or station\n case FormatType.Scientific:\n precision = DecimalPrecision.Six;\n scientificType = Format.scientificTypeToString(ScientificType.Normalized);\n break;\n case FormatType.Decimal:\n precision = DecimalPrecision.Four;\n break;\n case FormatType.Station:\n precision = DecimalPrecision.Two;\n stationOffsetSize = formatProps.composite?.units[0].name.toLocaleLowerCase().endsWith(\"m\") ? 3 : 2;\n break;\n case FormatType.Fractional:\n precision = FractionalPrecision.Eight;\n break;\n }\n const newFormatProps = { ...formatProps, type, precision, scientificType, stationOffsetSize };\n onChange && onChange(newFormatProps);\n }, [formatProps, onChange]);\n\n const formatType = Format.parseFormatType(formatProps.type, \"format\");\n const label = React.useRef(UiIModelComponents.translate(\"QuantityFormat.labels.type\"));\n\n return (\n <>\n <span className={\"uicore-label.current\"}>{label.current}</span>\n <FormatTypeSelector data-testid=\"format-type-selector\" type={formatType} onChange={handleFormatTypeChange} />\n </>\n );\n}\n\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatUnitLabel.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatUnitLabel.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAU,WAAW,EAAgB,MAAM,sBAAsB,CAAC;AAqCzE;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACnD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,eAsD1D"}
|
|
@@ -25,17 +25,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
-
var t = {};
|
|
30
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
-
t[p] = s[p];
|
|
32
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
-
t[p[i]] = s[p[i]];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
28
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
40
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
41
30
|
};
|
|
@@ -47,7 +36,7 @@ const core_quantity_1 = require("@itwin/core-quantity");
|
|
|
47
36
|
const itwinui_react_1 = require("@itwin/itwinui-react");
|
|
48
37
|
const UiIModelComponents_1 = require("../UiIModelComponents");
|
|
49
38
|
function UomSeparatorSelector(props) {
|
|
50
|
-
const { separator, onChange
|
|
39
|
+
const { separator, onChange, ...otherProps } = props;
|
|
51
40
|
const uomDefaultEntries = React.useRef([
|
|
52
41
|
{ value: "", label: UiIModelComponents_1.UiIModelComponents.translate("QuantityFormat.none") },
|
|
53
42
|
{ value: " ", label: UiIModelComponents_1.UiIModelComponents.translate("QuantityFormat.space") },
|
|
@@ -65,7 +54,7 @@ function UomSeparatorSelector(props) {
|
|
|
65
54
|
completeListOfEntries.push(...uomDefaultEntries.current);
|
|
66
55
|
return completeListOfEntries;
|
|
67
56
|
}, [separator]);
|
|
68
|
-
return (React.createElement(itwinui_react_1.Select,
|
|
57
|
+
return (React.createElement(itwinui_react_1.Select, { options: separatorOptions, value: separator, onChange: handleOnChange, ...otherProps }));
|
|
69
58
|
}
|
|
70
59
|
/** Component to set the label separator definition in a Quantity Format and if it the label is to be displayed.
|
|
71
60
|
* @alpha
|
|
@@ -99,11 +88,11 @@ function FormatUnitLabel(props) {
|
|
|
99
88
|
const traits = Array.isArray(formatProps.formatTraits) ? formatProps.formatTraits : /* istanbul ignore next */ formatProps.formatTraits.split(/,|;|\|/);
|
|
100
89
|
formatTraits = traits.filter((traitEntry) => traitEntry !== traitStr);
|
|
101
90
|
}
|
|
102
|
-
const newFormatProps =
|
|
91
|
+
const newFormatProps = { ...formatProps, formatTraits };
|
|
103
92
|
handleSetFormatProps(newFormatProps);
|
|
104
93
|
}, [formatProps, handleSetFormatProps]);
|
|
105
94
|
const handleUomSeparatorChange = React.useCallback((newSeparator) => {
|
|
106
|
-
const newFormatProps =
|
|
95
|
+
const newFormatProps = { ...formatProps, uomSeparator: newSeparator };
|
|
107
96
|
handleSetFormatProps(newFormatProps);
|
|
108
97
|
}, [formatProps, handleSetFormatProps]);
|
|
109
98
|
const handleShowUnitLabelChange = React.useCallback((e) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatUnitLabel.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatUnitLabel.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,4DAAoC;AACpC,6CAA+B;AAE/B,wDAAyE;AACzE,wDAAsE;AACtE,8DAA2D;AAQ3D,SAAS,oBAAoB,CAAC,KAAgC;IAC5D,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IACrD,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAyB;QAC7D,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,uCAAkB,CAAC,SAAS,CAAC,qBAAqB,CAAC,EAAE;QACzE,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,uCAAkB,CAAC,SAAS,CAAC,sBAAsB,CAAC,EAAE;QAC3E,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,uCAAkB,CAAC,SAAS,CAAC,qBAAqB,CAAC,EAAE;KAC3E,CAAC,CAAC;IAEH,MAAM,cAAc,GAA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AAwB,EAAE,QAAQ,EAAE,CAAC,gBAAgB,CAAC,4BAAY,CAAC,aAAa,CAAC,GAAI,CAClM,CACJ,CAAC;AACJ,CAAC;AAtDD,0CAsDC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module QuantityFormat\n */\n\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { CommonProps } from \"@itwin/core-react\";\nimport { Format, FormatProps, FormatTraits } from \"@itwin/core-quantity\";\nimport { Checkbox, Select, SelectOption } from \"@itwin/itwinui-react\";\nimport { UiIModelComponents } from \"../UiIModelComponents\";\n\ninterface UomSeparatorSelectorProps extends CommonProps {\n separator: string;\n disabled?: boolean;\n onChange: (value: string) => void;\n}\n\nfunction UomSeparatorSelector(props: UomSeparatorSelectorProps) {\n const { separator, onChange, ...otherProps } = props;\n const uomDefaultEntries = React.useRef<SelectOption<string>[]>([\n { value: \"\", label: UiIModelComponents.translate(\"QuantityFormat.none\") },\n { value: \" \", label: UiIModelComponents.translate(\"QuantityFormat.space\") },\n { value: \"-\", label: UiIModelComponents.translate(\"QuantityFormat.dash\") },\n ]);\n\n const handleOnChange = React.useCallback((newValue: string) => {\n onChange && onChange(newValue);\n }, [onChange]);\n\n const separatorOptions = React.useMemo(() => {\n const completeListOfEntries: SelectOption<string>[] = [];\n // istanbul ignore next (only used if format already has a character that does not match standard options)\n if (undefined === uomDefaultEntries.current.find((option) => option.value === separator)) {\n completeListOfEntries.push({ value: separator, label: separator });\n }\n completeListOfEntries.push(...uomDefaultEntries.current);\n return completeListOfEntries;\n }, [separator]);\n\n return (\n <Select options={separatorOptions} value={separator} onChange={handleOnChange} {...otherProps} />\n );\n}\n\n/** Properties of [[FormatUnitLabel]] component.\n * @alpha\n */\nexport interface FormatUnitLabelProps extends CommonProps {\n formatProps: FormatProps;\n onUnitLabelChange?: (format: FormatProps) => void;\n}\n\n/** Component to set the label separator definition in a Quantity Format and if it the label is to be displayed.\n * @alpha\n */\nexport function FormatUnitLabel(props: FormatUnitLabelProps) {\n const { formatProps, onUnitLabelChange } = props;\n\n const handleSetFormatProps = React.useCallback((newProps: FormatProps) => {\n onUnitLabelChange && onUnitLabelChange(newProps);\n }, [onUnitLabelChange]);\n\n const isFormatTraitSet = React.useCallback((trait: FormatTraits) => {\n return Format.isFormatTraitSetInProps(formatProps, trait);\n }, [formatProps]);\n\n const setFormatTrait = React.useCallback((trait: FormatTraits, setActive: boolean) => {\n const traitStr = Format.getTraitString(trait);\n let formatTraits: string[] = [traitStr];\n if (setActive) {// setting trait\n // istanbul ignore else\n if (formatProps.formatTraits) {\n const traits = Array.isArray(formatProps.formatTraits) ? formatProps.formatTraits : /* istanbul ignore next */ formatProps.formatTraits.split(/,|;|\\|/);\n // istanbul ignore else\n if (!traits.find((traitEntry) => traitStr === traitEntry)) {\n formatTraits = [...traits, traitStr];\n }\n }\n } else {// clearing trait\n // istanbul ignore next\n if (!formatProps.formatTraits)\n return;\n const traits = Array.isArray(formatProps.formatTraits) ? formatProps.formatTraits : /* istanbul ignore next */ formatProps.formatTraits.split(/,|;|\\|/);\n formatTraits = traits.filter((traitEntry) => traitEntry !== traitStr);\n }\n const newFormatProps = { ...formatProps, formatTraits };\n handleSetFormatProps(newFormatProps);\n }, [formatProps, handleSetFormatProps]);\n\n const handleUomSeparatorChange = React.useCallback((newSeparator: string) => {\n const newFormatProps = { ...formatProps, uomSeparator: newSeparator };\n handleSetFormatProps(newFormatProps);\n }, [formatProps, handleSetFormatProps]);\n\n const handleShowUnitLabelChange = React.useCallback((e: React.ChangeEvent<HTMLInputElement>) => {\n setFormatTrait(FormatTraits.ShowUnitLabel, e.target.checked);\n }, [setFormatTrait]);\n\n const appendUnitLabel = React.useRef(UiIModelComponents.translate(\"QuantityFormat.labels.appendUnitLabel\"));\n const labelSeparator = React.useRef(UiIModelComponents.translate(\"QuantityFormat.labels.labelSeparator\"));\n\n return (\n <>\n <span className={\"uicore-label\"}>{appendUnitLabel.current}</span>\n <Checkbox data-testid=\"show-unit-label-checkbox\" checked={isFormatTraitSet(FormatTraits.ShowUnitLabel)} onChange={handleShowUnitLabelChange} />\n <span className={classnames(\"uicore-label\", !isFormatTraitSet(FormatTraits.ShowUnitLabel) && \"uicore-disabled\")}>{labelSeparator.current}</span>\n <UomSeparatorSelector data-testid=\"uom-separator-select\" separator={formatProps.uomSeparator ?? \"\"} onChange={handleUomSeparatorChange} disabled={!isFormatTraitSet(FormatTraits.ShowUnitLabel)} />\n </>\n );\n}\n"]}
|
package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatUnits.d.ts
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatUnits.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatUnits.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAK7E;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,aAAa,EAAE,WAAW,CAAC;IAC3B,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CAC/C;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,eA0GlD"}
|
package/lib/{imodel-components-react → cjs/imodel-components-react}/quantityformat/FormatUnits.js
RENAMED
|
@@ -59,8 +59,8 @@ function FormatUnits(props) {
|
|
|
59
59
|
else
|
|
60
60
|
return entry;
|
|
61
61
|
});
|
|
62
|
-
const composite =
|
|
63
|
-
const newFormatProps =
|
|
62
|
+
const composite = { ...formatProps.composite, units };
|
|
63
|
+
const newFormatProps = { ...formatProps, composite };
|
|
64
64
|
handleSetFormatProps(newFormatProps);
|
|
65
65
|
}
|
|
66
66
|
}, [formatProps, handleSetFormatProps]);
|
|
@@ -71,8 +71,8 @@ function FormatUnits(props) {
|
|
|
71
71
|
if (formatProps.composite && formatProps.composite.units.length > 1) {
|
|
72
72
|
const units = [...formatProps.composite.units];
|
|
73
73
|
units.pop();
|
|
74
|
-
const composite =
|
|
75
|
-
const newFormatProps =
|
|
74
|
+
const composite = { ...formatProps.composite, units };
|
|
75
|
+
const newFormatProps = { ...formatProps, composite };
|
|
76
76
|
handleSetFormatProps(newFormatProps);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -80,8 +80,8 @@ function FormatUnits(props) {
|
|
|
80
80
|
const units = formatProps.composite && formatProps.composite.units.length ?
|
|
81
81
|
[...formatProps.composite.units, { name: unitParts[1], label: unitParts[2] }] :
|
|
82
82
|
/* istanbul ignore next*/ [{ name: unitParts[1], label: unitParts[2] }];
|
|
83
|
-
const composite =
|
|
84
|
-
const newFormatProps =
|
|
83
|
+
const composite = { ...formatProps.composite, units };
|
|
84
|
+
const newFormatProps = { ...formatProps, composite };
|
|
85
85
|
handleSetFormatProps(newFormatProps);
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
@@ -94,13 +94,13 @@ function FormatUnits(props) {
|
|
|
94
94
|
else
|
|
95
95
|
return entry;
|
|
96
96
|
});
|
|
97
|
-
const composite =
|
|
98
|
-
const newFormatProps =
|
|
97
|
+
const composite = { ...formatProps.composite, units };
|
|
98
|
+
const newFormatProps = { ...formatProps, composite };
|
|
99
99
|
handleSetFormatProps(newFormatProps);
|
|
100
100
|
}
|
|
101
101
|
else if (!formatProps.composite) {
|
|
102
102
|
const composite = { units: [{ name: unitParts[0], label: unitParts[1] }] };
|
|
103
|
-
const newFormatProps =
|
|
103
|
+
const newFormatProps = { ...formatProps, composite };
|
|
104
104
|
handleSetFormatProps(newFormatProps);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -109,8 +109,8 @@ function FormatUnits(props) {
|
|
|
109
109
|
// istanbul ignore else
|
|
110
110
|
if (formatProps.composite) {
|
|
111
111
|
const spacerValue = e.target.value.length ? e.target.value[0] : /* istanbul ignore next */ ""; // spacer can only be empty or a single character
|
|
112
|
-
const composite =
|
|
113
|
-
const newFormatProps =
|
|
112
|
+
const composite = { ...formatProps.composite, spacer: spacerValue };
|
|
113
|
+
const newFormatProps = { ...formatProps, composite };
|
|
114
114
|
handleSetFormatProps(newFormatProps);
|
|
115
115
|
}
|
|
116
116
|
}, [formatProps, handleSetFormatProps]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatUnits.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatUnits.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAA+B;AAG/B,wDAA6C;AAC7C,gDAA6C;AAC7C,8DAA2D;AAY3D;;GAEG;AACH,SAAgB,WAAW,CAAC,KAAuB;;IACjD,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAC/E,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAAc,aAAa,CAAC,CAAC;IAClE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;IAEpE,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,gBAAgB,CAAC,OAAO,KAAK,aAAa,EAAE;YAC9C,gBAAgB,CAAC,OAAO,GAAG,aAAa,CAAC;YACzC,cAAc,CAAC,aAAa,CAAC,CAAC;SAC/B;IACH,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,MAAM,oBAAoB,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,QA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,KAAK,KAAI,WAAW,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;YACvE;gBACE,8BAAM,GAAG,EAAE,wBAAwB,EAAE,SAAS,EAAE,cAAc,IAAG,eAAe,CAAC,OAAO,CAAQ;gBAChG,oBAAC,qBAAK,IAAC,GAAG,EAAE,kBAAkB,iBAAc,kBAAkB,EAAC,KAAK,EAAE,MAAA,WAAW,CAAC,SAAS,CAAC,MAAM,mCAAI,EAAE,EAAE,QAAQ,EAAE,oBAAoB,GAAI,CAC3I,CAEJ,CACJ,CAAC;AACJ,CAAC;AA1GD,kCA0GC","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 { CommonProps } from \"@itwin/core-react\";\nimport { FormatProps, UnitProps, UnitsProvider } from \"@itwin/core-quantity\";\nimport { Input } from \"@itwin/itwinui-react\";\nimport { UnitDescr } from \"./misc/UnitDescr\";\nimport { UiIModelComponents } from \"../UiIModelComponents\";\n\n/** Properties of [[FormatUnits]] component.\n * @alpha\n */\nexport interface FormatUnitsProps extends CommonProps {\n initialFormat: FormatProps;\n persistenceUnit?: UnitProps;\n unitsProvider: UnitsProvider;\n onUnitsChange?: (format: FormatProps) => void;\n}\n\n/** Component to show/edit Units used for Quantity Formatting.\n * @alpha\n */\nexport function FormatUnits(props: FormatUnitsProps) {\n const { initialFormat, persistenceUnit, unitsProvider, onUnitsChange } = props;\n const initialFormatRef = React.useRef<FormatProps>(initialFormat);\n const [formatProps, setFormatProps] = React.useState(initialFormat);\n\n React.useEffect(() => {\n if (initialFormatRef.current !== initialFormat) {\n initialFormatRef.current = initialFormat;\n setFormatProps(initialFormat);\n }\n }, [initialFormat]);\n\n const handleSetFormatProps = React.useCallback((newProps: FormatProps) => {\n setFormatProps(newProps);\n onUnitsChange && onUnitsChange(newProps);\n }, [onUnitsChange]);\n\n const handleUnitLabelChange = React.useCallback((newLabel: string, index: number) => {\n // istanbul ignore else\n if (formatProps.composite && formatProps.composite.units.length > index && index >= 0) {\n const units = formatProps.composite.units.map((entry, ndx) => {\n // istanbul ignore else\n if (index === ndx)\n return { name: entry.name, label: newLabel };\n else\n return entry;\n });\n\n const composite = { ...formatProps.composite, units };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n }\n }, [formatProps, handleSetFormatProps]);\n\n const handleUnitChange = React.useCallback((newUnit: string, index: number) => {\n const unitParts = newUnit.split(/:/);\n if (unitParts[0] === \"REMOVEUNIT\") {\n // istanbul ignore else\n if (formatProps.composite && formatProps.composite.units.length > 1) {\n const units = [...formatProps.composite.units];\n units.pop();\n const composite = { ...formatProps.composite, units };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n }\n } else if (unitParts[0] === \"ADDSUBUNIT\") {\n const units = formatProps.composite && formatProps.composite.units.length ?\n [...formatProps.composite.units, { name: unitParts[1], label: unitParts[2] }] :\n /* istanbul ignore next*/[{ name: unitParts[1], label: unitParts[2] }];\n const composite = { ...formatProps.composite, units };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n } else {\n // istanbul ignore else\n if (formatProps.composite && formatProps.composite.units.length > index && index >= 0) {\n const units = formatProps.composite.units.map((entry, ndx) => {\n // istanbul ignore else\n if (index === ndx)\n return { name: unitParts[0], label: unitParts[1] };\n else\n return entry;\n });\n const composite = { ...formatProps.composite, units };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n } else if (!formatProps.composite) {\n const composite = { units: [{ name: unitParts[0], label: unitParts[1] }] };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n }\n }\n }, [formatProps, handleSetFormatProps]);\n\n const handleOnSpacerChange = React.useCallback((e: React.ChangeEvent<HTMLInputElement>) => {\n // istanbul ignore else\n if (formatProps.composite) {\n const spacerValue = e.target.value.length ? e.target.value[0] : /* istanbul ignore next */ \"\"; // spacer can only be empty or a single character\n const composite = { ...formatProps.composite, spacer: spacerValue };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n }\n }, [formatProps, handleSetFormatProps]);\n\n const compositeSpacer = React.useRef(UiIModelComponents.translate(\"QuantityFormat.labels.compositeSpacer\"));\n\n return (\n <>\n {(formatProps.composite?.units)\n ?\n formatProps.composite.units.map((value, index) => <UnitDescr key={value.name} name={value.name}\n label={value.label ?? \"\"} parentUnitName={index > 0 ? formatProps.composite!.units[index - 1].name :\n undefined} unitsProvider={unitsProvider} index={index} onUnitChange={handleUnitChange} onLabelChange={handleUnitLabelChange}\n readonly={index < (formatProps.composite!.units.length - 1)} />)\n :\n persistenceUnit && <UnitDescr key={persistenceUnit.name} name={persistenceUnit.name}\n label={persistenceUnit.label} unitsProvider={unitsProvider} index={0} onUnitChange={handleUnitChange} onLabelChange={handleUnitLabelChange} />\n }\n\n {(formatProps.composite?.units && formatProps.composite.units.length > 1) &&\n <>\n <span key={\"composite-spacer-label\"} className={\"uicore-label\"}>{compositeSpacer.current}</span>\n <Input key={\"composite-spacer\"} data-testid=\"composite-spacer\" value={formatProps.composite.spacer ?? \"\"} onChange={handleOnSpacerChange} />\n </>\n }\n </>\n );\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MiscFormatOptions.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/MiscFormatOptions.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAU,WAAW,EAA4D,MAAM,sBAAsB,CAAC;AASrH;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,eAiL9D"}
|