eru-grid 0.0.45 → 0.0.47

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": "eru-grid",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.2",
6
6
  "@angular/core": "^21.1.2",
@@ -80,6 +80,7 @@ interface GridFeatures {
80
80
  header_font_family?: string;
81
81
  header_font_size?: number;
82
82
  header_font_bold?: boolean;
83
+ header_font_color?: string;
83
84
  header_border_type?: string;
84
85
  header_border_color?: string;
85
86
  header_border_style?: number;
@@ -89,6 +90,7 @@ interface GridFeatures {
89
90
  data_font_family?: string;
90
91
  data_font_size?: number;
91
92
  data_font_bold?: boolean;
93
+ data_font_color?: string;
92
94
  data_border_type?: string;
93
95
  data_border_color?: string;
94
96
  data_border_style?: number;
@@ -127,6 +129,7 @@ interface ExcelDownloadPayload {
127
129
  family: string;
128
130
  size: number;
129
131
  bold: boolean;
132
+ color: string;
130
133
  };
131
134
  border: [{
132
135
  type: string;
@@ -144,6 +147,7 @@ interface ExcelDownloadPayload {
144
147
  family: string;
145
148
  size: number;
146
149
  bold: boolean;
150
+ color: string;
147
151
  };
148
152
  border: [{
149
153
  type: string;
@@ -388,6 +392,33 @@ interface StatusPillColors {
388
392
  * look different depending on which control renders it.
389
393
  */
390
394
  declare function statusPillColors(color: string | null | undefined): StatusPillColors;
395
+ /** The colours a tag pill is painted with. */
396
+ interface TagPillColors {
397
+ background: string;
398
+ text: string;
399
+ dot: string;
400
+ }
401
+ /**
402
+ * The colours for a tag pill, from the single colour the data model gives it.
403
+ *
404
+ * A tag is deliberately not a status. Status owns the ringed pill — a tint fill
405
+ * inside a full-saturation border — because a record has exactly one status and
406
+ * it is the state the row is judged by. A tag field holds a list, so the same
407
+ * treatment repeated four times across one cell turns into four competing
408
+ * outlines. Tags instead get a tint fill with no border and a full-saturation
409
+ * dot ahead of the label: quieter than status at a glance, still carrying the
410
+ * palette colour at full strength in the dot so a pale entry stays identifiable.
411
+ *
412
+ * The fill is lightened 88% toward white and the text darkened 35% — slightly
413
+ * more contrast than the status pill, since with no border the fill alone has
414
+ * to describe the pill's edge.
415
+ *
416
+ * Lives here beside `statusPillColors` because eru-grid's tag cell and
417
+ * eru-studio's tag control paint the same values, and two copies of this
418
+ * arithmetic is two ways for one field to look different depending on which
419
+ * control renders it.
420
+ */
421
+ declare function tagPillColors(color: string | null | undefined): TagPillColors;
391
422
  /** Short month names, for the `MMM` token. */
392
423
  declare const MONTH_SHORT_NAMES: string[];
393
424
  /**
@@ -2987,10 +3018,7 @@ declare class TagComponent implements OnInit {
2987
3018
  onDrillableClick(event: Event): void;
2988
3019
  getProperty(property: string): any;
2989
3020
  removeTag(tag: string, event: Event): void;
2990
- getTagColor(tag: string): {
2991
- background: string;
2992
- color: string;
2993
- };
3021
+ getTagColor(tag: string): TagPillColors;
2994
3022
  isTagSelected(tagValue: string): boolean;
2995
3023
  trackByValueAndIndex(index: number, option: {
2996
3024
  value: string;
@@ -3140,5 +3168,5 @@ declare class ThemeToggleComponent {
3140
3168
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThemeToggleComponent, "eru-theme-toggle", never, {}, {}, never, never, true, never>;
3141
3169
  }
3142
3170
 
3143
- export { AttachmentComponent, CheckboxComponent, ColumnConstraintsService, CurrencyComponent, CustomVirtualScrollStrategy, DATA_TYPES, DATETIME_FORMATS, DATE_FORMATS, DateComponent, DatetimeComponent, DurationComponent, EmailComponent, EruGridComponent, EruGridService, EruGridStore, INHERITED_FIELD_KEYS, LocationComponent, MATERIAL_MODULES, MATERIAL_PROVIDERS, MONTH_SHORT_NAMES, NumberComponent, PRESET_CONFIG_DEFAULTS, PRESET_MANAGED_FIELDS, PeopleComponent, PhoneComponent, PriorityComponent, ProgressComponent, RatingComponent, SelectComponent, StatusComponent, TagComponent, TextareaComponent, TextboxComponent, ThemeService, ThemeToggleComponent, WebsiteComponent, evaluateRowCondition, formatDateWithPattern, matchColorRange, normalizeDatatype, normalizeDateFormat, normalizeDateTimeFormat, parseDateWithPattern, resolveRowValue, statusPillColors };
3144
- export type { ActionClick, AggregationFunction, AttachmentConfig, BoardCardContext, CellValueChange, ColorRangeBand, ColumnReorder, ColumnResize, ColumnWidthConstraints, CurrencyValidationResult, DataTypes, Drilldown, DurationValue, DynamicDataRequest, EmailValidationResult, ExcelDownloadPayload, ExcelDownloadRequest, Field, GridAction, GridConfiguration, GridFeatures, GridMode, GridPreset, GridStyles, GridTokens, GroupItem$1 as GroupItem, LocationConfig, LocationValidationResult, NumberValidationResult, PeopleOption, PersonCardContext, PivotColumnGroupState, PivotColumnHeader, PivotColumnKind, PivotConfiguration, PivotHeaderStructure, PivotMetadata, PivotResult, PivotRow, PivotRowKind, RatingConfig, Row, RowDataRequest, RowDataResponse, RowGrandTotal, RowGroup, ServerValidationNotice, StatusPillColors, TextareaValidationResult, TextboxValidationResult, Theme, WebsiteValidationResult };
3171
+ export { AttachmentComponent, CheckboxComponent, ColumnConstraintsService, CurrencyComponent, CustomVirtualScrollStrategy, DATA_TYPES, DATETIME_FORMATS, DATE_FORMATS, DateComponent, DatetimeComponent, DurationComponent, EmailComponent, EruGridComponent, EruGridService, EruGridStore, INHERITED_FIELD_KEYS, LocationComponent, MATERIAL_MODULES, MATERIAL_PROVIDERS, MONTH_SHORT_NAMES, NumberComponent, PRESET_CONFIG_DEFAULTS, PRESET_MANAGED_FIELDS, PeopleComponent, PhoneComponent, PriorityComponent, ProgressComponent, RatingComponent, SelectComponent, StatusComponent, TagComponent, TextareaComponent, TextboxComponent, ThemeService, ThemeToggleComponent, WebsiteComponent, evaluateRowCondition, formatDateWithPattern, matchColorRange, normalizeDatatype, normalizeDateFormat, normalizeDateTimeFormat, parseDateWithPattern, resolveRowValue, statusPillColors, tagPillColors };
3172
+ export type { ActionClick, AggregationFunction, AttachmentConfig, BoardCardContext, CellValueChange, ColorRangeBand, ColumnReorder, ColumnResize, ColumnWidthConstraints, CurrencyValidationResult, DataTypes, Drilldown, DurationValue, DynamicDataRequest, EmailValidationResult, ExcelDownloadPayload, ExcelDownloadRequest, Field, GridAction, GridConfiguration, GridFeatures, GridMode, GridPreset, GridStyles, GridTokens, GroupItem$1 as GroupItem, LocationConfig, LocationValidationResult, NumberValidationResult, PeopleOption, PersonCardContext, PivotColumnGroupState, PivotColumnHeader, PivotColumnKind, PivotConfiguration, PivotHeaderStructure, PivotMetadata, PivotResult, PivotRow, PivotRowKind, RatingConfig, Row, RowDataRequest, RowDataResponse, RowGrandTotal, RowGroup, ServerValidationNotice, StatusPillColors, TagPillColors, TextareaValidationResult, TextboxValidationResult, Theme, WebsiteValidationResult };