@gitlab/ui 49.2.0 → 49.3.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
+ # [49.3.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.2.1...v49.3.0) (2022-11-03)
2
+
3
+
4
+ ### Features
5
+
6
+ * Relax bootstrap per dependency constraint ([c8fb125](https://gitlab.com/gitlab-org/gitlab-ui/commit/c8fb1254723d8fc6be575fd27c21001d10b95a60))
7
+
8
+ ## [49.2.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.2.0...v49.2.1) (2022-10-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **datepicker:** Render empty string instead of false ([678b225](https://gitlab.com/gitlab-org/gitlab-ui/commit/678b22572edbd306e859d4017055a6041c24eb4f))
14
+
1
15
  # [49.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.1.0...v49.2.0) (2022-10-28)
2
16
 
3
17
 
@@ -179,7 +179,7 @@ var script = {
179
179
  },
180
180
  computed: {
181
181
  formattedDate() {
182
- return 'calendar' in this && this.calendar.toString();
182
+ return 'calendar' in this ? this.calendar.toString() : '';
183
183
  },
184
184
  customTrigger() {
185
185
  return _isString(this.target) && this.target !== '';
@@ -16,6 +16,10 @@ var script = {
16
16
  resizeObserver: GlResizeObserverDirective
17
17
  },
18
18
  props: {
19
+ /**
20
+ * The ECharts configuration object.
21
+ * https://echarts.apache.org/en/option.html#title
22
+ */
19
23
  options: {
20
24
  type: Object,
21
25
  required: true
@@ -42,11 +46,19 @@ var script = {
42
46
  default: null,
43
47
  validator: sizeValidator
44
48
  },
49
+ /**
50
+ * An ECharts group id. Used to connect multiple charts.
51
+ * https://echarts.apache.org/en/api.html#echarts.connect
52
+ */
45
53
  groupId: {
46
54
  type: String,
47
55
  required: false,
48
56
  default: ''
49
57
  },
58
+ /**
59
+ * How the chart should be rendered. Valid options are 'canvas' or 'svg'.
60
+ * https://echarts.apache.org/handbook/en/best-practices/canvas-vs-svg/
61
+ */
50
62
  renderer: {
51
63
  type: String,
52
64
  required: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "49.2.0",
3
+ "version": "49.3.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@gitlab/svgs": "^1.116.0 || ^2.0.0 || ^3.0.0",
69
- "bootstrap": "4.5.3",
69
+ "bootstrap": ">=4.5.3 <=4.6.2",
70
70
  "emoji-regex": ">=10.0.0",
71
71
  "pikaday": "^1.8.0",
72
72
  "vue": "^2.6.10"
@@ -85,14 +85,14 @@
85
85
  "@rollup/plugin-commonjs": "^11.1.0",
86
86
  "@rollup/plugin-node-resolve": "^7.1.3",
87
87
  "@rollup/plugin-replace": "^2.3.2",
88
- "@storybook/addon-a11y": "6.5.12",
89
- "@storybook/addon-docs": "6.5.12",
90
- "@storybook/addon-essentials": "6.5.12",
91
- "@storybook/addon-storyshots": "6.5.12",
92
- "@storybook/addon-storyshots-puppeteer": "6.5.12",
93
- "@storybook/addon-viewport": "6.5.12",
94
- "@storybook/theming": "6.5.12",
95
- "@storybook/vue": "6.5.12",
88
+ "@storybook/addon-a11y": "6.5.13",
89
+ "@storybook/addon-docs": "6.5.13",
90
+ "@storybook/addon-essentials": "6.5.13",
91
+ "@storybook/addon-storyshots": "6.5.13",
92
+ "@storybook/addon-storyshots-puppeteer": "6.5.13",
93
+ "@storybook/addon-viewport": "6.5.13",
94
+ "@storybook/theming": "6.5.13",
95
+ "@storybook/vue": "6.5.13",
96
96
  "@vue/test-utils": "1.3.0",
97
97
  "@vue/vue2-jest": "29.0.0",
98
98
  "autoprefixer": "^9.7.6",
@@ -102,7 +102,7 @@
102
102
  "babel-plugin-require-context-hook": "^1.0.0",
103
103
  "babel-preset-vue": "^2.0.2",
104
104
  "bootstrap": "4.5.3",
105
- "cypress": "^10.10.0",
105
+ "cypress": "^10.11.0",
106
106
  "emoji-regex": "^10.0.0",
107
107
  "eslint": "8.26.0",
108
108
  "eslint-import-resolver-jest": "3.0.2",
@@ -112,9 +112,9 @@
112
112
  "glob": "^7.2.0",
113
113
  "identity-obj-proxy": "^3.0.0",
114
114
  "inquirer-select-directory": "^1.2.0",
115
- "jest": "^29.1.2",
116
- "jest-circus": "29.1.2",
117
- "jest-environment-jsdom": "29.1.2",
115
+ "jest": "^29.2.2",
116
+ "jest-circus": "29.2.2",
117
+ "jest-environment-jsdom": "29.2.2",
118
118
  "jest-serializer-vue": "^2.0.2",
119
119
  "markdownlint-cli": "^0.29.0",
120
120
  "mockdate": "^2.0.5",
@@ -179,7 +179,7 @@ export default {
179
179
  },
180
180
  computed: {
181
181
  formattedDate() {
182
- return 'calendar' in this && this.calendar.toString();
182
+ return 'calendar' in this ? this.calendar.toString() : '';
183
183
  },
184
184
  customTrigger() {
185
185
  return isString(this.target) && this.target !== '';
@@ -2,7 +2,7 @@ import PortalVue from 'portal-vue';
2
2
  import Vue from 'vue';
3
3
  import { GlFilteredSearchSuggestion } from '../../../index';
4
4
  import { provide } from './common_story_options';
5
- import readme from './filtered_search_term.md';
5
+ import readme from './filtered_search_token_segment.md';
6
6
  import GlFilteredSearchTokenSegment from './filtered_search_token_segment.vue';
7
7
 
8
8
  Vue.use(PortalVue);
@@ -1,4 +1,5 @@
1
1
  import { nextTick } from 'vue';
2
+ import { cloneDeep } from 'lodash';
2
3
  import { mount } from '@vue/test-utils';
3
4
  import GlDropdownItem from '../../dropdown/dropdown_item.vue';
4
5
  import GlFormInput from '../form_input/form_input.vue';
@@ -258,8 +259,9 @@ describe('GlFormCombobox', () => {
258
259
  const windowAlert = window.alert;
259
260
 
260
261
  beforeEach(() => {
261
- createComponent({ tokens: oneTokenList, actionList: actionsList });
262
- actionSpy = jest.spyOn(wrapper.vm.actionList[0], 'fn');
262
+ const actionList = cloneDeep(actionsList);
263
+ actionSpy = jest.spyOn(actionList[0], 'fn');
264
+ createComponent({ tokens: oneTokenList, actionList });
263
265
  window.alert = jest.fn();
264
266
  });
265
267
 
@@ -1,8 +1,9 @@
1
1
  ### ECharts Wrapper
2
2
 
3
- The chart component is a Vue component wrapper around [ECharts]. The chart component accepts width
4
- and height props in order to allow the user to make it responsive, but it is not responsive by
5
- default.
3
+ The chart component is a Vue component wrapper around
4
+ [Apache ECharts](https://echarts.apache.org/en/api.html#echarts). The chart component accepts width
5
+ and height props in order to allow the user to make it responsive, but it is not responsive
6
+ by default.
6
7
 
7
8
  > Note: In every case there should be a specific component for each type of chart
8
9
  (i.e. Line, Area, Bar, etc.). This component should only need to be used by chart type components
@@ -15,6 +16,5 @@ This component emits the following events during the ECharts lifecycle:
15
16
  - `created`: emitted after calling `echarts.init`
16
17
  - `updated`: emitted after calling `echarts.setOption`
17
18
 
18
- In all cases, the event payload is the echart instance.
19
-
20
- [echarts]: https://echarts.apache.org
19
+ In all cases, the event payload is the
20
+ [echart instance](https://echarts.apache.org/en/api.html#echartsInstance).
@@ -16,6 +16,10 @@ export default {
16
16
  resizeObserver: GlResizeObserverDirective,
17
17
  },
18
18
  props: {
19
+ /**
20
+ * The ECharts configuration object.
21
+ * https://echarts.apache.org/en/option.html#title
22
+ */
19
23
  options: {
20
24
  type: Object,
21
25
  required: true,
@@ -42,11 +46,19 @@ export default {
42
46
  default: null,
43
47
  validator: sizeValidator,
44
48
  },
49
+ /**
50
+ * An ECharts group id. Used to connect multiple charts.
51
+ * https://echarts.apache.org/en/api.html#echarts.connect
52
+ */
45
53
  groupId: {
46
54
  type: String,
47
55
  required: false,
48
56
  default: '',
49
57
  },
58
+ /**
59
+ * How the chart should be rendered. Valid options are 'canvas' or 'svg'.
60
+ * https://echarts.apache.org/handbook/en/best-practices/canvas-vs-svg/
61
+ */
50
62
  renderer: {
51
63
  type: String,
52
64
  required: false,