-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputTime.vue
More file actions
131 lines (121 loc) · 3.74 KB
/
Copy pathInputTime.vue
File metadata and controls
131 lines (121 loc) · 3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<script setup lang="ts">
const colors = ['primary', 'secondary', 'success', 'info', 'warning', 'error', 'neutral'] as const
const variants = ['outline', 'soft', 'subtle', 'ghost'] as const
const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as const
const jobStartTime = ref()
const sessionTime = ref()
const leaseStart = ref()
const leaseEnd = ref()
const rangeValue = ref()
</script>
<template>
<div class="flex flex-col gap-8">
<GallerySection title="Variants">
<div class="flex flex-wrap gap-4">
<UInputTime
v-for="v in variants"
:key="v"
:variant="v"
class="w-40"
/>
</div>
</GallerySection>
<GallerySection title="Colors">
<div class="flex flex-wrap gap-4">
<UInputTime
v-for="c in colors"
:key="c"
:color="c"
variant="outline"
class="w-40"
/>
</div>
</GallerySection>
<GallerySection title="Sizes">
<div class="flex flex-wrap items-center gap-4">
<UInputTime
v-for="s in sizes"
:key="s"
:size="s"
class="w-40"
/>
</div>
</GallerySection>
<GallerySection title="States">
<div class="flex flex-wrap gap-4">
<UInputTime class="w-40" />
<UInputTime highlight class="w-40" />
<UInputTime disabled class="w-40" />
<UInputTime readonly class="w-40" />
</div>
</GallerySection>
<GallerySection title="With icons">
<div class="flex flex-wrap gap-4">
<UInputTime
leading-icon="i-material-symbols-schedule-outline"
color="primary"
class="w-44"
/>
<UInputTime
trailing-icon="i-material-symbols-alarm-outline"
color="info"
variant="soft"
class="w-44"
/>
<UInputTime
leading-icon="i-material-symbols-timer-outline"
color="warning"
variant="subtle"
class="w-44"
/>
</div>
</GallerySection>
<GallerySection title="Range mode">
<div class="flex flex-col gap-2">
<span class="text-sm text-dimmed">Select a session window (start — end)</span>
<UInputTime
v-model="rangeValue"
range
color="primary"
class="w-64"
/>
</div>
</GallerySection>
<GallerySection title="Realistic usage — Agent schedule">
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
<div class="flex flex-col gap-1">
<span class="text-sm font-medium">Job start time</span>
<UInputTime
v-model="jobStartTime"
color="primary"
leading-icon="i-material-symbols-rocket-launch-outline"
class="w-full"
/>
<span class="text-xs text-dimmed">Scheduled dispatch time for the job</span>
</div>
<div class="flex flex-col gap-1">
<span class="text-sm font-medium">Session window</span>
<UInputTime
v-model="sessionTime"
color="info"
variant="soft"
leading-icon="i-material-symbols-schedule-outline"
class="w-full"
/>
<span class="text-xs text-dimmed">Agent session active period start</span>
</div>
<div class="flex flex-col gap-1">
<span class="text-sm font-medium">Lease renewal time</span>
<UInputTime
v-model="leaseStart"
color="success"
variant="subtle"
leading-icon="i-material-symbols-timer-outline"
class="w-full"
/>
<span class="text-xs text-dimmed">Next runtime lease renewal checkpoint</span>
</div>
</div>
</GallerySection>
</div>
</template>