@gitlab/ui 32.55.0 → 32.59.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 +29 -0
- package/dist/components/base/table/table.documentation.js +1 -5
- package/dist/index.css.map +1 -1
- 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/table/table.documentation.js +0 -3
- package/src/components/base/table/table.stories.js +85 -71
- package/src/scss/utilities.scss +810 -94
- package/src/scss/utility-mixins/sizing.scss +27 -3
- package/src/scss/utility-mixins/spacing.scss +408 -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
|
}
|
|
@@ -732,6 +732,21 @@
|
|
|
732
732
|
margin-right: -#{$gl-spacing-scale-6};
|
|
733
733
|
}
|
|
734
734
|
|
|
735
|
+
/**
|
|
736
|
+
* Gap utilities
|
|
737
|
+
*
|
|
738
|
+
* naming convention: gl-gap-{direction}-{spacing-scale-index}
|
|
739
|
+
* notes:
|
|
740
|
+
* - Utilities should strictly follow $gl-spacing-scale
|
|
741
|
+
* - Utilities should be refactored to use gap after dropping Safari 13.x support
|
|
742
|
+
*/
|
|
743
|
+
|
|
744
|
+
@mixin gl-gap-x-3 {
|
|
745
|
+
* + * {
|
|
746
|
+
margin-left: #{$gl-spacing-scale-3};
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
|
|
735
750
|
/**
|
|
736
751
|
* Responsive margin utilities.
|
|
737
752
|
*
|
|
@@ -806,6 +821,12 @@
|
|
|
806
821
|
}
|
|
807
822
|
}
|
|
808
823
|
|
|
824
|
+
@mixin gl-md-ml-3 {
|
|
825
|
+
@include gl-media-breakpoint-up(md) {
|
|
826
|
+
@include gl-ml-3;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
|
|
809
830
|
@mixin gl-md-mr-3 {
|
|
810
831
|
@include gl-media-breakpoint-up(md) {
|
|
811
832
|
@include gl-mr-3;
|
|
@@ -879,18 +900,187 @@
|
|
|
879
900
|
* notes:
|
|
880
901
|
* - Utilities should strictly follow $gl-spacing-scale
|
|
881
902
|
*/
|
|
903
|
+
|
|
904
|
+
@mixin gl-sm-pt-0 {
|
|
905
|
+
@include gl-media-breakpoint-down(sm) {
|
|
906
|
+
@include gl-pt-0;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
@mixin gl-sm-pt-1 {
|
|
911
|
+
@include gl-media-breakpoint-down(sm) {
|
|
912
|
+
@include gl-pt-1;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
@mixin gl-sm-pt-2 {
|
|
917
|
+
@include gl-media-breakpoint-down(sm) {
|
|
918
|
+
@include gl-pt-2;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
@mixin gl-sm-pt-3 {
|
|
923
|
+
@include gl-media-breakpoint-down(sm) {
|
|
924
|
+
@include gl-pt-3;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
@mixin gl-sm-pt-4 {
|
|
929
|
+
@include gl-media-breakpoint-down(sm) {
|
|
930
|
+
@include gl-pt-4;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
@mixin gl-sm-pt-5 {
|
|
935
|
+
@include gl-media-breakpoint-down(sm) {
|
|
936
|
+
@include gl-pt-5;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
@mixin gl-sm-pr-0 {
|
|
941
|
+
@include gl-media-breakpoint-down(sm) {
|
|
942
|
+
@include gl-pr-0;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
@mixin gl-sm-pr-1 {
|
|
947
|
+
@include gl-media-breakpoint-down(sm) {
|
|
948
|
+
@include gl-pr-1;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
@mixin gl-sm-pr-2 {
|
|
953
|
+
@include gl-media-breakpoint-down(sm) {
|
|
954
|
+
@include gl-pr-2;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
@mixin gl-sm-pr-3 {
|
|
959
|
+
@include gl-media-breakpoint-down(sm) {
|
|
960
|
+
@include gl-pr-3;
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
@mixin gl-sm-pr-4 {
|
|
965
|
+
@include gl-media-breakpoint-down(sm) {
|
|
966
|
+
@include gl-pr-4;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
882
970
|
@mixin gl-sm-pr-5 {
|
|
883
971
|
@include gl-media-breakpoint-down(sm) {
|
|
884
972
|
@include gl-pr-5;
|
|
885
973
|
}
|
|
886
974
|
}
|
|
887
975
|
|
|
976
|
+
@mixin gl-sm-pb-0 {
|
|
977
|
+
@include gl-media-breakpoint-down(sm) {
|
|
978
|
+
@include gl-pb-0;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
@mixin gl-sm-pb-1 {
|
|
983
|
+
@include gl-media-breakpoint-down(sm) {
|
|
984
|
+
@include gl-pb-1;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
@mixin gl-sm-pb-2 {
|
|
989
|
+
@include gl-media-breakpoint-down(sm) {
|
|
990
|
+
@include gl-pb-2;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
@mixin gl-sm-pb-3 {
|
|
995
|
+
@include gl-media-breakpoint-down(sm) {
|
|
996
|
+
@include gl-pb-3;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
@mixin gl-sm-pb-4 {
|
|
1001
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1002
|
+
@include gl-pb-4;
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
@mixin gl-sm-pb-5 {
|
|
1007
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1008
|
+
@include gl-pb-5;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
@mixin gl-sm-pl-0 {
|
|
1013
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1014
|
+
@include gl-pl-0;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
@mixin gl-sm-pl-1 {
|
|
1019
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1020
|
+
@include gl-pl-1;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
@mixin gl-sm-pl-2 {
|
|
1025
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1026
|
+
@include gl-pl-2;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
@mixin gl-sm-pl-3 {
|
|
1031
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1032
|
+
@include gl-pl-3;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
@mixin gl-sm-pl-4 {
|
|
1037
|
+
@include gl-media-breakpoint-down(sm) {
|
|
1038
|
+
@include gl-pl-4;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
|
|
888
1042
|
@mixin gl-sm-pl-5 {
|
|
889
1043
|
@include gl-media-breakpoint-down(sm) {
|
|
890
1044
|
@include gl-pl-5;
|
|
891
1045
|
}
|
|
892
1046
|
}
|
|
893
1047
|
|
|
1048
|
+
@mixin gl-md-pt-0 {
|
|
1049
|
+
@include gl-media-breakpoint-up(md) {
|
|
1050
|
+
@include gl-pt-0;
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
@mixin gl-md-pt-1 {
|
|
1055
|
+
@include gl-media-breakpoint-up(md) {
|
|
1056
|
+
@include gl-pt-1;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
@mixin gl-md-pt-2 {
|
|
1061
|
+
@include gl-media-breakpoint-up(md) {
|
|
1062
|
+
@include gl-pt-2;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
@mixin gl-md-pt-3 {
|
|
1067
|
+
@include gl-media-breakpoint-up(md) {
|
|
1068
|
+
@include gl-pt-3;
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
@mixin gl-md-pt-4 {
|
|
1073
|
+
@include gl-media-breakpoint-up(md) {
|
|
1074
|
+
@include gl-pt-4;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
@mixin gl-md-pt-5 {
|
|
1079
|
+
@include gl-media-breakpoint-up(md) {
|
|
1080
|
+
@include gl-pt-5;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
|
|
894
1084
|
@mixin gl-md-pr-0 {
|
|
895
1085
|
@include gl-media-breakpoint-up(md) {
|
|
896
1086
|
@include gl-pr-0;
|
|
@@ -909,24 +1099,240 @@
|
|
|
909
1099
|
}
|
|
910
1100
|
}
|
|
911
1101
|
|
|
1102
|
+
@mixin gl-md-pr-3 {
|
|
1103
|
+
@include gl-media-breakpoint-up(md) {
|
|
1104
|
+
@include gl-pr-3;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
@mixin gl-md-pr-4 {
|
|
1109
|
+
@include gl-media-breakpoint-up(md) {
|
|
1110
|
+
@include gl-pr-4;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
|
|
912
1114
|
@mixin gl-md-pr-5 {
|
|
913
1115
|
@include gl-media-breakpoint-up(md) {
|
|
914
1116
|
@include gl-pr-5;
|
|
915
1117
|
}
|
|
916
1118
|
}
|
|
917
1119
|
|
|
1120
|
+
@mixin gl-md-pb-0 {
|
|
1121
|
+
@include gl-media-breakpoint-up(md) {
|
|
1122
|
+
@include gl-pb-0;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
@mixin gl-md-pb-1 {
|
|
1127
|
+
@include gl-media-breakpoint-up(md) {
|
|
1128
|
+
@include gl-pb-1;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
@mixin gl-md-pb-2 {
|
|
1133
|
+
@include gl-media-breakpoint-up(md) {
|
|
1134
|
+
@include gl-pb-2;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
@mixin gl-md-pb-3 {
|
|
1139
|
+
@include gl-media-breakpoint-up(md) {
|
|
1140
|
+
@include gl-pb-3;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
@mixin gl-md-pb-4 {
|
|
1145
|
+
@include gl-media-breakpoint-up(md) {
|
|
1146
|
+
@include gl-pb-4;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
@mixin gl-md-pb-5 {
|
|
1151
|
+
@include gl-media-breakpoint-up(md) {
|
|
1152
|
+
@include gl-pb-5;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
@mixin gl-md-pl-0 {
|
|
1157
|
+
@include gl-media-breakpoint-up(md) {
|
|
1158
|
+
@include gl-pl-0;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
@mixin gl-md-pl-1 {
|
|
1163
|
+
@include gl-media-breakpoint-up(md) {
|
|
1164
|
+
@include gl-pl-1;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
@mixin gl-md-pl-2 {
|
|
1169
|
+
@include gl-media-breakpoint-up(md) {
|
|
1170
|
+
@include gl-pl-2;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
@mixin gl-md-pl-3 {
|
|
1175
|
+
@include gl-media-breakpoint-up(md) {
|
|
1176
|
+
@include gl-pl-3;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
@mixin gl-md-pl-4 {
|
|
1181
|
+
@include gl-media-breakpoint-up(md) {
|
|
1182
|
+
@include gl-pl-4;
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
@mixin gl-md-pl-5 {
|
|
1187
|
+
@include gl-media-breakpoint-up(md) {
|
|
1188
|
+
@include gl-pl-5;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
@mixin gl-lg-pt-0 {
|
|
1193
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1194
|
+
@include gl-pt-0;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
@mixin gl-lg-pt-1 {
|
|
1199
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1200
|
+
@include gl-pt-1;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
@mixin gl-lg-pt-2 {
|
|
1205
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1206
|
+
@include gl-pt-2;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
@mixin gl-lg-pt-3 {
|
|
1211
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1212
|
+
@include gl-pt-3;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
@mixin gl-lg-pt-4 {
|
|
1217
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1218
|
+
@include gl-pt-4;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
@mixin gl-lg-pt-5 {
|
|
1223
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1224
|
+
@include gl-pt-5;
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
@mixin gl-lg-pr-0 {
|
|
1229
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1230
|
+
@include gl-pr-0;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
@mixin gl-lg-pr-1 {
|
|
1235
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1236
|
+
@include gl-pr-1;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
@mixin gl-lg-pr-2 {
|
|
1241
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1242
|
+
@include gl-pr-2;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
@mixin gl-lg-pr-3 {
|
|
1247
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1248
|
+
@include gl-pr-3;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
@mixin gl-lg-pr-4 {
|
|
1253
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1254
|
+
@include gl-pr-4;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
|
|
918
1258
|
@mixin gl-lg-pr-5 {
|
|
919
1259
|
@include gl-media-breakpoint-up(lg) {
|
|
920
1260
|
@include gl-pr-5;
|
|
921
1261
|
}
|
|
922
1262
|
}
|
|
923
1263
|
|
|
924
|
-
@mixin gl-
|
|
925
|
-
@include gl-media-breakpoint-up(
|
|
1264
|
+
@mixin gl-lg-pb-0 {
|
|
1265
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1266
|
+
@include gl-pb-0;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
@mixin gl-lg-pb-1 {
|
|
1271
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1272
|
+
@include gl-pb-1;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
@mixin gl-lg-pb-2 {
|
|
1277
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1278
|
+
@include gl-pb-2;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
@mixin gl-lg-pb-3 {
|
|
1283
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1284
|
+
@include gl-pb-3;
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
@mixin gl-lg-pb-4 {
|
|
1289
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1290
|
+
@include gl-pb-4;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
@mixin gl-lg-pb-5 {
|
|
1295
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1296
|
+
@include gl-pb-5;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
@mixin gl-lg-pl-0 {
|
|
1301
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1302
|
+
@include gl-pl-0;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
@mixin gl-lg-pl-1 {
|
|
1307
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1308
|
+
@include gl-pl-1;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
@mixin gl-lg-pl-2 {
|
|
1313
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1314
|
+
@include gl-pl-2;
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
@mixin gl-lg-pl-3 {
|
|
1319
|
+
@include gl-media-breakpoint-up(lg) {
|
|
926
1320
|
@include gl-pl-3;
|
|
927
1321
|
}
|
|
928
1322
|
}
|
|
929
1323
|
|
|
1324
|
+
@mixin gl-lg-pl-4 {
|
|
1325
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1326
|
+
@include gl-pl-4;
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
@mixin gl-lg-pl-5 {
|
|
1331
|
+
@include gl-media-breakpoint-up(lg) {
|
|
1332
|
+
@include gl-pl-5;
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
|
|
930
1336
|
/**
|
|
931
1337
|
* Remove margin and padding from empty elements
|
|
932
1338
|
* 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>
|