@7365admin1/layer-common 4.97.1-staging.539 → 4.97.1-staging.540
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/components/AccessCardDetailsDialog.vue +3 -2
- package/components/BuildingUnitFormEdit.vue +3 -1
- package/components/MemberInformation.vue +2 -2
- package/components/SearchVehicleNumberUser.vue +3 -0
- package/components/VehicleForm.vue +2 -2
- package/components/VisitorForm.vue +3 -3
- package/components/VisitorSearchResultSummary.vue +2 -1
- package/package.json +1 -1
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
|
|
80
80
|
<div v-if="details.userCred.nric">
|
|
81
81
|
<div class="card-details__label">NRIC</div>
|
|
82
|
-
<div class="card-details__value">{{ details.userCred.nric }}</div>
|
|
82
|
+
<div class="card-details__value">{{ maskNRIC(details.userCred.nric) }}</div>
|
|
83
83
|
</div>
|
|
84
84
|
|
|
85
85
|
<div v-if="details.userCred.contact">
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
<template v-if="entry.type === 'assigned' || entry.visitorId">
|
|
163
163
|
<div class="card-details__value">{{ entry.name ?? "N/A" }}</div>
|
|
164
164
|
<div class="card-details__sub">
|
|
165
|
-
<span v-if="entry.nric">NRIC: {{ entry.nric }}</span>
|
|
165
|
+
<span v-if="entry.nric">NRIC: {{ maskNRIC(entry.nric) }}</span>
|
|
166
166
|
<span v-if="entry.contact" class="ml-2">· {{ entry.contact }}</span>
|
|
167
167
|
<span v-if="entry.email && !entry.nric && !entry.contact">{{ entry.email }}</span>
|
|
168
168
|
</div>
|
|
@@ -193,6 +193,7 @@
|
|
|
193
193
|
</template>
|
|
194
194
|
|
|
195
195
|
<script setup lang="ts">
|
|
196
|
+
const { maskNRIC } = useUtils();
|
|
196
197
|
const props = defineProps({
|
|
197
198
|
modelValue: {
|
|
198
199
|
type: Boolean,
|
|
@@ -163,6 +163,8 @@
|
|
|
163
163
|
<TableMain :headers="vehicleHeaders" :show-header="true" :page="vehiclePage" :pages="vehicleTotalPages"
|
|
164
164
|
:pageRange="vehiclePageRange" :items="unitVehicleItems" @refresh="getUnitVehiclesRefresh" @update:page="handleUpdateVehiclePage">
|
|
165
165
|
|
|
166
|
+
<template #item.nric="{ value }">{{ maskNRIC(value) || "-" }}</template>
|
|
167
|
+
|
|
166
168
|
<template #item.status="{value}">
|
|
167
169
|
<v-chip :color="formatVehicleStatus(value).color" class="ma-0" small>
|
|
168
170
|
{{ formatVehicleStatus(value).label }}
|
|
@@ -404,7 +406,7 @@ const validForm = ref(false);
|
|
|
404
406
|
|
|
405
407
|
const { getAll } = useBuilding();
|
|
406
408
|
const { getPeopleByUnit, updateById: updatePeopleById } = usePeople();
|
|
407
|
-
const { debounce } = useUtils();
|
|
409
|
+
const { debounce, maskNRIC } = useUtils();
|
|
408
410
|
const { searchMultipleVehiclesByUnitId, formatVehicleStatus } = useVehicle();
|
|
409
411
|
|
|
410
412
|
const loading = reactive({
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
<div class="nric-selected-person d-flex align-center justify-space-between ga-3 mb-5">
|
|
115
115
|
<span>{{ memberSelectedSearchResult.name || "Unknown" }}</span>
|
|
116
116
|
<span class="text-no-wrap">
|
|
117
|
-
NRIC: {{ memberSelectedSearchResult.nric || "N/A" }}
|
|
117
|
+
NRIC: {{ maskNRIC(memberSelectedSearchResult.nric) || "N/A" }}
|
|
118
118
|
</span>
|
|
119
119
|
</div>
|
|
120
120
|
|
|
@@ -214,7 +214,7 @@ const props = defineProps({
|
|
|
214
214
|
},
|
|
215
215
|
});
|
|
216
216
|
|
|
217
|
-
const { requiredRule, debounce } = useUtils();
|
|
217
|
+
const { requiredRule, debounce, maskNRIC } = useUtils();
|
|
218
218
|
const { getPassKeysByPageSearch } = usePassKey();
|
|
219
219
|
const {
|
|
220
220
|
findPersonByNRICMultipleResult,
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
</span>
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
|
+
<template #item.nric="{ value }">{{ maskNRIC(value) || "-" }}</template>
|
|
23
|
+
|
|
22
24
|
<template #item.actions="{ item }">
|
|
23
25
|
<AppButton variant="ghost" @click="handleSelectUser(item)">Select</AppButton>
|
|
24
26
|
</template>
|
|
@@ -37,6 +39,7 @@
|
|
|
37
39
|
</template>
|
|
38
40
|
|
|
39
41
|
<script setup lang="ts">
|
|
42
|
+
const { maskNRIC } = useUtils();
|
|
40
43
|
|
|
41
44
|
const prop = defineProps({
|
|
42
45
|
vehicleNumber: {
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
</v-list-item-title>
|
|
477
477
|
|
|
478
478
|
<v-list-item-subtitle>
|
|
479
|
-
NRIC: {{ v.nric || "-" }}
|
|
479
|
+
NRIC: {{ maskNRIC(v.nric) || "-" }}
|
|
480
480
|
</v-list-item-subtitle>
|
|
481
481
|
|
|
482
482
|
<div class="mt-1 d-flex flex-wrap ga-1">
|
|
@@ -581,7 +581,7 @@ const prop = defineProps({
|
|
|
581
581
|
},
|
|
582
582
|
});
|
|
583
583
|
|
|
584
|
-
const { requiredRule, debounce } = useUtils();
|
|
584
|
+
const { requiredRule, debounce, maskNRIC } = useUtils();
|
|
585
585
|
const {
|
|
586
586
|
addVehicle,
|
|
587
587
|
getCustomSeasonPassTypes,
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
<div class="screen-modal__body nric-options-body">
|
|
312
312
|
<div class="nric-selected-person d-flex align-center justify-space-between ga-3 mb-5">
|
|
313
313
|
<span>{{ selectedNricSearchResult.name || "Unknown" }}</span>
|
|
314
|
-
<span v-if="!visitor.nric || currentAutofillSource === 'nric'" class="text-no-wrap">NRIC: {{ selectedNricSearchResult.nric || "N/A" }}</span>
|
|
314
|
+
<span v-if="!visitor.nric || currentAutofillSource === 'nric'" class="text-no-wrap">NRIC: {{ maskNRIC(selectedNricSearchResult.nric) || "N/A" }}</span>
|
|
315
315
|
</div>
|
|
316
316
|
|
|
317
317
|
<template v-if="(!visitor.contact || currentAutofillSource === 'contact') && selectedNricContactOptions.length >= 1">
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
</p>
|
|
356
356
|
|
|
357
357
|
<div class="checkout-dialog__subject">
|
|
358
|
-
<div v-if="!skipNonCheckedOutNric">NRIC: {{ visitor.nric || "N/A" }}</div>
|
|
358
|
+
<div v-if="!skipNonCheckedOutNric">NRIC: {{ maskNRIC(visitor.nric) || "N/A" }}</div>
|
|
359
359
|
<div>Phone Number: {{ visitor.contact || "N/A" }}</div>
|
|
360
360
|
</div>
|
|
361
361
|
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
<div class="visitor-form__footer" v-if="!skipNonCheckedOutNric">
|
|
423
423
|
<v-btn class="screen-btn-primary" variant="flat" :loading="loading.searchingNonCheckedOut"
|
|
424
424
|
@click="handleSkipNricNonCheckedOut">
|
|
425
|
-
Skip NRIC: {{ visitor.nric || "N/A" }}
|
|
425
|
+
Skip NRIC: {{ maskNRIC(visitor.nric) || "N/A" }}
|
|
426
426
|
</v-btn>
|
|
427
427
|
</div>
|
|
428
428
|
</v-card>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</div>
|
|
27
27
|
<div class="visitor-summary__cell">
|
|
28
28
|
<div class="visitor-summary__label">NRIC</div>
|
|
29
|
-
<div class="visitor-summary__value">{{ item?.nric || "N/A" }}</div>
|
|
29
|
+
<div class="visitor-summary__value">{{ maskNRIC(item?.nric) || "N/A" }}</div>
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
32
32
|
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script setup lang="ts">
|
|
52
|
+
const { maskNRIC } = useUtils();
|
|
52
53
|
const props = defineProps<{
|
|
53
54
|
item: any;
|
|
54
55
|
}>();
|
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.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.540",
|
|
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.",
|