* [ADF-3401] refactoring - different way to call the facet parsers * [ADF-3401] fix duplicate search call * [ADF-3401] add new fields and buckets from the response - If a facet is already displayed, just update the bucket count, else add the new facet to the responseFields - this way any existing filters are preserved, the collapsed state is preserved, facet selection is preserved * [ADF-3401] reset & clear all selections buttons * [ADF-3401] delete facets that are not in the response - for better UX, prevent deletion of items from the category where there is a selected item - clean-up reset buttons * [ADF-3401] apply filters to the newly created items * [ADF-3401] update tests * [ADF-3401] fix after rebase * [ADF-3401] Code refactoring * [ADF-3401] show count value inside tooltip * [ADF-3401] translatable strings * [ADF-3401] move 'Clear all selections' button to search-chip-list * [ADF-3401] option to configure having a reset button for filters * [ADF-3401] code cleanup and improvements after review * Update lib/content-services/search/components/search-filter/search-filter.component.ts Co-Authored-By: suzanadirla <dirla.silvia.suzana@gmail.com> * [ADF-3401] Better namings * fix failing e2e tests on search radio * [ADF-3401] add documentation for search resetButton
ADF Demo Application
Please note that this application is not an official product, but a testing and demo application to showcase complex interactions of ADF components.
Installing
To correctly use this demo check that on your machine you have Node version 5.x.x or higher.
git clone https://github.com/Alfresco/alfresco-ng2-components.git
cd alfresco-ng2-components
npm install
npm start
Proxy settings and CORS
To simplify development and reduce the time to get the application started, we have the following Proxy settings:
- http://localhost:3000/ecm is mapped to http://localhost:8080
- http://localhost:3000/bpm is mapped to http://localhost:9999
The settings above address most common scenarios for running ACS on port 8080 and APS on port 9999 and allow you to skip the CORS configuration.
If you would like to change default proxy settings, please edit the proxy.conf.js
file.
Application settings (server-side)
All server-side application settings are stored in the src/app.config.json. By default the configuration files have the content similar to the following one:
{
"$schema": "../../lib/core/app-config/schema.json",
"ecmHost": "http://{hostname}:{port}",
"bpmHost": "http://{hostname}:{port}",
"application": {
"name": "Alfresco ADF Application"
}
}
Development build
npm start
This command compiles and starts the project in watch mode.
Browser will automatically reload upon changes.
Upon start you can navigate to http://localhost:3000
with your preferred browser.
Important notes
This script is recommended for development environment and not suited for headless servers and network access.
Production build
npm run build
npm run start:dist
This command builds project in production
mode.
All output is placed to dist
folder and can be served to your preferred web server.
You should need no additional files outside the dist
folder.
Development branch build
If you want to run the demo shell with the latest changes from the development branch, use the following command from the /script folder:
npm run start:dev