@appscode/design-system 1.0.43-alpha.5 → 1.0.43-alpha.9
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/base/utilities/_derived-variables.scss +2 -2
- package/base/utilities/_initial-variables.scss +34 -21
- package/base/utilities/_mixin.scss +96 -9
- package/components/_ac-alert-box.scss +30 -2
- package/components/_ac-input.scss +6 -1
- package/components/_ac-multi-select.scss +24 -4
- package/components/_ac-table.scss +1 -1
- package/components/_breadcumb.scss +1 -1
- package/components/_buttons.scss +25 -5
- package/components/_left-sidebar-menu.scss +6 -1
- package/components/_pagination.scss +36 -6
- package/components/ac-toaster/_ac-toasted.scss +36 -4
- package/package.json +1 -1
- package/plugins/vue-toaster.js +6 -6
- package/vue-components/v2/table/Table.vue +8 -8
|
@@ -17,8 +17,8 @@ $ac-input-bg-color: #eceff4;
|
|
|
17
17
|
$ac-bg-light-gray: #f4f6f9;
|
|
18
18
|
$table-header: #e4e8ef;
|
|
19
19
|
// Text colors
|
|
20
|
-
$ac-color-text:
|
|
21
|
-
$ac-color-heading:
|
|
20
|
+
$ac-color-text: var(--ac-text);
|
|
21
|
+
$ac-color-heading: var(--ac-text-heading);
|
|
22
22
|
|
|
23
23
|
// Link colors
|
|
24
24
|
$ac-link: $ac-blue;
|
|
@@ -46,33 +46,46 @@ $ac-green: #27b064;
|
|
|
46
46
|
$ac-blue: #0aafff;
|
|
47
47
|
$ac-purple: #791e94;
|
|
48
48
|
$ac-red: #ea3d2f;
|
|
49
|
-
$ac-bg: #fff;
|
|
50
49
|
|
|
51
50
|
// Color Border
|
|
52
51
|
$ac-border: #a6abbd;
|
|
53
52
|
$ac-border-hover: #54657e;
|
|
54
53
|
|
|
55
54
|
// Colors Primary
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
55
|
+
// root colors
|
|
56
|
+
:root {
|
|
57
|
+
--hsl-hue: 208;
|
|
58
|
+
--hsl-saturation: 77%;
|
|
59
|
+
--hsl-lightness: 42%;
|
|
60
|
+
--contrast-threshold: 60%;
|
|
61
|
+
|
|
62
|
+
--bg-color: #ffffff;
|
|
63
|
+
|
|
64
|
+
--font-hsl-hue: 0;
|
|
65
|
+
--font-hsl-saturation: 0%;
|
|
66
|
+
--font-hsl-lightness: 11%;
|
|
67
|
+
|
|
68
|
+
--ac-primary: hsla(
|
|
69
|
+
var(--hsl-hue),
|
|
70
|
+
var(--hsl-saturation),
|
|
71
|
+
var(--hsl-lightness),
|
|
72
|
+
1
|
|
73
|
+
);
|
|
74
|
+
--ac-text: hsla(
|
|
75
|
+
var(--font-hsl-hue),
|
|
76
|
+
calc(var(--font-hsl-saturation) + 10%),
|
|
77
|
+
calc(var(--font-hsl-lightness) + 10%),
|
|
78
|
+
1
|
|
79
|
+
);
|
|
80
|
+
--ac-text-heading: hsla(
|
|
81
|
+
var(--font-hsl-hue),
|
|
82
|
+
var(--font-hsl-saturation),
|
|
83
|
+
var(--font-hsl-lightness),
|
|
84
|
+
1
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
$ac-bg: var(--bg-color);
|
|
88
|
+
$ac-primary: var(--ac-primary);
|
|
76
89
|
|
|
77
90
|
// Colors black
|
|
78
91
|
$ac-black: #000000;
|
|
@@ -5,21 +5,48 @@
|
|
|
5
5
|
border: none;
|
|
6
6
|
|
|
7
7
|
&:hover {
|
|
8
|
-
|
|
8
|
+
@if (type_of($colorName) == "color") {
|
|
9
|
+
background-color: darken($colorName, 9);
|
|
10
|
+
} @else {
|
|
11
|
+
background-color: hsla(
|
|
12
|
+
var(--hsl-hue),
|
|
13
|
+
var(--hsl-saturation),
|
|
14
|
+
calc(var(--hsl-lightness) - 9%),
|
|
15
|
+
1
|
|
16
|
+
);
|
|
17
|
+
}
|
|
9
18
|
// box-shadow: 0px 6px 12px scale-color($color: $colorName, $lightness: 70%);
|
|
10
19
|
}
|
|
11
20
|
&:focus-visible {
|
|
12
21
|
outline: none;
|
|
13
22
|
}
|
|
14
23
|
&.is-light {
|
|
15
|
-
|
|
24
|
+
@if (type_of($colorName) == "color") {
|
|
25
|
+
background-color: scale-color($colorName, $lightness: 90%);
|
|
26
|
+
} @else {
|
|
27
|
+
background-color: hsla(
|
|
28
|
+
var(--hsl-hue),
|
|
29
|
+
var(--hsl-saturation),
|
|
30
|
+
var(--hsl-lightness),
|
|
31
|
+
0.1
|
|
32
|
+
);
|
|
33
|
+
}
|
|
16
34
|
color: $colorName;
|
|
17
35
|
&.is-border {
|
|
18
36
|
border: 1px solid $colorName;
|
|
19
37
|
}
|
|
20
38
|
|
|
21
39
|
&:hover {
|
|
22
|
-
|
|
40
|
+
@if (type_of($colorName) == "color") {
|
|
41
|
+
background-color: scale-color($colorName, $lightness: 80%);
|
|
42
|
+
} @else {
|
|
43
|
+
background-color: hsla(
|
|
44
|
+
var(--hsl-hue),
|
|
45
|
+
var(--hsl-saturation),
|
|
46
|
+
var(--hsl-lightness),
|
|
47
|
+
0.2
|
|
48
|
+
);
|
|
49
|
+
}
|
|
23
50
|
}
|
|
24
51
|
}
|
|
25
52
|
|
|
@@ -35,13 +62,38 @@
|
|
|
35
62
|
}
|
|
36
63
|
|
|
37
64
|
&.is-square {
|
|
38
|
-
|
|
65
|
+
@if (type_of($colorName) == "color") {
|
|
66
|
+
background-color: scale-color($colorName, $lightness: 80%);
|
|
67
|
+
} @else {
|
|
68
|
+
background-color: hsla(
|
|
69
|
+
var(--hsl-hue),
|
|
70
|
+
var(--hsl-saturation),
|
|
71
|
+
var(--hsl-lightness),
|
|
72
|
+
0.2
|
|
73
|
+
);
|
|
74
|
+
}
|
|
39
75
|
color: $colorName;
|
|
40
76
|
|
|
41
77
|
&:hover {
|
|
42
78
|
background-color: $colorName;
|
|
43
79
|
color: $ac-white;
|
|
44
|
-
|
|
80
|
+
|
|
81
|
+
@if (type_of($colorName) == "color") {
|
|
82
|
+
box-shadow: 0px
|
|
83
|
+
6px
|
|
84
|
+
12px
|
|
85
|
+
scale-color($color: $colorName, $lightness: 70%);
|
|
86
|
+
} @else {
|
|
87
|
+
box-shadow: 0px
|
|
88
|
+
6px
|
|
89
|
+
12px
|
|
90
|
+
hsla(
|
|
91
|
+
var(--hsl-hue),
|
|
92
|
+
var(--hsl-saturation),
|
|
93
|
+
var(--hsl-lightness),
|
|
94
|
+
0.3
|
|
95
|
+
);
|
|
96
|
+
}
|
|
45
97
|
img {
|
|
46
98
|
filter: brightness(100) !important;
|
|
47
99
|
}
|
|
@@ -53,7 +105,16 @@
|
|
|
53
105
|
color: $colorName;
|
|
54
106
|
|
|
55
107
|
&:hover {
|
|
56
|
-
|
|
108
|
+
@if (type_of($colorName) == "color") {
|
|
109
|
+
background-color: scale-color($colorName, $lightness: 80%);
|
|
110
|
+
} @else {
|
|
111
|
+
background-color: hsla(
|
|
112
|
+
var(--hsl-hue),
|
|
113
|
+
var(--hsl-saturation),
|
|
114
|
+
var(--hsl-lightness),
|
|
115
|
+
0.2
|
|
116
|
+
);
|
|
117
|
+
}
|
|
57
118
|
}
|
|
58
119
|
|
|
59
120
|
&.is-outlined {
|
|
@@ -77,7 +138,15 @@
|
|
|
77
138
|
&:hover {
|
|
78
139
|
background-color: $colorName;
|
|
79
140
|
color: $ac-white;
|
|
80
|
-
|
|
141
|
+
|
|
142
|
+
@if (type_of($colorName) == "color") {
|
|
143
|
+
box-shadow: 0px 6px 12px scale-color($color: $colorName, $lightness: 70%);
|
|
144
|
+
} @else {
|
|
145
|
+
box-shadow: 0px
|
|
146
|
+
6px
|
|
147
|
+
12px
|
|
148
|
+
hsla(var(--hsl-hue), var(--hsl-saturation), var(--hsl-lightness), 0.3);
|
|
149
|
+
}
|
|
81
150
|
}
|
|
82
151
|
|
|
83
152
|
&.is-large {
|
|
@@ -85,7 +154,16 @@
|
|
|
85
154
|
z-index: 1;
|
|
86
155
|
overflow: hidden;
|
|
87
156
|
border: 1px solid $colorName;
|
|
88
|
-
|
|
157
|
+
@if (type_of($colorName) == "color") {
|
|
158
|
+
background-color: scale-color($colorName, $lightness: 80%);
|
|
159
|
+
} @else {
|
|
160
|
+
background-color: hsla(
|
|
161
|
+
var(--hsl-hue),
|
|
162
|
+
var(--hsl-saturation),
|
|
163
|
+
var(--hsl-lightness),
|
|
164
|
+
0.2
|
|
165
|
+
);
|
|
166
|
+
}
|
|
89
167
|
|
|
90
168
|
span {
|
|
91
169
|
color: $colorName;
|
|
@@ -123,7 +201,16 @@
|
|
|
123
201
|
}
|
|
124
202
|
|
|
125
203
|
@mixin ac-tags($colorName) {
|
|
126
|
-
|
|
204
|
+
@if (type_of($colorName) == "color") {
|
|
205
|
+
background-color: scale-color($colorName, $lightness: 85%);
|
|
206
|
+
} @else {
|
|
207
|
+
background-color: hsla(
|
|
208
|
+
var(--hsl-hue),
|
|
209
|
+
var(--hsl-saturation),
|
|
210
|
+
var(--hsl-lightness),
|
|
211
|
+
0.15
|
|
212
|
+
);
|
|
213
|
+
}
|
|
127
214
|
border-color: $colorName;
|
|
128
215
|
color: $colorName;
|
|
129
216
|
}
|
|
@@ -26,7 +26,12 @@
|
|
|
26
26
|
color: $ac-primary;
|
|
27
27
|
|
|
28
28
|
&:hover {
|
|
29
|
-
color:
|
|
29
|
+
color: hsla(
|
|
30
|
+
var(--hsl-hue),
|
|
31
|
+
var(--hsl-saturation),
|
|
32
|
+
calc(var(--hsl-lightness) - 10%),
|
|
33
|
+
1
|
|
34
|
+
);
|
|
30
35
|
}
|
|
31
36
|
}
|
|
32
37
|
}
|
|
@@ -64,10 +69,33 @@
|
|
|
64
69
|
}
|
|
65
70
|
}
|
|
66
71
|
}
|
|
72
|
+
@mixin acPrimaryNotification() {
|
|
73
|
+
background: hsla(
|
|
74
|
+
var(--hsl-hue),
|
|
75
|
+
var(--hsl-saturation),
|
|
76
|
+
var(--hsl-lightness),
|
|
77
|
+
0.2
|
|
78
|
+
);
|
|
79
|
+
color: $ac-white;
|
|
80
|
+
border-color: $ac-primary;
|
|
81
|
+
|
|
82
|
+
p {
|
|
83
|
+
color: $ac-primary;
|
|
84
|
+
|
|
85
|
+
a {
|
|
86
|
+
color: $ac-primary;
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
color: $ac-primary;
|
|
90
|
+
opacity: 0.8;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
67
95
|
|
|
68
96
|
// is-primary
|
|
69
97
|
.ac-notification.is-primary {
|
|
70
|
-
@include
|
|
98
|
+
@include acPrimaryNotification();
|
|
71
99
|
}
|
|
72
100
|
|
|
73
101
|
// is.info
|
|
@@ -350,7 +350,12 @@
|
|
|
350
350
|
transition: 0.3s;
|
|
351
351
|
|
|
352
352
|
&:hover {
|
|
353
|
-
background:
|
|
353
|
+
background: hsla(
|
|
354
|
+
var(--hsl-hue),
|
|
355
|
+
var(--hsl-saturation),
|
|
356
|
+
var(--hsl-lightness),
|
|
357
|
+
0.2
|
|
358
|
+
);
|
|
354
359
|
color: $ac-primary;
|
|
355
360
|
}
|
|
356
361
|
}
|
|
@@ -47,7 +47,12 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
&:hover {
|
|
50
|
-
background-color:
|
|
50
|
+
background-color: hsla(
|
|
51
|
+
var(--hsl-hue),
|
|
52
|
+
var(--hsl-saturation),
|
|
53
|
+
calc(var(--hsl-lightness) - 9%),
|
|
54
|
+
1
|
|
55
|
+
);
|
|
51
56
|
}
|
|
52
57
|
}
|
|
53
58
|
}
|
|
@@ -91,16 +96,31 @@
|
|
|
91
96
|
}
|
|
92
97
|
|
|
93
98
|
&:hover {
|
|
94
|
-
background-color:
|
|
99
|
+
background-color: hsla(
|
|
100
|
+
var(--hsl-hue),
|
|
101
|
+
var(--hsl-saturation),
|
|
102
|
+
var(--hsl-lightness),
|
|
103
|
+
0.2
|
|
104
|
+
);
|
|
95
105
|
color: $ac-primary;
|
|
96
106
|
}
|
|
97
107
|
|
|
98
108
|
&.multiselect__option--highlight {
|
|
99
|
-
background-color:
|
|
109
|
+
background-color: hsla(
|
|
110
|
+
var(--hsl-hue),
|
|
111
|
+
var(--hsl-saturation),
|
|
112
|
+
var(--hsl-lightness),
|
|
113
|
+
0.2
|
|
114
|
+
);
|
|
100
115
|
color: $ac-primary;
|
|
101
116
|
|
|
102
117
|
&:after {
|
|
103
|
-
background-color:
|
|
118
|
+
background-color: hsla(
|
|
119
|
+
var(--hsl-hue),
|
|
120
|
+
var(--hsl-saturation),
|
|
121
|
+
var(--hsl-lightness),
|
|
122
|
+
0.2
|
|
123
|
+
);
|
|
104
124
|
color: $ac-primary;
|
|
105
125
|
}
|
|
106
126
|
}
|
package/components/_buttons.scss
CHANGED
|
@@ -19,8 +19,18 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&:hover {
|
|
22
|
-
border-color:
|
|
23
|
-
|
|
22
|
+
border-color: hsla(
|
|
23
|
+
var(--hsl-hue),
|
|
24
|
+
var(--hsl-saturation),
|
|
25
|
+
calc(var(--hsl-lightness) - 9%),
|
|
26
|
+
1
|
|
27
|
+
);
|
|
28
|
+
color: hsla(
|
|
29
|
+
var(--hsl-hue),
|
|
30
|
+
var(--hsl-saturation),
|
|
31
|
+
calc(var(--hsl-lightness) - 9%),
|
|
32
|
+
1
|
|
33
|
+
);
|
|
24
34
|
}
|
|
25
35
|
|
|
26
36
|
&.underline-button {
|
|
@@ -263,7 +273,7 @@
|
|
|
263
273
|
color: $ac-white;
|
|
264
274
|
|
|
265
275
|
&:hover {
|
|
266
|
-
background-color:
|
|
276
|
+
background-color: hsla(0, 0, calc(var(--hsl-lightness) - 9%), 1);
|
|
267
277
|
}
|
|
268
278
|
}
|
|
269
279
|
|
|
@@ -274,13 +284,23 @@
|
|
|
274
284
|
&:hover {
|
|
275
285
|
box-shadow: none;
|
|
276
286
|
box-shadow: none;
|
|
277
|
-
color:
|
|
287
|
+
color: hsla(
|
|
288
|
+
var(--hsl-hue),
|
|
289
|
+
var(--hsl-saturation),
|
|
290
|
+
calc(var(--hsl-lightness) - 10%),
|
|
291
|
+
1
|
|
292
|
+
);
|
|
278
293
|
}
|
|
279
294
|
|
|
280
295
|
&:focus {
|
|
281
296
|
box-shadow: none;
|
|
282
297
|
box-shadow: none;
|
|
283
|
-
color:
|
|
298
|
+
color: hsla(
|
|
299
|
+
var(--hsl-hue),
|
|
300
|
+
var(--hsl-saturation),
|
|
301
|
+
calc(var(--hsl-lightness) - 10%),
|
|
302
|
+
1
|
|
303
|
+
);
|
|
284
304
|
}
|
|
285
305
|
}
|
|
286
306
|
|
|
@@ -232,7 +232,12 @@
|
|
|
232
232
|
&::before {
|
|
233
233
|
background: linear-gradient(
|
|
234
234
|
89.41deg,
|
|
235
|
-
|
|
235
|
+
hsla(
|
|
236
|
+
var(--hsl-hue),
|
|
237
|
+
var(--hsl-saturation),
|
|
238
|
+
var(--hsl-lightness),
|
|
239
|
+
0.2
|
|
240
|
+
),
|
|
236
241
|
rgba(25, 113, 189, 0) 138.7%
|
|
237
242
|
);
|
|
238
243
|
position: absolute;
|
|
@@ -18,7 +18,13 @@
|
|
|
18
18
|
&:hover {
|
|
19
19
|
background-color: $ac-primary;
|
|
20
20
|
color: $ac-white;
|
|
21
|
-
border: 1px solid
|
|
21
|
+
border: 1px solid
|
|
22
|
+
hsla(
|
|
23
|
+
var(--hsl-hue),
|
|
24
|
+
var(--hsl-saturation),
|
|
25
|
+
calc(var(--hsl-lightness) - 5%),
|
|
26
|
+
1
|
|
27
|
+
);
|
|
22
28
|
}
|
|
23
29
|
}
|
|
24
30
|
|
|
@@ -28,7 +34,7 @@
|
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
.counting-page {
|
|
31
|
-
color:
|
|
37
|
+
color: hsla(0, 0, var(--ac-lightness), 0.7);
|
|
32
38
|
font-size: 12px;
|
|
33
39
|
|
|
34
40
|
span {
|
|
@@ -40,7 +46,13 @@
|
|
|
40
46
|
|
|
41
47
|
.pagination-filter {
|
|
42
48
|
select {
|
|
43
|
-
border: 1px solid
|
|
49
|
+
border: 1px solid
|
|
50
|
+
hsla(
|
|
51
|
+
var(--hsl-hue),
|
|
52
|
+
var(--hsl-saturation),
|
|
53
|
+
calc(var(--hsl-lightness) - 5%),
|
|
54
|
+
1
|
|
55
|
+
);
|
|
44
56
|
border-radius: 4px;
|
|
45
57
|
height: 20px;
|
|
46
58
|
font-size: 11px;
|
|
@@ -60,7 +72,13 @@
|
|
|
60
72
|
}
|
|
61
73
|
|
|
62
74
|
ul > li > a.previous {
|
|
63
|
-
border: 1px solid
|
|
75
|
+
border: 1px solid
|
|
76
|
+
hsla(
|
|
77
|
+
var(--hsl-hue),
|
|
78
|
+
var(--hsl-saturation),
|
|
79
|
+
calc(var(--hsl-lightness) - 5%),
|
|
80
|
+
1
|
|
81
|
+
);
|
|
64
82
|
background-color: $ac-primary;
|
|
65
83
|
color: $ac-white;
|
|
66
84
|
|
|
@@ -71,7 +89,13 @@ ul > li > a.previous {
|
|
|
71
89
|
}
|
|
72
90
|
|
|
73
91
|
ul > li > a.next {
|
|
74
|
-
border: 1px solid
|
|
92
|
+
border: 1px solid
|
|
93
|
+
hsla(
|
|
94
|
+
var(--hsl-hue),
|
|
95
|
+
var(--hsl-saturation),
|
|
96
|
+
calc(var(--hsl-lightness) - 5%),
|
|
97
|
+
1
|
|
98
|
+
);
|
|
75
99
|
background-color: $ac-primary;
|
|
76
100
|
color: $ac-white;
|
|
77
101
|
|
|
@@ -82,5 +106,11 @@ ul > li > a.next {
|
|
|
82
106
|
}
|
|
83
107
|
|
|
84
108
|
.is-current {
|
|
85
|
-
border: 1px solid
|
|
109
|
+
border: 1px solid
|
|
110
|
+
hsla(
|
|
111
|
+
var(--hsl-hue),
|
|
112
|
+
var(--hsl-saturation),
|
|
113
|
+
calc(var(--hsl-lightness) - 5%),
|
|
114
|
+
1
|
|
115
|
+
);
|
|
86
116
|
}
|
|
@@ -1,8 +1,35 @@
|
|
|
1
|
-
.ac-
|
|
2
|
-
height:
|
|
1
|
+
.ac-toast {
|
|
2
|
+
line-height: 1.5 !important;
|
|
3
|
+
min-width: 350px !important;
|
|
4
|
+
min-height: 40px !important;
|
|
5
|
+
justify-content: flex-start !important;
|
|
6
|
+
font-size: 13px !important;
|
|
7
|
+
font-weight: 500 !important;
|
|
8
|
+
padding-right: 35px !important;
|
|
9
|
+
box-shadow: none !important;
|
|
3
10
|
border-radius: 4px !important;
|
|
4
|
-
|
|
5
|
-
|
|
11
|
+
|
|
12
|
+
* {
|
|
13
|
+
color: #fff !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
p {
|
|
17
|
+
padding-left: 10px;
|
|
18
|
+
|
|
19
|
+
i.fa {
|
|
20
|
+
padding-right: 0 !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
a {
|
|
25
|
+
font-weight: 500;
|
|
26
|
+
text-decoration: underline;
|
|
27
|
+
padding: 0 15px;
|
|
28
|
+
|
|
29
|
+
&:hover {
|
|
30
|
+
color: #f1f1f1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
6
33
|
|
|
7
34
|
&.is-success {
|
|
8
35
|
background: #27b064 !important;
|
|
@@ -26,6 +53,11 @@
|
|
|
26
53
|
font-weight: 400 !important;
|
|
27
54
|
color: inherit !important;
|
|
28
55
|
font-family: Roboto, sans-serif !important;
|
|
56
|
+
display: flex !important;
|
|
57
|
+
justify-content: space-between !important;
|
|
58
|
+
align-items: center !important;
|
|
59
|
+
position: absolute;
|
|
60
|
+
right: 15px;
|
|
29
61
|
}
|
|
30
62
|
|
|
31
63
|
/****************************************
|
package/package.json
CHANGED
package/plugins/vue-toaster.js
CHANGED
|
@@ -2,9 +2,9 @@ module.exports = {
|
|
|
2
2
|
position: "top-center",
|
|
3
3
|
theme: "toasted-primary",
|
|
4
4
|
iconPack: "fontawesome",
|
|
5
|
-
className: "ac-
|
|
5
|
+
className: "ac-toast",
|
|
6
6
|
action: {
|
|
7
|
-
|
|
7
|
+
icon: "close",
|
|
8
8
|
class: "ac-toast-action",
|
|
9
9
|
onClick: (e, toastObject) => {
|
|
10
10
|
toastObject.goAway(0);
|
|
@@ -26,7 +26,7 @@ module.exports = {
|
|
|
26
26
|
icon: "fa-check",
|
|
27
27
|
duration: 2500,
|
|
28
28
|
type: "success",
|
|
29
|
-
className: "ac-
|
|
29
|
+
className: "ac-toast is-success",
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
32
|
{
|
|
@@ -42,7 +42,7 @@ module.exports = {
|
|
|
42
42
|
options: {
|
|
43
43
|
icon: "fa-warning",
|
|
44
44
|
type: "error",
|
|
45
|
-
className: "ac-
|
|
45
|
+
className: "ac-toast is-error",
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
{
|
|
@@ -57,7 +57,7 @@ module.exports = {
|
|
|
57
57
|
options: {
|
|
58
58
|
icon: "fa-info",
|
|
59
59
|
type: "info",
|
|
60
|
-
className: "ac-
|
|
60
|
+
className: "ac-toast is-info",
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
{
|
|
@@ -74,7 +74,7 @@ module.exports = {
|
|
|
74
74
|
options: {
|
|
75
75
|
icon: "fa-warning",
|
|
76
76
|
type: "error",
|
|
77
|
-
className: "ac-
|
|
77
|
+
className: "ac-toast is-warning",
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
80
|
],
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
v-for="(tableHeader, idx) in tableHeaders"
|
|
23
23
|
:key="idx"
|
|
24
24
|
:class="{
|
|
25
|
-
sorting: headerSortables[idx].enabled,
|
|
26
|
-
'sorting-desc': headerSortables[idx].mode === 'desc',
|
|
27
|
-
'sorting-asc': headerSortables[idx].mode === 'asc',
|
|
25
|
+
sorting: headerSortables[idx] && headerSortables[idx].enabled,
|
|
26
|
+
'sorting-desc': headerSortables[idx] && headerSortables[idx].mode === 'desc',
|
|
27
|
+
'sorting-asc': headerSortables[idx] && headerSortables[idx].mode === 'asc',
|
|
28
28
|
}"
|
|
29
|
-
@click.prevent="headerSortables[idx].enabled && emitSortEvent(idx)"
|
|
29
|
+
@click.prevent="headerSortables[idx] && headerSortables[idx].enabled && emitSortEvent(idx)"
|
|
30
30
|
>
|
|
31
31
|
{{ headerLabels[idx] }}
|
|
32
32
|
</th>
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
146
146
|
},
|
|
147
147
|
headerLabels() {
|
|
148
148
|
return this.tableHeaders.map((th) =>
|
|
149
|
-
typeof th === "string" ? th : th
|
|
149
|
+
typeof th === "string" ? th : th.label || "Label"
|
|
150
150
|
);
|
|
151
151
|
},
|
|
152
152
|
},
|
|
@@ -157,8 +157,8 @@ export default {
|
|
|
157
157
|
handler(n) {
|
|
158
158
|
if (this.headerSortables.length === n.length) {
|
|
159
159
|
n.forEach((th, idx) => {
|
|
160
|
-
if (this.headerSortables[idx].enabled !== !!th
|
|
161
|
-
this.headerSortables[idx].enabled = !!th
|
|
160
|
+
if (this.headerSortables[idx].enabled !== !!th.sortable) {
|
|
161
|
+
this.headerSortables[idx].enabled = !!th.sortable;
|
|
162
162
|
this.headerSortables[idx].mode = "";
|
|
163
163
|
}
|
|
164
164
|
});
|
|
@@ -171,7 +171,7 @@ export default {
|
|
|
171
171
|
};
|
|
172
172
|
} else {
|
|
173
173
|
return {
|
|
174
|
-
enabled: !!th
|
|
174
|
+
enabled: !!th.sortable,
|
|
175
175
|
mode: "",
|
|
176
176
|
};
|
|
177
177
|
}
|