iobroker.alias-workbench 0.11.0 → 0.13.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/README.md CHANGED
@@ -187,8 +187,9 @@ Early. Usable, but not finished.
187
187
 
188
188
  - Works as an admin tab; the adapter itself runs no process (`mode: none`).
189
189
  The instance exists only to carry the settings.
190
- - Interface in German and English, 550 keys each; the settings page in
191
- eleven languages
190
+ - Interface in all eleven admin languages, 712 keys each — one dictionary at
191
+ `admin/i18n/`, shared by the tab and the settings page. An unknown language
192
+ falls back to English
192
193
  - 16 bundled templates: eleven Homematic, four Tasmota, one plain measuring point
193
194
  - **Missing:** "who uses this alias" — vis views, Alexa and Google names cannot
194
195
  be searched from here, so a rename warns you instead of pretending to be
@@ -323,17 +324,41 @@ nothing on purpose. Fifty bare `LEVEL` channels are not a device.
323
324
  When a template is rejected, the picker says why: *"1.LEVEL missing"*, not
324
325
  *"does not fit"*. A reason you cannot act on is not a reason.
325
326
 
326
- **About the role `value.power.consumption`.** Four templates (`messpunkt`,
327
- `tasmota-lampe`, `tasmota-mehrfach`, `tasmota-steckdose`) give the row
328
- `CONSUMPTION` the role `value.power.consumption`, which is struck through in
329
- the ioBroker [state roles list](https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/stateroles.md).
330
- It stays on purpose: `@iobroker/type-detector` 6.0.x recognises `CONSUMPTION`
331
- only with exactly this role (`typePatterns.js`, pattern `consumption`,
332
- `defaultRole: 'value.power.consumption'`). With `value.energy.consumed` the
333
- point would drop out of the detected device, and vis, Alexa and the device
334
- manager would no longer show any consumption. Each of the four rows carries
335
- this reason in a field `_rolle`. The role will change once the type-detector
336
- does.
327
+ **About the consumption role.** Four templates (`messpunkt`, `tasmota-lampe`,
328
+ `tasmota-mehrfach`, `tasmota-steckdose`) give the row `CONSUMPTION` the role
329
+ `value.energy.consumed`. That is the correct one: the unit is Wh, which is
330
+ **energy** and not power, so it belongs under `value.energy.*` rather than with
331
+ the watts in `value.power.*`. That is exactly why `value.power.consumption` is
332
+ struck through in the ioBroker
333
+ [state roles list](https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/stateroles.md).
334
+
335
+ Up to `@iobroker/type-detector` 6.0.2 there was no choice anyway: the pattern
336
+ `consumption` recognised `CONSUMPTION` only with the struck-through role, and a
337
+ point carrying the correct one dropped out of the detected device without a
338
+ word. Reported as
339
+ [issue 334](https://github.com/ioBroker/ioBroker.type-detector/issues/334),
340
+ fixed in PR 339, and since 6.0.3 the place accepts both
341
+ (`/^value\.(energy\.consumed|power\.consumption)$/`).
342
+
343
+ **Reading such an alias with an older detector loses the point.** What is
344
+ affected is not the workbench but every adapter that reads the alias — and each
345
+ brings its **own** detector version, some over npm, some baked into its
346
+ frontend where no `package.json` reveals it. Measured on a live system on
347
+ 2026-10-14:
348
+
349
+ | Reader | Version | accepts `value.energy.consumed`? |
350
+ |---|---|---|
351
+ | `iobroker.admin`, device manager | baked into a frontend asset | no — the bundle holds `value\.power\.consumption` only |
352
+ | `iobroker.devices` | baked into a frontend asset | no, likewise |
353
+ | `iobroker.matter` | 5.0.15 over npm | no, `/^value\.power\.consumption$/` |
354
+ | `@iobroker/mcp-server` | 6.0.1 over npm | no, same line |
355
+ | `iobroker.hm-rpc` | 4.6.4, top level | no — but it does not read aliases |
356
+
357
+ This was measured on the pattern itself rather than on a version number: in
358
+ both baked bundles `energy.consumed` appears nowhere. So the consumption is
359
+ missing there until the reading adapter catches up. Existing aliases with the
360
+ old role stay recognised everywhere, the expression still accepts them. Each of
361
+ the four rows carries the reason in a field `_rolle`.
337
362
 
338
363
  ### Role knowledge beside the rows
339
364
 
@@ -590,6 +615,27 @@ imported, and that all eleven language files carry the same keys.
590
615
 
591
616
  ## Changelog
592
617
 
618
+ ### 0.13.0 (2026-11-02)
619
+ * **The type detector is now 6.2.0, and that adds a device type: `tv`.** The workbench therefore offers 52 patterns instead of 51, with twenty places for a television — `POWER`, `KEY`, `VOLUME`, `INPUT`, `APP`, `ART_MODE` and the rest. 6.1.0 brought an ES module build along the way, which is what makes the shipped bundle smaller (66 KB instead of 70). The consumption role is unchanged from 6.0.3: both roles are recognised, the current one is suggested. Measured on 2026-11-02 over all patterns: 752 places instead of 732, and the role derivation is untouched — the same eight places take their role from the expression, the same nineteen have none.
620
+ * **The consumption point now carries the role it should: `value.energy.consumed`.** The unit is Wh, which is energy and not power, so it belongs under `value.energy.*` and not with the watts in `value.power.*` — which is why the ioBroker roles list strikes `value.power.consumption` through. Up to `@iobroker/type-detector` 6.0.2 there was no choice anyway: the pattern `consumption` matched the struck-through role alone, and a point carrying the correct one dropped out of the detected device without a word — the socket was still recognised, just without its consumption, and that is how it reached vis, Alexa and the device manager. Reported as [issue 334](https://github.com/ioBroker/ioBroker.type-detector/issues/334) with the finding, fixed in PR 339, released as 6.0.3 on 2026-10-14. The detector now accepts both roles, and the four shipped templates (`messpunkt`, `tasmota-lampe`, `tasmota-mehrfach`, `tasmota-steckdose`) write the correct one.
621
+ * **What that costs, said plainly — and who has caught up by now.** An alias is read not by the workbench but by every adapter that reads it, and each carries its own detector version — some over npm, some baked into its frontend where no `package.json` reveals it. One older than 6.0.3 accepts the struck-through role only. That is why the change was held back for three weeks and measured again on 2026-11-02 on the pattern itself rather than on a version number: the admin's **device manager** (from 8.3.6, 2026-10-29) and **iobroker.devices** (from 4.2.7, 2026-10-25) now carry the new role in their baked bundle. **iobroker.matter** is still at 1.3.1 from 2026-07-23 and therefore on type-detector 5.0.15 — but its main branch already requires `^6.0.1`, so its next release gets it by itself. Anyone using an older reader will find a consumption point newly built from one of the four templates missing there. Existing aliases are untouched: the expression still accepts the old role, so they stay recognised either way.
622
+
623
+ ### 0.12.0 (2026-10-14)
624
+ **Swapping the source**
625
+ * **Swapping now asks the same recognition as the tree.** The existing stages all started from the **old** source — path, remembered template, names, roles. Yet swapping asks the same question the workbench answers anyway when you click a device: which point **there** is the `ELECTRIC_POWER`? Now, before guessing, the draft of the **new** source is computed and mapped through its pattern slots — template first, otherwise the detector. That carries in **both** directions, which was the point: to a device that labels its points (Matter: `role: value.power`, `unit: W`) the detector answers; to one that labels nothing, the template does. Measured at `mqtt-client.0.SmartHome.PC_Jonas`: all ten points without `common.role`, type `mixed`, the type detector makes `info` of it — but the Tasmota template knows that `stat.POWER` is the status point and the power sits in `tele.SENSOR` under `ENERGY.Power`. Swapping from Matter back to MQTT previously found **0 of 7** points; now 6 of 7, with separate read and write sources.
626
+ * **And the formulas come along.** They belong to the source, not to the alias: `JSON.parse(val)?.ENERGY?.Power ?? null` describes how to get a power reading out of a Tasmota telemetry message. Left in place when swapping to Matter, the point sat silently at `null` — four readings empty with no error at all, and `SET` would have written the string from `val ? "ON" : "OFF"` onto a boolean. Each direction now brings its own: none towards Matter, the JSON formula again back to Tasmota.
627
+ * **A point no stage can find can be named by hand.** Until now the only choices were "remove" or leave it. The row now offers a list of every point on the new device, with role and unit beside it. What you pick there carries the mark "by hand" and the note that **formula, unit and value range stay as they are on the alias** — the workbench knows nothing about that point, so it changes nothing about it.
628
+ * **When the unit changes, the numbers sit beside it — nothing is decided for you.** Tasmota delivers `ENERGY.Total` in kWh, Matter `CONSUMPTION` in Wh: the same meter, factor 1000, invisible. Nothing is converted automatically, because the labelling itself is unreliable — Matter writes the unit `mA` on `CURRENT` and delivers amperes (0.926 at 245 W and 228 V). An automation that believed the label would have made 926 A of it. Instead the row states the finding ("on the alias A · new source: none"), shows what the alias displays today, and offers **two free fields**: unit and factor, both at the current state. The result recomputes as you type. Where the workbench knows something, a shortcut sits beside the field (`Wh`, `/ 1000`) — a suggestion from the labelling, checkable against the numbers above. Free fields, because fixed buttons fail where the target carries **no** unit at all: a JSON collector point has none, the unit sits in the field. This is only shown when the **new source** delivers something other than the old one — swapping between devices of the same kind shows nothing.
629
+ * **When swapping, the remembered template is checked against the new source.** An alias remembers which template it came from, and the workbench keeps applying it until you explicitly change it — exactly right for a like-for-like replacement. For a differently built device it was not, and the bad part was the silence: after swapping a Tasmota socket for a Matter one, the channel still read "Tasmota socket, forced, ✕ cmnd.POWER" — and the **formulas** from that same template stayed on the points. `JSON.parse(val)?.ENERGY?.Power ?? null` is meant for a telemetry JSON; Matter delivers a plain number, and the point sat at `null`. Four readings were empty with no error anywhere, and `SET` would have written the string from `val ? "ON" : "OFF"` onto a boolean. The dialog now checks the remembered template against the **new** device: if it still fits, nothing changes; if it does not, it says why, how many points carry formulas, and — if a different template fits the new source — which one. Plus a pre-ticked box that drops the remembering and the formulas along with it. **Nothing is decided automatically**: the formula belongs to the source, not to the alias, and on the way back to MQTT it is needed again — deleting it silently would be the same mistake as silently keeping it. `native.geraetetyp` and the whole of `common` are left untouched; the swap changes the source, not what the device is.
630
+ * **Source swapping now also asks the alias point itself.** Until now all three mapping stages started from the **old source** — its path, its template row, the name or role of the old state. That works while both devices are built alike and fails completely once they are not: moving an alias from a Tasmota socket to a Matter socket produced **0 out of 8** mappings, for two devices that do the same thing. Both reasons were on the source side, never on the target — `mqtt-client` keeps no roles, and five of the eight points read from **one** telemetry JSON. Yet the answer is already in the alias: `ELECTRIC_POWER` carries `role: value.power`, and the new device holds exactly one point of that name with that role. So before guessing, the **alias point** is asked. If **name and role** match and the point exists exactly once, that counts like a path hit and the row carries the grey mark "from alias"; if only the **role** matches, and it too exactly once, it is a suggestion marked "guessed". Two points of the same role cancel each other out instead of one being picked. In the measured case that is six out of eight, spread over **both** Matter endpoints; `TODAY` and `YESTERDAY` stay empty because the new device has no such thing.
631
+ * **If one point at the new device both reads and writes, it may do so.** The rule "the write target is never the read source" guards against a guessed status point (`stat.POWER` instead of `cmnd.POWER`). Where a single point can do both — `OnOffPlugInUnit-1.SET` on Matter, `1.STATE` on Homematic — it was too strict and reported "no write target found" at exactly the point meant for it. The exception applies only to the evidenced hit via the alias point, and only when both sides are writable; a status point such as `ACTUAL` still gets none.
632
+
633
+ **Tree**
634
+ * **Several branches can be selected as one device.** Some adapters spread one device across sibling branches: Matter stores a socket as a folder without data points of its own, holding two `device` nodes — the switch in one, the readings in the other. The folder was not selectable, and each endpoint on its own produced half a device: at the switch the detector recognised a socket and offered the five readings as "to be created", while the neighbouring branch already had them. **Ctrl-click** now adds a branch to the selection or takes it out; the selection moves to the common parent, and every branch involved is marked in the tree. The same sits in the **context menu**, for anyone without a keyboard, and in the header of the right-hand side as a button **"Add neighbouring branches (N)"** — where the adapter provides evidence, the tooltip says so (Matter writes the same node id to every endpoint). Point names are shortened where they are unambiguous: `OnOffPlugInUnit-1.SET` becomes `SET`. Not for Tasmota — there the branch carries meaning, and the templates address `stat.POWER` and `tele.SENSOR`. **Nothing is merged automatically**: many devices can sit side by side under one node, and only a person knows what counts as one device.
635
+ * **Right-click a node → "Export as mock device".** Everything below that node goes into a file: the objects and the values they carry right now. The point is not backup but rebuilding — from that file a device can be recreated elsewhere, so a template can be built for a device you do not own. What goes in is a positive list, not a filter: `native` is dropped entirely, and from `common` only `name`, `role`, `type`, `unit`, `read`, `write`, `min`, `max`, `def` and `states` are kept. `states` has to come along, otherwise the type detector does not recognise the slots with `statesDefined`. Paths are relative to the exported node, which is why the mock device matches the same templates somewhere else. Levels without an object of their own are recorded as such.
636
+ * **Before writing the file, the workbench shows what goes into it.** One row per entry with value, path, type, role and name — and a checkbox per value: untick what should not travel, and the object still stays. Values that look like an IP, a MAC or an identifier are highlighted. Above that stands what travels even without `native`: identifiers often sit **in the path and in the names too**, and leaving out `native` does not remove those. Measured on a HomeMatic central: twelve such places, although the file carries no `native` at all.
637
+ * **And read back in.** Right-click → "Import mock device …" takes such a file and builds a device from it again — **always under `0_userdata.0.wb-attrappe.<name>`, never at the original path.** That is not a rule but a way of building: a foreign export cannot overwrite a real device. The templates still match, because they check relative names (`stat.POWER`, `1.LEVEL`) and not the root. Beforehand a dialog shows every object that would appear, with a name to change; a file that does not fit is rejected with a reason. Measured: an HmIP wall thermostat, exported and imported as a mock device, is recognised there by the same template — same device type, the same eleven filled slots.
638
+
593
639
  ### 0.11.0 (2026-10-11)
594
640
  **Templates**
595
641
  * **Template notes are German and English.** The description, the recognition note and each row note are `{ "de", "en" }`. The tab shows the admin language, otherwise English, otherwise German. The name hint stays one search pattern (`licht|lampe|light|…`): it matches the device name, which does not follow the admin language.
@@ -726,19 +772,6 @@ All changes in detail, with cause and measurement: [docs/aenderungen-ausfuehrlic
726
772
  * If a write fails during the swap, **nothing** is deleted. The deletions used to run anyway, so an alias that was already half migrated lost points on top of it. Moving an alias has followed that rule for a long time
727
773
  * "All data points of the device" no longer moves the storage location. For a device with several outputs the workbench creates a folder with one channel per output. The button rebuilds the draft and passed on only the **finished target**; `setzeZiel` reads its last segment as the device name — with several outputs that segment is the output, and it ended up in the folder as well. Every press pushed the location one level deeper, and that is where it was written, too: three clicks produced four folders instead of one (`…Garten-Ventilinsel.POWER2.POWER2.POWER2.POWER2`). The button now passes folder and name separately, the way the output selector next to it has always done. A single-output device was never affected
728
774
 
729
- ### 0.9.9
730
- * The build source moved from `src/` to `src-admin/`. ioBroker reserves that name for frontend sources that are bundled into `admin/` and never reach the user, and the adapter checker skips such directories when it looks for missing dependencies. `@iobroker/type-detector` therefore stays in `devDependencies`, which is where it belongs: esbuild bakes it into `admin/detector.js` at build time and nothing loads it at runtime. Users receive the finished 71 KB file, not the 548 KB package (W5042)
731
- * The settings page now takes its translations from `admin/i18n/` — the dictionary ioBroker reads itself (`"i18n": true`) and that Weblate can work with. The eleven languages it already carried moved there unchanged; not a word was retranslated. The tab keeps its own dictionary, now at `admin/sprachen/`: 588 keys in German and English, with an unknown language falling back to English. Two dictionaries, two jobs — the name `i18n` is the one the adapter checker inspects, and it expects all eleven languages there (W5603, W5614, W5015)
732
- * The changelog entries for 0.9.7 and 0.9.8 are now complete in all eleven languages. Nine of them carried only a short summary — the English text for 0.9.7 ran to 3,000 characters with five headings and 22 items, the Russian one to 480 without any structure. A test now checks every entry for length, headings and item count against the English original (W1145)
733
- * Two developer-side additions, invisible in the adapter itself: `.vscode/settings.json` wires up the JSON schemas, so mistakes in `io-package.json` or `jsonConfig.json` show up while typing instead of in the adapter checker (S4036). And the GitHub Actions updates no longer run `monthly` — that would ask on the first of every month, at the same moment as everyone else; a cron schedule spreads the load while keeping the monthly rhythm (S8906)
734
- * The data type now follows the role. A pattern slot prescribes not only the role but also the type, and both sit in the same type-detector record — so picking a role sets the matching type as well. Where a slot allows several types nothing is set, and where it prescribes none any choice stays right. If the type does not fit the slot after all, the workbench says so instead of staying quiet: in the row ("expects number"), as a warning underneath, and in the pattern field, which now gives the reason — "✕ CONSUMPTION: type mixed instead of number" — rather than a bare "does not fit". Before, a state with the right role and the wrong type dropped out of the pattern silently, and the whole device was recognised as something lesser Where a role matches several slots that differ in type — the blind's travel direction sits on DIRECTION as a boolean and on DIRECTION_ENUM as a number — the workbench picks the slot whose type fits, and both forms count as right.
735
- * Saving a template no longer loses the write targets. Every actuator that keeps its own state writes to the same point it reads - a blind, a dimmer and a thermostat all use 1.LEVEL for both. Saving dropped the write path in exactly that case, and the resulting alias showed the position but could no longer be moved. Rows that only write, like the blind's STOP, disappeared altogether. With Tasmota it never showed, because there tele.STATE is read and cmnd.POWER is written. The device type in the template sheet was affected by a second slip: three patterns are named differently from their type (blinds/blind, mediaPlayer/media, levelSlider/slider), so a blind always claimed to have no type at all
736
-
737
- ### 0.9.8
738
- * The changelog only lists versions that actually exist on npm. The entries 0.9.1 to 0.9.6 were local intermediate steps and were never published; their content is now summarised under 0.9.7. Found by the repochecker (E2004, E1032)
739
- * The README no longer describes how to add the adapter by hand — in the official repository it is picked from the adapter list (E6013)
740
- * `dependabot.yml` gets a seven-day cooldown for npm packages: what appears today is proposed a week later. If a compromised release is pulled within that time, it never arrives here (E8915). And `@types/node` stays on its major version — the types must match the Node release the adapter runs on (E8917)
741
-
742
775
  Older entries: [CHANGELOG_OLD.md](CHANGELOG_OLD.md).
743
776
 
744
777
  ## License
@@ -191,6 +191,10 @@
191
191
  .tree .node.leer { opacity:.45; font-style:italic; }
192
192
  .tree .node.leer .kind { background:transparent; border:1px solid var(--line); }
193
193
  .tree .node.sel { background:var(--accent); color:var(--accent-ink); font-weight:600; }
194
+ /* Der gemeinsame Elternknoten einer Mehrfachauswahl: markiert, aber
195
+ schwaecher als die Zweige selbst. Er ist der Ort, auf dem der
196
+ Entwurf steht - angeklickt hat ihn niemand. */
197
+ .tree .node.selEltern { background:var(--accent-soft); font-weight:600; }
194
198
  .tree .node.sel .kind { background:rgba(255,255,255,.22); color:inherit; }
195
199
  /* Die Vorlagenliste benutzt dieselben Knotenzeilen, hat aber statt
196
200
  `kind`/`nam`/`cnt` ein Abzeichen, einen Namen und rechts die Kennung.
@@ -633,6 +637,19 @@
633
637
  .rat { font-family:var(--sans); font-size:8px; font-weight:700; letter-spacing:.05em;
634
638
  text-transform:uppercase; background:var(--accent-soft); color:var(--accent);
635
639
  padding:0 6px; border-radius:999px; margin-left:6px; white-space:nowrap; }
640
+ /* Name und Marke im Tauschdialog untereinander. Die Namensspalte ist
641
+ 120 Pixel breit; „ERKANNT" hinter `ELECTRIC_POWER` lief sonst in die
642
+ Pfade der Nachbarzeile (Ricardo, 13.10.2026). */
643
+ #swap-body .slot .zuname { display:flex; flex-direction:column;
644
+ align-items:flex-start; gap:3px; }
645
+ #swap-body .slot .zuname .rat,
646
+ #swap-body .slot .zuname .herk { margin-left:0; }
647
+ /* Herkunftsmarke am Quellentausch: dieselbe Form wie „vermutet", aber
648
+ grau statt farbig - sie warnt nicht, sie sagt nur, woher die
649
+ Zuordnung kommt (Stufe 4, ueber den Alias-Punkt). */
650
+ .herk { font-family:var(--sans); font-size:8px; font-weight:700; letter-spacing:.05em;
651
+ text-transform:uppercase; background:var(--surface-3); color:var(--ink-3);
652
+ padding:0 6px; border-radius:999px; margin-left:6px; white-space:nowrap; }
636
653
  .erow .nm3 .ratknopf { font-family:var(--sans); font-size:11px; cursor:pointer; margin-left:5px;
637
654
  color:var(--ink-3); padding:0 4px; border-radius:var(--r-sm); }
638
655
  .erow .nm3 .ratknopf:hover { background:var(--surface-3); color:var(--ink); }
@@ -1176,3 +1193,59 @@
1176
1193
  }
1177
1194
  .katalog-laedt .kl-kopf { font-weight:600; font-size:12.5px; color:var(--ink); }
1178
1195
  .katalog-laedt .kl-text { margin-top:3px; font-size:11.5px; color:var(--ink-3); }
1196
+
1197
+ /* Das Menue am Baum (Rechtsklick). Liegt am body, nicht in der Zeile:
1198
+ der Baum scrollt, und ein Kind der Zeile wuerde am Rand abgeschnitten. */
1199
+ .baummenue {
1200
+ position:fixed; z-index:200; min-width:190px;
1201
+ background:var(--surface); border:1px solid var(--line-strong);
1202
+ border-radius:var(--r); box-shadow:var(--shadow-hoch); padding:4px 0;
1203
+ }
1204
+ .baummenue .bm-zeile {
1205
+ padding:6px 13px; font-size:12.5px; color:var(--ink); cursor:pointer;
1206
+ white-space:nowrap;
1207
+ }
1208
+ .baummenue .bm-zeile:hover { background:var(--hover); color:var(--hover-ink); }
1209
+
1210
+ /* Die Vorschau vor dem Ausgeben einer Attrappe. */
1211
+ .mk-kopf { margin-bottom:10px; }
1212
+ .mk-kopf .mk-wurzel { font:12.5px var(--mono); color:var(--ink); word-break:break-all; }
1213
+ .mk-kopf .mk-zahlen { margin-top:3px; font-size:11.5px; color:var(--ink-3); }
1214
+ .mk-kopf .mk-ohne { margin-top:3px; font-size:11.5px; color:var(--ink-2); }
1215
+ .mk-warn {
1216
+ margin:0 0 10px; padding:7px 10px; border-radius:var(--r);
1217
+ background:var(--warn-soft); color:var(--warn); font-size:11.5px;
1218
+ }
1219
+ .mk-warn .mk-warn-kopf { font-weight:600; }
1220
+ .mk-warn .mk-warn-liste { margin:4px 0 0; padding-left:16px; }
1221
+ .mk-warn .mk-warn-liste li { font:11px var(--mono); word-break:break-all; }
1222
+ table.mk-tab { width:100%; border-collapse:collapse; font-size:12px; }
1223
+ table.mk-tab th {
1224
+ text-align:left; font-weight:600; font-size:11px; color:var(--ink-3);
1225
+ border-bottom:1px solid var(--line); padding:4px 7px; position:sticky; top:0;
1226
+ background:var(--surface);
1227
+ }
1228
+ table.mk-tab td { padding:3px 7px; border-bottom:1px solid var(--line); vertical-align:top; }
1229
+ table.mk-tab tr.mk-virt { color:var(--ink-3); }
1230
+ table.mk-tab tr.mk-aus .mk-wtext { text-decoration:line-through; color:var(--ink-3); }
1231
+ .mk-wert label { display:flex; gap:5px; align-items:baseline; cursor:pointer; }
1232
+ .mk-wtext { font:11.5px var(--mono); word-break:break-all; }
1233
+ .mk-wtext.auff { background:var(--warn-soft); color:var(--warn); border-radius:3px; padding:0 3px; }
1234
+ .mk-pfad { font:11.5px var(--mono); }
1235
+ .mk-name { color:var(--ink-2); }
1236
+ .mk-fehler {
1237
+ padding:8px 11px; border-radius:var(--r);
1238
+ background:var(--bad-soft); color:var(--bad); font-size:12px;
1239
+ }
1240
+ .mk-namenszeile { display:flex; gap:7px; align-items:center; margin:7px 0 3px; }
1241
+ .mk-namenszeile .mk-lbl { font-size:11.5px; color:var(--ink-3); }
1242
+ .mk-namenszeile input.tx { max-width:260px; }
1243
+ .mk-schon { color:var(--ink-3); font-size:11px; }
1244
+ /* Von welcher Zeile das Baummenue spricht. Bewusst anders als die
1245
+ Auswahl `.sel`: ein Rechtsklick waehlt nicht aus, und zwei gleich
1246
+ aussehende Zeilen waeren irrefuehrend. */
1247
+ .tree .node.menueziel {
1248
+ outline:2px solid var(--accent); outline-offset:-2px; border-radius:var(--r);
1249
+ }
1250
+ .mk-warn.mk-gross { background:var(--warn-soft); }
1251
+ .mk-mehr { margin-top:6px; font-size:11.5px; color:var(--ink-3); }