@gitlab/ui 86.10.1 → 86.11.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,10 @@
1
+ # [86.11.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v86.10.1...v86.11.0) (2024-07-16)
2
+
3
+
4
+ ### Features
5
+
6
+ * **GlSparklineChart:** Add `connectNulls` prop ([61d8a7c](https://gitlab.com/gitlab-org/gitlab-ui/commit/61d8a7cb06f64a7f141ab3795a5e02c843a99a52))
7
+
1
8
  ## [86.10.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v86.10.0...v86.10.1) (2024-07-15)
2
9
 
3
10
 
@@ -78,6 +78,14 @@ var script = {
78
78
  required: false,
79
79
  default: 0,
80
80
  validator: x => x >= 0 && x <= 1
81
+ },
82
+ /**
83
+ * Whether to connect the line across null points.
84
+ */
85
+ connectNulls: {
86
+ type: Boolean,
87
+ required: false,
88
+ default: false
81
89
  }
82
90
  },
83
91
  data() {
@@ -131,7 +139,8 @@ var script = {
131
139
  data,
132
140
  smooth,
133
141
  itemStyle,
134
- showLastYValue
142
+ showLastYValue,
143
+ connectNulls
135
144
  } = this;
136
145
  const markPoint = showLastYValue ? {
137
146
  symbol: 'circle',
@@ -156,7 +165,8 @@ var script = {
156
165
  itemStyle,
157
166
  lineStyle: {
158
167
  cap: 'round'
159
- }
168
+ },
169
+ connectNulls
160
170
  };
161
171
  },
162
172
  itemStyle() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "86.10.1",
3
+ "version": "86.11.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -105,10 +105,10 @@
105
105
  },
106
106
  "devDependencies": {
107
107
  "@arkweid/lefthook": "0.7.7",
108
- "@babel/core": "^7.24.7",
108
+ "@babel/core": "^7.24.8",
109
109
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
110
110
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
111
- "@babel/preset-env": "^7.24.7",
111
+ "@babel/preset-env": "^7.24.8",
112
112
  "@babel/preset-react": "^7.24.7",
113
113
  "@cypress/grep": "^4.0.1",
114
114
  "@gitlab/eslint-plugin": "19.5.0",
@@ -84,6 +84,14 @@ export default {
84
84
  default: 0,
85
85
  validator: (x) => x >= 0 && x <= 1,
86
86
  },
87
+ /**
88
+ * Whether to connect the line across null points.
89
+ */
90
+ connectNulls: {
91
+ type: Boolean,
92
+ required: false,
93
+ default: false,
94
+ },
87
95
  },
88
96
  data() {
89
97
  return {
@@ -132,7 +140,7 @@ export default {
132
140
  return mergeSeriesToOptions(mergedOptions, this.series);
133
141
  },
134
142
  series() {
135
- const { data, smooth, itemStyle, showLastYValue } = this;
143
+ const { data, smooth, itemStyle, showLastYValue, connectNulls } = this;
136
144
  const markPoint = showLastYValue
137
145
  ? {
138
146
  symbol: 'circle',
@@ -159,6 +167,7 @@ export default {
159
167
  smooth,
160
168
  itemStyle,
161
169
  lineStyle: { cap: 'round' },
170
+ connectNulls,
162
171
  };
163
172
  },
164
173
  itemStyle() {