v4.9.0
4.9.0 Change Notes
Table of contents:
@itwin/appui-layout-react
@itwin/appui-layout-react will no longer be published as a separate package and can be safely removed from your package.json. #697
Since the 4.0.0 release, this package only contained internal components and the content of the package has been moved to @itwin/appui-react to reduce application maintenance of maintaining the locksteps packages.
@itwin/appui-react
Additions
activateDroppedTabpreview feature to activate a dragged widget tab whenever it is dropped in the receiving container. #601useWidgethook to convey widget state and location. #655horizontalPanelAlignmentpreview feature to add an "align" button to horizontal panels that allow the panel to be aligned to the left, center or right of the view, along with original justify behavior where the panel might take the full width of the view. #705widgetActionDropdownpreview feature to render the widget title bar buttons in a dropdown menu when specified threshold is exceeded. #721
Changes
- The package no longer has a peer dependency on
@itwin/appui-layout-react. #697 - Widget panels now use uniform iTwinUI borderless button for the pin, popout, docks and other buttons. #705
@itwin/components-react
Deprecations
usePropertyGridModelSourcehook in favor ofuseTrackedPropertyGridModelSource. #660useTreeEventsHandlerhook because it does not work correctly in React 18 Strict mode.useControlledTreeEventsHandlershould be used instead. #676ruleGroupDepthLimitproperty ofPropertyFilterBuilderRendererProps. Nested rule groups are no longer supported. #686
Additions
useTrackedPropertyGridModelSourcehook to create aPropertyGridModelSourceand track changes in the data provider while also providing information on the data update progress. #660useControlledTreeEventsHandlerwhich should be used as a replacement to now deprecateduseTreeEventsHandler. #676clearSelectionargument inHideIsolateEmphasizeActionHandler.processIsolateSelected()to control whether the selection is cleared. #682- Added
PropertyFilterBuilderLogicalOperatorcomponent andPropertyFilterBuilderLogicalOperatorPropsto render the logical operator inside of the filter builder. #686 - Added
PropertyFilterBuilderToolbarcomponent to display the action buttons in the filter builder. #686 - Added
isGroupOperatorDisabledproperty ofPropertyFilterBuilderRendererPropsto control whether the group operator is toggle-able. #686 - Added support for
BetweenandNot betweenoperators inPropertyFilterBuilder. This required to make some breaking changes to@betaAPIs ofPropertyFilterBuilder. These changes include internal components ofPropertyFilterBuilder(PropertyFilterBuilderRuleValueandPropertyFilterBuilderActions) that are exposed to allow customizingPropertyFilterBuildercomponent. IfPropertyFilterBuilderis used without any customizations these changes should not break anything. #702- Added
PropertyFilterBuilderRuleOperatortype that hasbetweenandnot-betweenvalue in addition toPropertyFilterRuleOperatorvalues. - Added
isUnaryPropertyFilterBuilderOperatorfor checking ifPropertyFilterBuilderRuleOperatoris unary. - Added
PropertyFilterBuilderRuleRangeValue. It is used to specify value forBetweenandNot betweenoperator inPropertyFilterBuilder.
- Added
Changes
- Show loading spinner in subsequent loads if delay threshold is reached in
VirtualizedPropertyGrid.. #660 - Updated UI of the
FilterBuildercomponent. #686 - Updated
PropertyFilterRule.operatorproperty type to support setting it usingPropertyFilterRuleOperatorenum or string value. #702 - Updated
PropertyFilterRuleGroup.operatorproperty type to support setting it usingPropertyFilterRuleGroupOperatorenum or string value. #702 - Changed
PropertyFilterBuilderRuleValuecomponent props toPropertyFilterBuilderRuleValueRendererPropsin order to have access to rule operator when rendering value input. #702 - Changed
PropertyFilterBuilderRule.operatortype fromPropertyFilterRuleOperatortoPropertyFilterBuilderRuleOperator. #702 - Renamed
getPropertyFilterOperatorstogetPropertyFilterBuilderOperators. #702 - Renamed
getPropertyOperatorLabeltogetPropertyFilterBuilderOperatorLabel. #702 - Renamed
PropertyFilterBuilderRuleOperatorPropstoPropertyFilterBuilderRuleOperatorRendererProps. #702
@itwin/core-react
Deprecations
useDisposablehook because it does not work correctly in React 18 Strict mode.useOptionalDisposableoruseState+useEffectshould be used instead to manage disposable resources. #676