@gitlab/ui 48.2.0 → 48.3.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/CHANGELOG.md +16 -0
- package/dist/components/base/filtered_search/filtered_search.js +25 -1
- package/dist/components/base/filtered_search/filtered_search_token.js +2 -0
- package/dist/components/base/filtered_search/filtered_search_token_segment.js +44 -1
- package/dist/directives/outside/outside.js +3 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/dist/utils/charts/theme.js +27 -27
- package/package.json +2 -2
- package/scss_to_js/scss_variables.js +43 -43
- package/scss_to_js/scss_variables.json +86 -86
- package/src/components/base/filtered_search/filtered_search.spec.js +14 -5
- package/src/components/base/filtered_search/filtered_search.vue +31 -13
- package/src/components/base/filtered_search/filtered_search_token.vue +3 -0
- package/src/components/base/filtered_search/filtered_search_token_segment.spec.js +7 -7
- package/src/components/base/filtered_search/filtered_search_token_segment.vue +39 -1
- package/src/components/base/new_dropdowns/listbox/listbox.stories.js +47 -2
- package/src/components/charts/bar/__snapshots__/bar.spec.js.snap +3 -3
- package/src/components/charts/column/__snapshots__/column_chart.spec.js.snap +11 -11
- package/src/components/charts/stacked_column/__snapshots__/stacked_column.spec.js.snap +23 -23
- package/src/directives/outside/outside.js +1 -1
- package/src/directives/outside/outside.spec.js +6 -2
- package/src/scss/variables.scss +44 -44
|
@@ -11,38 +11,38 @@ const gray500 = '#666';
|
|
|
11
11
|
const gray600 = '#5e5e5e';
|
|
12
12
|
const gray700 = '#525252';
|
|
13
13
|
const gray900 = '#303030';
|
|
14
|
-
const dataVizGreen500 = '#
|
|
15
|
-
const dataVizGreen600 = '#
|
|
14
|
+
const dataVizGreen500 = '#619025';
|
|
15
|
+
const dataVizGreen600 = '#4e7f0e';
|
|
16
16
|
const dataVizGreen700 = '#366800';
|
|
17
17
|
const dataVizGreen800 = '#275600';
|
|
18
18
|
const dataVizGreen900 = '#1a4500';
|
|
19
|
-
const dataVizGreen950 = '#
|
|
20
|
-
const dataVizAqua500 = '#
|
|
21
|
-
const dataVizAqua600 = '#
|
|
22
|
-
const dataVizAqua700 = '#
|
|
23
|
-
const dataVizAqua800 = '#
|
|
24
|
-
const dataVizAqua900 = '#
|
|
25
|
-
const dataVizAqua950 = '#
|
|
19
|
+
const dataVizGreen950 = '#133a03';
|
|
20
|
+
const dataVizAqua500 = '#0090b1';
|
|
21
|
+
const dataVizAqua600 = '#007b9b';
|
|
22
|
+
const dataVizAqua700 = '#006381';
|
|
23
|
+
const dataVizAqua800 = '#00516c';
|
|
24
|
+
const dataVizAqua900 = '#004059';
|
|
25
|
+
const dataVizAqua950 = '#00344b';
|
|
26
26
|
const dataVizBlue200 = '#b7c6ff';
|
|
27
|
-
const dataVizBlue400 = '#
|
|
28
|
-
const dataVizBlue500 = '#
|
|
29
|
-
const dataVizBlue600 = '#
|
|
30
|
-
const dataVizBlue700 = '#
|
|
31
|
-
const dataVizBlue800 = '#
|
|
32
|
-
const dataVizBlue900 = '#
|
|
33
|
-
const dataVizBlue950 = '#
|
|
34
|
-
const dataVizMagenta500 = '#
|
|
35
|
-
const dataVizMagenta600 = '#
|
|
36
|
-
const dataVizMagenta700 = '#
|
|
37
|
-
const dataVizMagenta800 = '#
|
|
38
|
-
const dataVizMagenta900 = '#
|
|
39
|
-
const dataVizMagenta950 = '#
|
|
40
|
-
const dataVizOrange500 = '#
|
|
41
|
-
const dataVizOrange600 = '#
|
|
42
|
-
const dataVizOrange700 = '#
|
|
27
|
+
const dataVizBlue400 = '#7992f5';
|
|
28
|
+
const dataVizBlue500 = '#617ae2';
|
|
29
|
+
const dataVizBlue600 = '#4e65cd';
|
|
30
|
+
const dataVizBlue700 = '#3f51ae';
|
|
31
|
+
const dataVizBlue800 = '#374291';
|
|
32
|
+
const dataVizBlue900 = '#303470';
|
|
33
|
+
const dataVizBlue950 = '#2a2b59';
|
|
34
|
+
const dataVizMagenta500 = '#cf4d81';
|
|
35
|
+
const dataVizMagenta600 = '#b93d71';
|
|
36
|
+
const dataVizMagenta700 = '#9a2e5d';
|
|
37
|
+
const dataVizMagenta800 = '#7c214f';
|
|
38
|
+
const dataVizMagenta900 = '#661e3a';
|
|
39
|
+
const dataVizMagenta950 = '#541d31';
|
|
40
|
+
const dataVizOrange500 = '#c95d2e';
|
|
41
|
+
const dataVizOrange600 = '#b14f18';
|
|
42
|
+
const dataVizOrange700 = '#92430a';
|
|
43
43
|
const dataVizOrange800 = '#6f3500';
|
|
44
|
-
const dataVizOrange900 = '#
|
|
45
|
-
const dataVizOrange950 = '#
|
|
44
|
+
const dataVizOrange900 = '#5e2f05';
|
|
45
|
+
const dataVizOrange950 = '#4b2707';
|
|
46
46
|
|
|
47
47
|
const themeName = 'gitlab';
|
|
48
48
|
const heatmapHues = [gray100, dataVizBlue200, dataVizBlue400, dataVizBlue600, dataVizBlue800];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "48.
|
|
3
|
+
"version": "48.3.1",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@babel/preset-env": "^7.19.4",
|
|
82
82
|
"@gitlab/eslint-plugin": "18.1.0",
|
|
83
83
|
"@gitlab/stylelint-config": "4.1.0",
|
|
84
|
-
"@gitlab/svgs": "3.
|
|
84
|
+
"@gitlab/svgs": "3.5.0",
|
|
85
85
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
86
86
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
87
87
|
"@rollup/plugin-replace": "^2.3.2",
|
|
@@ -169,60 +169,60 @@ export const themeLightRed800 = '#8b2212'
|
|
|
169
169
|
export const themeLightRed900 = '#751709'
|
|
170
170
|
export const themeLightRed950 = '#5c1105'
|
|
171
171
|
export const dataVizGreen50 = '#ddfab7'
|
|
172
|
-
export const dataVizGreen100 = '#
|
|
173
|
-
export const dataVizGreen200 = '#
|
|
172
|
+
export const dataVizGreen100 = '#c6ed94'
|
|
173
|
+
export const dataVizGreen200 = '#b0d97b'
|
|
174
174
|
export const dataVizGreen300 = '#94c25e'
|
|
175
|
-
export const dataVizGreen400 = '#
|
|
176
|
-
export const dataVizGreen500 = '#
|
|
177
|
-
export const dataVizGreen600 = '#
|
|
175
|
+
export const dataVizGreen400 = '#81ac41'
|
|
176
|
+
export const dataVizGreen500 = '#619025'
|
|
177
|
+
export const dataVizGreen600 = '#4e7f0e'
|
|
178
178
|
export const dataVizGreen700 = '#366800'
|
|
179
179
|
export const dataVizGreen800 = '#275600'
|
|
180
180
|
export const dataVizGreen900 = '#1a4500'
|
|
181
|
-
export const dataVizGreen950 = '#
|
|
182
|
-
export const dataVizAqua50 = '#
|
|
183
|
-
export const dataVizAqua100 = '#
|
|
184
|
-
export const dataVizAqua200 = '#
|
|
185
|
-
export const dataVizAqua300 = '#
|
|
186
|
-
export const dataVizAqua400 = '#
|
|
187
|
-
export const dataVizAqua500 = '#
|
|
188
|
-
export const dataVizAqua600 = '#
|
|
189
|
-
export const dataVizAqua700 = '#
|
|
190
|
-
export const dataVizAqua800 = '#
|
|
191
|
-
export const dataVizAqua900 = '#
|
|
192
|
-
export const dataVizAqua950 = '#
|
|
181
|
+
export const dataVizGreen950 = '#133a03'
|
|
182
|
+
export const dataVizAqua50 = '#b5fefd'
|
|
183
|
+
export const dataVizAqua100 = '#93f2ef'
|
|
184
|
+
export const dataVizAqua200 = '#5edee3'
|
|
185
|
+
export const dataVizAqua300 = '#32c5d2'
|
|
186
|
+
export const dataVizAqua400 = '#00acc4'
|
|
187
|
+
export const dataVizAqua500 = '#0090b1'
|
|
188
|
+
export const dataVizAqua600 = '#007b9b'
|
|
189
|
+
export const dataVizAqua700 = '#006381'
|
|
190
|
+
export const dataVizAqua800 = '#00516c'
|
|
191
|
+
export const dataVizAqua900 = '#004059'
|
|
192
|
+
export const dataVizAqua950 = '#00344b'
|
|
193
193
|
export const dataVizBlue50 = '#e9ebff'
|
|
194
|
-
export const dataVizBlue100 = '#
|
|
194
|
+
export const dataVizBlue100 = '#d2dcff'
|
|
195
195
|
export const dataVizBlue200 = '#b7c6ff'
|
|
196
196
|
export const dataVizBlue300 = '#97acff'
|
|
197
|
-
export const dataVizBlue400 = '#
|
|
198
|
-
export const dataVizBlue500 = '#
|
|
199
|
-
export const dataVizBlue600 = '#
|
|
200
|
-
export const dataVizBlue700 = '#
|
|
201
|
-
export const dataVizBlue800 = '#
|
|
202
|
-
export const dataVizBlue900 = '#
|
|
203
|
-
export const dataVizBlue950 = '#
|
|
197
|
+
export const dataVizBlue400 = '#7992f5'
|
|
198
|
+
export const dataVizBlue500 = '#617ae2'
|
|
199
|
+
export const dataVizBlue600 = '#4e65cd'
|
|
200
|
+
export const dataVizBlue700 = '#3f51ae'
|
|
201
|
+
export const dataVizBlue800 = '#374291'
|
|
202
|
+
export const dataVizBlue900 = '#303470'
|
|
203
|
+
export const dataVizBlue950 = '#2a2b59'
|
|
204
204
|
export const dataVizMagenta50 = '#ffe3eb'
|
|
205
|
-
export const dataVizMagenta100 = '#
|
|
205
|
+
export const dataVizMagenta100 = '#ffccdb'
|
|
206
206
|
export const dataVizMagenta200 = '#fcacc5'
|
|
207
|
-
export const dataVizMagenta300 = '#
|
|
208
|
-
export const dataVizMagenta400 = '#
|
|
209
|
-
export const dataVizMagenta500 = '#
|
|
210
|
-
export const dataVizMagenta600 = '#
|
|
211
|
-
export const dataVizMagenta700 = '#
|
|
212
|
-
export const dataVizMagenta800 = '#
|
|
213
|
-
export const dataVizMagenta900 = '#
|
|
214
|
-
export const dataVizMagenta950 = '#
|
|
207
|
+
export const dataVizMagenta300 = '#f88aaf'
|
|
208
|
+
export const dataVizMagenta400 = '#e86e9a'
|
|
209
|
+
export const dataVizMagenta500 = '#cf4d81'
|
|
210
|
+
export const dataVizMagenta600 = '#b93d71'
|
|
211
|
+
export const dataVizMagenta700 = '#9a2e5d'
|
|
212
|
+
export const dataVizMagenta800 = '#7c214f'
|
|
213
|
+
export const dataVizMagenta900 = '#661e3a'
|
|
214
|
+
export const dataVizMagenta950 = '#541d31'
|
|
215
215
|
export const dataVizOrange50 = '#fae8d1'
|
|
216
|
-
export const dataVizOrange100 = '#
|
|
217
|
-
export const dataVizOrange200 = '#
|
|
218
|
-
export const dataVizOrange300 = '#
|
|
219
|
-
export const dataVizOrange400 = '#
|
|
220
|
-
export const dataVizOrange500 = '#
|
|
221
|
-
export const dataVizOrange600 = '#
|
|
222
|
-
export const dataVizOrange700 = '#
|
|
216
|
+
export const dataVizOrange100 = '#f5d6b3'
|
|
217
|
+
export const dataVizOrange200 = '#eebd8c'
|
|
218
|
+
export const dataVizOrange300 = '#e99b60'
|
|
219
|
+
export const dataVizOrange400 = '#e07e41'
|
|
220
|
+
export const dataVizOrange500 = '#c95d2e'
|
|
221
|
+
export const dataVizOrange600 = '#b14f18'
|
|
222
|
+
export const dataVizOrange700 = '#92430a'
|
|
223
223
|
export const dataVizOrange800 = '#6f3500'
|
|
224
|
-
export const dataVizOrange900 = '#
|
|
225
|
-
export const dataVizOrange950 = '#
|
|
224
|
+
export const dataVizOrange900 = '#5e2f05'
|
|
225
|
+
export const dataVizOrange950 = '#4b2707'
|
|
226
226
|
export const darkenNormalFactor = '7%'
|
|
227
227
|
export const darkenDarkFactor = '10%'
|
|
228
228
|
export const darkenBorderFactor = '5%'
|
|
@@ -884,13 +884,13 @@
|
|
|
884
884
|
},
|
|
885
885
|
{
|
|
886
886
|
"name": "$data-viz-green-100",
|
|
887
|
-
"value": "#
|
|
888
|
-
"compiledValue": "#
|
|
887
|
+
"value": "#c6ed94",
|
|
888
|
+
"compiledValue": "#c6ed94"
|
|
889
889
|
},
|
|
890
890
|
{
|
|
891
891
|
"name": "$data-viz-green-200",
|
|
892
|
-
"value": "#
|
|
893
|
-
"compiledValue": "#
|
|
892
|
+
"value": "#b0d97b",
|
|
893
|
+
"compiledValue": "#b0d97b"
|
|
894
894
|
},
|
|
895
895
|
{
|
|
896
896
|
"name": "$data-viz-green-300",
|
|
@@ -899,18 +899,18 @@
|
|
|
899
899
|
},
|
|
900
900
|
{
|
|
901
901
|
"name": "$data-viz-green-400",
|
|
902
|
-
"value": "#
|
|
903
|
-
"compiledValue": "#
|
|
902
|
+
"value": "#81ac41",
|
|
903
|
+
"compiledValue": "#81ac41"
|
|
904
904
|
},
|
|
905
905
|
{
|
|
906
906
|
"name": "$data-viz-green-500",
|
|
907
|
-
"value": "#
|
|
908
|
-
"compiledValue": "#
|
|
907
|
+
"value": "#619025",
|
|
908
|
+
"compiledValue": "#619025"
|
|
909
909
|
},
|
|
910
910
|
{
|
|
911
911
|
"name": "$data-viz-green-600",
|
|
912
|
-
"value": "#
|
|
913
|
-
"compiledValue": "#
|
|
912
|
+
"value": "#4e7f0e",
|
|
913
|
+
"compiledValue": "#4e7f0e"
|
|
914
914
|
},
|
|
915
915
|
{
|
|
916
916
|
"name": "$data-viz-green-700",
|
|
@@ -929,63 +929,63 @@
|
|
|
929
929
|
},
|
|
930
930
|
{
|
|
931
931
|
"name": "$data-viz-green-950",
|
|
932
|
-
"value": "#
|
|
933
|
-
"compiledValue": "#
|
|
932
|
+
"value": "#133a03",
|
|
933
|
+
"compiledValue": "#133a03"
|
|
934
934
|
},
|
|
935
935
|
{
|
|
936
936
|
"name": "$data-viz-aqua-50",
|
|
937
|
-
"value": "#
|
|
938
|
-
"compiledValue": "#
|
|
937
|
+
"value": "#b5fefd",
|
|
938
|
+
"compiledValue": "#b5fefd"
|
|
939
939
|
},
|
|
940
940
|
{
|
|
941
941
|
"name": "$data-viz-aqua-100",
|
|
942
|
-
"value": "#
|
|
943
|
-
"compiledValue": "#
|
|
942
|
+
"value": "#93f2ef",
|
|
943
|
+
"compiledValue": "#93f2ef"
|
|
944
944
|
},
|
|
945
945
|
{
|
|
946
946
|
"name": "$data-viz-aqua-200",
|
|
947
|
-
"value": "#
|
|
948
|
-
"compiledValue": "#
|
|
947
|
+
"value": "#5edee3",
|
|
948
|
+
"compiledValue": "#5edee3"
|
|
949
949
|
},
|
|
950
950
|
{
|
|
951
951
|
"name": "$data-viz-aqua-300",
|
|
952
|
-
"value": "#
|
|
953
|
-
"compiledValue": "#
|
|
952
|
+
"value": "#32c5d2",
|
|
953
|
+
"compiledValue": "#32c5d2"
|
|
954
954
|
},
|
|
955
955
|
{
|
|
956
956
|
"name": "$data-viz-aqua-400",
|
|
957
|
-
"value": "#
|
|
958
|
-
"compiledValue": "#
|
|
957
|
+
"value": "#00acc4",
|
|
958
|
+
"compiledValue": "#00acc4"
|
|
959
959
|
},
|
|
960
960
|
{
|
|
961
961
|
"name": "$data-viz-aqua-500",
|
|
962
|
-
"value": "#
|
|
963
|
-
"compiledValue": "#
|
|
962
|
+
"value": "#0090b1",
|
|
963
|
+
"compiledValue": "#0090b1"
|
|
964
964
|
},
|
|
965
965
|
{
|
|
966
966
|
"name": "$data-viz-aqua-600",
|
|
967
|
-
"value": "#
|
|
968
|
-
"compiledValue": "#
|
|
967
|
+
"value": "#007b9b",
|
|
968
|
+
"compiledValue": "#007b9b"
|
|
969
969
|
},
|
|
970
970
|
{
|
|
971
971
|
"name": "$data-viz-aqua-700",
|
|
972
|
-
"value": "#
|
|
973
|
-
"compiledValue": "#
|
|
972
|
+
"value": "#006381",
|
|
973
|
+
"compiledValue": "#006381"
|
|
974
974
|
},
|
|
975
975
|
{
|
|
976
976
|
"name": "$data-viz-aqua-800",
|
|
977
|
-
"value": "#
|
|
978
|
-
"compiledValue": "#
|
|
977
|
+
"value": "#00516c",
|
|
978
|
+
"compiledValue": "#00516c"
|
|
979
979
|
},
|
|
980
980
|
{
|
|
981
981
|
"name": "$data-viz-aqua-900",
|
|
982
|
-
"value": "#
|
|
983
|
-
"compiledValue": "#
|
|
982
|
+
"value": "#004059",
|
|
983
|
+
"compiledValue": "#004059"
|
|
984
984
|
},
|
|
985
985
|
{
|
|
986
986
|
"name": "$data-viz-aqua-950",
|
|
987
|
-
"value": "#
|
|
988
|
-
"compiledValue": "#
|
|
987
|
+
"value": "#00344b",
|
|
988
|
+
"compiledValue": "#00344b"
|
|
989
989
|
},
|
|
990
990
|
{
|
|
991
991
|
"name": "$data-viz-blue-50",
|
|
@@ -994,8 +994,8 @@
|
|
|
994
994
|
},
|
|
995
995
|
{
|
|
996
996
|
"name": "$data-viz-blue-100",
|
|
997
|
-
"value": "#
|
|
998
|
-
"compiledValue": "#
|
|
997
|
+
"value": "#d2dcff",
|
|
998
|
+
"compiledValue": "#d2dcff"
|
|
999
999
|
},
|
|
1000
1000
|
{
|
|
1001
1001
|
"name": "$data-viz-blue-200",
|
|
@@ -1009,38 +1009,38 @@
|
|
|
1009
1009
|
},
|
|
1010
1010
|
{
|
|
1011
1011
|
"name": "$data-viz-blue-400",
|
|
1012
|
-
"value": "#
|
|
1013
|
-
"compiledValue": "#
|
|
1012
|
+
"value": "#7992f5",
|
|
1013
|
+
"compiledValue": "#7992f5"
|
|
1014
1014
|
},
|
|
1015
1015
|
{
|
|
1016
1016
|
"name": "$data-viz-blue-500",
|
|
1017
|
-
"value": "#
|
|
1018
|
-
"compiledValue": "#
|
|
1017
|
+
"value": "#617ae2",
|
|
1018
|
+
"compiledValue": "#617ae2"
|
|
1019
1019
|
},
|
|
1020
1020
|
{
|
|
1021
1021
|
"name": "$data-viz-blue-600",
|
|
1022
|
-
"value": "#
|
|
1023
|
-
"compiledValue": "#
|
|
1022
|
+
"value": "#4e65cd",
|
|
1023
|
+
"compiledValue": "#4e65cd"
|
|
1024
1024
|
},
|
|
1025
1025
|
{
|
|
1026
1026
|
"name": "$data-viz-blue-700",
|
|
1027
|
-
"value": "#
|
|
1028
|
-
"compiledValue": "#
|
|
1027
|
+
"value": "#3f51ae",
|
|
1028
|
+
"compiledValue": "#3f51ae"
|
|
1029
1029
|
},
|
|
1030
1030
|
{
|
|
1031
1031
|
"name": "$data-viz-blue-800",
|
|
1032
|
-
"value": "#
|
|
1033
|
-
"compiledValue": "#
|
|
1032
|
+
"value": "#374291",
|
|
1033
|
+
"compiledValue": "#374291"
|
|
1034
1034
|
},
|
|
1035
1035
|
{
|
|
1036
1036
|
"name": "$data-viz-blue-900",
|
|
1037
|
-
"value": "#
|
|
1038
|
-
"compiledValue": "#
|
|
1037
|
+
"value": "#303470",
|
|
1038
|
+
"compiledValue": "#303470"
|
|
1039
1039
|
},
|
|
1040
1040
|
{
|
|
1041
1041
|
"name": "$data-viz-blue-950",
|
|
1042
|
-
"value": "#
|
|
1043
|
-
"compiledValue": "#
|
|
1042
|
+
"value": "#2a2b59",
|
|
1043
|
+
"compiledValue": "#2a2b59"
|
|
1044
1044
|
},
|
|
1045
1045
|
{
|
|
1046
1046
|
"name": "$data-viz-magenta-50",
|
|
@@ -1049,8 +1049,8 @@
|
|
|
1049
1049
|
},
|
|
1050
1050
|
{
|
|
1051
1051
|
"name": "$data-viz-magenta-100",
|
|
1052
|
-
"value": "#
|
|
1053
|
-
"compiledValue": "#
|
|
1052
|
+
"value": "#ffccdb",
|
|
1053
|
+
"compiledValue": "#ffccdb"
|
|
1054
1054
|
},
|
|
1055
1055
|
{
|
|
1056
1056
|
"name": "$data-viz-magenta-200",
|
|
@@ -1059,43 +1059,43 @@
|
|
|
1059
1059
|
},
|
|
1060
1060
|
{
|
|
1061
1061
|
"name": "$data-viz-magenta-300",
|
|
1062
|
-
"value": "#
|
|
1063
|
-
"compiledValue": "#
|
|
1062
|
+
"value": "#f88aaf",
|
|
1063
|
+
"compiledValue": "#f88aaf"
|
|
1064
1064
|
},
|
|
1065
1065
|
{
|
|
1066
1066
|
"name": "$data-viz-magenta-400",
|
|
1067
|
-
"value": "#
|
|
1068
|
-
"compiledValue": "#
|
|
1067
|
+
"value": "#e86e9a",
|
|
1068
|
+
"compiledValue": "#e86e9a"
|
|
1069
1069
|
},
|
|
1070
1070
|
{
|
|
1071
1071
|
"name": "$data-viz-magenta-500",
|
|
1072
|
-
"value": "#
|
|
1073
|
-
"compiledValue": "#
|
|
1072
|
+
"value": "#cf4d81",
|
|
1073
|
+
"compiledValue": "#cf4d81"
|
|
1074
1074
|
},
|
|
1075
1075
|
{
|
|
1076
1076
|
"name": "$data-viz-magenta-600",
|
|
1077
|
-
"value": "#
|
|
1078
|
-
"compiledValue": "#
|
|
1077
|
+
"value": "#b93d71",
|
|
1078
|
+
"compiledValue": "#b93d71"
|
|
1079
1079
|
},
|
|
1080
1080
|
{
|
|
1081
1081
|
"name": "$data-viz-magenta-700",
|
|
1082
|
-
"value": "#
|
|
1083
|
-
"compiledValue": "#
|
|
1082
|
+
"value": "#9a2e5d",
|
|
1083
|
+
"compiledValue": "#9a2e5d"
|
|
1084
1084
|
},
|
|
1085
1085
|
{
|
|
1086
1086
|
"name": "$data-viz-magenta-800",
|
|
1087
|
-
"value": "#
|
|
1088
|
-
"compiledValue": "#
|
|
1087
|
+
"value": "#7c214f",
|
|
1088
|
+
"compiledValue": "#7c214f"
|
|
1089
1089
|
},
|
|
1090
1090
|
{
|
|
1091
1091
|
"name": "$data-viz-magenta-900",
|
|
1092
|
-
"value": "#
|
|
1093
|
-
"compiledValue": "#
|
|
1092
|
+
"value": "#661e3a",
|
|
1093
|
+
"compiledValue": "#661e3a"
|
|
1094
1094
|
},
|
|
1095
1095
|
{
|
|
1096
1096
|
"name": "$data-viz-magenta-950",
|
|
1097
|
-
"value": "#
|
|
1098
|
-
"compiledValue": "#
|
|
1097
|
+
"value": "#541d31",
|
|
1098
|
+
"compiledValue": "#541d31"
|
|
1099
1099
|
},
|
|
1100
1100
|
{
|
|
1101
1101
|
"name": "$data-viz-orange-50",
|
|
@@ -1104,38 +1104,38 @@
|
|
|
1104
1104
|
},
|
|
1105
1105
|
{
|
|
1106
1106
|
"name": "$data-viz-orange-100",
|
|
1107
|
-
"value": "#
|
|
1108
|
-
"compiledValue": "#
|
|
1107
|
+
"value": "#f5d6b3",
|
|
1108
|
+
"compiledValue": "#f5d6b3"
|
|
1109
1109
|
},
|
|
1110
1110
|
{
|
|
1111
1111
|
"name": "$data-viz-orange-200",
|
|
1112
|
-
"value": "#
|
|
1113
|
-
"compiledValue": "#
|
|
1112
|
+
"value": "#eebd8c",
|
|
1113
|
+
"compiledValue": "#eebd8c"
|
|
1114
1114
|
},
|
|
1115
1115
|
{
|
|
1116
1116
|
"name": "$data-viz-orange-300",
|
|
1117
|
-
"value": "#
|
|
1118
|
-
"compiledValue": "#
|
|
1117
|
+
"value": "#e99b60",
|
|
1118
|
+
"compiledValue": "#e99b60"
|
|
1119
1119
|
},
|
|
1120
1120
|
{
|
|
1121
1121
|
"name": "$data-viz-orange-400",
|
|
1122
|
-
"value": "#
|
|
1123
|
-
"compiledValue": "#
|
|
1122
|
+
"value": "#e07e41",
|
|
1123
|
+
"compiledValue": "#e07e41"
|
|
1124
1124
|
},
|
|
1125
1125
|
{
|
|
1126
1126
|
"name": "$data-viz-orange-500",
|
|
1127
|
-
"value": "#
|
|
1128
|
-
"compiledValue": "#
|
|
1127
|
+
"value": "#c95d2e",
|
|
1128
|
+
"compiledValue": "#c95d2e"
|
|
1129
1129
|
},
|
|
1130
1130
|
{
|
|
1131
1131
|
"name": "$data-viz-orange-600",
|
|
1132
|
-
"value": "#
|
|
1133
|
-
"compiledValue": "#
|
|
1132
|
+
"value": "#b14f18",
|
|
1133
|
+
"compiledValue": "#b14f18"
|
|
1134
1134
|
},
|
|
1135
1135
|
{
|
|
1136
1136
|
"name": "$data-viz-orange-700",
|
|
1137
|
-
"value": "#
|
|
1138
|
-
"compiledValue": "#
|
|
1137
|
+
"value": "#92430a",
|
|
1138
|
+
"compiledValue": "#92430a"
|
|
1139
1139
|
},
|
|
1140
1140
|
{
|
|
1141
1141
|
"name": "$data-viz-orange-800",
|
|
@@ -1144,13 +1144,13 @@
|
|
|
1144
1144
|
},
|
|
1145
1145
|
{
|
|
1146
1146
|
"name": "$data-viz-orange-900",
|
|
1147
|
-
"value": "#
|
|
1148
|
-
"compiledValue": "#
|
|
1147
|
+
"value": "#5e2f05",
|
|
1148
|
+
"compiledValue": "#5e2f05"
|
|
1149
1149
|
},
|
|
1150
1150
|
{
|
|
1151
1151
|
"name": "$data-viz-orange-950",
|
|
1152
|
-
"value": "#
|
|
1153
|
-
"compiledValue": "#
|
|
1152
|
+
"value": "#4b2707",
|
|
1153
|
+
"compiledValue": "#4b2707"
|
|
1154
1154
|
},
|
|
1155
1155
|
{
|
|
1156
1156
|
"name": "$darken-normal-factor",
|
|
@@ -10,11 +10,20 @@ import { TERM_TOKEN_TYPE, INTENT_ACTIVATE_PREVIOUS } from './filtered_search_uti
|
|
|
10
10
|
|
|
11
11
|
jest.mock('~/directives/tooltip');
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// Vue3 is very agressive around making components reactive
|
|
14
|
+
// While keeping Vue2 compatibility we avoid using `markRaw`
|
|
15
|
+
function avoidReactivity(Component) {
|
|
16
|
+
// mutation of component is intentional
|
|
17
|
+
// eslint-disable-next-line no-underscore-dangle, no-param-reassign
|
|
18
|
+
Component.__v_skip = true;
|
|
19
|
+
return Component;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const FakeToken = avoidReactivity({
|
|
14
23
|
props: ['active'],
|
|
15
24
|
inheritAttrs: false,
|
|
16
25
|
render: (h) => h('div'),
|
|
17
|
-
};
|
|
26
|
+
});
|
|
18
27
|
|
|
19
28
|
Vue.directive('GlTooltip', () => {});
|
|
20
29
|
|
|
@@ -541,7 +550,7 @@ describe('Filtered search integration tests', () => {
|
|
|
541
550
|
{
|
|
542
551
|
type: 'static',
|
|
543
552
|
icon: 'label',
|
|
544
|
-
token: GlFilteredSearchToken,
|
|
553
|
+
token: avoidReactivity(GlFilteredSearchToken),
|
|
545
554
|
title: 'Static-token',
|
|
546
555
|
options: [
|
|
547
556
|
{ title: 'first', value: 'one' },
|
|
@@ -554,7 +563,7 @@ describe('Filtered search integration tests', () => {
|
|
|
554
563
|
type: 'unique',
|
|
555
564
|
unique: true,
|
|
556
565
|
icon: 'document',
|
|
557
|
-
token: GlFilteredSearchToken,
|
|
566
|
+
token: avoidReactivity(GlFilteredSearchToken),
|
|
558
567
|
title: 'Unique-token',
|
|
559
568
|
options: [
|
|
560
569
|
{ title: 'first', value: 'one' },
|
|
@@ -692,7 +701,7 @@ describe('Filtered search integration tests', () => {
|
|
|
692
701
|
|
|
693
702
|
await nextTick();
|
|
694
703
|
|
|
695
|
-
input.trigger('keydown', { key: 'Enter' });
|
|
704
|
+
await input.trigger('keydown', { key: 'Enter' });
|
|
696
705
|
|
|
697
706
|
await nextTick();
|
|
698
707
|
|
|
@@ -61,6 +61,24 @@ export default {
|
|
|
61
61
|
type: Array,
|
|
62
62
|
required: false,
|
|
63
63
|
default: () => [],
|
|
64
|
+
validator(value) {
|
|
65
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
66
|
+
if (!value.__v_raw) {
|
|
67
|
+
// This is Vue 2
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
72
|
+
const isOk = Array.isArray(value) && value.every(({ token }) => token.__v_skip);
|
|
73
|
+
if (!isOk) {
|
|
74
|
+
// eslint-disable-next-line no-console
|
|
75
|
+
console.warn(
|
|
76
|
+
'You are using Vue3. In Vue3 each token component passed to filtered search must be wrapped into markRaw'
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return isOk;
|
|
81
|
+
},
|
|
64
82
|
},
|
|
65
83
|
/**
|
|
66
84
|
* If provided, used as history items for this component
|
|
@@ -332,19 +350,6 @@ export default {
|
|
|
332
350
|
</script>
|
|
333
351
|
|
|
334
352
|
<template>
|
|
335
|
-
<!--
|
|
336
|
-
Emitted when search is cleared
|
|
337
|
-
@event clear
|
|
338
|
-
-->
|
|
339
|
-
<!--
|
|
340
|
-
Emitted when item from history is selected
|
|
341
|
-
@event history-item-selected
|
|
342
|
-
@property {object} value History item
|
|
343
|
-
-->
|
|
344
|
-
<!--
|
|
345
|
-
Emitted when clear history button is clicked
|
|
346
|
-
@event clear-history
|
|
347
|
-
-->
|
|
348
353
|
<gl-search-box-by-click
|
|
349
354
|
v-bind="$attrs"
|
|
350
355
|
:value="tokens"
|
|
@@ -406,5 +411,18 @@ export default {
|
|
|
406
411
|
:style="suggestionsStyle"
|
|
407
412
|
/>
|
|
408
413
|
</template>
|
|
414
|
+
<!--
|
|
415
|
+
Emitted when search is cleared
|
|
416
|
+
@event clear
|
|
417
|
+
-->
|
|
418
|
+
<!--
|
|
419
|
+
Emitted when item from history is selected
|
|
420
|
+
@event history-item-selected
|
|
421
|
+
@property {object} value History item
|
|
422
|
+
-->
|
|
423
|
+
<!--
|
|
424
|
+
Emitted when clear history button is clicked
|
|
425
|
+
@event clear-history
|
|
426
|
+
-->
|
|
409
427
|
</gl-search-box-by-click>
|
|
410
428
|
</template>
|