@ascentgl/ads-ui 21.78.0 → 21.79.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascentgl/ads-ui",
3
- "version": "21.78.0",
3
+ "version": "21.79.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">=21.0.0",
6
6
  "date-fns": ">=4.1.0",
@@ -2546,8 +2546,15 @@ interface ColumnSortFilterConfig {
2546
2546
  sortType?: SortType;
2547
2547
  /** Custom comparator function for sorting when sortType is 'custom' */
2548
2548
  sortComparator?: SortComparator;
2549
- /** Custom formatter function for displaying filter option labels (e.g., for dates, addresses) */
2549
+ /** Custom formatter function for displaying filter option labels (e.g., for addresses, custom formats) */
2550
2550
  filterValueFormatter?: FilterValueFormatter;
2551
+ /**
2552
+ * When true, date-time values in the filter menu are trimmed to date-only (no time).
2553
+ * This deduplicates filter options that share the same date but have different times.
2554
+ * The trimming respects the column's valueFormatter timezone if provided.
2555
+ * @default false
2556
+ */
2557
+ showDateOnly?: boolean;
2551
2558
  }
2552
2559
  declare class AdsColumnSortFilterMenuComponent implements OnInit, OnChanges, OnDestroy {
2553
2560
  private registry;
@@ -2609,6 +2616,12 @@ declare class AdsColumnSortFilterMenuComponent implements OnInit, OnChanges, OnD
2609
2616
  private initializeFilterOptions;
2610
2617
  /** @ignore - Serialize any value into a stable string key for selection */
2611
2618
  private serializeOptionValue;
2619
+ /**
2620
+ * @ignore - Trim a date-time string to date-only.
2621
+ * Handles common formatted patterns like "01/09/26, 02:00 AM" or "01/09/2026 14:30".
2622
+ * Strips everything after the date portion (comma+time, space+time).
2623
+ */
2624
+ private trimToDateOnly;
2612
2625
  /** @ignore */
2613
2626
  private setupSearchSubscription;
2614
2627
  /** @ignore */
@@ -2859,8 +2872,21 @@ declare class AdsTableComponent implements AfterViewInit, OnChanges, OnDestroy {
2859
2872
  clearAllFilters(): void;
2860
2873
  /** @ignore */
2861
2874
  clearAllSorting(): void;
2862
- /** @ignore - Get the filterValueFormatter for a given column field */
2875
+ /** @ignore - Get the effective filter formatter for a given column field.
2876
+ * When showDateOnly is true, wraps the formatter (or uses a default date formatter)
2877
+ * that trims the output to date-only for dedup and comparison purposes.
2878
+ */
2863
2879
  private getFilterValueFormatterForField;
2880
+ /**
2881
+ * @ignore - Default date formatter for showDateOnly when no filterValueFormatter is provided.
2882
+ * Formats an ISO date-time string to the locale date string.
2883
+ */
2884
+ private formatDateDefault;
2885
+ /**
2886
+ * @ignore - Trim a date-time string to date-only.
2887
+ * Strips time portion from common formatted date-time patterns.
2888
+ */
2889
+ private trimToDateOnly;
2864
2890
  /**
2865
2891
  * @ignore - Serialize a cell value for filter key purposes.
2866
2892
  * When a filterValueFormatter exists, uses the formatted value as the key