@asd20/ui 3.2.994 → 3.2.996
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/package.json +1 -1
- package/src/components/atoms/Asd20Icon/index.stories.js +3 -0
- package/src/components/atoms/icons/Asd20AccessibilitySvg.vue +35 -8
- package/src/components/atoms/icons/Asd20AlertSvg.vue +31 -1
- package/src/components/atoms/icons/Asd20ArtsSvg.vue +38 -21
- package/src/components/atoms/icons/Asd20AthleticsSvg.vue +42 -1
- package/src/components/atoms/icons/Asd20AwardSvg.vue +31 -1
- package/src/components/atoms/icons/Asd20BellSvg.vue +32 -1
- package/src/components/atoms/icons/Asd20BusSvg.vue +45 -1
- package/src/components/atoms/icons/Asd20CalendarAltSvg.vue +40 -1
- package/src/components/atoms/icons/Asd20CalendarSvg.vue +38 -1
- package/src/components/atoms/icons/Asd20CommitteeSvg.vue +55 -1
- package/src/components/atoms/icons/Asd20ContactSvg.vue +27 -0
- package/src/components/atoms/icons/Asd20CoraSvg.vue +90 -1
- package/src/components/atoms/icons/Asd20DirectionsSvg.vue +37 -1
- package/src/components/atoms/icons/Asd20DirectorySvg.vue +46 -2
- package/src/components/atoms/icons/Asd20EmailSvg.vue +13 -1
- package/src/components/atoms/icons/Asd20ExternalSvg.vue +14 -1
- package/src/components/atoms/icons/Asd20FileSvg.vue +11 -2
- package/src/components/atoms/icons/Asd20FilesSvg.vue +36 -1
- package/src/components/atoms/icons/Asd20FinanceSvg.vue +44 -1
- package/src/components/atoms/icons/Asd20FoodSvg.vue +17 -1
- package/src/components/atoms/icons/Asd20GallerySvg.vue +55 -1
- package/src/components/atoms/icons/Asd20GroupSvg.vue +39 -1
- package/src/components/atoms/icons/Asd20HoursSvg.vue +31 -1
- package/src/components/atoms/icons/Asd20InfoAltSvg.vue +21 -0
- package/src/components/atoms/icons/Asd20InfoSvg.vue +31 -1
- package/src/components/atoms/icons/Asd20IxSvg.vue +48 -1
- package/src/components/atoms/icons/Asd20JobsSvg.vue +33 -1
- package/src/components/atoms/icons/Asd20LibrarySvg.vue +63 -1
- package/src/components/atoms/icons/Asd20LinkSvg.vue +34 -0
- package/src/components/atoms/icons/Asd20ListSvg.vue +9 -5
- package/src/components/atoms/icons/Asd20LoginSvg.vue +35 -1
- package/src/components/atoms/icons/Asd20PersonalizeSvg.vue +36 -1
- package/src/components/atoms/icons/Asd20PhoneAltSvg.vue +32 -1
- package/src/components/atoms/icons/Asd20PhoneSvg.vue +42 -1
- package/src/components/atoms/icons/Asd20PrinterSvg.vue +109 -1
- package/src/components/atoms/icons/Asd20RegisterSvg.vue +55 -1
- package/src/components/atoms/icons/Asd20SchoolSvg.vue +49 -1
- package/src/components/atoms/icons/Asd20SchoologySvg.vue +15 -1
- package/src/components/atoms/icons/Asd20ShareAltSvg.vue +38 -24
- package/src/components/atoms/icons/Asd20ShareSvg.vue +29 -1
- package/src/components/atoms/icons/Asd20StaffSvg.vue +98 -1
- package/src/components/atoms/icons/Asd20TechnologySvg.vue +41 -23
- package/src/components/atoms/icons/Asd20TranslateSvg.vue +65 -1
- package/src/components/atoms/icons/Asd20TwitterSvg.vue +1 -1
- package/src/components/atoms/icons/Asd20VendorsSvg.vue +35 -1
- package/src/components/atoms/icons/Asd20VideoSvg.vue +37 -1
- package/src/components/atoms/icons/Asd20WeatherSnowSvg.vue +53 -1
- package/src/components/atoms/icons/Asd20WeatherSunSvg.vue +99 -1
- package/src/components/atoms/icons/Asd20WebsiteSvg.vue +37 -1
- package/src/components/molecules/Asd20DepartmentContactCard/index.vue +3 -3
- package/src/components/organisms/Asd20Calendar/index.vue +125 -29
- package/src/components/organisms/Asd20NotificationGroup/index.vue +10 -31
- package/src/components/organisms/Asd20WidgetsSection/index.vue +2 -0
- package/src/design/tokens.css +21 -21
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<template>
|
|
1
|
+
<!-- <template>
|
|
2
2
|
<g>
|
|
3
3
|
<path class="fill" d="M6 10v16h20V10zm10 14a6 6 0 1 1 6-6 6 6 0 0 1-6 6z" />
|
|
4
4
|
<path
|
|
@@ -12,4 +12,40 @@
|
|
|
12
12
|
d="M6 6h1v1H6zM8 6h1v1H8zM10 6h1v1h-1zM16 24.5A6.5 6.5 0 1 0 9.5 18a6.51 6.51 0 0 0 6.5 6.5zm0-1c-.73 0-1.5-1.09-1.92-2.82h3.84c-.42 1.73-1.19 2.82-1.92 2.82zm-2.1-3.82a10.92 10.92 0 0 1 0-3.36h4.2a10.92 10.92 0 0 1 0 3.36zM18 23.1a7.6 7.6 0 0 0 1-2.42h1.8A5.53 5.53 0 0 1 18 23.1zm3.5-5.1a5.19 5.19 0 0 1-.27 1.68h-2.11a12.88 12.88 0 0 0 0-3.36h2.11A5.19 5.19 0 0 1 21.5 18zm-.7-2.68H19a7.6 7.6 0 0 0-1-2.42 5.53 5.53 0 0 1 2.8 2.42zM16 12.5c.73 0 1.5 1.09 1.92 2.82h-3.84c.42-1.73 1.19-2.82 1.92-2.82zm-2 .4a7.6 7.6 0 0 0-1 2.42h-1.8A5.53 5.53 0 0 1 14 12.9zM10.5 18a5.19 5.19 0 0 1 .27-1.68h2.11a12.88 12.88 0 0 0 0 3.36h-2.11A5.19 5.19 0 0 1 10.5 18zm2.5 2.68a7.6 7.6 0 0 0 1 2.42 5.53 5.53 0 0 1-2.76-2.42z"
|
|
13
13
|
/>
|
|
14
14
|
</g>
|
|
15
|
+
</template> -->
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<g
|
|
19
|
+
viewBox="0 0 32 40"
|
|
20
|
+
width="128"
|
|
21
|
+
height="160"
|
|
22
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
+
>
|
|
24
|
+
<!-- 3/4 Circle outline (open at bottom) -->
|
|
25
|
+
<path
|
|
26
|
+
d="M6 28 a15 15 0 1 1 20 0"
|
|
27
|
+
fill="none"
|
|
28
|
+
class="line"
|
|
29
|
+
stroke="currentColor"
|
|
30
|
+
stroke-width="2"
|
|
31
|
+
stroke-linecap="round"
|
|
32
|
+
/>
|
|
33
|
+
<!-- Browser window (rounded rectangle, outline color) -->
|
|
34
|
+
<rect x="7" y="9" width="18" height="15" rx="2.5" class="line" fill="currentColor"/>
|
|
35
|
+
<!-- Toolbar (top bar, cutout from window, background shows through) -->
|
|
36
|
+
<rect x="7.8" y="10" width="16.4" height="3" rx="1.2" fill="#fff"/>
|
|
37
|
+
<!-- Toolbar circles (left) -->
|
|
38
|
+
<circle cx="9.6" cy="11.7" r="0.55" class="line" fill="currentColor"/>
|
|
39
|
+
<circle cx="11.2" cy="11.7" r="0.55" class="line" fill="currentColor"/>
|
|
40
|
+
<circle cx="12.8" cy="11.7" r="0.55" class="line" fill="currentColor"/>
|
|
41
|
+
<!-- Toolbar right bar -->
|
|
42
|
+
<rect x="16.7" y="11.1" width="5.1" height="1.1" rx="0.5" class="line" fill="currentColor"/>
|
|
43
|
+
<!-- Sidebar rectangle (fill color, like a page preview) -->
|
|
44
|
+
<rect x="10" y="15" width="3" height="6" rx="1" class="fill"/>
|
|
45
|
+
<!-- Three horizontal lines (fill color, like page content) -->
|
|
46
|
+
<rect x="15" y="15.7" width="7" height="1.3" rx="0.6" class="fill"/>
|
|
47
|
+
<rect x="15" y="18.4" width="7" height="1.3" rx="0.6" class="fill"/>
|
|
48
|
+
<rect x="15" y="21.1" width="7" height="1.3" rx="0.6" class="fill"/>
|
|
49
|
+
</g>
|
|
15
50
|
</template>
|
|
51
|
+
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<p v-show="group.description">{{ group.description }}</p>
|
|
11
11
|
</div>
|
|
12
12
|
<asd20-list
|
|
13
|
-
icon="
|
|
13
|
+
icon="group"
|
|
14
14
|
:headline="expanded ? 'Contact Information' : group.title"
|
|
15
15
|
>
|
|
16
16
|
<Asd20ListItem
|
|
@@ -68,7 +68,7 @@ export default {
|
|
|
68
68
|
if (this.group.description) {
|
|
69
69
|
items.push({
|
|
70
70
|
...baseItemProps,
|
|
71
|
-
icon: 'info',
|
|
71
|
+
icon: 'info-alt',
|
|
72
72
|
label: 'Overview',
|
|
73
73
|
description: this.group.description,
|
|
74
74
|
})
|
|
@@ -79,7 +79,7 @@ export default {
|
|
|
79
79
|
if (this.group.contactName) {
|
|
80
80
|
items.push({
|
|
81
81
|
...baseItemProps,
|
|
82
|
-
icon: '
|
|
82
|
+
icon: 'contact',
|
|
83
83
|
label: 'Contact',
|
|
84
84
|
description: this.group.contactName,
|
|
85
85
|
})
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
<!-- Days -->
|
|
14
|
-
<ol class="asd20-calendar__days">
|
|
14
|
+
<!-- <ol class="asd20-calendar__days">
|
|
15
15
|
<li
|
|
16
16
|
class="asd20-calendar__day"
|
|
17
17
|
v-for="(day, index) in days"
|
|
@@ -49,7 +49,49 @@
|
|
|
49
49
|
/>
|
|
50
50
|
</div>
|
|
51
51
|
</li>
|
|
52
|
+
</ol> -->
|
|
53
|
+
|
|
54
|
+
<ol class="asd20-calendar__days">
|
|
55
|
+
<template v-for="(week, weekIdx) in weekRows">
|
|
56
|
+
<li
|
|
57
|
+
v-for="(day, dayIdx) in week"
|
|
58
|
+
:key="weekIdx + '-' + dayIdx"
|
|
59
|
+
class="asd20-calendar__day"
|
|
60
|
+
:class="{
|
|
61
|
+
selected: day === selectedDay,
|
|
62
|
+
today: day.today,
|
|
63
|
+
outside: day.outsideOfCurrentMonth,
|
|
64
|
+
empty: day.events.length === 0,
|
|
65
|
+
}"
|
|
66
|
+
@click="onClickDay($event, day)"
|
|
67
|
+
>
|
|
68
|
+
<div class="asd20-calendar__date">
|
|
69
|
+
<span class="month">{{ day.month }}</span>
|
|
70
|
+
<span class="day">{{ day.number }}</span>
|
|
71
|
+
<span class="year">{{ day.year }}</span>
|
|
72
|
+
</div>
|
|
73
|
+
<div
|
|
74
|
+
class="asd20-calendar__events"
|
|
75
|
+
v-if="!annualView || !day.outsideOfCurrentMonth"
|
|
76
|
+
>
|
|
77
|
+
<Asd20CalendarEventButton
|
|
78
|
+
v-for="(event, index) in day.events"
|
|
79
|
+
:key="index"
|
|
80
|
+
:event="event"
|
|
81
|
+
:class="
|
|
82
|
+
day.events.length === 2
|
|
83
|
+
? 'small-dot'
|
|
84
|
+
: day.events.length > 2
|
|
85
|
+
? 'smaller-dot'
|
|
86
|
+
: ''
|
|
87
|
+
"
|
|
88
|
+
@click.native="onEventClick(event)"
|
|
89
|
+
/>
|
|
90
|
+
</div>
|
|
91
|
+
</li>
|
|
92
|
+
</template>
|
|
52
93
|
</ol>
|
|
94
|
+
|
|
53
95
|
<asd20-viewport
|
|
54
96
|
class="asd20-calendar__day-events"
|
|
55
97
|
scrollable
|
|
@@ -90,6 +132,7 @@ export default {
|
|
|
90
132
|
absolute: { type: Boolean, default: true },
|
|
91
133
|
shortWeekdays: { type: Boolean, default: false },
|
|
92
134
|
annualView: { type: Boolean, default: false },
|
|
135
|
+
hideWeekends: { type: Boolean, default: false },
|
|
93
136
|
},
|
|
94
137
|
|
|
95
138
|
data: () => ({
|
|
@@ -100,7 +143,7 @@ export default {
|
|
|
100
143
|
|
|
101
144
|
watch: {
|
|
102
145
|
days: {
|
|
103
|
-
handler: function() {
|
|
146
|
+
handler: function () {
|
|
104
147
|
this.selectedDay =
|
|
105
148
|
this.days.find(day => {
|
|
106
149
|
return day.today
|
|
@@ -116,17 +159,65 @@ export default {
|
|
|
116
159
|
'asd20-calendar': true,
|
|
117
160
|
'asd20-calendar--absolute': this.absolute,
|
|
118
161
|
'asd20-calendar--annual': this.annualView,
|
|
162
|
+
'asd20-calendar--five-day': this.hideWeekends,
|
|
119
163
|
}
|
|
120
164
|
},
|
|
121
165
|
days() {
|
|
122
|
-
|
|
166
|
+
const allDays = mapEventsToDays(
|
|
123
167
|
expandEvents(this.events, this.annualView),
|
|
124
168
|
this.year,
|
|
125
|
-
this.month
|
|
169
|
+
this.month
|
|
126
170
|
)
|
|
171
|
+
if (!this.hideWeekends) return allDays
|
|
172
|
+
return allDays.filter(day => {
|
|
173
|
+
// Note: day.date is usually a Date object in these helper patterns.
|
|
174
|
+
// But if it's not, you may need to use day.js, or construct new Date(day.year, day.month-1, day.number)
|
|
175
|
+
if (!day.date) {
|
|
176
|
+
try {
|
|
177
|
+
day.date = new Date(day.year, day.month - 1, day.number)
|
|
178
|
+
} catch {}
|
|
179
|
+
}
|
|
180
|
+
const jsDate =
|
|
181
|
+
day.date instanceof Date
|
|
182
|
+
? day.date
|
|
183
|
+
: new Date(day.year, day.month - 1, day.number)
|
|
184
|
+
const dayOfWeek = jsDate.getDay()
|
|
185
|
+
return dayOfWeek !== 0 && dayOfWeek !== 6 // Exclude Sunday (0) and Saturday (6)
|
|
186
|
+
})
|
|
127
187
|
},
|
|
128
188
|
weekdayNames() {
|
|
129
|
-
|
|
189
|
+
const names = [
|
|
190
|
+
'Sunday',
|
|
191
|
+
'Monday',
|
|
192
|
+
'Tuesday',
|
|
193
|
+
'Wednesday',
|
|
194
|
+
'Thursday',
|
|
195
|
+
'Friday',
|
|
196
|
+
'Saturday',
|
|
197
|
+
]
|
|
198
|
+
return this.hideWeekends ? names.slice(1, 6) : names
|
|
199
|
+
},
|
|
200
|
+
weekRows() {
|
|
201
|
+
// Helper to chunk flat days array into weeks of 5 or 7 days
|
|
202
|
+
function chunk(arr, size) {
|
|
203
|
+
const result = []
|
|
204
|
+
for (let i = 0; i < arr.length; i += size) {
|
|
205
|
+
result.push(arr.slice(i, i + size))
|
|
206
|
+
}
|
|
207
|
+
return result
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const colCount = this.hideWeekends ? 5 : 7
|
|
211
|
+
const weeks = chunk(this.days, colCount)
|
|
212
|
+
|
|
213
|
+
// Remove the last row if all days are outside the current month
|
|
214
|
+
while (
|
|
215
|
+
weeks.length &&
|
|
216
|
+
weeks[weeks.length - 1].every(day => day.outsideOfCurrentMonth)
|
|
217
|
+
) {
|
|
218
|
+
weeks.pop()
|
|
219
|
+
}
|
|
220
|
+
return weeks
|
|
130
221
|
},
|
|
131
222
|
},
|
|
132
223
|
methods: {
|
|
@@ -295,6 +386,8 @@ $accent: var(--color__accent);
|
|
|
295
386
|
&--annual {
|
|
296
387
|
.asd20-calendar__weekdays {
|
|
297
388
|
padding: 0;
|
|
389
|
+
background: var(--color__primary);
|
|
390
|
+
color: #ffffff;
|
|
298
391
|
}
|
|
299
392
|
.asd20-calendar__days {
|
|
300
393
|
position: relative;
|
|
@@ -320,7 +413,7 @@ $accent: var(--color__accent);
|
|
|
320
413
|
width: calc(100% / 7);
|
|
321
414
|
flex-grow: 1;
|
|
322
415
|
display: flex;
|
|
323
|
-
flex-direction:column;
|
|
416
|
+
flex-direction: column;
|
|
324
417
|
align-items: flex-start;
|
|
325
418
|
background-color: var(--website-page__alternate-background-t70);
|
|
326
419
|
min-height: 2.5rem;
|
|
@@ -339,16 +432,20 @@ $accent: var(--color__accent);
|
|
|
339
432
|
}
|
|
340
433
|
|
|
341
434
|
.asd20-calendar__date {
|
|
342
|
-
position:
|
|
435
|
+
position: absolute;
|
|
436
|
+
top: 50%;
|
|
437
|
+
left: 50%;
|
|
438
|
+
transform: translate(-50%, -50%);
|
|
343
439
|
font-size: 0.875rem;
|
|
344
|
-
margin: 0
|
|
440
|
+
margin: 0 auto;
|
|
441
|
+
z-index: 10;
|
|
345
442
|
|
|
346
443
|
.day {
|
|
347
|
-
display:
|
|
444
|
+
display: block;
|
|
348
445
|
width: auto;
|
|
349
446
|
height: auto;
|
|
350
447
|
padding: 0;
|
|
351
|
-
font-size:
|
|
448
|
+
font-size: 1.5rem;
|
|
352
449
|
}
|
|
353
450
|
|
|
354
451
|
.weekday,
|
|
@@ -361,15 +458,18 @@ $accent: var(--color__accent);
|
|
|
361
458
|
.asd20-calendar__events {
|
|
362
459
|
position: static;
|
|
363
460
|
display: flex;
|
|
364
|
-
flex-direction:
|
|
461
|
+
flex-direction: row;
|
|
365
462
|
width: 100%;
|
|
366
463
|
justify-content: stretch;
|
|
367
|
-
max-height:
|
|
464
|
+
max-height: 2.5rem;
|
|
368
465
|
overflow: hidden;
|
|
466
|
+
align-items: center;
|
|
467
|
+
justify-content: center;
|
|
369
468
|
|
|
370
469
|
&::v-deep .asd20-calendar-event-button {
|
|
371
470
|
background: transparent;
|
|
372
471
|
padding: 0;
|
|
472
|
+
margin-right: 0;
|
|
373
473
|
// width: space(0.375);
|
|
374
474
|
// height: space(0.375);
|
|
375
475
|
width: max-content;
|
|
@@ -377,30 +477,21 @@ $accent: var(--color__accent);
|
|
|
377
477
|
// margin-right: space(0.0625);
|
|
378
478
|
.title::before {
|
|
379
479
|
width: 4rem;
|
|
380
|
-
height:
|
|
480
|
+
height: 2.5rem;
|
|
381
481
|
margin: 0;
|
|
382
482
|
border-radius: 0;
|
|
383
|
-
|
|
384
483
|
}
|
|
385
484
|
.title span {
|
|
386
485
|
display: none;
|
|
387
486
|
}
|
|
388
487
|
}
|
|
389
488
|
&::v-deep .small-dot {
|
|
390
|
-
width:
|
|
391
|
-
height:
|
|
392
|
-
// .title::before {
|
|
393
|
-
// width: 12px;
|
|
394
|
-
// height: 30px;
|
|
395
|
-
// }
|
|
489
|
+
width: 50%;
|
|
490
|
+
height: 2.5rem;
|
|
396
491
|
}
|
|
397
492
|
&::v-deep .smaller-dot {
|
|
398
|
-
width:
|
|
399
|
-
height:
|
|
400
|
-
// .title::before {
|
|
401
|
-
// width: 12px;
|
|
402
|
-
// height: 30px;
|
|
403
|
-
// }
|
|
493
|
+
width: 33%;
|
|
494
|
+
height: 2.5rem;
|
|
404
495
|
}
|
|
405
496
|
}
|
|
406
497
|
.outside {
|
|
@@ -409,7 +500,13 @@ $accent: var(--color__accent);
|
|
|
409
500
|
}
|
|
410
501
|
}
|
|
411
502
|
}
|
|
412
|
-
|
|
503
|
+
&--five-day {
|
|
504
|
+
.asd20-calendar__days {
|
|
505
|
+
.asd20-calendar__day {
|
|
506
|
+
width: calc(100% / 5);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
413
510
|
}
|
|
414
511
|
|
|
415
512
|
@media (max-width: 767px) {
|
|
@@ -452,7 +549,7 @@ $accent: var(--color__accent);
|
|
|
452
549
|
// 0 1px 0 0 var(--color__tertiary), -1px 0 0 0 var(--color__tertiary);
|
|
453
550
|
|
|
454
551
|
&::v-deep .asd20-calendar__date {
|
|
455
|
-
width: 100%;
|
|
552
|
+
// width: 100%;
|
|
456
553
|
}
|
|
457
554
|
&::v-deep .asd20-calendar__date .weekday {
|
|
458
555
|
box-sizing: border-box;
|
|
@@ -540,5 +637,4 @@ $accent: var(--color__accent);
|
|
|
540
637
|
}
|
|
541
638
|
}
|
|
542
639
|
}
|
|
543
|
-
|
|
544
640
|
</style>
|
|
@@ -29,41 +29,20 @@
|
|
|
29
29
|
</transition-group>
|
|
30
30
|
</transition>
|
|
31
31
|
|
|
32
|
-
<button
|
|
32
|
+
<asd20-button
|
|
33
33
|
v-if="groupType === 'floating'"
|
|
34
|
-
class="bell"
|
|
34
|
+
class="bell"
|
|
35
|
+
icon="bell"
|
|
35
36
|
:class="{ open: open }"
|
|
36
37
|
:title="
|
|
37
38
|
totalDismissedNotifications
|
|
38
39
|
? 'Dismiss all notifications'
|
|
39
40
|
: 'Show all notifications'
|
|
40
41
|
"
|
|
41
|
-
@click="$emit('toggle-all')"
|
|
42
|
-
|
|
43
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
-
viewBox="0 0 32 32"
|
|
45
|
-
aria-hidden="true"
|
|
46
|
-
role
|
|
47
|
-
>
|
|
48
|
-
<g>
|
|
49
|
-
<path
|
|
50
|
-
d="M16 7a6 6 0 0 1 6 6v7H10v-7a6 6 0 0 1 6-6z"
|
|
51
|
-
class="fill"
|
|
52
|
-
></path>
|
|
53
|
-
<path
|
|
54
|
-
fill="currentColor"
|
|
55
|
-
d="M16 4a1 1 0 0 1 1 1v1l.75.19A7 7 0 0 1 23 13v9h1v2H8v-2h1v-9a7 7 0 0 1 5.25-6.77L15 6V5a1 1 0 0 1 1-1m0-1a2 2 0 0 0-2 2v.26A8 8 0 0 0 8 13v8H7v4h18v-4h-1v-8a8 8 0 0 0-6-7.74V5a2 2 0 0 0-2-2z"
|
|
56
|
-
class="line"
|
|
57
|
-
></path>
|
|
58
|
-
<path
|
|
59
|
-
fill="currentColor"
|
|
60
|
-
d="M8 21h16v1H8zM18 24a4 4 0 0 1-8 0z"
|
|
61
|
-
class="line"
|
|
62
|
-
></path>
|
|
63
|
-
</g>
|
|
64
|
-
</svg>
|
|
42
|
+
@click="$emit('toggle-all')"
|
|
43
|
+
>
|
|
65
44
|
<span v-if="totalDismissedNotifications > 0" aria-hidden="true">{{ totalDismissedNotifications }}</span>
|
|
66
|
-
</button>
|
|
45
|
+
</asd20-button>
|
|
67
46
|
|
|
68
47
|
<div
|
|
69
48
|
v-if="showControls && notificationsFromIndex.length > 1"
|
|
@@ -99,12 +78,13 @@
|
|
|
99
78
|
</template>
|
|
100
79
|
|
|
101
80
|
<script>
|
|
81
|
+
import Asd20Button from '../../atoms/Asd20Button'
|
|
102
82
|
import Asd20Notification from '../../molecules/Asd20Notification'
|
|
103
83
|
|
|
104
84
|
export default {
|
|
105
85
|
name: 'asd20-notification-group',
|
|
106
86
|
|
|
107
|
-
components: { Asd20Notification },
|
|
87
|
+
components: { Asd20Button, Asd20Notification },
|
|
108
88
|
|
|
109
89
|
props: {
|
|
110
90
|
groupType: { type: String, default: 'default' },
|
|
@@ -288,15 +268,14 @@ export default {
|
|
|
288
268
|
position: relative;
|
|
289
269
|
appearance: none;
|
|
290
270
|
border: none;
|
|
291
|
-
|
|
292
|
-
height: 2rem;
|
|
271
|
+
padding: 0.25rem;
|
|
293
272
|
display: flex;
|
|
294
273
|
justify-content: center;
|
|
295
274
|
align-items: center;
|
|
296
275
|
background: #ffffff;
|
|
297
276
|
color: #000000;
|
|
298
277
|
font-size: 0.375rem;
|
|
299
|
-
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.0625);
|
|
278
|
+
// box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.0625);
|
|
300
279
|
border-radius: 50%;
|
|
301
280
|
z-index: 99;
|
|
302
281
|
cursor: pointer;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
v-if="relatedPages"
|
|
14
14
|
class="relatedPages"
|
|
15
15
|
:links="relatedPages"
|
|
16
|
+
icon="website"
|
|
16
17
|
v-bind="relatedPagesProps"
|
|
17
18
|
:multi-column="full"
|
|
18
19
|
max-height="400px"
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
v-if="relatedLinks"
|
|
23
24
|
class="relatedLinks"
|
|
24
25
|
:links="relatedLinks"
|
|
26
|
+
icon="link"
|
|
25
27
|
v-bind="relatedLinksProps"
|
|
26
28
|
:multi-column="full"
|
|
27
29
|
:max-height="relatedLinks.length > 20 ? '800px' : '400px'"
|
package/src/design/tokens.css
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
--color__accent-s100: #000000; /* 100% black */
|
|
3
|
+
--color__accent-s90: #101b2a; /* 90% black + 10% accent */
|
|
4
|
+
--color__accent-s80: #203855; /* 80% black + 20% accent */
|
|
5
|
+
--color__accent-s70: #305580; /* 70% black + 30% accent */
|
|
6
|
+
--color__accent-s60: #4062a2; /* 60% black + 40% accent */
|
|
7
|
+
--color__accent-s50: #5070c4; /* 50% black + 50% accent */
|
|
8
|
+
--color__accent-s40: #5b87d1; /* 40% black + 60% accent */
|
|
9
|
+
--color__accent-s30: #6593da; /* 30% black + 70% accent */
|
|
10
|
+
--color__accent-s20: #6ea0e3; /* 20% black + 80% accent */
|
|
11
|
+
--color__accent-s10: #71a1e0; /* 10% black + 90% accent (almost base) */
|
|
12
|
+
--color__accent: #71a1e0; /* base */
|
|
13
|
+
--color__accent-t10: #84ace4; /* 10% white + 90% accent */
|
|
14
|
+
--color__accent-t20: #97b8e8; /* 20% white + 80% accent */
|
|
15
|
+
--color__accent-t30: #abc3ec; /* 30% white + 70% accent */
|
|
16
|
+
--color__accent-t40: #becff0; /* 40% white + 60% accent */
|
|
17
|
+
--color__accent-t50: #d1dbf4; /* 50% white + 50% accent */
|
|
18
|
+
--color__accent-t60: #e3e7f8; /* 60% white + 40% accent */
|
|
19
|
+
--color__accent-t70: #edf1fa; /* 70% white + 30% accent */
|
|
20
|
+
--color__accent-t80: #f5f7fc; /* 80% white + 20% accent */
|
|
21
|
+
--color__accent-t90: #fbfcfe; /* 90% white + 10% accent */
|
|
22
|
+
--color__accent-t100: #ffffff; /* 100% white */
|
|
23
23
|
--color__on-accent: #ffffff;
|
|
24
24
|
--color__on-primary: #ffffff;
|
|
25
25
|
--color__on-secondary: #ffffff;
|