@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 3.0.30
4
+
5
+ ### Patch Changes
6
+
7
+ - afdccc4: Build for Leftover changes from Benar's PR
8
+
3
9
  ## 3.0.29
4
10
 
5
11
  ### Patch Changes
@@ -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
- // type: "user-invite,member-invite",
274
- type: "member-invite",
273
+ type: "user-invite,member-invite",
275
274
  app: props.app,
276
275
  orgId: props.org,
277
- // siteId: props.siteId,
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-toolbar class="pa-0" density="compact">
309
- <v-row no-gutters>
310
- <v-col cols="6" class="pa-0">
311
- <v-btn
312
- block
313
- variant="text"
314
- class="text-none"
315
- size="large"
316
- height="48"
317
- :disabled="rejectModal.submitting"
318
- @click="closeRejectDialog"
319
- >
320
- Cancel
321
- </v-btn>
322
- </v-col>
323
-
324
- <v-col cols="6" class="pa-0">
325
- <v-btn
326
- block
327
- variant="flat"
328
- color="black"
329
- class="text-none font-weight-bold rounded-0"
330
- height="48"
331
- :loading="rejectModal.submitting"
332
- :disabled="!isRejectModalValid || rejectModal.submitting"
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
- selectedPhoto.value = photoData;
226
- showPhotoPreview.value = true;
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>NRIC: {{ item.nric }} | Contact No: {{ item.contact }} </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" :required="isVehicleRequired" />
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
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "3.0.30-staging.8",
5
+ "version": "3.0.30",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "publishConfig": {
@@ -41,5 +41,4 @@ type TSiteCategory =
41
41
  | "shopping_mall"
42
42
  | "mix_development"
43
43
  | "industrial"
44
- | "co_working"
45
- | "co_living";
44
+ | "co_working_co_living";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes