@7365admin1/layer-common 4.28.1-staging.361 → 4.30.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 +30 -4
- 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/HidReaderManagement.vue +0 -26
- package/components/HidReaderUserRoster.vue +3 -44
- package/components/HidUserEnrollment.vue +155 -845
- package/components/InvitationClientForm.vue +1 -19
- package/components/NotificationBell.vue +3 -39
- 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 -117
- package/composables/useHidNavigation.ts +1 -25
- package/composables/usePeople.ts +0 -19
- 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/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/notification-target.ts +0 -75
- package/utils/occupancy-role.ts +0 -109
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.30.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e460aca: Robots: shared pieces for the HERO network view - Needs attention, Clients drill-down, Faults & alerts table, fault bell, live indicator, a feed-agnostic live-state store (`useRobotLive` with a 4 s polling feed, paused while the tab is hidden, swappable for a push feed), summary cells that show "—" for unmeasured values, and display helpers (split lines, since/ago text, Reconnecting instead of stale facts). Not used by any app until the org network page adopts them.
|
|
8
|
+
|
|
9
|
+
A robot with no interface now shows an UNKNOWN status chip (error tone); "No interface" appears only on the capability badge.
|
|
10
|
+
|
|
11
|
+
## 4.29.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 61ee78a: Robots: add the HERO robot theme (scoped `hero-light` / `hero-dark`, robot pages only) and the shared robot components (status chip, battery, capability badge, command bar, summary strip, table, card, lift row, map toolbar, toast, notices). The capability badge reads the brand's COMMAND level; overlays opened from a robot page take the HERO look, all others are unchanged. Not used by any app yet.
|
|
16
|
+
|
|
17
|
+
## 4.28.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 94984ba: Robots: draw walls and zones on the building layout. The layout editor can now draw, move, reshape and remove wall segments and named zone polygons per floor, with undo of the last change and keyboard shortcuts; walls and zones are saved with the building map and drawn in the 3D view.
|
|
22
|
+
|
|
23
|
+
## 4.27.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- 98dbabc: Robots: building layout editor in the 3D view (place, move and remove doors and lift shafts, floor heights, save/remove the layout), doors and lift shafts drawn in 3D with shafts spanning stacked floors, and a live lift queue panel (simulated lift) with request/release for demo robots. New useRobots calls for building maps and lift sessions.
|
|
28
|
+
|
|
3
29
|
## 4.26.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -1337,11 +1363,11 @@
|
|
|
1337
1363
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
1338
1364
|
own rule from two endpoints the console already calls, unprojected:
|
|
1339
1365
|
|
|
1340
|
-
|
|
1341
|
-
|
|
1366
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
1367
|
+
GET /api/roles/id/:role that membership's role document
|
|
1342
1368
|
|
|
1343
|
-
|
|
1344
|
-
|
|
1369
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
1370
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
1345
1371
|
|
|
1346
1372
|
`role.default` is the marker because it is the only property of a platform
|
|
1347
1373
|
staff role no API caller can set - `role.controller.ts` validates create and
|
|
@@ -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 }}
|