@gitlab/ui 49.7.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.
- package/CHANGELOG.md +14 -0
- package/dist/components/base/new_dropdowns/listbox/listbox.js +8 -5
- package/dist/components/base/paginated_list/paginated_list.js +1 -1
- package/dist/components/base/path/path.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/gauge/gauge.js +1 -1
- package/dist/components/charts/heatmap/heatmap.js +1 -1
- package/dist/components/charts/line/line.js +1 -1
- package/dist/components/charts/stacked_column/stacked_column.js +1 -1
- package/dist/components/mixins/toolbox_mixin.js +2 -2
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/dist/utils/use_mock_intersection_observer.js +1 -1
- package/package.json +17 -9
- package/scss_to_js/scss_variables.js +17 -5
- package/scss_to_js/scss_variables.json +70 -10
- package/src/components/base/new_dropdowns/listbox/listbox.vue +10 -7
- package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +0 -8
- package/src/components/base/paginated_list/paginated_list.vue +4 -3
- package/src/components/base/path/__snapshots__/path.spec.js.snap +0 -30
- package/src/components/base/path/path.vue +1 -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/gauge/gauge.vue +1 -1
- package/src/components/charts/heatmap/heatmap.vue +1 -1
- package/src/components/charts/line/line.vue +1 -1
- package/src/components/charts/stacked_column/stacked_column.vue +1 -1
- package/src/components/mixins/toolbox_mixin.js +1 -1
- package/src/components/utilities/intersection_observer/intersection_observer.spec.js +1 -1
- package/src/scss/utilities.scss +24 -0
- package/src/scss/utility-mixins/box-shadow.scss +21 -0
- package/src/scss/variables.scss +19 -5
- package/src/utils/use_mock_intersection_observer.js +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "49.
|
|
3
|
+
"version": "49.9.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
"test:unit": "NODE_ENV=test jest --testPathIgnorePatterns storyshots.spec.js",
|
|
38
38
|
"test:unit:watch": "yarn test:unit --watch",
|
|
39
39
|
"test:unit:debug": "NODE_ENV=test node --inspect node_modules/.bin/jest --testPathIgnorePatterns storyshot.spec.js --watch --runInBand",
|
|
40
|
+
"test:unit-vue3": "VUE_VERSION=3 NODE_ENV=test jest --testPathIgnorePatterns storyshots.spec.js",
|
|
41
|
+
"test:unit-vue3:watch": "VUE_VERSION=3 yarn test:unit --watch --notify",
|
|
42
|
+
"test:unit-vue3:debug": "VUE_VERSION=3 NODE_ENV=test node --inspect node_modules/.bin/jest --testPathIgnorePatterns storyshot.spec.js --watch --runInBand",
|
|
40
43
|
"test:visual": "./bin/run-visual-tests.sh 'jest ./tests/storyshots.spec.js'",
|
|
41
44
|
"test:visual:minimal": "node ./bin/run_minimal_visual_tests.js",
|
|
42
45
|
"test:visual:update": "./bin/run-visual-tests.sh 'JEST_IMAGE_SNAPSHOT_TRACK_OBSOLETE=1 jest ./tests/storyshots.spec.js --updateSnapshot'",
|
|
@@ -78,8 +81,8 @@
|
|
|
78
81
|
},
|
|
79
82
|
"devDependencies": {
|
|
80
83
|
"@arkweid/lefthook": "0.7.7",
|
|
81
|
-
"@babel/core": "^7.
|
|
82
|
-
"@babel/preset-env": "^7.
|
|
84
|
+
"@babel/core": "^7.20.2",
|
|
85
|
+
"@babel/preset-env": "^7.20.2",
|
|
83
86
|
"@gitlab/eslint-plugin": "18.1.0",
|
|
84
87
|
"@gitlab/stylelint-config": "4.1.0",
|
|
85
88
|
"@gitlab/svgs": "3.7.0",
|
|
@@ -94,8 +97,12 @@
|
|
|
94
97
|
"@storybook/addon-viewport": "6.5.13",
|
|
95
98
|
"@storybook/theming": "6.5.13",
|
|
96
99
|
"@storybook/vue": "6.5.13",
|
|
100
|
+
"@vue/compat": "^3.2.40",
|
|
101
|
+
"@vue/compiler-sfc": "^3.2.40",
|
|
97
102
|
"@vue/test-utils": "1.3.0",
|
|
103
|
+
"@vue/test-utils-vue3": "npm:@vue/test-utils@2.2.0",
|
|
98
104
|
"@vue/vue2-jest": "29.0.0",
|
|
105
|
+
"@vue/vue3-jest": "^29.1.1",
|
|
99
106
|
"autoprefixer": "^9.7.6",
|
|
100
107
|
"babel-jest": "29.0.1",
|
|
101
108
|
"babel-loader": "^8.0.5",
|
|
@@ -105,7 +112,7 @@
|
|
|
105
112
|
"bootstrap": "4.6.2",
|
|
106
113
|
"cypress": "^10.11.0",
|
|
107
114
|
"emoji-regex": "^10.0.0",
|
|
108
|
-
"eslint": "8.
|
|
115
|
+
"eslint": "8.27.0",
|
|
109
116
|
"eslint-import-resolver-jest": "3.0.2",
|
|
110
117
|
"eslint-plugin-cypress": "2.12.1",
|
|
111
118
|
"eslint-plugin-storybook": "0.6.7",
|
|
@@ -113,9 +120,9 @@
|
|
|
113
120
|
"glob": "^7.2.0",
|
|
114
121
|
"identity-obj-proxy": "^3.0.0",
|
|
115
122
|
"inquirer-select-directory": "^1.2.0",
|
|
116
|
-
"jest": "^29.
|
|
117
|
-
"jest-circus": "29.
|
|
118
|
-
"jest-environment-jsdom": "29.
|
|
123
|
+
"jest": "^29.3.0",
|
|
124
|
+
"jest-circus": "29.3.0",
|
|
125
|
+
"jest-environment-jsdom": "29.3.0",
|
|
119
126
|
"markdownlint-cli": "^0.29.0",
|
|
120
127
|
"mockdate": "^2.0.5",
|
|
121
128
|
"npm-run-all": "^4.1.5",
|
|
@@ -140,11 +147,12 @@
|
|
|
140
147
|
"start-server-and-test": "^1.10.6",
|
|
141
148
|
"storybook-dark-mode": "^1.0.8",
|
|
142
149
|
"stylelint": "14.9.1",
|
|
143
|
-
"stylelint-config-prettier": "9.0.
|
|
150
|
+
"stylelint-config-prettier": "9.0.4",
|
|
144
151
|
"stylelint-prettier": "2.0.0",
|
|
145
152
|
"vue": "2.7.13",
|
|
146
153
|
"vue-loader": "^15.8.3",
|
|
147
|
-
"vue-template-compiler": "2.7.13"
|
|
154
|
+
"vue-template-compiler": "2.7.13",
|
|
155
|
+
"vue-test-utils-compat": "^0.0.10"
|
|
148
156
|
},
|
|
149
157
|
"release": {
|
|
150
158
|
"branches": [
|
|
@@ -102,6 +102,17 @@ export const gray700 = '#535158'
|
|
|
102
102
|
export const gray800 = '#434248'
|
|
103
103
|
export const gray900 = '#333238'
|
|
104
104
|
export const gray950 = '#1f1e24'
|
|
105
|
+
export const brandCharcoal = '#171321'
|
|
106
|
+
export const brandOrange01 = '#fca326'
|
|
107
|
+
export const brandOrange02 = '#fc6d26'
|
|
108
|
+
export const brandOrange03 = '#e24329'
|
|
109
|
+
export const brandPurple01 = '#a989f5'
|
|
110
|
+
export const brandPurple02 = '#7759c2'
|
|
111
|
+
export const brandGray01 = '#d1d0d3'
|
|
112
|
+
export const brandGray02 = '#a2a1a6'
|
|
113
|
+
export const brandGray03 = '#74717a'
|
|
114
|
+
export const brandGray04 = '#45424d'
|
|
115
|
+
export const brandGray05 = '#2b2838'
|
|
105
116
|
export const themeIndigo50 = '#f1f1ff'
|
|
106
117
|
export const themeIndigo100 = '#dbdbf8'
|
|
107
118
|
export const themeIndigo200 = '#c7c7f2'
|
|
@@ -227,11 +238,12 @@ export const darkenNormalFactor = '7%'
|
|
|
227
238
|
export const darkenDarkFactor = '10%'
|
|
228
239
|
export const darkenBorderFactor = '5%'
|
|
229
240
|
export const darkenBorderDashedFactor = '25%'
|
|
230
|
-
export const tGrayA02 = 'rgba(
|
|
231
|
-
export const tGrayA04 = 'rgba(
|
|
232
|
-
export const tGrayA06 = 'rgba(
|
|
233
|
-
export const tGrayA08 = 'rgba(
|
|
234
|
-
export const
|
|
241
|
+
export const tGrayA02 = 'rgba(31, 30, 36, 0.02)'
|
|
242
|
+
export const tGrayA04 = 'rgba(31, 30, 36, 0.04)'
|
|
243
|
+
export const tGrayA06 = 'rgba(31, 30, 36, 0.06)'
|
|
244
|
+
export const tGrayA08 = 'rgba(31, 30, 36, 0.08)'
|
|
245
|
+
export const tGrayA16 = 'rgba(31, 30, 36, 0.16)'
|
|
246
|
+
export const tGrayA24 = 'rgba(31, 30, 36, 0.24)'
|
|
235
247
|
export const glTextColor = '#333238'
|
|
236
248
|
export const glTextColorSecondary = '#737278'
|
|
237
249
|
export const glFontWeightLight = '300'
|
|
@@ -547,6 +547,61 @@
|
|
|
547
547
|
"value": "#1f1e24",
|
|
548
548
|
"compiledValue": "#1f1e24"
|
|
549
549
|
},
|
|
550
|
+
{
|
|
551
|
+
"name": "$brand-charcoal",
|
|
552
|
+
"value": "#171321",
|
|
553
|
+
"compiledValue": "#171321"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "$brand-orange-01",
|
|
557
|
+
"value": "#fca326",
|
|
558
|
+
"compiledValue": "#fca326"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"name": "$brand-orange-02",
|
|
562
|
+
"value": "#fc6d26",
|
|
563
|
+
"compiledValue": "#fc6d26"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"name": "$brand-orange-03",
|
|
567
|
+
"value": "#e24329",
|
|
568
|
+
"compiledValue": "#e24329"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"name": "$brand-purple-01",
|
|
572
|
+
"value": "#a989f5",
|
|
573
|
+
"compiledValue": "#a989f5"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "$brand-purple-02",
|
|
577
|
+
"value": "#7759c2",
|
|
578
|
+
"compiledValue": "#7759c2"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"name": "$brand-gray-01",
|
|
582
|
+
"value": "#d1d0d3",
|
|
583
|
+
"compiledValue": "#d1d0d3"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"name": "$brand-gray-02",
|
|
587
|
+
"value": "#a2a1a6",
|
|
588
|
+
"compiledValue": "#a2a1a6"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "$brand-gray-03",
|
|
592
|
+
"value": "#74717a",
|
|
593
|
+
"compiledValue": "#74717a"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"name": "$brand-gray-04",
|
|
597
|
+
"value": "#45424d",
|
|
598
|
+
"compiledValue": "#45424d"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"name": "$brand-gray-05",
|
|
602
|
+
"value": "#2b2838",
|
|
603
|
+
"compiledValue": "#2b2838"
|
|
604
|
+
},
|
|
550
605
|
{
|
|
551
606
|
"name": "$theme-indigo-50",
|
|
552
607
|
"value": "#f1f1ff",
|
|
@@ -1174,28 +1229,33 @@
|
|
|
1174
1229
|
},
|
|
1175
1230
|
{
|
|
1176
1231
|
"name": "$t-gray-a-02",
|
|
1177
|
-
"value": "rgba($
|
|
1178
|
-
"compiledValue": "rgba(
|
|
1232
|
+
"value": "rgba($gray-950, 0.02)",
|
|
1233
|
+
"compiledValue": "rgba(31, 30, 36, 0.02)"
|
|
1179
1234
|
},
|
|
1180
1235
|
{
|
|
1181
1236
|
"name": "$t-gray-a-04",
|
|
1182
|
-
"value": "rgba($
|
|
1183
|
-
"compiledValue": "rgba(
|
|
1237
|
+
"value": "rgba($gray-950, 0.04)",
|
|
1238
|
+
"compiledValue": "rgba(31, 30, 36, 0.04)"
|
|
1184
1239
|
},
|
|
1185
1240
|
{
|
|
1186
1241
|
"name": "$t-gray-a-06",
|
|
1187
|
-
"value": "rgba($
|
|
1188
|
-
"compiledValue": "rgba(
|
|
1242
|
+
"value": "rgba($gray-950, 0.06)",
|
|
1243
|
+
"compiledValue": "rgba(31, 30, 36, 0.06)"
|
|
1189
1244
|
},
|
|
1190
1245
|
{
|
|
1191
1246
|
"name": "$t-gray-a-08",
|
|
1192
|
-
"value": "rgba(
|
|
1193
|
-
"compiledValue": "rgba(
|
|
1247
|
+
"value": "rgba($gray-950, 0.08)",
|
|
1248
|
+
"compiledValue": "rgba(31, 30, 36, 0.08)"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"name": "$t-gray-a-16",
|
|
1252
|
+
"value": "rgba($gray-950, 0.16)",
|
|
1253
|
+
"compiledValue": "rgba(31, 30, 36, 0.16)"
|
|
1194
1254
|
},
|
|
1195
1255
|
{
|
|
1196
1256
|
"name": "$t-gray-a-24",
|
|
1197
|
-
"value": "rgba(
|
|
1198
|
-
"compiledValue": "rgba(
|
|
1257
|
+
"value": "rgba($gray-950, 0.24)",
|
|
1258
|
+
"compiledValue": "rgba(31, 30, 36, 0.24)"
|
|
1199
1259
|
},
|
|
1200
1260
|
{
|
|
1201
1261
|
"name": "$gl-text-color",
|
|
@@ -303,13 +303,16 @@ export default {
|
|
|
303
303
|
}
|
|
304
304
|
},
|
|
305
305
|
},
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
306
|
+
resetButtonLabel: {
|
|
307
|
+
immediate: true,
|
|
308
|
+
handler(newResetButtonLabel) {
|
|
309
|
+
if (process.env.NODE_ENV !== 'production' && newResetButtonLabel && !this.headerText) {
|
|
310
|
+
throw new Error(
|
|
311
|
+
'The reset button cannot be rendered without a header. Either provide a header via the headerText prop, or do not provide the resetButtonLabel prop.'
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
},
|
|
313
316
|
},
|
|
314
317
|
methods: {
|
|
315
318
|
open() {
|
|
@@ -597,9 +597,7 @@ exports[`Paginated List Search states renders the custom empty search message wh
|
|
|
597
597
|
<div
|
|
598
598
|
class="bs-callout bs-callout-warning mt-3 empty-message empty-search"
|
|
599
599
|
>
|
|
600
|
-
|
|
601
600
|
Custom empty message
|
|
602
|
-
|
|
603
601
|
</div>
|
|
604
602
|
</div>
|
|
605
603
|
`;
|
|
@@ -620,9 +618,7 @@ exports[`Paginated List Search states renders the default empty search message w
|
|
|
620
618
|
<div
|
|
621
619
|
class="bs-callout bs-callout-warning mt-3 empty-message empty-search"
|
|
622
620
|
>
|
|
623
|
-
|
|
624
621
|
Sorry, your filter produced no results.
|
|
625
|
-
|
|
626
622
|
</div>
|
|
627
623
|
</div>
|
|
628
624
|
`;
|
|
@@ -702,9 +698,7 @@ exports[`Paginated List Searchless states renders the list in an empty state wit
|
|
|
702
698
|
<div
|
|
703
699
|
class="bs-callout bs-callout-warning mt-3 empty-message empty-message"
|
|
704
700
|
>
|
|
705
|
-
|
|
706
701
|
List is passed in empty
|
|
707
|
-
|
|
708
702
|
</div>
|
|
709
703
|
</div>
|
|
710
704
|
`;
|
|
@@ -725,9 +719,7 @@ exports[`Paginated List Searchless states renders the list in an empty state, wh
|
|
|
725
719
|
<div
|
|
726
720
|
class="bs-callout bs-callout-warning mt-3 empty-message empty-message"
|
|
727
721
|
>
|
|
728
|
-
|
|
729
722
|
There are currently no items in this list.
|
|
730
|
-
|
|
731
723
|
</div>
|
|
732
724
|
</div>
|
|
733
725
|
`;
|
|
@@ -163,13 +163,14 @@ export default {
|
|
|
163
163
|
:total-items="pageInfo.total"
|
|
164
164
|
@input="change"
|
|
165
165
|
/>
|
|
166
|
-
|
|
166
|
+
<!-- Prettier will insert extra line-break which will result in render differences between Vue.js 2 and Vue.js 3 -->
|
|
167
|
+
<!-- See https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2004 for details -->
|
|
168
|
+
<!-- display: inline -->
|
|
167
169
|
<div
|
|
168
170
|
v-if="emptyList"
|
|
169
171
|
class="bs-callout bs-callout-warning mt-3 empty-message"
|
|
170
172
|
:class="{ 'empty-message': zeroTotal, 'empty-search': zeroSearchResults }"
|
|
173
|
+
>{{ zeroTotal ? emptyMessage : emptySearchMessage }}</div
|
|
171
174
|
>
|
|
172
|
-
{{ zeroTotal ? emptyMessage : emptySearchMessage }}
|
|
173
|
-
</div>
|
|
174
175
|
</div>
|
|
175
176
|
</template>
|
|
@@ -30,7 +30,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
30
30
|
<button
|
|
31
31
|
class="gl-path-button gl-path-active-item-indigo"
|
|
32
32
|
>
|
|
33
|
-
|
|
34
33
|
First
|
|
35
34
|
<span
|
|
36
35
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -46,7 +45,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
46
45
|
<button
|
|
47
46
|
class="gl-path-button"
|
|
48
47
|
>
|
|
49
|
-
|
|
50
48
|
Second
|
|
51
49
|
<span
|
|
52
50
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -62,7 +60,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
62
60
|
<button
|
|
63
61
|
class="gl-path-button"
|
|
64
62
|
>
|
|
65
|
-
|
|
66
63
|
Third
|
|
67
64
|
<span
|
|
68
65
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -78,7 +75,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
78
75
|
<button
|
|
79
76
|
class="gl-path-button"
|
|
80
77
|
>
|
|
81
|
-
|
|
82
78
|
Fourth
|
|
83
79
|
<span
|
|
84
80
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -94,7 +90,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
94
90
|
<button
|
|
95
91
|
class="gl-path-button"
|
|
96
92
|
>
|
|
97
|
-
|
|
98
93
|
Fifth
|
|
99
94
|
<span
|
|
100
95
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -110,7 +105,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
110
105
|
<button
|
|
111
106
|
class="gl-path-button"
|
|
112
107
|
>
|
|
113
|
-
|
|
114
108
|
Sixth
|
|
115
109
|
<span
|
|
116
110
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -126,7 +120,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
126
120
|
<button
|
|
127
121
|
class="gl-path-button"
|
|
128
122
|
>
|
|
129
|
-
|
|
130
123
|
Seventh
|
|
131
124
|
<span
|
|
132
125
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -144,7 +137,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
144
137
|
class="gl-path-button"
|
|
145
138
|
disabled=""
|
|
146
139
|
>
|
|
147
|
-
|
|
148
140
|
Eighth
|
|
149
141
|
<span
|
|
150
142
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -160,7 +152,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
160
152
|
<button
|
|
161
153
|
class="gl-path-button"
|
|
162
154
|
>
|
|
163
|
-
|
|
164
155
|
Ninth
|
|
165
156
|
<span
|
|
166
157
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -176,7 +167,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
176
167
|
<button
|
|
177
168
|
class="gl-path-button"
|
|
178
169
|
>
|
|
179
|
-
|
|
180
170
|
Tenth
|
|
181
171
|
<span
|
|
182
172
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -239,7 +229,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
239
229
|
name="home"
|
|
240
230
|
size="16"
|
|
241
231
|
/>
|
|
242
|
-
|
|
243
232
|
First
|
|
244
233
|
<span
|
|
245
234
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -255,7 +244,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
255
244
|
<button
|
|
256
245
|
class="gl-path-button"
|
|
257
246
|
>
|
|
258
|
-
|
|
259
247
|
Second
|
|
260
248
|
<span
|
|
261
249
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -271,7 +259,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
271
259
|
<button
|
|
272
260
|
class="gl-path-button"
|
|
273
261
|
>
|
|
274
|
-
|
|
275
262
|
Third
|
|
276
263
|
<span
|
|
277
264
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -287,7 +274,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
287
274
|
<button
|
|
288
275
|
class="gl-path-button"
|
|
289
276
|
>
|
|
290
|
-
|
|
291
277
|
Fourth
|
|
292
278
|
<span
|
|
293
279
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -303,7 +289,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
303
289
|
<button
|
|
304
290
|
class="gl-path-button"
|
|
305
291
|
>
|
|
306
|
-
|
|
307
292
|
Fifth
|
|
308
293
|
<span
|
|
309
294
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -319,7 +304,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
319
304
|
<button
|
|
320
305
|
class="gl-path-button"
|
|
321
306
|
>
|
|
322
|
-
|
|
323
307
|
Sixth
|
|
324
308
|
<span
|
|
325
309
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -335,7 +319,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
335
319
|
<button
|
|
336
320
|
class="gl-path-button"
|
|
337
321
|
>
|
|
338
|
-
|
|
339
322
|
Seventh
|
|
340
323
|
<span
|
|
341
324
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -353,7 +336,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
353
336
|
class="gl-path-button"
|
|
354
337
|
disabled=""
|
|
355
338
|
>
|
|
356
|
-
|
|
357
339
|
Eighth
|
|
358
340
|
<span
|
|
359
341
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -369,7 +351,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
369
351
|
<button
|
|
370
352
|
class="gl-path-button"
|
|
371
353
|
>
|
|
372
|
-
|
|
373
354
|
Ninth
|
|
374
355
|
<span
|
|
375
356
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -385,7 +366,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
385
366
|
<button
|
|
386
367
|
class="gl-path-button"
|
|
387
368
|
>
|
|
388
|
-
|
|
389
369
|
Tenth
|
|
390
370
|
<span
|
|
391
371
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -442,7 +422,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
442
422
|
<button
|
|
443
423
|
class="gl-path-button gl-path-active-item-indigo"
|
|
444
424
|
>
|
|
445
|
-
|
|
446
425
|
First
|
|
447
426
|
<span
|
|
448
427
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -458,7 +437,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
458
437
|
<button
|
|
459
438
|
class="gl-path-button"
|
|
460
439
|
>
|
|
461
|
-
|
|
462
440
|
Second
|
|
463
441
|
<span
|
|
464
442
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -474,7 +452,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
474
452
|
<button
|
|
475
453
|
class="gl-path-button"
|
|
476
454
|
>
|
|
477
|
-
|
|
478
455
|
Third
|
|
479
456
|
<span
|
|
480
457
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -490,7 +467,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
490
467
|
<button
|
|
491
468
|
class="gl-path-button"
|
|
492
469
|
>
|
|
493
|
-
|
|
494
470
|
Fourth
|
|
495
471
|
<span
|
|
496
472
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -506,7 +482,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
506
482
|
<button
|
|
507
483
|
class="gl-path-button"
|
|
508
484
|
>
|
|
509
|
-
|
|
510
485
|
Fifth
|
|
511
486
|
<span
|
|
512
487
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -522,7 +497,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
522
497
|
<button
|
|
523
498
|
class="gl-path-button"
|
|
524
499
|
>
|
|
525
|
-
|
|
526
500
|
Sixth
|
|
527
501
|
<span
|
|
528
502
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -538,7 +512,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
538
512
|
<button
|
|
539
513
|
class="gl-path-button"
|
|
540
514
|
>
|
|
541
|
-
|
|
542
515
|
Seventh
|
|
543
516
|
<span
|
|
544
517
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -556,7 +529,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
556
529
|
class="gl-path-button"
|
|
557
530
|
disabled=""
|
|
558
531
|
>
|
|
559
|
-
|
|
560
532
|
Eighth
|
|
561
533
|
<span
|
|
562
534
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -572,7 +544,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
572
544
|
<button
|
|
573
545
|
class="gl-path-button"
|
|
574
546
|
>
|
|
575
|
-
|
|
576
547
|
Ninth
|
|
577
548
|
<span
|
|
578
549
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -588,7 +559,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
588
559
|
<button
|
|
589
560
|
class="gl-path-button"
|
|
590
561
|
>
|
|
591
|
-
|
|
592
562
|
Tenth
|
|
593
563
|
<span
|
|
594
564
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -182,8 +182,7 @@ export default {
|
|
|
182
182
|
:name="item.icon"
|
|
183
183
|
class="gl-mr-2"
|
|
184
184
|
data-testid="gl-path-item-icon"
|
|
185
|
-
/>
|
|
186
|
-
{{ item.title
|
|
185
|
+
/>{{ item.title
|
|
187
186
|
}}<span v-if="item.metric" class="gl-font-weight-normal gl-pl-2">{{ item.metric }}</span>
|
|
188
187
|
</button>
|
|
189
188
|
<!--
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
42
42
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
43
43
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
44
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
44
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
45
45
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
46
46
|
import Chart from '../chart/chart.vue';
|
|
47
47
|
import ChartLegend from '../legend/legend.vue';
|
|
@@ -7,7 +7,7 @@ import { TOOLTIP_LEFT_OFFSET } from '../../../utils/charts/constants';
|
|
|
7
7
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
8
8
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
9
9
|
import { hexToRgba, debounceByAnimationFrame } from '../../../utils/utils';
|
|
10
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
10
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
11
11
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
12
12
|
import Chart from '../chart/chart.vue';
|
|
13
13
|
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
@@ -15,7 +15,7 @@ import { TOOLTIP_LEFT_OFFSET, CHART_TYPE_LINE } from '../../../utils/charts/cons
|
|
|
15
15
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
16
16
|
import { columnOptions } from '../../../utils/constants';
|
|
17
17
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
18
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
18
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
19
19
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
20
20
|
import Chart from '../chart/chart.vue';
|
|
21
21
|
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
@@ -7,7 +7,7 @@ import defaultChartOptions, {
|
|
|
7
7
|
} from '../../../utils/charts/config';
|
|
8
8
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
9
9
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
10
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
10
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
11
11
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
12
12
|
import Chart from '../chart/chart.vue';
|
|
13
13
|
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script>
|
|
3
3
|
import { merge, isFinite, uniq, sortBy } from 'lodash';
|
|
4
4
|
import { gaugeNeutralHues, gaugeSafeHues, gaugeWarningHue } from '../../../utils/charts/theme';
|
|
5
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
5
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
6
6
|
import Chart from '../chart/chart.vue';
|
|
7
7
|
|
|
8
8
|
const AXIS_LABEL_FONT_SIZE_PX = 14;
|
|
@@ -7,7 +7,7 @@ import { TOOLTIP_LEFT_OFFSET } from '../../../utils/charts/constants';
|
|
|
7
7
|
import { heatmapHues } from '../../../utils/charts/theme';
|
|
8
8
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
9
9
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
10
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
10
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
11
11
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
12
12
|
import Chart from '../chart/chart.vue';
|
|
13
13
|
import ChartLegend from '../legend/legend.vue';
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
45
45
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
46
46
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
47
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
47
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
48
48
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
49
49
|
import Chart from '../chart/chart.vue';
|
|
50
50
|
import ChartLegend from '../legend/legend.vue';
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
23
23
|
import { columnOptions } from '../../../utils/constants';
|
|
24
24
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
25
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
25
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
26
26
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
27
27
|
import Chart from '../chart/chart.vue';
|
|
28
28
|
import ChartLegend from '../legend/legend.vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
import useMockIntersectionObserver from '~/utils/use_mock_intersection_observer';
|
|
2
|
+
import { useMockIntersectionObserver } from '~/utils/use_mock_intersection_observer';
|
|
3
3
|
import GlIntersectionObserver from './intersection_observer.vue';
|
|
4
4
|
|
|
5
5
|
const TEST_SLOT = '<p>Hello world! Lorem ipsum.</p>';
|