@coolon/angular-ui-powerups 16.1.0-alpha.340 → 16.1.0-alpha.341

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.
Files changed (2) hide show
  1. package/assets/table.scss +21 -5
  2. package/package.json +1 -1
package/assets/table.scss CHANGED
@@ -1,5 +1,18 @@
1
1
  @use '@angular/material' as mat;
2
2
 
3
+ // The hairline on the inner side of a cell kept in view, the full height of its cell, [offset] in from
4
+ // its [edge] (left or right).
5
+ @mixin kept-in-view-rule($edge, $offset: 0) {
6
+ content: '';
7
+ position: absolute;
8
+ top: 0;
9
+ bottom: 0;
10
+ #{$edge}: $offset;
11
+ width: 1px;
12
+ background: var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));
13
+ pointer-events: none;
14
+ }
15
+
3
16
  :root {
4
17
  --aup-table-column-gap: var(--default-padding, 16px); // material design table column padding
5
18
  --aup-table-row-selected-background-color: rgba(0, 0, 255, 0.04);
@@ -120,15 +133,18 @@
120
133
  container-type: scroll-state;
121
134
 
122
135
  // While the cell holds at an edge, a rule on its inner side marks where the other columns pass under it.
123
- // A browser without scroll-state queries shows the cell without the rule.
136
+ // A browser without scroll-state queries shows the cell without the rule. A container query styles only
137
+ // what is inside the cell, so the rule hangs off the cell's content but is placed against the cell itself,
138
+ // which as a sticky box holds it, and so runs the row's full height. Drawn on the content, it used to stop
139
+ // where the content did: a row as tall as its tallest cell left the rule short in every other one.
124
140
  @container scroll-state(stuck: left) {
125
- > aup-table-cell, > aup-table-header-cell {
126
- box-shadow: inset -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));
141
+ > aup-table-cell::after, > aup-table-header-cell::after {
142
+ @include kept-in-view-rule(right);
127
143
  }
128
144
  }
129
145
  @container scroll-state(stuck: right) {
130
- > aup-table-cell, > aup-table-header-cell {
131
- box-shadow: inset 1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));
146
+ > aup-table-cell::after, > aup-table-header-cell::after {
147
+ @include kept-in-view-rule(left);
132
148
  }
133
149
  }
134
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.340",
3
+ "version": "16.1.0-alpha.341",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",