@7365admin1/layer-common 4.34.1-staging.368 → 4.35.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 +47 -4
- package/assets/css/robot-hero.css +8 -8
- package/components/AccessCardAddForm.vue +4 -5
- package/components/AccessCardAssignToUnitForm.vue +2 -3
- package/components/AccessCardPreviewDialog.vue +3 -4
- package/components/Dialog/UpdateMoreAction.vue +1 -11
- package/components/DocumentForm.vue +112 -407
- package/components/DocumentManagement.vue +12 -213
- package/components/EntryPass/QrTemplatePreview.vue +25 -21
- package/components/EntryPassInformation.vue +24 -119
- package/components/Facility/BookingSetup.vue +0 -63
- package/components/HidAccessLogDashboard.vue +8 -41
- package/components/HidIntercomManagement.vue +14 -148
- package/components/HidQrCodeConfiguration.vue +195 -17
- package/components/HidReaderManagement.vue +0 -306
- package/components/HidReaderUserRoster.vue +3 -44
- package/components/HidUserEnrollment.vue +155 -845
- package/components/InvitationClientForm.vue +1 -19
- package/components/Robot/SiteHeader.vue +5 -6
- package/components/Robot/SiteScreen.vue +2 -25
- package/components/VisitorForm.vue +0 -12
- package/components/VisitorManagement.vue +5 -267
- package/composables/useAccessManagement.ts +0 -5
- package/composables/useDocument.ts +0 -7
- package/composables/useFacility.ts +0 -11
- package/composables/useHidAmico.ts +0 -134
- package/composables/useHidNavigation.ts +1 -25
- package/composables/usePeople.ts +0 -19
- package/composables/useRobots.ts +1 -1
- package/composables/useSiteEntryPassSettings.ts +0 -26
- package/composables/useWebUsb.ts +11 -14
- 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-readers/index.vue +1 -1
- package/types/document.d.ts +0 -14
- package/types/facility.d.ts +0 -4
- package/types/people.d.ts +1 -28
- package/components/HidAccessPermissions.vue +0 -424
- package/components/HidProfileQrCode.vue +0 -332
- package/components/Robot/Bell.vue +0 -21
- package/composables/useHidReaderSelection.ts +0 -50
- package/composables/useSiteCategory.ts +0 -45
- package/pages/[org]/[site]/access-mgmt/hid-qr-code/index.vue +0 -23
- package/utils/hid-permission-assignments.ts +0 -190
- package/utils/hid-reader-selection.ts +0 -52
- package/utils/occupancy-role.ts +0 -109
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.35.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1d1bcb0: Notification bell: clicking a row now goes to what it is about, not just marks it read. Marketplace orders sent to a vendor's staff (`marketplace-vendor-order`) open that sub-order in the organization app's order queue; the row's id is carried in `params.id` by `iservice365-API-core`'s senders. Marking read no longer blocks the navigation and no longer swallows the click on a row that was already read. Apps without an order queue are unaffected — the bell checks its own router for the route before pushing. New `utils/notification-target.ts` holds the decision, with unit tests.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- a71f983: Robot (HERO) screens: the robot header no longer slides under the app's top bar - `.hero-page` and `.hero-screen` drop their `margin: -24px` (the apps pad 8-16px, so the page was pulled above its content box). The HERO fault-count bell is removed from the shared robot header (`RobotSiteHeader`), and `RobotBell` is deleted, so the app's own top-bar bell is the only bell. `RobotSiteHeader` loses its `faults` prop and `bell` emit, and `RobotSiteScreen` its `bell` emit and 30 s fault poll; a page still passing them keeps working (they fall through unused). Open faults stay on the Faults summary, Needs attention and Alerts.
|
|
12
|
+
|
|
13
|
+
## 4.34.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- b45cddc: Security roles and permissions for vehicles, work orders and feedback (DV-0396).
|
|
18
|
+
|
|
19
|
+
- 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`).
|
|
20
|
+
- Vehicle Management:
|
|
21
|
+
- An action the backend refused is faded straight away and shows the reason when clicked, without sending the request again.
|
|
22
|
+
- The Preview plate list shows every plate.
|
|
23
|
+
- Restore wording includes the ANPR camera counts.
|
|
24
|
+
- History shows each change on its own line as "from X to Y".
|
|
25
|
+
- Clicking a row without See Vehicle Details shows a message.
|
|
26
|
+
- A list the backend refused shows why in the empty table.
|
|
27
|
+
- Vehicle Form:
|
|
28
|
+
- After a refusal, Submit/Update stays faded and repeats the message.
|
|
29
|
+
- Closing the matching-records dialog without picking one unlocks NRIC and Name.
|
|
30
|
+
- `ReusablePrompt` / `DeleteConfirmation`: new `noPermission` option; ReusablePrompt also gets `messageError` to show its message in red.
|
|
31
|
+
- Vehicle actions: Restore needs Approve Vehicle, and a deleted blocklist plate only offers Restore.
|
|
32
|
+
- 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).
|
|
33
|
+
|
|
34
|
+
## 4.33.1
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- 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.
|
|
39
|
+
|
|
40
|
+
## 4.33.0
|
|
41
|
+
|
|
42
|
+
### Minor Changes
|
|
43
|
+
|
|
44
|
+
- 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.
|
|
45
|
+
|
|
3
46
|
## 4.32.0
|
|
4
47
|
|
|
5
48
|
### Minor Changes
|
|
@@ -1375,11 +1418,11 @@
|
|
|
1375
1418
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
1376
1419
|
own rule from two endpoints the console already calls, unprojected:
|
|
1377
1420
|
|
|
1378
|
-
|
|
1379
|
-
|
|
1421
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
1422
|
+
GET /api/roles/id/:role that membership's role document
|
|
1380
1423
|
|
|
1381
|
-
|
|
1382
|
-
|
|
1424
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
1425
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
1383
1426
|
|
|
1384
1427
|
`role.default` is the marker because it is the only property of a platform
|
|
1385
1428
|
staff role no API caller can set - `role.controller.ts` validates create and
|
|
@@ -433,12 +433,16 @@
|
|
|
433
433
|
|
|
434
434
|
/* ------------------------------------------- network view (phase b) */
|
|
435
435
|
|
|
436
|
-
/*
|
|
436
|
+
/*
|
|
437
|
+
* A whole robot page inside an app layout's padded container. Never a negative
|
|
438
|
+
* margin: the apps' containers pad 8-24px, and pulling the page above its
|
|
439
|
+
* content box slid the header under the app's fixed top bar.
|
|
440
|
+
*/
|
|
437
441
|
.hero-page {
|
|
438
442
|
display: flex;
|
|
439
443
|
flex-direction: column;
|
|
440
444
|
gap: 20px;
|
|
441
|
-
margin:
|
|
445
|
+
margin: 0;
|
|
442
446
|
padding: 20px 24px 40px;
|
|
443
447
|
min-height: calc(100vh - 64px);
|
|
444
448
|
}
|
|
@@ -489,10 +493,6 @@
|
|
|
489
493
|
.hero-live__dot { width: 8px; height: 8px; display: inline-block; background: var(--hero-accent); animation: heroPulse 2s ease-out infinite; }
|
|
490
494
|
.hero-live__dot--off { background: var(--hero-neutral-300); animation: none; }
|
|
491
495
|
|
|
492
|
-
.hero-bell.v-btn { gap: 8px; padding: 5px 10px; min-height: 0; height: auto; }
|
|
493
|
-
.hero-bell.v-btn .v-btn__content { gap: 8px; }
|
|
494
|
-
.hero-bell--on.v-btn { color: var(--hero-accent); border-color: var(--hero-accent); }
|
|
495
|
-
|
|
496
496
|
/* Two columns that stack below ~900px: main + aside. */
|
|
497
497
|
.hero-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
|
|
498
498
|
.hero-split__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 999 1 560px; }
|
|
@@ -581,11 +581,11 @@
|
|
|
581
581
|
|
|
582
582
|
/* ---------------------------------------- site fleet + detail (phase c) */
|
|
583
583
|
|
|
584
|
-
/* The whole screen inside an app layout: header
|
|
584
|
+
/* The whole screen inside an app layout: header, then main. No negative margin (see .hero-page). */
|
|
585
585
|
.hero-screen {
|
|
586
586
|
display: flex;
|
|
587
587
|
flex-direction: column;
|
|
588
|
-
margin:
|
|
588
|
+
margin: 0;
|
|
589
589
|
min-height: calc(100vh - 64px);
|
|
590
590
|
}
|
|
591
591
|
.hero-main { display: flex; flex-direction: column; gap: 20px; padding: 20px 24px 40px; min-width: 0; }
|
|
@@ -433,10 +433,7 @@ const {
|
|
|
433
433
|
bulkPhysicalAccessCard: _bulkPhysicalAccessCard,
|
|
434
434
|
getBlockLevelUnitList: _getBlockLevelUnitList,
|
|
435
435
|
} = useAccessManagement();
|
|
436
|
-
const {
|
|
437
|
-
getBySiteId: _getEntryPassSettings,
|
|
438
|
-
getEncryptedAcmUrl: _getEncryptedAcmUrl,
|
|
439
|
-
} = useSiteEntryPassSettings();
|
|
436
|
+
const { getBySiteId: _getEntryPassSettings } = useSiteEntryPassSettings();
|
|
440
437
|
const { getFileUrl } = useFile();
|
|
441
438
|
|
|
442
439
|
const config = useRuntimeConfig();
|
|
@@ -591,7 +588,9 @@ watch(uploadMode, (mode) => {
|
|
|
591
588
|
|
|
592
589
|
onMounted(async () => {
|
|
593
590
|
try {
|
|
594
|
-
const acmUrl = await
|
|
591
|
+
const { encrypted: acmUrl } = await $fetch<{ encrypted: string }>(
|
|
592
|
+
"/api/encrypt-acm-url"
|
|
593
|
+
);
|
|
595
594
|
encryptedAcmUrl.value = acmUrl;
|
|
596
595
|
const [doorLevels, liftLevels, groups] = await Promise.all([
|
|
597
596
|
_getDoorAccessLevels(acmUrl),
|
|
@@ -203,7 +203,6 @@ const {
|
|
|
203
203
|
getBlockLevelUnitList: _getBlockLevelUnitList,
|
|
204
204
|
} = useAccessManagement();
|
|
205
205
|
const { requiredRule } = useUtils();
|
|
206
|
-
const { getEncryptedAcmUrl } = useSiteEntryPassSettings();
|
|
207
206
|
|
|
208
207
|
const route = useRoute();
|
|
209
208
|
const siteId = computed(() => props.siteId || (route.params.site as string));
|
|
@@ -295,7 +294,7 @@ onMounted(async () => {
|
|
|
295
294
|
|
|
296
295
|
const [blockLevelResult, acmResult] = await Promise.allSettled([
|
|
297
296
|
_getBlockLevelUnitList(siteId.value),
|
|
298
|
-
|
|
297
|
+
$fetch<{ encrypted: string }>("/api/encrypt-acm-url"),
|
|
299
298
|
]);
|
|
300
299
|
|
|
301
300
|
// Blocks / Levels / Units
|
|
@@ -310,7 +309,7 @@ onMounted(async () => {
|
|
|
310
309
|
|
|
311
310
|
// ACM levels (door + lift)
|
|
312
311
|
if (acmResult.status === "fulfilled") {
|
|
313
|
-
const acmUrl = acmResult.value;
|
|
312
|
+
const acmUrl = acmResult.value.encrypted;
|
|
314
313
|
try {
|
|
315
314
|
const [doorLevels, liftLevels] = await Promise.all([
|
|
316
315
|
_getDoorAccessLevels(acmUrl),
|
|
@@ -403,7 +403,6 @@ const emit = defineEmits<{
|
|
|
403
403
|
}>();
|
|
404
404
|
|
|
405
405
|
const { getResidents, assignUser } = useAccessManagement();
|
|
406
|
-
const { getEncryptedAcmUrl } = useSiteEntryPassSettings();
|
|
407
406
|
|
|
408
407
|
const historyDialog = ref(false);
|
|
409
408
|
const showAssignForm = ref(false);
|
|
@@ -476,12 +475,12 @@ async function openAssignForm() {
|
|
|
476
475
|
if (!props.unit?._id || !props.orgId || !props.siteId) return;
|
|
477
476
|
peopleLoading.value = true;
|
|
478
477
|
try {
|
|
479
|
-
const [residentsRes,
|
|
478
|
+
const [residentsRes, acmRes] = await Promise.all([
|
|
480
479
|
getResidents({ orgId: props.orgId, siteId: props.siteId, unitId: props.unit._id }),
|
|
481
|
-
|
|
480
|
+
$fetch<{ encrypted: string }>("/api/encrypt-acm-url"),
|
|
482
481
|
]);
|
|
483
482
|
peopleItems.value = residentsRes?.data ?? [];
|
|
484
|
-
encryptedAcmUrl.value =
|
|
483
|
+
encryptedAcmUrl.value = acmRes?.encrypted ?? "";
|
|
485
484
|
} catch {
|
|
486
485
|
peopleItems.value = [];
|
|
487
486
|
} finally {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
Close
|
|
24
24
|
</v-btn>
|
|
25
25
|
|
|
26
|
-
<v-menu v-if="canUpdate || canDelete
|
|
26
|
+
<v-menu v-if="canUpdate || canDelete" contained>
|
|
27
27
|
<template #activator="{ props }">
|
|
28
28
|
<v-btn
|
|
29
29
|
variant="flat"
|
|
@@ -42,16 +42,6 @@
|
|
|
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
|
-
|
|
55
45
|
<v-list-item v-if="canUpdate" @click="emit('edit')">
|
|
56
46
|
<v-list-item-title>
|
|
57
47
|
{{ editButtonLabel }}
|