mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
* Handles null values in number widget Ensures the number widget correctly handles null, undefined, and empty string values, setting the field value to null in these cases. This change prevents unexpected behavior when the user clears the input field, ensuring data consistency. * Adds test for readonly number widget Adds a test case to verify the behavior of the number widget when it's in readonly mode. The test checks if the displayValue is correctly set using the decimalNumberPipe when the readOnly property is true. * Refactors number widget tests Updates number widget tests to use `overrideComponent` for providing mocked dependencies. This approach ensures proper isolation and avoids potential issues with shared state between tests. Additionally, it adds a test case to verify the `displayValue` is correctly set using the mocked `DecimalNumberPipe`. --------- Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
Alfresco Core Library
Contains a variety of components, directives and services used throughout ADF
Documentation
See the ADF Core section of the docs index for all available documentation on this library.
Prerequisites
Before you start using this development framework, make sure you have installed all required software and done all the necessary configuration, see this page.
If you plan using this component with projects generated by Angular CLI, please refer to the following article: Using ADF with Angular CLI
Install
npm install @alfresco/adf-core
Storybook
In case you would like to aggregate all the stories from core library use
nx run core:storybook
And navigate to http://localhost:4400/
.
To create a Storybook core library build use
nx run core:build-storybook