@7365admin1/layer-common 3.2.2-staging.111 → 3.2.2-staging.112
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/assets/css/screens.css +70 -0
- package/components/AccessCardDeleteDialog.vue +41 -39
- package/components/AttendanceDetailsDialog.vue +57 -63
- package/components/ConfirmDialog.vue +14 -8
- package/components/Dialog/ReplaceAutofillPrompt.vue +19 -26
- package/components/Dialog/ReusablePrompt.vue +30 -29
- package/components/Dialog/UpdateMoreAction.vue +62 -59
- package/components/DocumentViewer.vue +29 -12
- package/components/OrgViewDialog.vue +34 -16
- package/components/PasswordConfirmation.vue +44 -26
- package/components/ScheduleTaskAreaFormDialog.vue +48 -51
- package/components/ScheduleTaskAreaUpdateMoreAction.vue +57 -62
- package/components/ServiceProviderInvitationPrompt.vue +48 -43
- package/package.json +1 -1
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
</
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
</
|
|
19
|
-
|
|
20
|
-
Approved by Seven365 · {{ expiryLine }}
|
|
21
|
-
</v-card-subtitle>
|
|
22
|
-
</v-card-item>
|
|
2
|
+
<!-- `AppCard` is the design's card - 14px radius, a 1px `--border` rule and
|
|
3
|
+
the one-pixel shadow on `--card`. The `v-card rounded="lg"
|
|
4
|
+
variant="outlined"` it replaced was Vuetify's own card at its own
|
|
5
|
+
radius and border weight. -->
|
|
6
|
+
<AppCard v-if="invitation" class="sp-invite-prompt">
|
|
7
|
+
<div class="d-flex align-start ga-3 pa-4">
|
|
8
|
+
<v-avatar color="primary" variant="tonal" size="44">
|
|
9
|
+
<v-icon>mdi-office-building-marker-outline</v-icon>
|
|
10
|
+
</v-avatar>
|
|
11
|
+
<div class="flex-grow-1">
|
|
12
|
+
<div class="screen-card-title">
|
|
13
|
+
{{ invitation.orgName }} has invited you to {{ invitation.siteName }}
|
|
14
|
+
</div>
|
|
15
|
+
<div class="screen-hint sp-invite-prompt__sub">
|
|
16
|
+
Approved by Seven365 · {{ expiryLine }}
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
23
20
|
|
|
24
|
-
<
|
|
21
|
+
<div class="px-4 sp-invite-prompt__body">
|
|
25
22
|
{{ invitation.orgName }} would like your company to provide services at
|
|
26
23
|
<strong>{{ invitation.siteName }}</strong
|
|
27
24
|
>. If you accept, this site will be added to your list of sites.
|
|
28
|
-
</
|
|
25
|
+
</div>
|
|
29
26
|
|
|
30
|
-
<
|
|
27
|
+
<div class="d-flex align-center ga-2 px-4 py-4">
|
|
28
|
+
<!-- Both stay `v-btn`s: `loading` is the only signal that an accept or a
|
|
29
|
+
decline is in flight, and `AppButton` has no equivalent. They take
|
|
30
|
+
the design's two button classes instead. -->
|
|
31
31
|
<v-btn
|
|
32
32
|
variant="flat"
|
|
33
|
-
|
|
34
|
-
class="text-none"
|
|
33
|
+
class="screen-btn-primary"
|
|
35
34
|
:loading="working === 'accept'"
|
|
36
35
|
:disabled="Boolean(working) || !open"
|
|
37
36
|
@click="accept"
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
</v-btn>
|
|
41
40
|
<v-btn
|
|
42
41
|
variant="outlined"
|
|
43
|
-
class="
|
|
42
|
+
class="screen-btn-ghost"
|
|
44
43
|
:loading="working === 'decline'"
|
|
45
44
|
:disabled="Boolean(working) || !open"
|
|
46
45
|
@click="decline"
|
|
@@ -48,21 +47,21 @@
|
|
|
48
47
|
Decline
|
|
49
48
|
</v-btn>
|
|
50
49
|
<v-spacer />
|
|
51
|
-
|
|
50
|
+
<!-- Was a raw `v-chip` on Vuetify's fixed `success` green, or no colour
|
|
51
|
+
at all for every other outcome. `StatusChip` maps the status WORD
|
|
52
|
+
through the shared `utils/status.ts` tones, so "complete" and
|
|
53
|
+
"declined" come out the same colours they do everywhere else. -->
|
|
54
|
+
<StatusChip
|
|
52
55
|
v-if="!open"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
{{ invitation.statusLabel }}
|
|
59
|
-
</v-chip>
|
|
60
|
-
</v-card-actions>
|
|
61
|
-
</v-card>
|
|
56
|
+
:status="invitation.status"
|
|
57
|
+
:label="invitation.statusLabel"
|
|
58
|
+
/>
|
|
59
|
+
</div>
|
|
60
|
+
</AppCard>
|
|
62
61
|
|
|
63
|
-
<
|
|
64
|
-
<
|
|
65
|
-
</
|
|
62
|
+
<AppCard v-else-if="error">
|
|
63
|
+
<div class="pa-4 sp-invite-prompt__body">{{ error }}</div>
|
|
64
|
+
</AppCard>
|
|
66
65
|
</template>
|
|
67
66
|
|
|
68
67
|
<script setup lang="ts">
|
|
@@ -142,9 +141,15 @@ await load();
|
|
|
142
141
|
</script>
|
|
143
142
|
|
|
144
143
|
<style scoped>
|
|
145
|
-
.
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
/* The title was a hand-set 1.05rem/600; `.screen-card-title` is the design's
|
|
145
|
+
15.5px/800, so only the wrap and the leading are left here. */
|
|
146
|
+
.sp-invite-prompt :deep(.screen-card-title) {
|
|
147
|
+
display: block;
|
|
148
148
|
line-height: 1.35;
|
|
149
149
|
}
|
|
150
|
+
|
|
151
|
+
.sp-invite-prompt__sub,
|
|
152
|
+
.sp-invite-prompt__body {
|
|
153
|
+
font-size: var(--fs-cell);
|
|
154
|
+
}
|
|
150
155
|
</style>
|