@7365admin1/layer-common 4.31.0 → 4.32.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 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
- GET /api/members/user/:user/app/admin the Seven365 staff membership
1373
- GET /api/roles/id/:role that membership's role document
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
- owner = member.type === "admin" && role.type === "admin" && role.default === true
1376
- staff = member.type === "admin" && role.type === "admin"
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); }