@gitlab/ui 49.8.0 → 49.9.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/components/base/new_dropdowns/listbox/listbox.js +8 -5
  3. package/dist/components/base/paginated_list/paginated_list.js +1 -1
  4. package/dist/components/base/path/path.js +1 -1
  5. package/dist/components/charts/area/area.js +1 -1
  6. package/dist/components/charts/bar/bar.js +1 -1
  7. package/dist/components/charts/column/column.js +1 -1
  8. package/dist/components/charts/discrete_scatter/discrete_scatter.js +1 -1
  9. package/dist/components/charts/gauge/gauge.js +1 -1
  10. package/dist/components/charts/heatmap/heatmap.js +1 -1
  11. package/dist/components/charts/line/line.js +1 -1
  12. package/dist/components/charts/stacked_column/stacked_column.js +1 -1
  13. package/dist/components/mixins/toolbox_mixin.js +2 -2
  14. package/dist/index.css +2 -2
  15. package/dist/index.css.map +1 -1
  16. package/dist/utility_classes.css +1 -1
  17. package/dist/utility_classes.css.map +1 -1
  18. package/dist/utils/use_mock_intersection_observer.js +1 -1
  19. package/package.json +15 -7
  20. package/scss_to_js/scss_variables.js +6 -5
  21. package/scss_to_js/scss_variables.json +15 -10
  22. package/src/components/base/new_dropdowns/listbox/listbox.vue +10 -7
  23. package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +0 -8
  24. package/src/components/base/paginated_list/paginated_list.vue +4 -3
  25. package/src/components/base/path/__snapshots__/path.spec.js.snap +0 -30
  26. package/src/components/base/path/path.vue +1 -2
  27. package/src/components/charts/area/area.vue +1 -1
  28. package/src/components/charts/bar/bar.vue +1 -1
  29. package/src/components/charts/column/column.vue +1 -1
  30. package/src/components/charts/discrete_scatter/discrete_scatter.vue +1 -1
  31. package/src/components/charts/gauge/gauge.vue +1 -1
  32. package/src/components/charts/heatmap/heatmap.vue +1 -1
  33. package/src/components/charts/line/line.vue +1 -1
  34. package/src/components/charts/stacked_column/stacked_column.vue +1 -1
  35. package/src/components/mixins/toolbox_mixin.js +1 -1
  36. package/src/components/utilities/intersection_observer/intersection_observer.spec.js +1 -1
  37. package/src/scss/utilities.scss +24 -0
  38. package/src/scss/utility-mixins/box-shadow.scss +21 -0
  39. package/src/scss/variables.scss +6 -5
  40. package/src/utils/use_mock_intersection_observer.js +1 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [49.9.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.8.0...v49.9.0) (2022-11-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * **CSS:** tint-neutral-transparency ([2be841a](https://gitlab.com/gitlab-org/gitlab-ui/commit/2be841a7bc4f61ad1c01079a8c589b7cd42ad3ed))
7
+
1
8
  # [49.8.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.7.0...v49.8.0) (2022-11-11)
2
9
 
3
10
 
@@ -296,11 +296,14 @@ var script = {
296
296
  this.selectedValues = [newSelected];
297
297
  }
298
298
  }
299
- }
300
- },
301
- mounted() {
302
- if (process.env.NODE_ENV !== 'production' && this.resetButtonLabel && !this.headerText) {
303
- throw new Error('The reset button cannot be rendered without a header. Either provide a header via the headerText prop, or do not provide the resetButtonLabel prop.');
299
+ },
300
+ resetButtonLabel: {
301
+ immediate: true,
302
+ handler(newResetButtonLabel) {
303
+ if (process.env.NODE_ENV !== 'production' && newResetButtonLabel && !this.headerText) {
304
+ throw new Error('The reset button cannot be rendered without a header. Either provide a header via the headerText prop, or do not provide the resetButtonLabel prop.');
305
+ }
306
+ }
304
307
  }
305
308
  },
