@asd20/ui 3.2.952 → 3.2.954
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
CHANGED
|
@@ -38,11 +38,16 @@
|
|
|
38
38
|
v-for="(event, index) in day.events"
|
|
39
39
|
:key="index"
|
|
40
40
|
:event="event"
|
|
41
|
-
:class="
|
|
41
|
+
:class="
|
|
42
|
+
day.events.length === 2
|
|
43
|
+
? 'small-dot'
|
|
44
|
+
: day.events.length > 2
|
|
45
|
+
? 'smaller-dot'
|
|
46
|
+
: ''
|
|
47
|
+
"
|
|
42
48
|
@click.native="onEventClick(event)"
|
|
43
49
|
/>
|
|
44
50
|
</div>
|
|
45
|
-
|
|
46
51
|
</li>
|
|
47
52
|
</ol>
|
|
48
53
|
<asd20-viewport
|
|
@@ -318,7 +323,7 @@ $accent: var(--color__accent);
|
|
|
318
323
|
flex-direction:column;
|
|
319
324
|
align-items: flex-start;
|
|
320
325
|
background-color: var(--website-page__alternate-background-t70);
|
|
321
|
-
min-height:
|
|
326
|
+
min-height: 2.5rem;
|
|
322
327
|
outline: 1px solid var(--color__tertiary);
|
|
323
328
|
border: none;
|
|
324
329
|
box-shadow: none;
|
|
@@ -356,20 +361,24 @@ $accent: var(--color__accent);
|
|
|
356
361
|
.asd20-calendar__events {
|
|
357
362
|
position: static;
|
|
358
363
|
display: flex;
|
|
359
|
-
flex-direction:
|
|
364
|
+
flex-direction: column;
|
|
360
365
|
width: 100%;
|
|
361
|
-
justify-content:
|
|
366
|
+
justify-content: stretch;
|
|
367
|
+
max-height: 2rem;
|
|
362
368
|
|
|
363
369
|
&::v-deep .asd20-calendar-event-button {
|
|
364
370
|
background: transparent;
|
|
365
371
|
padding: 0;
|
|
366
|
-
width: space(0.375);
|
|
367
|
-
height: space(0.375);
|
|
372
|
+
// width: space(0.375);
|
|
373
|
+
// height: space(0.375);
|
|
374
|
+
width: max-content;
|
|
375
|
+
height: max-content;
|
|
368
376
|
// margin-right: space(0.0625);
|
|
369
377
|
.title::before {
|
|
370
|
-
width:
|
|
371
|
-
height:
|
|
378
|
+
width: 4rem;
|
|
379
|
+
height: 2rem;
|
|
372
380
|
margin: 0;
|
|
381
|
+
border-radius: 0;
|
|
373
382
|
|
|
374
383
|
}
|
|
375
384
|
.title span {
|
|
@@ -377,12 +386,20 @@ $accent: var(--color__accent);
|
|
|
377
386
|
}
|
|
378
387
|
}
|
|
379
388
|
&::v-deep .small-dot {
|
|
380
|
-
width:
|
|
381
|
-
height:
|
|
382
|
-
.title::before {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
}
|
|
389
|
+
width: 4rem;
|
|
390
|
+
height: 50%;
|
|
391
|
+
// .title::before {
|
|
392
|
+
// width: 12px;
|
|
393
|
+
// height: 30px;
|
|
394
|
+
// }
|
|
395
|
+
}
|
|
396
|
+
&::v-deep .smaller-dot {
|
|
397
|
+
width: 4rem;
|
|
398
|
+
height: 33%;
|
|
399
|
+
// .title::before {
|
|
400
|
+
// width: 12px;
|
|
401
|
+
// height: 30px;
|
|
402
|
+
// }
|
|
386
403
|
}
|
|
387
404
|
}
|
|
388
405
|
.outside {
|
|
@@ -89,10 +89,28 @@ export default function expandEvents(events, includePastEvents = false) {
|
|
|
89
89
|
ae =>
|
|
90
90
|
ae.summary === e.summary &&
|
|
91
91
|
ae.start.getTime() === e.start.getTime() &&
|
|
92
|
-
ae.end.getTime() === e.end.getTime()
|
|
92
|
+
ae.end.getTime() === e.end.getTime() &&
|
|
93
|
+
ae.calendarId === e.calendarId
|
|
93
94
|
)
|
|
94
95
|
if (!hasDuplicate) acc.push(e)
|
|
95
96
|
return acc
|
|
96
97
|
}, [])
|
|
97
|
-
.sort((a, b) =>
|
|
98
|
+
.sort((a, b) => {
|
|
99
|
+
const timeDiff = a.start.getTime() - b.start.getTime()
|
|
100
|
+
if (timeDiff !== 0) return timeDiff
|
|
101
|
+
|
|
102
|
+
const aSummary = (a.summary || '').toLowerCase()
|
|
103
|
+
const bSummary = (b.summary || '').toLowerCase()
|
|
104
|
+
|
|
105
|
+
const isAHighPriority =
|
|
106
|
+
aSummary.includes('plc') || aSummary.includes('parent')
|
|
107
|
+
const isBHighPriority =
|
|
108
|
+
bSummary.includes('plc') || bSummary.includes('parent')
|
|
109
|
+
|
|
110
|
+
if (isAHighPriority && !isBHighPriority) return -1
|
|
111
|
+
if (!isAHighPriority && isBHighPriority) return 1
|
|
112
|
+
|
|
113
|
+
// Fall back to alphabetical order if both have same priority
|
|
114
|
+
return aSummary.localeCompare(bSummary)
|
|
115
|
+
})
|
|
98
116
|
}
|