@ai-ecoverse/slicc-spectrum 1.47.1 → 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/README.md +2 -2
- package/dist/slicc-dummy.js +2 -2
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +10 -7
- package/dist/slicc-ui.js.map +2 -2
- package/package.json +3 -3
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.
|
|
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,19 +11353,18 @@ 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
|
+
if (status2.route === "tailnet") return A;
|
|
11356
11361
|
const name = status2.tailnet?.exitNodes?.find((node) => node.id === exit.node)?.name;
|
|
11357
11362
|
return b`<p data-exit="node">${name ? `Internet through the Tailscale exit node ${name}.` : "Internet through an automatic Tailscale exit node."}</p>`;
|
|
11358
11363
|
}
|
|
11359
11364
|
const device = status2.links?.devices.find((item2) => item2.id === exit.id);
|
|
11360
|
-
if (device?.state === "connected")
|
|
11361
|
-
return b`<p data-exit="device">Internet through the linked device ${device.name}.</p>`;
|
|
11362
|
-
}
|
|
11365
|
+
if (device?.state === "connected") return A;
|
|
11363
11366
|
const who = device ? `${device.name} is ${device.state}` : "The linked device isn\u2019t connected";
|
|
11364
|
-
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>`;
|
|
11365
11368
|
}
|
|
11366
11369
|
#exitPicker(port, status2) {
|
|
11367
11370
|
const tailnet = status2.tailnet;
|
|
@@ -11382,7 +11385,7 @@ var SliccNetwork = class extends ModelElement {
|
|
|
11382
11385
|
</sp-menu-group>` : A}
|
|
11383
11386
|
</sp-picker>
|
|
11384
11387
|
</div>
|
|
11385
|
-
${this.#exitLine(status2)}`;
|
|
11388
|
+
${this.#exitLine(port, status2)}`;
|
|
11386
11389
|
}
|
|
11387
11390
|
#exitAll(event2, port) {
|
|
11388
11391
|
const value = event2.target.value;
|