306
309
  methods: {
@@ -144,7 +144,7 @@ var script = {
144
144
  const __vue_script__ = script;
145
145
 
146
146
  /* template */
147
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"},[_vm._t("header"),_vm._v(" "),(_vm.filterable)?_c('gl-search-box-by-type',{on:{"input":_vm.query}}):_vm._e()],2),_vm._v(" "),_vm._t("subheader"),_vm._v(" "),_c('ul',{staticClass:"list-group list-group-flush list-unstyled"},_vm._l((_vm.paginatedList),function(listItem){return _c('li',{key:listItem[_vm.itemKey],staticClass:"list-group-item"},[_vm._t("default",function(){return [_vm._v(_vm._s(listItem.id))]},{"listItem":listItem,"query":_vm.queryStr})],2)}),0),_vm._v(" "),(!_vm.emptyList)?_c('gl-pagination',_vm._b({staticClass:"d-flex justify-content-center prepend-top-default",attrs:{"per-page":_vm.pageInfo.perPage,"value":_vm.pageInfo.page,"total-items":_vm.pageInfo.total},on:{"input":_vm.change}},'gl-pagination',_vm.$attrs,false)):_vm._e(),_vm._v(" "),(_vm.emptyList)?_c('div',{staticClass:"bs-callout bs-callout-warning mt-3 empty-message",class:{ 'empty-message': _vm.zeroTotal, 'empty-search': _vm.zeroSearchResults }},[_vm._v("\n "+_vm._s(_vm.zeroTotal ? _vm.emptyMessage : _vm.emptySearchMessage)+"\n ")]):_vm._e()],2)};
147
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"},[_vm._t("header"),_vm._v(" "),(_vm.filterable)?_c('gl-search-box-by-type',{on:{"input":_vm.query}}):_vm._e()],2),_vm._v(" "),_vm._t("subheader"),_vm._v(" "),_c('ul',{staticClass:"list-group list-group-flush list-unstyled"},_vm._l((_vm.paginatedList),function(listItem){return _c('li',{key:listItem[_vm.itemKey],staticClass:"list-group-item"},[_vm._t("default",function(){return [_vm._v(_vm._s(listItem.id))]},{"listItem":listItem,"query":_vm.queryStr})],2)}),0),_vm._v(" "),(!_vm.emptyList)?_c('gl-pagination',_vm._b({staticClass:"d-flex justify-content-center prepend-top-default",attrs:{"per-page":_vm.pageInfo.perPage,"value":_vm.pageInfo.page,"total-items":_vm.pageInfo.total},on:{"input":_vm.change}},'gl-pagination',_vm.$attrs,false)):_vm._e(),_vm._v(" "),(_vm.emptyList)?_c('div',{staticClass:"bs-callout bs-callout-warning mt-3 empty-message",class:{ 'empty-message': _vm.zeroTotal, 'empty-search': _vm.zeroSearchResults }},[_vm._v(_vm._s(_vm.zeroTotal ? _vm.emptyMessage : _vm.emptySearchMessage))]):_vm._e()],2)};
148
148
  var __vue_staticRenderFns__ = [];
149
149
 
150
150
  /* style */
@@ -152,7 +152,7 @@ var script = {
152
152
  const __vue_script__ = script;
153
153
 
154
154
  /* template */
155
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"gl-resize-observer-directive",rawName:"v-gl-resize-observer-directive",value:(_vm.handleResize),expression:"handleResize"}],staticClass:"gl-path-nav",style:({ '--path-bg-color': _vm.backgroundColor }),attrs:{"data-testid":"gl-path-nav"}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.displayScrollLeft),expression:"displayScrollLeft"}],staticClass:"gl-path-fade gl-path-fade-left"},[_c('button',{staticClass:"gl-clear-icon-button",attrs:{"aria-label":"Scroll left"},on:{"click":_vm.scrollPathLeft}},[_c('gl-icon',{attrs:{"size":32,"name":"chevron-left"}})],1)]),_vm._v(" "),_c('ul',{ref:"pathNavList",staticClass:"gl-path-nav-list"},_vm._l((_vm.items),function(item,index){return _c('li',{key:index,ref:"pathListItems",refInFor:true,staticClass:"gl-path-nav-list-item",attrs:{"id":_vm.pathId(index)}},[_c('button',{class:_vm.pathItemClass(index),attrs:{"category":item.disabled ? 'tertiary' : undefined,"disabled":item.disabled},on:{"click":function($event){return _vm.onItemClicked(index)}}},[(_vm.shouldDisplayIcon(item.icon))?_c('gl-icon',{staticClass:"gl-mr-2",attrs:{"name":item.icon,"data-testid":"gl-path-item-icon"}}):_vm._e(),_vm._v("\n "+_vm._s(item.title)),(item.metric)?_c('span',{staticClass:"gl-font-weight-normal gl-pl-2"},[_vm._v(_vm._s(item.metric))]):_vm._e()],1),_vm._v(" "),_vm._t("default",null,{"pathItem":item,"pathId":_vm.pathId(index)})],2)}),0),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.displayScrollRight),expression:"displayScrollRight"}],staticClass:"gl-path-fade gl-path-fade-right"},[_c('button',{staticClass:"gl-clear-icon-button",attrs:{"aria-label":"Scroll right"},on:{"click":_vm.scrollPathRight}},[_c('gl-icon',{attrs:{"size":32,"name":"chevron-right"}})],1)])])};
155
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"gl-resize-observer-directive",rawName:"v-gl-resize-observer-directive",value:(_vm.handleResize),expression:"handleResize"}],staticClass:"gl-path-nav",style:({ '--path-bg-color': _vm.backgroundColor }),attrs:{"data-testid":"gl-path-nav"}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.displayScrollLeft),expression:"displayScrollLeft"}],staticClass:"gl-path-fade gl-path-fade-left"},[_c('button',{staticClass:"gl-clear-icon-button",attrs:{"aria-label":"Scroll left"},on:{"click":_vm.scrollPathLeft}},[_c('gl-icon',{attrs:{"size":32,"name":"chevron-left"}})],1)]),_vm._v(" "),_c('ul',{ref:"pathNavList",staticClass:"gl-path-nav-list"},_vm._l((_vm.items),function(item,index){return _c('li',{key:index,ref:"pathListItems",refInFor:true,staticClass:"gl-path-nav-list-item",attrs:{"id":_vm.pathId(index)}},[_c('button',{class:_vm.pathItemClass(index),attrs:{"category":item.disabled ? 'tertiary' : undefined,"disabled":item.disabled},on:{"click":function($event){return _vm.onItemClicked(index)}}},[(_vm.shouldDisplayIcon(item.icon))?_c('gl-icon',{staticClass:"gl-mr-2",attrs:{"name":item.icon,"data-testid":"gl-path-item-icon"}}):_vm._e(),_vm._v(_vm._s(item.title)),(item.metric)?_c('span',{staticClass:"gl-font-weight-normal gl-pl-2"},[_vm._v(_vm._s(item.metric))]):_vm._e()],1),_vm._v(" "),_vm._t("default",null,{"pathItem":item,"pathId":_vm.pathId(index)})],2)}),0),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.displayScrollRight),expression:"displayScrollRight"}],staticClass:"gl-path-fade gl-path-fade-right"},[_c('button',{staticClass:"gl-clear-icon-button",attrs:{"aria-label":"Scroll right"},on:{"click":_vm.scrollPathRight}},[_c('gl-icon',{attrs:{"size":32,"name":"chevron-right"}})],1)])])};
156
156
  var __vue_staticRenderFns__ = [];
