release_12.26.0
Feature Enhancements
Common-Properties
#1360 Enable getZoomToReveal to work with links
The canvas controller method getZoomToReveal(objectIds, xPos, yPos)
now supports links as well as nodes and comments. This means an array of link IDs can be provided for the objectIds
parameter and the method will return a zoom object that will zoom the center of the link(s) to the position in the viewport identified by the xPos
and yPos
parameters.
#1344 Accessibility: Run Accessibility Checker Tool and fix errors
The high priorty issues identifed by the accessibility checker browser plugin, that showed up when testing with the test harness, have been fixed. Note many of these issues were caused by customization (such as icons) provided by the test harness, so if you are seeing accessibility errors that look like they are inside common-canvas, make sure they are not caused by icons your app provides to common-canvas.
#1364 Refactor App.js so progress indication sample code is contained in a sample app
A new Sample application called “Progress” has been added to the test harness. This demonstrates how CSS styling and decorations can be used by a host application to show the progress of a run of the flow.
#1362 Add custom button in notification center
New properties have been introduced in the notification config object to enable a secondary button in the notification panel.
Common-Properties
#1333 Required or optional indicator for properties labels
Following the carbon guidelines for optional vs mandatory fields:
- If the majority of the fields are required, mark only the optional field labels with
(optional)
.
- If the majority of the fields are optional, mark only the required field labels with
(required)
.
#1342 New properties config to convert value data type
A new properties config option convertValueDataTypes
has been added in this release. If set to true, it will convert the currentParameter
values to the data type specified in the parameter definition. This defaults to false.
#1354 Support empty list placeholder in selectcolumn and selectschema controls
The selectcolumn
and selectschema
controls use the dropdown component. When the dropdown list is empty, common-properties will display the following default placeholder: "No options available".
This placeholder text can be customized by setting [parameter_id].emptyList.placeholder
in the resources section. If custom empty list placeholder text is provided, the empty list control will be disabled.
"resources": {
"field1_panel.emptyList.placeholder": "Empty list placeholder text"
}
Issues Resolved
#1354 Support empty list placeholder in selectcolumn and selechschema (#1355)
#1362 Add custom button in notification center (#1363)
#1364 Refactor App.js so progress indication sample code is contained… (#1365)
#1356 ClickActionHandler not being called with Mouse Interaction type (#1357)
#1360 Enable getZoomToReveal to work with links (#1361)
#1358 Typo in field name in svg-canvas-renderer: textEditingClosedfOnZoom (#1359)
#1331 Test harness - Hide side panel contents when panel is closed (part 2) (#1348)
#1344 Accessibility: Run Accessibility Checker Tool and fix errors (#1345)
#1350 Unable to open subpanel of structureeditor in tearsheet (#1351)
#1352 Update styling of properties error panel (#1353)
#1346 Do not render hidden controls (#1347)
#1213 Support spaces in common properties (#1240)
#1340 Fix bug where selection doesn't work in subpanels (#1341)
#1342 New properties config to convert value data type (#1343)
#1333 Show 'required' or 'optional' indicator for properties labels (#1334)