@gitlab/ui 66.10.1 → 66.12.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,3 +1,17 @@
1
+ # [66.12.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v66.11.0...v66.12.0) (2023-09-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * **GlTable:** Add option for sticky table headers ([68f814d](https://gitlab.com/gitlab-org/gitlab-ui/commit/68f814da649d7d353232bd7ca0900614ccb41325))
7
+
8
+ # [66.11.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v66.10.1...v66.11.0) (2023-09-20)
9
+
10
+
11
+ ### Features
12
+
13
+ * **Avatar:** Use font size scale ([9b64e96](https://gitlab.com/gitlab-org/gitlab-ui/commit/9b64e96c2d283d73330c89f91a6066886dd3c4cf))
14
+
1
15
  ## [66.10.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v66.10.0...v66.10.1) (2023-09-19)
2
16
 
3
17
 
@@ -26,11 +26,19 @@ var script = {
26
26
  type: Array,
27
27
  required: false,
28
28
  default: null
29
+ },
30
+ stickyHeader: {
31
+ type: Boolean,
32
+ default: false,
33
+ required: false
29
34
  }
30
35
  },
31
36
  computed: {
37
+ stickyHeaderClass() {
38
+ return this.stickyHeader ? 'gl-table--sticky-header' : null;
39
+ },
32
40
  localTableClass() {
33
- return ['gl-table', this.tableClass];
41
+ return ['gl-table', this.tableClass, this.stickyHeaderClass];
34
42
  }
35
43
  },
36
44
  mounted() {
@@ -16,11 +16,19 @@ var script = {
16
16
  type: Array,
17
17
  required: false,
18
18
  default: null
19
+ },
20
+ stickyHeader: {
21
+ type: Boolean,
22
+ default: false,
23
+ required: false
19
24
  }
20
25
  },
21
26
  computed: {
27
+ stickyHeaderClass() {
28
+ return this.stickyHeader ? 'gl-table--sticky-header' : null;
29
+ },
22
30
  localTableClass() {
23
- return ['gl-table', this.tableClass];
31
+ return ['gl-table', this.tableClass, this.stickyHeaderClass];
24
32
  }
25
33
  }
26
34
  };