@things-factory/apptool-ui 10.1.277 → 10.1.279

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/package.json CHANGED
@@ -1,8 +1,22 @@
1
1
  {
2
2
  "name": "@things-factory/apptool-ui",
3
- "version": "10.1.277",
3
+ "version": "10.1.279",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
+ "files": [
7
+ "dist-client",
8
+ "dist-server",
9
+ "things-factory.config.js",
10
+ "translations",
11
+ "!**/*.map",
12
+ "!**/*.test.*",
13
+ "!**/*.spec.*",
14
+ "!**/test/**",
15
+ "!**/tests/**",
16
+ "!**/__tests__/**",
17
+ "!**/*.tsbuildinfo",
18
+ "!**/.DS_Store"
19
+ ],
6
20
  "things-factory": true,
7
21
  "author": "heartyoh <heartyoh@hatiolab.com>",
8
22
  "description": "User interface for app tool.",
@@ -33,8 +47,8 @@
33
47
  "@operato/shell": "^10.29.60",
34
48
  "@operato/styles": "^10.29.81",
35
49
  "@operato/utils": "^10.29.43",
36
- "@things-factory/apptool-base": "^10.1.277",
37
- "@things-factory/setting-base": "^10.1.277"
50
+ "@things-factory/apptool-base": "^10.1.279",
51
+ "@things-factory/setting-base": "^10.1.279"
38
52
  },
39
- "gitHead": "85f409e7ea43686a4cda52924247d9e7a6b0bfa7"
53
+ "gitHead": "666c08055c408b408fde961ad10da080941b147c"
40
54
  }
