@gitlab/ui 115.5.0 → 115.6.1
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/bin/migrate_custom_utils_to_tw.bundled.mjs +28625 -42474
- 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 +2 -1
- package/dist/components/base/button/button.js +1 -0
- package/dist/components/base/datepicker/datepicker.js +1 -0
- package/dist/components/base/drawer/drawer.js +1 -0
- package/dist/components/base/dropdown/dropdown.js +1 -0
- package/dist/components/base/icon/icon.js +1 -0
- package/dist/components/base/label/label.js +1 -0
- package/dist/components/base/link/link.js +1 -0
- package/dist/components/base/modal/modal.js +1 -0
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +1 -0
- package/dist/components/base/new_dropdowns/listbox/listbox.js +1 -0
- package/dist/components/base/pagination/pagination.js +1 -0
- package/dist/components/base/path/path.js +1 -0
- package/dist/components/base/popover/popover.js +1 -0
- package/dist/components/base/table/table.js +1 -0
- package/dist/components/base/tabs/tab/tab.js +1 -0
- package/dist/components/base/tabs/tabs/tabs.js +1 -0
- package/dist/components/base/toggle/toggle.js +1 -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 -0
- 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/gauge/gauge.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 -0
- package/dist/components/charts/shared/tooltip/tooltip.js +1 -0
- package/dist/components/charts/sparkline/sparkline.js +1 -0
- package/dist/components/dashboards/dashboard_layout/dashboard_layout.js +0 -3
- package/dist/components/dashboards/dashboard_panel/dashboard_panel.js +2 -2
- package/dist/components/utilities/intersperse/intersperse.js +1 -0
- package/dist/components/utilities/sprintf/sprintf.js +1 -0
- package/dist/components/utilities/truncate/truncate.js +1 -0
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/utils/use_mock_intersection_observer.js +1 -0
- package/dist/vendor/bootstrap-vue/src/bv-config.js +2 -0
- package/dist/vendor/bootstrap-vue/src/components/modal/helpers/modal-manager.js +1 -0
- package/dist/vendor/bootstrap-vue/src/components/popover/helpers/bv-popover.js +5 -0
- package/dist/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +13 -3
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-popper.js +6 -0
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +4 -0
- package/dist/vendor/bootstrap-vue/src/components/transition/bv-transition.js +5 -0
- package/dist/vendor/bootstrap-vue/src/directives/visible/visible.js +32 -0
- package/dist/vendor/bootstrap-vue/src/mixins/has-listener.js +3 -0
- package/dist/vendor/bootstrap-vue/src/mixins/id.js +2 -0
- package/package.json +20 -20
- package/src/components/base/breadcrumb/breadcrumb.vue +1 -1
- package/src/components/base/toast/toast.scss +10 -1
- package/src/components/dashboards/dashboard_layout/dashboard_layout.md +145 -3
- package/src/components/dashboards/dashboard_layout/dashboard_layout.vue +0 -3
- package/src/components/dashboards/dashboard_panel/dashboard_panel.vue +33 -18
- package/src/vendor/bootstrap-vue/src/components/toast/_toast.scss +0 -4
- package/src/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +13 -3
- package/src/vendor/bootstrap-vue/src/components/toast/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/toast/_toaster-transition.scss +0 -45
|
@@ -8,6 +8,7 @@ import GlBreadcrumbItem from './breadcrumb_item';
|
|
|
8
8
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
9
9
|
|
|
10
10
|
//
|
|
11
|
+
|
|
11
12
|
var script = {
|
|
12
13
|
name: 'GlBreadcrumb',
|
|
13
14
|
components: {
|
|
@@ -150,7 +151,7 @@ var script = {
|
|
|
150
151
|
this.resizeDone = false;
|
|
151
152
|
this.resetItems();
|
|
152
153
|
const containerWidth = this.$el.clientWidth;
|
|
153
|
-
const buttonWidth = 40; // px
|
|
154
|
+
const buttonWidth = this.size === 'sm' ? 40 : 48; // px
|
|
154
155
|
|
|
155
156
|
if (this.totalBreadcrumbsWidth > containerWidth) {
|
|
156
157
|
// Not all breadcrumb items fit. Start moving items over to the dropdown.
|
|
@@ -10,6 +10,7 @@ import { translate } from '../../../utils/i18n';
|
|
|
10
10
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
11
11
|
|
|
12
12
|
//
|
|
13
|
+
|
|
13
14
|
const pad = function (val) {
|
|
14
15
|
let len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15
16
|
return `0${val}`.slice(-len);
|
|
@@ -12,6 +12,7 @@ import GlDropdownDivider from './dropdown_divider';
|
|
|
12
12
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
13
13
|
|
|
14
14
|
//
|
|
15
|
+
|
|
15
16
|
const Selector = {
|
|
16
17
|
ITEM_SELECTOR: '.dropdown-item:not(.disabled):not([disabled]),.form-control:not(.disabled):not([disabled])'
|
|
17
18
|
};
|
|
@@ -4,6 +4,7 @@ import { iconSizeOptions, iconVariantOptions } from '../../../utils/constants';
|
|
|
4
4
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
5
5
|
|
|
6
6
|
//
|
|
7
|
+
|
|
7
8
|
const knownIcons = new Set(iconsInfo.icons);
|
|
8
9
|
|
|
9
10
|
/** This is a re-usable vue component for rendering a svg sprite icon
|
|
@@ -14,6 +14,7 @@ import { linkVariantOptions, isVue3, linkVariantUnstyled, linkVariantInline, lin
|
|
|
14
14
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
15
15
|
|
|
16
16
|
//
|
|
17
|
+
|
|
17
18
|
const ANCHOR_TAG = 'a';
|
|
18
19
|
const NUXT_LINK_TAG = 'nuxt-link';
|
|
19
20
|
const VUE_ROUTER_LINK_TAG = 'router-link';
|
|
@@ -10,6 +10,7 @@ import { itemsValidator, hasOnlyListItems, isItem } from './utils';
|
|
|
10
10
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
11
11
|
|
|
12
12
|
//
|
|
13
|
+
|
|
13
14
|
const DROPDOWN_SELECTOR = `.${BASE_DROPDOWN_CLASS}`;
|
|
14
15
|
const ITEM_SELECTOR = `.${ITEM_CLASS}`;
|
|
15
16
|
var script = {
|
|
@@ -16,6 +16,7 @@ import { itemsValidator, isOption, flattenedOptions } from './utils';
|
|
|
16
16
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
17
17
|
|
|
18
18
|
//
|
|
19
|
+
|
|
19
20
|
const ITEM_SELECTOR = '[role="option"]';
|
|
20
21
|
const ITEM_NULL_KEY = Symbol('null-key');
|
|
21
22
|
const HEADER_ITEMS_BORDER_CLASSES = ['gl-border-b-1', 'gl-border-b-solid', 'gl-border-b-dropdown-divider'];
|
|
@@ -4,6 +4,7 @@ import GlButton from '../../button/button';
|
|
|
4
4
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
5
5
|
|
|
6
6
|
//
|
|
7
|
+
|
|
7
8
|
const validatorHelper = obj => Object.keys(obj).every(val => val === 'text' || val === 'attributes');
|
|
8
9
|
var script = {
|
|
9
10
|
name: 'GlTabs',
|
|
@@ -4,9 +4,6 @@ import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The `DashboardLayout` component provides an easy way to render dashboards using a configuration, aligning with our [Pajamas guidelines](https://design.gitlab.com/patterns/dashboards).
|
|
7
|
-
*
|
|
8
|
-
* Please refer to the [documentation](https://docs.gitlab.com/development/fe_guide/dashboard_layout_framework) for more information.
|
|
9
|
-
*
|
|
10
7
|
*/
|
|
11
8
|
var script = {
|
|
12
9
|
name: 'GlDashboardLayout',
|
|
@@ -133,9 +133,9 @@ const __vue_script__ = script;
|
|
|
133
133
|
/* template */
|
|
134
134
|
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-border gl-h-full !gl-overflow-visible gl-rounded-base gl-bg-white gl-p-4",class:_vm.containerClasses,attrs:{"id":_vm.panelId}},[_c('div',{staticClass:"gl-flex gl-h-full gl-flex-col"},[_c('div',{staticClass:"gl-flex gl-items-start gl-justify-between",attrs:{"data-testid":"panel-title"}},[_c('div',{staticClass:"gl-flex gl-items-center gl-overflow-hidden gl-pb-3"},[(_vm.hasTitleIcon)?_c('gl-icon',{staticClass:"gl-mr-1",class:_vm.titleIconClass,attrs:{"name":_vm.titleIcon,"data-testid":"panel-title-icon"}}):_vm._e(),_vm._v(" "),(_vm.hasTitle)?_c('gl-truncate',{staticClass:"gl-font-bold gl-text-default",attrs:{"text":_vm.title,"with-tooltip":""}}):_vm._e(),_vm._v(" "),(_vm.hasTitlePopover)?[_c('gl-icon',{staticClass:"gl-ml-2",attrs:{"id":_vm.titlePopoverId,"data-testid":"panel-title-popover-icon","name":"information-o","variant":"info"}}),_vm._v(" "),_c('gl-popover',{attrs:{"data-testid":"panel-title-popover","boundary":"viewport","target":_vm.titlePopoverId}},[(_vm.hasTitlePopoverLink)?_c('gl-sprintf',{attrs:{"message":_vm.titlePopover.description},scopedSlots:_vm._u([{key:"link",fn:function(ref){
|
|
135
135
|
var content = ref.content;
|
|
136
|
-
return [_c('gl-link',{staticClass:"gl-text-sm",attrs:{"href":_vm.titlePopover.descriptionLink}},[_vm._v(_vm._s(content))])]}}],null,false,3051540671)}):[_vm._v("\n "+_vm._s(_vm.titlePopover.description)+"\n ")]],2)]:_vm._e()],2),_vm._v(" "),(_vm.shouldShowActions)?_c('gl-disclosure-dropdown',{attrs:{"items":_vm.actions,"icon":"ellipsis_v","toggle-text":_vm.actionsToggleText,"text-sr-only":"","no-caret":"","placement":"bottom-end","fluid-width":"","toggle-class":"gl-ml-1","category":"tertiary","positioning-strategy":"fixed"},on:{"shown":function($event){return _vm.$emit('dropdownOpen')},"hidden":function($event){return _vm.$emit('dropdownClosed')}},scopedSlots:_vm._u([{key:"list-item",fn:function(ref){
|
|
136
|
+
return [_c('gl-link',{staticClass:"gl-text-sm",attrs:{"href":_vm.titlePopover.descriptionLink}},[_vm._v(_vm._s(content))])]}}],null,false,3051540671)}):[_vm._v("\n "+_vm._s(_vm.titlePopover.description)+"\n ")]],2)]:_vm._e()],2),_vm._v(" "),(_vm.shouldShowActions || _vm.$scopedSlots.filters)?_c('div',{staticClass:"gl-flex gl-flex-col gl-items-end gl-gap-2",attrs:{"data-testid":"panel-actions-filters-container"}},[(_vm.shouldShowActions)?_c('gl-disclosure-dropdown',{attrs:{"items":_vm.actions,"icon":"ellipsis_v","toggle-text":_vm.actionsToggleText,"text-sr-only":"","no-caret":"","placement":"bottom-end","fluid-width":"","toggle-class":"gl-ml-1","category":"tertiary","positioning-strategy":"fixed"},on:{"shown":function($event){return _vm.$emit('dropdownOpen')},"hidden":function($event){return _vm.$emit('dropdownClosed')}},scopedSlots:_vm._u([{key:"list-item",fn:function(ref){
|
|
137
137
|
var item = ref.item;
|
|
138
|
-
return [_c('span',[_c('gl-icon',{attrs:{"name":item.icon}}),_vm._v(" "+_vm._s(item.text))],1)]}}],null,false,3632670457)}):_vm._e()],1),_vm._v(" "),_c('div',{class:_vm.bodyClasses},[(_vm.loading)?[_c('gl-loading-icon',{staticClass:"gl-min-h-8 gl-w-full",attrs:{"size":"lg"}}),_vm._v(" "),(_vm.isLoadingDelayed)?_c('div',{staticClass:"gl-w-full gl-text-subtle",attrs:{"data-testId":"panel-loading-delayed-indicator"}},[_vm._v("\n "+_vm._s(_vm.loadingDelayedText)+"\n ")]):_vm._e()]:_vm._t("body")],2),_vm._v(" "),_vm._t("alert-message",null,{"panelId":_vm.panelId})],2)])};
|
|
138
|
+
return [_c('span',[_c('gl-icon',{attrs:{"name":item.icon}}),_vm._v(" "+_vm._s(item.text))],1)]}}],null,false,3632670457)}):_vm._e(),_vm._v(" "),(_vm.$scopedSlots.filters)?_c('div',{staticClass:"gl-flex gl-items-center gl-justify-end gl-pb-2",attrs:{"data-testid":"panel-filters-container"}},[_vm._t("filters")],2):_vm._e()],1):_vm._e()]),_vm._v(" "),_c('div',{class:_vm.bodyClasses},[(_vm.loading)?[_c('gl-loading-icon',{staticClass:"gl-min-h-8 gl-w-full",attrs:{"size":"lg"}}),_vm._v(" "),(_vm.isLoadingDelayed)?_c('div',{staticClass:"gl-w-full gl-text-subtle",attrs:{"data-testId":"panel-loading-delayed-indicator"}},[_vm._v("\n "+_vm._s(_vm.loadingDelayedText)+"\n ")]):_vm._e()]:_vm._t("body")],2),_vm._v(" "),_vm._t("alert-message",null,{"panelId":_vm.panelId})],2)])};
|
|
139
139
|
var __vue_staticRenderFns__ = [];
|
|
140
140
|
|
|
141
141
|
/* style */
|
|
@@ -7,6 +7,7 @@ import { isVnodeEmpty } from '../../../utils/is_slot_empty';
|
|
|
7
7
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
8
8
|
|
|
9
9
|
//
|
|
10
|
+
|
|
10
11
|
const filterEmptyNodesVue2 = filter(vNode => typeof vNode.tag === 'string' || vNode.text.trim() !== '');
|
|
11
12
|
const {
|
|
12
13
|
Fragment
|