@gitlab/ui 32.56.0 → 32.60.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 +30 -0
- package/dist/components/base/breadcrumb/breadcrumb.js +56 -4
- package/dist/components/base/table/table.documentation.js +1 -5
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/documentation/documented_stories.js +1 -0
- package/package.json +1 -1
- package/src/components/base/breadcrumb/breadcrumb.spec.js +64 -1
- package/src/components/base/breadcrumb/breadcrumb.stories.js +22 -0
- package/src/components/base/breadcrumb/breadcrumb.vue +71 -3
- package/src/components/base/table/table.documentation.js +0 -3
- package/src/components/base/table/table.stories.js +85 -71
- package/src/scss/utilities.scss +809 -93
- package/src/scss/utility-mixins/sizing.scss +27 -3
- package/src/scss/utility-mixins/spacing.scss +399 -2
- package/src/scss/utility-mixins/typography.scss +4 -0
- package/dist/components/base/table/examples/index.js +0 -19
- package/dist/components/base/table/examples/table.basic.example.js +0 -59
- package/dist/components/base/table/examples/table.custom_fields.example.js +0 -66
- package/src/components/base/table/examples/index.js +0 -22
- package/src/components/base/table/examples/table.basic.example.vue +0 -32
- package/src/components/base/table/examples/table.custom_fields.example.vue +0 -43
|
@@ -206,20 +206,44 @@
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
@mixin gl-sm-w-half {
|
|
210
|
+
@include gl-media-breakpoint-up(sm) {
|
|
211
|
+
width: 50%;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
209
215
|
@mixin gl-md-w-auto {
|
|
210
216
|
@include gl-media-breakpoint-up(md) {
|
|
211
217
|
width: auto;
|
|
212
218
|
}
|
|
213
219
|
}
|
|
214
220
|
|
|
221
|
+
@mixin gl-md-w-50p {
|
|
222
|
+
@include gl-media-breakpoint-up(md) {
|
|
223
|
+
width: 50%;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
215
227
|
@mixin gl-lg-w-1px {
|
|
216
|
-
@
|
|
228
|
+
@include gl-media-breakpoint-up(lg) {
|
|
217
229
|
width: 1px;
|
|
218
230
|
}
|
|
219
231
|
}
|
|
220
232
|
|
|
221
|
-
@mixin gl-
|
|
222
|
-
@include gl-media-breakpoint-up(
|
|
233
|
+
@mixin gl-lg-w-auto {
|
|
234
|
+
@include gl-media-breakpoint-up(lg) {
|
|
235
|
+
width: auto;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@mixin gl-lg-w-25p {
|
|
240
|
+
@include gl-media-breakpoint-up(lg) {
|
|
241
|
+
width: 25%;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@mixin gl-lg-w-50p {
|
|
246
|
+
@include gl-media-breakpoint-up(lg) {
|
|
223
247
|
width: 50%;
|
|
224
248
|
}
|
|
225
249
|
}
|
|
@@ -761,6 +761,12 @@
|
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
|
|
764
|
+
@mixin gl-xs-mb-4 {
|
|
765
|
+
@include gl-media-breakpoint-down(sm) {
|
|
766
|
+
@include gl-mb-4;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
764
770
|
@mixin gl-sm-ml-3 {
|
|
765
771
|
@include gl-media-breakpoint-up(sm) {
|
|
766
772
|
@include gl-ml-3;
|
|
@@ -821,6 +827,12 @@
|
|
|
821
827
|
}
|
|
822
828
|
}
|
|
823
829
|
|
|
830
|
+
@mixin gl-md-ml-3 {
|
|
831
|
+
@include gl-media-breakpoint-up(md) {
|
|
832
|
+
@include gl-ml-3;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
|
|
824
836
|
@mixin gl-md-mr-3 {
|
|
825
837
|
@include gl-media-breakpoint-up(md) {
|
|
826
838
|
@include gl-mr-3;
|
|
@@ -894,18 +906,187 @@
|
|
|
894
906
|
* notes:
|
|
895
907
|
* - Utilities should strictly follow $gl-spacing-scale
|
|
896
908
|
*/
|
|
909
|
+
|
|
910
|
+
@mixin gl-sm-pt-0 {
|
|
911
|
+
@include gl-media-breakpoint-down(sm) {
|
|
912
|
+
@include gl-pt-0;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
@mixin gl-sm-pt-1 {
|
|
917
|
+
@include gl-media-breakpoint-down(sm) {
|
|
918
|
+
@include gl-pt-1;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
@mixin gl-sm-pt-2 {
|
|
923
|
+
@include gl-media-breakpoint-down(sm) {
|
|
924
|
+
@include gl-pt-2;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
@mixin gl-sm-pt-3 {
|
|
929
|
+
@include gl-media-breakpoint-down(sm) {
|
|
930
|
+
@include gl-pt-3;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
@mixin gl-sm-pt-4 {
|
|
935
|
+
@include gl-media-breakpoint-down(sm) {
|
|
936
|
+
@include gl-pt-4;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
@mixin gl-sm-pt-5 {
|
|
941
|
+
@include gl-media-breakpoint-down(sm) {
|
|
942
|
+
@include gl-pt-5;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
@mixin gl-sm-pr-0 {
|
|
947
|
+
@include gl-media-breakpoint-down(sm) {
|
|
948
|
+
@include gl-pr-0;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
@mixin gl-sm-pr-1 {
|
|
953
|
+
@include gl-media-breakpoint-down(sm) {
|
|
954
|
+
@include gl-pr-1;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
@mixin gl-sm-pr-2 {
|
|
959
|
+
@include gl-media-breakpoint-down(sm) {
|
|
960
|
+
@include gl-pr-2;
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
@mixin gl-sm-pr-3 {
|
|
965
|
+
@include gl-media-breakpoint-down(sm) {
|
|
966
|
+
@include gl-pr-3;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
@mixin gl-sm-pr-4 {
|
|
971
|
+
@include gl-media-breakpoint-down(sm) {
|
|
972
|
+
@include gl-pr-4;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
|
|
897
976
|
@mixin gl-sm-pr-5 {
|
|
898
977
|
@include gl-media-breakpoint-down(sm) {
|
|
899
978
|
@include gl-pr-5;
|
|
900
979
|
}
|
|
901
980
|
}
|
|
902
981
|
|
|
982
|
+
@mixin gl-sm-pb-0 {
|
|
983
|
+
@include gl-media-breakpoint-down(sm) {
|
|
984
|
+
@include gl-pb-0;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
@mixin gl-sm-pb-1 {
|
|
989
|
+
@include gl-media-breakpoint-down(sm) {
|
|
990
|
+
@include gl-pb-1;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
@mixin gl-sm-pb-2 {
|
|
995
|
+
@include gl-media-breakpoint-down(sm) {
|
|
996
|
+
@include gl-pb-2;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
@mixin gl-sm-pb-3 {
|
|
1001
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1002
|
+
@include gl-pb-3;
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
@mixin gl-sm-pb-4 {
|
|
1007
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1008
|
+
@include gl-pb-4;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
@mixin gl-sm-pb-5 {
|
|
1013
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1014
|
+
@include gl-pb-5;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
@mixin gl-sm-pl-0 {
|
|
1019
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1020
|
+
@include gl-pl-0;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
@mixin gl-sm-pl-1 {
|
|
1025
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1026
|
+
@include gl-pl-1;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
@mixin gl-sm-pl-2 {
|
|
1031
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1032
|
+
@include gl-pl-2;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
@mixin gl-sm-pl-3 {
|
|
1037
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1038
|
+
@include gl-pl-3;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
@mixin gl-sm-pl-4 {
|
|
1043
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1044
|
+
@include gl-pl-4;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
|
|
903
1048
|
@mixin gl-sm-pl-5 {
|
|
904
1049
|
@include gl-media-breakpoint-down(sm) {
|
|
905
1050
|
@include gl-pl-5;
|
|
906
1051
|
}
|
|
907
1052
|
}
|
|
908
1053
|
|
|
1054
|
+
@mixin gl-md-pt-0 {
|
|
1055
|
+
@include gl-media-breakpoint-up(md) {
|
|
1056
|
+
@include gl-pt-0;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
@mixin gl-md-pt-1 {
|
|
1061
|
+
@include gl-media-breakpoint-up(md) {
|
|
1062
|
+
@include gl-pt-1;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
@mixin gl-md-pt-2 {
|
|
1067
|
+
@include gl-media-breakpoint-up(md) {
|
|
1068
|
+
@include gl-pt-2;
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
@mixin gl-md-pt-3 {
|
|
1073
|
+
@include gl-media-breakpoint-up(md) {
|
|
1074
|
+
@include gl-pt-3;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
@mixin gl-md-pt-4 {
|
|
1079
|
+
@include gl-media-breakpoint-up(md) {
|
|
1080
|
+
@include gl-pt-4;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
@mixin gl-md-pt-5 {
|
|
1085
|
+
@include gl-media-breakpoint-up(md) {
|
|
1086
|
+
@include gl-pt-5;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
|
|
909
1090
|
@mixin gl-md-pr-0 {
|
|
910
1091
|
@include gl-media-breakpoint-up(md) {
|
|
911
1092
|
@include gl-pr-0;
|
|
@@ -924,24 +1105,240 @@
|
|
|
924
1105
|
}
|
|
925
1106
|
}
|
|
926
1107
|
|
|
1108
|
+
@mixin gl-md-pr-3 {
|
|
1109
|
+
@include gl-media-breakpoint-up(md) {
|
|
1110
|
+
@include gl-pr-3;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
@mixin gl-md-pr-4 {
|
|
1115
|
+
@include gl-media-breakpoint-up(md) {
|
|
1116
|
+
@include gl-pr-4;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
|
|
927
1120
|
@mixin gl-md-pr-5 {
|
|
928
1121
|
@include gl-media-breakpoint-up(md) {
|
|
929
1122
|
@include gl-pr-5;
|
|
930
1123
|
}
|
|
931
1124
|
}
|
|
932
1125
|
|
|
1126
|
+
@mixin gl-md-pb-0 {
|
|
1127
|
+
@include gl-media-breakpoint-up(md) {
|
|
1128
|
+
@include gl-pb-0;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
@mixin gl-md-pb-1 {
|
|
1133
|
+
@include gl-media-breakpoint-up(md) {
|
|
1134
|
+
@include gl-pb-1;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
@mixin gl-md-pb-2 {
|
|
1139
|
+
@include gl-media-breakpoint-up(md) {
|
|
1140
|
+
@include gl-pb-2;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
@mixin gl-md-pb-3 {
|
|
1145
|
+
@include gl-media-breakpoint-up(md) {
|
|
1146
|
+
@include gl-pb-3;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
@mixin gl-md-pb-4 {
|
|
1151
|
+
@include gl-media-breakpoint-up(md) {
|
|
1152
|
+
@include gl-pb-4;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
@mixin gl-md-pb-5 {
|
|
1157
|
+
@include gl-media-breakpoint-up(md) {
|
|
1158
|
+
@include gl-pb-5;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
@mixin gl-md-pl-0 {
|
|
1163
|
+
@include gl-media-breakpoint-up(md) {
|
|
1164
|
+
@include gl-pl-0;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
@mixin gl-md-pl-1 {
|
|
1169
|
+
@include gl-media-breakpoint-up(md) {
|
|
1170
|
+
@include gl-pl-1;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
@mixin gl-md-pl-2 {
|
|
1175
|
+
@include gl-media-breakpoint-up(md) {
|
|
1176
|
+
@include gl-pl-2;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
@mixin gl-md-pl-3 {
|
|
1181
|
+
@include gl-media-breakpoint-up(md) {
|
|
1182
|
+
@include gl-pl-3;
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
@mixin gl-md-pl-4 {
|
|
1187
|
+
@include gl-media-breakpoint-up(md) {
|
|
1188
|
+
@include gl-pl-4;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
@mixin gl-md-pl-5 {
|
|
1193
|
+
@include gl-media-breakpoint-up(md) {
|
|
1194
|
+
@include gl-pl-5;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
@mixin gl-lg-pt-0 {
|
|
1199
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1200
|
+
@include gl-pt-0;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
@mixin gl-lg-pt-1 {
|
|
1205
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1206
|
+
@include gl-pt-1;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
@mixin gl-lg-pt-2 {
|
|
1211
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1212
|
+
@include gl-pt-2;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
@mixin gl-lg-pt-3 {
|
|
1217
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1218
|
+
@include gl-pt-3;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
@mixin gl-lg-pt-4 {
|
|
1223
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1224
|
+
@include gl-pt-4;
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
@mixin gl-lg-pt-5 {
|
|
1229
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1230
|
+
@include gl-pt-5;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
@mixin gl-lg-pr-0 {
|
|
1235
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1236
|
+
@include gl-pr-0;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
@mixin gl-lg-pr-1 {
|
|
1241
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1242
|
+
@include gl-pr-1;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
@mixin gl-lg-pr-2 {
|
|
1247
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1248
|
+
@include gl-pr-2;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
@mixin gl-lg-pr-3 {
|
|
1253
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1254
|
+
@include gl-pr-3;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
@mixin gl-lg-pr-4 {
|
|
1259
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1260
|
+
@include gl-pr-4;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
|
|
933
1264
|
@mixin gl-lg-pr-5 {
|
|
934
1265
|
@include gl-media-breakpoint-up(lg) {
|
|
935
1266
|
@include gl-pr-5;
|
|
936
1267
|
}
|
|
937
1268
|
}
|
|
938
1269
|
|
|
939
|
-
@mixin gl-
|
|
940
|
-
@include gl-media-breakpoint-up(
|
|
1270
|
+
@mixin gl-lg-pb-0 {
|
|
1271
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1272
|
+
@include gl-pb-0;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
@mixin gl-lg-pb-1 {
|
|
1277
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1278
|
+
@include gl-pb-1;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
@mixin gl-lg-pb-2 {
|
|
1283
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1284
|
+
@include gl-pb-2;
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
@mixin gl-lg-pb-3 {
|
|
1289
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1290
|
+
@include gl-pb-3;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
@mixin gl-lg-pb-4 {
|
|
1295
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1296
|
+
@include gl-pb-4;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
@mixin gl-lg-pb-5 {
|
|
1301
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1302
|
+
@include gl-pb-5;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
@mixin gl-lg-pl-0 {
|
|
1307
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1308
|
+
@include gl-pl-0;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
@mixin gl-lg-pl-1 {
|
|
1313
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1314
|
+
@include gl-pl-1;
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
@mixin gl-lg-pl-2 {
|
|
1319
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1320
|
+
@include gl-pl-2;
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
@mixin gl-lg-pl-3 {
|
|
1325
|
+
@include gl-media-breakpoint-up(lg) {
|
|
941
1326
|
@include gl-pl-3;
|
|
942
1327
|
}
|
|
943
1328
|
}
|
|
944
1329
|
|
|
1330
|
+
@mixin gl-lg-pl-4 {
|
|
1331
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1332
|
+
@include gl-pl-4;
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
@mixin gl-lg-pl-5 {
|
|
1337
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1338
|
+
@include gl-pl-5;
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
|
|
945
1342
|
/**
|
|
946
1343
|
* Remove margin and padding from empty elements
|
|
947
1344
|
* to prevent them from inadvertantly taking up
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import component from './table.basic.example';
|
|
2
|
-
import componentCustomFields from './table.custom_fields.example';
|
|
3
|
-
|
|
4
|
-
var index = [{
|
|
5
|
-
name: 'Basic',
|
|
6
|
-
items: [{
|
|
7
|
-
id: 'table-basic',
|
|
8
|
-
name: 'Basic',
|
|
9
|
-
description: 'Basic Table',
|
|
10
|
-
component
|
|
11
|
-
}, {
|
|
12
|
-
id: 'table-custom-fields',
|
|
13
|
-
name: 'Custom Fields',
|
|
14
|
-
description: 'Custom component fields',
|
|
15
|
-
component: componentCustomFields
|
|
16
|
-
}]
|
|
17
|
-
}];
|
|
18
|
-
|
|
19
|
-
export default index;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
fields: [{
|
|
5
|
-
key: 'column_one',
|
|
6
|
-
label: 'Column One'
|
|
7
|
-
}, {
|
|
8
|
-
key: 'col_2',
|
|
9
|
-
label: 'Column 2'
|
|
10
|
-
}],
|
|
11
|
-
items: [{
|
|
12
|
-
column_one: 'test',
|
|
13
|
-
col_2: 1234
|
|
14
|
-
}, {
|
|
15
|
-
column_one: 'test2',
|
|
16
|
-
col_2: 5678
|
|
17
|
-
}, {
|
|
18
|
-
column_one: 'test3',
|
|
19
|
-
col_2: 9101
|
|
20
|
-
}]
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/* script */
|
|
24
|
-
const __vue_script__ = script;
|
|
25
|
-
|
|
26
|
-
/* template */
|
|
27
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-table',{attrs:{"items":_vm.$options.items,"fields":_vm.$options.fields}})};
|
|
28
|
-
var __vue_staticRenderFns__ = [];
|
|
29
|
-
|
|
30
|
-
/* style */
|
|
31
|
-
const __vue_inject_styles__ = undefined;
|
|
32
|
-
/* scoped */
|
|
33
|
-
const __vue_scope_id__ = undefined;
|
|
34
|
-
/* module identifier */
|
|
35
|
-
const __vue_module_identifier__ = undefined;
|
|
36
|
-
/* functional template */
|
|
37
|
-
const __vue_is_functional_template__ = false;
|
|
38
|
-
/* style inject */
|
|
39
|
-
|
|
40
|
-
/* style inject SSR */
|
|
41
|
-
|
|
42
|
-
/* style inject shadow dom */
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const __vue_component__ = __vue_normalize__(
|
|
47
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
48
|
-
__vue_inject_styles__,
|
|
49
|
-
__vue_script__,
|
|
50
|
-
__vue_scope_id__,
|
|
51
|
-
__vue_is_functional_template__,
|
|
52
|
-
__vue_module_identifier__,
|
|
53
|
-
false,
|
|
54
|
-
undefined,
|
|
55
|
-
undefined,
|
|
56
|
-
undefined
|
|
57
|
-
);
|
|
58
|
-
|
|
59
|
-
export default __vue_component__;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
fields: [{
|
|
5
|
-
key: 'column_one',
|
|
6
|
-
label: 'Column One'
|
|
7
|
-
}, {
|
|
8
|
-
key: 'col_2',
|
|
9
|
-
label: 'Styled Column 2'
|
|
10
|
-
}, {
|
|
11
|
-
key: 'custom_markup',
|
|
12
|
-
label: 'Styled Virtual Column'
|
|
13
|
-
}],
|
|
14
|
-
items: [{
|
|
15
|
-
column_one: 'test',
|
|
16
|
-
col_2: 1234
|
|
17
|
-
}, {
|
|
18
|
-
column_one: 'test2',
|
|
19
|
-
col_2: 5678
|
|
20
|
-
}, {
|
|
21
|
-
column_one: 'test3',
|
|
22
|
-
col_2: 9101
|
|
23
|
-
}]
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/* script */
|
|
27
|
-
const __vue_script__ = script;
|
|
28
|
-
|
|
29
|
-
/* template */
|
|
30
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-table',{attrs:{"items":_vm.$options.items,"fields":_vm.$options.fields},scopedSlots:_vm._u([{key:"cell(col_2)",fn:function(ref){
|
|
31
|
-
var value = ref.value;
|
|
32
|
-
return [_c('span',{staticClass:"gl-font-weight-bold gl-text-green-500"},[_vm._v(_vm._s(value))])]}},{key:"cell(custom_markup)",fn:function(ref){
|
|
33
|
-
var index = ref.index;
|
|
34
|
-
return [_c('span',{staticClass:"gl-font-style-italic gl-text-red-500"},[_vm._v("Index: "+_vm._s(index + 1))])]}}])})};
|
|
35
|
-
var __vue_staticRenderFns__ = [];
|
|
36
|
-
|
|
37
|
-
/* style */
|
|
38
|
-
const __vue_inject_styles__ = undefined;
|
|
39
|
-
/* scoped */
|
|
40
|
-
const __vue_scope_id__ = undefined;
|
|
41
|
-
/* module identifier */
|
|
42
|
-
const __vue_module_identifier__ = undefined;
|
|
43
|
-
/* functional template */
|
|
44
|
-
const __vue_is_functional_template__ = false;
|
|
45
|
-
/* style inject */
|
|
46
|
-
|
|
47
|
-
/* style inject SSR */
|
|
48
|
-
|
|
49
|
-
/* style inject shadow dom */
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
const __vue_component__ = __vue_normalize__(
|
|
54
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
55
|
-
__vue_inject_styles__,
|
|
56
|
-
__vue_script__,
|
|
57
|
-
__vue_scope_id__,
|
|
58
|
-
__vue_is_functional_template__,
|
|
59
|
-
__vue_module_identifier__,
|
|
60
|
-
false,
|
|
61
|
-
undefined,
|
|
62
|
-
undefined,
|
|
63
|
-
undefined
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
export default __vue_component__;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import component from './table.basic.example.vue';
|
|
2
|
-
import componentCustomFields from './table.custom_fields.example.vue';
|
|
3
|
-
|
|
4
|
-
export default [
|
|
5
|
-
{
|
|
6
|
-
name: 'Basic',
|
|
7
|
-
items: [
|
|
8
|
-
{
|
|
9
|
-
id: 'table-basic',
|
|
10
|
-
name: 'Basic',
|
|
11
|
-
description: 'Basic Table',
|
|
12
|
-
component,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
id: 'table-custom-fields',
|
|
16
|
-
name: 'Custom Fields',
|
|
17
|
-
description: 'Custom component fields',
|
|
18
|
-
component: componentCustomFields,
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
];
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
fields: [
|
|
4
|
-
{
|
|
5
|
-
key: 'column_one',
|
|
6
|
-
label: 'Column One',
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
key: 'col_2',
|
|
10
|
-
label: 'Column 2',
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
items: [
|
|
14
|
-
{
|
|
15
|
-
column_one: 'test',
|
|
16
|
-
col_2: 1234,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
column_one: 'test2',
|
|
20
|
-
col_2: 5678,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
column_one: 'test3',
|
|
24
|
-
col_2: 9101,
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
};
|
|
28
|
-
</script>
|
|
29
|
-
|
|
30
|
-
<template>
|
|
31
|
-
<gl-table :items="$options.items" :fields="$options.fields" />
|
|
32
|
-
</template>
|