@ai-ecoverse/slicc-spectrum 1.47.2 → 1.47.3

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/dist/slicc-ui.js CHANGED
@@ -11231,7 +11231,11 @@ var SliccNetwork = class extends ModelElement {
11231
11231
  return model.network ? [model.network.on("network", () => this.requestUpdate())] : [];
11232
11232
  }
11233
11233
  focus() {
11234
- this.focusOn("swc-button, a, summary, swc-action-button", ".page");
11234
+ this.focusWith(
11235
+ { focusVisible: false },
11236
+ "sp-picker, swc-button, a, summary, swc-action-button",
11237
+ ".page"
11238
+ );
11235
11239
  }
11236
11240
  async check() {
11237
11241
  const port = this.model?.network;
@@ -11349,7 +11353,7 @@ var SliccNetwork = class extends ModelElement {
11349
11353
  </div>` : A}
11350
11354
  <p data-exit=${tailnet.exitNode ? "node" : "none"}>${tailnet.exitNode ? `Internet through the exit node ${tailnet.exitNode}.` : tailnetOnly[status2.route ?? "none"]}</p>`;
11351
11355
  }
11352
- #exitLine(status2) {
11356
+ #exitLine(port, status2) {
11353
11357
  const exit = status2.exit;
11354
11358
  if (!exit) return A;
11355
11359
  if (exit.kind === "tailnet") {
@@ -11360,7 +11364,7 @@ var SliccNetwork = class extends ModelElement {
11360
11364
  const device = status2.links?.devices.find((item2) => item2.id === exit.id);
11361
11365
  if (device?.state === "connected") return A;
11362
11366
  const who = device ? `${device.name} is ${device.state}` : "The linked device isn\u2019t connected";
11363
- return b`<div class="warning" data-exit="device" data-held><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle><span>${who}. Internet traffic waits until it’s connected.</span></div>`;
11367
+ return b`<div class="warning" data-exit="device" data-held><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle><div class="banner"><span>${who}. Internet traffic waits until it’s connected.</span><div class="actions"><swc-button size="s" variant="secondary" fill-style="outline" data-action="exit-direct" ?pending=${this.busy === "exit"} ?disabled=${this.#waiting("exit")} @click=${() => this.#act("exit", () => port.setExit?.(null), "error")}>Send directly</swc-button></div></div></div>`;
11364
11368
  }
11365
11369
  #exitPicker(port, status2) {
11366
11370
  const tailnet = status2.tailnet;
@@ -11381,7 +11385,7 @@ var SliccNetwork = class extends ModelElement {
11381
11385
  </sp-menu-group>` : A}
11382
11386
  </sp-picker>
11383
11387
  </div>
11384
- ${this.#exitLine(status2)}`;
11388
+ ${this.#exitLine(port, status2)}`;
11385
11389
  }
11386
11390
  #exitAll(event2, port) {
11387
11391
  const value = event2.target.value;