@7365admin1/layer-common 1.11.44 → 1.11.46

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,18 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 1.11.46
4
+
5
+ ### Patch Changes
6
+
7
+ - 1e4f7b6: update latest version add prop for invitation form
8
+ - 2e14129: update latest layer common
9
+
10
+ ## 1.11.45
11
+
12
+ ### Patch Changes
13
+
14
+ - e925b28: Update layout for super admin
15
+
3
16
  ## 1.11.44
4
17
 
5
18
  ### Patch Changes
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
 
22
22
  <!-- Person Type Filter -->
23
- <div class="text-caption font-weight-bold mb-1 text-uppercase text-grey-darken-1">Person Type</div>
23
+ <!-- <div class="text-caption font-weight-bold mb-1 text-uppercase text-grey-darken-1">Person Type</div>
24
24
  <v-btn-toggle
25
25
  v-model="assignPersonType"
26
26
  color="primary"
@@ -33,7 +33,7 @@
33
33
  <v-btn value="owner" size="small" class="text-none px-3">Unit Owner</v-btn>
34
34
  <v-btn value="resident" size="small" class="text-none px-3">Resident</v-btn>
35
35
  <v-btn value="tenant" size="small" class="text-none px-3">Tenant</v-btn>
36
- </v-btn-toggle>
36
+ </v-btn-toggle> -->
37
37
 
38
38
  <!-- Person Selector -->
39
39
  <div class="text-caption font-weight-bold mb-1 text-uppercase text-grey-darken-1">
@@ -384,6 +384,10 @@ const props = defineProps({
384
384
  type: String,
385
385
  default: "",
386
386
  },
387
+ orgId: {
388
+ type: String,
389
+ default: "",
390
+ },
387
391
  });
388
392
 
389
393
  const emit = defineEmits<{
@@ -394,7 +398,7 @@ const emit = defineEmits<{
394
398
  "assign-to-person": [{ card: Record<string, any> | null; person: Record<string, any> | null }];
395
399
  }>();
396
400
 
397
- const { getPeopleByUnit: _getPeopleByUnit } = usePeople();
401
+ const { getResidents } = useAccessManagement();
398
402
 
399
403
  const historyDialog = ref(false);
400
404
  const showAssignForm = ref(false);
@@ -442,10 +446,10 @@ async function openAssignForm() {
442
446
  assignPersonType.value = "";
443
447
  peopleItems.value = [];
444
448
 
445
- if (!props.unit?._id) return;
449
+ if (!props.unit?._id || !props.orgId || !props.siteId) return;
446
450
  peopleLoading.value = true;
447
451
  try {
448
- const res = await _getPeopleByUnit(props.unit._id);
452
+ const res = await getResidents({ orgId: props.orgId, siteId: props.siteId, unitId: props.unit._id });
449
453
  peopleItems.value = res?.data ?? [];
450
454
  } catch {
451
455
  peopleItems.value = [];
@@ -113,6 +113,7 @@
113
113
  :is-selected-card-assigned-physical="isSelectedCardAssignedPhysical"
114
114
  :is-selected-card-physical="isSelectedCardPhysical"
115
115
  :site-id="siteId"
116
+ :org-id="orgId"
116
117
  @replace="openReplaceDialog()"
117
118
  @delete="openDeleteDialog()"
118
119
  />