@gitlab/ui 111.10.1 → 112.0.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 +22 -0
- package/dist/components/base/toggle/toggle.js +2 -1
- package/dist/components/charts/area/area.js +0 -3
- package/dist/components/charts/bar/bar.js +3 -3
- package/dist/components/charts/column/column.js +1 -4
- package/dist/components/charts/discrete_scatter/discrete_scatter.js +0 -3
- package/dist/components/charts/line/line.js +0 -3
- package/dist/components/charts/stacked_column/stacked_column.js +1 -4
- package/dist/index.js +0 -1
- package/dist/utils/charts/config.js +4 -1
- package/dist/utils/charts/mock_data.js +1 -41
- package/package.json +1 -1
- package/src/components/base/nav/nav.md +0 -5
- package/src/components/base/toggle/toggle.vue +2 -1
- package/src/components/charts/area/area.vue +0 -3
- package/src/components/charts/bar/bar.vue +3 -3
- package/src/components/charts/column/column.vue +0 -3
- package/src/components/charts/discrete_scatter/discrete_scatter.vue +0 -3
- package/src/components/charts/line/line.vue +0 -3
- package/src/components/charts/stacked_column/stacked_column.vue +0 -3
- package/src/index.js +0 -1
- package/src/utils/charts/config.js +3 -0
- package/src/utils/charts/mock_data.js +0 -41
- package/dist/components/base/nav/nav_item_dropdown.js +0 -62
- package/src/components/base/nav/nav_item_dropdown.vue +0 -40
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# [112.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v111.10.2...v112.0.0) (2025-04-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### chore
|
|
5
|
+
|
|
6
|
+
* **GlNavItemDropdown:** Remove component ([b948f97](https://gitlab.com/gitlab-org/gitlab-ui/commit/b948f97142242fd870b4bc60f6d970d9e41d0c20))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **GlNavItemDropdown:** This commit removes the GlNavItemDropdown component.
|
|
12
|
+
|
|
13
|
+
It is not used by any of our projects. Removing it will allow us to
|
|
14
|
+
drop another Bootstrap dependency, BNavItemDropdown.
|
|
15
|
+
|
|
16
|
+
## [111.10.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v111.10.1...v111.10.2) (2025-04-01)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **GlToggle:** Fix label required if slot is used ([c39ca40](https://gitlab.com/gitlab-org/gitlab-ui/commit/c39ca40c6f364f8e73a5d88eb7254c64c65057c4))
|
|
22
|
+
|
|
1
23
|
## [111.10.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v111.10.0...v111.10.1) (2025-03-31)
|
|
2
24
|
|
|
3
25
|
|
|
@@ -52,6 +52,9 @@ const defaultOptions = {
|
|
|
52
52
|
separator: '...'
|
|
53
53
|
})
|
|
54
54
|
}
|
|
55
|
+
},
|
|
56
|
+
legend: {
|
|
57
|
+
show: false
|
|
55
58
|
}
|
|
56
59
|
};
|
|
57
60
|
var script = {
|
|
@@ -146,9 +149,6 @@ var script = {
|
|
|
146
149
|
formatter: this.onLabelChange
|
|
147
150
|
}
|
|
148
151
|
}
|
|
149
|
-
},
|
|
150
|
-
legend: {
|
|
151
|
-
show: false
|
|
152
152
|
}
|
|
153
153
|
}, this.option, dataZoomAdjustments(this.option.dataZoom));
|
|
154
154
|
// All chart options can be merged but series
|
|
@@ -163,10 +163,7 @@ var script = {
|
|
|
163
163
|
...yAxisDefaults,
|
|
164
164
|
name: this.secondaryDataTitle,
|
|
165
165
|
show: this.hasSecondaryAxis
|
|
166
|
-
}] : yAxisPrimary
|
|
167
|
-
legend: {
|
|
168
|
-
show: false
|
|
169
|
-
}
|
|
166
|
+
}] : yAxisPrimary
|
|
170
167
|
}, this.option, dataZoomAdjustments(this.option.dataZoom));
|
|
171
168
|
// All chart options can be merged but series
|
|
172
169
|
// needs to be handled specially
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,6 @@ export { default as GlKeysetPagination } from './components/base/keyset_paginati
|
|
|
4
4
|
export { default as GlInputGroupText } from './components/base/form/input_group_text/input_group_text';
|
|
5
5
|
export { default as GlFormCombobox } from './components/base/form/form_combobox/form_combobox';
|
|
6
6
|
export { default as GlTokenSelector } from './components/base/token_selector/token_selector';
|
|
7
|
-
export { default as GlNavItemDropdown } from './components/base/nav/nav_item_dropdown';
|
|
8
7
|
export { default as GlNav } from './components/base/nav/nav';
|
|
9
8
|
export { default as GlNavItem } from './components/base/nav/nav_item';
|
|
10
9
|
export { default as GlFormCheckboxTree } from './components/base/form/form_checkbox_tree/form_checkbox_tree';
|
|
@@ -21,46 +21,6 @@ const mockDefaultDataZoomConfig = {
|
|
|
21
21
|
nameGap: 67
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
const mockDefaultChartOptions = {
|
|
25
|
-
grid: {
|
|
26
|
-
top: 16,
|
|
27
|
-
bottom: 44,
|
|
28
|
-
left: 64,
|
|
29
|
-
right: 32
|
|
30
|
-
},
|
|
31
|
-
xAxis: {
|
|
32
|
-
name: 'Value',
|
|
33
|
-
type: 'value',
|
|
34
|
-
nameLocation: 'center',
|
|
35
|
-
boundaryGap: false,
|
|
36
|
-
splitLine: {
|
|
37
|
-
show: false
|
|
38
|
-
},
|
|
39
|
-
axisPointer: {
|
|
40
|
-
show: true,
|
|
41
|
-
label: {},
|
|
42
|
-
lineStyle: {
|
|
43
|
-
type: 'solid'
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
yAxis: {
|
|
48
|
-
name: 'Value',
|
|
49
|
-
type: 'value',
|
|
50
|
-
nameLocation: 'center',
|
|
51
|
-
nameGap: 50,
|
|
52
|
-
axisLabel: {},
|
|
53
|
-
axisTick: {
|
|
54
|
-
show: false
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
legend: {
|
|
58
|
-
show: false
|
|
59
|
-
},
|
|
60
|
-
aria: {
|
|
61
|
-
enabled: true
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
24
|
|
|
65
25
|
/**
|
|
66
26
|
* This is currently used in area.stories.js and line.stories.js
|
|
@@ -211,4 +171,4 @@ const mockSecondaryTrendlineData = [{
|
|
|
211
171
|
data: [['Joe', 220], ['Sarah', 392], ['Tom', 291], ['Mary', 594], ['Mike', 320], ['Ben', 230], ['Jane', 120], ['Anne', 290]]
|
|
212
172
|
}];
|
|
213
173
|
|
|
214
|
-
export { mockAnnotationsConfigs, mockAnnotationsSeries, mockDefaultBarChartConfig, mockDefaultBarData,
|
|
174
|
+
export { mockAnnotationsConfigs, mockAnnotationsSeries, mockDefaultBarChartConfig, mockDefaultBarData, mockDefaultDataZoomConfig, mockDefaultLineChartConfig, mockDefaultLineData, mockDefaultStackedBarData, mockDefaultStackedLineData, mockRawBarData, mockSecondaryBarData, mockSecondaryData, mockSecondaryTrendlineData };
|
package/package.json
CHANGED
|
@@ -4,8 +4,3 @@ types of navigation components.
|
|
|
4
4
|
## `GlNavItem`
|
|
5
5
|
|
|
6
6
|
Use `GlNavItem` to add actionable links (or router links) to your nav. `GlNavItem` wraps [`BNavItem`](https://bootstrap-vue.org/docs/components/navbar#b-nav-item).
|
|
7
|
-
|
|
8
|
-
## `GlNavItemDropdown`
|
|
9
|
-
|
|
10
|
-
Use `GlNavItemDropdown` to place dropdown items within your nav.
|
|
11
|
-
`GlNavItemDropdown` wraps [`BNavItemDropdown`](https://bootstrap-vue.org/docs/components/navbar#b-nav-item-dropdown).
|
|
@@ -53,6 +53,9 @@ const defaultOptions = {
|
|
|
53
53
|
}),
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
|
+
legend: {
|
|
57
|
+
show: false,
|
|
58
|
+
},
|
|
56
59
|
};
|
|
57
60
|
|
|
58
61
|
export default {
|
|
@@ -152,9 +155,6 @@ export default {
|
|
|
152
155
|
},
|
|
153
156
|
},
|
|
154
157
|
},
|
|
155
|
-
legend: {
|
|
156
|
-
show: false,
|
|
157
|
-
},
|
|
158
158
|
},
|
|
159
159
|
this.option,
|
|
160
160
|
dataZoomAdjustments(this.option.dataZoom)
|
package/src/index.js
CHANGED
|
@@ -10,7 +10,6 @@ export { default as GlKeysetPagination } from './components/base/keyset_paginati
|
|
|
10
10
|
export { default as GlInputGroupText } from './components/base/form/input_group_text/input_group_text.vue';
|
|
11
11
|
export { default as GlFormCombobox } from './components/base/form/form_combobox/form_combobox.vue';
|
|
12
12
|
export { default as GlTokenSelector } from './components/base/token_selector/token_selector.vue';
|
|
13
|
-
export { default as GlNavItemDropdown } from './components/base/nav/nav_item_dropdown.vue';
|
|
14
13
|
export { default as GlNav } from './components/base/nav/nav.vue';
|
|
15
14
|
export { default as GlNavItem } from './components/base/nav/nav_item.vue';
|
|
16
15
|
export { default as GlFormCheckboxTree } from './components/base/form/form_checkbox_tree/form_checkbox_tree.vue';
|
|
@@ -25,47 +25,6 @@ export const mockDefaultDataZoomConfig = {
|
|
|
25
25
|
},
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
export const mockDefaultChartOptions = {
|
|
29
|
-
grid: {
|
|
30
|
-
top: 16,
|
|
31
|
-
bottom: 44,
|
|
32
|
-
left: 64,
|
|
33
|
-
right: 32,
|
|
34
|
-
},
|
|
35
|
-
xAxis: {
|
|
36
|
-
name: 'Value',
|
|
37
|
-
type: 'value',
|
|
38
|
-
nameLocation: 'center',
|
|
39
|
-
boundaryGap: false,
|
|
40
|
-
splitLine: {
|
|
41
|
-
show: false,
|
|
42
|
-
},
|
|
43
|
-
axisPointer: {
|
|
44
|
-
show: true,
|
|
45
|
-
label: {},
|
|
46
|
-
lineStyle: {
|
|
47
|
-
type: 'solid',
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
yAxis: {
|
|
52
|
-
name: 'Value',
|
|
53
|
-
type: 'value',
|
|
54
|
-
nameLocation: 'center',
|
|
55
|
-
nameGap: 50,
|
|
56
|
-
axisLabel: {},
|
|
57
|
-
axisTick: {
|
|
58
|
-
show: false,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
legend: {
|
|
62
|
-
show: false,
|
|
63
|
-
},
|
|
64
|
-
aria: {
|
|
65
|
-
enabled: true,
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
|
|
69
28
|
/**
|
|
70
29
|
* This is currently used in area.stories.js and line.stories.js
|
|
71
30
|
*/
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { BNavItemDropdown } from '../../../vendor/bootstrap-vue/src/components/nav/nav-item-dropdown';
|
|
2
|
-
import GlIcon from '../icon/icon';
|
|
3
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
4
|
-
|
|
5
|
-
var script = {
|
|
6
|
-
name: 'GlNavItemDropdown',
|
|
7
|
-
components: {
|
|
8
|
-
BNavItemDropdown,
|
|
9
|
-
GlIcon
|
|
10
|
-
},
|
|
11
|
-
inheritAttrs: false,
|
|
12
|
-
props: {
|
|
13
|
-
text: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: false,
|
|
16
|
-
default: ''
|
|
17
|
-
},
|
|
18
|
-
icon: {
|
|
19
|
-
type: String,
|
|
20
|
-
required: false,
|
|
21
|
-
default: ''
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/* script */
|
|
27
|
-
const __vue_script__ = script;
|
|
28
|
-
|
|
29
|
-
/* template */
|
|
30
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-nav-item-dropdown',_vm._g(_vm._b({staticClass:"gl-dropdown",scopedSlots:_vm._u([{key:"default",fn:function(){return [_vm._t("default")]},proxy:true},{key:"button-content",fn:function(){return [_vm._t("button-content",function(){return [(_vm.icon)?_c('gl-icon',{staticClass:"dropdown-icon",attrs:{"name":_vm.icon}}):_vm._e(),_vm._v("\n "+_vm._s(_vm.text)+"\n "),_c('gl-icon',{staticClass:"dropdown-chevron",attrs:{"name":"chevron-down"}})]})]},proxy:true}],null,true)},'b-nav-item-dropdown',_vm.$attrs,false),_vm.$listeners))};
|
|
31
|
-
var __vue_staticRenderFns__ = [];
|
|
32
|
-
|
|
33
|
-
/* style */
|
|
34
|
-
const __vue_inject_styles__ = undefined;
|
|
35
|
-
/* scoped */
|
|
36
|
-
const __vue_scope_id__ = undefined;
|
|
37
|
-
/* module identifier */
|
|
38
|
-
const __vue_module_identifier__ = undefined;
|
|
39
|
-
/* functional template */
|
|
40
|
-
const __vue_is_functional_template__ = false;
|
|
41
|
-
/* style inject */
|
|
42
|
-
|
|
43
|
-
/* style inject SSR */
|
|
44
|
-
|
|
45
|
-
/* style inject shadow dom */
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const __vue_component__ = __vue_normalize__(
|
|
50
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
51
|
-
__vue_inject_styles__,
|
|
52
|
-
__vue_script__,
|
|
53
|
-
__vue_scope_id__,
|
|
54
|
-
__vue_is_functional_template__,
|
|
55
|
-
__vue_module_identifier__,
|
|
56
|
-
false,
|
|
57
|
-
undefined,
|
|
58
|
-
undefined,
|
|
59
|
-
undefined
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
export default __vue_component__;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { BNavItemDropdown } from '../../../vendor/bootstrap-vue/src/components/nav/nav-item-dropdown';
|
|
3
|
-
import GlIcon from '../icon/icon.vue';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
name: 'GlNavItemDropdown',
|
|
7
|
-
components: {
|
|
8
|
-
BNavItemDropdown,
|
|
9
|
-
GlIcon,
|
|
10
|
-
},
|
|
11
|
-
inheritAttrs: false,
|
|
12
|
-
props: {
|
|
13
|
-
text: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: false,
|
|
16
|
-
default: '',
|
|
17
|
-
},
|
|
18
|
-
icon: {
|
|
19
|
-
type: String,
|
|
20
|
-
required: false,
|
|
21
|
-
default: '',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<template>
|
|
28
|
-
<b-nav-item-dropdown class="gl-dropdown" v-bind="$attrs" v-on="$listeners">
|
|
29
|
-
<template #default>
|
|
30
|
-
<slot></slot>
|
|
31
|
-
</template>
|
|
32
|
-
<template #button-content>
|
|
33
|
-
<slot name="button-content">
|
|
34
|
-
<gl-icon v-if="icon" class="dropdown-icon" :name="icon" />
|
|
35
|
-
{{ text }}
|
|
36
|
-
<gl-icon class="dropdown-chevron" name="chevron-down" />
|
|
37
|
-
</slot>
|
|
38
|
-
</template>
|
|
39
|
-
</b-nav-item-dropdown>
|
|
40
|
-
</template>
|