@akcelik/strct 2.0.1 → 3.1.0

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": "@akcelik/strct",
3
- "version": "2.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "UIStruct — a standalone Angular component library with a tokenised, multi-palette theme system, built for datacenter / infrastructure management UIs.",
5
5
  "author": "Serkan Akcelik <serkan.akcelik@gmail.com>",
6
6
  "license": "MIT",
@@ -29,11 +29,11 @@
29
29
  "uistruct"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@angular/common": "^21.2.0",
33
- "@angular/core": "^21.2.0",
34
- "@angular/forms": "^21.2.0",
35
- "@angular/platform-browser": "^21.2.0",
36
- "@angular/router": "^21.2.0"
32
+ "@angular/common": "^22.0.0",
33
+ "@angular/core": "^22.0.0",
34
+ "@angular/forms": "^22.0.0",
35
+ "@angular/platform-browser": "^22.0.0",
36
+ "@angular/router": "^22.0.0"
37
37
  },
38
38
  "dependencies": {
39
39
  "tslib": "^2.3.0"
@@ -3155,7 +3155,8 @@ declare class StrctDatagridActionBar {
3155
3155
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StrctDatagridActionBar, "[strctDatagridActionBar]", never, {}, {}, never, never, true, never>;
3156
3156
  }
3157
3157
  /**
3158
- * Interactive data table: sortable columns, row selection, expandable detail
3158
+ * Interactive data table: sortable columns, row selection (Shift-click a row
3159
+ * checkbox to carry its new state across a whole block), expandable detail
3159
3160
  * rows, a batch action bar and built-in paging.
3160
3161
  * <strct-datagrid [columns]="cols" [rows]="data" selectable expandable [pageSize]="10">
3161
3162
  * <button strct-button strctDatagridActions size="sm">Migrate</button>
@@ -3518,6 +3519,19 @@ declare class StrctDatagrid {
3518
3519
  protected isSelected(row: StrctRow): boolean;
3519
3520
  protected isExpanded(row: StrctRow): boolean;
3520
3521
  toggleExpand(row: StrctRow): void;
3522
+ /** The row a Shift-click measures its range from: the last one toggled on
3523
+ * its own. A range leaves it where it is, so successive Shift-clicks
3524
+ * re-project from the same origin instead of walking the anchor along. */
3525
+ private rangeAnchor;
3526
+ /** Set by the row checkbox's click, consumed by the `toggleRow` that the
3527
+ * same interaction fires immediately after. */
3528
+ private rangeIntent;
3529
+ protected noteRangeIntent(event: MouseEvent): void;
3530
+ /**
3531
+ * Toggle one row. Shift-clicking a row checkbox instead applies the clicked
3532
+ * box's new state across every row between the anchor and this one — so a
3533
+ * Shift-click selects a block, and Shift-clicking a checked box clears one.
3534
+ */
3521
3535
  toggleRow(row: StrctRow): void;
3522
3536
  toggleAll(): void;
3523
3537
  clearSelection(): void;