157
157
 
158
158
  /* style */
@@ -4,7 +4,7 @@ import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_T
4
4
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
5
5
  import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
6
6
  import { debounceByAnimationFrame } from '../../../utils/utils';
7
- import ToolboxMixin from '../../mixins/toolbox_mixin';
7
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
8
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
9
  import Chart from '../chart/chart';
10
10
  import ChartLegend from '../legend/legend';
@@ -5,7 +5,7 @@ import { TOOLTIP_LEFT_OFFSET } from '../../../utils/charts/constants';
5
5
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
6
6
  import { engineeringNotation } from '../../../utils/number_utils';
7
7
  import { debounceByAnimationFrame, hexToRgba } from '../../../utils/utils';
8
- import ToolboxMixin from '../../mixins/toolbox_mixin';
8
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
9
9
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
10
10
  import Chart from '../chart/chart';
11
11
  import ChartTooltip from '../tooltip/tooltip';
@@ -4,7 +4,7 @@ import { CHART_TYPE_LINE, TOOLTIP_LEFT_OFFSET } from '../../../utils/charts/cons
4
4
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
5
5
  import { columnOptions } from '../../../utils/constants';
6
6
  import { debounceByAnimationFrame } from '../../../utils/utils';
7
- import ToolboxMixin from '../../mixins/toolbox_mixin';
7
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
8
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
9
  import Chart from '../chart/chart';
