eru-grid 0.0.38 → 0.0.39
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/fesm2022/eru-grid.mjs +262 -8
- package/fesm2022/eru-grid.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eru-grid.d.ts +42 -2
package/package.json
CHANGED
package/types/eru-grid.d.ts
CHANGED
|
@@ -756,6 +756,14 @@ declare class EruGridStore {
|
|
|
756
756
|
reorderColumns(fromIndex: number, toIndex: number): void;
|
|
757
757
|
updateColumnRequired(columnName: string, required: boolean): void;
|
|
758
758
|
updateColumnMeta(columnName: string, patch: Partial<Field>): void;
|
|
759
|
+
/**
|
|
760
|
+
* Apply metadata resolved from a mapped entity field. Unlike
|
|
761
|
+
* updateColumnMeta this does NOT emit a columnMetaPatch, so the consumer
|
|
762
|
+
* never persists the resolved values — only the mapping itself
|
|
763
|
+
* (entity_name / field_name) is stored, and the data model stays the single
|
|
764
|
+
* source of truth on every reload.
|
|
765
|
+
*/
|
|
766
|
+
applyResolvedColumnMeta(columnName: string, patch: Partial<Field>): void;
|
|
759
767
|
selectDesignColumn(columnName: string | null): void;
|
|
760
768
|
updateColumnWidth(columnName: string, field_size: number): void;
|
|
761
769
|
setCellValueChange(change: CellValueChange): void;
|
|
@@ -1123,7 +1131,17 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
1123
1131
|
* Default: 0 (cards stacked flush).
|
|
1124
1132
|
*/
|
|
1125
1133
|
boardCardGap: number;
|
|
1126
|
-
/**
|
|
1134
|
+
/**
|
|
1135
|
+
* Gutter in pixels between a board card and the edge of its slot, applied
|
|
1136
|
+
* equally on all four sides. It sits outside the card, so the column surface
|
|
1137
|
+
* shows through it. Added around boardCardHeight rather than taken out of it,
|
|
1138
|
+
* so the card still renders at exactly the height that was configured.
|
|
1139
|
+
* Default: 8.
|
|
1140
|
+
*/
|
|
1141
|
+
boardCardPadding: number;
|
|
1142
|
+
/** Outer size of a board card slot = card height + the gutter on both sides. */
|
|
1143
|
+
get boardCardOuterHeight(): number;
|
|
1144
|
+
/** Total slot size per board card = outer height + gap. Drives CDK itemSize. */
|
|
1127
1145
|
get boardCardSlot(): number;
|
|
1128
1146
|
/**
|
|
1129
1147
|
* Fires when a user clicks a row (table mode) or card (board mode).
|
|
@@ -1328,8 +1346,30 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
1328
1346
|
/** Add a field from dropdown — defaults to asc */
|
|
1329
1347
|
onBoardSortFieldSelect(column: Field): void;
|
|
1330
1348
|
onBoardSortClear(): void;
|
|
1349
|
+
/**
|
|
1350
|
+
* Attributes a mapped column inherits from its data-model field. Only keys
|
|
1351
|
+
* the field actually defines are returned, so a sparse field never blanks
|
|
1352
|
+
* out what the column already has.
|
|
1353
|
+
*/
|
|
1354
|
+
private buildMappedColumnPatch;
|
|
1331
1355
|
/** Get the field name used for grouping */
|
|
1332
1356
|
groupByField: _angular_core.Signal<string | null>;
|
|
1357
|
+
/**
|
|
1358
|
+
* Column config of the group-by field. Taken from the store's raw columns
|
|
1359
|
+
* rather than displayColumns, which deliberately drops the grouped column.
|
|
1360
|
+
* Board column headers need it to render the group value through the same
|
|
1361
|
+
* cell renderer a data cell would use, so the datatype formats itself.
|
|
1362
|
+
*/
|
|
1363
|
+
readonly groupByColumn: _angular_core.Signal<Field | null>;
|
|
1364
|
+
/** True when the grouped field carries its own colour-coded values. */
|
|
1365
|
+
readonly isGroupByColorCoded: _angular_core.Signal<boolean>;
|
|
1366
|
+
/**
|
|
1367
|
+
* Accent colour for a board column, resolved from the grouped field's own
|
|
1368
|
+
* value list (status open/close entries, or tag options). Null when the
|
|
1369
|
+
* field is not colour-coded or the value has no colour, so the column keeps
|
|
1370
|
+
* its default chrome.
|
|
1371
|
+
*/
|
|
1372
|
+
boardGroupColor(group: RowGroup): string | null;
|
|
1333
1373
|
/** Toggle sort direction on the group field (asc ↔ desc, never remove) */
|
|
1334
1374
|
onGroupSortToggle(event: Event, direction: 'asc' | 'desc'): void;
|
|
1335
1375
|
/**
|
|
@@ -1470,7 +1510,7 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
1470
1510
|
requestBoardRowsForGroup(group: RowGroup): void;
|
|
1471
1511
|
loadBoardAll(): void;
|
|
1472
1512
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EruGridComponent, never>;
|
|
1473
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EruGridComponent, "eru-grid", never, { "gridConfig": { "alias": "gridConfig"; "required": false; }; "boardCardTemplate": { "alias": "boardCardTemplate"; "required": false; }; "boardCardHeight": { "alias": "boardCardHeight"; "required": false; }; "boardCardGap": { "alias": "boardCardGap"; "required": false; }; }, { "rowSelect": "rowSelect"; }, never, never, true, never>;
|
|
1513
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EruGridComponent, "eru-grid", never, { "gridConfig": { "alias": "gridConfig"; "required": false; }; "boardCardTemplate": { "alias": "boardCardTemplate"; "required": false; }; "boardCardHeight": { "alias": "boardCardHeight"; "required": false; }; "boardCardGap": { "alias": "boardCardGap"; "required": false; }; "boardCardPadding": { "alias": "boardCardPadding"; "required": false; }; }, { "rowSelect": "rowSelect"; }, never, never, true, never>;
|
|
1474
1514
|
}
|
|
1475
1515
|
interface GroupItem {
|
|
1476
1516
|
type: 'header' | 'row' | 'table-header' | 'row-place-holder' | 'ghost-loading';
|