SeUiToolkit
This library was generated with Angular CLI version 12.0.4.
Code scaffolding
Run ng generate component component-name --project se-ui-toolkit to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project se-ui-toolkit.
Note: Don't forget to add
--project se-ui-toolkitor else it will be added to the default project in yourangular.jsonfile.
Build
Run ng build se-ui-toolkit to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with ng build se-ui-toolkit, go to the dist folder cd dist/se-ui-toolkit and run npm publish.
Running unit tests
Run all tests (recommended):
node run-all-tests.js
This runs both Angular unit tests and grid component tests in sequence.
Run individual test suites:
# Angular unit tests via Karma
ng test se-ui-toolkit
# Grid component tests only
node src/lib/components/base/grid/run-all-grid-tests.js
Global Filters - Date Range Filter
Date Range Filter Initialization
The addGlobalDateRangeFilter method accepts value and valueTwo properties to set initial start and end dates for the filter.
Supported Input Formats:
- Date objects:
new Date('2026-05-29') - ISO date strings:
'2026-05-29' - Locale-formatted strings:
'5/29/2026'
Example:
this.gridService.addGlobalDateRangeFilter({
fromField: "FROM",
toField: "TO",
displayText: "Dates",
dayRange: utilities.EDayRange.WEEK,
value: new Date('2026-05-29'), // Start date
valueTwo: new Date('2026-06-05'), // End date
})
Important: Both value and valueTwo must be provided together for the filter to initialize with dates. If either is missing, the filter will start empty. Users can then use the Previous/Next buttons to navigate date ranges based on the configured dayRange property.
Date Format Handling
The component properly handles conversion of Date objects and strings to the format required by the p-datepicker component. Avoid calling toLocaleDateString() on date values before passing them to the filter, as the component handles this conversion internally.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
Library Publish Command
run npm run publish-toolkit to publish the npm package