@7365admin1/layer-common 4.31.0 → 4.32.1-staging.364
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 +10 -4
- package/assets/css/robot-hero.css +227 -1
- package/components/AccessCardAddForm.vue +5 -4
- package/components/AccessCardAssignToUnitForm.vue +3 -2
- package/components/AccessCardPreviewDialog.vue +4 -3
- package/components/Dialog/DeleteConfirmation.vue +17 -2
- package/components/Dialog/ReusablePrompt.vue +26 -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/HidReaderManagement.vue +26 -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/Robot/BuildingMap.vue +403 -0
- package/components/Robot/LiftQueue.vue +247 -0
- package/components/Robot/MapEditor.vue +233 -0
- package/components/Robot/PatrolRoutes.vue +3 -3
- package/components/Robot/SiteScreen.vue +36 -1
- package/components/VehicleForm.vue +45 -2
- package/components/VehicleManagement.vue +95 -10
- package/components/VisitorManagement.vue +267 -5
- package/composables/useAccessManagement.ts +5 -0
- package/composables/useCleaningPermission.ts +4 -4
- package/composables/useCommonPermission.ts +16 -0
- package/composables/useDocument.ts +7 -0
- package/composables/useFacility.ts +11 -0
- package/composables/useHidAmico.ts +117 -0
- package/composables/useHidNavigation.ts +25 -1
- package/composables/useHidReaderSelection.ts +50 -0
- package/composables/useLandscapingPermission.ts +4 -4
- package/composables/useMechanicalElectricalPermission.ts +4 -4
- package/composables/usePeople.ts +19 -0
- package/composables/usePestControlPermission.ts +4 -4
- package/composables/usePoolMaintenancePermission.ts +4 -4
- package/composables/useRobotBuilding.ts +66 -0
- package/composables/useSecurityPermission.ts +4 -10
- package/composables/useSiteCategory.ts +45 -0
- package/composables/useSiteEntryPassSettings.ts +26 -0
- package/composables/useWebUsb.ts +14 -11
- package/package.json +2 -2
- 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/utils/robot-building.ts +521 -0
- package/utils/robot-display.ts +29 -6
- package/utils/vehicle-actions.ts +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.32.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 959b862: HERO phase (d): 3D building map (`RobotBuildingMap` - CSS 3D stacked floors, ISO/TOP/SIDE/UNDER, drag/pan/zoom, floor filter, auto-orbit, full screen, robots with pins, patrol routes, lift shafts, "Floors · top down" legend + Floor unknown tray), map editor (`RobotMapEditor` - Wall/Zone/Door/Lift shaft/Move/Delete, Undo + Ctrl/Cmd+Z, plain-language save checks, keyboard), lift queue (`RobotLiftQueue` - animated shaft, riding/requested/released/timed-out rows), `RobotSiteScreen` `view` prop, `utils/robot-building.ts`, `useRobotBuilding`. Floors read "L1"/"B1"; a security robot's "Not reported" line lists spot clean; route tags and checkpoint labels stay inside the plan; plan grids repeat again.
|
|
8
|
+
|
|
3
9
|
## 4.31.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -1369,11 +1375,11 @@
|
|
|
1369
1375
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
1370
1376
|
own rule from two endpoints the console already calls, unprojected:
|
|
1371
1377
|
|
|
1372
|
-
|
|
1373
|
-
|
|
1378
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
1379
|
+
GET /api/roles/id/:role that membership's role document
|
|
1374
1380
|
|
|
1375
|
-
|
|
1376
|
-
|
|
1381
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
1382
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
1377
1383
|
|
|
1378
1384
|
`role.default` is the marker because it is the only property of a platform
|
|
1379
1385
|
staff role no API caller can set - `role.controller.ts` validates create and
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
}
|
|
392
392
|
.hero-lift-row__n, .hero-lift-row__wait { opacity: 0.6; font-variant-numeric: tabular-nums; }
|
|
393
393
|
.hero-lift-row__route { opacity: 0.65; }
|
|
394
|
-
.hero-lift-row__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background-size: 40px 2px; }
|
|
394
|
+
.hero-lift-row__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background-size: 40px 2px; background-repeat: repeat-x; }
|
|
395
395
|
.hero-lift-row__stripe--fast { background-image: linear-gradient(90deg, var(--hero-text) 0 50%, transparent 50%); animation: heroBar 1s linear infinite; }
|
|
396
396
|
.hero-lift-row__stripe--slow { background-image: linear-gradient(90deg, rgb(var(--v-theme-info)) 0 25%, transparent 25%); animation: heroBar 2.4s linear infinite; }
|
|
397
397
|
.hero-lift-row__stripe--solid { background: var(--hero-accent); }
|
|
@@ -657,6 +657,7 @@
|
|
|
657
657
|
background-color: var(--hero-surface);
|
|
658
658
|
background-image: linear-gradient(var(--hero-divider) 1px, transparent 1px), linear-gradient(90deg, var(--hero-divider) 1px, transparent 1px);
|
|
659
659
|
background-size: 10% 10%;
|
|
660
|
+
background-repeat: repeat; /* Vuetify resets every element to no-repeat */
|
|
660
661
|
border: 1px solid var(--hero-divider);
|
|
661
662
|
overflow: hidden;
|
|
662
663
|
}
|
|
@@ -840,6 +841,231 @@
|
|
|
840
841
|
|
|
841
842
|
/* ----------------------------------------------------------- animations */
|
|
842
843
|
|
|
844
|
+
/* ============================================ HERO phase (d): building map, editor, lift queue */
|
|
845
|
+
|
|
846
|
+
.hero .v-btn.hero-btn-icon .v-btn__content { gap: 8px; }
|
|
847
|
+
|
|
848
|
+
/* 3D building map (README §4). */
|
|
849
|
+
.hero-split.hero-bmap { align-items: stretch; }
|
|
850
|
+
.hero-bmap__viewer {
|
|
851
|
+
flex: 999 1 460px;
|
|
852
|
+
min-width: 0;
|
|
853
|
+
position: relative;
|
|
854
|
+
/* 520 at least; otherwise down to the fold like the handoff's full-height main. */
|
|
855
|
+
min-height: max(520px, calc(100vh - 255px));
|
|
856
|
+
background-color: var(--hero-surface);
|
|
857
|
+
background-image: radial-gradient(ellipse at center, transparent 45%, color-mix(in srgb, var(--hero-text) 7%, transparent) 100%);
|
|
858
|
+
border-top: 2px solid var(--hero-divider);
|
|
859
|
+
overflow: hidden;
|
|
860
|
+
perspective: 1600px;
|
|
861
|
+
display: grid;
|
|
862
|
+
place-items: center;
|
|
863
|
+
user-select: none;
|
|
864
|
+
touch-action: none;
|
|
865
|
+
}
|
|
866
|
+
.hero-bmap__viewer:fullscreen { background-color: var(--hero-bg); }
|
|
867
|
+
.hero-bmap__viewer--grab { cursor: grab; }
|
|
868
|
+
.hero-bmap__viewer--pan { cursor: grabbing; }
|
|
869
|
+
.hero-bmap__viewer--rotate { cursor: move; }
|
|
870
|
+
.hero-bmap__zoom { position: absolute; left: 14px; top: 12px; z-index: 3; display: flex; flex-direction: column; border: 1px solid var(--hero-divider); background: var(--hero-bg); }
|
|
871
|
+
.hero-bmap__zoom button {
|
|
872
|
+
width: 34px;
|
|
873
|
+
height: 34px;
|
|
874
|
+
padding: 0;
|
|
875
|
+
display: grid;
|
|
876
|
+
place-items: center;
|
|
877
|
+
border: 0;
|
|
878
|
+
border-bottom: 1px solid var(--hero-divider);
|
|
879
|
+
background: transparent;
|
|
880
|
+
color: var(--hero-text);
|
|
881
|
+
font: inherit;
|
|
882
|
+
font-size: 18px;
|
|
883
|
+
font-weight: 800;
|
|
884
|
+
cursor: pointer;
|
|
885
|
+
}
|
|
886
|
+
.hero-bmap__zoom button:last-child { border-bottom: 0; }
|
|
887
|
+
.hero-bmap__zoom button:hover { background: color-mix(in srgb, var(--hero-text) 7%, transparent); }
|
|
888
|
+
.hero-bmap__zoom button.hero-bmap__orbit--on { color: var(--hero-accent); }
|
|
889
|
+
.hero-bmap__bar { position: absolute; left: 56px; right: 150px; top: 12px; z-index: 3; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
890
|
+
.hero-bmap__seg { display: inline-flex; border: 1px solid var(--hero-divider); background: var(--hero-bg); }
|
|
891
|
+
.hero-bmap__seg button {
|
|
892
|
+
border: 0;
|
|
893
|
+
border-right: 1px solid var(--hero-divider);
|
|
894
|
+
padding: 6px 10px;
|
|
895
|
+
font: inherit;
|
|
896
|
+
font-size: 11px;
|
|
897
|
+
font-weight: 700;
|
|
898
|
+
letter-spacing: 0.06em;
|
|
899
|
+
text-transform: uppercase;
|
|
900
|
+
white-space: nowrap;
|
|
901
|
+
cursor: pointer;
|
|
902
|
+
background: transparent;
|
|
903
|
+
color: var(--hero-text);
|
|
904
|
+
line-height: 1.45;
|
|
905
|
+
}
|
|
906
|
+
.hero-bmap__seg button[aria-pressed="true"] { background: var(--hero-accent); color: #fff; }
|
|
907
|
+
.hero-bmap__readout { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
908
|
+
.hero-bmap__live { position: absolute; right: 14px; top: 12px; z-index: 3; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
|
|
909
|
+
.hero-bmap__loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 20%; background: color-mix(in srgb, var(--hero-bg) 55%, transparent); }
|
|
910
|
+
.hero-bmap__view { transform-style: preserve-3d; }
|
|
911
|
+
.hero-bmap__stack { position: relative; width: 400px; height: 260px; transform-style: preserve-3d; transform-origin: center; }
|
|
912
|
+
.hero-bmap__floor {
|
|
913
|
+
position: absolute;
|
|
914
|
+
inset: 0;
|
|
915
|
+
transform-style: preserve-3d;
|
|
916
|
+
border: 1.5px solid var(--hero-text);
|
|
917
|
+
background-color: color-mix(in srgb, var(--hero-bg) var(--hero-fill, 88%), transparent);
|
|
918
|
+
background-image: linear-gradient(var(--hero-divider) 1px, transparent 1px), linear-gradient(90deg, var(--hero-divider) 1px, transparent 1px);
|
|
919
|
+
background-size: 10% 15%;
|
|
920
|
+
background-repeat: repeat; /* Vuetify resets every element to no-repeat */
|
|
921
|
+
transition: opacity 0.6s ease, background-color 0.6s ease;
|
|
922
|
+
}
|
|
923
|
+
.hero-bmap__room { position: absolute; border: 1.5px solid var(--hero-text); opacity: 0.5; }
|
|
924
|
+
.hero-bmap__door { position: absolute; width: 3px; height: 10%; background: var(--hero-accent); }
|
|
925
|
+
.hero-bmap__wall { stroke: var(--hero-text); stroke-width: 3; opacity: 0.8; }
|
|
926
|
+
.hero-bmap__zone { fill: color-mix(in srgb, var(--hero-text) 10%, transparent); stroke: var(--hero-text); stroke-width: 1; stroke-dasharray: 4 3; }
|
|
927
|
+
.hero-bmap__doorline { stroke: var(--hero-accent); stroke-width: 3; }
|
|
928
|
+
.hero-bmap__anchor { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
|
|
929
|
+
.hero-bmap__routetag { position: absolute; left: -6px; top: -30px; transform-origin: 0 0; white-space: nowrap; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; padding: 1px 6px; background: var(--hero-accent); color: #fff; }
|
|
930
|
+
.hero-bmap__cp { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--hero-accent); background: var(--hero-bg); display: grid; place-items: center; font-size: 7px; font-weight: 800; color: var(--hero-accent); }
|
|
931
|
+
.hero-bmap__cplabel { position: absolute; left: 8px; top: -4px; transform-origin: 0 0; white-space: nowrap; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 4px; background: var(--hero-bg); color: var(--hero-accent); font-weight: 700; }
|
|
932
|
+
.hero-bmap__ping { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--hero-bot); animation: heroPing 2.4s ease-out infinite; }
|
|
933
|
+
.hero-bmap__body { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--hero-bot); outline: 2px solid var(--hero-bg); }
|
|
934
|
+
.hero-bmap__pin { position: absolute; left: -2px; top: 0; width: 4px; transform-origin: 0 0; transform: rotateX(90deg); background: var(--hero-bot); outline: 1px solid var(--hero-bg); }
|
|
935
|
+
.hero-bmap__pin--y { transform: rotateY(90deg) rotateX(90deg); }
|
|
936
|
+
.hero .hero-bmap__name {
|
|
937
|
+
position: absolute;
|
|
938
|
+
left: 6px;
|
|
939
|
+
top: -6px;
|
|
940
|
+
transform-origin: 0 0;
|
|
941
|
+
white-space: nowrap;
|
|
942
|
+
font: inherit;
|
|
943
|
+
font-size: 11px;
|
|
944
|
+
font-weight: 800;
|
|
945
|
+
letter-spacing: 0.02em;
|
|
946
|
+
line-height: 1.45;
|
|
947
|
+
padding: 1px 5px;
|
|
948
|
+
background: var(--hero-bg);
|
|
949
|
+
color: var(--hero-text);
|
|
950
|
+
border: 0;
|
|
951
|
+
border-left: 3px solid var(--hero-bot);
|
|
952
|
+
box-shadow: var(--hero-shadow-sm);
|
|
953
|
+
cursor: pointer;
|
|
954
|
+
}
|
|
955
|
+
.hero-bmap__floorlabel { position: absolute; left: -14px; top: 50%; transform-origin: 0 0; font-size: 12px; font-weight: 800; padding: 1px 6px; background: var(--hero-text); color: var(--hero-bg); white-space: nowrap; }
|
|
956
|
+
.hero-bmap__shaft { position: absolute; width: 0; height: 0; transform-style: preserve-3d; transition: opacity 0.6s ease; }
|
|
957
|
+
.hero-bmap__shaftwall { position: absolute; left: 0; top: 0; box-sizing: border-box; transform-origin: top; transform: rotateX(90deg); background: color-mix(in srgb, var(--hero-accent) 28%, transparent); border: 1px solid var(--hero-accent); }
|
|
958
|
+
.hero-bmap__shaftwall--y { transform-origin: left; transform: rotateY(-90deg); background: color-mix(in srgb, var(--hero-accent) 18%, transparent); }
|
|
959
|
+
.hero-bmap__legend { position: absolute; left: 14px; bottom: 12px; z-index: 3; font-size: 11px; opacity: 0.65; display: flex; gap: 14px; white-space: nowrap; }
|
|
960
|
+
.hero-bmap__key { display: inline-block; width: 8px; height: 8px; vertical-align: middle; margin-right: 5px; }
|
|
961
|
+
.hero-bmap__key--door { background: var(--hero-accent); }
|
|
962
|
+
.hero-bmap__key--shaft { background: color-mix(in srgb, var(--hero-accent) 30%, transparent); border: 1px solid var(--hero-accent); box-sizing: border-box; }
|
|
963
|
+
.hero-bmap__key--bot { background: var(--hero-text); }
|
|
964
|
+
.hero-bmap__key--route { width: 12px; height: 0; border-top: 2px dashed var(--hero-accent); }
|
|
965
|
+
.hero-bmap__aside { display: flex; flex-direction: column; gap: 2px; font-size: 12px; flex: 1 1 260px; max-width: 360px; min-width: 0; }
|
|
966
|
+
.hero-bmap__asidetitle { border-top: 2px solid var(--hero-divider); padding-top: 8px; margin-bottom: 6px; }
|
|
967
|
+
.hero-bmap__legendrow { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--hero-divider); }
|
|
968
|
+
.hero-bmap__chips { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
969
|
+
/* The tone sits on the inner span: Vuetify's [type="button"] reset would win a colour set on the button itself. */
|
|
970
|
+
.hero-bmap__chip { border: 0; padding: 0; background: none; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.45; cursor: pointer; }
|
|
971
|
+
.hero-bmap__chip > span { display: block; padding: 1px 6px; }
|
|
972
|
+
.hero-bmap__tray { margin-top: 8px; padding: 8px 10px; background: var(--hero-surface); border-left: 2px solid var(--hero-divider); }
|
|
973
|
+
.hero-bmap__tray > .hero-aside__title, .hero-bmap__tray > .hero-bmap__chips { margin-bottom: 6px; }
|
|
974
|
+
.hero-bmap__traytext { opacity: 0.7; }
|
|
975
|
+
|
|
976
|
+
/* Map editor (README §4 "Edit mode"). */
|
|
977
|
+
.hero-editor { display: flex; flex-direction: column; gap: 16px; flex: 1; background: var(--hero-bg); }
|
|
978
|
+
.hero-editor--fs { padding: 24px; }
|
|
979
|
+
.hero-editor__bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
|
|
980
|
+
.hero-editor .hero-seg__opt { font-weight: 600; }
|
|
981
|
+
.hero-editor .hero-seg__opt--undo { border-left-width: 2px; font-weight: 400; }
|
|
982
|
+
.hero-editor .hero-seg__opt--save { font-weight: 700; color: var(--hero-accent); }
|
|
983
|
+
.hero-seg__kbd { opacity: 0.55; }
|
|
984
|
+
.hero .hero-input.hero-editor__floor { width: auto; min-height: 32px; padding: 4px 26px 4px 8px; }
|
|
985
|
+
.hero .hero-input.hero-editor__zone { width: 220px; min-height: 32px; }
|
|
986
|
+
.hero-editor__hint { font-size: 12px; opacity: 0.7; }
|
|
987
|
+
.hero .v-btn.hero-editor__fs { margin-left: auto; }
|
|
988
|
+
.hero .v-btn.hero-editor__fs .v-btn__content { gap: 8px; }
|
|
989
|
+
.hero-editor__notice { padding: 10px 12px; font-size: 12.5px; border-left: 2px solid var(--hero-accent); background: var(--hero-surface); }
|
|
990
|
+
.hero-editor__notice--ok { border-left-color: rgb(var(--v-theme-success)); }
|
|
991
|
+
.hero-editor__split { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; flex: 1; }
|
|
992
|
+
.hero-editor__plan {
|
|
993
|
+
flex: 999 1 460px;
|
|
994
|
+
min-width: 0;
|
|
995
|
+
position: relative;
|
|
996
|
+
min-height: max(480px, calc(100vh - 330px));
|
|
997
|
+
background-color: var(--hero-surface);
|
|
998
|
+
background-image: linear-gradient(var(--hero-divider) 1px, transparent 1px), linear-gradient(90deg, var(--hero-divider) 1px, transparent 1px);
|
|
999
|
+
background-size: 5% 8.9%;
|
|
1000
|
+
background-repeat: repeat; /* Vuetify resets every element to no-repeat */
|
|
1001
|
+
border: 1px solid var(--hero-divider);
|
|
1002
|
+
overflow: hidden;
|
|
1003
|
+
cursor: crosshair;
|
|
1004
|
+
}
|
|
1005
|
+
.hero-editor__plan:focus-visible { outline: 2px solid var(--hero-accent); outline-offset: 0; }
|
|
1006
|
+
.hero-editor__room { position: absolute; border: 2px solid var(--hero-text); opacity: 0.4; pointer-events: none; }
|
|
1007
|
+
.hero-editor__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
|
|
1008
|
+
.hero-editor__wall { stroke: var(--hero-text); stroke-width: 1.5; }
|
|
1009
|
+
.hero-editor__zone-shape { fill: color-mix(in srgb, var(--hero-text) 10%, transparent); stroke: var(--hero-text); stroke-width: 1; stroke-dasharray: 4 3; }
|
|
1010
|
+
line.hero-editor__sel { stroke: var(--hero-accent); }
|
|
1011
|
+
polygon.hero-editor__sel { stroke: var(--hero-accent); stroke-width: 2; stroke-dasharray: none; }
|
|
1012
|
+
div.hero-editor__sel { outline: 2px solid var(--hero-accent); }
|
|
1013
|
+
.hero-editor__label { position: absolute; display: grid; place-items: center; font-size: 10px; font-weight: 600; pointer-events: none; }
|
|
1014
|
+
.hero-editor__lift { position: absolute; box-sizing: border-box; display: grid; place-items: center; font-size: 10px; font-weight: 600; background: color-mix(in srgb, var(--hero-accent) 30%, transparent); border: 1px solid var(--hero-accent); }
|
|
1015
|
+
.hero-editor__door { position: absolute; width: 3%; height: 3%; margin: -1.5% 0 0 -1.5%; background: var(--hero-accent); }
|
|
1016
|
+
.hero-editor__cursor { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid var(--hero-accent); pointer-events: none; }
|
|
1017
|
+
.hero-editor__aside { font-size: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 260px; max-width: 360px; min-width: 0; align-self: stretch; }
|
|
1018
|
+
.hero-editor__asidetitle { border-top: 2px solid var(--hero-divider); padding-top: 8px; }
|
|
1019
|
+
.hero-editor__row { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--hero-divider); padding: 4px 0; }
|
|
1020
|
+
.hero-editor__pos { opacity: 0.55; font-variant-numeric: tabular-nums; }
|
|
1021
|
+
.hero-editor__note { opacity: 0.6; margin-top: auto; }
|
|
1022
|
+
|
|
1023
|
+
/* Lift queue (README §5). */
|
|
1024
|
+
.hero-lifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
|
|
1025
|
+
.hero-lift { border-top: 2px solid var(--hero-divider); display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 20px; align-items: start; }
|
|
1026
|
+
.hero-lift--skel { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
|
|
1027
|
+
.hero-lift__head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; padding: 8px 0; min-width: 0; }
|
|
1028
|
+
.hero-lift__name { font-weight: 800; font-size: 16px; white-space: nowrap; }
|
|
1029
|
+
.hero-lift__sub { opacity: 0.6; font-size: 12px; white-space: nowrap; }
|
|
1030
|
+
.hero-lift__car { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; white-space: nowrap; overflow: hidden; }
|
|
1031
|
+
.hero-lift__cardot { width: 5px; height: 5px; flex: none; }
|
|
1032
|
+
.hero-lift__cardot--ink { background: var(--hero-text); }
|
|
1033
|
+
.hero-lift__cardot--accent { background: var(--hero-accent); }
|
|
1034
|
+
.hero-lift__cardot--neutral { background: color-mix(in srgb, var(--hero-text) 45%, transparent); }
|
|
1035
|
+
.hero-lift__cardot--blink { animation: heroBlink 1s ease-in-out infinite; }
|
|
1036
|
+
.hero-lift__shaft { position: relative; margin: 4px 0 8px; display: grid; grid-template-columns: 44px 1fr; }
|
|
1037
|
+
.hero-lift__labels { position: relative; }
|
|
1038
|
+
.hero-lift__floor { position: absolute; left: 0; right: 0; height: 0; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; opacity: 0.55; }
|
|
1039
|
+
.hero-lift__floor--lit { opacity: 1; }
|
|
1040
|
+
.hero-lift__floorname { width: 20px; white-space: nowrap; }
|
|
1041
|
+
.hero-lift__waiting { width: 7px; height: 7px; flex: none; background: rgb(var(--v-theme-info)); animation: heroBlink 1.4s ease-in-out infinite; }
|
|
1042
|
+
.hero-lift__well { position: relative; border-left: 2px solid var(--hero-divider); border-right: 2px solid var(--hero-divider); background: var(--hero-surface); overflow: hidden; }
|
|
1043
|
+
.hero-lift__rail { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--hero-divider); }
|
|
1044
|
+
.hero-lift__flow { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hero-accent) 14%, transparent), transparent); animation: heroFlow 3s linear infinite; }
|
|
1045
|
+
.hero-lift__carbox { position: absolute; left: 14%; right: 14%; box-sizing: content-box; background: var(--hero-bg); border: 2px solid; display: grid; place-items: center; overflow: hidden; }
|
|
1046
|
+
.hero-lift__carbox--ink { border-color: var(--hero-text); color: var(--hero-text); }
|
|
1047
|
+
.hero-lift__carbox--accent { border-color: var(--hero-accent); color: var(--hero-accent); }
|
|
1048
|
+
.hero-lift__carbox--neutral { border-color: color-mix(in srgb, var(--hero-text) 45%, transparent); color: color-mix(in srgb, var(--hero-text) 45%, transparent); }
|
|
1049
|
+
.hero-lift__carlabel { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; }
|
|
1050
|
+
.hero-lift__doors { position: absolute; inset: 0; background: var(--hero-surface); transform-origin: left; }
|
|
1051
|
+
.hero-lift__rows { min-width: 0; }
|
|
1052
|
+
.hero-lift__empty { opacity: 0.6; padding: 12px 0; }
|
|
1053
|
+
.hero-lift__list { display: flex; flex-direction: column; gap: 1px; background: var(--hero-divider); }
|
|
1054
|
+
.hero-lift__list .hero-lift-row { padding: 10px; overflow: hidden; }
|
|
1055
|
+
.hero-lift-row--click { cursor: pointer; }
|
|
1056
|
+
.hero-lift-row--act { grid-template-columns: 28px 1fr auto auto auto; }
|
|
1057
|
+
.hero-lift-row__who { min-width: 0; }
|
|
1058
|
+
.hero-lift-row__who .hero-lift-row__route { white-space: nowrap; }
|
|
1059
|
+
.hero-lift__list .hero-lift-row__wait { font-size: 12px; white-space: nowrap; }
|
|
1060
|
+
.hero .hero-lift-row__release { border: 0; background: none; padding: 0; font: inherit; font-size: 11px; font-weight: 600; color: var(--hero-accent); cursor: pointer; white-space: nowrap; }
|
|
1061
|
+
.hero-lift__ask { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; }
|
|
1062
|
+
.hero-lift__simnote { font-size: 11px; }
|
|
1063
|
+
@media (max-width: 600px) {
|
|
1064
|
+
.hero-lift { grid-template-columns: 1fr; }
|
|
1065
|
+
.hero-bmap__bar { right: 14px; }
|
|
1066
|
+
.hero-bmap__live { display: none; }
|
|
1067
|
+
}
|
|
1068
|
+
|
|
843
1069
|
@keyframes heroScan { from { background-position: 0 -60px; } to { background-position: 0 120%; } }
|
|
844
1070
|
@keyframes heroPulse {
|
|
845
1071
|
0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, rgb(var(--v-theme-accent)) 60%, transparent); }
|
|
@@ -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 {
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
Cancel
|
|
28
28
|
</v-btn>
|
|
29
29
|
|
|
30
|
-
<v-btn class="screen-btn-primary"
|
|
30
|
+
<v-btn class="screen-btn-primary" :class="{ 'no-permission': noPermission }"
|
|
31
|
+
:aria-disabled="noPermission || undefined" variant="flat" @click="emit('delete')">
|
|
31
32
|
Delete
|
|
32
33
|
</v-btn>
|
|
33
34
|
</div>
|
|
@@ -47,6 +48,15 @@ const props = defineProps({
|
|
|
47
48
|
loading: {
|
|
48
49
|
type: Boolean,
|
|
49
50
|
default: false
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* The action is not allowed (the server has refused it for want of the
|
|
54
|
+
* right). The confirm is drawn disabled but still takes the click, so the
|
|
55
|
+
* caller can say why - without sending the request again.
|
|
56
|
+
*/
|
|
57
|
+
noPermission: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: false
|
|
50
60
|
}
|
|
51
61
|
})
|
|
52
62
|
|
|
@@ -54,4 +64,9 @@ const emit = defineEmits(["close", "delete"])
|
|
|
54
64
|
|
|
55
65
|
</script>
|
|
56
66
|
|
|
57
|
-
<style scoped
|
|
67
|
+
<style scoped>
|
|
68
|
+
.no-permission {
|
|
69
|
+
opacity: 0.45;
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
}
|
|
72
|
+
</style>
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
<v-card-text class="screen-modal__body pa-5 my-5 px-7 text-center">
|
|
4
4
|
<span class="screen-card-title d-block">{{ promptTitle }}</span>
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
<!-- Red (`text-error`, the theme's error token) when the caller says
|
|
7
|
+
the message is a failure; other callers pass notes, so it stays
|
|
8
|
+
plain by default. -->
|
|
9
|
+
<span v-if="message" class="d-block mt-5" :class="{ 'text-error': messageError }">
|
|
7
10
|
{{ message }}
|
|
8
11
|
</span>
|
|
9
12
|
</v-card-text>
|
|
@@ -25,7 +28,8 @@
|
|
|
25
28
|
draws no destructive button, so overriding it here would be
|
|
26
29
|
inventing a control the design never named. Left as it renders
|
|
27
30
|
today and raised for a design decision. -->
|
|
28
|
-
<v-btn :class="confirmButtonColor ? 'text-none' : 'screen-btn-primary'"
|
|
31
|
+
<v-btn :class="[confirmButtonColor ? 'text-none' : 'screen-btn-primary', { 'no-permission': noPermission }]"
|
|
32
|
+
:aria-disabled="noPermission || undefined"
|
|
29
33
|
variant="flat" :color="confirmButtonColor || undefined" @click="emit('proceed')">
|
|
30
34
|
{{ confirmLabel }}
|
|
31
35
|
</v-btn>
|
|
@@ -54,6 +58,20 @@ const props = defineProps({
|
|
|
54
58
|
confirmButtonColor: {
|
|
55
59
|
type: String,
|
|
56
60
|
default: ""
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* The action is not allowed (the server has refused it for want of the
|
|
64
|
+
* right). The confirm is drawn disabled but still takes the click, so the
|
|
65
|
+
* caller can say why - without sending the request again.
|
|
66
|
+
*/
|
|
67
|
+
noPermission: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false
|
|
70
|
+
},
|
|
71
|
+
/** `message` is a refusal or failure: drawn in the error colour. */
|
|
72
|
+
messageError: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: false
|
|
57
75
|
}
|
|
58
76
|
|
|
59
77
|
})
|
|
@@ -62,4 +80,9 @@ const emit = defineEmits(["close", "proceed"])
|
|
|
62
80
|
|
|
63
81
|
</script>
|
|
64
82
|
|
|
65
|
-
<style scoped
|
|
83
|
+
<style scoped>
|
|
84
|
+
.no-permission {
|
|
85
|
+
opacity: 0.45;
|
|
86
|
+
cursor: not-allowed;
|
|
87
|
+
}
|
|
88
|
+
</style>
|
|
@@ -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 }}
|