@churchillliving/se-ui-toolkit 6.55.190 → 6.55.191

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,7 +17,50 @@ After building your library with `ng build se-ui-toolkit`, go to the dist folder
17
17
 
18
18
  ## Running unit tests
19
19
 
20
- Run `ng test se-ui-toolkit` to execute the unit tests via [Karma](https://karma-runner.github.io).
20
+ **Run all tests (recommended):**
21
+ ```bash
22
+ node run-all-tests.js
23
+ ```
24
+
25
+ This runs both Angular unit tests and grid component tests in sequence.
26
+
27
+ **Run individual test suites:**
28
+ ```bash
29
+ # Angular unit tests via Karma
30
+ ng test se-ui-toolkit
31
+
32
+ # Grid component tests only
33
+ node src/lib/components/base/grid/run-all-grid-tests.js
34
+ ```
35
+
36
+ ## Global Filters - Date Range Filter
37
+
38
+ ### Date Range Filter Initialization
39
+
40
+ The `addGlobalDateRangeFilter` method accepts `value` and `valueTwo` properties to set initial start and end dates for the filter.
41
+
42
+ **Supported Input Formats:**
43
+ - Date objects: `new Date('2026-05-29')`
44
+ - ISO date strings: `'2026-05-29'`
45
+ - Locale-formatted strings: `'5/29/2026'`
46
+
47
+ **Example:**
48
+ ```typescript
49
+ this.gridService.addGlobalDateRangeFilter({
50
+ fromField: "FROM",
51
+ toField: "TO",
52
+ displayText: "Dates",
53
+ dayRange: utilities.EDayRange.WEEK,
54
+ value: new Date('2026-05-29'), // Start date
55
+ valueTwo: new Date('2026-06-05'), // End date
56
+ })
57
+ ```
58
+
59
+ **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.
60
+
61
+ ### Date Format Handling
62
+
63
+ 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.
21
64
 
22
65
  ## Further help
23
66