ud-components 0.5.26 → 0.5.28

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.
@@ -3,6 +3,7 @@ import { TemplateRef } from '@angular/core';
3
3
  import { SortDirection } from '@angular/material/sort';
4
4
  import { Observable } from 'rxjs';
5
5
  import { UdSelectOption } from '../lib/form-fields/multi-select/multi-select.component';
6
+ import { KpiPillType } from '../lib/kpi/kpi.enum';
6
7
  export interface TableDisplayColumn {
7
8
  /**
8
9
  * Property in which to take the value from
@@ -68,7 +69,19 @@ export interface TableDisplayColumn {
68
69
  */
69
70
  editable?: boolean;
70
71
  /**
71
- * Options for SELECT type editable columns (the enum values to pick from).
72
+ * Options for editable columns that use a dropdown (the enum values to pick from).
72
73
  */
73
74
  editOptions?: UdSelectOption[];
75
+ /**
76
+ * When provided, the column filter renders a dropdown instead of a text input.
77
+ */
78
+ filterOptions?: UdSelectOption[];
79
+ /**
80
+ * When true, the edit dropdown allows selecting multiple values.
81
+ */
82
+ allowMultiSelectOnEdit?: boolean;
83
+ /**
84
+ * For PILL type columns. Receives the row and returns the KpiPillType to apply.
85
+ */
86
+ pillTypeFn?: (row: any) => KpiPillType;
74
87
  }
@@ -1,4 +1,5 @@
1
1
  import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import { UdInputSize } from '../text-input/text-input.component';
2
3
  import { FormControl } from '@angular/forms';
3
4
  import * as i0 from "@angular/core";
4
5
  export interface UdSelectOption {
@@ -37,6 +38,7 @@ export declare class MultiSelectComponent implements OnInit, OnChanges, OnDestro
37
38
  * Default: "+{n} more"
38
39
  */
39
40
  moreText: string;
41
+ size: UdInputSize;
40
42
  loading: boolean;
41
43
  disabled: boolean;
42
44
  hint: string;
@@ -52,5 +54,5 @@ export declare class MultiSelectComponent implements OnInit, OnChanges, OnDestro
52
54
  getMoreText(count: number): string;
53
55
  private buildLabelMap;
54
56
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent, never>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "ud-multi-select", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxChipsVisible": { "alias": "maxChipsVisible"; "required": false; }; "moreText": { "alias": "moreText"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, {}, never, never, true, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent, "ud-multi-select", never, { "controlName": { "alias": "controlName"; "required": true; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxChipsVisible": { "alias": "maxChipsVisible"; "required": false; }; "moreText": { "alias": "moreText"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, {}, never, never, true, never>;
56
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ud-components",
3
- "version": "0.5.26",
3
+ "version": "0.5.28",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=19",
6
6
  "@angular/common": ">=19",