10
10
  import ChartTooltip from '../tooltip/tooltip';
@@ -2,7 +2,7 @@ import merge from 'lodash/merge';
2
2
  import defaultChartOptions, { dataZoomAdjustments, mergeSeriesToOptions } from '../../../utils/charts/config';
3
3
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
4
4
  import { debounceByAnimationFrame } from '../../../utils/utils';
5
- import ToolboxMixin from '../../mixins/toolbox_mixin';
5
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
6
6
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
7
7
  import Chart from '../chart/chart';
8
8
  import ChartTooltip from '../tooltip/tooltip';
@@ -3,7 +3,7 @@ import _uniq from 'lodash/uniq';
3
3
  import _isFinite from 'lodash/isFinite';
4
4
  import _merge from 'lodash/merge';
5
5
  import { gaugeNeutralHues, gaugeSafeHues, gaugeWarningHue } from '../../../utils/charts/theme';
6
- import ToolboxMixin from '../../mixins/toolbox_mixin';
6
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
7
7
  import Chart from '../chart/chart';
8
8
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
9
9
 
@@ -4,7 +4,7 @@ import { TOOLTIP_LEFT_OFFSET } from '../../../utils/charts/constants';
4
4
  import { heatmapHues } from '../../../utils/charts/theme';
5
5
  import { engineeringNotation } from '../../../utils/number_utils';
6
6
  import { debounceByAnimationFrame } from '../../../utils/utils';
7
- import ToolboxMixin from '../../mixins/toolbox_mixin';
7
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
8
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
9
  import Chart from '../chart/chart';
10
10
  import ChartLegend from '../legend/legend';
@@ -4,7 +4,7 @@ import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_T
4
4
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
5
5
  import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
6
6
  import { debounceByAnimationFrame } from '../../../utils/utils';
7
- import ToolboxMixin from '../../mixins/toolbox_mixin';
7
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
8
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
9
  import Chart from '../chart/chart';
10
10
  import ChartLegend from '../legend/legend';
@@ -4,7 +4,7 @@ import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_T
4
4
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
5
5
  import { columnOptions } from '../../../utils/constants';
6
6
  import { debounceByAnimationFrame } from '../../../utils/utils';
7
- import ToolboxMixin from '../../mixins/toolbox_mixin';
7
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
8
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
9
  import Chart from '../chart/chart';
10
10
  import ChartLegend from '../legend/legend';
@@ -6,7 +6,7 @@ import { getToolboxConfig } from '../../utils/charts/config';
6
6
  * the mixin also handles the icon customization for the 4 different default
7
7
  * toolbox options
8
8
  */
9
- var toolbox_mixin = {
9
+ const ToolboxMixin = {
10
10
  props: {
11
11
  showToolbox: {
12
12
  type: Boolean,
@@ -42,4 +42,4 @@ var toolbox_mixin = {
42
42
  }
43
43
  };
44
44
 
45
- export default toolbox_mixin;
45
+ export { ToolboxMixin };