@7365admin1/layer-common 2.0.0 → 3.0.0
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
CHANGED
|
@@ -105,10 +105,10 @@ const props = defineProps({
|
|
|
105
105
|
title: "Level",
|
|
106
106
|
value: "level.name",
|
|
107
107
|
},
|
|
108
|
-
{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
108
|
+
// {
|
|
109
|
+
// title: "Block",
|
|
110
|
+
// value: "block",
|
|
111
|
+
// },
|
|
112
112
|
{
|
|
113
113
|
title: "Block Name",
|
|
114
114
|
value: "buildingName",
|
|
@@ -276,13 +276,16 @@
|
|
|
276
276
|
<v-col cols="6" class="text-body-1">Document</v-col>
|
|
277
277
|
<v-col cols="6" class="text-right text-body-1">
|
|
278
278
|
<NuxtLink
|
|
279
|
-
v-if="selectedDocument?.attachment"
|
|
279
|
+
v-if="selectedDocument?.attachment && isViewable"
|
|
280
280
|
:to="getFileUrl(selectedDocument.attachment)"
|
|
281
281
|
external
|
|
282
282
|
target="_blank"
|
|
283
283
|
>
|
|
284
284
|
View Document
|
|
285
285
|
</NuxtLink>
|
|
286
|
+
<span v-else-if="selectedDocument?.attachment" class="text-grey" style="opacity: 0.6; cursor: not-allowed;">
|
|
287
|
+
View Document
|
|
288
|
+
</span>
|
|
286
289
|
<span v-else>N/A</span>
|
|
287
290
|
</v-col>
|
|
288
291
|
</v-row>
|
|
@@ -660,6 +663,11 @@ const selectedDocument = ref<TDocument>({
|
|
|
660
663
|
type: "",
|
|
661
664
|
});
|
|
662
665
|
|
|
666
|
+
const isViewable = computed(() => {
|
|
667
|
+
const lowerType = String(selectedDocument.value?.type || "").trim().toLowerCase();
|
|
668
|
+
return ["pdf", "doc", "csv"].includes(lowerType);
|
|
669
|
+
});
|
|
670
|
+
|
|
663
671
|
const previewDetails = computed(() => {
|
|
664
672
|
const document = selectedDocument.value as Record<string, any>;
|
|
665
673
|
const fileType =
|
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
</v-col>
|
|
549
549
|
<v-col cols="12" class="mt-4">
|
|
550
550
|
<v-number-input
|
|
551
|
-
v-model="facility.
|
|
551
|
+
v-model="facility.maxNumberGuestLimit"
|
|
552
552
|
:reverse="false"
|
|
553
553
|
controlVariant="default"
|
|
554
554
|
label="Maximum no. of guests"
|
|
@@ -1015,30 +1015,30 @@ const handlePolicy = (newContent: string) => {
|
|
|
1015
1015
|
|
|
1016
1016
|
function onToggleBookingUnitLimit(val: any) {
|
|
1017
1017
|
if (val) {
|
|
1018
|
-
|
|
1018
|
+
facility.value.isBookingUnitLimitEnabled = true;
|
|
1019
1019
|
facility.value.bookingUnitLimit = 1;
|
|
1020
1020
|
} else {
|
|
1021
|
-
|
|
1021
|
+
facility.value.isBookingUnitLimitEnabled = false;
|
|
1022
1022
|
facility.value.bookingUnitLimit = null;
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
1026
|
function onToggleMaxNumberGuestLimit(val: any) {
|
|
1027
1027
|
if (val) {
|
|
1028
|
-
|
|
1029
|
-
facility.value.
|
|
1028
|
+
facility.value.isMaxNumberGuestLimitEnabled = true;
|
|
1029
|
+
facility.value.maxNumberGuestLimit = 1;
|
|
1030
1030
|
} else {
|
|
1031
|
-
|
|
1032
|
-
facility.value.
|
|
1031
|
+
facility.value.isMaxNumberGuestLimitEnabled = false;
|
|
1032
|
+
facility.value.maxNumberGuestLimit = null;
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
function onToggleCancelAllowedLimit(val: any) {
|
|
1037
1037
|
if (val) {
|
|
1038
|
-
|
|
1038
|
+
facility.value.isCancelAllowedLimitEnabled = true;
|
|
1039
1039
|
facility.value.daysAllowedCancel = 1;
|
|
1040
1040
|
} else {
|
|
1041
|
-
|
|
1041
|
+
facility.value.isCancelAllowedLimitEnabled = false;
|
|
1042
1042
|
facility.value.daysAllowedCancel = null;
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|