@floless/app 0.128.0 → 0.128.2

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.
@@ -64,12 +64,17 @@
64
64
  #panelResizer::before{content:"";position:absolute;inset:0 3px;border-radius:2px;transition:background-color .12s}
65
65
  #panelResizer:hover::before,#panelResizer.drag::before{background:var(--brand)}
66
66
  #panelResizer:focus-visible{outline:none} #panelResizer:focus-visible::before{background:var(--brand)}
67
- #panelToggle{position:absolute;right:calc(var(--panelw,240px) - 14px);top:50%;transform:translateY(-50%);z-index:12;width:28px;height:42px;padding:0;display:flex;align-items:center;justify-content:center;background:var(--panel);border-color:var(--line);box-shadow:0 4px 14px rgba(0,0,0,.45);font-size:18px;line-height:1}
67
+ #panelToggle{position:absolute;right:calc(var(--panelw,240px) - 14px);top:50%;transform:translateY(-50%);z-index:12;width:28px;height:42px;padding:0;display:flex;align-items:center;justify-content:center;background:var(--panel);border-color:var(--line);box-shadow:0 4px 14px rgba(0,0,0,.45);line-height:1}
68
+ #panelToggle svg,#canvasStatusToggle svg,#m3dLegendCollapse svg,#m3dLegendLauncher svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}
68
69
  #panelToggle:hover{border-color:var(--brand)}
69
70
  #panelToggle::before,#m3dLegendCollapse::before,#m3dLegendLauncher::before{content:"";position:absolute;inset:-1px -8px}
70
71
  #panelToggle:focus-visible,#m3dLegendCollapse:focus-visible,#m3dLegendLauncher:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
71
72
  body.panel-collapsed #panel,body.panel-collapsed #panelResizer{display:none}
72
- body.panel-collapsed #panelToggle{right:4px}
73
+ #panelStub{display:none;width:48px;flex:none;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:14px;background:var(--panel);border-left:1px solid var(--line);overflow:hidden}
74
+ #panelStub .vertical-label{writing-mode:vertical-rl;transform:rotate(180deg);font-size:10px;color:var(--mut);text-transform:uppercase;letter-spacing:.2em;user-select:none}
75
+ body.panel-collapsed #panelStub{display:flex}
76
+ body.panel-collapsed #panelToggle{right:16px}
77
+ body.panel-collapsed #panelToggle svg{transform:rotate(180deg)}
73
78
  aside h3{margin:0 0 8px;font-size:12px;color:var(--mut);text-transform:uppercase;letter-spacing:.05em}
