@7365admin1/layer-common 4.34.0 → 4.34.1-staging.368
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 +4 -37
- package/components/AccessCardAddForm.vue +5 -4
- package/components/AccessCardAssignToUnitForm.vue +3 -2
- package/components/AccessCardPreviewDialog.vue +4 -3
- package/components/Dialog/UpdateMoreAction.vue +11 -1
- package/components/DocumentForm.vue +407 -112
- package/components/DocumentManagement.vue +213 -12
- package/components/EntryPass/QrTemplatePreview.vue +21 -25
- package/components/EntryPassInformation.vue +119 -24
- package/components/Facility/BookingSetup.vue +63 -0
- package/components/HidAccessLogDashboard.vue +41 -8
- package/components/HidAccessPermissions.vue +424 -0
- package/components/HidIntercomManagement.vue +148 -14
- package/components/HidProfileQrCode.vue +332 -0
- package/components/HidQrCodeConfiguration.vue +17 -195
- package/components/HidReaderManagement.vue +306 -0
- package/components/HidReaderUserRoster.vue +44 -3
- package/components/HidUserEnrollment.vue +845 -155
- package/components/InvitationClientForm.vue +19 -1
- package/components/NotificationBell.vue +39 -3
- package/components/VisitorForm.vue +12 -0
- package/components/VisitorManagement.vue +267 -5
- package/composables/useAccessManagement.ts +5 -0
- package/composables/useDocument.ts +7 -0
- package/composables/useFacility.ts +11 -0
- package/composables/useHidAmico.ts +134 -0
- package/composables/useHidNavigation.ts +25 -1
- package/composables/useHidReaderSelection.ts +50 -0
- package/composables/usePeople.ts +19 -0
- package/composables/useSiteCategory.ts +45 -0
- package/composables/useSiteEntryPassSettings.ts +26 -0
- package/composables/useWebUsb.ts +14 -11
- package/package.json +1 -1
- package/pages/[org]/[site]/access-mgmt/administrator/index.vue +1 -1
- package/pages/[org]/[site]/access-mgmt/hid-cards/index.vue +1 -1
- package/pages/[org]/[site]/access-mgmt/hid-qr-code/index.vue +23 -0
- package/pages/[org]/[site]/access-mgmt/hid-readers/index.vue +1 -1
- package/types/document.d.ts +14 -0
- package/types/facility.d.ts +4 -0
- package/types/people.d.ts +28 -1
- package/utils/hid-permission-assignments.ts +190 -0
- package/utils/hid-reader-selection.ts +52 -0
- package/utils/notification-target.ts +75 -0
- package/utils/occupancy-role.ts +109 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,38 +1,5 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
-
## 4.34.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- b45cddc: Security roles and permissions for vehicles, work orders and feedback (DV-0396).
|
|
8
|
-
|
|
9
|
-
- When the backend refuses a request (401/403 "You do not have permission…"), the app re-reads the user's role so buttons update without logging in again (`utils/permission-refusal.ts`, `plugins/API.ts`).
|
|
10
|
-
- Vehicle Management:
|
|
11
|
-
- An action the backend refused is faded straight away and shows the reason when clicked, without sending the request again.
|
|
12
|
-
- The Preview plate list shows every plate.
|
|
13
|
-
- Restore wording includes the ANPR camera counts.
|
|
14
|
-
- History shows each change on its own line as "from X to Y".
|
|
15
|
-
- Clicking a row without See Vehicle Details shows a message.
|
|
16
|
-
- A list the backend refused shows why in the empty table.
|
|
17
|
-
- Vehicle Form:
|
|
18
|
-
- After a refusal, Submit/Update stays faded and repeats the message.
|
|
19
|
-
- Closing the matching-records dialog without picking one unlocks NRIC and Name.
|
|
20
|
-
- `ReusablePrompt` / `DeleteConfirmation`: new `noPermission` option; ReusablePrompt also gets `messageError` to show its message in red.
|
|
21
|
-
- Vehicle actions: Restore needs Approve Vehicle, and a deleted blocklist plate only offers Restore.
|
|
22
|
-
- Delete Work Order and Delete Feedback are now offered only in the Property Management permissions. They're removed from Security and the trade apps (Cleaning, Landscaping, M&E, Pest Control, Pool Maintenance).
|
|
23
|
-
|
|
24
|
-
## 4.33.1
|
|
25
|
-
|
|
26
|
-
### Patch Changes
|
|
27
|
-
|
|
28
|
-
- 498481c: HERO robot rules for the mobile apps: `scripts/sync-robot-rules.mjs` writes a generated, hash-stamped copy of `utils/robot-display.ts` (+ lift-queue rows, HERO_PALETTE) and shared test vectors into iClean365, iMA365 and iSecure365. Repo tooling only; nothing a consuming app loads changes.
|
|
29
|
-
|
|
30
|
-
## 4.33.0
|
|
31
|
-
|
|
32
|
-
### Minor Changes
|
|
33
|
-
|
|
34
|
-
- 8fc0212: HERO robots phase e: site Alerts (`RobotSiteAlerts`) and Activity log (`RobotActivityLog`, site or network) as RobotSiteScreen views `alerts` / `log`; the header bell shows the site's open faults on every view; the Add / edit robot dialog rebuilt to the handoff (520px, type-filtered brands with capability, replace-only credentials) and the Remove dialog's wording; the building map reads the site's map whichever robot type saved it; mini-map name tags stay inside the plan.
|
|
35
|
-
|
|
36
3
|
## 4.32.0
|
|
37
4
|
|
|
38
5
|
### Minor Changes
|
|
@@ -1408,11 +1375,11 @@
|
|
|
1408
1375
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
1409
1376
|
own rule from two endpoints the console already calls, unprojected:
|
|
1410
1377
|
|
|
1411
|
-
|
|
1412
|
-
|
|
1378
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
1379
|
+
GET /api/roles/id/:role that membership's role document
|
|
1413
1380
|
|
|
1414
|
-
|
|
1415
|
-
|
|
1381
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
1382
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
1416
1383
|
|
|
1417
1384
|
`role.default` is the marker because it is the only property of a platform
|
|
1418
1385
|
staff role no API caller can set - `role.controller.ts` validates create and
|
|
@@ -433,7 +433,10 @@ const {
|
|
|
433
433
|
bulkPhysicalAccessCard: _bulkPhysicalAccessCard,
|
|
434
434
|
getBlockLevelUnitList: _getBlockLevelUnitList,
|
|
435
435
|
} = useAccessManagement();
|
|
436
|
-
const {
|
|
436
|
+
const {
|
|
437
|
+
getBySiteId: _getEntryPassSettings,
|
|
438
|
+
getEncryptedAcmUrl: _getEncryptedAcmUrl,
|
|
439
|
+
} = useSiteEntryPassSettings();
|
|
437
440
|
const { getFileUrl } = useFile();
|
|
438
441
|
|
|
439
442
|
const config = useRuntimeConfig();
|
|
@@ -588,9 +591,7 @@ watch(uploadMode, (mode) => {
|
|
|
588
591
|
|
|
589
592
|
onMounted(async () => {
|
|
590
593
|
try {
|
|
591
|
-
const
|
|
592
|
-
"/api/encrypt-acm-url"
|
|
593
|
-
);
|
|
594
|
+
const acmUrl = await _getEncryptedAcmUrl(siteId);
|
|
594
595
|
encryptedAcmUrl.value = acmUrl;
|
|
595
596
|
const [doorLevels, liftLevels, groups] = await Promise.all([
|
|
596
597
|
_getDoorAccessLevels(acmUrl),
|
|
@@ -203,6 +203,7 @@ const {
|
|
|
203
203
|
getBlockLevelUnitList: _getBlockLevelUnitList,
|
|
204
204
|
} = useAccessManagement();
|
|
205
205
|
const { requiredRule } = useUtils();
|
|
206
|
+
const { getEncryptedAcmUrl } = useSiteEntryPassSettings();
|
|
206
207
|
|
|
207
208
|
const route = useRoute();
|
|
208
209
|
const siteId = computed(() => props.siteId || (route.params.site as string));
|
|
@@ -294,7 +295,7 @@ onMounted(async () => {
|
|
|
294
295
|
|
|
295
296
|
const [blockLevelResult, acmResult] = await Promise.allSettled([
|
|
296
297
|
_getBlockLevelUnitList(siteId.value),
|
|
297
|
-
|
|
298
|
+
getEncryptedAcmUrl(siteId.value),
|
|
298
299
|
]);
|
|
299
300
|
|
|
300
301
|
// Blocks / Levels / Units
|
|
@@ -309,7 +310,7 @@ onMounted(async () => {
|
|
|
309
310
|
|
|
310
311
|
// ACM levels (door + lift)
|
|
311
312
|
if (acmResult.status === "fulfilled") {
|
|
312
|
-
const acmUrl = acmResult.value
|
|
313
|
+
const acmUrl = acmResult.value;
|
|
313
314
|
try {
|
|
314
315
|
const [doorLevels, liftLevels] = await Promise.all([
|
|
315
316
|
_getDoorAccessLevels(acmUrl),
|
|
@@ -403,6 +403,7 @@ const emit = defineEmits<{
|
|
|
403
403
|
}>();
|
|
404
404
|
|
|
405
405
|
const { getResidents, assignUser } = useAccessManagement();
|
|
406
|
+
const { getEncryptedAcmUrl } = useSiteEntryPassSettings();
|
|
406
407
|
|
|
407
408
|
const historyDialog = ref(false);
|
|
408
409
|
const showAssignForm = ref(false);
|
|
@@ -475,12 +476,12 @@ async function openAssignForm() {
|
|
|
475
476
|
if (!props.unit?._id || !props.orgId || !props.siteId) return;
|
|
476
477
|
peopleLoading.value = true;
|
|
477
478
|
try {
|
|
478
|
-
const [residentsRes,
|
|
479
|
+
const [residentsRes, acmUrl] = await Promise.all([
|
|
479
480
|
getResidents({ orgId: props.orgId, siteId: props.siteId, unitId: props.unit._id }),
|
|
480
|
-
|
|
481
|
+
getEncryptedAcmUrl(props.siteId),
|
|
481
482
|
]);
|
|
482
483
|
peopleItems.value = residentsRes?.data ?? [];
|
|
483
|
-
encryptedAcmUrl.value =
|
|
484
|
+
encryptedAcmUrl.value = acmUrl ?? "";
|
|
484
485
|
} catch {
|
|
485
486
|
peopleItems.value = [];
|
|
486
487
|
} finally {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
Close
|
|
24
24
|
</v-btn>
|
|
25
25
|
|
|
26
|
-
<v-menu v-if="canUpdate || canDelete" contained>
|
|
26
|
+
<v-menu v-if="canUpdate || canDelete || $slots.actions" contained>
|
|
27
27
|
<template #activator="{ props }">
|
|
28
28
|
<v-btn
|
|
29
29
|
variant="flat"
|
|
@@ -42,6 +42,16 @@
|
|
|
42
42
|
render-verified either. Only the row type and the destructive ink
|
|
43
43
|
change. -->
|
|
44
44
|
<v-list class="pa-0 update-more__list">
|
|
45
|
+
<!--
|
|
46
|
+
Screen-specific rows, above Edit and the destructive one.
|
|
47
|
+
|
|
48
|
+
Additive: a screen that passes nothing gets the menu it always
|
|
49
|
+
had, and `$slots.actions` is undefined unless a caller actually
|
|
50
|
+
defines the slot - so the button does not appear over an empty
|
|
51
|
+
list when a screen has neither permission nor extra rows.
|
|
52
|
+
-->
|
|
53
|
+
<slot name="actions" />
|
|
54
|
+
|
|
45
55
|
<v-list-item v-if="canUpdate" @click="emit('edit')">
|
|
46
56
|
<v-list-item-title>
|
|
47
57
|
{{ editButtonLabel }}
|