@gitlab/ui 136.3.2 → 137.0.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/dist/components/base/alert/alert.js +4 -4
- package/dist/components/base/datepicker/datepicker.js +1 -1
- package/dist/components/base/infinite_scroll/infinite_scroll.js +12 -3
- package/dist/components/base/new_dropdowns/constants.js +2 -2
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +1 -1
- package/dist/components/base/sorting/sorting.js +2 -2
- package/dist/components/charts/chart/chart.js +1 -1
- package/dist/components/charts/sparkline/sparkline.js +2 -2
- package/dist/components/dashboards/dashboard_panel/dashboard_panel.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip-template.js +4 -2
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +3 -1
- package/dist/vendor/bootstrap-vue/src/directives/tooltip/tooltip.js +2 -1
- package/package.json +1 -1
- package/src/components/base/alert/alert.vue +4 -4
- package/src/components/base/datepicker/datepicker.vue +1 -1
- package/src/components/base/infinite_scroll/infinite_scroll.vue +7 -3
- package/src/components/base/new_dropdowns/constants.js +2 -2
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.vue +1 -1
- package/src/components/base/sorting/sorting.vue +2 -2
- package/src/components/base/toggle/toggle.scss +29 -1
- package/src/components/charts/chart/chart.vue +1 -1
- package/src/components/charts/sparkline/sparkline.vue +2 -2
- package/src/components/dashboards/dashboard_panel/dashboard_panel.vue +2 -2
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +34 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.json +34 -0
- package/src/tokens/build/tailwind/tokens.cjs +1 -0
- package/src/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip-template.js +4 -2
- package/src/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +3 -1
- package/src/vendor/bootstrap-vue/src/directives/tooltip/tooltip.js +2 -1
|
@@ -192,19 +192,19 @@ var script = {
|
|
|
192
192
|
/**
|
|
193
193
|
* Emitted when the primary action button is clicked.
|
|
194
194
|
*
|
|
195
|
-
* @event
|
|
195
|
+
* @event primary-action
|
|
196
196
|
* @type {object}
|
|
197
197
|
*/
|
|
198
|
-
this.$emit('
|
|
198
|
+
this.$emit('primary-action', event);
|
|
199
199
|
},
|
|
200
200
|
secondaryButtonClicked(event) {
|
|
201
201
|
/**
|
|
202
202
|
* Emitted when the secondary action button is clicked.
|
|
203
203
|
*
|
|
204
|
-
* @event
|
|
204
|
+
* @event secondary-action
|
|
205
205
|
* @type {object}
|
|
206
206
|
*/
|
|
207
|
-
this.$emit('
|
|
207
|
+
this.$emit('secondary-action', event);
|
|
208
208
|
},
|
|
209
209
|
onDismiss() {
|
|
210
210
|
/**
|
|
@@ -77,9 +77,18 @@ var script = {
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
async mounted() {
|
|
80
|
+
var _this = this;
|
|
80
81
|
// Scroll to bottom for reverse effect
|
|
81
82
|
await this.$nextTick();
|
|
82
|
-
|
|
83
|
+
|
|
84
|
+
// Check both kebab-case (Vue 2) and camelCase (@vue/compat) $listeners.
|
|
85
|
+
const listening = function () {
|
|
86
|
+
for (var _len = arguments.length, names = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
87
|
+
names[_key] = arguments[_key];
|
|
88
|
+
}
|
|
89
|
+
return names.some(name => _this.$listeners[name]);
|
|
90
|
+
};
|
|
91
|
+
if (listening('top-reached', 'topReached') && !listening('bottom-reached', 'bottomReached')) {
|
|
83
92
|
this.scrollDown();
|
|
84
93
|
}
|
|
85
94
|
},
|
|
@@ -124,13 +133,13 @@ var script = {
|
|
|
124
133
|
/**
|
|
125
134
|
* Emitted when item container is scrolled to the top
|
|
126
135
|
*/
|
|
127
|
-
this.$emit('
|
|
136
|
+
this.$emit('top-reached');
|
|
128
137
|
}, throttleDuration),
|
|
129
138
|
bottomReached: throttle(function bottomReachedThrottled() {
|
|
130
139
|
/**
|
|
131
140
|
* Emitted when item container is scrolled to the bottom
|
|
132
141
|
*/
|
|
133
|
-
this.$emit('
|
|
142
|
+
this.$emit('bottom-reached');
|
|
134
143
|
}, throttleDuration),
|
|
135
144
|
itemsListHeight() {
|
|
136
145
|
return this.$refs.infiniteContainer.scrollHeight;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// base dropdown events
|
|
2
2
|
const GL_DROPDOWN_SHOWN = 'shown';
|
|
3
3
|
const GL_DROPDOWN_HIDDEN = 'hidden';
|
|
4
|
-
const GL_DROPDOWN_BEFORE_CLOSE = '
|
|
5
|
-
const GL_DROPDOWN_FOCUS_CONTENT = '
|
|
4
|
+
const GL_DROPDOWN_BEFORE_CLOSE = 'before-close';
|
|
5
|
+
const GL_DROPDOWN_FOCUS_CONTENT = 'focus-content';
|
|
6
6
|
|
|
7
7
|
// KeyboardEvent.code values
|
|
8
8
|
const ARROW_DOWN = 'ArrowDown';
|
|
@@ -145,7 +145,7 @@ var script = {
|
|
|
145
145
|
*
|
|
146
146
|
* @property {boolean} isAscending
|
|
147
147
|
*/
|
|
148
|
-
this.$emit('
|
|
148
|
+
this.$emit('sort-direction-change', newDirection);
|
|
149
149
|
},
|
|
150
150
|
onSortByChanged(event) {
|
|
151
151
|
/**
|
|
@@ -157,7 +157,7 @@ var script = {
|
|
|
157
157
|
*
|
|
158
158
|
* @property {string|number} value
|
|
159
159
|
*/
|
|
160
|
-
this.$emit('
|
|
160
|
+
this.$emit('sort-by-change', event);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
};
|
|
@@ -172,7 +172,7 @@ var script = {
|
|
|
172
172
|
* @property {object} chart The chart instance
|
|
173
173
|
* @property {object} params A params object, see also https://echarts.apache.org/en/api.html#events.Mouse%20events
|
|
174
174
|
*/
|
|
175
|
-
this.$emit('
|
|
175
|
+
this.$emit('chart-item-clicked', {
|
|
176
176
|
chart: this.chart,
|
|
177
177
|
params
|
|
178
178
|
});
|
|
@@ -261,10 +261,10 @@ var script = {
|
|
|
261
261
|
/**
|
|
262
262
|
* Emitted when the chart is created.
|
|
263
263
|
* The payload contains the echarts instance.
|
|
264
|
-
* @event
|
|
264
|
+
* @event chart-created
|
|
265
265
|
* @type {object}
|
|
266
266
|
*/
|
|
267
|
-
this.$emit('
|
|
267
|
+
this.$emit('chart-created', chartInstance);
|
|
268
268
|
},
|
|
269
269
|
handleResize() {
|
|
270
270
|
this.chartInstance.resize();
|
|
@@ -201,7 +201,7 @@ const __vue_script__ = script;
|
|
|
201
201
|
/* template */
|
|
202
202
|
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-rounded-lg gl-bg-default gl-p-5",class:_vm.containerClasses,attrs:{"id":_vm.panelId}},[_c('div',{staticClass:"gl-flex gl-h-full gl-flex-col"},[_c('div',{staticClass:"gl-mb-3 gl-flex gl-items-start gl-justify-between",attrs:{"data-testid":"panel-title"}},[(_vm.loading)?_c('gl-skeleton-loader',{attrs:{"lines":1}}):_c('div',{staticClass:"gl-flex gl-items-center gl-gap-2 gl-overflow-hidden"},[(_vm.hasTitleIcon)?_c('gl-icon',{class:_vm.titleIconClass,attrs:{"name":_vm.titleIcon,"data-testid":"panel-title-icon"}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-min-w-0"},[_c('div',{staticClass:"gl-flex gl-items-center gl-gap-2"},[(_vm.hasTitle)?_c('gl-truncate',{staticClass:"gl-min-w-0 gl-font-bold gl-text-default",attrs:{"text":_vm.title,"with-tooltip":""}}):_vm._e(),_vm._v(" "),(_vm.hasTitlePopover)?[_c('gl-icon',{staticClass:"gl-min-w-5",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,"css-classes":_vm.titlePopoverClasses},scopedSlots:_vm._u([(_vm.hasInfoPopoverTitleSlot)?{key:"title",fn:function(){return [_vm._t("info-popover-title")]},proxy:true}:null],null,true)},[_vm._v(" "),(_vm.hasInfoPopoverContentSlot)?[_vm._t("info-popover-content")]:_vm._e(),_vm._v(" "),(!_vm.hasInfoPopoverContentSlot)?[(_vm.hasTitlePopoverLink)?_c('gl-sprintf',{attrs:{"message":_vm.titlePopover.description},scopedSlots:_vm._u([{key:"link",fn:function(ref){
|
|
203
203
|
var content = ref.content;
|
|
204
|
-
return [_c('gl-link',{staticClass:"gl-text-sm",attrs:{"href":_vm.titlePopover.descriptionLink}},[_vm._v(_vm._s(content))])]}}],null,false,3051540671)}):[_vm._v(" "+_vm._s(_vm.titlePopover.description)+" ")]]:_vm._e()],2)]:_vm._e()],2),_vm._v(" "),(_vm.subtitle)?_c('p',{staticClass:"gl-mb-0 gl-mt-1 gl-text-sm gl-text-subtle",attrs:{"data-testid":"panel-subtitle"}},[_vm._v("\n "+_vm._s(_vm.subtitle)+"\n ")]):_vm._e()])],1),_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","size":"small"},on:{"shown":function($event){return _vm.$emit('
|
|
204
|
+
return [_c('gl-link',{staticClass:"gl-text-sm",attrs:{"href":_vm.titlePopover.descriptionLink}},[_vm._v(_vm._s(content))])]}}],null,false,3051540671)}):[_vm._v(" "+_vm._s(_vm.titlePopover.description)+" ")]]:_vm._e()],2)]:_vm._e()],2),_vm._v(" "),(_vm.subtitle)?_c('p',{staticClass:"gl-mb-0 gl-mt-1 gl-text-sm gl-text-subtle",attrs:{"data-testid":"panel-subtitle"}},[_vm._v("\n "+_vm._s(_vm.subtitle)+"\n ")]):_vm._e()])],1),_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","size":"small"},on:{"shown":function($event){return _vm.$emit('dropdown-open')},"hidden":function($event){return _vm.$emit('dropdown-closed')}},scopedSlots:_vm._u([{key:"list-item",fn:function(ref){
|
|
205
205
|
var item = ref.item;
|
|
206
206
|
return [_c('span',[_vm._v(_vm._s(item.text))])]}}],null,false,3418607560)}):_vm._e(),_vm._v(" "),(_vm.$scopedSlots.filters)?_c('div',{staticClass:"gl-flex gl-items-center gl-justify-end",attrs:{"data-testid":"panel-filters-container"}},[_vm._t("filters")],2):_vm._e()],1):_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)])};
|
|
207
207
|
var __vue_staticRenderFns__ = [];
|