@one-grid-core/angular 0.5.3 → 0.5.4

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.
@@ -37,6 +37,7 @@ export declare class OneGridRowActionComponent<T> implements OnInit {
37
37
  protected detailActiveExcludeLevels: Set<number>;
38
38
  protected gotoDetailExcludeLevels: Set<number>;
39
39
  protected addNewExcludeLevels: Set<number>;
40
+ protected gotoListExcludeLevels: Set<number>;
40
41
  /**
41
42
  * Accessible names for the action buttons.
42
43
  *
@@ -98,6 +98,7 @@ export interface OneCellRendererParams<T = any> {
98
98
  copyButtonStatus?: OneCellStatus;
99
99
  deleteButtonStatus?: OneCellStatus;
100
100
  gotoListButtonStatus?: OneCellStatus;
101
+ gotoListExcludeLevels?: number[];
101
102
  optionButtonStatus?: OneCellStatus;
102
103
  languageButtonStatus?: OneCellStatus;
103
104
  editButtonStatus?: OneCellStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@one-grid-core/angular",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "OneGrid — a feature-rich Angular data grid component with tree data, master/detail, editing, selection, pagination, and virtual scrolling.",
5
5
  "keywords": [
6
6
  "angular",
@@ -57,9 +57,22 @@ $row-drag-indicator-size: 2px !default;
57
57
 
58
58
  // Master / detail
59
59
  //
60
- // The detail area is a continuation of the row that opened it, so it sits
61
- // flush by default. Set this to inset it.
62
- $detail-padding: 0 !default;
60
+ // The inset around a detail row's nested grid one step of the spacing scale
61
+ // (the same 8px as `$cell-item-space`, declared literally because that
62
+ // variable comes later in this file).
63
+ //
64
+ // A gap this size is what separates the nested grid from the master rows above
65
+ // and below it without turning it into a card: it reads as content belonging
66
+ // to its row, and the left inset indents it the way nesting is read everywhere
67
+ // else in the grid. Anything larger starts to float; anything smaller stops
68
+ // registering as deliberate.
69
+ //
70
+ // It costs height. `node.detailRowHeight` is the nested grid's own height, and
71
+ // the block around it is that plus this inset top and bottom, which the body's
72
+ // fixed-`itemSize` virtual scroller cannot see — the same drift an expanded
73
+ // row already causes, 2 × this larger. Set it to `0` for a flush detail area
74
+ // that adds nothing at all.
75
+ $detail-padding: 8px !default;
63
76
 
64
77
  // Cell
65
78
  $cell-height: 30px !default;
@@ -531,17 +544,18 @@ $_og-defaults: (
531
544
  outline-offset: -2px;
532
545
  }
533
546
 
534
- // A detail row is a continuation of the master row above it, not a
535
- // card floating inside the grid, so it sits flush: its left edge
536
- // lines up with the master grid's and it occupies exactly the
537
- // height the API reserved.
547
+ // A detail row belongs to the master row above it, so it is inset
548
+ // rather than boxed: `detail-padding` all round separates it from
549
+ // the rows either side and indents it, and the body background
550
+ // shows through the gap instead of a border or a card surface.
538
551
  //
539
- // That reserved height is the reason the default is 0 rather than
540
- // a taste call. `node.detailRowHeight` is what the grid computes
541
- // for an open row, and the body's virtual-scroll viewport is
542
- // configured with a single fixed `itemSize` any padding here is
543
- // height the scroller cannot see, so it becomes scroll drift on
544
- // top of the drift an expanded row already causes.
552
+ // The inset is the only height this box adds. The nested grid
553
+ // keeps exactly the height the API reserved for it — padding is
554
+ // never taken out of it, which would clip its last row — so the
555
+ // block is `node.detailRowHeight` plus the inset top and bottom.
556
+ // The body's virtual-scroll viewport runs on a single fixed
557
+ // `itemSize` and cannot see any of it; `--one-grid-detail-padding: 0`
558
+ // restores a flush detail area that adds nothing beyond the grid.
545
559
  //
546
560
  // `height: inherit` used to sit here. It resolved to `auto`, since
547
561
  // that is the content wrapper's computed height, so it never did