74
79
  select,input{background:#0f172a;color:var(--text);border:1px solid #475569;border-radius:6px;padding:6px;width:100%;font:13px system-ui}
75
80
  /* The two control classes the generic rule above actively BREAKS, themed globally so anything added
@@ -389,8 +394,23 @@
389
394
  #moreMenu .msnap-sub input:focus{outline:none;border-color:var(--brand)}
390
395
  #moreMenu .msnap-sub .oghint{flex-basis:100%;color:var(--mut);font-size:11px;line-height:1.4;margin-top:2px} /* nudge shown only when the grid is on but no local frame is set yet */
391
396
  /* Pointer-behaviour bars, bottom-right of the canvas (both views): [ Select filter ] [ Snap ]. Both reuse the brand-fill "on" toolbar language. */
392
- #ptrBars{position:absolute;right:12px;bottom:12px;z-index:8;display:flex;align-items:flex-end;gap:8px}
393
- #ptrBars.s3d{right:104px} /* in 3D, sit just LEFT of the bottom-right world-axis triad (#m3dAxes, right 15 + 78 wide) — same bottom edge (the ViewCube is top-right) */
397
+ /* One bottom dock owns both sides of the canvas chrome. The hint may shrink; Select/Snap never do, so
398
+ the two surfaces cannot overlap at narrower widths. In 3D the whole dock stops before the world-axis
399
+ triad, preserving the old 104px clearance without independently-positioned bars. */
400
+ #bottomDock{position:absolute;left:12px;right:12px;bottom:12px;z-index:8;display:flex;align-items:flex-end;gap:8px;min-width:0;pointer-events:none}
401
+ body.v3d #bottomDock{right:104px}
402
+ #bottomDockLeft{display:flex;align-items:center;gap:8px;flex:1;min-width:0;pointer-events:none}
403
+ #ptrBars{position:static;z-index:auto;display:flex;align-items:flex-end;gap:8px;flex:none;pointer-events:auto}
404
+ #canvasStatus{display:none;align-items:center;gap:0;flex:1;min-width:0;pointer-events:auto}
405
+ #canvasStatus.collapsed{flex:0 0 auto}
406
+ #canvasStatusToggle{width:28px;height:28px;flex:none;padding:0;display:flex;align-items:center;justify-content:center;background:var(--panel);border:1px solid var(--line);border-radius:6px 0 0 6px;color:var(--text);box-shadow:0 2px 8px rgba(0,0,0,.45)}
407
+ #canvasStatus.collapsed #canvasStatusToggle{border-radius:6px}
408
+ #canvasStatusToggle.open svg{transform:rotate(180deg)}
409
+ #canvasStatusToggle:hover{background:#475569;border-color:var(--brand)}
410
+ #canvasStatusToggle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
411
+ #canvasStatusToggle[aria-disabled=true]{cursor:default;opacity:.65}
412
+ #canvasStatusText{display:flex;align-items:center;height:28px;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--panel);color:var(--mut);border:1px solid var(--line);border-left:0;border-radius:0 6px 6px 0;padding:0 12px;font:12px system-ui;box-shadow:0 2px 8px rgba(0,0,0,.45)}
413
+ #canvasStatus.collapsed #canvasStatusText{display:none}
394
414
  #snapBar,#selBar{display:flex;align-items:center;gap:2px;padding:3px;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 14px rgba(0,0,0,.45)}
395
415
  #snapBar .lbl,#selBar .lbl{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--mut);padding:0 4px;user-select:none;align-self:center}
396
416
  /* Select bar: brand-blue "on"; neutral idle (cyan stays reserved for snapping). A flyout class shows partial (blue outline + dot) when only some of its types are on. */
@@ -917,8 +937,9 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
917
937
  lays out [tab strip][active body]; each tab body is its own scroll container (themed by the global * rule). */
918
938
  #m3dLegend{position:absolute;left:12px;bottom:64px;display:none;flex-direction:column;max-height:min(52vh,calc(100% - var(--m3d-legend-clearance,184px)));min-width:210px;max-width:min(340px,92vw);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:0;z-index:6;box-shadow:0 4px 14px rgba(0,0,0,.45);font-size:12px} /* the measured clearance tracks however many rows the narrow toolbar wraps onto */
919
939
  #m3dLegendCollapse{position:absolute;right:-14px;top:50%;transform:translateY(-50%);z-index:12;width:28px;height:42px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text);box-shadow:0 4px 14px rgba(0,0,0,.45);font-size:18px;line-height:1}
940
+ #m3dLegendCollapse svg{transform:rotate(180deg)}
920
941
  #m3dLegendCollapse:hover{color:var(--text);background:#475569;border-color:var(--brand)}
921
- #m3dLegendLauncher{position:absolute;left:4px;bottom:12px;z-index:12;width:28px;height:42px;display:none;align-items:center;justify-content:center;padding:0;background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.45);color:var(--text);font-size:18px;line-height:1}
942
+ #m3dLegendLauncher{position:relative;z-index:12;width:28px;height:42px;flex:none;display:none;align-items:center;justify-content:center;padding:0;background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.45);color:var(--text);font-size:18px;line-height:1;pointer-events:auto}
922
943
  #m3dLegendLauncher:hover{color:var(--text);background:#475569;border-color:var(--brand)}
923
944
  /* Tab strip — the .seg-group segmented look, full-width across the panel top; sticky so it never scrolls away. */
924
945
  #m3dPanelHeader{display:flex;flex:none;align-items:stretch;gap:6px;border-bottom:1px solid var(--line);padding:7px 8px 6px}
@@ -1525,14 +1546,13 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
1525
1546
  a tab that can never hold anything is the same dead chrome the header stat spans are hidden for. -->
1526
1547
  <button class=m3dtab role=tab data-tab=refs aria-selected=false style="display:none" data-tip="Reference models — an architect's or engineer's model overlaid to build against. Never part of your steel.">References</button>
1527
1548
  </div>
1528
- <button type=button id=m3dLegendCollapse aria-label="Collapse 3D panel" aria-controls=m3dLegend aria-expanded=true data-tip="Collapse Objects, Views, and Favourites to the bottom-left corner">‹</button>
1549
+ <button type=button id=m3dLegendCollapse aria-label="Collapse 3D panel" aria-controls=m3dLegend aria-expanded=true data-tip="Collapse Objects, Views, and Favourites to the bottom-left corner"><svg viewBox="0 0 16 16" aria-hidden=true><path d="m6 3 5 5-5 5"/></svg></button>
1529
1550
  </div>
1530
1551
  <div id=m3dLegendBody class="m3dbody on" role=tabpanel aria-label=Objects></div>
1531
1552
  <div id=m3dViewsBody class=m3dbody role=tabpanel aria-label=Views></div>
1532
1553
  <div id=m3dFavBody class=m3dbody role=tabpanel aria-label=Favourites></div>
1533
1554
  <div id=m3dRefsBody class=m3dbody role=tabpanel aria-label="Reference models"></div>
1534
1555
  </div>
1535
- <button type=button id=m3dLegendLauncher aria-label="Expand 3D panel" aria-controls=m3dLegend aria-expanded=false data-tip="Expand Objects, Views, and Favourites">›</button>
1536
1556
  <div id=m3dCube data-tip="Click a face for that view · right-drag to orbit"></div>
1537
1557
  <div id=m3dAxes></div>
1538
1558
  <div id=zoombar>
@@ -1542,8 +1562,14 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
1542
1562
  <span id=zPct>100%</span>
1543
1563
  <button id=zFit data-tip="Zoom to fit (Home)">Fit</button>
1544
1564
  </div>
1545
- <!-- Pointer-behaviour bars (bottom-right): Select (what may be picked) + Snap (what you snap to). -->
1546
- <div id=ptrBars>
1565
+ <!-- One bottom dock: the left disclosure shrinks before the right pointer controls, so they cannot collide. -->
1566
+ <div id=bottomDock>
1567
+ <!-- A direct, non-shrinking dock item: if the canvas narrows, this 28px remains allocated instead
1568
+ of overflowing a zero-width status flex child into Select/Snap. -->
1569
+ <button type=button id=m3dLegendLauncher aria-label="Expand 3D panel" aria-controls=m3dLegend aria-expanded=false data-tip="Expand Objects, Views, and Favourites"><svg viewBox="0 0 16 16" aria-hidden=true><path d="m6 3 5 5-5 5"/></svg></button>
1570
+ <div id=bottomDockLeft></div>
1571
+ <!-- Pointer-behaviour bars (bottom-right): Select (what may be picked) + Snap (what you snap to). -->
1572
+ <div id=ptrBars>
1547
1573
  <!-- Selection filter (Tekla "select switches"): a class off can't be picked by click / area-select / Ctrl+A.
1548
1574
  Members + Connections open a type flyout (All on top). Default: everything on, so nothing is filtered. -->
1549
1575
  <div id=selBar role=group aria-label="Selection filter">
@@ -1567,13 +1593,15 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
1567
1593
  <button data-snap=ext data-tip="Extension snap">┈</button>
1568
1594
  <button data-snap3d aria-label="3D snapping" data-tip="3D snapping — on: snap freely to any point in 3D, at any elevation; off: snap only on the current working level.">3D</button>
1569
1595
  </div>
1596
+ </div>
1570
1597
  </div>
1571
1598
  <div id=selFly role=menu aria-label="Selectable types"></div>
1572
1599
  </div>
1573
1600
  <div id=panelResizer role=separator aria-orientation=vertical aria-label="Resize properties panel" tabindex=0 data-tip="Drag to resize · double-click to reset"></div>
1574
1601
  <span id=connectionTruthStatus class=sr-only role=status aria-live=polite aria-atomic=true></span>
1575
1602
  <aside id=panel></aside>
1576
- <button type=button id=panelToggle aria-label="Collapse properties panel" aria-controls=panel aria-expanded=true data-tip="Collapse properties panel">›</button>
1603
+ <div id=panelStub aria-hidden=true><span class=vertical-label>Inspector</span></div>
1604
+ <button type=button id=panelToggle aria-label="Collapse Inspector" aria-controls=panel aria-expanded=true data-tip="Collapse Inspector"><svg viewBox="0 0 16 16" aria-hidden=true><path d="m6 3 5 5-5 5"/></svg></button>
1577
1605
  </main>
1578
1606
  <!-- (The conntypes / profiles / details <datalist>s that used to sit here are gone: every input that
1579
1607
  bound to them moved to the themed dark combobox below (COMBO_SRC / showCombo), which is what a
@@ -4789,7 +4817,7 @@ function renderGridPanel(p){
4789
4817
  document.getElementById('gridRemoveB').onclick=()=>{editGridTopology(()=>{ModelCmd.setPlanGrid(gridHost(),null);});};
4790
4818
  document.getElementById('gridDoneB').onclick=()=>{setGridMode(false);render();};
4791
4819
  }
4792
- function setGeo(){document.body.classList.toggle('geo',!!geoMode);document.body.classList.toggle('geoel',geoMode==='el');} // geoel = Extend/Trim armed; grid lines are a target ONLY then (not in Split), so their crosshair/highlight keys off geoel, not geo
4820
+ function setGeo(){document.body.classList.toggle('geo',!!geoMode);document.body.classList.toggle('geoel',geoMode==='el');if(view3d&&window.Steel3DView&&window.Steel3DView.refreshStatus)window.Steel3DView.refreshStatus();} // geoel = Extend/Trim armed; grid lines are a target ONLY then (not in Split), so their crosshair/highlight keys off geoel, not geo; 3D guidance follows the editor-owned mode immediately
4793
4821
  // --- repeat last command (AutoCAD/Tekla): when NO tool is active, Space/Enter re-invokes the last command ---
4794
4822
  let lastCmd=null;
4795
4823
  function setLastCmd(label,run){lastCmd={label,run};}
@@ -8025,7 +8053,7 @@ reflectOriginGrid();
8025
8053
  const b=document.getElementById('panelToggle');if(!b)return;
8026
8054
  const KEY='steel:propertiesPanelCollapsed:v1';
8027
8055
  let collapsed=false;try{collapsed=localStorage.getItem(KEY)==='1';}catch(_){}
8028
- const reflect=()=>{document.body.classList.toggle('panel-collapsed',collapsed);b.textContent=collapsed?'‹':'›';b.setAttribute('aria-expanded',String(!collapsed));const label=collapsed?'Open properties panel':'Collapse properties panel';b.setAttribute('aria-label',label);b.dataset.tip=label;};
8056
+ const reflect=()=>{document.body.classList.toggle('panel-collapsed',collapsed);b.setAttribute('aria-expanded',String(!collapsed));const label=collapsed?'Expand Inspector':'Collapse Inspector';b.setAttribute('aria-label',label);b.dataset.tip=label;};
8029
8057
  b.onclick=()=>{collapsed=!collapsed;try{localStorage.setItem(KEY,collapsed?'1':'0');}catch(_){}reflect();b.focus();};
8030
8058
  reflect();
8031
8059
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floless/app",
3
- "version": "0.128.0",
3
+ "version": "0.128.2",
4
4
  "type": "module",
5
5
  "description": "Thin localhost host for floless.app — serves web/ and shells the aware CLI. No engine, no LLM.",
6
6
  "bin": {