@gitlab/ui 112.1.0 → 112.1.2
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 +14 -0
- package/dist/components/charts/line/line.js +11 -7
- package/dist/components/charts/stacked_column/stacked_column.js +9 -6
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/src/components/base/label/label.scss +1 -1
- package/src/components/charts/line/line.vue +9 -6
- package/src/components/charts/stacked_column/stacked_column.vue +7 -4
- package/src/index.js +0 -1
- package/src/vendor/bootstrap-vue/src/components/collapse/package.json +0 -3
- package/dist/directives/collapse_toggle.js +0 -1
- package/dist/vendor/bootstrap-vue/src/directives/toggle/index.js +0 -1
- package/dist/vendor/bootstrap-vue/src/directives/toggle/toggle.js +0 -253
- package/src/directives/collapse_toggle.js +0 -1
- package/src/vendor/bootstrap-vue/src/directives/toggle/README.md +0 -145
- package/src/vendor/bootstrap-vue/src/directives/toggle/index.js +0 -3
- package/src/vendor/bootstrap-vue/src/directives/toggle/package.json +0 -26
- package/src/vendor/bootstrap-vue/src/directives/toggle/toggle.js +0 -274
- package/src/vendor/bootstrap-vue/src/directives/toggle/toggle.spec.js +0 -452
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [112.1.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.1.1...v112.1.2) (2025-04-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **GlTooltip:** use feedback.strong.text.color for tooltip scoped label ([25784e3](https://gitlab.com/gitlab-org/gitlab-ui/commit/25784e36f8859fe05555f4fa8c44c4196c783a25))
|
|
7
|
+
|
|
8
|
+
## [112.1.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.1.0...v112.1.1) (2025-04-03)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **GlLineChart, GlStackedColumn:** Legend is updated on changes ([dabba78](https://gitlab.com/gitlab-org/gitlab-ui/commit/dabba7878e8cd7702bab88312983c4f03db20d04))
|
|
14
|
+
|
|
1
15
|
# [112.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.0.1...v112.1.0) (2025-04-02)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -102,6 +102,7 @@ var script = {
|
|
|
102
102
|
// https://gitlab.com/gitlab-org/gitlab-ui/-/issues/618
|
|
103
103
|
return {
|
|
104
104
|
chart: null,
|
|
105
|
+
compiledOptions: null,
|
|
105
106
|
showAnnotationsTooltip: false,
|
|
106
107
|
annotationsTooltipTitle: '',
|
|
107
108
|
annotationsTooltipContent: '',
|
|
@@ -182,25 +183,25 @@ var script = {
|
|
|
182
183
|
shouldShowAnnotationsTooltip() {
|
|
183
184
|
return this.chart && this.hasAnnotations;
|
|
184
185
|
},
|
|
185
|
-
compiledOptions() {
|
|
186
|
-
return this.chart ? this.chart.getOption() : null;
|
|
187
|
-
},
|
|
188
186
|
legendStyle() {
|
|
189
187
|
return {
|
|
190
188
|
paddingLeft: `${grid.left}px`
|
|
191
189
|
};
|
|
192
190
|
},
|
|
193
191
|
hasLegend() {
|
|
194
|
-
return this.
|
|
192
|
+
return this.showLegend && this.compiledOptions;
|
|
195
193
|
},
|
|
196
194
|
seriesInfo() {
|
|
197
|
-
|
|
195
|
+
var _this$compiledOptions;
|
|
196
|
+
const compiledSeries = ((_this$compiledOptions = this.compiledOptions) === null || _this$compiledOptions === void 0 ? void 0 : _this$compiledOptions.series) || [];
|
|
197
|
+
return compiledSeries.reduce((acc, series, index) => {
|
|
198
198
|
if (series.type === 'line') {
|
|
199
|
+
var _series$data;
|
|
199
200
|
acc.push({
|
|
200
201
|
name: series.name,
|
|
201
202
|
type: series.lineStyle.type,
|
|
202
203
|
color: series.lineStyle.color || colorFromDefaultPalette(index),
|
|
203
|
-
data: this.includeLegendAvgMax ? series.data.map(data => data[1]) : undefined
|
|
204
|
+
data: this.includeLegendAvgMax ? (_series$data = series.data) === null || _series$data === void 0 ? void 0 : _series$data.map(data => data[1]) : undefined
|
|
204
205
|
});
|
|
205
206
|
}
|
|
206
207
|
return acc;
|
|
@@ -240,6 +241,9 @@ var script = {
|
|
|
240
241
|
this.chart = chart;
|
|
241
242
|
this.$emit('created', chart);
|
|
242
243
|
},
|
|
244
|
+
onUpdated() {
|
|
245
|
+
this.compiledOptions = this.chart.getOption();
|
|
246
|
+
},
|
|
243
247
|
onChartDataPointMouseOut() {
|
|
244
248
|
this.showAnnotationsTooltip = false;
|
|
245
249
|
},
|
|
@@ -276,7 +280,7 @@ const __vue_script__ = script;
|
|
|
276
280
|
/* template */
|
|
277
281
|
var __vue_render__ = function () {
|
|
278
282
|
var _obj;
|
|
279
|
-
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-relative",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-grow': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.options},on:{"created":_vm.onCreated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.shouldShowAnnotationsTooltip)?_c('chart-tooltip',{ref:"annotationsTooltip",attrs:{"id":"annotationsTooltip","show":_vm.showAnnotationsTooltip,"chart":_vm.chart,"top":_vm.annotationsTooltipPosition.top,"left":_vm.annotationsTooltipPosition.left,"placement":"bottom"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipTitle))])]},proxy:true}],null,false,1889294429)},[_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipContent))])]):_vm._e(),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{ref:"dataTooltip",attrs:{"chart":_vm.chart,"use-default-tooltip-formatter":!_vm.formatTooltipText},scopedSlots:_vm._u([(_vm.$scopedSlots['tooltip-title'])?{key:"title",fn:function(scope){return [_vm._t("tooltip-title",null,null,scope)]}}:null,(_vm.$scopedSlots['tooltip-content'])?{key:"default",fn:function(scope){return [_vm._t("tooltip-content",null,null,scope)]}}:null,(_vm.$scopedSlots['tooltip-value'])?{key:"tooltip-value",fn:function(scope){return [_vm._t("tooltip-value",null,null,scope)]}}:null],null,true)}):_vm._e(),_vm._v(" "),(_vm.hasLegend)?_c('chart-legend',{style:(_vm.legendStyle),attrs:{"chart":_vm.chart,"series-info":_vm.seriesInfo,"text-style":_vm.compiledOptions.textStyle,"min-text":_vm.legendMinText,"max-text":_vm.legendMaxText,"average-text":_vm.legendAverageText,"current-text":_vm.legendCurrentText,"layout":_vm.legendLayout}}):_vm._e()],1)};
|
|
283
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-relative",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-grow': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.options},on:{"created":_vm.onCreated,"updated":_vm.onUpdated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.shouldShowAnnotationsTooltip)?_c('chart-tooltip',{ref:"annotationsTooltip",attrs:{"id":"annotationsTooltip","show":_vm.showAnnotationsTooltip,"chart":_vm.chart,"top":_vm.annotationsTooltipPosition.top,"left":_vm.annotationsTooltipPosition.left,"placement":"bottom"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipTitle))])]},proxy:true}],null,false,1889294429)},[_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipContent))])]):_vm._e(),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{ref:"dataTooltip",attrs:{"chart":_vm.chart,"use-default-tooltip-formatter":!_vm.formatTooltipText},scopedSlots:_vm._u([(_vm.$scopedSlots['tooltip-title'])?{key:"title",fn:function(scope){return [_vm._t("tooltip-title",null,null,scope)]}}:null,(_vm.$scopedSlots['tooltip-content'])?{key:"default",fn:function(scope){return [_vm._t("tooltip-content",null,null,scope)]}}:null,(_vm.$scopedSlots['tooltip-value'])?{key:"tooltip-value",fn:function(scope){return [_vm._t("tooltip-value",null,null,scope)]}}:null],null,true)}):_vm._e(),_vm._v(" "),(_vm.hasLegend)?_c('chart-legend',{style:(_vm.legendStyle),attrs:{"chart":_vm.chart,"series-info":_vm.seriesInfo,"text-style":_vm.compiledOptions.textStyle,"min-text":_vm.legendMinText,"max-text":_vm.legendMaxText,"average-text":_vm.legendAverageText,"current-text":_vm.legendCurrentText,"layout":_vm.legendLayout}}):_vm._e()],1)};
|
|
280
284
|
var __vue_staticRenderFns__ = [];
|
|
281
285
|
|
|
282
286
|
/* style */
|
|
@@ -139,7 +139,8 @@ var script = {
|
|
|
139
139
|
},
|
|
140
140
|
data() {
|
|
141
141
|
return {
|
|
142
|
-
chart: null
|
|
142
|
+
chart: null,
|
|
143
|
+
compiledOptions: null
|
|
143
144
|
};
|
|
144
145
|
},
|
|
145
146
|
computed: {
|
|
@@ -255,11 +256,10 @@ var script = {
|
|
|
255
256
|
paddingLeft: `${grid.left}px`
|
|
256
257
|
};
|
|
257
258
|
},
|
|
258
|
-
compiledOptions() {
|
|
259
|
-
return this.chart ? this.chart.getOption() : null;
|
|
260
|
-
},
|
|
261
259
|
seriesInfo() {
|
|
262
|
-
|
|
260
|
+
var _this$compiledOptions;
|
|
261
|
+
const compiledSeries = ((_this$compiledOptions = this.compiledOptions) === null || _this$compiledOptions === void 0 ? void 0 : _this$compiledOptions.series) || [];
|
|
262
|
+
return compiledSeries.reduce((acc, series, index) => {
|
|
263
263
|
acc.push({
|
|
264
264
|
name: series.name,
|
|
265
265
|
type: series.type,
|
|
@@ -283,6 +283,9 @@ var script = {
|
|
|
283
283
|
this.chart = chart;
|
|
284
284
|
this.$emit('created', chart);
|
|
285
285
|
},
|
|
286
|
+
onUpdated() {
|
|
287
|
+
this.compiledOptions = this.chart.getOption();
|
|
288
|
+
},
|
|
286
289
|
getTooltipTitle(_ref4) {
|
|
287
290
|
var _options$xAxis, _options$xAxis$;
|
|
288
291
|
let {
|
|
@@ -322,7 +325,7 @@ const __vue_script__ = script;
|
|
|
322
325
|
/* template */
|
|
323
326
|
var __vue_render__ = function () {
|
|
324
327
|
var _obj;
|
|
325
|
-
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-relative",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-grow': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.options},on:{"created":_vm.onCreated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{attrs:{"chart":_vm.chart,"use-default-tooltip-formatter":!_vm.formatTooltipText},scopedSlots:_vm._u([{key:"title",fn:function(scope){return [_vm._t("tooltip-title",function(){return [_vm._v(_vm._s(_vm.getTooltipTitle(scope)))]},null,scope)]}},{key:"default",fn:function(scope){return [_vm._t("tooltip-content",function(){return [_c('tooltip-default-format',{attrs:{"tooltip-content":_vm.getTooltipContent(scope)},scopedSlots:_vm._u([(_vm.$scopedSlots['tooltip-value'])?{key:"tooltip-value",fn:function(valueScope){return [_vm._t("tooltip-value",null,null,valueScope)]}}:null],null,true)})]},null,scope)]}}],null,true)}):_vm._e(),_vm._v(" "),(_vm.compiledOptions)?_c('chart-legend',{style:(_vm.legendStyle),attrs:{"chart":_vm.chart,"series-info":_vm.seriesInfo,"text-style":_vm.compiledOptions.textStyle,"min-text":_vm.legendMinText,"max-text":_vm.legendMaxText,"average-text":_vm.legendAverageText,"current-text":_vm.legendCurrentText,"layout":_vm.legendLayout}}):_vm._e()],1)};
|
|
328
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-relative",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-grow': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.options},on:{"created":_vm.onCreated,"updated":_vm.onUpdated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{attrs:{"chart":_vm.chart,"use-default-tooltip-formatter":!_vm.formatTooltipText},scopedSlots:_vm._u([{key:"title",fn:function(scope){return [_vm._t("tooltip-title",function(){return [_vm._v(_vm._s(_vm.getTooltipTitle(scope)))]},null,scope)]}},{key:"default",fn:function(scope){return [_vm._t("tooltip-content",function(){return [_c('tooltip-default-format',{attrs:{"tooltip-content":_vm.getTooltipContent(scope)},scopedSlots:_vm._u([(_vm.$scopedSlots['tooltip-value'])?{key:"tooltip-value",fn:function(valueScope){return [_vm._t("tooltip-value",null,null,valueScope)]}}:null],null,true)})]},null,scope)]}}],null,true)}):_vm._e(),_vm._v(" "),(_vm.compiledOptions)?_c('chart-legend',{style:(_vm.legendStyle),attrs:{"chart":_vm.chart,"series-info":_vm.seriesInfo,"text-style":_vm.compiledOptions.textStyle,"min-text":_vm.legendMinText,"max-text":_vm.legendMaxText,"average-text":_vm.legendAverageText,"current-text":_vm.legendCurrentText,"layout":_vm.legendLayout}}):_vm._e()],1)};
|
|
326
329
|
var __vue_staticRenderFns__ = [];
|
|
327
330
|
|
|
328
331
|
/* style */
|