@gitlab/ui 40.2.1 → 40.2.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 +8 -0
- package/dist/components/base/alert/alert.js +1 -0
- package/dist/components/base/avatar/avatar.js +1 -0
- package/dist/components/base/badge/badge.js +1 -0
- package/dist/components/base/breadcrumb/breadcrumb.js +1 -0
- package/dist/components/base/button/button.js +1 -0
- package/dist/components/base/card/card.js +1 -0
- package/dist/components/base/carousel/carousel.js +1 -0
- package/dist/components/base/collapse/collapse.js +1 -0
- package/dist/components/base/drawer/drawer.js +1 -0
- package/dist/components/base/dropdown/dropdown.js +2 -0
- package/dist/components/base/form/form.js +1 -0
- package/dist/components/base/icon/icon.js +2 -0
- package/dist/components/base/label/label.js +1 -0
- package/dist/components/base/link/link.js +1 -0
- package/dist/components/base/markdown/markdown.js +1 -0
- package/dist/components/base/modal/modal.js +2 -0
- package/dist/components/base/pagination/pagination.js +2 -0
- package/dist/components/base/popover/popover.js +1 -0
- package/dist/components/base/table/table.js +2 -0
- package/dist/components/base/tabs/tabs/tabs.js +2 -0
- package/dist/components/base/token/token.js +1 -0
- package/dist/components/base/tooltip/tooltip.js +1 -0
- package/dist/components/charts/area/area.js +1 -15
- package/dist/components/charts/bar/bar.js +1 -0
- package/dist/components/charts/chart/chart.js +1 -0
- package/dist/components/charts/column/column.js +1 -0
- package/dist/components/charts/heatmap/heatmap.js +1 -0
- package/dist/components/charts/legend/legend.js +1 -0
- package/dist/components/charts/line/line.js +1 -17
- package/dist/components/charts/sparkline/sparkline.js +2 -0
- package/dist/components/charts/tooltip/tooltip.js +1 -0
- package/dist/components/utilities/intersperse/intersperse.js +2 -0
- package/dist/components/utilities/truncate/truncate.js +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/utils/test_utils.js +3 -1
- package/package.json +2 -2
- package/src/components/base/alert/alert.vue +1 -0
- package/src/components/base/avatar/avatar.vue +1 -0
- package/src/components/base/badge/badge.vue +1 -0
- package/src/components/base/breadcrumb/breadcrumb.spec.js +1 -1
- package/src/components/base/breadcrumb/breadcrumb.vue +1 -0
- package/src/components/base/button/button.vue +1 -0
- package/src/components/base/card/card.vue +1 -0
- package/src/components/base/carousel/carousel.vue +1 -0
- package/src/components/base/collapse/collapse.vue +1 -0
- package/src/components/base/datepicker/datepicker.vue +1 -0
- package/src/components/base/drawer/drawer.vue +1 -0
- package/src/components/base/dropdown/dropdown.vue +1 -0
- package/src/components/base/form/form.vue +1 -0
- package/src/components/base/form/form_group/form_group.scss +4 -1
- package/src/components/base/form/form_group/form_group.stories.js +1 -1
- package/src/components/base/icon/icon.spec.js +1 -1
- package/src/components/base/icon/icon.vue +1 -0
- package/src/components/base/keyset_pagination/keyset_pagination.spec.js +1 -1
- package/src/components/base/label/label.vue +1 -0
- package/src/components/base/link/link.vue +1 -0
- package/src/components/base/markdown/markdown.vue +1 -0
- package/src/components/base/modal/modal.spec.js +1 -1
- package/src/components/base/modal/modal.vue +1 -0
- package/src/components/base/new_dropdowns/listbox/listbox.vue +1 -0
- package/src/components/base/paginated_list/paginated_list.vue +1 -1
- package/src/components/base/pagination/pagination.spec.js +1 -1
- package/src/components/base/pagination/pagination.vue +1 -0
- package/src/components/base/path/path.vue +1 -0
- package/src/components/base/popover/popover.vue +1 -0
- package/src/components/base/search_box_by_click/search_box_by_click.spec.js +1 -1
- package/src/components/base/search_box_by_click/search_box_by_click.vue +2 -2
- package/src/components/base/search_box_by_type/search_box_by_type.spec.js +1 -1
- package/src/components/base/table/table.vue +1 -0
- package/src/components/base/tabs/tab/tab.vue +1 -0
- package/src/components/base/tabs/tabs/scrollable_tabs.spec.js +1 -1
- package/src/components/base/tabs/tabs/tabs.vue +1 -0
- package/src/components/base/toggle/toggle.vue +1 -0
- package/src/components/base/token/token.vue +1 -0
- package/src/components/base/token_selector/token_container.spec.js +1 -1
- package/src/components/base/tooltip/tooltip.vue +1 -0
- package/src/components/charts/area/area.spec.js +2 -3
- package/src/components/charts/area/area.vue +1 -0
- package/src/components/charts/bar/bar.spec.js +2 -2
- package/src/components/charts/bar/bar.vue +1 -0
- package/src/components/charts/chart/chart.spec.js +1 -1
- package/src/components/charts/chart/chart.vue +1 -0
- package/src/components/charts/column/column.vue +1 -0
- package/src/components/charts/column/column_chart.spec.js +2 -2
- package/src/components/charts/gauge/gauge.spec.js +1 -1
- package/src/components/charts/gauge/gauge.vue +1 -0
- package/src/components/charts/heatmap/heatmap.spec.js +2 -2
- package/src/components/charts/heatmap/heatmap.vue +1 -0
- package/src/components/charts/legend/legend.spec.js +1 -1
- package/src/components/charts/legend/legend.vue +1 -0
- package/src/components/charts/line/line.spec.js +2 -4
- package/src/components/charts/line/line.vue +1 -0
- package/src/components/charts/sparkline/sparkline.spec.js +2 -2
- package/src/components/charts/sparkline/sparkline.vue +1 -0
- package/src/components/charts/stacked_column/stacked_column.spec.js +3 -4
- package/src/components/charts/tooltip/tooltip.spec.js +1 -1
- package/src/components/charts/tooltip/tooltip.vue +1 -0
- package/src/components/regions/empty_state/empty_state.spec.js +1 -1
- package/src/components/utilities/animated_number/animated_number.spec.js +1 -1
- package/src/components/utilities/intersection_observer/intersection_observer.spec.js +1 -1
- package/src/components/utilities/intersperse/intersperse.vue +1 -0
- package/src/components/utilities/sprintf/sprintf.vue +1 -0
- package/src/components/utilities/truncate/truncate.spec.js +1 -1
- package/src/components/utilities/truncate/truncate.vue +1 -0
- package/src/directives/hover_load/hover_load.spec.js +3 -1
- package/src/directives/outside/outside.spec.js +4 -1
- package/src/directives/resize_observer/resize_observer.spec.js +1 -1
- package/src/utils/test_utils.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [40.2.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v40.2.1...v40.2.2) (2022-05-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Fix condition for feedback text ([208deab](https://gitlab.com/gitlab-org/gitlab-ui/commit/208deabae0b8f2da529f303408f7cc1568008672))
|
|
7
|
+
* **GlFormGroup:** Make selector more robust ([eb5c4f4](https://gitlab.com/gitlab-org/gitlab-ui/commit/eb5c4f4e85088a95d8a2e067e5d4be5fba5d560c))
|
|
8
|
+
|
|
1
9
|
## [40.2.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v40.2.0...v40.2.1) (2022-05-12)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -2,6 +2,7 @@ import { avatarSizeOptions, avatarShapeOptions } from '../../../utils/constants'
|
|
|
2
2
|
import { getAvatarChar } from '../../../utils/string_utils';
|
|
3
3
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
4
4
|
|
|
5
|
+
//
|
|
5
6
|
const IDENTICON_BG_COUNT = 7;
|
|
6
7
|
var script = {
|
|
7
8
|
props: {
|
|
@@ -5,6 +5,7 @@ import { GlTooltipDirective } from '../../../directives/tooltip';
|
|
|
5
5
|
import GlBreadcrumbItem from './breadcrumb_item';
|
|
6
6
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
7
7
|
|
|
8
|
+
//
|
|
8
9
|
const COLLAPSE_AT_SIZE = 4;
|
|
9
10
|
var script = {
|
|
10
11
|
components: {
|
|
@@ -8,6 +8,8 @@ import GlLoadingIcon from '../loading_icon/loading_icon';
|
|
|
8
8
|
import GlDropdownDivider from './dropdown_divider';
|
|
9
9
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
10
10
|
|
|
11
|
+
//
|
|
12
|
+
|
|
11
13
|
function filterVisible(els) {
|
|
12
14
|
return (els || []).filter(isVisible);
|
|
13
15
|
}
|
|
@@ -2,6 +2,8 @@ import iconsPath from '@gitlab/svgs/dist/icons.svg';
|
|
|
2
2
|
import { iconSizeOptions } from '../../../utils/constants';
|
|
3
3
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
4
4
|
|
|
5
|
+
//
|
|
6
|
+
|
|
5
7
|
let iconValidator = () => true;
|
|
6
8
|
/*
|
|
7
9
|
During development/tests we want to validate that we are just using icons that are actually defined
|
|
@@ -5,6 +5,8 @@ import CloseButton from '../../shared_components/close_button/close_button';
|
|
|
5
5
|
import GlButton from '../button/button';
|
|
6
6
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
7
7
|
|
|
8
|
+
//
|
|
9
|
+
|
|
8
10
|
function validatorHelper(obj) {
|
|
9
11
|
return Object.keys(obj).every(val => val === 'text' || val === 'attributes');
|
|
10
12
|
}
|
|
@@ -4,6 +4,7 @@ import CloseButton from '../../shared_components/close_button/close_button';
|
|
|
4
4
|
import { popoverPlacements } from '../../../utils/constants';
|
|
5
5
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
6
6
|
|
|
7
|
+
//
|
|
7
8
|
const popoverRefName = 'bPopover';
|
|
8
9
|
var script = {
|
|
9
10
|
components: {
|
|
@@ -3,6 +3,8 @@ import { isDev, logWarning } from '../../../utils/utils';
|
|
|
3
3
|
import { tableFullProps, tableFullSlots, glTableLiteWarning } from './constants';
|
|
4
4
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
5
5
|
|
|
6
|
+
//
|
|
7
|
+
|
|
6
8
|
const shouldUseFullTable = _ref => {
|
|
7
9
|
let {
|
|
8
10
|
$attrs,
|
|
@@ -3,6 +3,8 @@ import { tabsButtonDefaults } from '../../../../utils/constants';
|
|
|
3
3
|
import GlButton from '../../button/button';
|
|
4
4
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
5
5
|
|
|
6
|
+
//
|
|
7
|
+
|
|
6
8
|
const validatorHelper = obj => Object.keys(obj).every(val => val === 'text' || val === 'attributes');
|
|
7
9
|
|
|
8
10
|
var script = {
|
|
@@ -2,6 +2,7 @@ import { tokenVariants } from '../../../utils/constants';
|
|
|
2
2
|
import CloseButton from '../../shared_components/close_button/close_button';
|
|
3
3
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
4
4
|
|
|
5
|
+
//
|
|
5
6
|
var script = {
|
|
6
7
|
components: {
|
|
7
8
|
CloseButton
|
|
@@ -3,6 +3,7 @@ import { tooltipDelay } from '../../../utils/constants';
|
|
|
3
3
|
import tooltipMixin from '../../mixins/tooltip_mixin';
|
|
4
4
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
5
5
|
|
|
6
|
+
//
|
|
6
7
|
const tooltipRefName = 'bvTooltip';
|
|
7
8
|
var script = {
|
|
8
9
|
tooltipDelay,
|
|
@@ -11,21 +11,7 @@ import ChartLegend from '../legend/legend';
|
|
|
11
11
|
import ChartTooltip from '../tooltip/tooltip';
|
|
12
12
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
* Area charts as of %12.10 support annotations.
|
|
16
|
-
* Annotations is composed of a dotted line and an arrow
|
|
17
|
-
* at the bottom. The dotted line is constructed
|
|
18
|
-
* with markLine and arrows with markPoint.
|
|
19
|
-
*
|
|
20
|
-
* Similar to how custom tooltips are displayed when area chart
|
|
21
|
-
* is hovered, a tooltip should be displayed when the annotation
|
|
22
|
-
* arrow is hovered. This component adds event listeners
|
|
23
|
-
* to figure out if mouse is hovered on charts to show tooltips.
|
|
24
|
-
* While that works for data points inside the grid, for arrows
|
|
25
|
-
* that live right under the chart, we use eCharts inbuilt
|
|
26
|
-
* event listeners to detect hover. Given this limitation,
|
|
27
|
-
* we use a separate tooltip for data point and arrow.
|
|
28
|
-
*/
|
|
14
|
+
//
|
|
29
15
|
var script = {
|
|
30
16
|
components: {
|
|
31
17
|
Chart,
|
|
@@ -11,6 +11,7 @@ import Chart from '../chart/chart';
|
|
|
11
11
|
import ChartTooltip from '../tooltip/tooltip';
|
|
12
12
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
13
13
|
|
|
14
|
+
//
|
|
14
15
|
/**
|
|
15
16
|
* `nameGap` in charts/config is set to 50 but it is not
|
|
16
17
|
* used for bar charts as the axes are flipped. That is why
|
|
@@ -4,6 +4,7 @@ import createTheme, { themeName } from '../../../utils/charts/theme';
|
|
|
4
4
|
import { GlResizeObserverDirective } from '../../../directives/resize_observer/resize_observer';
|
|
5
5
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
6
6
|
|
|
7
|
+
//
|
|
7
8
|
var script = {
|
|
8
9
|
directives: {
|
|
9
10
|
resizeObserver: GlResizeObserverDirective
|
|
@@ -13,23 +13,7 @@ import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
|
13
13
|
|
|
14
14
|
const gray200 = '#bfbfbf';
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
* Line charts as of %12.10 support annotations.
|
|
18
|
-
* Annotations is composed of a dotted line and an arrow
|
|
19
|
-
* at the bottom. The dotted line is constructed
|
|
20
|
-
* with markLine and arrows with markPoint. Most of this
|
|
21
|
-
* logic is in GitLab and should be eventually moved to
|
|
22
|
-
* GitLab UI https://gitlab.com/gitlab-org/gitlab/-/issues/213390.
|
|
23
|
-
*
|
|
24
|
-
* Similar to how custom tooltips are displayed when line chart
|
|
25
|
-
* is hovered, a tooltip should be displayed when the annotation
|
|
26
|
-
* arrow is hovered. This component adds event listeners
|
|
27
|
-
* to figure out if mouse is hovered on charts to show tooltips.
|
|
28
|
-
* While that works for data points inside the grid, for arrows
|
|
29
|
-
* that live right under the chart, we use eCharts inbuilt
|
|
30
|
-
* event listeners to detect hover. Given this limitation,
|
|
31
|
-
* we use a separate tooltip for data point and arrow.
|
|
32
|
-
*/
|
|
16
|
+
//
|
|
33
17
|
var script = {
|
|
34
18
|
components: {
|
|
35
19
|
Chart,
|
|
@@ -4,6 +4,8 @@ import filter from 'lodash/fp/filter';
|
|
|
4
4
|
import { insert, intersperse } from '../../../utils/data_utils';
|
|
5
5
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
6
6
|
|
|
7
|
+
//
|
|
8
|
+
|
|
7
9
|
const containsWhitespaceOnly = vNode => vNode.text.trim() === '';
|
|
8
10
|
|
|
9
11
|
const isTag = vNode => vNode.tag !== undefined;
|