Release Notes 18.1.000
Version Information
Version Information |
|---|
Release 18.1.000 |
Bootstrap 4 Upgrade
This release requires to update to Bootstrap Version 4.
See Updating to Bootstrap 4 for details on this mandatory step to perform the update on existing projects.
System requirements
An overview of required dependencies and version can be obtained at SmartComponent Library NG Web System Requirements.
Overview of included tickets
Bug Fixes
SCLNG-879 Smart Error Dialog styling improvements
We have improved the styling of the Smart Error Dialog in terms of content placement and responsiveness.
SCLNG-906 Error dialogs are now always correctly brought to the foreground when opened
We have fixed an issue where in certain cases, due to the Angular change detection cycle, error dialogs would not be brought to the foreground until the user had interacted with the browser window - for example by clicking.
SCLNG-947 Smart Error Handler service now correctly handles JSDO internal errors
We have fixed an issue where in certain cases, internal erros of the JSDO were not correctly handled by the Smart Error Handler Service.
SCLNG-964 Smart Error Handler now correctly handles all types of error messages
We have fixed issues where in certain cases the Smart Error Handler service displayed “[Object object]” instead of a meaningful error message, or failed to fetch the error message from the backend based on message group and number.
SCLNG-979 Smart Tree View now correctly displays context menu
We have fixed an issue where right clicking on a Smart Tree View row would display the context menu outside of the view port.
SCLNG-985 Smart Developer Tools Configuration Info tab now displays correct data
The Configuration Info tab of the Smart Developer Tools now correctly displays the appropriate data found in the .restapplicationsettings file.
SCLNG-998 Updated JSON Schema
We have updated our JSON layout schema to include latest features and improvements.
SCLNG-1002 Smart Data Source now handles initial data fetch based on autoFetch setting
The Smart Data Source now handles the initial data fetch upon loading the screen based on the autoFetch repository setting. Further, batch sizing is now also handled by the Smart Data Source while the Smart Grid now simply binds to the batch size reported by the Smart Data Source.
SCLNG-1008 It is now possible to directly open child routes as windows
We have fixed an issue where attempting to use the SmartNavigationService to directly open a child route as a window would result in an error being thrown.
SCLNG-1038 Fixed vertical scrolling of the Smart Developer Tools Session Information page
It is now possible to vertically scroll within the Session Information page of the Smart Developer Tools screen.
SCLNG-1056 Fixed rendering of Smart Grid detail row templates
We have fixed an issue where Smart Grid detail row templates would not be rendered if the layout contained Smart Data Source definitions.
SCLNG-1067 Smart Error Handler Service now correctly handles multiple substitutions per error message
We have fixed an issue where the Smart Error Handler service would not correctly handle multiple substitutions per validation error message.
SCLNG-1070 Smart Grid now does not allow using virtual scrolling in conjonction with detail templates
The Smart Grid will now no longer allow the usage of virtual scrolling in conjonction with detail row templates. When such a combination of settings is detected, the following error message will be displayed:
[SmartGridName] it is not supported to use a detailTemplate with virtual scrolling.
SCLNG-1071 Smart Grid now only allows row selection by checkbox when selection mode is "checkbox"
When the selection mode is set to checkbox, the Smart Grid will only allow the selection of rows by selecting checkboxes.
SCLNG-1072 Multiple column Smart Split View pane layouts are now correctly rendered
We have fixed an issue where Smart Split View layouts that spanned across multiple columns were not rendered properly in terms of positioning and sizing (when stretch mode is enabled) of components.
SCLNG-1073 Top-level Angular route configurations defined in the repository are now correctly processed by the frontend
We have fixed an issue where top-level repository based Angular route configurations that included child routes would not be added to the Angular Router configuration.
SCLNG-1074 Smart Grid now correctly displays the row expansion column when used as part of a nested detail template
Whe have fixed an issue where in certain cases, a Smart Grid that was part of a parent Smart Grid’s row detail template, did not show the row expansion column even when a nested row detail template would be available.
SCLNG-1075 Increased default width of the Smart Grid checkbox column
The default width of the Smart Grid checkbox column (displayed when the selection mode is set to checkbox) is now 40 pixels.
SCLNG-1076 Fixed unecessary vertical scrollbar when using pixel perfect Smart Viewer/Frame layouts
We have fixed an issue where in certain cases, while using pixel perfect Smart Viewer and/or Smart Frame layouts, a vertical scrollbar would be displayed even when the available height of the viewer would be sufficient for fitting all of the field components.
SCLNG-1077 Smart Data Source now correctly applies paging settings when filtering by parent selection
We have fixed an issue where the Smart Data Source would not apply the correct paging settings when filtering based on a parent Smart Data Source’s selection.
SCLNG-1078 Smart Grid detail template renderer now provides isolated instances of component registry services
The Smart Grid detail row template renderer component now provides isolated instances of component registry services to rendered components.
SCLNG-1083 Smart Data Source: error message is now shown when the user is not authorized to perform a CRUD operation
An error message will now be displayed when the Smart Data Source is used to perform a CRUD operation that the current user is not authorized to perform.
SCLNG-1084 JSDO Cache is now cleared on user sign out/sign in
The JSDO Catalog cache is now cleared whenever a user signs out, signs in and on browser refresh.
SCLNG-1090 Smart Grid: fixed default filter operator for date fields
We have fixed an issue where filtering based on a date field using the Smart Grid would result in a query that uses an incompatible operator being applied.
SCLNG-1093 Smart Error Handler now correctly parses validation errors that include table and field information
We have fixed an issue where the Smart Error Handler did not correctly handle backend validation errors that included table and field information.
SCLNG-1095 Smart Lookup is now correctly enabled when selecting "Cancel"
We fixed an issue where, if the Smart Lookup dialog was closed by selecting “Cancel”, the Smart Lookup would remain disabled.
SCLNG-1097 Smart Error Handler: validation errors are now correctly handled
We have fixed an issue where validation errors would in some cases be displayed without fetching the proper error messages from the backend, resulting in a non-meaningful message being displayed.
SCLNG-1098 Fixed Smart Data Source client side data processing
We have fixed an issue where filtering or sorting using a Smart Data Source that was configured to use client side filtering and/or sorting would always return an empty data set.
SCLNG-1106 Implemented support for translation of Smart Toolbar TableIO buttons
We have fixed an issue where providing different labels than the default for Smart Toolbar TableIO buttons would result in no action being triggered by clicking said buttons.
SCLNG-1110 Smart Dynamic Launcher: disable launching when no valid Smart Object Master has been selected
The Smart Dynamic Launcher will no longer allow the user to attempt to launch when no valid Smart Object Master has been selected. Further, in Multiple Display Interface mode, if there is an issue during the initialization of the dynamically launched Smart Form, the floating window will be closed after displaying the error message.
SCLNG-1118 Smart Lookup: fixed filtering in lookup dialog
We have fixed an issue where applying a filter within the Smart Lookup dialog’s Smart Grid did not work.
SCLNG-1120 Smart Lookup no longer attempts the normal process of fetching data when using a named query
We have fixed an issue where, when using a named query, the Smart Lookup would also attempt to fetch data using the regular process. This resulted in unexpected behavior.
SCLNG-1152 Smart Viewer now handles errors when raising BeforeEnableFields server side event
The Smart Viewer will no longer silently fail when an error occurs during the raising of the BeforeEnableFields server side event. Instead, it will display the error message through the standard error handling API.
SCLNG-1153 Smart Viewer will now raise BeforeEnableFields server side event regardless of what triggers the fields to be enabled
The Smart Viewer now raises the BeforeEnableFields server side event whenever enableFields() is called. Previously, this event was only raised when a record was being updated.
SCLNG-1154 Fixed rendering issue of Smart Developer Tools
We have fixed an issue where the Smart Developer Tools screen would fail to be rendered, resulting in a blank screen being displayed.
SCLNG-1161 Questions API: implemented support for MessageDetail
The SmartQuestionsService now supports handling both MessageText and MessageDetail in question objects.
SCLNG-1194 eXperience Package: default to SDI mode when no Smart User Profile has been provided by the user
The SmartUserExperienceService of the SmartComponents eXperience Package will use Single Display Interface mode when the user has not yet submitted a window mode preference.
SCLNG-1195 Fixed issue regarding inline-editable Smart Grid disabling clicking into a field
We have fixed an issue where if the Smart Grid was configured to disable text selection and was also inline-editable, it was impossible to bring focus to an input field while editing by clicking into it.
SCLNG-1199 Smart Error Handler service now correctly handles all validation errors
We have fixed an issue where in certain cases, validation errors that required the retrieval of the error message from the backend were not handled properly.
SCLNG-1200 Smart Toolbar: custom toolbar buttons that have TableIO-like labels are no longer treated as TableIO
We have fixed an issue where custom Smart Toolbar buttons that had TableIO-like labels (for example, a custom toolbar button labelled “Delete”) were treated as built-in TableIO buttons.
SCLNG-1210 Fixed Smart Lookup query string value when it contains foreign fields
We have fixed the Smart Lookup queryString value when it contains foreign fields. It is now computed from the query string template on each filtering operation.
SCLNG-1216 Smart Dynamic Launcher lookup dialog now correctly filters available Object Masters
We have fixed an issue where the Smart Dynamic Launcher lookup dialog would fail to filter available Object Masters based on user input.
SCLNG-1225 Questions API: Prompt dialog buttons are now mapped to MessageReply items case-insensitive
Questions API prompt dialog buttons will now be mapped to the MessageReply enum case-insensitive. For example, “OK” will be mapped to MessageReply.ReplyOk.
SCLNG-1239 Implemented support for additional error object structure
We have implemented support for handling errors that store the error string in the returnValue property rather than message.
SCLNG-1240 Smart Grid no longer disables inline-editing when a single column is disabled
We have fixed an issue where if one or more columns of an inline-editable Smart Grid were disabled for editing (enabledState=none), it would be impossible to use the inline-editing feature of that Smart Grid.
SCLNG-1242 Menu structure is now discarded when the user signs out
The current menu structure is now discarded every time the user is signed out, and reloaded from the backend when a user signs in.
SCLNG-1244 Smart Error Handler Service now correctly handles validation errors with no field information
We have fixed an issue where the Smart Error Handler Service did not correctly display validation errors with multiple messages that did not include field information.
SCLNG-1248 User session is now persisted across browser refreshes and other tabs/windows
The user session now persits across different tabs, browser windows and browser refreshes.
SCLNG-1253 Smart User Profile cache is now flushed when the user signs out
The Smart User Profile cache is now flushed on user sign out in addition to browser refresh.
New Features
SCLNG-379 Implemented Smart ServerSide File Picker component
Smart Viewers and Smart Frames now include a new input, the ServerSide File Picker.
SCLNG-559 Added ability to scaffold SmartComponent Library projects using our CLI tool
Our CLI tool now support scaffolding SmartComponent Library projects starting with plain Angular projects as a base.
Usage:
Inside an Angular project, run:
scl installAfter initial installation of the SmartComponent Library, you will be able to choose from three project flavors:
SmartComponent Library Core
SmartComponent Library + eXperience Package
SmartComponent Library + eXperience Package + SmartFramework Maintenance Pack
SCLNG-704 Implemented support for resizing the Side Drawer menu
We have implemented support for resizing the Side Drawer menu.
SCLNG-720 Smart Data Source now supports invoking GetInitialValues when creating new records
We have implemented support for invoking GetInitialValues by the Smart Data Source when creating new records.
SCLNG-827 Smart Data Source now supports case-insensitive foreign field mapping
We have implemented support for case-insensitive foreign field mapping in Smart Data Source parent-child links.
SCLNG-911 Smart Grid: implemented support for configuring enabled editing state of individual columns
It is now possible to configure the enabled state of individual Smart Grid columns during inline editing based on the current operation (add, update, copy).
SCLNG-993 Implemented support for Smart Viewer and Smart Frame layoutType setting
We have implemented support for the new layoutType repository setting in Smart Viewer and Smart Frame layouts.
SCLNG-1005 Implemented support for rendering disabled Smart Tab Folder pages
We have implemented support for rendering disabled Smart Tab Folder pages based on token-security.
SCLNG-1091 Implemented support for framework initialization error handling
We have implemented support for handling framework initialization errors. We now provide an abstract class for this that can be extended by consuming applications, as well as an implementation that provides themed error handling as part of the eXperience Package.
SCLNG-1100 Smart Data Source: implemented support for afterDelete hook
The Smart Data Source now supports using an afterDelete hook, which will be called after a record has been successfully deleted.
SCLNG-1104 Smart Grid: implemented support for translatable inline edit button labels
We have implemented support for backend provided translatable inline edit button labels for the Smart Grid.
SCLNG-1105 Smart Filter: implemented support for translatable operator labels
We have implemented support for backend provided translatable Smart Filter operator labels.
SCLNG-1107 Smart Grid: implemented support for TableIO operations in inline-ediable Smart Grids
We have implemented support for TableIO operations for inline-editable Smart Grids that are the current active IO target of Smart Toolbars.
SCLNG-1128 eXperience Package now provides implementation for application root component
The eXperience Package will now provide a default implementation for the application root component. This component can be bootstrapped directly by the consuming application as follows:
import { SmartAppRootComponent } from '@consultingwerk/smartcomponents-experience-package';
@NgModule({
...
bootstrap: [SmartAppRootComponent]
})
export class AppModule {}SCLNG-1129 Smart Form now provides "callAction" method for unifying aceess to Smart Form actions
The Smart Form now provides the following method for calling a form action, unifying access both in cases of custom Smart Form implementations and of Smart Form Logic Classes:
callFormAction(actionName: string, args?: any)SCLNG-1132 It is now possible to add Angular providers to a Smart Form's injector from a logic class
We have implemented the ability to add additional providers to the Smart Form’s injector at runtime from within a Smart Form Logic class.
SCLNG-1135 Added support for rendering of images to the Smart Combo Editor
The Smart Combo Editor now supports rendering images by providing an ImageField and optionally an ImageSubstitute value.
SCLNG-1138 Added support for Smart Toolbar / Smart Grid export links
It is now possible to define links of type export between Smart Toolbars and Smart Grids using the repository tooling. When such a link is defined, it will enable Excel and PDF export functionality.
SCLNG-1141 Implemented support for BeforeEnableFields server side event handler
The Smart Viewer now supports using a server side event handler for the BeforeEnableFields event.
SCLNG-1142 Implemented support for input prompts within Smart UI Actions
It is now possible to include input prompts within Smart UI Actions during SaveChanges.
SCLNG-1155 Implemented support for questions flow when deleting a record
The Smart Data Source now supports handling question flows also when deleting a record.
SCLNG-1163 Implemented support for Cefsharp ToolbarIntegration query parameter
We have implemented support for conditionally applying the cefsharp CSS class to Smart Toolbars based on the ToolbarIntegration query parameter.
SCLNG-1168 Implemented support for configurable hotkeys for Smart Lookup dialog
The Smart Lookup now supports configurable hotkeys for opening the lookup dialog (default F3). This can be configured via application-level global values:
globalValues: {
smartLookup: {
hotKeys: {
lookup: 'F3' // modifier keys are also supported (e.g. CTRL+SHIFT+F3)
}
}
}SCLNG-1169 Implemented support for FontAwesome and Kendo UI icons on the Smart Form icon
The Smart Form’s iconFileName property supports Font Awesome and Kendo UI icons.
SCLNG-1227 Implemented new Smart Grid and Smart Viewer events
We have implemented support for the following events within the Smart Grid and Smart Viewer:
Add
Copy
EnableFields
DisableFields
Delete
Save
Cancel
The Smart Grid and Smart Viewer will raise before and after events for all of the above mentioned actions. Before events are cancellable.
It is also possible to implement logic for handling these events using logic classes, for both Smart Grids and Smart Viewers by overriding one or more of the following logic class methods:
protected onBeforeSaveChanges(args: BeforeSaveChangesEventArgument) {}
protected onAfterSaveChanges(args: AfterSaveChangesEventArgument) {}
protected onBeforeEnableFields(args: BeforeEnableFieldsEventArgument) {}
protected onAfterEnableFields(args: AfterEnableFieldsEventArgument) {}
protected onBeforeCopyRecord(args: BeforeCopyEventArgument) {}
protected onAfterCopyRecord(args: AfterCopyEventArgument) {}
protected onBeforeAddRecord(args: BeforeAddEventArgument) {}
protected onAfterAddRecord(args: AfterAddEventArgument) {}
protected onBeforeDeleteRecord(args: BeforeDeleteEventArgument) {}
protected onAfterDeleteRecord(args: AfterDeleteEventArgument) {}
protected onBeforeCancelRecord(args: BeforeCancelEventArgument) {}
protected onAfterCancelRecord(args: AfterCancelEventArgument) {}SCLNG-1249 eXperience Package: implemented support for providing custom theme definitions
We have added support for defining custom theme definitions through the application-level configuration. When custom theme definitions are provided, the Smart User Settings Dialog will include them in the Theme dropdown.
{
themes: [
{
name: 'myCustomTheme', // identifier that will also be stored as a preference in the Smart User Profile
title: 'My Custom Theme', // text that will be displayed in the Theme dropdown
cssSelector: 'my-custom-theme' // class name that will be applied to the <html> root element
}
]
}In your global styles.scss file, the conditional rule for the theme should be defined as follows:
html.my-custom-theme {
@import '<relative-path-to-main-theme-scss-file>'
}Improvements
SCLNG-828 Added additional types to public API
We have made additional, previously internal types, part of the publicly available API.
SCLNG-887 Error message is now shown to the user when fetching repository defined routes from the backend has failed
When fetching repository defined routes from the backend fails at boot time, a meaningful error message is now shown to the user.
SCLNG-934 Error message is now shown to the user when menu items with no function code are found in the menu structure
When menu items that do not have a unique and meaningful function code assigned are found within the loaded menu structure at boot time, an error message will now be displayed to the user.
SCLNG-1009 MDI/SDI navigation is now handled automatically in the eXperience Package
Navigation is now handled automatically when using our SmartNavigationService. The eXperience Package provides a customization of the SmartNavigationWindowOptionsProviderService:
All modal forms will be open as windows.
All non-modal forms are open as windows when in Multiple Display Interface mode and rendered in the default router outlet when in Single Display Interface Mode.
The
startPageis always rendered in the default router outlet, as that is considered a landing page.
SCLNG-1022 Styling of disabled Smart Viewer and Smart Frame buttons has been improved
We have improved the styling of disabled Smart Viewer and Smart Frame buttons for better visibility and consistency with those of the Smart Toolbar.
SCLNG-1051 Smart Form initial action name is now removed from title after action is performed
After the Smart Form has performed the initial action (if any was set), the action name is removed from the window title after the action is completed or cancelled.
SCLNG-1053 Smart Error Handler now displays meaningful HTTP status reason when handling HTTP errors
Since the PASOE does not return a meaningful HTTP status reason, the Smart Error Handler service will now display a reason as part of the error dialog title when handling HTTP errors.
SCLNG-1066 Smart Grid inline filter improvements
We have made the following improvements to the Smart Grid inline filtering capabilities:
the clear button of any inline filter cell will now immediately reopen the query
when the inline filter cell uses a combo box or a checkbox, selecting a new value will immediately reopen the query
SCLNG-1079 ngx-socket-io peer dependency is now fixed at 4.7.0
Due to version 4.8.0 of ngx-socket-io requiring conflicting peer dependencies with the SmartComponent Library Angular package, we have fixed our peer dependency to this module to version 4.7.0.
SCLNG-1087 Smart Form now provides isolated Widget Facade Factory instance
The Smart Form now provides an isolated instance of the WidgetFacadeFactory service to it’s descendants.
SCLNG-1096 Smart Lookup dialog grid now fills available height
The Smart Grid displayed within the Smart Lookup dialog will now stretch to fill the available height.
SCLNG-1102 Improved space usage of Smart Filter Component
We have improved the usage of screen space within the Smart Filter component.
SCLNG-1103 Smart Grid now renders command columns at correct position
The Smart Grid will now render command columns at the position they are found within the grid layout definition, relative to the other columns. Previously, command columns were always rendered after all other columns.
SCLNG-1108 Improved space allocation in responsive Smart Viewer layouts
We have improved the space allocation in responsive Smart Viewer and Smart Frame layouts.
SCLNG-1146 Improvements to prompt dialogs
We have implemented the following improvements to prompt dialogs:
the first input that is present on a prompt will be focused (if any)
pressing “enter” will behave as if the primary button was clicked
pressing “escape” will behave as if the Cancel button was clicked
mnemonics are now supported
SCLNG-1149 Improvements to Smart Grid PDF export functionality
We have implemented the following improvements to the Smart Grid PDF export functionality:
If there are more records available than there are loaded in the current page, the user will be given the option to export all data matching the current query
Only columns that represent a field will be rendered in the exported PDF
Improved formatting and page layout
SCLNG-1164 Navigation is now preserved when a deep link is used to start the application
When using a deep link to start the application, that route will be preserved instead of navigating to the default route after framework initialization.
SCLNG-1166 Implemented persistance of client sessions across browser tabs/windows
We now support persisting the client session across browser tabs and windows, as well as directly reusing the JSESSIONID cookie if one is set (regardless of the client that initialized it).
SCLNG-1181 Optimized Smart TabFolder change detection
We have optimized the change detection cycle of Smart TabFolder pages resulting in an overal performance increase in UI reactiveness even when many, complex pages are rendered within a Smart Form.
SCLNG-1182 Smart Grid: optimized filter cell value change event handling
We have optimized the handling of filter cell field value changes within the Smart Grid, resulting in improved responsiveness of filter cell fields.
SCLNG-1121 Smart Data Source is now always filtered based on parent selection
The Smart Data Source, when having a parent/child link to another Smart Data Source, will now under all circumstances always be filtered by the parent’s selection.
SCLNG-1252 Cached Smart Form layouts are now discarded on user sign out
The Smart Form Layout cache is now flushed with every user sign out. Those layouts that were previously cached will be reloaded and cached form the backend after a user signs in and the form is opened.