@7365admin1/layer-common 4.5.1-staging.296 → 4.5.1-staging.298
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.
|
@@ -170,6 +170,63 @@
|
|
|
170
170
|
/>
|
|
171
171
|
</v-col>
|
|
172
172
|
</v-row>
|
|
173
|
+
|
|
174
|
+
<!-- The photos the technician took to complete the
|
|
175
|
+
unit. The API has always returned these ids on the
|
|
176
|
+
history record; nothing drew them, so the office
|
|
177
|
+
had no way to see the proof of work. -->
|
|
178
|
+
<v-row
|
|
179
|
+
v-if="unit.attachment?.length"
|
|
180
|
+
no-gutters
|
|
181
|
+
class="pb-2"
|
|
182
|
+
>
|
|
183
|
+
<v-col cols="12">
|
|
184
|
+
<div class="text-body-2 text-medium-emphasis mb-1">
|
|
185
|
+
Attached Photos ({{ unit.attachment.length }})
|
|
186
|
+
</div>
|
|
187
|
+
<div class="d-flex flex-wrap ga-2">
|
|
188
|
+
<v-img
|
|
189
|
+
v-for="id in unit.attachment"
|
|
190
|
+
:key="id"
|
|
191
|
+
:src="getFileUrl(id)"
|
|
192
|
+
width="72"
|
|
193
|
+
height="72"
|
|
194
|
+
cover
|
|
195
|
+
rounded="lg"
|
|
196
|
+
class="border-thin"
|
|
197
|
+
style="cursor: zoom-in; flex: 0 0 auto"
|
|
198
|
+
@click="openFullImage(getFileUrl(id))"
|
|
199
|
+
>
|
|
200
|
+
<template v-slot:placeholder>
|
|
201
|
+
<v-row
|
|
202
|
+
class="fill-height ma-0"
|
|
203
|
+
align="center"
|
|
204
|
+
justify="center"
|
|
205
|
+
>
|
|
206
|
+
<v-progress-circular
|
|
207
|
+
indeterminate
|
|
208
|
+
size="20"
|
|
209
|
+
color="grey-lighten-4"
|
|
210
|
+
/>
|
|
211
|
+
</v-row>
|
|
212
|
+
</template>
|
|
213
|
+
<template v-slot:error>
|
|
214
|
+
<v-row
|
|
215
|
+
class="fill-height ma-0"
|
|
216
|
+
align="center"
|
|
217
|
+
justify="center"
|
|
218
|
+
>
|
|
219
|
+
<v-icon
|
|
220
|
+
icon="mdi-image-broken"
|
|
221
|
+
size="24"
|
|
222
|
+
color="grey"
|
|
223
|
+
/>
|
|
224
|
+
</v-row>
|
|
225
|
+
</template>
|
|
226
|
+
</v-img>
|
|
227
|
+
</div>
|
|
228
|
+
</v-col>
|
|
229
|
+
</v-row>
|
|
173
230
|
</v-list-item>
|
|
174
231
|
|
|
175
232
|
<v-divider
|
|
@@ -186,6 +243,22 @@
|
|
|
186
243
|
</AppCard>
|
|
187
244
|
</v-col>
|
|
188
245
|
</v-row>
|
|
246
|
+
|
|
247
|
+
<v-dialog v-model="showLightbox" max-width="900">
|
|
248
|
+
<v-card class="screen-modal">
|
|
249
|
+
<v-card-actions class="pa-2 justify-end">
|
|
250
|
+
<v-btn
|
|
251
|
+
icon="mdi-close"
|
|
252
|
+
variant="text"
|
|
253
|
+
class="screen-modal__close"
|
|
254
|
+
@click="showLightbox = false"
|
|
255
|
+
/>
|
|
256
|
+
</v-card-actions>
|
|
257
|
+
<v-card-text class="screen-modal__body pa-2 pt-0">
|
|
258
|
+
<v-img :src="lightboxSrc" contain max-height="80vh" />
|
|
259
|
+
</v-card-text>
|
|
260
|
+
</v-card>
|
|
261
|
+
</v-dialog>
|
|
189
262
|
</template>
|
|
190
263
|
|
|
191
264
|
<script setup lang="ts">
|
|
@@ -227,6 +300,14 @@ watchEffect(() => {
|
|
|
227
300
|
}
|
|
228
301
|
});
|
|
229
302
|
|
|
303
|
+
const showLightbox = ref(false);
|
|
304
|
+
const lightboxSrc = ref("");
|
|
305
|
+
|
|
306
|
+
const openFullImage = (src: string) => {
|
|
307
|
+
lightboxSrc.value = src;
|
|
308
|
+
showLightbox.value = true;
|
|
309
|
+
};
|
|
310
|
+
|
|
230
311
|
const createdAt = ref<string>("N/A");
|
|
231
312
|
const createdBy = ref<string>("N/A");
|
|
232
313
|
const timeOut = ref<string>("N/A");
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.5.1-staging.
|
|
5
|
+
"version": "4.5.1-staging.298",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|
package/types/people.d.ts
CHANGED
|
@@ -22,11 +22,14 @@ declare type TPeople = {
|
|
|
22
22
|
email?: string;
|
|
23
23
|
files?: { name: string, id: string }[];
|
|
24
24
|
isOwner?: boolean;
|
|
25
|
+
// Link to this person's `users` row. Empty for the person types that carry
|
|
26
|
+
// no login, and empty for a resident whose account was never written.
|
|
27
|
+
user?: string;
|
|
25
28
|
};
|
|
26
29
|
|
|
27
30
|
declare type TPlateNumber = { plateNumber: string, recNo: string, _id?: string, status: "active" | "deleted" | "pending", type: TVehicleType };
|
|
28
31
|
|
|
29
32
|
|
|
30
|
-
declare type TPeoplePayload = Pick<TGuest, "name" | "block" | "level" | "unit" | "unitName" | "contact" | "plateNumber" | "nric" | "contact" | "remarks" | "org" | "site" | "start" | "end" | "type" | "isOwner"> & { status?: string }
|
|
33
|
+
declare type TPeoplePayload = Pick<TGuest, "name" | "block" | "level" | "unit" | "unitName" | "contact" | "plateNumber" | "nric" | "contact" | "remarks" | "org" | "site" | "start" | "end" | "type" | "isOwner"> & { status?: string; user?: string }
|
|
31
34
|
|
|
32
35
|
declare type TPeopleType = "guest" | "resident" | "tenant"
|