eru-grid 0.0.63 → 0.0.65

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.63",
3
+ "version": "0.0.65",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.2",
6
6
  "@angular/core": "^21.1.2",
@@ -287,6 +287,8 @@ interface Field {
287
287
  maxWidth?: number;
288
288
  symbol?: string;
289
289
  symbol_field?: string;
290
+ negative_display?: NegativeDisplay;
291
+ negative_color?: string;
290
292
  options?: any[];
291
293
  option_type?: 'STATIC' | 'API' | 'ENTITY_DATA';
292
294
  entity_name?: string;
@@ -398,6 +400,8 @@ interface Field {
398
400
  mapped_entity?: string;
399
401
  mapped_field?: string;
400
402
  label_overridden?: boolean;
403
+ editable_overridden?: boolean;
404
+ model_editable?: boolean;
401
405
  tool_tip?: string;
402
406
  description?: string;
403
407
  default?: any;
@@ -937,6 +941,8 @@ interface CellValueChange {
937
941
  fieldName: string;
938
942
  rowId: string;
939
943
  row: any;
944
+ entity_ids?: any;
945
+ old_entity_ids?: any;
940
946
  }
941
947
  /**
942
948
  * Template context injected into a custom boardCardTemplate on EruGridComponent.
@@ -1058,6 +1064,10 @@ declare function abbreviationScaleFor(seperator: string | null | undefined): 'la
1058
1064
  * A non-numeric string is returned untouched: the grid shows what the row
1059
1065
  * holds rather than 'NaN'.
1060
1066
  */
1067
+ type NegativeDisplay = 'as_is' | 'colored' | 'colored_abs' | 'parentheses';
1068
+ declare const DEFAULT_NEGATIVE_COLOR = "#d32f2f";
1069
+ declare function negativeColorFor(value: any, cfg: Partial<Field> | null | undefined): string | null;
1070
+ declare function applyNegativeDisplay(text: string, num: number, mode: NegativeDisplay | undefined): string;
1061
1071
  declare function formatNumberValue(value: any, cfg: Partial<Field> | null | undefined, options?: {
1062
1072
  prefix?: string;
1063
1073
  replaceZero?: string;
@@ -1728,6 +1738,7 @@ declare class EruGridStore {
1728
1738
  *
1729
1739
  * Unknown ids are ignored, so a caller can announce a change blindly.
1730
1740
  */
1741
+ findRecord(entityId: string): Row | undefined;
1731
1742
  patchRecord(entityId: string, fields: Record<string, any>): void;
1732
1743
  selectRow(rowId: string): void;
1733
1744
  /** Mark the single active board card (last clicked) for the selected-state highlight. */
@@ -2503,6 +2514,7 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
2503
2514
  * — i.e. no `config.actions` were configured.
2504
2515
  */
2505
2516
  onActionClick(event: Event, row: any, action?: GridAction, mode?: 'table' | 'board', group?: RowGroup): void;
2517
+ private emitActionClick;
2506
2518
  /**
2507
2519
  * Row actions for the action column: blank names discarded, and at most one
2508
2520
  * entry per name.
@@ -3202,6 +3214,7 @@ declare class CurrencyComponent {
3202
3214
  */
3203
3215
  resolvedSymbol: _angular_core.Signal<string>;
3204
3216
  rangeColor: _angular_core.Signal<string | null>;
3217
+ value_color: _angular_core.Signal<string | null>;
3205
3218
  rangeBackground: _angular_core.Signal<string | null>;
3206
3219
  constructor();
3207
3220
  formatNumberSignal: _angular_core.Signal<string>;
@@ -3496,6 +3509,7 @@ declare class NumberComponent {
3496
3509
  * the eru-studio number component so a value paints the same on a page and here.
3497
3510
  */
3498
3511
  rangeColor: _angular_core.Signal<string | null>;
3512
+ value_color: _angular_core.Signal<string | null>;
3499
3513
  rangeBackground: _angular_core.Signal<string | null>;
3500
3514
  constructor();
3501
3515
  formatNumberSignal: _angular_core.Signal<string>;
@@ -3799,6 +3813,7 @@ declare class SelectComponent implements OnInit, AfterViewInit {
3799
3813
  focus: EventEmitter<void>;
3800
3814
  drilldownClick: EventEmitter<any>;
3801
3815
  editModeChange: EventEmitter<boolean>;
3816
+ entityIdsChange: EventEmitter<any>;
3802
3817
  currentValue: _angular_core.WritableSignal<any>;
3803
3818
  searchText: _angular_core.WritableSignal<string>;
3804
3819
  private static readonly OPTIONS_PAGE_SIZE;
@@ -3813,6 +3828,14 @@ declare class SelectComponent implements OnInit, AfterViewInit {
3813
3828
  error: _angular_core.WritableSignal<string>;
3814
3829
  isAllSelected: _angular_core.Signal<boolean>;
3815
3830
  isIndeterminate: _angular_core.Signal<boolean>;
3831
+ readonly entityProxyKey: _angular_core.Signal<string>;
3832
+ private readonly editedEntityIds;
3833
+ private readonly knownEntityLabels;
3834
+ private asList;
3835
+ private rowEntityIds;
3836
+ readonly controlValue: _angular_core.Signal<any>;
3837
+ private entityTextFor;
3838
+ private applyEntitySelection;
3816
3839
  filteredOptions: _angular_core.Signal<{
3817
3840
  value: any;
3818
3841
  label: any;
@@ -3892,7 +3915,7 @@ declare class SelectComponent implements OnInit, AfterViewInit {
3892
3915
  */
3893
3916
  private firstPrimitiveValue;
3894
3917
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectComponent, never>;
3895
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectComponent, "eru-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "isEditable": { "alias": "isEditable"; "required": false; "isSignal": true; }; "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "isDrillable": { "alias": "isDrillable"; "required": false; "isSignal": true; }; "columnWidth": { "alias": "columnWidth"; "required": false; "isSignal": true; }; "fieldSize": { "alias": "fieldSize"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "eruGridStore": { "alias": "eruGridStore"; "required": false; "isSignal": true; }; "row": { "alias": "row"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "blur": "blur"; "focus": "focus"; "drilldownClick": "drilldownClick"; "editModeChange": "editModeChange"; }, never, never, true, never>;
3918
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectComponent, "eru-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "isEditable": { "alias": "isEditable"; "required": false; "isSignal": true; }; "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "isDrillable": { "alias": "isDrillable"; "required": false; "isSignal": true; }; "columnWidth": { "alias": "columnWidth"; "required": false; "isSignal": true; }; "fieldSize": { "alias": "fieldSize"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "eruGridStore": { "alias": "eruGridStore"; "required": false; "isSignal": true; }; "row": { "alias": "row"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "blur": "blur"; "focus": "focus"; "drilldownClick": "drilldownClick"; "editModeChange": "editModeChange"; "entityIdsChange": "entityIdsChange"; }, never, never, true, never>;
3896
3919
  }
3897
3920
 
3898
3921
  declare class StatusComponent implements OnInit {
@@ -4191,5 +4214,5 @@ declare class ThemeToggleComponent {
4191
4214
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThemeToggleComponent, "eru-theme-toggle", never, {}, {}, never, never, true, never>;
4192
4215
  }
4193
4216
 
4194
- export { ACTION_COLUMN_MIN_WIDTH, AttachmentComponent, CELL_RULE_OPERATORS, CheckboxComponent, ChipListComponent, ColumnConstraintsService, CompositeComponent, CurrencyComponent, CustomVirtualScrollStrategy, DATA_TYPES, DATETIME_FORMATS, DATE_FORMATS, DateComponent, DatetimeComponent, DurationComponent, EXPLICITLY_OVERRIDDEN_FIELD_KEYS, EmailComponent, EruGridComponent, EruGridService, EruGridStore, GRID_COLOR_TOKENS, INHERITED_FIELD_KEYS, LocationComponent, MATERIAL_MODULES, MATERIAL_PROVIDERS, MONTH_SHORT_NAMES, NumberComponent, NumericInputDirective, PRESENTATION_DATATYPES, PRESET_CONFIG_DEFAULTS, PRESET_MANAGED_FIELDS, PeopleComponent, PhoneComponent, PriorityComponent, ProgressComponent, RatingComponent, SEEDED_FIELD_KEYS, SELF_COLOURED_DATATYPES, SelectComponent, StatusComponent, TagComponent, TextareaComponent, TextboxComponent, ThemeService, ThemeToggleComponent, WebsiteComponent, abbreviateNumber, abbreviationScaleFor, cellRuleBarPercent, cellRuleMatches, cellRuleToCss, cellStatAlias, cellTextStyleToCss, collectColumnStatRequests, columnCellRules, composeColorValue, effectiveValueDatatype, evaluateRowCondition, formatCellValue, formatDateTimeWithPattern, formatDateWithPattern, formatNumberValue, hasOwnCellRules, matchCellRule, matchColorRange, normalizeCellRender, normalizeDatatype, normalizeDateFormat, normalizeDateTimeFormat, parseCellDate, parseCellDateTime, parseColorValue, parseDateWithPattern, readRowValue, resolveColumnRules, resolveRowValue, resolveStatValue, rowSelectionKey, statusPillColors, tagPillColors, toDateOnlyString, toDateTimeString, toStatusOptionsField };
4195
- export type { ActionClick, AggregationFunction, AttachmentConfig, BoardCardContext, CellFormatRule, CellRender, CellRuleOperator, CellStatRef, CellStatVerb, CellTemplateContext, CellTextStyle, CellValueChange, ChipListItem, ColorRangeBand, ColumnReorder, ColumnResize, ColumnStatRequest, ColumnWidthConstraints, CompositePart, CurrencyValidationResult, DataTypes, Drilldown, DurationValue, DynamicDataRequest, EmailValidationResult, ExcelDownloadPayload, ExcelDownloadRequest, ExcelPivotConfig, Field, GridAction, GridConfiguration, GridFeatures, GridMode, GridPreset, GridStyles, GridTokens, GroupItem$1 as GroupItem, LocationConfig, LocationValidationResult, NumberValidationResult, ParsedColorValue, PeopleOption, PersonCardContext, PivotColumnGroupState, PivotColumnHeader, PivotColumnKind, PivotConfiguration, PivotHeaderStructure, PivotMetadata, PivotResult, PivotRow, PivotRowKind, RatingConfig, RefreshRequest, Row, RowDataRequest, RowDataResponse, RowGrandTotal, RowGroup, ServerValidationNotice, StatusPillColors, TagPillColors, TextareaValidationResult, TextboxValidationResult, Theme, WebsiteValidationResult };
4217
+ export { ACTION_COLUMN_MIN_WIDTH, AttachmentComponent, CELL_RULE_OPERATORS, CheckboxComponent, ChipListComponent, ColumnConstraintsService, CompositeComponent, CurrencyComponent, CustomVirtualScrollStrategy, DATA_TYPES, DATETIME_FORMATS, DATE_FORMATS, DEFAULT_NEGATIVE_COLOR, DateComponent, DatetimeComponent, DurationComponent, EXPLICITLY_OVERRIDDEN_FIELD_KEYS, EmailComponent, EruGridComponent, EruGridService, EruGridStore, GRID_COLOR_TOKENS, INHERITED_FIELD_KEYS, LocationComponent, MATERIAL_MODULES, MATERIAL_PROVIDERS, MONTH_SHORT_NAMES, NumberComponent, NumericInputDirective, PRESENTATION_DATATYPES, PRESET_CONFIG_DEFAULTS, PRESET_MANAGED_FIELDS, PeopleComponent, PhoneComponent, PriorityComponent, ProgressComponent, RatingComponent, SEEDED_FIELD_KEYS, SELF_COLOURED_DATATYPES, SelectComponent, StatusComponent, TagComponent, TextareaComponent, TextboxComponent, ThemeService, ThemeToggleComponent, WebsiteComponent, abbreviateNumber, abbreviationScaleFor, applyNegativeDisplay, cellRuleBarPercent, cellRuleMatches, cellRuleToCss, cellStatAlias, cellTextStyleToCss, collectColumnStatRequests, columnCellRules, composeColorValue, effectiveValueDatatype, evaluateRowCondition, formatCellValue, formatDateTimeWithPattern, formatDateWithPattern, formatNumberValue, hasOwnCellRules, matchCellRule, matchColorRange, negativeColorFor, normalizeCellRender, normalizeDatatype, normalizeDateFormat, normalizeDateTimeFormat, parseCellDate, parseCellDateTime, parseColorValue, parseDateWithPattern, readRowValue, resolveColumnRules, resolveRowValue, resolveStatValue, rowSelectionKey, statusPillColors, tagPillColors, toDateOnlyString, toDateTimeString, toStatusOptionsField };
4218
+ export type { ActionClick, AggregationFunction, AttachmentConfig, BoardCardContext, CellFormatRule, CellRender, CellRuleOperator, CellStatRef, CellStatVerb, CellTemplateContext, CellTextStyle, CellValueChange, ChipListItem, ColorRangeBand, ColumnReorder, ColumnResize, ColumnStatRequest, ColumnWidthConstraints, CompositePart, CurrencyValidationResult, DataTypes, Drilldown, DurationValue, DynamicDataRequest, EmailValidationResult, ExcelDownloadPayload, ExcelDownloadRequest, ExcelPivotConfig, Field, GridAction, GridConfiguration, GridFeatures, GridMode, GridPreset, GridStyles, GridTokens, GroupItem$1 as GroupItem, LocationConfig, LocationValidationResult, NegativeDisplay, NumberValidationResult, ParsedColorValue, PeopleOption, PersonCardContext, PivotColumnGroupState, PivotColumnHeader, PivotColumnKind, PivotConfiguration, PivotHeaderStructure, PivotMetadata, PivotResult, PivotRow, PivotRowKind, RatingConfig, RefreshRequest, Row, RowDataRequest, RowDataResponse, RowGrandTotal, RowGroup, ServerValidationNotice, StatusPillColors, TagPillColors, TextareaValidationResult, TextboxValidationResult, Theme, WebsiteValidationResult };