package/CHANGELOG.md DELETED
@@ -1,8 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
- and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
-
8
- <!-- ## [Unreleased] -->
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../client/index.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAA;AAC7B,OAAO,0BAA0B,CAAA;AACjC,OA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E,IAAI;gBACV,QAAQ,EAAE,IAAI,CAAA,kCAAkC;aACjD;YACD,QAAQ,EAAE,iBAAiB,CAAC,cAAc;SAC3C,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import './layout/app-toolbar'\nimport './layout/app-header-band'\nimport './layout/app-busybar'\nimport './layout/page-mdibar'\nimport './layout/page-toolbar'\nimport './mdibar-setting-let'\n\nimport { html } from 'lit'\n\nimport { store, clientSettingStore } from '@operato/shell'\nimport { appendViewpart, VIEWPART_POSITION, VIEWPART_LEVEL } from '@operato/layout'\nimport { isMobileDevice } from '@operato/utils'\n\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client'\n\nimport { resolveMdibarShow } from './mdibar-setting-state'\n\nexport { setHeaderScope, getHeaderScope, subscribeHeaderScope } from './layout/header-scope'\nexport type { HeaderScope } from './layout/header-band-model'\n\nexport async function setupAppToolPart(\n options: {\n /**\n * Which header the app gets (ADR-0060 decision 4).\n *\n * `'toolbar'` is the shell's own bar. `'band'` is the one row plant, twin and figure each wrote\n * for themselves; it reads the same tool registry, so lite-menu's hamburger and more-ui's\n * morenda button reach it without either package knowing which one is drawing. `false` leaves\n * the header to the app - which is what the three did, and what this option replaces.\n */\n header?: 'toolbar' | 'band' | false\n /** The app's own word, drawn after `operato`. The band owns the shape (ruling ① of the addendum). */\n product?: string\n /** The older spelling of `header`. `header` wins when both are given. */\n toolbar?: boolean\n busybar?: boolean\n /** true = 등록만 하고 설정을 따른다. { default: true } = 저장된 값이 없을 때 켜진 상태로 시작한다. */\n mdibar?: boolean | { default: boolean }\n /** The page toolbar is where the page title bar is drawn. On by default (ADR-0060 decision 9). */\n pageToolbar?: boolean\n } = {}\n) {\n const { header, product, toolbar = true, busybar = true, mdibar = true, pageToolbar = true } = options\n\n /* `toolbar: false` meant \"no header at all\", which is how the three apps turned it off. */\n const which = header !== undefined ? header : toolbar ? 'toolbar' : false\n\n if (which === 'toolbar') {\n appendViewpart({\n name: 'apptoolbar',\n viewpart: {\n show: true,\n template: html` <app-toolbar></app-toolbar> `\n },\n position: VIEWPART_POSITION.HEADERBAR\n })\n }\n\n if (which === 'band') {\n appendViewpart({\n name: 'apptoolbar',\n viewpart: {\n show: true,\n /* TOPMOST: the band replaces the toolbar rather than sitting under it, as the three did. */\n level: VIEWPART_LEVEL.TOPMOST,\n template: html` <app-header-band .product=${product}></app-header-band> `\n },\n position: VIEWPART_POSITION.HEADERBAR\n })\n }\n\n if (busybar) {\n appendViewpart({\n name: 'appbusybar',\n viewpart: {\n show: true,\n template: html` <app-busybar></app-busybar> `\n },\n position: VIEWPART_POSITION.HEADERBAR\n })\n }\n\n if (mdibar && !isMobileDevice()) {\n /*\n * 저장된 값이 없으면 **앱이 정한 기본값**을 쓴다.\n *\n * 전에는 저장된 값만 봤고, 없으면 꺼진 것으로 다뤘다. 그래서 처음 들어온 사용자는 MDI 를 쓸 수\n * 있다는 것 자체를 모른다 — 설정을 뒤져 찾아야 켤 수 있었다.\n *\n * `mdibar` 에 true 를 주면 예전과 같고, `{ default: true }` 를 주면 처음부터 켜진다. 사용자가 한\n * 번 정하면 그 값이 이긴다.\n */\n const stored = ((await clientSettingStore.get('mdibar'))?.value || {}).show\n const show = resolveMdibarShow(stored, mdibar)\n\n appendViewpart({\n name: 'appmdibar',\n viewpart: {\n show,\n level: VIEWPART_LEVEL.TOPMOST,\n template: html` <page-mdibar></page-mdibar> `\n },\n position: VIEWPART_POSITION.PAGE_HEADERBAR\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 21,\n template: html` <mdibar-setting-let></mdibar-setting-let> `\n }\n })\n }\n\n /*\n * On by default: it is where the page title bar lives. Apps that left it off had no screen title at\n * all (operato-twin's framework screens), or showed it in the app bar where search replaced it.\n */\n if (pageToolbar) appendViewpart({\n name: 'page-toolbar',\n viewpart: {\n show: true,\n template: html` <page-toolbar> </page-toolbar> `\n },\n position: VIEWPART_POSITION.PAGE_HEADERBAR\n })\n}\n"]}
@@ -1 +0,0 @@
1
- {"version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I,IAAI,CAAC,SAAS,EAAE,CAAC;oBACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;gBAClB,CAAC;gBAED,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;YACrB,CAAC,EAAE,GAAG,CAAC,CAAA;QACT,CAAC;IAEH,CAAC;;AAlDgB;IAAhB,KAAK,EAAE;8BAAgB,OAAO;wCAAA;AACd;IAAhB,KAAK,EAAE;;6CAA4B;AACnB;IAAhB,KAAK,EAAE;;2CAAsB;AArB1B,UAAU;IADf,aAAa,CAAC,aAAa,CAAC;GACvB,UAAU,CAsEf","sourcesContent":["import '@material/web/progress/linear-progress.js'\n\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { store } from '@operato/shell'\n\n@customElement('app-busybar')\nclass AppBusyBar extends LitElement {\n static styles = [\n css`\n :host {\n display: block;\n position: relative;\n\n --md-linear-progress-track-color: var(--md-sys-color-on-primary);\n }\n\n md-linear-progress {\n position: absolute;\n bottom: 0;\n width: 100%;\n overflow: hidden;\n }\n `\n ]\n\n @state() private busy?: Boolean\n @state() private lastState?: boolean\n @state() private timeout?: any\n\n render() {\n return this.busy ? html`<md-linear-progress indeterminate></md-linear-progress>` : html``\n }\n\n private _unsubscribe?: () => void\n\n\n connectedCallback() {\n\n super.connectedCallback()\n\n this._applyState()\n\n this._unsubscribe = store.subscribe(() => this._applyState())\n\n }\n\n\n disconnectedCallback() {\n\n super.disconnectedCallback()\n\n this._unsubscribe?.()\n\n }\n\n\n private _applyState() {\n\n const __state__ = store.getState() as any\nif (!__state__.busy.busy) {\n this.busy = false\n }\n\n this.lastState = __state__.busy.busy\n\n if (!this.timeout) {\n this.timeout = setTimeout(() => {\n if (this.lastState) {\n this.busy = true\n }\n\n this.timeout = null\n }, 500)\n }\n\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-header-band.js","sourceRoot":"","sources":["../../client/layout/app-header-band.ts"],"names":[],"mappings":";AAAA,O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AE,eAAe,EAAE,CAAC;iBACjE,GAAG,EAAE,CAAC,aAAa,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;;qBAGnD,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,oBAAoB;YACvD,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA,uBAAuB,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO;;;KAGlE,CAAA;IACH,CAAC;;AAxM2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAAiB;AAE3B;IAAhB,KAAK,EAAE;;4CAA8B;AACrB;IAAhB,KAAK,EAAE;;mDAAsD;AAC7C;IAAhB,KAAK,EAAE;;6CAAmB;AACV;IAAhB,KAAK,EAAE;;4CAA4B;AA9VzB,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CAkiBzB","sourcesContent":["import '@material/web/icon/icon.js'\nimport './app-user-menu'\n\nimport { css, html, LitElement, nothing, type TemplateResult } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\n\nimport { i18next } from '@operato/i18n'\nimport { toggleOverlay, updateViewpart } from '@operato/layout'\nimport { RouteController, store } from '@operato/shell'\nimport { MotionStyles, replayMotion } from '@operato/styles'\n\nimport {\n menuButtonShown,\n scopeName,\n scopeOptions,\n scopeShape,\n SLOT_ORDER,\n toolsBySlot,\n unreadLabel,\n wordmark,\n type AppTool,\n type HeaderScope\n} from './header-band-model'\nimport { getHeaderScope, subscribeHeaderScope } from './header-scope'\n\n/**\n * The top header, one row — the shared copy of what plant, twin and figure each wrote.\n *\n * ADR-0060 decision 4 and its 2026-09-18 addendum. Three apps turned the app toolbar off and wrote\n * their own row, 1,174 lines between them, and the three rows disagreed on the button border, the\n * ask box radius, the icon set, where the unread count sits and which colour tokens to reach for.\n * Two defects came out of that: twin's row had no way into the menu when the rail hid itself, and\n * plant's ask box lost the last Korean syllable because it had not learned the guard twin already\n * wrote. This is one row, so what one app learns is what every app has.\n *\n * ── What the band gives, and what stays the app's ─────────────────────────\n * It draws the menu button (while the rail is hidden), the product name, the scope control, the\n * notification bell and, at the very end, the signed-in person's avatar with their own menu\n * (`app-user-menu`). `CENTER` and `REAR` are the app's own: plant's ask box, twin's time scrubber\n * and focus chip, figure's dock button. The app puts them there through the registry every module\n * already uses.\n *\n * ── One registry, two renderers ───────────────────────────────────────────\n * This reads `store.getState().apptool.tools`, the same list `app-toolbar` reads, and splits it by\n * `TOOL_POSITION`. An app chooses which of the two draws it (`setupAppToolPart({ header })`). A\n * second registry would make lite-menu's hamburger and more-ui's morenda button pick a side.\n */\n@customElement('app-header-band')\nexport class AppHeaderBand extends LitElement {\n static styles = [\n MotionStyles,\n css`\n :host {\n display: block;\n /* The band folds by its own width, not the window's - see the narrow rules at the end. */\n container-type: inline-size;\n }\n\n .band {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 7px 14px;\n box-sizing: border-box;\n background-color: var(\n --header-band-surface,\n var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface))\n );\n border-bottom: 1px solid var(--md-sys-color-outline-variant);\n }\n\n /* The product name, not the screen name — the screen names itself in the page title bar. */\n .wordmark {\n display: inline-flex;\n align-items: baseline;\n gap: 5px;\n white-space: nowrap;\n font-size: 13px;\n letter-spacing: 0.01em;\n color: var(--md-sys-color-on-surface-variant);\n }\n\n .wordmark b {\n font-size: 14px;\n font-weight: 700;\n color: var(--md-sys-color-on-surface);\n }\n\n /* The gap that pushes what follows to the right end. */\n .grow {\n flex: 1;\n }\n\n /*\n * One pill shape for everything that can be pressed. twin and figure already agreed on 28px\n * and a 7px radius; plant drew a borderless 8px one. A 1px difference in radius is not worth\n * arguing about, but a button with an edge and a button without one are two different things\n * on one row.\n */\n .ctl {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n height: 30px;\n min-width: 30px;\n padding: 0 8px;\n box-sizing: border-box;\n /*\n * No plate and no edge (2026-11-11, the user: 「박스들이 너무 많아 보이는 느낌이 들기도 하고」): a row of boxed\n * icons read heavier than the words beside it. What can be pressed shows itself on hover - a soft round tint -\n * and the keyboard's ring stays.\n */\n border: 0;\n border-radius: 999px;\n background-color: transparent;\n transition: background-color 120ms ease;\n color: var(--md-sys-color-on-surface);\n font: inherit;\n font-size: 12px;\n cursor: pointer;\n }\n\n .ctl:hover {\n background-color: var(--header-band-control-hover, color-mix(in srgb, var(--md-sys-color-on-surface) 7%, transparent));\n color: var(--md-sys-color-primary);\n }\n\n .ctl:focus-visible {\n outline: 2px solid var(--md-sys-color-primary);\n outline-offset: 2px;\n }\n\n /* The scope select gives up its own outline (below), so the pill it sits in takes the same ring. */\n .scope:has(select:focus-visible) {\n outline: 2px solid var(--md-sys-color-primary);\n outline-offset: 2px;\n }\n\n /*\n * The select draws no arrow of its own — this control already has one beside it.\n *\n * A native select renders its own chevron, so leaving the default appearance puts two\n * arrows next to each other and the person reads them as two different controls. Measured\n * on :4000 at the scope picker: select at x=129 w=74 with its own arrow, md-icon at x=209.\n *\n * Reported twice. The first time the defect was in the old domain switch; the band is a new\n * control that made the same pairing again, so page-frames.test.ts counts the pairing now\n * rather than this one screen.\n */\n .scope select {\n appearance: none;\n -webkit-appearance: none;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n font-weight: 600;\n outline: none;\n }\n\n /* One scope draws its name, with nothing to press. */\n .scope-name {\n white-space: nowrap;\n font-size: 12px;\n font-weight: 600;\n color: var(--md-sys-color-on-surface);\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /*\n * The scope is the one thing on the row that may run long (\"Miratek 군산 2공장\"), so it is the\n * one that gives way: it shortens with an ellipsis and keeps its full name in the title.\n */\n .scope {\n min-width: 0;\n max-width: 100%;\n }\n\n .scope select {\n min-width: 0;\n max-width: 100%;\n text-overflow: ellipsis;\n }\n\n /*\n * Outlined and quiet, as the rail draws its icons. A theme fills md-icon ('FILL' 1) for the app's own screens;\n * on this row a filled glyph at full ink read heavier than every word beside it (user, 2026-09-25).\n */\n md-icon {\n font-size: 18px;\n --md-icon-size: 18px;\n font-variation-settings: 'FILL' 0;\n color: var(--md-sys-color-on-surface-variant);\n }\n\n .ctl:hover md-icon,\n .slot > md-icon:hover {\n color: var(--md-sys-color-primary);\n }\n\n /*\n * The count sits on the icon's top right, as a badge does - it belongs to the bell.\n *\n * Hung off the button's corner (twin, -4px) it landed on the button's own border; set beside the icon as a\n * pill of its own (2026-09) it stood apart from the bell (2026-11-11, the user: 「이 뱃지는 왜 이렇게 아이콘으로\n * 부터 멀리 떨어져있지」). Placed against the icon, inside the button, it touches neither: a ring of the button's\n * band's surface keeps it apart from the glyph.\n */\n .icon-with-count {\n position: relative;\n display: inline-flex;\n }\n\n .count {\n position: absolute;\n top: -6px;\n left: 10px;\n min-width: 14px;\n height: 14px;\n padding: 0 3px;\n box-sizing: border-box;\n border-radius: 7px;\n box-shadow: 0 0 0 1.5px var(--header-band-surface, var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface)));\n background-color: var(--header-band-count-background, var(--md-sys-color-error));\n color: var(--header-band-count-color, var(--md-sys-color-on-error));\n font-size: 9.5px;\n font-weight: 700;\n line-height: 14px;\n text-align: center;\n }\n\n .slot {\n display: inline-flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n }\n\n /*\n * An icon alone is a 32px square with nothing around the glyph, and the icons at the end of the row stand 4px\n * apart, slot or no slot. Bare (no box) the buttons' padding and the 10px gaps read as loose, uneven holes -\n * 26px of nothing between two 18px glyphs (2026-11-11, the user: 「간격은 왜이래 ?」).\n */\n /*\n * The scope picker keeps its box: a field one opens to change reads as a field. The trouble was boxes on every\n * icon, not the box itself (2026-11-11, the user: 「회사명은 박스를 치는 것이 나은 것 같다. 박스가 남발되는 것이\n * 문제이지 박스 자체가 문제는 아닌거야」).\n */\n .ctl.scope {\n border: 1px solid var(--md-sys-color-outline-variant);\n border-radius: 7px;\n background-color: var(--header-band-control-surface, var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface)));\n }\n\n .ctl.scope:hover {\n border-color: var(--md-sys-color-primary);\n background-color: var(--header-band-control-surface, var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface)));\n }\n\n .ctl.icon {\n width: 32px;\n min-width: 32px;\n height: 32px;\n padding: 0;\n }\n\n .slot.fixed {\n gap: 4px;\n }\n\n .slot.fixed + .slot.fixed {\n margin-left: -6px;\n }\n\n /* the avatar is a 28px disc beside 32px squares - 2px more keeps the centres evenly spaced */\n .slot.fixed > app-user-menu {\n margin-left: 2px;\n }\n\n /*\n * Slots that hold only pressable pills never shrink. A pill has a 28px floor, and a slot squeezed\n * below it clips the button - measured on twin at 375px (2026-09-24): the menu slot at 24px\n * holding a 28px button, the dock button pressed to 19px. What may shrink is the scope, which\n * can shorten, and the app's centre, which is the app's to fold.\n */\n .slot.fixed {\n flex: none;\n }\n\n .slot.scope-slot {\n flex: 0 1 auto;\n }\n\n /*\n * The app's centre gives way before the scope. Where you are matters more than the rest of an\n * ask box's placeholder: at 375px on plant, sharing the shrink evenly cut 「MIRATEK」 to 「MIRAT」.\n */\n .slot.center {\n flex: 0 10 auto;\n }\n\n /*\n * A tool arrives from the registry as whatever it was written for.\n *\n * lite-menu's hamburger and more-ui's morenda button are a bare md-icon apiece, sized and\n * spaced by the coloured app toolbar's own rules. Drawn here they came out as 18x18 marks with\n * cursor auto next to this row's 28px pill buttons - measured on warehouse (:3500,\n * 2026-09-18): they did not look like something you could press.\n *\n * Their templates render inside this shadow root, so the band can give them its own shape.\n * The selector is a direct child of a slot, which is a tool; the band's own buttons keep their\n * icons inside a .ctl and are not touched.\n */\n .slot > md-icon,\n .slot > button:not(.ctl),\n .slot > a {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n height: 28px;\n min-width: 28px;\n padding: 0 8px;\n box-sizing: border-box;\n /*\n * No plate and no edge (2026-11-11, the user: 「박스들이 너무 많아 보이는 느낌이 들기도 하고」): a row of boxed\n * icons read heavier than the words beside it. What can be pressed shows itself on hover - a soft round tint -\n * and the keyboard's ring stays.\n */\n border: 0;\n border-radius: 999px;\n background-color: transparent;\n transition: background-color 120ms ease;\n color: var(--md-sys-color-on-surface);\n text-decoration: none;\n cursor: pointer;\n }\n\n /*\n * 글꼴은 **md-icon 말고 글자를 내는 것에만** 준다.\n *\n * font: inherit 을 셋 다에 주었더니 md-icon 의 글꼴까지 지워져서, 아이콘이 아니라 이름이\n * 글자로 떴다 — 머리줄에 「forum」이 그대로 보였다(2026-09-22 화면에서 확인). md-icon 은\n * 합자로 그림을 내므로 자기 글꼴을 잃으면 그냥 낱말이다.\n */\n .slot > button:not(.ctl),\n .slot > a {\n font: inherit;\n font-size: 12px;\n }\n\n .slot > md-icon:hover,\n .slot > button:not(.ctl):hover,\n .slot > a:hover {\n background-color: var(--header-band-control-hover, color-mix(in srgb, var(--md-sys-color-on-surface) 7%, transparent));\n color: var(--md-sys-color-primary);\n }\n\n .slot > md-icon:focus-visible,\n .slot > button:not(.ctl):focus-visible,\n .slot > a:focus-visible {\n outline: 2px solid var(--md-sys-color-primary);\n outline-offset: 2px;\n }\n\n /*\n * A narrow band - a phone held upright, or a window with the rail open beside it.\n *\n * What stays is what the person needs to act here: the way into the menu, where they are, and\n * the app's own tools. The product name goes first - the person knows which app they opened,\n * and at 375px it took 70px the scope needed (twin measured 406px wanted against 375 given).\n */\n @container (max-width: 599px) {\n .band {\n gap: 6px;\n padding: 7px 8px;\n }\n\n .slot {\n gap: 6px;\n }\n\n .wordmark {\n display: none;\n }\n }\n `\n ]\n\n /** The app's one word. The band draws `operato` in front of it. */\n @property({ type: String }) product?: string\n\n @state() private tools: AppTool[] = []\n @state() private menuPartShow: boolean | undefined = undefined\n @state() private unread = 0\n @state() private scope?: HeaderScope\n\n /* The active page's own `context` - read for `widebleed`/`fullbleed`, see `menuButtonShown`. */\n private _routeCtrl = new RouteController(this)\n\n /* Whether the *previous* render's page cleared the rail itself, and what the menu part's\n * `show`/`hovering` were the moment it did - see `syncRailOverride`. */\n private _railWasHiddenByPage = false\n private _priorMenuShow: unknown = undefined\n private _priorMenuHovering: unknown = undefined\n\n private unsubscribeStore?: () => void\n private unsubscribeScope?: () => void\n\n connectedCallback() {\n super.connectedCallback()\n\n const read = () => {\n const state = store.getState() as any\n this.tools = state.apptool?.tools || []\n this.menuPartShow = state.layout?.viewparts?.['ox-menu-part']?.show\n this.unread = state.notification?.badge || 0\n }\n\n read()\n this.unsubscribeStore = store.subscribe(read)\n this.scope = getHeaderScope()\n this.unsubscribeScope = subscribeHeaderScope(() => (this.scope = getHeaderScope()))\n }\n\n disconnectedCallback() {\n this.unsubscribeStore?.()\n this.unsubscribeScope?.()\n super.disconnectedCallback()\n }\n\n render(): TemplateResult {\n const [frontEnd, front, center, rear, rearEnd] = SLOT_ORDER.map(slot => toolsBySlot(this.tools)[slot])\n const mark = wordmark(this.product)\n const context = (this._routeCtrl.context || {}) as { widebleed?: boolean; fullbleed?: boolean }\n const railHiddenByPage = !!(context.widebleed || context.fullbleed)\n this.syncRailOverride(railHiddenByPage)\n\n return html`\n <div class=\"band\">\n <span class=\"slot fixed\">\n ${menuButtonShown(this.menuPartShow, frontEnd, railHiddenByPage) ? this.renderMenuButton() : nothing}\n ${frontEnd.map(tool => tool.template)}\n </span>\n\n <span class=\"slot scope-slot\">\n ${mark ? html`<span class=\"wordmark\"><b>${mark.lead}</b>${mark.name}</span>` : nothing} ${this.renderScope()}\n ${front.map(tool => tool.template)}\n </span>\n\n <span class=\"grow\"></span>\n <span class=\"slot center\">${center.map(tool => tool.template)}</span>\n <span class=\"grow\"></span>\n\n <span class=\"slot fixed\">${rear.map(tool => tool.template)}</span>\n <span class=\"slot fixed\">\n ${rearEnd.map(tool => tool.template)} ${this.renderBell()}\n <app-user-menu></app-user-menu>\n </span>\n </div>\n `\n }\n\n /**\n * Keeps the menu part's forced-open `hovering` from outliving the page that needed it.\n *\n * `renderMenuButton` opens the rail with `{ hovering: 'edge' }` so `ox-nav-bar` will draw it\n * despite its own `fullbleed`. `UPDATE_VIEWPART` merges that into the viewpart's stored config\n * (`@operato/layout` `reducers/layout.ts`), and closing the overlay only ever sets `show: false`\n * (`initializer.ts`'s `historyHandler`) - `hovering` has no path back down on its own. Left alone,\n * one open on a widebleed page would turn every later page's rail into a drawer, since\n * `ox-menu-part`'s own drawer/rail choice reads that same stored `hovering`.\n *\n * So this remembers what `hovering` was the moment a page first clears the rail itself, and puts\n * it back - closed - the moment such a page is left. Reached from `render()`, since that is where\n * the current page's `widebleed`/`fullbleed` is already being read; the store write only fires on\n * the two edges (entering, leaving), not on every render.\n */\n private syncRailOverride(railHiddenByPage: boolean) {\n if (railHiddenByPage === this._railWasHiddenByPage) return\n\n if (railHiddenByPage) {\n /* Entering such a page - remember show/hovering exactly, so leaving can put them back\n * untouched. A desktop rail's resting state is usually `show: true, hovering: undefined`; a\n * mobile or already-hovering rail's is not - restoring a hardcoded `show: false` here once\n * closed every rail everywhere it was normally pinned open (board's board-list, 2026-09-22). */\n const viewpart = (store.getState() as any).layout?.viewparts?.['ox-menu-part']\n this._priorMenuShow = viewpart?.show\n this._priorMenuHovering = viewpart?.hovering\n } else {\n /* Leaving it - hand show/hovering back exactly as found, whether that was open or closed. */\n updateViewpart('ox-menu-part', { show: this._priorMenuShow, hovering: this._priorMenuHovering })\n }\n\n this._railWasHiddenByPage = railHiddenByPage\n }\n\n /**\n * The way into the menu while the rail is hidden.\n *\n * lite-menu registers its own hamburger in the app toolbar, which an app running this band has\n * turned off; if it did register one, `menuButtonShown` sees it and this is not drawn. The rail\n * goes away on a mobile device in portrait, when the app asks for `hovering`, or when the page\n * itself clears the rail with `widebleed`/`fullbleed`.\n *\n * `hovering: 'edge'` has to ride along on every open, not just the page-driven case: `ox-nav-bar`\n * only draws a viewpart while its own `fullbleed` is set if that viewpart's `hovering` is truthy\n * (`!this.fullbleed || viewpart.hovering`) - on a widebleed page the rail was registered with\n * `hovering` unset, so opening it with `{ backdrop: true }` alone toggled `show` on a viewpart\n * `ox-nav-bar` was still refusing to render at all (board's viewer, 2026-09-22).\n */\n private renderMenuButton(): TemplateResult {\n return html`\n <button\n class=\"ctl icon\"\n title=${i18next.t('label.menu', { defaultValue: 'menu' })}\n @click=${() => toggleOverlay('ox-menu-part', { backdrop: true, hovering: 'edge' })}\n >\n <md-icon>view_headline</md-icon>\n </button>\n `\n }\n\n /** What the app is showing. The list and the move are the app's; the shape is the band's. */\n private renderScope() {\n const scope = this.scope\n\n switch (scopeShape(scope)) {\n case 'none':\n return nothing\n\n case 'name':\n return html`<span class=\"scope-name\" title=${`${scope!.label}: ${scopeName(scope)}`}>${scopeName(scope)}</span>`\n\n case 'picker':\n return html`\n <span class=\"ctl scope\" title=${scope!.label}>\n <select\n aria-label=${scope!.label}\n @change=${async (event: Event) => {\n const select = event.target as HTMLSelectElement\n try { await scope!.onSelect?.(select.value) }\n finally { select.value = this.scope?.selectedId || '' }\n }}\n >\n ${scopeOptions(scope).map(\n option => html`<option value=${option.id} ?selected=${option.selected}>${option.label}</option>`\n )}\n </select>\n <md-icon>expand_more</md-icon>\n </span>\n `\n }\n }\n\n /**\n * Notifications arrive while you are somewhere else, so their count cannot live in a page.\n *\n * It opens the `notification` viewpart every sibling app registers. plant pressed this for a\n * while with nothing behind it, because the app had drawn the count over a door it had never\n * registered.\n */\n /* The unread count seen last - none until it was first read, so opening the app does not ring the bell. */\n private unreadSeen?: number\n\n /** A notice came: the bell sways once and its count pops (the suite's MotionStyles) - only when the count grows. */\n protected updated(changed: Map<string, unknown>) {\n if (!changed.has('unread')) return\n if (this.unreadSeen !== undefined && this.unread > this.unreadSeen) {\n replayMotion(this.renderRoot.querySelector('.bell md-icon'), 'ox-sway')\n replayMotion(this.renderRoot.querySelector('.bell .count'), 'ox-pop')\n }\n this.unreadSeen = this.unread\n }\n\n private renderBell(): TemplateResult {\n const count = unreadLabel(this.unread)\n\n return html`\n <button\n class=\"ctl icon bell\"\n title=${i18next.t('label.notification', { defaultValue: 'notifications' })}\n @click=${() => toggleOverlay('notification', { backdrop: true })}\n >\n <span class=\"icon-with-count\">\n <md-icon>${count ? 'notifications' : 'notifications_none'}</md-icon>\n ${count ? html`<span class=\"count\">${count}</span>` : nothing}\n </span>\n </button>\n `\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-toolbar.js","sourceRoot":"","sources":["../../client/layout/app-toolbar.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAGhD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAAnC;;QAkDW,WAAM,GAAqD,EAAE,CAAA;IAsFxE,CAAC;aAvIQ,WAAM,GAAG;QACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6CF;KACF,AA/CY,CA+CZ;IAOD,MAAM;QACJ,IAAI,KAAK,GAAG,IAAI,CAAC,MAAM,IAAK,EAAuD,CAAA;QAEnF,IAAI,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,aAAa,CAAC,SAAS,CAAC,CAAA;QAClF,IAAI,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,aAAa,CAAC,KAAK,CAAC,CAAA;QAC3E,IAAI,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC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CAAC,UAAU,CAAC;8BAAU,cAAc;0CAAA;AArDtC,UAAU;IADf,aAAa,CAAC,aAAa,CAAC;GACvB,UAAU,CAwIf","sourcesContent":["import '@material/web/icon/icon.js'\nimport './app-user-menu'\n\nimport { css, html, LitElement, TemplateResult } from 'lit'\nimport { customElement, query, state } from 'lit/decorators.js'\nimport { closeOverlay, TOOL_POSITION, topOverlay } from '@operato/layout'\nimport { navigate, store } from '@operato/shell'\n\n@customElement('app-toolbar')\nclass AppToolbar extends LitElement {\n static styles = [\n css`\n :host {\n display: flex;\n height: var(--header-bar-height, 42px);\n color: var(--header-bar-color);\n background-color: var(--header-bar-background-color, white);\n justify-content: space-between;\n align-items: center;\n padding: 0 5px;\n gap: 10px;\n\n text-transform: capitalize;\n }\n\n [center] {\n flex: 1;\n flex-wrap: nowrap;\n display: flex;\n align-items: center;\n overflow: hidden;\n }\n\n [center] > * {\n margin: auto;\n }\n\n :host(.vline) {\n display: block;\n flex: none;\n border-left: 1px solid rgba(255, 255, 255, 0.07);\n border-right: 1px solid rgba(0, 0, 0, 0.1);\n width: 0px;\n height: 18px;\n margin: 0 4px;\n }\n\n :host(label) {\n margin-right: 5px;\n color: #fff;\n font-size: 20px;\n }\n\n span.space {\n width: 10px;\n }\n `\n ]\n\n @state() _tools: { position: string; template: TemplateResult }[] = []\n @state() _route: any\n\n @query('[center]') center!: HTMLDivElement\n\n render() {\n var tools = this._tools || ([] as { position: string; template: TemplateResult }[])\n\n var frontEndTools = tools.filter(tool => tool.position == TOOL_POSITION.FRONT_END)\n var frontTools = tools.filter(tool => tool.position == TOOL_POSITION.FRONT)\n var centerTools = tools.filter(tool => tool.position == TOOL_POSITION.CENTER)\n var rearTools = tools.filter(tool => tool.position == TOOL_POSITION.REAR)\n var rearEndTools = tools.filter(tool => tool.position == TOOL_POSITION.REAR_END)\n\n /*\n * 현재 OVERLAY가 있으면, 뒤로가기 버튼이 보이고, 아니면, HOME 버튼이 보인다.\n * 열려 있는 오버레이를 본다 - 기록의 상태는 오버레이가 닫힌 뒤에도 그 기록에 남는다.\n */\n var overlay = topOverlay()\n\n return html`\n ${overlay\n ? html` <md-icon @click=${e => closeOverlay(overlay!)}>arrow_back</md-icon> `\n : frontEndTools.length == 0\n ? html` <md-icon @click=${e => this.navigateToHome()}>home</md-icon> `\n : frontEndTools.map(tool => html` ${tool.template} `)}\n ${frontTools.map(tool => html` ${tool.template} `)}\n\n <div center @mousewheel=${this.onWheelEvent}>${centerTools.map(tool => html` ${tool.template} `)}</div>\n\n ${rearTools.map(tool => html` ${tool.template} `)} ${rearEndTools.map(tool => html` ${tool.template} `)}\n\n <!-- The person's avatar ends the bar, as it ends the band (app-user-menu). -->\n <app-user-menu></app-user-menu>\n `\n }\n\n private _unsubscribe?: () => void\n\n\n connectedCallback() {\n\n super.connectedCallback()\n\n this._applyState()\n\n this._unsubscribe = store.subscribe(() => this._applyState())\n\n }\n\n\n disconnectedCallback() {\n\n super.disconnectedCallback()\n\n this._unsubscribe?.()\n\n }\n\n\n private _applyState() {\n\n const __state__ = store.getState() as any\n/* page의 변화를 감지하기 위해서 route의 변화를 체크한다. */\n this._route = __state__.route\n\n this._tools = __state__.apptool.tools\n\n }\n\n navigateToHome() {\n var base = document.querySelector('base')\n if (base) {\n navigate(base.getAttribute('href') || '')\n } else {\n navigate('/')\n }\n }\n\n onWheelEvent(e) {\n const center = e.currentTarget\n var delta = Math.max(-1, Math.min(1, e.wheelDelta || -e.detail))\n center.scrollLeft -= delta * 10\n\n e.preventDefault()\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-user-menu.js","sourceRoot":"","sources":["../../client/layout/app-user-menu.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,iCAAiC,CAAA;AACxC,OAAO,iCAAiC,CAAA;AACxC,OAAO,qCAAqC,CAAA;AAE5C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAA;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;IAAhB,KAAK,EAAE;;yCAA6B;AACpB;IAAhB,KAAK,EAAE;;4CAAiC;AACxB;IAAhB,KAAK,EAAE;;4CAAsC;AAjCnC,WAAW;IADvB,aAAa,CAAC,eAAe,CAAC;GAClB,WAAW,CAoGvB","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@operato/contact/ox-pfp-view.js'\nimport '@operato/popup/ox-popup-menu.js'\nimport '@operato/popup/ox-popup-menuitem.js'\n\nimport { css, html, LitElement, nothing, type TemplateResult } from 'lit'\nimport { customElement, state } from 'lit/decorators.js'\n\nimport { i18next } from '@operato/i18n'\nimport { OxPopupMenu } from '@operato/popup/ox-popup-menu.js'\nimport { store } from '@operato/shell'\n\nimport { menuEntries, monogram, personName, type UserMenuEntry } from './user-menu-model'\n\ntype Person = { name?: string; email?: string }\ntype Picture = { picture?: string; left?: number; top?: number; zoom?: number }\n\n/**\n * The signed-in person's avatar and their own menu - the right end of the header, as YouTube has it.\n *\n * Profile, settings and sign-out used to sit among the morendas, under the rail's 「시스템 › 관리」 and\n * in more-ui's panel, next to user management and the audit. They are about the person, not the app's\n * administration; a person with no administration at all had to open 「관리」 to sign out.\n *\n * Both headers draw this - the band after its bell, the app toolbar at its end - so every app has the\n * one avatar. The person is `auth.user`, the face `auth.picture` (organization fills it from the\n * roster), the entries `usermenu.items`; this reads the store and imports none of those modules.\n */\n@customElement('app-user-menu')\nexport class AppUserMenu extends LitElement {\n static styles = [\n css`\n :host {\n display: inline-flex;\n align-items: center;\n }\n\n button {\n display: inline-flex;\n padding: 0;\n border: 0;\n border-radius: 50%;\n background: transparent;\n cursor: pointer;\n }\n\n button:focus-visible {\n outline: 2px solid var(--md-sys-color-primary);\n outline-offset: 2px;\n }\n\n /* As tall as the row's 28px pills, so the right end lines up. */\n ox-pfp-view {\n --ox-pfp-size: 28px;\n font-size: 9px;\n font-weight: 600;\n }\n `\n ]\n\n @state() private user?: Person | null\n @state() private picture?: Picture | null\n @state() private entries: UserMenuEntry[] = []\n\n private unsubscribe?: () => void\n\n connectedCallback() {\n super.connectedCallback()\n\n const read = () => {\n const state = store.getState() as any\n this.user = state.auth?.user\n this.picture = state.auth?.picture\n this.entries = state.usermenu?.items || []\n }\n\n read()\n this.unsubscribe = store.subscribe(read)\n }\n\n disconnectedCallback() {\n this.unsubscribe?.()\n super.disconnectedCallback()\n }\n\n render(): TemplateResult | typeof nothing {\n /* Before sign-in there is no one to show. */\n if (!this.user) return nothing\n\n const name = personName(this.user)\n\n return html`\n <button title=${name} aria-label=${name} aria-haspopup=\"menu\" @click=${() => this.open()}>\n <ox-pfp-view .profile=${this.picture || {}} .name=${monogram(name)}></ox-pfp-view>\n </button>\n `\n }\n\n private open() {\n const at = this.getBoundingClientRect()\n const name = personName(this.user)\n const email = this.user?.email && this.user.email !== name ? this.user.email : ''\n\n OxPopupMenu.open({\n template: html`\n <div style=\"display: flex; align-items: center; gap: 12px; cursor: default; min-width: 220px;\">\n <ox-pfp-view\n style=\"--ox-pfp-size: 40px; font-size: 12px; font-weight: 600; flex: none;\"\n .profile=${this.picture || {}}\n .name=${monogram(name)}\n ></ox-pfp-view>\n <div style=\"display: flex; flex-direction: column; min-width: 0; color: var(--md-sys-color-on-surface);\">\n <b style=\"font-size: 14px;\">${name}</b>\n ${email ? html`<span style=\"font-size: 12px; color: var(--md-sys-color-on-surface-variant);\">${email}</span>` : nothing}\n </div>\n </div>\n ${menuEntries(this.entries).map(\n entry => html`\n <ox-popup-menuitem label=${i18next.t(entry.label || entry.name)} @select=${() => entry.action?.()}>\n <md-icon slot=\"icon\">${entry.icon}</md-icon>\n </ox-popup-menuitem>\n `\n )}\n `,\n top: at.bottom + 6,\n right: window.innerWidth - at.right,\n parent: document.body\n })\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-band-model.js","sourceRoot":"","sources":["../../client/layout/header-band-model.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,G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AC,CAAA;IAE7E,OAAO,QAAQ,EAAE,KAAK,IAAI,EAAE,CAAA;AAC9B,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAgB;IACvC,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;IACnC,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAA;IAE3B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAA;AAClC,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,WAAW,CAAC,MAA0B;IACpD,IAAI,CAAC,MAAM,IAAI,MAAM,GAAG,CAAC;QAAE,OAAO,SAAS,CAAA;IAE3C,OAAO,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AAC7C,CAAC","sourcesContent":["/**\n * What the shared header band decides, kept apart from how it draws.\n *\n * ADR-0060 decision 4 and its 2026-09-18 addendum. plant, twin and figure each wrote this row for\n * themselves - 386, 603 and 185 lines - and the three drifted: one drew a menu button and another\n * did not, one put the unread count inside the pill and another hung it off the corner, each\n * reached for a different set of colour tokens. The band is one copy of the row; this file is the\n * part of it a test in this repository can reach, since the rendering needs a DOM.\n */\n\n/** A tool as the registry keeps it. `template` is a lit template; this file never looks inside it. */\nexport type AppTool = { name?: string; position?: string; template?: unknown }\n\n/**\n * The five places, in the order they are drawn, left to right.\n *\n * These are `TOOL_POSITION`'s own values, written out rather than imported: `@operato/layout` is an\n * ES module and this repository's test runner does not transform node_modules, so importing the\n * enum here would take the deciding out of reach of every test. `tests/header-band.test.ts` reads\n * the installed declaration and checks that these five still match it.\n */\nexport const SLOT_ORDER = ['FRONT_END', 'FRONT', 'CENTER', 'REAR', 'REAR_END'] as const\n\nexport type Slot = (typeof SLOT_ORDER)[number]\n\n/**\n * The scope an app hands over: what it is showing, and how to change it.\n *\n * The band draws this and knows nothing else about it (ADR-0048 · 0058). plant passes factories,\n * twin passes sites, warehouse passes warehouses, and none of those words reach this package.\n */\nexport type HeaderScope = {\n /** What this kind of thing is called, for the control's accessible name. */\n label: string\n /** What there is to choose from. One or none means there is nothing to choose. */\n items?: { id: string; label: string }[]\n /** Which one is being shown. */\n selectedId?: string\n /**\n * What to say while nothing is chosen, for an app where that is a real state - twin opens with no\n * site until you pick one. Given, the picker leads with it and a lone scope is still offered as a\n * choice. Left out, the band assumes one is always chosen, as plant and warehouse do.\n *\n * Without it the band has no way to say \"not yet\": a native select shows its first entry as if it\n * were chosen, and the head reads as a site the screen below says you have not picked\n * (twin, 2026-08-26 - the user pointed at exactly that).\n */\n unchosen?: string\n /** Called with the chosen id. Entering it is the app's business, not the band's. */\n onSelect?: (id: string) => void | Promise<void>\n}\n\n/**\n * Split the one registry into the five slots.\n *\n * The band and `app-toolbar` read the same `store.getState().apptool.tools`, so lite-menu's\n * hamburger and more-ui's morenda button land in the band without either package knowing the band\n * exists. A second registry would mean every contributor choosing a side.\n */\nexport function toolsBySlot(tools: readonly AppTool[] = []): Record<Slot, AppTool[]> {\n const bySlot = {} as Record<Slot, AppTool[]>\n\n for (const slot of SLOT_ORDER) {\n bySlot[slot] = (tools || []).filter(tool => tool?.position === slot)\n }\n\n return bySlot\n}\n\n/**\n * Whether the band draws its own way into the menu.\n *\n * lite-menu puts the rail away and registers its hamburger in the **app toolbar**\n * (`TOOL_POSITION.FRONT_END`), which an app running the band has turned off. That happens on a\n * mobile device in portrait, or when the app asks for `hovering` - the width of a desktop window\n * has nothing to do with it (`lite-menu/client/actions/lite-menu.ts:92-108`: `show: !hovering`,\n * `hovering: isMobileDevice() ? true : hovering`, and the hamburger on\n * `(hovering || isMobileDevice()) && orientation == 'portrait'`). twin turned the toolbar off and\n * drew no button of its own, so on a phone there was no way to leave the screen you were on\n * (2026-09-18). With the rail on screen a second way in is noise, so the button comes and goes with\n * it.\n *\n * This reads the menu part's own `show` rather than asking what device it is, so it follows whatever\n * lite-menu decides without holding a copy of the decision.\n *\n * `undefined` means the menu part has not registered yet. That reads as shown, so the button does\n * not flash on during boot.\n *\n * A page can also clear the rail itself, with `context.widebleed` or `context.fullbleed` -\n * `@operato/shell`'s `app.ts` gives the nav bar `?fullbleed=${fullbleed || widebleed}`, which hides\n * its contents without touching the menu part's own `show` (board's viewer and player do this: a\n * monitoring surface gets the width, 2026-09-22). The rail is gone from the screen either way, so\n * the button follows the same rule for both causes.\n */\nexport function menuButtonShown(\n menuPartShow: boolean | undefined,\n frontEndTools: readonly AppTool[] = [],\n railHiddenByPage = false\n): boolean {\n /* Something already registered a way in - lite-menu's own hamburger, or the app's. Don't draw a second. */\n if (frontEndTools.length > 0) return false\n\n if (railHiddenByPage) return true\n\n return menuPartShow === undefined ? false : !menuPartShow\n}\n\n/**\n * How much of a scope control there is to draw.\n *\n * A single factory draws its name and no picker: an install with one of something pays nothing for\n * the ability to switch between several. plant already worked this way and the band keeps it.\n */\nexport function scopeShape(scope?: HeaderScope): 'none' | 'name' | 'picker' {\n if (!scope) return 'none'\n\n const items = scope.items || []\n if (items.length > 1) return 'picker'\n /* One to choose and none chosen: the one is still a choice to offer, not a name to claim. */\n if (items.length === 1 && scope.unchosen && !chosen(scope)) return 'picker'\n if (items.length === 1 || scope.selectedId) return 'name'\n\n return 'none'\n}\n\n/** Whether the scope names one of its own items as chosen. */\nfunction chosen(scope: HeaderScope): boolean {\n return (scope.items || []).some(item => item.id === scope.selectedId)\n}\n\n/**\n * The picker's entries. With `unchosen`, an empty entry leads and is the selected one until an item\n * is - so the head never shows a choice that was not made. Choosing it calls `onSelect('')`.\n */\nexport function scopeOptions(scope?: HeaderScope): { id: string; label: string; selected: boolean }[] {\n if (!scope) return []\n\n const items = (scope.items || []).map(item => ({ ...item, selected: item.id === scope.selectedId }))\n\n return scope.unchosen ? [{ id: '', label: scope.unchosen, selected: !chosen(scope) }, ...items] : items\n}\n\n/** The name to draw for a scope that has no picker. */\nexport function scopeName(scope?: HeaderScope): string {\n if (!scope) return ''\n if (scope.unchosen && !chosen(scope)) return scope.unchosen\n\n const items = scope.items || []\n const selected = items.find(item => item.id === scope.selectedId) || items[0]\n\n return selected?.label || ''\n}\n\n/**\n * The product name, split where it is drawn in two weights: `operato` **plant**.\n *\n * The band owns this shape, and the app gives it one word (ruling ① of the addendum). plant and\n * figure had written the same two-part wordmark by hand and twin had none at all.\n */\nexport function wordmark(product?: string): { lead: string; name: string } | undefined {\n const name = (product || '').trim()\n if (!name) return undefined\n\n return { lead: 'operato', name }\n}\n\n/** The count as the bell shows it. Above 99 the exact number stops being worth the width. */\nexport function unreadLabel(unread: number | undefined): string | undefined {\n if (!unread || unread < 1) return undefined\n\n return unread > 99 ? '99+' : String(unread)\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-scope.js","sourceRoot":"","sources":["../../client/layout/header-scope.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,IAAI,OAAgC,CAAA;AACpC,MAAM,SAAS,GAAG,IAAI,GAAG,EAAc,CAAA;AAEvC,+BAA+B;AAC/B,MAAM,UAAU,cAAc;IAC5B,OAAO,OAAO,CAAA;AAChB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,KAAmB;IAChD,OAAO,GAAG,KAAK,CAAA;IACf,KAAK,MAAM,QAAQ,IAAI,CAAC,GAAG,SAAS,CAAC;QAAE,QAAQ,EAAE,CAAA;AACnD,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,oBAAoB,CAAC,QAAoB;IACvD,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;IACvB,OAAO,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;AACzC,CAAC","sourcesContent":["import type { HeaderScope } from './header-band-model'\n\n/**\n * Where an app hands the band its scope — what it is showing, and how to change it.\n *\n * ADR-0060 decision 4 addendum, ruling ②: the band draws the control and the app owns the words and\n * the move. plant passes its factories, twin its sites, warehouse its warehouses, and none of those\n * words are in this package.\n *\n * A module-level value rather than a redux slice: it is one object, the band is its only reader,\n * and a slice would put the app's vocabulary in the shared store where anything could read it.\n */\n\nlet current: HeaderScope | undefined\nconst listeners = new Set<() => void>()\n\n/** What the band draws now. */\nexport function getHeaderScope(): HeaderScope | undefined {\n return current\n}\n\n/**\n * Hand the band a scope, or `undefined` to take it away.\n *\n * Call it again whenever the list or the chosen one changes — the band redraws from what it is\n * given and keeps nothing of its own.\n */\nexport function setHeaderScope(scope?: HeaderScope): void {\n current = scope\n for (const listener of [...listeners]) listener()\n}\n\n/** Watch it. Returns the unsubscribe, which the band calls when it leaves the document. */\nexport function subscribeHeaderScope(listener: () => void): () => void {\n listeners.add(listener)\n return () => listeners.delete(listener)\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mdibar-routes.js","sourceRoot":"","sources":["../../client/layout/mdibar-routes.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,MAAM,UAAU,YAAY,CAAI,MAAqB,EAAE,KAAkB;IACvE,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAChC,IAAI,EAAE,IAAI,CAAC;QAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAA;IAEtC,OAAO,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAA;AAC1E,CAAC;AAED,iHAAiH;AACjH,MAAM,UAAU,cAAc,CAAI,MAAqB,EAAE,EAAU;IACjE,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;AACjE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAI,MAAqB,EAAE,IAA6B;IAC9E,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,GAAG,MAAM,CAAA;IAC9B,MAAM,IAAI,GAAG,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAA;IAE5E,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,EAAE,CAAA;AAC/F,CAAC","sourcesContent":["/**\n * What the MDI tab bar's tab list becomes when tabs close - decided here, apart from the element.\n *\n * `routes[0]` is home and never closes. Tabs are found by identity, never by a position handed in from the\n * template: the context menu used to pass the position among the non-home tabs while the list counts home,\n * so \"close\" disposed the chosen page and dropped the tab to its left.\n *\n * No imports, so the node test runner can hold it.\n */\nexport type MdiRoute<P = unknown> = { page?: P; url: string; name?: string }\n\n/**\n * The list without `route`, and where it stood. `at` is -1 when it is not there (or is home) - nothing to do.\n */\nexport function withoutRoute<P>(routes: MdiRoute<P>[], route: MdiRoute<P>): { routes: MdiRoute<P>[]; at: number } {\n const at = routes.indexOf(route)\n if (at <= 0) return { routes, at: -1 }\n\n return { routes: [...routes.slice(0, at), ...routes.slice(at + 1)], at }\n}\n\n/** Where to go after closing the tab that was on screen: the tab that stood to its left - home for the first. */\nexport function nextAfterClose<P>(routes: MdiRoute<P>[], at: number): MdiRoute<P> {\n return routes[Math.max(0, Math.min(at - 1, routes.length - 1))]\n}\n\n/**\n * Keep home and `keep`; the rest close. `closed` are the tabs whose pages must be disposed.\n * `keep` may be home itself (closing every other tab while home is on screen).\n */\nexport function keepOnly<P>(routes: MdiRoute<P>[], keep: MdiRoute<P> | undefined): { routes: MdiRoute<P>[]; closed: MdiRoute<P>[] } {\n const [home, ...rest] = routes\n const kept = keep && keep !== home && rest.includes(keep) ? keep : undefined\n\n return { routes: kept ? [home, kept] : [home], closed: rest.filter(route => route !== kept) }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mdibar-visibility.js","sourceRoot":"","sources":["../../client/layout/mdibar-visibility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAgD;IAChF,OAAO,OAAO,EAAE,MAAM,KAAK,KAAK,CAAA;AAClC,CAAC","sourcesContent":["/**\n * Whether the MDI tab bar stands aside for the active page.\n *\n * A page says so in its context: `mdibar: false`. Shop-floor screens do — a gloved hand doing one task\n * has no use for page tabs, and the bar's \"close all tabs\" prompt would open at office size there\n * (ADR-0060 decision 4).\n *\n * Only an explicit `false` hides the bar. A page that says nothing keeps it, so no existing page\n * changes. The user's own setting (`clientSettingStore 'mdibar'`) and the viewpart's `show` are left\n * alone: leaving the page brings the bar back as the user had it, with nothing to remember or restore.\n *\n * No imports, so the node test runner can hold it.\n */\nexport function mdibarStandsAside(context: { mdibar?: unknown } | undefined | null): boolean {\n return context?.mdibar === false\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"page-mdibar.js","sourceRoot":"","sources":["../../client/layout/page-mdibar.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAE/D,OAAO,EAAE,QAAQ,EAAY,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;A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I;SACtB,CAAC,CAAA;IACJ,CAAC;;AArXQ;IAAR,KAAK,EAAE;;0CAA2F;AAC1F;IAAR,KAAK,EAAE;;yCAAmB;AAIR;IAAlB,KAAK,CAAC,UAAU,CAAC;8BAAY,cAAc;4CAAA;AACpB;IAAvB,KAAK,CAAC,eAAe,CAAC;8BAAe,cAAc;+CAAA;AA3RzC,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CA2oBtB","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@operato/popup/ox-popup-menu.js'\n\nimport { css, html, nothing, LitElement } from 'lit'\nimport { customElement, query, state } from 'lit/decorators.js'\n\nimport { navigate, PageView, RouteController } from '@operato/shell'\nimport { addressController } from '@operato/utils/address.js'\nimport { i18next, localize } from '@operato/i18n'\nimport { OxPopupMenu } from '@operato/popup/ox-popup-menu.js'\nimport { OxPrompt } from '@operato/popup'\n\nimport { mdibarStandsAside } from './mdibar-visibility.js'\nimport { keepOnly, nextAfterClose, withoutRoute, type MdiRoute } from './mdibar-routes.js'\n\n@customElement('page-mdibar')\nexport class PageMDIBar extends localize(i18next)(LitElement) {\n static styles = [\n css`\n :host {\n display: flex;\n background-color: var(--md-sys-color-secondary-container);\n color: var(--md-sys-color-on-secondary-container);\n font-size: var(--fontsize-small);\n overflow: hidden;\n align-items: stretch;\n }\n\n /* The active page asked for no tab bar (context.mdibar === false). */\n :host([hidden]) {\n display: none;\n }\n\n div {\n box-sizing: border-box;\n }\n\n div[routes] {\n flex: 1;\n\n display: flex;\n overflow: hidden;\n }\n\n div[route] {\n display: inline-block;\n position: relative;\n min-width: var(--mdibar-min-width, 100px);\n max-width: var(--mdibar-max-width, 150px);\n padding: var(--mdibar-padding, 3px 22px 1px 7px);\n /*\n * ── 탭은 위 두 모서리만 둥글다 ──────────────────────────────────────\n *\n * 탭의 은유는 **앞으로 나온 종이**다. 그래서 위는 둥글고 **아래는 각져서** 아래 패널에\n * 붙는다. 밑변이 각진 것이 「이 탭이 저 패널의 손잡이」라고 말하는 자리다.\n *\n * 모서리 값은 담는 면을 따른다(동심 모서리) — 이 띠는 평평한 면이므로 작은 눈금 6px 이다.\n * 팝업 카드(16px) 안의 컨트롤이 알약인 것과 같은 원칙이고, 반대쪽 끝이다.\n *\n * ── 전에 여기 있던 것 ───────────────────────────────────────────────\n * border-right / border-top / border-bottom: var(--border-dim-color)\n *\n * 탭마다 세 면에 선이 있었다. **걷은 것은 그 선이 죽어서가 아니라, 이 모양에서 선이\n * 너무 많아서다.** 26px 띠에 탭 셋이면 세로선이 셋이고, 여기에 활성 탭의 윤곽 한 올과\n * 아래 패널의 경계까지 겹친다. 위가 둥근 활성 탭이 한 장으로 떠오르면 비활성 자리는\n * 물러나 있는 것으로 충분하다.\n *\n * ── 한때 「죽은 선언」이라고 적었다. 틀렸다 ────────────────────────────\n * --border-dim-color 를 못 찾아 무효 선언이라고 단정했는데, 그 토큰은 **테두리 값 한\n * 벌을 통째로** 담고 있다(이름이 -color 로 끝나지만 색이 아니다).\n *\n * shell/client/themes/app-theme.css body { --border-dim-color: 1px solid var(--md-sys-color-outline-variant) }\n *\n * 못 찾은 이유는 :root 에서 읽었기 때문이다 — 선택자가 body 다. 그래서 단축 속성에\n * 쓰이던 이 넷은 **살아서 칠하고 있었다.** 색 자리(border-*-color)에 쓰면 그때 죽는다.\n *\n * [확인함] 2026-09-04 · body 값 「1px solid rgb(214 219 224)」 ·\n * border-bottom: var(--border-dim-color) 가 1px solid #d6dbe0 로 계산된다 ·\n * 바 #e4e8ed · 활성 탭 #f0f2f4 · 본문 바닥 #f0f2f4\n */\n border-radius: var(--mdibar-tab-radius, 6px) var(--mdibar-tab-radius, 6px) 0 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n text-transform: capitalize;\n cursor: pointer;\n }\n\n div[arrows] {\n display: flex;\n /*\n * border: var(--border-dim-color) 였다 — 화살표 세 개를 상자로 둘러쌌다. 걷었다.\n * 그 셋은 이미 각자 동그라미를 받으므로 무리를 상자로 또 묶을 이유가 없다.\n * (그 선언은 살아 있었다. 위 div[route] 의 주석에 그 토큰 이야기를 적어 두었다.)\n */\n align-items: center;\n }\n\n /*\n * 흐림을 여기서 걷었다. 아래에서 이 셋에 **색을 직접 주고**(평소 --ui-muted · 못 누를 때\n * --ui-faint) 있어서, 흐림이 그 위에 또 얹히면 두 번 흐려진다. 「모두 닫기」가 야간 화면에서\n * 1.78:1 이었다(실측 2026-09-05 · UI 요소 기준 3:1).\n */\n div[arrows] * {\n font-size: var(--mdibar-icon-size, 24px);\n flex: 1;\n }\n\n /*\n * 흐림은 0.5 였다. 색까지 함께 흐린 자리가 있어 **두 번 흐려졌고**, 홈 아이콘이 밝은 화면에서\n * 2.93:1 이 됐다(실측 2026-09-05). 0.7 이면 4.3 으로 UI 요소 기준을 넘고, 탭 이름보다\n * 뒤에 서는 것은 그대로다.\n */\n md-icon {\n --md-icon-size: var(--mdibar-icon-size, 18px);\n opacity: 0.7;\n }\n\n md-icon:hover {\n opacity: 0.8;\n color: var(--md-sys-color-secondary);\n }\n\n /*\n * 탭 줄 오른쪽의 단추들 — 모두 닫기 · 좌우 이동.\n *\n * 전에는 글리프가 24px 인데 상자가 18px 이라 **넘쳤고**, 색이 rgb(32,39,47) 거의 검정이라 탭 줄\n * 에서 가장 진했다. 탭 이름보다 장치가 눈에 먼저 들어왔다. [확인함] 2026-09-02\n *\n * 상자와 글리프를 같은 값으로 맞추고, 평소에는 흐리게 두었다가 마우스가 오면 진해진다. 배경은\n * 동그라미로 든다 — 셀 안 단추와 같은 어휘다.\n */\n div[arrows] md-icon {\n --md-icon-size: 18px;\n font-size: 18px;\n width: 18px;\n height: 18px;\n padding: 3px;\n border-radius: 50%;\n color: var(--ui-muted, #57676f);\n cursor: pointer;\n transition:\n background-color 0.12s ease,\n color 0.12s ease;\n }\n\n div[arrows] md-icon:not([disabled]):hover {\n color: var(--ui-ink, #17272f);\n background-color: var(--ui-hover, rgba(0, 0, 0, 0.06));\n }\n\n /*\n * 「모두 닫기」는 채운 글리프로 그려진다. 외곽선으로 바꾼다 — 옆의 화살표가 외곽선이라 셋이 한\n * 무리로 읽혀야 한다.\n */\n div[arrows] md-icon[close-all] {\n margin: 0 2px;\n font-variation-settings: 'FILL' 0;\n }\n\n div[arrows] md-icon[disabled] {\n opacity: 0.35;\n color: var(--ui-faint, #8a959c);\n cursor: default;\n }\n\n /*\n * 탭을 닫는 × — **옆의 화살표들과 같은 어휘로** 그린다.\n *\n * 확인해 보니 한 26px 띠 안에서 같은 종류가 어휘가 둘이었다.\n *\n * 탭의 × 18×18 · padding 0 · radius 0 · #20272f 를 50% 흐림 · hover 는 흐림만\n * 바의 화살표 24×24 · padding 3 · radius 50% · --ui-muted · hover 에 배경 동그라미\n *\n * 화살표 쪽은 이틀 전에 정리했고(위 블록) 이쪽은 받지 못했다. 그래서 셋이 걸렸다.\n *\n * ① 누를 자리가 18px 다. 옆의 것이 24px 이고, 탭을 닫는 것은 되돌리기 어려운 동작이다\n * ② hover 가 흐림만 바꾼다 — 배경이 없으면 단추로 읽히지 않는다\n * ③ 색이 자기 색이 아니다. 잉크(#20272f)를 흐린 것이라 탭 이름과 같은 무게로 읽혔고,\n * 탭이 셋이면 화면에서 「× × ×」가 이름보다 먼저 한 줄로 읽혔다\n *\n * 글리프를 16px 로 한 단 줄여 padding 3px 을 넣어도 22×22 로 26px 띠에 든다. 위아래\n * 2px 이 남는다 — 화살표와 같은 값(24)을 쓰면 띠에 꽉 차서 모서리를 먹는다.\n *\n * margin-left 를 걷었다 — absolute 배치라 아무 일도 하지 않던 선언이다.\n * 홈 탭의 아이콘은 닫기가 아니므로 뺀다(그쪽은 아래 [home] 규칙이 맡는다).\n */\n div[route]:not([home]) md-icon {\n position: absolute;\n right: 3px;\n top: 50%;\n transform: translateY(-50%);\n\n --md-icon-size: 16px;\n font-size: 16px;\n width: 16px;\n height: 16px;\n padding: 3px;\n border-radius: 50%;\n\n opacity: 1;\n /*\n * ── 색은 **이 띠의 짝 토큰**에서 온다 (2026-09-05) ────────────────\n * --ui-faint 는 페이지 바탕(--md-sys-color-surface)에 맞춰 섞인 값이다. 탭 띠의 바탕은\n * 그것이 아니라 secondary-container 라서, 여기에 그대로 쓰면 바탕에 너무 가까워진다 —\n * 야간 실측 2.07:1 이었다(UI 요소 기준 3:1).\n *\n * 그래서 이 띠의 글자색(on-secondary-container)을 옅게 섞는다. 활성 탭(4.9) · 비활성\n * 탭(5.9) 어느 쪽에 놓여도 넘는다.\n */\n color: color-mix(in srgb, var(--md-sys-color-on-secondary-container) 70%, transparent);\n transition:\n background-color 0.12s ease,\n color 0.12s ease;\n }\n\n div[route]:not([home]) md-icon:hover {\n opacity: 1;\n color: var(--ui-ink, #17272f);\n background-color: var(--ui-hover, rgba(0, 0, 0, 0.06));\n }\n\n /*\n * Centred on both axes, the way the close icons are centred vertically.\n *\n * There used to be two rules with this same selector: one set right: 2px, a later one\n * added left: 0. With width auto both applied, so the box stretched across the tab and\n * the glyph rendered at its left edge — and neither rule set top, so it fell at its\n * static position under the 3px top padding instead of on the band's centre line.\n * [확인함] 2026-09-09 · 사용자 보고 — 홈 아이콘이 치우쳐 보인다\n */\n div[route][home] md-icon {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n /*\n * 비활성 탭도 눌리는 것이다. 마우스가 오면 면으로 말한다 — 옆의 화살표들과 같은 어휘다.\n * 채움 자리(rest)와 이미 열린 탭은 뺀다.\n */\n div[route]:not([active]):not([rest]):hover {\n background-color: var(--ui-hover, rgba(0, 0, 0, 0.05));\n }\n\n /*\n * 활성 탭은 **아래 패널과 한 장**이다.\n *\n * 채움색이 --md-sys-color-background 인 것은 그 뜻이었다 — 본문 바닥과 같은 색이라\n * 이어져 보이게. [확인함] 둘 다 #f0f2f4 로 실제 같다.\n *\n * 거기에 두 가지를 더한다.\n *\n * 위·좌·우 실선 한 올 떠오른 종이의 윤곽. 밝기 5% 차이만으로는 경계가 안 읽혔다\n * 밑변은 패널의 색 선을 잇지 않는다 — 그 1px 이 탭과 패널을 잇는 자리다\n */\n div[route][active] {\n background-color: var(--md-sys-color-background);\n border: 1px solid var(--md-sys-color-outline-variant);\n border-bottom-color: var(--md-sys-color-background);\n color: var(--md-sys-color-on-background);\n font-weight: bold;\n }\n\n div[route][home] {\n /*\n * The icon is positioned, so this padding is only reserving the tab's width — 28px,\n * the same total as before. It was 23px on the left against 5px on the right, and 0 at\n * the bottom where its siblings have 1px, which left the glyph off to one side and a\n * pixel higher than the other tabs.\n */\n padding: var(--mdibar-padding-home, 3px 14px 1px 14px);\n overflow: visible;\n min-width: unset;\n max-width: unset;\n }\n\n div[route][rest] {\n flex: 1;\n min-width: unset;\n max-width: unset;\n border-right: unset;\n }\n `\n ]\n\n /**\n * 열린 탭들. `routes[0]` 은 홈이다(render 에서 따로 그린다).\n *\n * `name` 은 그 탭이 맡은 **라우트 이름**이다(`job-order-list` 같은 것). 주소를 갱신할 때 「이 주소가\n * 정말 이 탭의 것인가」를 판정하는 데 쓴다 — 없으면 남의 주소가 찍힌다(updated 머리말 참조).\n */\n @state() routes: { page?: PageView; url: string; name?: string }[] = [{ url: this.getHomeRoute() }]\n @state() title: string = ''\n\n private _routeCtrl = new RouteController(this)\n\n @query('[routes]') scroller!: HTMLDivElement\n @query('#context-menu') contextMenu!: HTMLDivElement\n\n private contextMenuTargetRoute?: MdiRoute<PageView>\n /** The page the context menu refreshes: the tab or home it was opened on. */\n private contextMenuTargetPage?: PageView\n\n /**\n * Pages this bar closed. While a close navigates to the next tab there is a moment when the address is\n * already the next page's but the active page is still the closed one; `updated()` must not take that\n * page back in as a new tab (it did, with the next page's address - the closed tab came back at the end\n * and had to be closed again).\n */\n private closed = new WeakSet<object>()\n private stopAddress?: () => void\n\n connectedCallback() {\n super.connectedCallback()\n this.stopAddress = addressController().subscribe(entry => this.followAddress(entry.url), false)\n }\n\n disconnectedCallback() {\n super.disconnectedCallback()\n this.stopAddress?.()\n }\n\n /**\n * The tab on screen keeps the address its screen shows: a filter, a sort, a search, a 360 or a tab inside the\n * screen changes the address without a route change, and coming back to the tab returns there. A move to\n * another screen is the route controller's (`updated`): its address is not this tab's.\n */\n private followAddress(url: URL) {\n const route = this.routes.find(route => route.page === this._routeCtrl.activePage)\n if (route && route !== this.routes[0] && new URL(route.url).pathname === url.pathname) route.url = url.href\n }\n\n willUpdate() {\n /* Every update, so leaving such a page shows the bar again. */\n this.hidden = mdibarStandsAside(this._routeCtrl.context)\n }\n\n render() {\n const home = this.routes[0]\n const routes = this.routes.slice(1)\n\n return html`\n <div\n home\n route\n ?active=${this._routeCtrl.activePage === home.page}\n @click=${() => this.select(home.page, () => this.moveToHome())}\n @contextmenu=${(e: MouseEvent) => {\n e.preventDefault()\n e.stopPropagation()\n\n delete this.contextMenuTargetRoute\n this.contextMenuTargetPage = home.page\n\n this.openContextMenu(e)\n }}\n >\n <md-icon>home</md-icon>&#8203;\n </div>\n\n <div\n routes\n @mousewheel=${this.onWheelEvent.bind(this)}\n @contextmenu=${(e: MouseEvent) => {\n e.preventDefault()\n e.stopPropagation()\n\n delete this.contextMenuTargetRoute\n delete this.contextMenuTargetPage\n\n this.openContextMenu(e)\n }}\n >\n ${routes.map(route => {\n const context = route.page?.context as any\n const title = context?.title || context?.search?.placeholder || ''\n\n return html`\n <div\n @contextmenu=${(e: MouseEvent) => {\n e.preventDefault()\n e.stopPropagation()\n\n this.contextMenuTargetRoute = route\n this.contextMenuTargetPage = route.page\n\n this.openContextMenu(e)\n }}\n @click=${() => this.select(route.page, () => this.moveTo(route))}\n ?active=${this._routeCtrl.activePage === route.page}\n route\n >\n ${typeof title == 'object' ? title.text : title}\n <md-icon\n title=${i18next.t('button.close-tab')}\n @click=${(e: MouseEvent) => {\n e.stopPropagation()\n this.closePage(route)\n }}\n >close</md-icon\n >\n </div>\n `\n })}\n <div rest route></div>\n </div>\n\n <div arrows>\n <md-icon\n close-all\n title=${i18next.t('button.close-other-tabs')}\n ?disabled=${this.routes.length <= 1}\n @click=${() => this.closeOtherPagesFromActive()}\n >tab_close</md-icon\n >\n <md-icon ?disabled=${!this.scroller || this.scroller.scrollLeft <= 0} @click=${() => this.onScrollByArrow(1)}\n >arrow_left</md-icon\n >\n <md-icon\n ?disabled=${!this.scroller ||\n this.scroller.scrollWidth <= this.scroller.offsetWidth + this.scroller.scrollLeft}\n @click=${() => this.onScrollByArrow(-1)}\n >arrow_right</md-icon\n >\n </div>\n `\n }\n\n private _prevActivePage?: any\n private _prevResourceId?: string\n private _prevParams?: any\n\n /**\n * 열린 탭 목록을 주소와 맞춘다.\n *\n * ── 남의 주소가 찍히던 결함 (2026-09-02) ──────────────────────────────────\n * 항해 한 번에 이 함수가 **두 번** 지나간다. 그 사이에 주소와 활성 페이지가 어긋나 있는 순간이 있다.\n *\n * ① navigate 주소가 새 페이지로 바뀐다. 활성 페이지는 **아직 옛 페이지**다\n * ② 나중에 새 페이지가 붙고 활성 페이지가 바뀐다\n *\n * ①에서도 이 블록이 돌았다. `params` 는 항해마다 새 객체라(`shell/actions/route.js` 의\n * `if (!params) { params = {} }`) 아래 `params !== this._prevParams` 가 **항상 참**이기 때문이다.\n * 그래서 옛 탭을 찾아 새 주소를 찍었다.\n *\n * [확인함] 작업지시를 열고 메뉴에서 품질을 누른 뒤\n *\n * i=1 job-order-list → /quality-list ← 덮였다\n * i=2 quality-list → /quality-list\n *\n * 그 결과 **「작업지시」 탭을 눌러도 아무 일이 없었다** — 품질로 가는 주소라 그대로 머문다. 탭이\n * 죽어 보이는 것이 이것이다.\n *\n * 그래서 탭마다 자기 라우트 이름을 들리고, **주소가 자기 것일 때만** 갱신한다. `params` 비교는 그대로\n * 둔다 — 검색어처럼 질의만 바뀌는 항해도 탭 주소가 따라가야 한다.\n */\n updated() {\n const { activePage, resourceId, params, context, page: routeName } = this._routeCtrl\n\n /* refresh를 일으키기위한 property 변경을 위한 코드임. */\n this.title = context?.title || context?.search?.placeholder || ''\n\n const activePageChanged = activePage !== this._prevActivePage\n const routeDetailsChanged = resourceId !== this._prevResourceId || params !== this._prevParams\n\n this._prevActivePage = activePage\n this._prevResourceId = resourceId\n this._prevParams = params\n\n if (activePageChanged || routeDetailsChanged) {\n if (!activePage) {\n return\n }\n\n const page = activePage\n\n /* A page this bar closed is not a tab any more, whatever the address says at this moment. */\n if (this.closed.has(page)) {\n return\n }\n\n if (location.pathname == this.getHomeRoute()) {\n this.routes[0].page = page\n return\n }\n\n var route = this.routes.find(route => route.page === page)\n\n if (!route) {\n this.routes = [...this.routes, { page, url: location.href, name: routeName }]\n } else if (route.name === routeName) {\n /* 자기 주소다 — 같은 화면 안에서 resourceId 나 질의가 바뀐 경우가 여기 온다. */\n route.url = location.href\n } else if (activePageChanged) {\n /*\n * 같은 요소가 다른 라우트를 맡게 된 경우. 드물지만 그냥 두면 그 탭의 주소가 영구히 낡는다.\n * `activePageChanged` 로 가른다 — 위 ①의 어긋난 순간에는 이 값이 거짓이다.\n */\n route.name = routeName\n route.url = location.href\n }\n }\n }\n\n onScrollByArrow(delta: number) {\n this.scroller.scrollLeft -= delta * 10\n\n this.requestUpdate()\n }\n\n onWheelEvent(e: Event) {\n const target = e.currentTarget as HTMLDivElement\n\n var delta = Math.max(-1, Math.min(1, (e as WheelEvent).deltaY || -(e as WheelEvent).detail))\n target.scrollLeft -= delta * 10\n\n this.requestUpdate()\n\n e.preventDefault()\n }\n\n getHomeRoute() {\n var base = document.querySelector('base')\n return base?.getAttribute('href') || '/'\n }\n\n /**\n * A click on the tab already on screen reads its page again (ADR-0174), quietly: with unsaved edits it does\n * nothing, so a habitual click never brings up a question. The tab menu's refresh is the one that asks.\n */\n private select(page: PageView | undefined, move: () => void) {\n if (page && page === this._routeCtrl.activePage) void page.refresh({ ask: false })\n else move()\n }\n\n moveTo(route: { page?: PageView; url: string; name?: string }) {\n navigate(route.url)\n }\n\n moveToHome() {\n navigate(this.getHomeRoute())\n }\n\n /** Takes the page out of the content area and lets it go - and remembers that this bar closed it. */\n private dispose(page?: PageView) {\n if (!page) return\n\n this.closed.add(page)\n page.parentNode?.removeChild(page)\n page.pageDispose()\n }\n\n async closePage(route: MdiRoute<PageView>) {\n if (this.routes.indexOf(route) <= 0) return\n /* Closing destroys the page, so its unsaved edits are asked about first; on \"no\" the tab stays. */\n if (route.page && !(await route.page.confirmClose())) return\n const { routes, at } = withoutRoute(this.routes, route)\n if (at < 0) return\n\n this.routes = routes\n const wasOnScreen = this._routeCtrl.activePage === route.page\n this.dispose(route.page)\n\n if (wasOnScreen) {\n navigate(nextAfterClose(routes, at).url)\n }\n }\n\n /** Every tab but home and `keep` closes; `keep` comes on screen. */\n async closeOtherPages(keep: MdiRoute<PageView>) {\n const { routes, closed } = keepOnly(this.routes, keep)\n\n /* Each page is asked before it is destroyed; a tab whose edits the user keeps stays open. */\n const closing: MdiRoute<PageView>[] = []\n for (const route of closed) if (!route.page || (await route.page.confirmClose())) closing.push(route)\n\n closing.forEach(route => this.dispose(route.page))\n this.routes = this.routes.filter(route => !closing.includes(route))\n\n navigate(routes[routes.length - 1].url)\n }\n\n /* 현재 활성 탭을 제외한 모든 탭을 닫는 함수 */\n async closeOtherPagesFromActive() {\n if (this.routes.length <= 1) return\n\n const result = await OxPrompt.open({\n type: 'info',\n title: '',\n text: i18next.t('text.confirm_close_other_tabs'),\n confirmButton: { text: i18next.t('button.confirm') },\n cancelButton: { text: i18next.t('button.cancel') }\n })\n if (!result) return\n\n await this.closeOtherPages(this.routes.find(route => route.page === this._routeCtrl.activePage) ?? this.routes[0])\n }\n\n async closeAllPage() {\n const result = await OxPrompt.open({\n type: 'info',\n title: '',\n text: i18next.t('text.confirm_close_all_tabs'),\n confirmButton: { text: i18next.t('button.confirm') },\n cancelButton: { text: i18next.t('button.cancel') }\n })\n if (!result) return\n\n await this.closeOtherPages(this.routes[0])\n }\n\n openContextMenu(e: MouseEvent) {\n /* A page off screen reads again when it is next shown (ADR-0174). */\n const refreshing = this.contextMenuTargetPage\n\n OxPopupMenu.open({\n template: html`\n ${refreshing\n ? html`\n <ox-popup-menuitem\n label=${i18next.t('button.refresh')}\n @select=${(e: Event) => {\n refreshing.refresh()\n }}\n >\n <md-icon slot=\"icon\">refresh</md-icon>\n </ox-popup-menuitem>\n `\n : nothing}\n ${this.contextMenuTargetRoute\n ? html`\n <ox-popup-menuitem\n label=${i18next.t('button.close-tab')}\n @select=${(e: Event) => {\n this.closePage(this.contextMenuTargetRoute!)\n }}\n >\n <md-icon slot=\"icon\">close</md-icon>\n </ox-popup-menuitem>\n\n <ox-popup-menuitem\n label=${i18next.t('button.close-other-tabs')}\n @select=${(e: Event) => {\n this.closeOtherPages(this.contextMenuTargetRoute!)\n }}\n >\n <md-icon slot=\"icon\">cancel</md-icon>\n </ox-popup-menuitem>\n `\n : nothing}\n\n <ox-popup-menuitem\n label=${i18next.t('button.close-all-tabs')}\n @select=${(e: Event) => {\n this.closeAllPage()\n }}\n >\n <md-icon slot=\"icon\">disabled_by_default</md-icon>\n </ox-popup-menuitem>\n `,\n top: e.clientY,\n left: e.clientX,\n parent: document.body\n })\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"page-toolbar.js","sourceRoot":"","sources":["../../client/layout/page-toolbar.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAGtC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;QAwGW,WAAM,GAAqD,EAAE,CAAA;IA+DxE,CAAC;aAtKQ,WAAM,GAAG;QACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 'lit'\nimport { customElement, query, state } from 'lit/decorators.js'\nimport { TOOL_POSITION } from '@operato/layout'\nimport { store } from '@operato/shell'\n\n@customElement('page-toolbar')\nclass PageToolbar extends LitElement {\n static styles = [\n css`\n :host {\n display: flex;\n color: var(--page-header-bar-color, var(--md-sys-color-on-surface));\n /*\n * ── 이 띠는 본문의 면이다 ────────────────────────────────────────────\n *\n * MDI 활성 탭은 자기 아래 테두리를 본문 색으로 덮어 **탭과 본문이 한 장으로 보이게** 한다\n * (page-mdibar.ts 의 div[route][active] — background-color 와 border-bottom-color 가\n * 둘 다 --md-sys-color-background). 그런데 탭과 본문 사이에 이 띠가 있다.\n *\n * 여기가 surface-container 를 칠하고 있었다. 탭이 이어 붙인 자리를 이 띠가 한 단 다른 색으로\n * 가로질러서, **탭에서 본문으로 이어지던 면이 끊겨 보였다.**\n *\n * [확인함 2026-09-22 :4000] 본문·활성 탭 이 띠 차이\n * 밝은 테마 rgb(249 249 249) rgb(238 238 238) ΔE76 3.83\n * 어두운 테마 rgb(19 19 19) rgb(31 31 31) ΔE76 6.01\n *\n * 고친 뒤에는 두 테마 다 활성 탭 · 그 아래 테두리 · 이 띠가 같은 값이다.\n *\n * 띠를 없애는 것이 아니라 **면을 같게 한다.** 이 줄에 있는 것(제목·검색 알약·도구)은 저마다\n * 자기 면을 갖고 있어서, 바탕이 본문과 같아져도 각각은 그대로 읽힌다.\n *\n * 다른 색을 원하는 화면은 --page-header-bar-background-color 로 덮는다 — 그 문은 그대로다.\n */\n background-color: var(--page-header-bar-background-color, var(--md-sys-color-background));\n justify-content: space-between;\n align-items: center;\n /*\n * No left inset: the title bar (the only tool placed here) sets its own, from --ui-gutter, so the\n * title text starts on the same line as the page body (ADR-0117 decision 5). With 5px here as\n * well, the title sat 5px right of the body text [measured 2026-10-06 :4000, 230 vs 225].\n */\n padding: 0 5px 0 0;\n\n text-transform: capitalize;\n\n /*\n * 검색칸이 놓이는 면 — **면 토큰이어야 한다.**\n *\n * on-primary 를 쓰고 있었다. 그것은 primary 위에 얹는 **잉크**의 이름이지 면의 이름이\n * 아니다. 밝은 팔레트에서는 그 잉크가 흰색이라 흰 칸이 나와 맞아 보였고, 어두운 팔레트에서는\n * primary 가 어두우니 그 잉크가 **밝은 색**으로 뒤집힌다 — 검색칸만 밝은 판으로 남는다.\n *\n * 그 위에 놓이는 캐럿은 on-surface(app-theme.css:16), 글자는 on-surface-variant 다.\n * 둘 다 어두운 화면에서 밝아지는 잉크라서, **밝은 캐럿이 밝은 면에** 놓였다.\n *\n * figure 어두운 모드 캐럿 rgb(221,231,236) 면 rgb(226,246,248) 대비 1.12\n * 고친 뒤 면 rgb(38,50,58) 대비 10.45\n *\n * 1.12 는 흐린 것이 아니라 **차이가 없는 것**이다 — 타자를 치는데 커서가 어디 있는지 알 수\n * 없다(figure 레인 실측 2026-09-11).\n *\n * 이 줄바는 스스로 surface-container 위에 선다. 그 위의 입력칸은 한 단 위인\n * surface-container-highest 가 자리다 — 이 저장소의 입력칸 20여 곳이 이미 그 값을\n * --input-field-background 의 대체값으로 쓴다.\n *\n * 네 조합 다 확인했다: shell 밝은 7.28 · shell 어두운 7.30 · figure 밝은 4.58 ·\n * figure 어두운 4.53. 전부 AA 위다.\n */\n --ox-input-search-background-color: var(--md-sys-color-surface-container-highest);\n }\n\n :host > * {\n margin: var(--page-header-bar-item-padding, 0);\n }\n\n [center] {\n flex: 1;\n flex-wrap: nowrap;\n display: flex;\n align-items: center;\n overflow: hidden;\n }\n\n [center] > * {\n flex: 1;\n margin: auto;\n }\n\n :host(.vline) {\n display: block;\n flex: none;\n border-left: 1px solid rgba(255, 255, 255, 0.07);\n border-right: 1px solid rgba(0, 0, 0, 0.1);\n width: 0px;\n height: 18px;\n margin: 0 4px;\n }\n\n :host(label) {\n margin-right: 5px;\n color: #fff;\n font-size: 20px;\n }\n\n span.space {\n width: 10px;\n }\n `\n ]\n\n @state() _tools: { position: string; template: TemplateResult }[] = []\n @state() _route: any\n\n @query('[center]') center!: HTMLDivElement\n\n render() {\n var tools = this._tools || ([] as { position: string; template: TemplateResult }[])\n\n var frontEndTools = tools.filter(tool => tool.position == TOOL_POSITION.FRONT_END)\n var frontTools = tools.filter(tool => tool.position == TOOL_POSITION.FRONT)\n var centerTools = tools.filter(tool => tool.position == TOOL_POSITION.CENTER)\n var rearTools = tools.filter(tool => tool.position == TOOL_POSITION.REAR)\n var rearEndTools = tools.filter(tool => tool.position == TOOL_POSITION.REAR_END)\n\n return html`\n ${frontEndTools.map(tool => html` ${tool.template} `)} ${frontTools.map(tool => html` ${tool.template} `)}\n\n <div center @mousewheel=${this.onWheelEvent}>${centerTools.map(tool => html` ${tool.template} `)}</div>\n\n ${rearTools.map(tool => html` ${tool.template} `)} ${rearEndTools.map(tool => html` ${tool.template} `)}\n `\n }\n\n private _unsubscribe?: () => void\n\n\n connectedCallback() {\n\n super.connectedCallback()\n\n this._applyState()\n\n this._unsubscribe = store.subscribe(() => this._applyState())\n\n }\n\n\n disconnectedCallback() {\n\n super.disconnectedCallback()\n\n this._unsubscribe?.()\n\n }\n\n\n private _applyState() {\n\n const __state__ = store.getState() as any\n/* page의 변화를 감지하기 위해서 route의 변화를 체크한다. */\n this._route = __state__.route\n\n this._tools = __state__.pagetool.tools\n\n }\n\n onWheelEvent(e) {\n const center = e.currentTarget\n var delta = Math.max(-1, Math.min(1, e.wheelDelta || -e.detail))\n center.scrollLeft -= delta * 10\n\n e.preventDefault()\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-menu-model.js","sourceRoot":"","sources":["../../client/layout/user-menu-model.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,kFAAkF;AAClF,MAAM,aAAa,GAAG,EAAE,CAAA;AAExB,qFAAqF;AACrF,MAAM,UAAU,WAAW,CAA0B,UAAwB,EAAE;IAC7E,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;SACnB,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;SACzC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;SACxG,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,UAAU,CAAC,IAA+C;IACxE,OAAO,CAAC,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;AAChE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAa;IACpC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;IAE/C,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAA;AACpC,CAAC","sourcesContent":["/**\n * What the avatar at the right end of the header decides, kept apart from how it draws.\n *\n * The avatar is the band's own part, like the bell: an app does not register it. What the menu holds\n * is registered by the modules that own each entry (`ADD_USER_MENU` in apptool-base) - auth-ui's\n * profile and sign-out, setting-ui's settings - so no person's word lives in this package.\n */\n\n/** An entry as the registry keeps it. `action` is never called here. */\nexport type UserMenuEntry = { name: string; icon?: string; label?: string; order?: number; action?: () => void }\n\n/** An entry that names no order sits after settings and before the about page. */\nconst DEFAULT_ORDER = 50\n\n/** The entries in the order the menu shows them - by `order`, then as registered. */\nexport function menuEntries<T extends UserMenuEntry>(entries: readonly T[] = []): T[] {\n return (entries || [])\n .map((entry, index) => ({ entry, index }))\n .sort((a, b) => (a.entry.order ?? DEFAULT_ORDER) - (b.entry.order ?? DEFAULT_ORDER) || a.index - b.index)\n .map(({ entry }) => entry)\n}\n\n/** The name the menu's head shows: the person's name, or the email for one who has none. */\nexport function personName(user?: { name?: string; email?: string } | null): string {\n return (user?.name || '').trim() || (user?.email || '').trim()\n}\n\n/**\n * The one letter the avatar shows while there is no picture.\n *\n * One, as YouTube shows - a 28px circle has no room for two Hangul syllables. Taken by code point, so\n * a surrogate pair is not cut in half.\n */\nexport function monogram(name?: string): string {\n const [first] = Array.from((name || '').trim())\n\n return (first || '').toUpperCase()\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mdibar-setting-let.js","sourceRoot":"","sources":["../client/mdibar-setting-let.ts"],"names":[],"mappings":";AAAA,OAAO,0BAA0B,CAAA;AACjC,OAAO,oCAAoC,CAAA;AAE3C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAGhD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;IAA5D;;QAewB,SAAI,GAAY,KAAK,CAAA;IA2DpD,CAAC;aAzEQ,WAAM,GAAG;QACd,GAAG,CAAA;;;;;;;;;;KAUF;KACF,AAZY,CAYZ;IAMD,MAAM;QACJ,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAA;QAElC,OAAO,IAAI,CA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lit'\nimport { customElement, property, state } from 'lit/decorators.js'\n\nimport { i18next, localize } from '@operato/i18n'\nimport { clientSettingStore, store } from '@operato/shell'\nimport { updateViewpart } from '@operato/layout'\n\nimport { mdibarShownNow } from './mdibar-setting-state'\n\n@customElement('mdibar-setting-let')\nexport class MDIBarSettingLet extends localize(i18next)(LitElement) {\n static styles = [\n css`\n label {\n display: flex;\n gap: 10px;\n align-items: center;\n\n font: var(--label-font);\n color: var(--md-sys-color-on-primary-container);\n text-transform: var(--label-text-transform);\n }\n `\n ]\n\n @property({ type: Boolean }) show: boolean = false\n\n private _unsubscribe?: () => void\n\n render() {\n const checked = this.show === true\n\n return html`\n <setting-let>\n <ox-i18n slot=\"title\" msgid=\"title.mdibar setting\"></ox-i18n>\n\n <div slot=\"content\">\n <label>\n <md-checkbox @change=${e => this.onChangeShowMDIBar(e)} ?checked=${checked}></md-checkbox>\n ${i18next.t('label.show')}\n </label>\n </div>\n </setting-let>\n `\n }\n\n /*\n * Follow the bar, not the stored setting: until the user picks, an app that starts the bar on has\n * nothing stored, and this row drew \"off\" over a bar that was on (see `mdibar-setting-state`).\n *\n * Reading once is not enough — the card outlives a `updateViewpart('appmdibar', …)` from anywhere\n * else, and would then draw the old answer.\n */\n connectedCallback() {\n super.connectedCallback()\n\n this.show = mdibarShownNow(store.getState())\n this._unsubscribe = store.subscribe(() => (this.show = mdibarShownNow(store.getState())))\n }\n\n disconnectedCallback() {\n super.disconnectedCallback()\n\n this._unsubscribe?.()\n }\n\n async onChangeShowMDIBar(e) {\n const show = e.currentTarget.checked\n\n try {\n await clientSettingStore.put({\n key: 'mdibar',\n value: {\n show\n }\n })\n } catch (e) {\n console.error(e)\n }\n\n updateViewpart('appmdibar', {\n show\n })\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mdibar-setting-state.js","sourceRoot":"","sources":["../client/mdibar-setting-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,cAAc,CAAC,KAAU;IACvC,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,KAAK,IAAI,CAAA;AAC3D,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAA2B,EAAE,MAAsC;IACnG,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,MAAM,KAAK,IAAI,CAAA;IACxB,CAAC;IAED,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAA;AACxF,CAAC","sourcesContent":["/**\n * What the MDI setting row shows: **the state the tab bar is actually in.**\n *\n * The row used to read the stored setting alone (`clientSettingStore 'mdibar'`). An app that starts\n * the bar on (`setupAppToolPart({ mdibar: { default: true } })`) leaves that value unset until the\n * user picks something, so the row drew an empty checkbox while the bar stood on the screen — the\n * setting said off and the product said on. Someone arriving for the first time ticks it to turn the\n * bar on and nothing happens, because it was on already.\n *\n * `setupAppToolPart` has already folded the stored value and the app's default into the viewpart, so\n * the viewpart is the one place that knows the answer. Writing the default into the store instead\n * would freeze it: the app could never change its own default afterwards.\n *\n * No imports, so the test runner can hold it.\n */\nexport function mdibarShownNow(state: any): boolean {\n return state?.layout?.viewparts?.appmdibar?.show === true\n}\n\n/**\n * The bar's state when the app starts: the user's stored choice, or the app's own default until they\n * make one.\n *\n * `setupAppToolPart` and the setting row must not each carry their own version of this — that split\n * is what let the row say \"off\" over a bar that was on.\n *\n * `mdibar: true` keeps the old behaviour (off until the user turns it on); `{ default: true }` starts\n * it on.\n */\nexport function resolveMdibarShow(stored: boolean | undefined, option: boolean | { default: boolean }): boolean {\n if (stored !== undefined) {\n return stored === true\n }\n\n return typeof option === 'object' && option !== null ? option.default === true : false\n}\n"]}