@7365admin1/layer-common 3.0.30-staging.8 → 3.0.30
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/CHANGELOG.md +6 -0
- package/components/InvitationMain.vue +3 -4
- package/components/ManageChecklistMain.vue +25 -32
- package/components/PhotoUpload.vue +4 -19
- package/components/VisitorForm.vue +3 -11
- package/package.json +1 -1
- package/types/customer.d.ts +1 -2
- /package/components/{Nfc → NFC}/NFCPatrolReportMain.vue +0 -0
- /package/components/{Nfc → NFC}/NFCPatrolRouteForm.vue +0 -0
- /package/components/{Nfc → NFC}/NFCPatrolRouteMain.vue +0 -0
- /package/components/{Nfc → NFC}/NFCPatrolSettings.vue +0 -0
- /package/components/{Nfc → NFC}/NFCTagForm.vue +0 -0
- /package/components/{Nfc → NFC}/NFCTagMain.vue +0 -0
- /package/components/{Nfc → NFC}/PatrolReport/DailyReportTab.vue +0 -0
- /package/components/{Nfc → NFC}/PatrolReport/MonthlyReportTab.vue +0 -0
- /package/components/{Nfc → NFC}/PatrolReport/PatrolActivityTable.vue +0 -0
- /package/components/{Nfc → NFC}/PatrolReport/PatrolReportTab.vue +0 -0
- /package/components/{Nfc → NFC}/PatrolReport/PatrolRouteSummary.vue +0 -0
- /package/components/{Nfc → NFC}/PatrolReport/RemarksDialog.vue +0 -0
- /package/components/{Nfc → NFC}/PatrolReport/ReportEmptyState.vue +0 -0
- /package/components/{Nfc → NFC}/PatrolReport/ReportFilters.vue +0 -0
- /package/components/{Nfc → NFC}/PatrolReport/ReportLocationHeader.vue +0 -0
- /package/components/{Nfc → NFC}/PatrolReport/SummaryReportTable.vue +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -221,7 +221,7 @@ const headers = computed(() => {
|
|
|
221
221
|
title: "Status",
|
|
222
222
|
value: "status",
|
|
223
223
|
},
|
|
224
|
-
|
|
224
|
+
|
|
225
225
|
];
|
|
226
226
|
|
|
227
227
|
if (props.status === "pending" && props.cancelInvitation) {
|
|
@@ -270,11 +270,10 @@ const {
|
|
|
270
270
|
page: page.value,
|
|
271
271
|
status: props.status,
|
|
272
272
|
search: headerSearch.value,
|
|
273
|
-
|
|
274
|
-
type: "member-invite",
|
|
273
|
+
type: "user-invite,member-invite",
|
|
275
274
|
app: props.app,
|
|
276
275
|
orgId: props.org,
|
|
277
|
-
|
|
276
|
+
siteId: props.siteId,
|
|
278
277
|
}),
|
|
279
278
|
{
|
|
280
279
|
watch: [() => props.status]
|
|
@@ -305,38 +305,31 @@
|
|
|
305
305
|
|
|
306
306
|
<v-divider />
|
|
307
307
|
|
|
308
|
-
<v-
|
|
309
|
-
<v-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
@click="submitRejectDialog"
|
|
334
|
-
>
|
|
335
|
-
Confirm
|
|
336
|
-
</v-btn>
|
|
337
|
-
</v-col>
|
|
338
|
-
</v-row>
|
|
339
|
-
</v-toolbar>
|
|
308
|
+
<v-card-actions class="pa-0">
|
|
309
|
+
<v-btn
|
|
310
|
+
color="grey"
|
|
311
|
+
variant="flat"
|
|
312
|
+
rounded="0"
|
|
313
|
+
class="flex-grow-1 text-none"
|
|
314
|
+
height="48"
|
|
315
|
+
:disabled="rejectModal.submitting"
|
|
316
|
+
@click="closeRejectDialog"
|
|
317
|
+
>
|
|
318
|
+
Cancel
|
|
319
|
+
</v-btn>
|
|
320
|
+
<v-btn
|
|
321
|
+
color="error"
|
|
322
|
+
variant="flat"
|
|
323
|
+
rounded="0"
|
|
324
|
+
class="flex-grow-1 text-none"
|
|
325
|
+
height="48"
|
|
326
|
+
:loading="rejectModal.submitting"
|
|
327
|
+
:disabled="!isRejectModalValid || rejectModal.submitting"
|
|
328
|
+
@click="submitRejectDialog"
|
|
329
|
+
>
|
|
330
|
+
Confirm
|
|
331
|
+
</v-btn>
|
|
332
|
+
</v-card-actions>
|
|
340
333
|
</v-card>
|
|
341
334
|
</v-dialog>
|
|
342
335
|
|
|
@@ -59,21 +59,6 @@
|
|
|
59
59
|
</v-col>
|
|
60
60
|
</v-row>
|
|
61
61
|
|
|
62
|
-
<v-dialog v-model="showPhotoPreview" max-width="900">
|
|
63
|
-
<v-card>
|
|
64
|
-
<v-card-actions class="pa-2 justify-end">
|
|
65
|
-
<v-btn
|
|
66
|
-
icon="mdi-close"
|
|
67
|
-
variant="text"
|
|
68
|
-
@click="showPhotoPreview = false"
|
|
69
|
-
/>
|
|
70
|
-
</v-card-actions>
|
|
71
|
-
<v-card-text class="pa-2 pt-0">
|
|
72
|
-
<v-img :src="selectedPhoto" contain max-height="80vh" />
|
|
73
|
-
</v-card-text>
|
|
74
|
-
</v-card>
|
|
75
|
-
</v-dialog>
|
|
76
|
-
|
|
77
62
|
<v-dialog v-model="photoOptionsDialog" max-width="420">
|
|
78
63
|
<v-card>
|
|
79
64
|
<v-card-title class="d-flex align-center pa-4">
|
|
@@ -211,8 +196,6 @@ const photos = ref<string[]>([...props.modelValue]);
|
|
|
211
196
|
const photosIds = ref<string[]>([...props.photoIds]);
|
|
212
197
|
const photoOptionsDialog = ref(false);
|
|
213
198
|
const showCameraDialog = ref(false);
|
|
214
|
-
const showPhotoPreview = ref(false);
|
|
215
|
-
const selectedPhoto = ref("");
|
|
216
199
|
const videoRef = ref<HTMLVideoElement | null>(null);
|
|
217
200
|
const canvasRef = ref<HTMLCanvasElement | null>(null);
|
|
218
201
|
const fileInputRef = ref<HTMLInputElement | null>(null);
|
|
@@ -222,8 +205,10 @@ const uploading = ref(false);
|
|
|
222
205
|
const { addFile } = useFile();
|
|
223
206
|
|
|
224
207
|
function viewPhoto(photoData: string) {
|
|
225
|
-
|
|
226
|
-
|
|
208
|
+
const link = document.createElement("a");
|
|
209
|
+
link.href = photoData;
|
|
210
|
+
link.target = "_blank";
|
|
211
|
+
link.click();
|
|
227
212
|
}
|
|
228
213
|
|
|
229
214
|
watch(
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<v-list-item v-for="(item, index) in nricSearchResults" :key="item._id || index"
|
|
67
67
|
@click="selectNricSearchResult(item)" class="cursor-pointer">
|
|
68
68
|
<v-list-item-title>{{ item.name || 'Unknown' }}</v-list-item-title>
|
|
69
|
-
<v-list-item-subtitle>
|
|
69
|
+
<v-list-item-subtitle>{{ item.contact }}</v-list-item-subtitle>
|
|
70
70
|
</v-list-item>
|
|
71
71
|
</v-list>
|
|
72
72
|
</v-menu>
|
|
@@ -155,13 +155,9 @@
|
|
|
155
155
|
<v-col v-if="shouldShowField('plateNumber')" cols="12">
|
|
156
156
|
<v-row>
|
|
157
157
|
<v-col cols="12">
|
|
158
|
-
<InputLabel class="text-capitalize" title="Vehicle Number"
|
|
158
|
+
<InputLabel class="text-capitalize" title="Vehicle Number" required />
|
|
159
159
|
<!-- <v-text-field v-model.trim.uppercase="visitor.plateNumber" density="comfortable" /> -->
|
|
160
|
-
<InputVehicleNumber
|
|
161
|
-
v-model="visitor.plateNumber"
|
|
162
|
-
:rules="[isVehicleRequired ? requiredRule : () => true]"
|
|
163
|
-
density="comfortable"
|
|
164
|
-
/>
|
|
160
|
+
<InputVehicleNumber v-model="visitor.plateNumber" density="comfortable" />
|
|
165
161
|
</v-col>
|
|
166
162
|
</v-row>
|
|
167
163
|
</v-col>
|
|
@@ -639,10 +635,6 @@ const requireNRIC = computed(() => {
|
|
|
639
635
|
return prop.type !== "walk-in" && prop.type !== "guest";
|
|
640
636
|
});
|
|
641
637
|
|
|
642
|
-
const isVehicleRequired = computed(() => {
|
|
643
|
-
return ["guest", "drop-off", "pick-up"].includes(prop.type);
|
|
644
|
-
});
|
|
645
|
-
|
|
646
638
|
const hidQrCodePassConfig = computed(() => {
|
|
647
639
|
return (siteData.value as any)?.metadata?.hidQrCodePass || {};
|
|
648
640
|
});
|
package/package.json
CHANGED
package/types/customer.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|