@nxgt/material 3.104.0 → 3.106.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @nxgt/material
2
2
 
3
+ ## 3.106.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2917](https://github.com/softistx/nxgt-material/pull/2917) [`89cc8ce`](https://github.com/softistx/nxgt-material/commit/89cc8cee26365124244a53dd770de8b3be452957) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `DataTable` takes `surface`. `surface="none"` draws the `cards` and `tiles` list without its own surface, so a list inside a page card or a `PanelCard` is no longer a card in a card: the table's fill and padding go, tiles lose the list's border and corners (rows stay split by hairlines) and cards lose their border and fill. Default `'card'`: unchanged.
8
+
9
+ ## 3.105.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#2914](https://github.com/softistx/nxgt-material/pull/2914) [`c572dc6`](https://github.com/softistx/nxgt-material/commit/c572dc6159bbba04d3e00e59e89f4f901346b79c) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Sidebar groups can remember their fold state and hide their badge while open. On a `MenuItem` with `children` and `defaultExpanded`, `persistKey` (a string, or `true` to derive the key from `navigation.persistKey` and the `url`) keeps the expanded or folded choice in this browser, read after hydration like the sidebar's own collapse; `badgeWhen: 'collapsed'` draws the parent's `badge` only while the group is folded. Both are optional and default to the previous behaviour.
14
+
3
15
  ## 3.104.0
4
16
 
5
17
  ### Minor Changes
@@ -13,6 +13,15 @@
13
13
  border: 1px solid var(--item-border);
14
14
  border-radius: var(--item-radius);
15
15
  }
16
+ /* `surface="none"`: no surface of its own, for a list inside a card. The
17
+ * rows keep their hairlines; the tints still mix over the parent. */
18
+ [data-slot="data-table-tiles"][data-surface="none"] {
19
+ --item-surface: transparent;
20
+ margin: 0;
21
+ background: none;
22
+ border: 0;
23
+ border-radius: 0;
24
+ }
16
25
  /* A ServerTable on a phone has no panel of its own: the tile list sits at
17
26
  * the page gutter, in line with the heading (#2292). */
18
27
  @media (max-width: 767.98px) {
@@ -52,6 +61,11 @@
52
61
  border-end-start-radius: calc(var(--item-radius) - 1px);
53
62
  border-end-end-radius: calc(var(--item-radius) - 1px);
54
63
  }
64
+ /* `surface="none"`: no rounded first and last row either. */
65
+ [data-slot="data-table-tiles"][data-surface="none"]
66
+ > [data-slot="data-table-item"] {
67
+ border-radius: 0;
68
+ }
55
69
  [data-slot="data-table-tiles"][data-selectable]
56
70
  > [data-slot="data-table-item"] {
57
71
  padding-inline-start: 3.25rem;
@@ -73,6 +73,12 @@
73
73
  grid-template-columns: repeat(3, minmax(0, 1fr));
74
74
  }
75
75
  }
76
+ /* `surface="none"`: the list sits on its parent, with no padding of the
77
+ * table's own to take the ring room's 4px back from. */
78
+ [data-slot="table-wrapper"]:has(> [data-surface="none"]) {
79
+ margin-inline: 0;
80
+ width: 100% !important;
81
+ }
76
82
  [data-slot="data-table-cards"][data-density="compact"] {
77
83
  gap: var(--nxgt-cards-gap, 0.5rem);
78
84
  }
@@ -120,6 +126,22 @@
120
126
  > [data-slot="data-table-item"] {
121
127
  padding: 0.75rem;
122
128
  }
129
+ /* `surface="none"`: a card draws no border or fill of its own, for a list
130
+ * inside a card. In one column the cards are split by hairlines. */
131
+ [data-slot="data-table-cards"][data-surface="none"] {
132
+ --item-surface: transparent;
133
+ }
134
+ [data-slot="data-table-cards"][data-surface="none"]
135
+ > [data-slot="data-table-item"] {
136
+ border-color: transparent;
137
+ }
138
+ @container (max-width: 35.999rem) {
139
+ [data-slot="data-table-cards"][data-surface="none"]
140
+ > [data-slot="data-table-item"]
141
+ + [data-slot="data-table-item"] {
142
+ border-top-color: var(--item-border);
143
+ }
144
+ }
123
145
  [data-slot="data-table-item"] a[data-slot="data-table-item-link"],
124
146
  [data-slot="data-table-item"] button[data-slot="data-table-item-link"] {
125
147
  color: inherit;