@gitlab/ui 86.12.0 → 86.13.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 +14 -0
- package/bin/migrate_custom_utils_to_tw.bundled.mjs +96 -52
- package/dist/components/base/accordion/accordion_item.js +1 -1
- package/dist/components/base/avatar_labeled/avatar_labeled.js +1 -1
- package/dist/components/base/badge/badge.js +1 -1
- package/dist/components/base/banner/banner.js +2 -2
- package/dist/components/base/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/base/datepicker/datepicker.js +1 -1
- package/dist/components/base/daterange_picker/daterange_picker.js +2 -2
- package/dist/components/base/dropdown/dropdown.js +1 -1
- package/dist/components/base/dropdown/dropdown_item.js +2 -5
- package/dist/components/base/filtered_search/filtered_search.js +1 -1
- package/dist/components/base/filtered_search/filtered_search_term.js +1 -1
- package/dist/components/base/filtered_search/filtered_search_token.js +1 -1
- package/dist/components/base/filtered_search/filtered_search_token_segment.js +1 -1
- package/dist/components/base/form/form_combobox/form_combobox.js +1 -1
- package/dist/components/base/keyset_pagination/keyset_pagination.js +1 -1
- package/dist/components/base/label/label.js +1 -1
- package/dist/components/base/loading_icon/loading_icon.js +1 -1
- package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +2 -2
- package/dist/components/base/new_dropdowns/base_dropdown/constants.js +1 -1
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown_group.js +1 -1
- package/dist/components/base/new_dropdowns/disclosure/mock_data.js +2 -2
- package/dist/components/base/new_dropdowns/listbox/listbox.js +2 -2
- package/dist/components/base/new_dropdowns/listbox/listbox_group.js +1 -1
- package/dist/components/base/new_dropdowns/listbox/listbox_item.js +2 -2
- package/dist/components/base/pagination/pagination.js +2 -2
- package/dist/components/base/path/path.js +1 -1
- package/dist/components/base/popover/popover.js +1 -1
- package/dist/components/base/search_box_by_click/search_box_by_click.js +1 -1
- package/dist/components/base/table/table.js +1 -1
- package/dist/components/base/toggle/toggle.js +2 -2
- package/dist/components/base/token_selector/token_container.js +1 -1
- package/dist/components/base/token_selector/token_selector.js +4 -4
- package/dist/components/base/token_selector/token_selector_dropdown.js +1 -1
- package/dist/components/charts/area/area.js +1 -1
- package/dist/components/charts/bar/bar.js +1 -1
- package/dist/components/charts/column/column.js +1 -1
- package/dist/components/charts/discrete_scatter/discrete_scatter.js +1 -1
- package/dist/components/charts/heatmap/heatmap.js +1 -1
- package/dist/components/charts/legend/legend.js +4 -4
- package/dist/components/charts/line/line.js +1 -1
- package/dist/components/charts/single_stat/single_stat.js +1 -1
- package/dist/components/charts/sparkline/sparkline.js +1 -1
- package/dist/components/charts/stacked_column/stacked_column.js +1 -1
- package/dist/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.js +1 -3
- package/dist/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.js +2 -2
- package/dist/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.js +5 -5
- package/dist/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.js +1 -1
- package/dist/components/experimental/duo/chat/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.js +1 -1
- package/dist/components/experimental/duo/chat/duo_chat.js +2 -2
- package/dist/components/experimental/duo/user_feedback/user_feedback.js +1 -1
- package/dist/components/experimental/experiment_badge/experiment_badge.js +3 -3
- package/dist/components/regions/empty_state/empty_state.js +5 -5
- package/dist/components/utilities/truncate/truncate.js +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/tokens/tokens_story.js +1 -1
- package/dist/tokens/tokens_table.js +3 -3
- package/dist/utils/charts/constants.js +2 -2
- package/package.json +1 -1
- package/src/components/base/accordion/accordion_item.vue +2 -2
- package/src/components/base/avatar_labeled/avatar_labeled.vue +2 -4
- package/src/components/base/badge/badge.vue +2 -2
- package/src/components/base/banner/banner.vue +2 -2
- package/src/components/base/breadcrumb/breadcrumb.vue +1 -1
- package/src/components/base/datepicker/datepicker.vue +4 -4
- package/src/components/base/daterange_picker/daterange_picker.vue +5 -5
- package/src/components/base/dropdown/dropdown.vue +5 -9
- package/src/components/base/dropdown/dropdown_item.vue +2 -6
- package/src/components/base/filtered_search/filtered_search.vue +1 -1
- package/src/components/base/filtered_search/filtered_search_term.vue +1 -1
- package/src/components/base/filtered_search/filtered_search_token.vue +1 -1
- package/src/components/base/filtered_search/filtered_search_token_segment.vue +1 -1
- package/src/components/base/form/form_combobox/form_combobox.vue +4 -4
- package/src/components/base/icon/icon.md +1 -1
- package/src/components/base/keyset_pagination/keyset_pagination.vue +2 -2
- package/src/components/base/label/label.vue +1 -1
- package/src/components/base/loading_icon/loading_icon.vue +1 -1
- package/src/components/base/markdown/markdown_typescale_demo.html +1 -1
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +2 -2
- package/src/components/base/new_dropdowns/base_dropdown/constants.js +1 -1
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.md +1 -1
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown_group.vue +2 -2
- package/src/components/base/new_dropdowns/disclosure/mock_data.js +2 -2
- package/src/components/base/new_dropdowns/listbox/listbox.md +3 -3
- package/src/components/base/new_dropdowns/listbox/listbox.vue +7 -7
- package/src/components/base/new_dropdowns/listbox/listbox_group.vue +1 -1
- package/src/components/base/new_dropdowns/listbox/listbox_item.vue +2 -2
- package/src/components/base/pagination/pagination.vue +2 -2
- package/src/components/base/path/path.vue +1 -1
- package/src/components/base/popover/popover.vue +2 -2
- package/src/components/base/search_box_by_click/search_box_by_click.vue +5 -5
- package/src/components/base/skeleton_loader/skeleton_loader.md +3 -3
- package/src/components/base/table/table.vue +3 -3
- package/src/components/base/toggle/toggle.vue +2 -2
- package/src/components/base/token_selector/token_container.vue +2 -2
- package/src/components/base/token_selector/token_selector.vue +5 -5
- package/src/components/base/token_selector/token_selector_dropdown.vue +2 -2
- package/src/components/charts/area/area.vue +1 -1
- package/src/components/charts/bar/bar.vue +1 -1
- package/src/components/charts/column/column.vue +1 -1
- package/src/components/charts/discrete_scatter/discrete_scatter.vue +1 -1
- package/src/components/charts/heatmap/heatmap.vue +1 -1
- package/src/components/charts/legend/legend.vue +5 -5
- package/src/components/charts/line/line.vue +1 -1
- package/src/components/charts/single_stat/single_stat.vue +7 -13
- package/src/components/charts/sparkline/sparkline.vue +7 -7
- package/src/components/charts/stacked_column/stacked_column.vue +1 -1
- package/src/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.vue +4 -7
- package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.vue +4 -4
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.vue +6 -6
- package/src/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.vue +4 -4
- package/src/components/experimental/duo/chat/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.vue +1 -1
- package/src/components/experimental/duo/chat/duo_chat.vue +20 -22
- package/src/components/experimental/duo/user_feedback/user_feedback.vue +2 -2
- package/src/components/experimental/experiment_badge/experiment_badge.vue +4 -4
- package/src/components/regions/empty_state/empty_state.vue +9 -17
- package/src/components/utilities/truncate/truncate.vue +1 -3
- package/src/internal/color_contrast/color_contrast.vue +3 -3
- package/src/scss/storybook.scss +6 -3
- package/src/scss/tailwind.css +2 -0
- package/src/tokens/tokens_story.vue +5 -5
- package/src/tokens/tokens_table.vue +5 -5
- package/src/utils/charts/constants.js +2 -3
- package/tailwind.defaults.js +1 -0
|
@@ -267,7 +267,7 @@ export default {
|
|
|
267
267
|
},
|
|
268
268
|
panelClasses() {
|
|
269
269
|
return {
|
|
270
|
-
'gl-
|
|
270
|
+
'!gl-block': this.visible,
|
|
271
271
|
[FIXED_WIDTH_CLASS]: !this.fluidWidth,
|
|
272
272
|
'gl-fixed': this.openedYet && this.isFixed,
|
|
273
273
|
'gl-absolute': this.openedYet && !this.isFixed,
|
|
@@ -478,7 +478,7 @@ export default {
|
|
|
478
478
|
<template>
|
|
479
479
|
<component
|
|
480
480
|
:is="wrapperComponent"
|
|
481
|
-
:class="[$options.BASE_DROPDOWN_CLASS, { 'gl-
|
|
481
|
+
:class="[$options.BASE_DROPDOWN_CLASS, { '!gl-block': block }]"
|
|
482
482
|
@close="close"
|
|
483
483
|
>
|
|
484
484
|
<component
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const FIXED_WIDTH_CLASS = 'gl-w-31
|
|
1
|
+
export const FIXED_WIDTH_CLASS = '!gl-w-31';
|
|
2
2
|
export const DEFAULT_OFFSET = 4;
|
|
@@ -112,7 +112,7 @@ template. If you want to render a custom template for items, use the
|
|
|
112
112
|
```html
|
|
113
113
|
<gl-disclosure-dropdown :items="items">
|
|
114
114
|
<template #list-item="{ item }">
|
|
115
|
-
<span class="gl-
|
|
115
|
+
<span class="gl-flex gl-items-center gl-justify-between">
|
|
116
116
|
{{item.text}}
|
|
117
117
|
<gl-icon v-if="item.icon" :name="item.icon" />
|
|
118
118
|
</span>
|
|
@@ -81,11 +81,11 @@ export default {
|
|
|
81
81
|
v-if="showHeader"
|
|
82
82
|
:id="nameId"
|
|
83
83
|
aria-hidden="true"
|
|
84
|
-
class="gl-
|
|
84
|
+
class="gl-py-2 gl-pl-4 gl-text-sm gl-font-bold"
|
|
85
85
|
>
|
|
86
86
|
<slot name="group-label">{{ group.name }}</slot>
|
|
87
87
|
</div>
|
|
88
|
-
<ul :aria-labelledby="groupLabeledBy" class="gl-mb-0 gl-
|
|
88
|
+
<ul :aria-labelledby="groupLabeledBy" class="gl-mb-0 gl-list-none gl-pl-0">
|
|
89
89
|
<slot>
|
|
90
90
|
<!-- eslint-disable vue/valid-v-for -->
|
|
91
91
|
<gl-disclosure-dropdown-item
|
|
@@ -30,7 +30,7 @@ export const mockItems = [
|
|
|
30
30
|
console.log('CLOSED');
|
|
31
31
|
},
|
|
32
32
|
extraAttrs: {
|
|
33
|
-
class: 'gl-text-red-500
|
|
33
|
+
class: '!gl-text-red-500',
|
|
34
34
|
rel: 'nofollow',
|
|
35
35
|
'data-method': 'put',
|
|
36
36
|
},
|
|
@@ -74,7 +74,7 @@ export const mockItemsCustomItem = [
|
|
|
74
74
|
// eslint-disable-next-line no-console
|
|
75
75
|
console.log('clicked!');
|
|
76
76
|
},
|
|
77
|
-
wrapperClass: 'gl-
|
|
77
|
+
wrapperClass: 'sm:!gl-hidden',
|
|
78
78
|
},
|
|
79
79
|
];
|
|
80
80
|
|
|
@@ -89,10 +89,10 @@ template. If you want to render a custom template for items, use the
|
|
|
89
89
|
```html
|
|
90
90
|
<gl-collapsible-listbox :items="items">
|
|
91
91
|
<template #list-item="{ item }">
|
|
92
|
-
<span class="gl-
|
|
92
|
+
<span class="gl-flex gl-items-center">
|
|
93
93
|
<gl-avatar :size="32" class-="gl-mr-3"/>
|
|
94
|
-
<span class="gl-
|
|
95
|
-
<span class="gl-font-
|
|
94
|
+
<span class="gl-flex gl-flex-col">
|
|
95
|
+
<span class="gl-font-bold gl-whitespace-nowrap">{{ item.text }}</span>
|
|
96
96
|
<span class="gl-text-subtle"> {{ item.secondaryText }}</span>
|
|
97
97
|
</span>
|
|
98
98
|
</span>
|
|
@@ -471,7 +471,7 @@ export default {
|
|
|
471
471
|
const toggleClasses = [this.toggleClass];
|
|
472
472
|
|
|
473
473
|
if (!this.hasSelection) {
|
|
474
|
-
toggleClasses.push('gl-text-gray-500
|
|
474
|
+
toggleClasses.push('!gl-text-gray-500');
|
|
475
475
|
}
|
|
476
476
|
return toggleClasses;
|
|
477
477
|
},
|
|
@@ -790,12 +790,12 @@ export default {
|
|
|
790
790
|
|
|
791
791
|
<div
|
|
792
792
|
v-if="headerText"
|
|
793
|
-
class="gl-
|
|
793
|
+
class="gl-flex gl-min-h-8 gl-items-center !gl-p-4"
|
|
794
794
|
:class="$options.HEADER_ITEMS_BORDER_CLASSES"
|
|
795
795
|
>
|
|
796
796
|
<div
|
|
797
797
|
:id="headerId"
|
|
798
|
-
class="gl-
|
|
798
|
+
class="gl-grow gl-pr-2 gl-text-sm gl-font-bold"
|
|
799
799
|
data-testid="listbox-header-text"
|
|
800
800
|
>
|
|
801
801
|
{{ headerText }}
|
|
@@ -803,7 +803,7 @@ export default {
|
|
|
803
803
|
<gl-button
|
|
804
804
|
v-if="showResetButton"
|
|
805
805
|
category="tertiary"
|
|
806
|
-
class="gl-
|
|
806
|
+
class="!gl-m-0 !gl-w-auto gl-max-w-1/2 gl-flex-shrink-0 gl-text-ellipsis !gl-px-2 !gl-py-2 !gl-text-sm focus:!gl-shadow-inner-2-blue-400"
|
|
807
807
|
data-testid="listbox-reset-button"
|
|
808
808
|
@click="onResetButtonClicked"
|
|
809
809
|
>
|
|
@@ -812,7 +812,7 @@ export default {
|
|
|
812
812
|
<gl-button
|
|
813
813
|
v-if="showSelectAllButton"
|
|
814
814
|
category="tertiary"
|
|
815
|
-
class="gl-
|
|
815
|
+
class="!gl-m-0 !gl-w-auto gl-max-w-1/2 gl-flex-shrink-0 gl-text-ellipsis !gl-px-2 !gl-py-2 !gl-text-sm focus:!gl-shadow-inner-2-blue-400"
|
|
816
816
|
data-testid="listbox-select-all-button"
|
|
817
817
|
@click="onSelectAllButtonClicked"
|
|
818
818
|
>
|
|
@@ -919,7 +919,7 @@ export default {
|
|
|
919
919
|
aria-hidden="true"
|
|
920
920
|
data-testid="bottom-scrim"
|
|
921
921
|
>
|
|
922
|
-
<div class="bottom-scrim" :class="{ 'gl-rounded-
|
|
922
|
+
<div class="bottom-scrim" :class="{ '!gl-rounded-none': hasFooter }"></div>
|
|
923
923
|
</component>
|
|
924
924
|
</component>
|
|
925
925
|
<span
|
|
@@ -937,7 +937,7 @@ export default {
|
|
|
937
937
|
<div
|
|
938
938
|
v-else-if="showNoResultsText"
|
|
939
939
|
aria-live="assertive"
|
|
940
|
-
class="gl-pl-7 gl-pr-5 gl-
|
|
940
|
+
class="gl-py-3 gl-pl-7 gl-pr-5 gl-text-base gl-text-gray-600"
|
|
941
941
|
data-testid="listbox-no-results-text"
|
|
942
942
|
>
|
|
943
943
|
{{ noResultsText }}
|
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
<li
|
|
26
26
|
:id="nameId"
|
|
27
27
|
role="presentation"
|
|
28
|
-
class="gl-pl-4 gl-pt-3 gl-
|
|
28
|
+
class="gl-pb-2 gl-pl-4 gl-pt-3 gl-text-sm gl-font-bold"
|
|
29
29
|
:class="{ 'gl-sr-only': textSrOnly }"
|
|
30
30
|
>
|
|
31
31
|
<slot name="group-label">{{ name }}</slot>
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
return '';
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
return 'gl-mt-3 gl-
|
|
34
|
+
return 'gl-mt-3 gl-self-start';
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
methods: {
|
|
@@ -65,7 +65,7 @@ export default {
|
|
|
65
65
|
data-testid="dropdown-item-checkbox"
|
|
66
66
|
:class="[
|
|
67
67
|
'gl-new-dropdown-item-check-icon',
|
|
68
|
-
{ 'gl-
|
|
68
|
+
{ 'gl-invisible': !isSelected },
|
|
69
69
|
checkedClasses,
|
|
70
70
|
]"
|
|
71
71
|
/>
|
|
@@ -402,7 +402,7 @@ export default {
|
|
|
402
402
|
<component
|
|
403
403
|
:is="prevPageIsDisabled ? 'span' : 'a'"
|
|
404
404
|
data-testid="page-link"
|
|
405
|
-
class="gl-link page-link prev-page-item gl-
|
|
405
|
+
class="gl-link page-link prev-page-item gl-flex"
|
|
406
406
|
:aria-label="prevPageAriaLabel"
|
|
407
407
|
:href="prevPageHref"
|
|
408
408
|
@click="handlePrevious($event, value - 1)"
|
|
@@ -469,7 +469,7 @@ export default {
|
|
|
469
469
|
<component
|
|
470
470
|
:is="nextPageIsDisabled ? 'span' : 'a'"
|
|
471
471
|
data-testid="page-link"
|
|
472
|
-
class="gl-link page-link next-page-item gl-
|
|
472
|
+
class="gl-link page-link next-page-item gl-flex"
|
|
473
473
|
:aria-label="nextPageAriaLabel"
|
|
474
474
|
:href="nextPageHref"
|
|
475
475
|
@click="handleNext($event, value + 1)"
|
|
@@ -185,7 +185,7 @@ export default {
|
|
|
185
185
|
class="gl-mr-2"
|
|
186
186
|
data-testid="gl-path-item-icon"
|
|
187
187
|
/>{{ item.title
|
|
188
|
-
}}<span v-if="item.metric" class="gl-
|
|
188
|
+
}}<span v-if="item.metric" class="gl-pl-2 gl-font-normal">{{ item.metric }}</span>
|
|
189
189
|
</button>
|
|
190
190
|
<!--
|
|
191
191
|
@slot Additional content to be displayed in a path item.
|
|
@@ -98,9 +98,9 @@ export default {
|
|
|
98
98
|
<slot name="title">
|
|
99
99
|
{{ title }}
|
|
100
100
|
</slot>
|
|
101
|
-
<div v-if="showCloseButton" class="gl-
|
|
101
|
+
<div v-if="showCloseButton" class="-gl-mr-3 -gl-mt-2 gl-ml-3 gl-h-0">
|
|
102
102
|
<close-button
|
|
103
|
-
:class="{ 'gl-
|
|
103
|
+
:class="{ 'gl-float-right gl-mt-2': !hasTitle }"
|
|
104
104
|
data-testid="close-button"
|
|
105
105
|
@click="close"
|
|
106
106
|
/>
|
|
@@ -219,7 +219,7 @@ export default {
|
|
|
219
219
|
>
|
|
220
220
|
<template #header>
|
|
221
221
|
<div
|
|
222
|
-
class="gl-search-box-by-click-history-header gl-
|
|
222
|
+
class="gl-search-box-by-click-history-header gl-flex gl-min-h-8 gl-grow gl-items-center gl-border-b-1 gl-border-b-gray-200 !gl-p-4 gl-text-sm gl-font-bold gl-border-b-solid"
|
|
223
223
|
>
|
|
224
224
|
{{ recentSearchesHeader }}
|
|
225
225
|
</div>
|
|
@@ -238,18 +238,18 @@ export default {
|
|
|
238
238
|
</template>
|
|
239
239
|
</gl-disclosure-dropdown-item>
|
|
240
240
|
</template>
|
|
241
|
-
<div v-else class="gl-
|
|
241
|
+
<div v-else class="gl-px-4 gl-py-2 gl-text-sm gl-text-secondary">
|
|
242
242
|
{{ noRecentSearchesText }}
|
|
243
243
|
</div>
|
|
244
244
|
|
|
245
245
|
<template v-if="historyItems.length" #footer>
|
|
246
246
|
<div
|
|
247
|
-
class="gl-border-t-1 gl-border-t-gray-200 gl-
|
|
247
|
+
class="gl-flex gl-flex-col gl-border-t-1 gl-border-t-gray-200 gl-p-2 gl-border-t-solid"
|
|
248
248
|
>
|
|
249
249
|
<gl-button
|
|
250
250
|
ref="clearHistory"
|
|
251
251
|
category="tertiary"
|
|
252
|
-
class="gl-justify-
|
|
252
|
+
class="!gl-justify-start"
|
|
253
253
|
@click="emitClearHistory"
|
|
254
254
|
>
|
|
255
255
|
{{ clearRecentSearchesText }}
|
|
@@ -263,7 +263,7 @@ export default {
|
|
|
263
263
|
ref="input"
|
|
264
264
|
v-model="currentValue"
|
|
265
265
|
class="gl-search-box-by-click-input"
|
|
266
|
-
:class="{ 'gl-rounded-base
|
|
266
|
+
:class="{ '!gl-rounded-base': !showSearchButton }"
|
|
267
267
|
v-bind="inputAttributes"
|
|
268
268
|
:disabled="disabled"
|
|
269
269
|
@focus="isFocused = true"
|
|
@@ -22,9 +22,9 @@ CSS-based approach:
|
|
|
22
22
|
|
|
23
23
|
```html
|
|
24
24
|
<div>
|
|
25
|
-
<div class="gl-animate-skeleton-loader gl-h-4 gl-rounded-base gl-my-3 gl-max-w-20
|
|
26
|
-
<div class="gl-animate-skeleton-loader gl-h-4 gl-rounded-base gl-my-3 gl-max-w-30
|
|
27
|
-
<div class="gl-animate-skeleton-loader gl-h-4 gl-rounded-base gl-my-3 gl-max-w-26
|
|
25
|
+
<div class="gl-animate-skeleton-loader gl-h-4 gl-rounded-base gl-my-3 !gl-max-w-20"></div>
|
|
26
|
+
<div class="gl-animate-skeleton-loader gl-h-4 gl-rounded-base gl-my-3 !gl-max-w-30"></div>
|
|
27
|
+
<div class="gl-animate-skeleton-loader gl-h-4 gl-rounded-base gl-my-3 !gl-max-w-26"></div>
|
|
28
28
|
</div>
|
|
29
29
|
```
|
|
30
30
|
|
|
@@ -108,15 +108,15 @@ export default {
|
|
|
108
108
|
<slot :name="slotName" v-bind="scope"></slot>
|
|
109
109
|
</template>
|
|
110
110
|
<template v-for="headSlotName in headSlots" #[headSlotName]="scope">
|
|
111
|
-
<div :key="headSlotName" class="gl-
|
|
111
|
+
<div :key="headSlotName" class="gl-flex">
|
|
112
112
|
<slot :name="headSlotName" v-bind="scope"
|
|
113
113
|
><span>{{ scope.label }}</span></slot
|
|
114
114
|
><template v-if="isSortable(scope)">
|
|
115
|
-
<div class="gl-ml-2 gl-
|
|
115
|
+
<div class="gl-ml-2 gl-flex gl-w-5 gl-justify-center">
|
|
116
116
|
<span
|
|
117
117
|
name="sort-icon"
|
|
118
118
|
data-testid="sort-icon"
|
|
119
|
-
:class="{ 'gl-
|
|
119
|
+
:class="{ 'gl-hidden': !activeSortingColumn(scope) }"
|
|
120
120
|
>
|
|
121
121
|
{{ getSortingIcon(scope) }}
|
|
122
122
|
</span>
|
|
@@ -141,9 +141,9 @@ export default {
|
|
|
141
141
|
|
|
142
142
|
<template>
|
|
143
143
|
<div
|
|
144
|
-
class="gl-toggle-wrapper gl-
|
|
144
|
+
class="gl-toggle-wrapper gl-mb-0 gl-flex"
|
|
145
145
|
:class="{
|
|
146
|
-
'gl-flex-
|
|
146
|
+
'gl-flex-col': isVerticalLayout,
|
|
147
147
|
'gl-toggle-label-inline': !isVerticalLayout,
|
|
148
148
|
'is-disabled': disabled,
|
|
149
149
|
}"
|
|
@@ -128,10 +128,10 @@ export default {
|
|
|
128
128
|
</script>
|
|
129
129
|
|
|
130
130
|
<template>
|
|
131
|
-
<div class="gl-
|
|
131
|
+
<div class="gl-flex gl-w-full gl-flex-nowrap gl-items-start">
|
|
132
132
|
<div
|
|
133
133
|
ref="tokenContainer"
|
|
134
|
-
class="gl-
|
|
134
|
+
class="-gl-mx-1 -gl-my-1 gl-flex gl-w-full gl-flex-wrap gl-items-center"
|
|
135
135
|
role="listbox"
|
|
136
136
|
aria-multiselectable="false"
|
|
137
137
|
aria-orientation="horizontal"
|
|
@@ -176,12 +176,12 @@ export default {
|
|
|
176
176
|
},
|
|
177
177
|
stateClass() {
|
|
178
178
|
if (this.state === null) {
|
|
179
|
-
return 'gl-
|
|
179
|
+
return '!gl-shadow-inner-1-gray-400';
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
return this.state
|
|
183
|
-
? 'is-valid gl-
|
|
184
|
-
: 'is-invalid gl-
|
|
183
|
+
? 'is-valid !gl-shadow-inner-1-gray-400'
|
|
184
|
+
: 'is-invalid !gl-shadow-inner-1-red-500';
|
|
185
185
|
},
|
|
186
186
|
hasSelectedTokens() {
|
|
187
187
|
return this.selectedTokens.length > 0;
|
|
@@ -385,7 +385,7 @@ export default {
|
|
|
385
385
|
<div>
|
|
386
386
|
<div
|
|
387
387
|
ref="container"
|
|
388
|
-
class="gl-token-selector gl-form-input
|
|
388
|
+
class="gl-token-selector gl-form-input form-control form-control-plaintext gl-flex !gl-cursor-text gl-items-center !gl-px-3 !gl-py-2"
|
|
389
389
|
:class="[inputFocused ? 'gl-token-selector-focus-glow' : '', containerClass, stateClass]"
|
|
390
390
|
@click="handleContainerClick"
|
|
391
391
|
>
|
|
@@ -415,7 +415,7 @@ export default {
|
|
|
415
415
|
<input
|
|
416
416
|
ref="textInput"
|
|
417
417
|
type="text"
|
|
418
|
-
class="gl-token-selector-input gl-
|
|
418
|
+
class="gl-token-selector-input gl-h-auto gl-w-4/10 gl-grow gl-border-none gl-bg-transparent gl-px-1 gl-font-regular gl-text-base gl-leading-normal gl-text-gray-900 gl-outline-none"
|
|
419
419
|
:value="inputText"
|
|
420
420
|
:autocomplete="autocomplete"
|
|
421
421
|
:aria-labelledby="ariaLabelledby"
|
|
@@ -195,7 +195,7 @@ export default {
|
|
|
195
195
|
tabindex="-1"
|
|
196
196
|
@click="handleDropdownItemClick(dropdownItem)"
|
|
197
197
|
>
|
|
198
|
-
<div class="gl-mx-
|
|
198
|
+
<div class="-gl-mx-4 -gl-my-3 gl-px-4 gl-py-3" @mousedown="handleMousedown(dropdownItem)">
|
|
199
199
|
<slot name="dropdown-item-content" :dropdown-item="dropdownItem">
|
|
200
200
|
{{ dropdownItem.name }}
|
|
201
201
|
</slot>
|
|
@@ -210,7 +210,7 @@ export default {
|
|
|
210
210
|
active-class="is-focused"
|
|
211
211
|
@click="handleDropdownItemClick(null)"
|
|
212
212
|
>
|
|
213
|
-
<div class="gl-mx-
|
|
213
|
+
<div class="-gl-mx-4 -gl-my-3 gl-px-4 gl-py-3" @mousedown="handleMousedown(null)">
|
|
214
214
|
<slot name="user-defined-token-content" :input-text="inputText">
|
|
215
215
|
Add "{{ inputText }}"
|
|
216
216
|
</slot>
|
|
@@ -319,7 +319,7 @@ export default {
|
|
|
319
319
|
<div class="position-relative" :class="{ [$options.HEIGHT_AUTO_CLASSES]: autoHeight }">
|
|
320
320
|
<chart
|
|
321
321
|
v-bind="$attrs"
|
|
322
|
-
:class="{ 'gl-
|
|
322
|
+
:class="{ 'gl-grow': autoHeight }"
|
|
323
323
|
:height="height"
|
|
324
324
|
:options="options"
|
|
325
325
|
v-on="$listeners"
|
|
@@ -221,7 +221,7 @@ export default {
|
|
|
221
221
|
<div class="position-relative" :class="{ [$options.HEIGHT_AUTO_CLASSES]: autoHeight }">
|
|
222
222
|
<chart
|
|
223
223
|
v-bind="$attrs"
|
|
224
|
-
:class="{ 'gl-
|
|
224
|
+
:class="{ 'gl-grow': autoHeight }"
|
|
225
225
|
:height="height"
|
|
226
226
|
:options="options"
|
|
227
227
|
v-on="$listeners"
|
|
@@ -178,7 +178,7 @@ export default {
|
|
|
178
178
|
<div class="position-relative" :class="{ [$options.HEIGHT_AUTO_CLASSES]: autoHeight }">
|
|
179
179
|
<chart
|
|
180
180
|
v-bind="$attrs"
|
|
181
|
-
:class="{ 'gl-
|
|
181
|
+
:class="{ 'gl-grow': autoHeight }"
|
|
182
182
|
:height="height"
|
|
183
183
|
:options="options"
|
|
184
184
|
v-on="$listeners"
|
|
@@ -183,7 +183,7 @@ export default {
|
|
|
183
183
|
<div class="position-relative" :class="{ [$options.HEIGHT_AUTO_CLASSES]: autoHeight }">
|
|
184
184
|
<chart
|
|
185
185
|
v-bind="$attrs"
|
|
186
|
-
:class="{ 'gl-
|
|
186
|
+
:class="{ 'gl-grow': autoHeight }"
|
|
187
187
|
:height="height"
|
|
188
188
|
:options="options"
|
|
189
189
|
v-on="$listeners"
|
|
@@ -257,7 +257,7 @@ export default {
|
|
|
257
257
|
<div class="gl-heatmap" :class="{ [$options.HEIGHT_AUTO_CLASSES]: autoHeight }">
|
|
258
258
|
<chart
|
|
259
259
|
v-bind="$attrs"
|
|
260
|
-
:class="{ 'gl-
|
|
260
|
+
:class="{ 'gl-grow': autoHeight }"
|
|
261
261
|
:height="height"
|
|
262
262
|
:options="computedOptions"
|
|
263
263
|
@created="onCreated"
|
|
@@ -199,7 +199,7 @@ export default {
|
|
|
199
199
|
:class="{
|
|
200
200
|
'text-muted': disabledSeries[key],
|
|
201
201
|
'w-100': seriesNameIsLong(series.name),
|
|
202
|
-
'gl-
|
|
202
|
+
'hover:!gl-cursor-not-allowed':
|
|
203
203
|
hasOneSeriesElement || isToggleDisabled(series.name, series.disabled),
|
|
204
204
|
}"
|
|
205
205
|
class="gl-legend-inline-series"
|
|
@@ -216,11 +216,11 @@ export default {
|
|
|
216
216
|
class="gl-legend-inline-series-label"
|
|
217
217
|
:class="{ 'w-75': seriesNameIsLong(series.name) }"
|
|
218
218
|
>
|
|
219
|
-
<gl-truncate class="gl-font-
|
|
219
|
+
<gl-truncate class="gl-font-bold" :text="series.name" />
|
|
220
220
|
</gl-chart-series-label>
|
|
221
221
|
<span
|
|
222
222
|
v-if="series.data && series.data.length"
|
|
223
|
-
:class="{ 'gl-
|
|
223
|
+
:class="{ 'gl-whitespace-nowrap': seriesNameIsLong(series.name) }"
|
|
224
224
|
>
|
|
225
225
|
{{ averageText }}: {{ seriesAverage(series.data) }} · {{ maxText }}:
|
|
226
226
|
{{ seriesMax(series.data) }}
|
|
@@ -243,7 +243,7 @@ export default {
|
|
|
243
243
|
:key="key"
|
|
244
244
|
:class="{
|
|
245
245
|
'text-muted': disabledSeries[key],
|
|
246
|
-
'gl-
|
|
246
|
+
'hover:!gl-cursor-not-allowed':
|
|
247
247
|
hasOneSeriesElement || isToggleDisabled(series.name, series.disabled),
|
|
248
248
|
}"
|
|
249
249
|
class="gl-legend-tabular-row"
|
|
@@ -260,7 +260,7 @@ export default {
|
|
|
260
260
|
:style="fontStyle"
|
|
261
261
|
:type="series.type"
|
|
262
262
|
>
|
|
263
|
-
<gl-truncate class="gl-font-
|
|
263
|
+
<gl-truncate class="gl-font-bold" :text="series.name" />
|
|
264
264
|
</gl-chart-series-label>
|
|
265
265
|
</div>
|
|
266
266
|
|
|
@@ -315,7 +315,7 @@ export default {
|
|
|
315
315
|
<div class="position-relative" :class="{ [$options.HEIGHT_AUTO_CLASSES]: autoHeight }">
|
|
316
316
|
<chart
|
|
317
317
|
v-bind="$attrs"
|
|
318
|
-
:class="{ 'gl-
|
|
318
|
+
:class="{ 'gl-grow': autoHeight }"
|
|
319
319
|
:height="height"
|
|
320
320
|
:options="options"
|
|
321
321
|
v-on="$listeners"
|
|
@@ -116,25 +116,19 @@ export default {
|
|
|
116
116
|
</script>
|
|
117
117
|
|
|
118
118
|
<template>
|
|
119
|
-
<div
|
|
120
|
-
class="gl-
|
|
121
|
-
v-bind="$attrs"
|
|
122
|
-
v-on="$listeners"
|
|
123
|
-
>
|
|
124
|
-
<div class="gl-display-flex gl-align-items-center gl-mb-2 gl-text-gray-700">
|
|
119
|
+
<div class="gl-single-stat gl-flex gl-flex-col gl-p-2" v-bind="$attrs" v-on="$listeners">
|
|
120
|
+
<div class="gl-mb-2 gl-flex gl-items-center gl-text-gray-700">
|
|
125
121
|
<gl-icon
|
|
126
122
|
v-if="showTitleIcon"
|
|
127
123
|
:name="titleIcon"
|
|
128
124
|
:class="['gl-mr-2', titleIconClass]"
|
|
129
125
|
data-testid="title-icon"
|
|
130
126
|
/>
|
|
131
|
-
<span class="gl-
|
|
127
|
+
<span class="gl-text-base gl-font-normal" data-testid="title-text">{{ title }}</span>
|
|
132
128
|
</div>
|
|
133
|
-
<div
|
|
134
|
-
class="gl-single-stat-content gl-display-flex gl-align-items-baseline gl-font-weight-bold gl-text-gray-900"
|
|
135
|
-
>
|
|
129
|
+
<div class="gl-single-stat-content gl-flex gl-items-baseline gl-font-bold gl-text-gray-900">
|
|
136
130
|
<span
|
|
137
|
-
class="gl-single-stat-number gl-
|
|
131
|
+
class="gl-single-stat-number gl-leading-1"
|
|
138
132
|
:class="{ 'gl-mr-2': !unit }"
|
|
139
133
|
data-testid="displayValue"
|
|
140
134
|
>
|
|
@@ -150,8 +144,8 @@ export default {
|
|
|
150
144
|
>
|
|
151
145
|
<span
|
|
152
146
|
v-if="unit"
|
|
153
|
-
class="gl-
|
|
154
|
-
:class="{ 'gl-opacity-0
|
|
147
|
+
class="gl-mx-2 gl-text-sm gl-opacity-10 gl-transition-all"
|
|
148
|
+
:class="{ '!gl-opacity-0': hideUnits }"
|
|
155
149
|
data-testid="unit"
|
|
156
150
|
>{{ unit }}</span
|
|
157
151
|
>
|
|
@@ -240,18 +240,18 @@ export default {
|
|
|
240
240
|
<template>
|
|
241
241
|
<div
|
|
242
242
|
v-resize-observer="handleResize"
|
|
243
|
-
class="gl-
|
|
243
|
+
class="gl-flex gl-items-center"
|
|
244
244
|
:class="{ 'gl-h-full': autoHeight }"
|
|
245
245
|
>
|
|
246
246
|
<slot name="default"></slot>
|
|
247
247
|
<div
|
|
248
248
|
data-testid="chart-container"
|
|
249
|
-
class="gl-
|
|
249
|
+
class="gl-relative gl-grow"
|
|
250
250
|
:class="{ [$options.HEIGHT_AUTO_HORIZONTAL_LAYOUT_CLASSES]: autoHeight }"
|
|
251
251
|
>
|
|
252
252
|
<chart
|
|
253
253
|
v-bind="$attrs"
|
|
254
|
-
:class="{ 'gl-
|
|
254
|
+
:class="{ 'gl-grow': autoHeight }"
|
|
255
255
|
:height="height"
|
|
256
256
|
:options="options"
|
|
257
257
|
@created="onChartCreated"
|
|
@@ -266,13 +266,13 @@ export default {
|
|
|
266
266
|
placement="top"
|
|
267
267
|
>
|
|
268
268
|
<template #title>
|
|
269
|
-
<div data-testid="tooltip-title" class="gl-
|
|
269
|
+
<div data-testid="tooltip-title" class="gl-whitespace-nowrap">
|
|
270
270
|
{{ tooltip.title }}
|
|
271
271
|
</div>
|
|
272
272
|
</template>
|
|
273
273
|
<template #default>
|
|
274
|
-
<div class="gl-
|
|
275
|
-
<span v-if="tooltipLabel" class="gl-
|
|
274
|
+
<div class="gl-flex" data-testid="tooltip-content">
|
|
275
|
+
<span v-if="tooltipLabel" class="gl-mr-auto gl-pr-6">{{ tooltipLabel }}</span>
|
|
276
276
|
<strong>{{ tooltip.content }}</strong>
|
|
277
277
|
</div>
|
|
278
278
|
</template>
|
|
@@ -280,7 +280,7 @@ export default {
|
|
|
280
280
|
</div>
|
|
281
281
|
<span
|
|
282
282
|
v-if="showLastYValue"
|
|
283
|
-
class="gl-
|
|
283
|
+
class="gl-ml-5 gl-inline-flex gl-justify-center"
|
|
284
284
|
data-testid="last-y-value"
|
|
285
285
|
>
|
|
286
286
|
{{ lastYValue }}
|
|
@@ -294,7 +294,7 @@ export default {
|
|
|
294
294
|
<div class="position-relative" :class="{ [$options.HEIGHT_AUTO_CLASSES]: autoHeight }">
|
|
295
295
|
<chart
|
|
296
296
|
v-bind="$attrs"
|
|
297
|
-
:class="{ 'gl-
|
|
297
|
+
:class="{ 'gl-grow': autoHeight }"
|
|
298
298
|
:height="height"
|
|
299
299
|
:options="options"
|
|
300
300
|
v-on="$listeners"
|
|
@@ -62,19 +62,16 @@ export default {
|
|
|
62
62
|
</script>
|
|
63
63
|
<template>
|
|
64
64
|
<div
|
|
65
|
-
:class="[
|
|
66
|
-
'gl-display-flex gl-flex-direction-column gl-justify-content-end',
|
|
67
|
-
{ 'insert-code-hidden': !enableCodeInsertion },
|
|
68
|
-
]"
|
|
65
|
+
:class="['gl-flex gl-flex-col gl-justify-end', { 'insert-code-hidden': !enableCodeInsertion }]"
|
|
69
66
|
>
|
|
70
67
|
<div
|
|
71
68
|
v-if="showDelimiter"
|
|
72
|
-
class="gl-my-5 gl-
|
|
69
|
+
class="gl-my-5 gl-flex gl-items-center gl-gap-4 gl-text-gray-500"
|
|
73
70
|
data-testid="conversation-delimiter"
|
|
74
71
|
>
|
|
75
|
-
<hr class="gl-
|
|
72
|
+
<hr class="gl-grow" />
|
|
76
73
|
<span>{{ $options.i18n.CONVERSATION_NEW_CHAT }}</span>
|
|
77
|
-
<hr class="gl-
|
|
74
|
+
<hr class="gl-grow" />
|
|
78
75
|
</div>
|
|
79
76
|
<gl-duo-chat-message
|
|
80
77
|
v-for="(msg, index) in messages"
|
|
@@ -61,8 +61,8 @@ export default {
|
|
|
61
61
|
</script>
|
|
62
62
|
|
|
63
63
|
<template>
|
|
64
|
-
<div class="duo-chat-loader gl-
|
|
65
|
-
<div class="gl-
|
|
64
|
+
<div class="duo-chat-loader gl-flex gl-items-center">
|
|
65
|
+
<div class="gl-mr-3 gl-flex">
|
|
66
66
|
<div class="duo-chat-loader__dot duo-chat-loader__dot--1"></div>
|
|
67
67
|
<div class="duo-chat-loader__dot duo-chat-loader__dot--2"></div>
|
|
68
68
|
<div class="duo-chat-loader__dot duo-chat-loader__dot--3"></div>
|
|
@@ -76,7 +76,7 @@ export default {
|
|
|
76
76
|
<transition-group
|
|
77
77
|
ref="transition"
|
|
78
78
|
name="text"
|
|
79
|
-
class="transition gl-
|
|
79
|
+
class="transition gl-relative gl-inline-block gl-align-bottom"
|
|
80
80
|
@after-leave="computeTransitionWidth"
|
|
81
81
|
>
|
|
82
82
|
<span
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
85
85
|
:ref="isCurrentTransition(index) ? 'currentTransition' : ''"
|
|
86
86
|
:key="message"
|
|
87
87
|
:data-testid="isCurrentTransition(index) ? 'current-transition' : ''"
|
|
88
|
-
class="gl-
|
|
88
|
+
class="gl-absolute gl-bottom-0 gl-left-0 gl-whitespace-nowrap"
|
|
89
89
|
>{{ message }}</span
|
|
90
90
|
>
|
|
91
91
|
</transition-group>
|