@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.
- package/README.md +1 -1
- package/esm2022/lib/components/one-grid-row-action/one-grid-row-action.component.mjs +14 -8
- package/esm2022/lib/core/models/one-column-def-types.model.mjs +1 -1
- package/fesm2022/one-grid-core-angular.mjs +13 -7
- package/fesm2022/one-grid-core-angular.mjs.map +1 -1
- package/lib/components/one-grid-row-action/one-grid-row-action.component.d.ts +1 -0
- package/lib/core/models/one-column-def-types.model.d.ts +1 -0
- package/package.json +1 -1
- package/scss/_one-grid.scss +27 -13
|
@@ -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
|
+
"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",
|
package/scss/_one-grid.scss
CHANGED
|
@@ -57,9 +57,22 @@ $row-drag-indicator-size: 2px !default;
|
|
|
57
57
|
|
|
58
58
|
// Master / detail
|
|
59
59
|
//
|
|
60
|
-
// The
|
|
61
|
-
//
|
|
62
|
-
|
|
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
|
|
535
|
-
//
|
|
536
|
-
//
|
|
537
|
-
//
|
|
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
|
-
//
|
|
540
|
-
//
|
|
541
|
-
//
|
|
542
|
-
//
|
|
543
|
-
//
|
|
544
|
-
//
|
|
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
|