@masterteam/components 0.0.161 → 0.0.163

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": "@masterteam/components",
3
- "version": "0.0.161",
3
+ "version": "0.0.163",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/components",
6
6
  "linkDirectory": true,
@@ -36,7 +36,7 @@ interface EntityListComparison {
36
36
  }
37
37
  type PropertyValueComparison = ValueComparison | EntityListComparison;
38
38
 
39
- type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'Lookup' | 'Attachment' | 'LookupMatrix' | 'LeafDetails';
39
+ type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'Lookup' | 'Attachment' | 'LookupMatrix' | 'LeafDetails';
40
40
  type EntityLabelPosition = 'top' | 'bottom';
41
41
  /** Entity size – controls column span (1-24) inside a 24-column grid */
42
42
  type EntitySize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
@@ -249,6 +249,7 @@ declare class EntityUser {
249
249
  readonly httpContext: HttpContext;
250
250
  /** Full entity data object */
251
251
  readonly data: _angular_core.InputSignal<EntityData | undefined>;
252
+ readonly displayName: _angular_core.Signal<string>;
252
253
  /** Resolved user value object from data().value */
253
254
  private readonly userValue;
254
255
  readonly rawUserName: _angular_core.Signal<string | null>;
@@ -414,7 +415,7 @@ declare class EntityPreview {
414
415
  declare class EntityPreviewBody {
415
416
  readonly data: _angular_core.InputSignal<EntityData>;
416
417
  readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
417
- readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "LeafDetails">;
418
+ readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Number" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "LeafDetails">;
418
419
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
419
420
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreviewBody, "mt-entity-preview-body", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
420
421
  }
@@ -27,18 +27,18 @@ interface FilterOption {
27
27
  * Configuration for filtering on a specific column.
28
28
  */
29
29
  interface FilterConfig {
30
- type: 'text' | 'select' | 'userSelect' | 'date' | 'boolean' | 'user';
30
+ type: 'text' | 'select' | 'userSelect' | 'date' | 'boolean' | 'user' | 'numberRange';
31
31
  label?: string;
32
32
  options?: FilterOption[];
33
33
  [key: string]: unknown;
34
34
  }
35
35
  /**
36
- * Filter value for date range or simple value
36
+ * Filter value for date range, numeric range, or simple value
37
37
  */
38
38
  interface FilterValue {
39
39
  value?: any;
40
- from?: Date | null;
41
- to?: Date | null;
40
+ from?: Date | number | null;
41
+ to?: Date | number | null;
42
42
  }
43
43
  interface TableStatusMapValue {
44
44
  display?: string;
@@ -52,7 +52,7 @@ type TableFilters = Record<string, FilterValue | any>;
52
52
  /**
53
53
  * Column type definition
54
54
  */
55
- type ColumnType = 'text' | 'boolean' | 'date' | 'dateTime' | 'user' | 'status' | 'entity' | 'custom';
55
+ type ColumnType = 'text' | 'number' | 'boolean' | 'date' | 'dateTime' | 'user' | 'status' | 'entity' | 'custom';
56
56
  /**
57
57
  * Event emitted when a cell value changes
58
58
  */
@@ -437,7 +437,8 @@ declare class TableFilter implements ControlValueAccessor {
437
437
 
438
438
  /**
439
439
  * Renders a single filter control for one `ColumnDef`, dispatching on
440
- * `column.filterConfig.type` (`text` | `select` | `date` | `boolean` | `user`).
440
+ * `column.filterConfig.type` (`text` | `select` | `date` | `boolean` | `user`
441
+ * | `numberRange`).
441
442
  *
442
443
  * Two-way binds the filter value via `value` / `valueChange`. Shared by both
443
444
  * filter UX modes (popover + per-column) so field rendering lives in one place.
@@ -454,8 +455,10 @@ declare class TableFilterField {
454
455
  protected getFilterType(): string;
455
456
  protected getScalarValue(): any;
456
457
  protected getDateRangeValue(part: 'from' | 'to'): Date | null;
458
+ protected getNumberRangeValue(part: 'from' | 'to'): number | null;
457
459
  protected updateScalar(next: any): void;
458
460
  protected updateDate(part: 'from' | 'to', next: Date | null): void;
461
+ protected updateNumber(part: 'from' | 'to', next: number | null): void;
459
462
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableFilterField, never>;
460
463
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableFilterField, "mt-table-filter-field", never, { "column": { "alias": "column"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
461
464
  }