@mojawork/ui-docs 2.9.0 → 2.10.1

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.
Files changed (29) hide show
  1. package/README.md +2 -2
  2. package/catalog/atoms/image-grid.md +27 -13
  3. package/catalog/guide.json +6 -6
  4. package/catalog/manifest.json +4 -4
  5. package/catalog/version.json +2 -2
  6. package/package.json +1 -1
  7. package/storybook/2621.fdb0f39b.iframe.bundle.js +2 -0
  8. package/storybook/2621.fdb0f39b.iframe.bundle.js.map +1 -0
  9. package/storybook/{4555.767c4a26.iframe.bundle.js → 4555.755c5b81.iframe.bundle.js} +2 -2
  10. package/storybook/{4555.767c4a26.iframe.bundle.js.map → 4555.755c5b81.iframe.bundle.js.map} +1 -1
  11. package/storybook/atoms-image-grid-docs-mdx.66afba9a.iframe.bundle.js +2 -0
  12. package/storybook/atoms-image-grid-docs-mdx.66afba9a.iframe.bundle.js.map +1 -0
  13. package/storybook/atoms-image-grid-image-grid-component-stories.18152774.iframe.bundle.js +2 -0
  14. package/storybook/atoms-image-grid-image-grid-component-stories.18152774.iframe.bundle.js.map +1 -0
  15. package/storybook/home-overview-mdx.8b0a9768.iframe.bundle.js +2 -0
  16. package/storybook/{home-overview-mdx.9521137d.iframe.bundle.js.map → home-overview-mdx.8b0a9768.iframe.bundle.js.map} +1 -1
  17. package/storybook/iframe.html +1 -1
  18. package/storybook/project.json +1 -1
  19. package/storybook/{runtime~main.1fc884d5.iframe.bundle.js → runtime~main.299654f7.iframe.bundle.js} +2 -2
  20. package/storybook/{runtime~main.1fc884d5.iframe.bundle.js.map → runtime~main.299654f7.iframe.bundle.js.map} +1 -1
  21. package/storybook/version.json +2 -2
  22. package/version.json +2 -2
  23. package/storybook/2621.41931f1f.iframe.bundle.js +0 -2
  24. package/storybook/2621.41931f1f.iframe.bundle.js.map +0 -1
  25. package/storybook/atoms-image-grid-docs-mdx.884fa455.iframe.bundle.js +0 -2
  26. package/storybook/atoms-image-grid-docs-mdx.884fa455.iframe.bundle.js.map +0 -1
  27. package/storybook/atoms-image-grid-image-grid-component-stories.c2cb1e12.iframe.bundle.js +0 -2
  28. package/storybook/atoms-image-grid-image-grid-component-stories.c2cb1e12.iframe.bundle.js.map +0 -1
  29. package/storybook/home-overview-mdx.9521137d.iframe.bundle.js +0 -2
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @mojawork/ui-docs
2
2
 
3
- The documentation of `@mojawork/ui` 2.9.0, version-true and offline:
3
+ The documentation of `@mojawork/ui` 2.10.1, version-true and offline:
4
4
  the built Storybook plus the cooked catalog. Install nothing — start it:
5
5
 
6
6
  ```bash
7
- npx @mojawork/ui-docs@2.9.0
7
+ npx @mojawork/ui-docs@2.10.1
8
8
  ```
9
9
 
10
10
  and open the printed URL. The Storybook you see is exactly the one this
@@ -13,12 +13,13 @@ slider can point at the same picture. It opens nothing itself: a click emits
13
13
  `clickIndex`, and what follows — a slider in zoom, a route — is the host's
14
14
  decision. `cols` must be set; the default `0` draws no columns.
15
15
 
16
- As a **strip** (`singleRow` with a `tileHeight`) it is one row of equally
17
- sized tiles that scrolls sideways once there are more than fit — a row of
18
- episode stills, a row of posters. Then `cols` plays no part, nothing is
19
- padded, and `tileAspect` gives the tile its shape. `imageFit` decides how
20
- a tile holds its picture in either mode: at its own size (the default), or
21
- filling the tile, or fitted whole.
16
+ As a **strip** (a `tileHeight` is set) it is a band of equally sized tiles
17
+ that scrolls sideways once there are more than fit — a row of episode
18
+ stills, a row of posters, two rows of thumbnails. Then `cols` and `height`
19
+ play no part, nothing is padded, `tileAspect` gives the tile its shape and
20
+ `tileRows` says how many rows the band stacks. `imageFit` decides how a tile
21
+ holds its picture in either mode: at its own size (the default), or filling
22
+ the tile, or fitted whole.
22
23
 
23
24
  ---
24
25
 
@@ -32,13 +33,19 @@ filling the tile, or fitted whole.
32
33
 
33
34
  ### [Strip](?path=/story/atoms-image-grid--strip)
34
35
 
35
- One row of fixed-size tiles that scrolls sideways — an episode strip, a row
36
- of posters. `singleRow` with a `tileHeight`: every tile is that tall and
37
- `tileHeight × tileAspect` wide, the row holds exactly its items, and once
36
+ Fixed-size tiles that scroll sideways — an episode strip, a row of posters.
37
+ A `tileHeight` switches it on: every tile is that tall and
38
+ `tileHeight × tileAspect` wide, the strip holds exactly its items, and once
38
39
  they are wider than the container it scrolls instead of shrinking them.
39
40
  `cols` is not read. The pictures fill their tiles (`imageFit: 'cover'`), and
40
41
  the click area names the tile — the story writes the item's `alt` into it.
41
42
 
43
+ Move `tileRows` to stack the strip. The tiles fill **column by column** —
44
+ the first on top, the second below it, the third on top again — so the
45
+ reading order runs down, then right, and the last column may stay partly
46
+ empty. The tiles keep their size; the strip grows by one tile height and one
47
+ gap per row.
48
+
42
49
  ---
43
50
 
44
51
  #### Features
@@ -89,7 +96,13 @@ the click area names the tile — the story writes the item's `alt` into it.
89
96
  <td>tileHeight</td>
90
97
  <td>number</td>
91
98
  <td>undefined</td>
92
- <td>Strip mode, with <code>singleRow</code>: the fixed tile height in pixels. The row then holds exactly its items at that size and scrolls sideways when they do not fit; <code>cols</code> and <code>height</code> are not read. Without it the single row keeps its <code>height / cols</code> sizing.</td>
99
+ <td>Strip mode: the fixed tile height in pixels. Setting it is what makes the grid a strip — it then holds exactly its items at that size and scrolls sideways when they do not fit; <code>cols</code> and <code>height</code> are not read. <code>singleRow</code> is not needed for it and changes nothing next to it.</td>
100
+ </tr>
101
+ <tr>
102
+ <td>tileRows</td>
103
+ <td>number</td>
104
+ <td>1</td>
105
+ <td>The number of rows a strip stacks its tiles in, filled column by column. The strip is <code>tileRows × tileHeight</code> plus the gaps tall. The tile height is taken as it comes and never divided by the rows — a caller with a fixed block height does that division itself. Read only together with <code>tileHeight</code>; a value below one draws one row, a fraction is cut to the whole number.</td>
93
106
  </tr>
94
107
  <tr>
95
108
  <td>tileAspect</td>
@@ -107,7 +120,7 @@ the click area names the tile — the story writes the item's `alt` into it.
107
120
  <td>singleRow</td>
108
121
  <td>boolean</td>
109
122
  <td>false</td>
110
- <td>If true, the grid renders as a single row with horizontal scrolling. The row height is calculated as <code>height / cols</code>.</td>
123
+ <td>If true, the grid renders as a single row with horizontal scrolling. The row height is calculated as <code>height / cols</code>. Not read once a <code>tileHeight</code> is set — the strip brings its own rows.</td>
111
124
  </tr>
112
125
  <tr>
113
126
  <td>setIndex</td>
@@ -182,14 +195,15 @@ The number of columns is determined by the `cols` input and the total number of
182
195
  - If `dataCount / cols > cols`, the grid becomes "square-ish" or expands to fit items, calculating columns as `Math.ceil(dataCount / cols)`.
183
196
  - Otherwise, it uses the fixed `cols` value provided.
184
197
  - With `cols` at `0` (the default) no expansion happens and the grid gets zero columns — a column count is part of using the component.
185
- - A **single row never expands and never pads**: it holds exactly its items. The square is the two-dimensional grid's shape, and a row has no second dimension to fill.
198
+ - A **single row and a strip never expand and never pad**: they hold exactly their items. The square is the two-dimensional grid's shape; a strip's columns are simply as many as its items need in `tileRows` rows.
186
199
 
187
200
  ##### Height Calculation (`scrollerHeight`)
188
201
 
189
202
  The height of the grid container is dynamically calculated:
190
203
  - **Standard Mode (`singleRow` is false)**: Uses the `height` input value in pixels. Falls back to `200px` when no `height` is given.
191
204
  - **Single Row Mode (`singleRow` is true)**: The height is calculated as `height / cols` (both must be set; otherwise the same `height`-or-`200px` fallback applies). This ensures that even in a horizontal scroll scenario, the items maintain a consistent aspect ratio based on the intended column count.
192
- - **Strip Mode (`singleRow` with `tileHeight`)**: The height IS `tileHeight`; each tile is `tileHeight` tall and `tileHeight × tileAspect` wide, and the row's tracks are that width, so the row overflows and scrolls instead of shrinking the tiles to fit. A tile that becomes active — by a click or through `setIndex` — is scrolled into the middle of the visible row. See the [Strip](?path=/story/atoms-image-grid--strip) story.
205
+ - **Strip Mode (`tileHeight` is set)**: The height is `tileRows × tileHeight` plus `tileRows − 1` gaps — with the default single row, `tileHeight` itself. Each tile is `tileHeight` tall and `tileHeight × tileAspect` wide, and the column tracks are that width, so the strip overflows and scrolls instead of shrinking the tiles to fit. A tile that becomes active — by a click or through `setIndex` — is scrolled sideways into the middle of the visible strip, whichever row it stands in. See the [Strip](?path=/story/atoms-image-grid--strip) story.
206
+ - **A strip and its scrollbar**: The height above is the height of the TILES. Where the browser draws a scrollbar that takes space — a mouse on macOS, most of Windows — the strip is taller by that bar, so the tiles keep their full `tileHeight`; with a floating scrollbar nothing is added. Reserve the room by letting the strip set its own height, not by framing it from outside. The grid and the plain single row are framed instead: their `height` is the outer edge, and a scrollbar comes out of the tiles.
193
207
 
194
208
  ---
195
209
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "author": "an agent — the Claude Code session of the library workspace, writing from the sources each entry names; not a person",
3
3
  "disclaimer": "Recommendations, not truth. Every entry was written by an agent from the sources it names, and only for what demonstrably runs somewhere in the house (shownIn). The component page — get_component_doc — is the truth; where the two disagree, the page wins. The house rules are read verbatim from the usage contract of the library (usage.md).",
4
- "uiVersion": "2.9.0",
5
- "commit": "10dd5586",
4
+ "uiVersion": "2.10.1",
5
+ "commit": "3e3a1075",
6
6
  "entries": [
7
7
  {
8
8
  "kind": "situation",
@@ -135,7 +135,7 @@
135
135
  "sources": [
136
136
  "libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"
137
137
  ],
138
- "reviewed": "69197b72"
138
+ "reviewed": "1ecebedd"
139
139
  },
140
140
  {
141
141
  "kind": "situation",
@@ -561,7 +561,7 @@
561
561
  "component": "ui-image-grid",
562
562
  "useFor": [
563
563
  "The overview of a picture set, sharing one index with ui-image-slider. Always set cols; the default draws nothing.",
564
- "A strip — one scrolling row of fixed-size tiles (singleRow with tileHeight and tileAspect): episode stills, a row of posters."
564
+ "A strip — fixed-size tiles that scroll sideways (tileHeight with tileAspect), in one row or stacked with tileRows: episode stills, a row of posters, two rows of thumbnails. The tile height is never divided by the rows; a caller with a fixed block height divides it."
565
565
  ],
566
566
  "notFor": [
567
567
  "Showing one picture large — that is the slider's half."
@@ -590,7 +590,7 @@
590
590
  "libs/ui/src/lib/atoms/image-grid/docs.mdx",
591
591
  "libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"
592
592
  ],
593
- "reviewed": "91c43f4c"
593
+ "reviewed": "6ca75796"
594
594
  },
595
595
  {
596
596
  "kind": "component",
@@ -1081,7 +1081,7 @@
1081
1081
  "sources": [
1082
1082
  "libs/ui/src/lib/atoms/reader-doc/docs.mdx"
1083
1083
  ],
1084
- "reviewed": "2ae02124"
1084
+ "reviewed": "1ecebedd"
1085
1085
  },
1086
1086
  {
1087
1087
  "kind": "component",
@@ -1,7 +1,7 @@
1
1
  {
2
- "uiVersion": "2.9.0",
3
- "commit": "10dd5586",
4
- "builtAt": "2026-10-26T13:09:11.488Z",
2
+ "uiVersion": "2.10.1",
3
+ "commit": "3e3a1075",
4
+ "builtAt": "2026-12-01T17:06:06.943Z",
5
5
  "guide": "guide.json",
6
6
  "usage": "usage.md",
7
7
  "mcp": "mcp.json",
@@ -303,7 +303,7 @@
303
303
  "file": "atoms/image-grid.md",
304
304
  "description": "The `UiImageGridComponent` is a versatile and responsive grid-based image display component. It allows for dynamic configuration of columns, gaps, and heights, making it suitable for galleries, portfolios, or any grouped image presentation.",
305
305
  "brief": "Lays pictures out in a fixed number of columns, with a gap, a height and an optional overlay per tile, and reports which tile is selected or clicked.",
306
- "truth": "Lays pictures out in a fixed number of columns, with a gap, a height and an\noptional overlay per tile, and reports which tile is selected or clicked. It\nshares an index with `ui-image-slider` (`setIndex`/`currentIndex`) so grid and\nslider can point at the same picture. It opens nothing itself: a click emits\n`clickIndex`, and what follows — a slider in zoom, a route — is the host's\ndecision. `cols` must be set; the default `0` draws no columns.\n\nAs a **strip** (`singleRow` with a `tileHeight`) it is one row of equally\nsized tiles that scrolls sideways once there are more than fit — a row of\nepisode stills, a row of posters. Then `cols` plays no part, nothing is\npadded, and `tileAspect` gives the tile its shape. `imageFit` decides how\na tile holds its picture in either mode: at its own size (the default), or\nfilling the tile, or fitted whole.\n\n---",
306
+ "truth": "Lays pictures out in a fixed number of columns, with a gap, a height and an\noptional overlay per tile, and reports which tile is selected or clicked. It\nshares an index with `ui-image-slider` (`setIndex`/`currentIndex`) so grid and\nslider can point at the same picture. It opens nothing itself: a click emits\n`clickIndex`, and what follows — a slider in zoom, a route — is the host's\ndecision. `cols` must be set; the default `0` draws no columns.\n\nAs a **strip** (a `tileHeight` is set) it is a band of equally sized tiles\nthat scrolls sideways once there are more than fit — a row of episode\nstills, a row of posters, two rows of thumbnails. Then `cols` and `height`\nplay no part, nothing is padded, `tileAspect` gives the tile its shape and\n`tileRows` says how many rows the band stacks. `imageFit` decides how a tile\nholds its picture in either mode: at its own size (the default), or filling\nthe tile, or fitted whole.\n\n---",
307
307
  "api": "https://moja.work/compodoc/ui/components/UiImageGridComponent.html"
308
308
  },
309
309
  {
@@ -1,4 +1,4 @@
1
1
  {
2
- "commit": "10dd5586",
3
- "uiVersion": "2.9.0"
2
+ "commit": "3e3a1075",
3
+ "uiVersion": "2.10.1"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojawork/ui-docs",
3
- "version": "2.9.0",
3
+ "version": "2.10.1",
4
4
  "description": "The documentation of @mojawork/ui, version-true: the built Storybook plus the cooked catalog (truth pages, guide, usage contract, tool definitions). npx-startable.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -0,0 +1,2 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2621],{"./libs/ui/src/lib/atoms/image-grid/image-grid-click-area.directive.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiImageGridClickAreaDirective});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_pending_tasks-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiImageGridClickAreaDirective=class UiImageGridClickAreaDirective{template=(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.WQX)(_angular_core__WEBPACK_IMPORTED_MODULE_2__.C4Q);static ngTemplateContextGuard(_directive,_context){return!0}};UiImageGridClickAreaDirective=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WLR)({selector:"ng-template[uiImageGridClickArea]"})],UiImageGridClickAreaDirective)},"./libs/ui/src/lib/atoms/image-grid/image-grid.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>UiImageGridComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var image_grid_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/image-grid/image-grid.component.css?ngResource"),image_grid_componentngResource_default=__webpack_require__.n(image_grid_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_pending_tasks_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_pending_tasks-chunk.mjs"),resize_signal=__webpack_require__("./libs/ui/src/lib/helpers/resize-signal.ts"),image_grid_click_area_directive=__webpack_require__("./libs/ui/src/lib/atoms/image-grid/image-grid-click-area.directive.ts");let UiImageGridComponent=class UiImageGridComponent{get scrollerHeightValue(){return this.strip()?null:this.scrollerHeight()}get hostClass(){return`_-fit-${this.imageFit()}${this.strip()?" _-strip":""}`}scroller;imageContainer;clickArea=(0,core.contentChild)(image_grid_click_area_directive.u,{read:_debug_node_chunk.C4Q});resizeEvent=(0,resize_signal.H)();data=(0,core.input)(null);dataCount=(0,_resource_chunk.EW)(()=>this.data()?.length??0);dataCountItems=(0,_pending_tasks_chunk.vPA)([0]);debug=(0,core.input)(!1);singleRow=(0,core.input)(!1);gap=(0,core.input)(0);overlayType=(0,core.input)("default");overlayTypeClass=(0,_resource_chunk.EW)(()=>`_-${this.overlayType()}`);cols=(0,core.input)(0);height=(0,core.input)();tileHeight=(0,core.input)();tileRows=(0,core.input)(1);tileAspect=(0,core.input)("1/1");imageFit=(0,core.input)("none");action=(0,core.input)(!1);loaded=(0,core.input)(!1);setIndex=(0,core.input)(0);currentIndex=(0,core.output)();clickIndex=(0,core.output)();strip=(0,_resource_chunk.EW)(()=>Boolean(this.tileHeight()));stripRows=(0,_resource_chunk.EW)(()=>Math.max(1,Math.floor(this.tileRows())||1));stripCols=(0,_resource_chunk.EW)(()=>Math.ceil(this.dataCount()/this.stripRows()));exact=(0,_resource_chunk.EW)(()=>this.singleRow()||this.strip());tileWidth=(0,_resource_chunk.EW)(()=>{const height=this.tileHeight()??0,[w,h]=this.tileAspect().split("/").map(Number),ratio=w>0&&h>0?w/h:1;return Math.round(height*ratio)});scrollerHeight=(0,_resource_chunk.EW)(()=>{const height=this.height(),cols=this.cols();if(this.strip()){const rows=this.stripRows();return rows*(this.tileHeight()??0)+(rows-1)*this.gap()+"px"}return this.singleRow()&&height&&cols?height/cols+"px":height?`${height}px`:"200px"});gridColsInternal=(0,_resource_chunk.EW)(()=>{const counter=this.cols();return this.exact()?counter:0!==counter&&this.dataCount()/counter>counter?Math.ceil(this.dataCount()/counter):counter});active=(0,_pending_tasks_chunk.vPA)(null);broken=(0,_pending_tasks_chunk.vPA)(new Set);hideDisplay=(0,_pending_tasks_chunk.vPA)(!0);clickAreaExist=(0,_resource_chunk.EW)(()=>void 0!==this.clickArea());constructor(){(0,_pending_tasks_chunk.QZP)(()=>{this.gap(),this.height(),this.cols(),this.tileHeight(),this.tileRows(),this.tileAspect(),this.resizeEvent(),this.updateGrid()}),(0,_pending_tasks_chunk.QZP)(()=>{this.data(),this.broken.set(new Set)}),(0,_pending_tasks_chunk.QZP)(()=>{this.setIndex(),this.scrollToChild(this.setIndex()),this.active.set(this.setIndex())}),(0,_pending_tasks_chunk.QZP)(()=>{this.action(),this.active.set(null)})}ngAfterViewInit(){this.active.set(this.setIndex()),this.updateGrid(),this.fader()}clickAreaContext(index){const item=this.data()?.[index];return item?{$implicit:item,index}:null}updateGrid(){const scroller=this.scroller?.nativeElement;scroller&&(scroller.style.height=this.strip()?"":this.scrollerHeight());const element=this.imageContainer?.nativeElement;if(element&&this.dataCount()){const gap=this.gap(),strip=this.strip(),tiles=this.exact()?this.dataCount():this.gridColsInternal()*this.gridColsInternal();this.dataCountItems.set(Array.from({length:tiles},(_,index)=>index+1));const repeatCount=strip?this.stripCols():this.singleRow()?this.dataCount():this.gridColsInternal(),track=strip?`${this.tileWidth()}px`:"1fr",rows=strip?`repeat(${this.stripRows()}, ${this.tileHeight()}px)`:"";setTimeout(()=>{element.style.display="grid",element.style.gap=`${gap}px`,element.style.gridTemplateColumns=`repeat(${repeatCount}, ${track})`,element.style.gridTemplateRows=rows,element.style.gridAutoFlow=strip?"column":"",element.style.width=strip?"max-content":"",this.applyStylesToChildren()},100)}}calculateGridSize(containerSize){const adjustedSize=containerSize/this.cols()-this.gap();return Math.ceil(adjustedSize)}applyStylesToChildren(){const element=this.imageContainer?.nativeElement;if(element){const strip=this.strip(),width=strip?this.tileWidth():this.calculateGridSize(element.offsetWidth??0),height=strip?this.tileHeight()??0:this.singleRow()?element.offsetHeight:this.calculateGridSize(element.offsetHeight??0),applyChildStyles=child=>{child.style.height=`${height}px`,child.style.width=`${width}px`};element.childNodes.forEach(child=>{child instanceof HTMLElement&&applyChildStyles(child)})}}fader(){this.hideDisplay.set(!0),setTimeout(()=>{this.hideDisplay.set(!1)},800)}scrollToChild(index){const containerElement=this.imageContainer?.nativeElement,scrollerElement=this.scroller?.nativeElement;if(!containerElement||!scrollerElement)return;const targetChild=containerElement.childNodes[index];if(!(targetChild instanceof HTMLElement))return;const scrollOffset=this.calculateScrollOffset(scrollerElement,targetChild);scrollerElement.scrollTo({left:scrollOffset,top:0})}calculateScrollOffset(viewport,child){return child.offsetLeft-viewport.clientWidth/2+child.offsetWidth/2}useAction(index){this.action()&&this.imageSrc(index)&&(this.clickAreaExist()&&this.active()===index&&this.clickIndex.emit(index),this.currentIndex.emit(index),this.active.set(index),this.scrollToChild(index))}scale(index){const value=this.data()?.[index]?.src.scale;return`transform: scale(${value??1})`}markBroken(index){this.broken.update(current=>new Set(current).add(index))}imageSrc(index){return this.data()?.[index]?.src.default}imageAlt(index){return this.data()?.[index]?.alt}imageTitle(index){return this.data()?.[index]?.title}static ctorParameters=()=>[];static propDecorators={scrollerHeightValue:[{type:_debug_node_chunk.g$6,args:["style.height"]}],hostClass:[{type:_debug_node_chunk.g$6,args:["class"]}],scroller:[{type:core.ViewChild,args:["scroller"]}],imageContainer:[{type:core.ViewChild,args:["imageContainer"]}],clickArea:[{type:core.ContentChild,args:[image_grid_click_area_directive.u,{read:_debug_node_chunk.C4Q,isSignal:!0}]}],data:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"data",required:!1,transform:void 0}]}],debug:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"debug",required:!1,transform:void 0}]}],singleRow:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"singleRow",required:!1,transform:void 0}]}],gap:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"gap",required:!1,transform:void 0}]}],overlayType:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"overlayType",required:!1,transform:void 0}]}],cols:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"cols",required:!1,transform:void 0}]}],height:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"height",required:!1,transform:void 0}]}],tileHeight:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"tileHeight",required:!1,transform:void 0}]}],tileRows:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"tileRows",required:!1,transform:void 0}]}],tileAspect:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"tileAspect",required:!1,transform:void 0}]}],imageFit:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"imageFit",required:!1,transform:void 0}]}],action:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"action",required:!1,transform:void 0}]}],loaded:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"loaded",required:!1,transform:void 0}]}],setIndex:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"setIndex",required:!1,transform:void 0}]}],currentIndex:[{type:_debug_node_chunk.k7i,args:["currentIndex"]}],clickIndex:[{type:_debug_node_chunk.k7i,args:["clickIndex"]}]}};UiImageGridComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-image-grid",template:'@if (data()) {\n <div class="_scroller" #scroller>\n <div\n #imageContainer\n class="_image-container"\n [class._-hide-display]="hideDisplay()"\n [style.height]="strip() ? scrollerHeight() : null"\n >\n @for (item of dataCountItems(); track item; let i = $index) {\n <button\n class="_wrapper"\n [class._-action]="action() && imageSrc(i)"\n [class._-active]="active() === i"\n [class._-no-image]="!imageSrc(i)"\n [class]="overlayTypeClass()"\n (click)="useAction(i)"\n >\n @if (debug()) {\n dataCount: {{ this.dataCount() }} <br />\n internalCounter: {{ this.gridColsInternal() }} <br />\n counter: {{ this.cols() }} <br />\n src: {{ imageSrc(i) }}\n } @else {\n @if (imageSrc(i) && loaded()) {\n @if (broken().has(i)) {\n \x3c!-- The file did not load: the alt text stands in the tile,\n centred, the same in every fit mode — a sized broken\n <img> would draw the browser\'s icon in a corner. --\x3e\n <figure class="_-broken"><figcaption>{{ imageAlt(i) }}</figcaption></figure>\n } @else {\n <figure>\n <img\n [style]="scale(i)"\n [src]="imageSrc(i)"\n [alt]="imageAlt(i)"\n [title]="imageTitle(i)"\n (error)="markBroken(i)"\n />\n </figure>\n }\n @if (clickArea(); as template) {\n <div class="_click-area">\n <ng-container\n *ngTemplateOutlet="template; context: clickAreaContext(i)"\n ></ng-container>\n </div>\n }\n } @else {\n \x3c!-- No picture: the same shape the image editor uses — icon\n centred, whatever title the item carries underneath. No\n stand-in text: an empty title is the caller\'s business. --\x3e\n <div class="_empty">\n <span class="ui-icon x3" aria-hidden="true">image</span>\n <strong>{{ imageTitle(i) }}</strong>\n </div>\n }\n }\n </button>\n }\n </div>\n </div>\n}\n',changeDetection:_debug_node_chunk.Ngq.Eager,imports:[_common_module_chunk.T3],styles:[image_grid_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiImageGridComponent)},"./libs/ui/src/lib/atoms/image-grid/image-grid.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n /* The scroller and the grid inside are positioned absolutely; the host is\n their anchor. Without this they climbed to the nearest positioned\n ancestor — an overlay's top edge, in one consumer. */\n position: relative;\n z-index: 0;\n --wrapper-height: 60rem;\n --button-size: 4rem;\n display: flex;\n /* Fills its container by default; the named hooks let a consumer set a fixed\n size without a cascade fight (tickets#241, tickets#251). */\n width: var(--ui-image-grid-width, 100%);\n height: var(--ui-image-grid-height, 100%);\n border-radius: calc(var(--ui-border-width) * 4);\n\n ._scroller {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n width: 100%;\n height: 100%;\n overflow-y: hidden;\n overflow-x: scroll;\n background-color: var(--ui-c-background);\n scroll-behavior: smooth;\n }\n\n ._image-container {\n position: absolute;\n top: 0;\n left: 0;\n display: grid;\n width: 100%;\n height: 100%;\n transition: opacity calc(var(--ui-time) * 0.1) linear;\n\n &._-hide-display {\n opacity: 0;\n }\n\n button._wrapper {\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n gap: calc(var(--ui-spacer) * 0.5);\n align-items: center;\n justify-content: center;\n overflow: hidden;\n transition: scale calc(var(--ui-time) * 0.5) ease-in-out;\n background-color: var(--ui-c-fourthly);\n border: 0;\n\n &._-no-image {\n cursor: default;\n opacity: 0.5;\n }\n\n /* A picture that did not load: its alt text, centred in the tile —\n the same look whatever the fit mode. */\n figure._-broken {\n width: 100%;\n height: 100%;\n justify-content: center;\n\n figcaption {\n padding: calc(var(--ui-spacer) * 0.25);\n text-align: center;\n }\n }\n\n /* The empty state, same arrangement as the image editor's: icon above,\n title below, both dimmed. */\n ._empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: calc(var(--ui-spacer) * 0.25);\n }\n\n &._-default {\n &:not(._-action) {\n cursor: default;\n }\n\n &._-active {\n border: 0.32rem solid var(--ui-c-focus);\n\n img {\n transform: scale(1.1) !important;\n }\n }\n\n &._-action:hover {\n img {\n transform: scale(1.1) !important;\n }\n }\n }\n\n &._-doors {\n &._-active {\n border: 0.32rem solid var(--ui-c-focus);\n }\n\n &._-action:hover {\n img {\n transform: scale(1.1) !important;\n }\n }\n\n &::after,\n &::before {\n z-index: 1;\n content: '\\00a0';\n position: absolute;\n left: 0;\n display: flex;\n height: 100%;\n width: 100%;\n background-color: var(--ui-c-background);\n transition: var(--ui-time) ease-in-out;\n opacity: 0.6;\n }\n\n &::before {\n top: -50%;\n z-index: 1;\n }\n\n &::after {\n top: 50%;\n }\n\n &._-active::before {\n opacity: 0;\n top: -100%;\n }\n\n &._-active::after {\n opacity: 0;\n top: 100%;\n }\n }\n\n figure {\n position: relative;\n display: flex;\n flex-flow: column;\n justify-content: center;\n align-items: center;\n padding: 0;\n\n img {\n width: auto;\n max-width: initial;\n aspect-ratio: auto;\n transition: transform calc(var(--ui-time) * 0.5) ease-in-out;\n -webkit-user-select: none;\n user-select: none;\n }\n }\n\n\n ._click-area {\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n opacity: 0;\n transition: var(--ui-time) ease-in-out;\n }\n\n &._-active {\n ._click-area {\n opacity: 1;\n }\n }\n }\n }\n}\n\n/* The strip: the tiles' band carries the height (set inline), and scroller\n and host follow it instead of framing it. A scrollbar that takes space\n sits inside a scroller's height — with a fixed frame it came out of the\n tiles, whose lower edge was cut off by exactly the bar. In flow, the\n scroller is the band plus whatever its scrollbar needs. */\n:host(._-strip) {\n height: auto;\n}\n\n:host(._-strip) ._scroller {\n position: relative;\n height: auto;\n}\n\n:host(._-strip) ._image-container {\n position: relative;\n flex: none;\n}\n\n/* `imageFit`: the picture takes the tile and either fills it (cover) or\n fits inside it whole (contain). `none` keeps the picture at its own size,\n as above. Top level, because a nested `&` after `:host()` would name the\n host twice. */\n:host(._-fit-cover) ._image-container button._wrapper figure,\n:host(._-fit-cover) ._image-container button._wrapper figure img,\n:host(._-fit-contain) ._image-container button._wrapper figure,\n:host(._-fit-contain) ._image-container button._wrapper figure img {\n width: 100%;\n height: 100%;\n}\n\n:host(._-fit-cover) ._image-container button._wrapper figure img {\n object-fit: cover;\n}\n\n:host(._-fit-contain) ._image-container button._wrapper figure img {\n object-fit: contain;\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
2
+ //# sourceMappingURL=2621.fdb0f39b.iframe.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"2621.1066d712.iframe.bundle.js","mappings":"AAUA","sources":["webpack://moja-work/./libs/ui/src/lib/atoms/image-grid/image-grid-click-area.directive.ts","webpack://moja-work/./libs/ui/src/lib/atoms/image-grid/image-grid.component.ts","webpack://moja-work/./libs/ui/src/lib/atoms/image-grid/image-grid.component.css"],"sourcesContent":["import { __decorate } from \"tslib\";\nimport { Directive, inject, TemplateRef } from '@angular/core';\n/**\n * Marks the `<ng-template>` inside `ui-image-grid` that is the click area —\n * the overlay the grid stamps into every tile. A marker rather than \"the\n * first template in the content\": a caller may project other templates\n * (`*ngIf`, a structural directive of their own), and an unmarked query would\n * pick whichever comes first and stamp foreign markup into the tiles. The\n * name also tells a reader of the call site what the template is for.\n */\nlet UiImageGridClickAreaDirective = class UiImageGridClickAreaDirective {\n /** The template the directive sits on; the grid reads it through this. */\n template = inject((TemplateRef));\n /** Lets the template's implicit context be typed as the grid's. */\n static ngTemplateContextGuard(_directive, \n // The guard's whole job is the type predicate on this parameter.\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _context) {\n return true;\n }\n};\nUiImageGridClickAreaDirective = __decorate([\n Directive({\n selector: 'ng-template[uiImageGridClickArea]',\n })\n], UiImageGridClickAreaDirective);\nexport { UiImageGridClickAreaDirective };\n","import { __decorate, __metadata } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"./image-grid.component.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./image-grid.component.css?ngResource\";\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, contentChild, effect, HostBinding, input, output, signal, TemplateRef, ViewChild, ChangeDetectionStrategy } from '@angular/core';\nimport { uiResizeSignal } from '../../helpers/resize-signal';\nimport { UiImageGridClickAreaDirective, } from './image-grid-click-area.directive';\nimport * as i0 from \"@angular/core\";\n/** Debounce/delay duration in milliseconds used for resize events and grid updates. */\nconst DELAY = 100;\n/**\n * Scrollable image grid that supports configurable columns, gap, overlay styles,\n * single-row mode, a strip of fixed-size tiles in one or more rows, and\n * active-item selection. A click area — the overlay that\n * appears on the active tile and whose second click emits `clickIndex` — is an\n * `<ng-template uiImageGridClickArea>` projected into the tag; the grid stamps\n * it into every tile with the tile's item and index as context.\n */\nlet UiImageGridComponent = class UiImageGridComponent {\n get scrollerHeightValue() {\n return this.strip() ? null : this.scrollerHeight();\n }\n get hostClass() {\n return `_-fit-${this.imageFit()}${this.strip() ? ' _-strip' : ''}`;\n }\n scroller;\n imageContainer;\n clickArea = contentChild(UiImageGridClickAreaDirective, {\n read: (TemplateRef),\n });\n resizeEvent = uiResizeSignal();\n data = input(null);\n /** Total number of items in `data`. */\n dataCount = computed(() => this.data()?.length ?? 0);\n /** Flat index array used to generate placeholder grid cells. */\n dataCountItems = signal([0]);\n debug = input(false);\n singleRow = input(false);\n gap = input(0);\n overlayType = input('default');\n /** CSS modifier class derived from `overlayType`. */\n overlayTypeClass = computed(() => `_-${this.overlayType()}`);\n cols = input(0);\n height = input();\n tileHeight = input();\n tileRows = input(1);\n tileAspect = input('1/1');\n imageFit = input('none');\n action = input(false);\n loaded = input(false);\n setIndex = input(0);\n currentIndex = output();\n clickIndex = output();\n /** Whether the grid is a strip: fixed-size tiles, switched on by `tileHeight`. */\n strip = computed(() => Boolean(this.tileHeight()));\n /**\n * The strip's row count as the layout can take it: a whole number, at\n * least one. Zero rows or half a row cannot be drawn.\n */\n stripRows = computed(() => Math.max(1, Math.floor(this.tileRows()) || 1));\n /** The columns a strip needs to hold every item in its rows. */\n stripCols = computed(() => Math.ceil(this.dataCount() / this.stripRows()));\n /** One row or a strip: both hold exactly their items and never pad. */\n exact = computed(() => this.singleRow() || this.strip());\n /** The strip tile's width in pixels, from its height and aspect. */\n tileWidth = computed(() => {\n const height = this.tileHeight() ?? 0;\n const [w, h] = this.tileAspect().split('/').map(Number);\n const ratio = w > 0 && h > 0 ? w / h : 1;\n return Math.round(height * ratio);\n });\n /**\n * The CSS height of the grid, from `height`, `cols` and `singleRow` — or,\n * in a strip, of the tiles' band alone: the rows and the gaps between\n * them. A scrollbar that takes space comes on top of that, by layout.\n */\n scrollerHeight = computed(() => {\n const height = this.height();\n const cols = this.cols();\n if (this.strip()) {\n const rows = this.stripRows();\n return `${rows * (this.tileHeight() ?? 0) + (rows - 1) * this.gap()}px`;\n }\n if (this.singleRow() && height && cols) {\n return `${height / cols}px`;\n }\n if (height) {\n return `${height}px`;\n }\n return '200px';\n });\n /**\n * Adjusts the effective column count upward when the data count exceeds\n * the square of `cols`. A single row and a strip never pad: the square is\n * the two-dimensional grid's shape, and they hold exactly their items.\n */\n gridColsInternal = computed(() => {\n const counter = this.cols();\n if (this.exact()) {\n return counter;\n }\n if (counter !== 0 && this.dataCount() / counter > counter) {\n return Math.ceil(this.dataCount() / counter);\n }\n else\n return counter;\n });\n /** Index of the currently selected grid cell, or `null` when nothing is selected. */\n active = signal(null);\n /** The tiles whose picture failed to load; they show their alt text instead. */\n broken = signal(new Set());\n /** Controls the initial fade-in visibility; starts hidden until the grid layout is ready. */\n hideDisplay = signal(true);\n /** True when the caller projected a click-area template. */\n clickAreaExist = computed(() => this.clickArea() !== undefined);\n constructor() {\n effect(() => {\n this.gap();\n this.height();\n this.cols();\n this.tileHeight();\n this.tileRows();\n this.tileAspect();\n this.resizeEvent();\n this.updateGrid();\n });\n // New data, new verdicts: a picture that failed under the old list says\n // nothing about the one now standing at its index.\n effect(() => {\n this.data();\n this.broken.set(new Set());\n });\n effect(() => {\n this.setIndex();\n this.scrollToChild(this.setIndex());\n this.active.set(this.setIndex());\n });\n effect(() => {\n this.action();\n this.active.set(null);\n });\n }\n /** Initialises the active index and triggers the first grid update and fader. */\n ngAfterViewInit() {\n this.active.set(this.setIndex());\n this.updateGrid();\n this.fader();\n }\n /** The context a click-area template receives for the tile at `index`. */\n clickAreaContext(index) {\n const item = this.data()?.[index];\n return item ? { $implicit: item, index } : null;\n }\n updateGrid() {\n const scroller = this.scroller?.nativeElement;\n if (scroller) {\n // A strip's scroller has no height of its own: it wraps the band.\n scroller.style.height = this.strip() ? '' : this.scrollerHeight();\n }\n const element = this.imageContainer?.nativeElement;\n if (element && this.dataCount()) {\n const gap = this.gap();\n const strip = this.strip();\n // A row and a strip hold exactly their items; the grid pads to a square.\n const tiles = this.exact()\n ? this.dataCount()\n : this.gridColsInternal() * this.gridColsInternal();\n this.dataCountItems.set(Array.from({ length: tiles }, (_, index) => index + 1));\n const repeatCount = strip\n ? this.stripCols()\n : this.singleRow()\n ? this.dataCount()\n : this.gridColsInternal();\n // The strip's tracks are the tile's own width, so it overflows and\n // scrolls instead of shrinking every tile to fit.\n const track = strip ? `${this.tileWidth()}px` : '1fr';\n // The strip's rows are fixed and it fills column by column: the first\n // tile on top, the second below it, the next on top again.\n const rows = strip\n ? `repeat(${this.stripRows()}, ${this.tileHeight()}px)`\n : '';\n setTimeout(() => {\n element.style.display = 'grid';\n element.style.gap = `${gap}px`;\n element.style.gridTemplateColumns = `repeat(${repeatCount}, ${track})`;\n element.style.gridTemplateRows = rows;\n element.style.gridAutoFlow = strip ? 'column' : '';\n element.style.width = strip ? 'max-content' : '';\n this.applyStylesToChildren();\n }, DELAY);\n }\n }\n calculateGridSize(containerSize) {\n const counterValue = this.cols();\n const gridGapValue = this.gap();\n const scaledSize = containerSize / counterValue;\n const adjustedSize = scaledSize - gridGapValue;\n return Math.ceil(adjustedSize);\n }\n applyStylesToChildren() {\n const element = this.imageContainer?.nativeElement;\n if (element) {\n const strip = this.strip();\n const width = strip\n ? this.tileWidth()\n : this.calculateGridSize(element.offsetWidth ?? 0);\n const height = strip\n ? (this.tileHeight() ?? 0)\n : this.singleRow()\n ? element.offsetHeight\n : this.calculateGridSize(element.offsetHeight ?? 0);\n const applyChildStyles = (child) => {\n child.style.height = `${height}px`;\n child.style.width = `${width}px`;\n };\n element.childNodes.forEach((child) => {\n if (child instanceof HTMLElement) {\n applyChildStyles(child);\n }\n });\n }\n }\n /** Triggers a timed fade-in by briefly hiding the grid and then revealing it. */\n fader() {\n this.hideDisplay.set(true);\n setTimeout(() => {\n this.hideDisplay.set(false);\n }, DELAY * 8);\n }\n scrollToChild(index) {\n const containerElement = this.imageContainer?.nativeElement;\n const scrollerElement = this.scroller?.nativeElement;\n if (!containerElement || !scrollerElement)\n return;\n const targetChild = containerElement.childNodes[index];\n if (!(targetChild instanceof HTMLElement))\n return;\n const scrollOffset = this.calculateScrollOffset(scrollerElement, targetChild);\n scrollerElement.scrollTo({\n left: scrollOffset,\n top: 0,\n });\n }\n /**\n * Where the scroller has to stand so `child` sits in the middle of it.\n *\n * Measured against the SCROLLER, never against the grid inside it: in\n * strip mode the grid is `max-content` wide — every tile there is, far\n * wider than the window it scrolls behind — so half of it is not half of\n * what the reader sees. Taking that as the centre parked every tile near\n * the left edge instead of moving it into the middle.\n */\n calculateScrollOffset(viewport, child) {\n return child.offsetLeft - viewport.clientWidth / 2 + child.offsetWidth / 2;\n }\n /** Selects the cell at `index`, scrolls it into view, and emits selection events if action mode is enabled. */\n useAction(index) {\n if (this.action() && this.imageSrc(index)) {\n if (this.clickAreaExist() && this.active() === index) {\n this.clickIndex.emit(index);\n }\n this.currentIndex.emit(index);\n this.active.set(index);\n this.scrollToChild(index);\n }\n }\n /** Returns an inline `transform: scale(…)` style string for the image at `index`. */\n scale(index) {\n const value = this.data()?.[index]?.src.scale;\n return `transform: scale(${value ?? 1})`;\n }\n /** A picture failed to load: the tile shows its alt text from now on. */\n markBroken(index) {\n this.broken.update((current) => new Set(current).add(index));\n }\n /** Returns the default image URL for the item at `index`. */\n imageSrc(index) {\n return this.data()?.[index]?.src.default;\n }\n /** Returns the alt text for the item at `index`. */\n imageAlt(index) {\n return this.data()?.[index]?.alt;\n }\n /** Returns the title caption for the item at `index`. */\n imageTitle(index) {\n return this.data()?.[index]?.title;\n }\n static ctorParameters = () => [];\n static propDecorators = {\n scrollerHeightValue: [{ type: HostBinding, args: ['style.height',] }],\n hostClass: [{ type: HostBinding, args: ['class',] }],\n scroller: [{ type: ViewChild, args: ['scroller',] }],\n imageContainer: [{ type: ViewChild, args: ['imageContainer',] }],\n clickArea: [{ type: i0.ContentChild, args: [UiImageGridClickAreaDirective, { ...{\n read: (TemplateRef),\n }, isSignal: true },] }],\n data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false, transform: undefined },] }],\n debug: [{ type: i0.Input, args: [{ isSignal: true, alias: \"debug\", required: false, transform: undefined },] }],\n singleRow: [{ type: i0.Input, args: [{ isSignal: true, alias: \"singleRow\", required: false, transform: undefined },] }],\n gap: [{ type: i0.Input, args: [{ isSignal: true, alias: \"gap\", required: false, transform: undefined },] }],\n overlayType: [{ type: i0.Input, args: [{ isSignal: true, alias: \"overlayType\", required: false, transform: undefined },] }],\n cols: [{ type: i0.Input, args: [{ isSignal: true, alias: \"cols\", required: false, transform: undefined },] }],\n height: [{ type: i0.Input, args: [{ isSignal: true, alias: \"height\", required: false, transform: undefined },] }],\n tileHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: \"tileHeight\", required: false, transform: undefined },] }],\n tileRows: [{ type: i0.Input, args: [{ isSignal: true, alias: \"tileRows\", required: false, transform: undefined },] }],\n tileAspect: [{ type: i0.Input, args: [{ isSignal: true, alias: \"tileAspect\", required: false, transform: undefined },] }],\n imageFit: [{ type: i0.Input, args: [{ isSignal: true, alias: \"imageFit\", required: false, transform: undefined },] }],\n action: [{ type: i0.Input, args: [{ isSignal: true, alias: \"action\", required: false, transform: undefined },] }],\n loaded: [{ type: i0.Input, args: [{ isSignal: true, alias: \"loaded\", required: false, transform: undefined },] }],\n setIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: \"setIndex\", required: false, transform: undefined },] }],\n currentIndex: [{ type: i0.Output, args: [\"currentIndex\",] }],\n clickIndex: [{ type: i0.Output, args: [\"clickIndex\",] }]\n };\n};\nUiImageGridComponent = __decorate([\n Component({\n selector: 'ui-image-grid',\n template: __NG_CLI_RESOURCE__0,\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [NgTemplateOutlet],\n styles: [__NG_CLI_RESOURCE__1]\n }),\n __metadata(\"design:paramtypes\", [])\n], UiImageGridComponent);\nexport { UiImageGridComponent };\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n /* The scroller and the grid inside are positioned absolutely; the host is\n their anchor. Without this they climbed to the nearest positioned\n ancestor — an overlay's top edge, in one consumer. */\n position: relative;\n z-index: 0;\n --wrapper-height: 60rem;\n --button-size: 4rem;\n display: flex;\n /* Fills its container by default; the named hooks let a consumer set a fixed\n size without a cascade fight (tickets#241, tickets#251). */\n width: var(--ui-image-grid-width, 100%);\n height: var(--ui-image-grid-height, 100%);\n border-radius: calc(var(--ui-border-width) * 4);\n\n ._scroller {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n width: 100%;\n height: 100%;\n overflow-y: hidden;\n overflow-x: scroll;\n background-color: var(--ui-c-background);\n scroll-behavior: smooth;\n }\n\n ._image-container {\n position: absolute;\n top: 0;\n left: 0;\n display: grid;\n width: 100%;\n height: 100%;\n transition: opacity calc(var(--ui-time) * 0.1) linear;\n\n &._-hide-display {\n opacity: 0;\n }\n\n button._wrapper {\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n gap: calc(var(--ui-spacer) * 0.5);\n align-items: center;\n justify-content: center;\n overflow: hidden;\n transition: scale calc(var(--ui-time) * 0.5) ease-in-out;\n background-color: var(--ui-c-fourthly);\n border: 0;\n\n &._-no-image {\n cursor: default;\n opacity: 0.5;\n }\n\n /* A picture that did not load: its alt text, centred in the tile —\n the same look whatever the fit mode. */\n figure._-broken {\n width: 100%;\n height: 100%;\n justify-content: center;\n\n figcaption {\n padding: calc(var(--ui-spacer) * 0.25);\n text-align: center;\n }\n }\n\n /* The empty state, same arrangement as the image editor's: icon above,\n title below, both dimmed. */\n ._empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: calc(var(--ui-spacer) * 0.25);\n }\n\n &._-default {\n &:not(._-action) {\n cursor: default;\n }\n\n &._-active {\n border: 0.32rem solid var(--ui-c-focus);\n\n img {\n transform: scale(1.1) !important;\n }\n }\n\n &._-action:hover {\n img {\n transform: scale(1.1) !important;\n }\n }\n }\n\n &._-doors {\n &._-active {\n border: 0.32rem solid var(--ui-c-focus);\n }\n\n &._-action:hover {\n img {\n transform: scale(1.1) !important;\n }\n }\n\n &::after,\n &::before {\n z-index: 1;\n content: '\\\\00a0';\n position: absolute;\n left: 0;\n display: flex;\n height: 100%;\n width: 100%;\n background-color: var(--ui-c-background);\n transition: var(--ui-time) ease-in-out;\n opacity: 0.6;\n }\n\n &::before {\n top: -50%;\n z-index: 1;\n }\n\n &::after {\n top: 50%;\n }\n\n &._-active::before {\n opacity: 0;\n top: -100%;\n }\n\n &._-active::after {\n opacity: 0;\n top: 100%;\n }\n }\n\n figure {\n position: relative;\n display: flex;\n flex-flow: column;\n justify-content: center;\n align-items: center;\n padding: 0;\n\n img {\n width: auto;\n max-width: initial;\n aspect-ratio: auto;\n transition: transform calc(var(--ui-time) * 0.5) ease-in-out;\n -webkit-user-select: none;\n user-select: none;\n }\n }\n\n\n ._click-area {\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n opacity: 0;\n transition: var(--ui-time) ease-in-out;\n }\n\n &._-active {\n ._click-area {\n opacity: 1;\n }\n }\n }\n }\n}\n\n/* The strip: the tiles' band carries the height (set inline), and scroller\n and host follow it instead of framing it. A scrollbar that takes space\n sits inside a scroller's height — with a fixed frame it came out of the\n tiles, whose lower edge was cut off by exactly the bar. In flow, the\n scroller is the band plus whatever its scrollbar needs. */\n:host(._-strip) {\n height: auto;\n}\n\n:host(._-strip) ._scroller {\n position: relative;\n height: auto;\n}\n\n:host(._-strip) ._image-container {\n position: relative;\n flex: none;\n}\n\n/* \\`imageFit\\`: the picture takes the tile and either fills it (cover) or\n fits inside it whole (contain). \\`none\\` keeps the picture at its own size,\n as above. Top level, because a nested \\`&\\` after \\`:host()\\` would name the\n host twice. */\n:host(._-fit-cover) ._image-container button._wrapper figure,\n:host(._-fit-cover) ._image-container button._wrapper figure img,\n:host(._-fit-contain) ._image-container button._wrapper figure,\n:host(._-fit-contain) ._image-container button._wrapper figure img {\n width: 100%;\n height: 100%;\n}\n\n:host(._-fit-cover) ._image-container button._wrapper figure img {\n object-fit: cover;\n}\n\n:host(._-fit-contain) ._image-container button._wrapper figure img {\n object-fit: contain;\n}\n}\n`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n"],"names":[],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4555],{"./libs/ui/guide sync \\.json$"(module,__unused_webpack_exports,__webpack_require__){const map={"./app-shell.json":"./libs/ui/guide/app-shell.json","./burger-menu.json":"./libs/ui/guide/burger-menu.json","./form-basics.json":"./libs/ui/guide/form-basics.json","./image-gallery.json":"./libs/ui/guide/image-gallery.json","./table-edit-focus.json":"./libs/ui/guide/table-edit-focus.json","./translations.json":"./libs/ui/guide/translations.json","./ui-autocomplete.json":"./libs/ui/guide/ui-autocomplete.json","./ui-background.json":"./libs/ui/guide/ui-background.json","./ui-barcode.json":"./libs/ui/guide/ui-barcode.json","./ui-buzzer.json":"./libs/ui/guide/ui-buzzer.json","./ui-card.json":"./libs/ui/guide/ui-card.json","./ui-cdk-drag-drop-splitter.json":"./libs/ui/guide/ui-cdk-drag-drop-splitter.json","./ui-cdk-table-wrapper.json":"./libs/ui/guide/ui-cdk-table-wrapper.json","./ui-chart.json":"./libs/ui/guide/ui-chart.json","./ui-checkbox.json":"./libs/ui/guide/ui-checkbox.json","./ui-chip.json":"./libs/ui/guide/ui-chip.json","./ui-clock.json":"./libs/ui/guide/ui-clock.json","./ui-copy-value.json":"./libs/ui/guide/ui-copy-value.json","./ui-image-editor.json":"./libs/ui/guide/ui-image-editor.json","./ui-image-grid.json":"./libs/ui/guide/ui-image-grid.json","./ui-image-slider.json":"./libs/ui/guide/ui-image-slider.json","./ui-inline-spinner.json":"./libs/ui/guide/ui-inline-spinner.json","./ui-input.json":"./libs/ui/guide/ui-input.json","./ui-lang-selector.json":"./libs/ui/guide/ui-lang-selector.json","./ui-layout-main.json":"./libs/ui/guide/ui-layout-main.json","./ui-layout-media-screen.json":"./libs/ui/guide/ui-layout-media-screen.json","./ui-layout-nav.json":"./libs/ui/guide/ui-layout-nav.json","./ui-layout-overlay-header.json":"./libs/ui/guide/ui-layout-overlay-header.json","./ui-layout-overlay.json":"./libs/ui/guide/ui-layout-overlay.json","./ui-layout-spinner.json":"./libs/ui/guide/ui-layout-spinner.json","./ui-layout-splitter.json":"./libs/ui/guide/ui-layout-splitter.json","./ui-layout-tabs.json":"./libs/ui/guide/ui-layout-tabs.json","./ui-layout-top-scroll-bottom.json":"./libs/ui/guide/ui-layout-top-scroll-bottom.json","./ui-mosaic.json":"./libs/ui/guide/ui-mosaic.json","./ui-placeholder.json":"./libs/ui/guide/ui-placeholder.json","./ui-qr-code.json":"./libs/ui/guide/ui-qr-code.json","./ui-rating.json":"./libs/ui/guide/ui-rating.json","./ui-reader-doc.json":"./libs/ui/guide/ui-reader-doc.json","./ui-slider.json":"./libs/ui/guide/ui-slider.json","./ui-switch.json":"./libs/ui/guide/ui-switch.json","./ui-text-animate.json":"./libs/ui/guide/ui-text-animate.json","./ui-thumb.json":"./libs/ui/guide/ui-thumb.json","./ui-timer.json":"./libs/ui/guide/ui-timer.json","./ui-typewriter.json":"./libs/ui/guide/ui-typewriter.json","libs/ui/guide/app-shell.json":"./libs/ui/guide/app-shell.json","libs/ui/guide/burger-menu.json":"./libs/ui/guide/burger-menu.json","libs/ui/guide/form-basics.json":"./libs/ui/guide/form-basics.json","libs/ui/guide/image-gallery.json":"./libs/ui/guide/image-gallery.json","libs/ui/guide/table-edit-focus.json":"./libs/ui/guide/table-edit-focus.json","libs/ui/guide/translations.json":"./libs/ui/guide/translations.json","libs/ui/guide/ui-autocomplete.json":"./libs/ui/guide/ui-autocomplete.json","libs/ui/guide/ui-background.json":"./libs/ui/guide/ui-background.json","libs/ui/guide/ui-barcode.json":"./libs/ui/guide/ui-barcode.json","libs/ui/guide/ui-buzzer.json":"./libs/ui/guide/ui-buzzer.json","libs/ui/guide/ui-card.json":"./libs/ui/guide/ui-card.json","libs/ui/guide/ui-cdk-drag-drop-splitter.json":"./libs/ui/guide/ui-cdk-drag-drop-splitter.json","libs/ui/guide/ui-cdk-table-wrapper.json":"./libs/ui/guide/ui-cdk-table-wrapper.json","libs/ui/guide/ui-chart.json":"./libs/ui/guide/ui-chart.json","libs/ui/guide/ui-checkbox.json":"./libs/ui/guide/ui-checkbox.json","libs/ui/guide/ui-chip.json":"./libs/ui/guide/ui-chip.json","libs/ui/guide/ui-clock.json":"./libs/ui/guide/ui-clock.json","libs/ui/guide/ui-copy-value.json":"./libs/ui/guide/ui-copy-value.json","libs/ui/guide/ui-image-editor.json":"./libs/ui/guide/ui-image-editor.json","libs/ui/guide/ui-image-grid.json":"./libs/ui/guide/ui-image-grid.json","libs/ui/guide/ui-image-slider.json":"./libs/ui/guide/ui-image-slider.json","libs/ui/guide/ui-inline-spinner.json":"./libs/ui/guide/ui-inline-spinner.json","libs/ui/guide/ui-input.json":"./libs/ui/guide/ui-input.json","libs/ui/guide/ui-lang-selector.json":"./libs/ui/guide/ui-lang-selector.json","libs/ui/guide/ui-layout-main.json":"./libs/ui/guide/ui-layout-main.json","libs/ui/guide/ui-layout-media-screen.json":"./libs/ui/guide/ui-layout-media-screen.json","libs/ui/guide/ui-layout-nav.json":"./libs/ui/guide/ui-layout-nav.json","libs/ui/guide/ui-layout-overlay-header.json":"./libs/ui/guide/ui-layout-overlay-header.json","libs/ui/guide/ui-layout-overlay.json":"./libs/ui/guide/ui-layout-overlay.json","libs/ui/guide/ui-layout-spinner.json":"./libs/ui/guide/ui-layout-spinner.json","libs/ui/guide/ui-layout-splitter.json":"./libs/ui/guide/ui-layout-splitter.json","libs/ui/guide/ui-layout-tabs.json":"./libs/ui/guide/ui-layout-tabs.json","libs/ui/guide/ui-layout-top-scroll-bottom.json":"./libs/ui/guide/ui-layout-top-scroll-bottom.json","libs/ui/guide/ui-mosaic.json":"./libs/ui/guide/ui-mosaic.json","libs/ui/guide/ui-placeholder.json":"./libs/ui/guide/ui-placeholder.json","libs/ui/guide/ui-qr-code.json":"./libs/ui/guide/ui-qr-code.json","libs/ui/guide/ui-rating.json":"./libs/ui/guide/ui-rating.json","libs/ui/guide/ui-reader-doc.json":"./libs/ui/guide/ui-reader-doc.json","libs/ui/guide/ui-slider.json":"./libs/ui/guide/ui-slider.json","libs/ui/guide/ui-switch.json":"./libs/ui/guide/ui-switch.json","libs/ui/guide/ui-text-animate.json":"./libs/ui/guide/ui-text-animate.json","libs/ui/guide/ui-thumb.json":"./libs/ui/guide/ui-thumb.json","libs/ui/guide/ui-timer.json":"./libs/ui/guide/ui-timer.json","libs/ui/guide/ui-typewriter.json":"./libs/ui/guide/ui-typewriter.json"};function webpackContext(req){const id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){const e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id="./libs/ui/guide sync \\.json$"},"./libs/ui/.storybook/blocks/guide.entries.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";const context=__webpack_require__("./libs/ui/guide sync \\.json$"),guideEntries=context.keys().filter(key=>key.startsWith("./")).map(key=>{const entry=context(key);return entry.default??entry});if(0===guideEntries.length)throw new Error("guide: libs/ui/guide/ holds no entries — an empty guide is a generator bug, not an empty page.");const subjects=guideEntries.map(entry=>entry.component??entry.situation),twice=subjects.find((subject,index)=>subjects.indexOf(subject)!==index);if(twice)throw new Error(`guide: "${twice}" is listed twice — one entry per subject, or the overview lies about the count.`);__webpack_require__.d(__webpack_exports__,["H",0,guideEntries])},"./libs/ui/.storybook/blocks/guide.model.mjs"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Cc:()=>guideModel,K9:()=>indexRows});var storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/storybook/dist/_browser-chunks/chunk-NULBREPZ.js");function storyHref(story){const cut=story.lastIndexOf("/");if(cut<=0||cut===story.length-1)throw new Error(`guide: story reference "${story}" is not "Title/Export".`);const title=story.slice(0,cut),name=story.slice(cut+1);return`?path=/story/${(0,storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__.Lr)(title,(0,storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__.bE)(name))}`}const subjectOf=entry=>entry.component??entry.situation;function pageOf(entries,subject){const entry=entries.find(e=>subjectOf(e)===subject),story=entry?.shownIn.find(r=>r.story)?.story;return story?(title=story.slice(0,story.lastIndexOf("/")),`?path=/docs/${(0,storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__.aj)(title)}--docs`):null;var title}function guideModel(entry,entries,of){if(!entry||"object"!=typeof entry)throw new Error(`guide: no entry handed to the block for "${of}".`);const subject=subjectOf(entry);if(void 0!==of&&subject!==of)throw new Error(`guide: the block on "${of}" was handed the entry of "${subject}" — wrong import.`);for(const key of["useFor","notFor","shownIn","sources"])if(!Array.isArray(entry[key]))throw new Error(`guide: entry "${subject}" has no "${key}" list.`);if(0===entry.shownIn.length)throw new Error(`guide: entry "${subject}" shows nothing — no proof, no block.`);return{subject,kind:entry.component?"component":"situation",uses:(entry.uses??[]).map(s=>({selector:s,href:pageOf(entries,s)})),useFor:entry.useFor,notFor:entry.notFor,instead:(entry.instead??[]).map(s=>({selector:s,href:pageOf(entries,s)})),note:entry.note??null,shownIn:entry.shownIn.map(r=>r.story?{label:r.story,href:storyHref(r.story)}:{label:r.file,href:null}),sources:entry.sources,reviewed:entry.reviewed}}function indexRows(entries){if(!Array.isArray(entries)||0===entries.length)throw new Error("guide: the overview has no entries — an empty guide is a generator bug, not an empty page.");return entries.map(e=>({subject:subjectOf(e),kind:e.component?"component":"situation",brief:e.useFor[0],href:pageOf(entries,subjectOf(e))})).sort((a,b)=>a.kind===b.kind?a.subject.localeCompare(b.subject):"situation"===a.kind?1:-1)}__webpack_require__.d(__webpack_exports__,["ED",0,entries=>[...new Set(entries.map(e=>e.reviewed))]])},"./libs/ui/guide/app-shell.json"(module){"use strict";module.exports=JSON.parse('{"situation":"app-shell","uses":["ui-layout-main","ui-layout-nav","ui-layout-splitter","ui-layout-tabs"],"useFor":["The four layout components nested by content projection: main holds the nav in its header and the page in its content; a splitter inside the content holds tabs in its left pane. Each slot is a named attribute on your own element."],"notFor":["Overlays — they stand next to the layout, not inside it."],"shownIn":[{"story":"Examples/Layout/Layout"},{"file":"libs/ui/.storybook/demos/examples/layout/docs.mdx"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/.storybook/demos/examples/layout/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/burger-menu.json"(module){"use strict";module.exports=JSON.parse('{"situation":"burger-menu","uses":["ui-layout-overlay","ui-layout-overlay-header"],"useFor":["A navigation drawer behind a burger button: the overlay with direction=\\"right\\", the header with its close, a plain link list in the overlay-content slot; every link click resets the open flag. Backdrop, Escape and the scroll-lock come with the overlay."],"notFor":["The main navigation on a wide screen — that is ui-layout-nav in the main header."],"shownIn":[{"story":"Examples/Burger Menu/BurgerMenu"},{"file":"libs/ui/src/lib/examples/docs.mdx"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/examples/docs.mdx","libs/ui/src/lib/layout/overlay/docs.mdx"],"reviewed":"5f825e82"}')},"./libs/ui/guide/form-basics.json"(module){"use strict";module.exports=JSON.parse('{"situation":"form-basics","uses":["ui-input","ui-checkbox","ui-switch","ui-slider"],"useFor":["Every form in the house: <ui-input [label]=\\"…\\"><input ui-tag class=\\"ui\\" [(ngModel)]=\\"…\\" /></ui-input>. The wrapper brings label and error display, the native control keeps value, validation and type. class=\\"ui\\" on the control; class=\\"ui-flat\\" where it sits inline in a table cell."],"notFor":["A control without the class — it renders unstyled.","A validator written in the app: validators belong in the library."],"shownIn":[{"story":"Styling/Forms/Forms"},{"story":"Forms/Validators/Email"},{"file":"apps/change-me/src/app/slider/slider.component.html"}],"sources":["usage.md (Forms)","libs/ui/src/lib/forms/input/docs.mdx","libs/ui/src/lib/forms/validators/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/image-gallery.json"(module){"use strict";module.exports=JSON.parse('{"situation":"image-gallery","uses":["ui-image-grid","ui-image-slider"],"useFor":["Grid and slider sharing one index: side by side, or the slider created with @if as the zoom — two clicks by design of the grid, the first selects, the second (on the projected uiImageGridClickArea) emits clickIndex."],"notFor":["A single linked preview — ui-thumb."],"shownIn":[{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"},{"file":"apps/website/src/app/content/image-grid/image-grid.component.html"}],"sources":["libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/table-edit-focus.json"(module){"use strict";module.exports=JSON.parse('{"situation":"table-edit-focus","uses":["ui-cdk-table-wrapper","ui-input","ui-checkbox"],"useFor":["An inline-editing table walked by keyboard: the wrapper in inline fixed mode with the uiTableEditFocus directive; fields as ui-flat controls; the app answers uiRowNavigate and uiRowStep — the only two questions the library does not answer itself: may this row open, and what does locked mean — and calls focusCell() after it re-rendered the edit row."],"notFor":["A wrapper without inline mode: the cells shift when a text turns into a field.","Counting positions instead of naming buttons — the edit row carries more buttons than a read row."],"shownIn":[{"story":"Examples/Table Edit Focus/TableEditFocus"},{"story":"Examples/Table Edit Focus/TableEditFocusTall"},{"file":"libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.ts"}],"sources":["libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx","libs/ui/src/lib/cdk/components/table/docs.mdx","media CLAUDE.md (own repo): Keyboard navigation — who owns what","tickets#168","tickets#169"],"reviewed":"2eb766cc"}')},"./libs/ui/guide/translations.json"(module){"use strict";module.exports=JSON.parse('{"situation":"translations","uses":["ui-lang-selector"],"useFor":["Loading the library\'s translation files alongside the app\'s own with Transloco; the selector switches both. The list of every key the library ships is generated from the loaded translation, never written beside it."],"notFor":["Translating inside a computed — it snapshots an empty dictionary on first render; use the pipe, or a translate helper that listens."],"shownIn":[{"story":"Examples/Transloco/LangSelector"},{"story":"Examples/Transloco/AllKeys"},{"file":"libs/ui/.storybook/demos/examples/transloco/docs.mdx"}],"sources":["libs/ui/.storybook/demos/examples/transloco/docs.mdx","media CLAUDE.md (own repo): translate() inside a computed is a snapshot","tickets#182"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-autocomplete.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-autocomplete","useFor":["An input whose suggestions the host supplies — an in-memory list, signals or a backend; minChars and delay keep the requests civil, the component never fetches."],"notFor":["Multi-select, chips, a dropdown of fixed options — a native select inside ui-input does the last.","A waiting state or an empty message: there is none by design."],"instead":["ui-input"],"shownIn":[{"story":"Forms/Autocomplete/Autocomplete"},{"story":"Forms/Autocomplete/Loading"}],"sources":["libs/ui/src/lib/forms/autocomplete/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-background.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-background","useFor":["A patterned surface behind projected content — change-me\'s slider page puts its form on one."],"notFor":["Layout; a plain colour, which is one CSS line."],"shownIn":[{"story":"Atoms/Background/BackgroundExample"},{"file":"apps/change-me/src/app/slider/slider.component.html"}],"sources":["libs/ui/src/lib/atoms/background/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-barcode.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-barcode","useFor":["Drawing an EAN-13 the app already holds — an ISBN, an internal id under its own prefix. Size comes from the outside; a utility class on the tag wins."],"notFor":["Deciding which number to draw, printing it, or reacting to a click — that stays with the app.","Any symbology but EAN-13."],"note":"Wrap it in ui-copy-value to copy the digits; the bars stay the picture.","shownIn":[{"story":"Atoms/Barcode/Default"},{"story":"Atoms/Barcode/Sizes"}],"sources":["libs/ui/src/lib/atoms/barcode/docs.mdx","media frontend (own repo): internal-barcode.spec.ts, tickets#205"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-buzzer.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-buzzer","useFor":["One big, deliberate action — a contact trigger, a push button. The website uses it twice."],"notFor":["Ordinary form buttons: those are button.ui and button.ui-flat."],"shownIn":[{"story":"Atoms/Buzzer/Buzzer"},{"file":"apps/website/src/app/content/contact/contact.component.html"},{"file":"apps/website/src/app/components/push-button/push-button.component.html"}],"sources":["libs/ui/src/lib/atoms/buzzer/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-card.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-card","useFor":["A bounded surface with an optional headline and icon around projected content — a tile, a panel, a summary."],"notFor":["Anything that has to act: copying, linking, expanding. The card is presentational and composes nothing."],"instead":["ui-copy-value"],"note":"For a copyable card, wrap it: <ui-copy-value [value]=\\"…\\"><ui-card …></ui-card></ui-copy-value>. One job per component; composition, not a mode, adds the second.","shownIn":[{"story":"Atoms/Card/Card"}],"sources":["libs/ui/src/lib/atoms/card/docs.mdx","tickets#183"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-cdk-drag-drop-splitter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-cdk-drag-drop-splitter","useFor":["Sorting items into two buckets by drag and drop. Bind both outputs and hand the new arrays back, or nothing moves."],"notFor":["A two-pane layout.","A list that persists itself."],"instead":["ui-layout-splitter"],"shownIn":[{"story":"CDK/Drag And Drop Splitter/DragAndDropSplitter"}],"sources":["libs/ui/src/lib/cdk/components/drag-and-drop-splitter/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-cdk-table-wrapper.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-cdk-table-wrapper","useFor":["Any cdk-table in the house: loading skeleton, hover and focus, header colours, fixed or content layout.","Inline editing: inline fixed plus the uiTableEditFocus directive — the proto keyboard table and the media editor are built this way."],"notFor":["A table without the CDK.","Inline editing without inline mode: the cells shift when text turns into a field."],"shownIn":[{"story":"CDK/Table/Default"},{"story":"CDK/Table/Inline"},{"story":"Examples/Table Edit Focus/TableEditFocus"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"}],"sources":["libs/ui/src/lib/cdk/components/table/docs.mdx","libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx","media CLAUDE.md (own repo): Keyboard navigation — who owns what"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-chart.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-chart","useFor":["A single ring or bar of up to three segments — a share, a progress. The number of colours is the number of rings."],"notFor":["Series, axes, legends, tooltips, more than three parts."],"shownIn":[{"story":"Atoms/Chart/Rings"}],"sources":["libs/ui/src/lib/atoms/chart/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-checkbox.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-checkbox","useFor":["A choice that may be required or validated, inside a form that reports errors.","Flag cells of an editable table row: icons while the row is closed, checkboxes while it is edited — the proto keyboard table does that with display=\\"check-icon\\"."],"notFor":["An always-valid toggle.","The native variant where Safari matters — the self-painted icon variant renders the same everywhere."],"instead":["ui-switch"],"shownIn":[{"story":"Forms/Checkbox/CheckboxIcon"},{"story":"Forms/Checkbox/CheckboxValidation"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"}],"sources":["libs/ui/src/lib/forms/checkbox/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-chip.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-chip","useFor":["A small label that reports presses — a set filter above a table, a genre on a record, a tag that can be thrown away.","Rows of them: the parent holds the list, the chip only says the cross was pressed."],"notFor":["Removing itself: chipRemove is a message, and the list belongs to whoever holds it.","A selection: it has no active state and no group — a set of chips behaving as one choice is a different component.","A form control: it takes no value, no ngModel and no validation."],"shownIn":[{"story":"Forms/Chip/ARow"},{"story":"Forms/Chip/Removable"}],"sources":["libs/ui/src/lib/forms/chip/docs.mdx"],"reviewed":"8e6e0c56"}')},"./libs/ui/guide/ui-clock.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-clock","useFor":["A decorative time display — the website\'s landscape overlay."],"notFor":["A countdown; anything that needs time zones or formats beyond 12/24 h."],"instead":["ui-timer"],"shownIn":[{"story":"Atoms/Clock/Default"},{"file":"apps/website/src/app/parts/landscape-overlay/landscape-overlay.component.html"}],"sources":["libs/ui/src/lib/atoms/clock/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-copy-value.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-copy-value","useFor":["Click-to-copy around anything that shows a value — a swatch, a barcode, a truncated label. What is shown and what is copied are two different things, and this carries the second."],"notFor":["Showing the value: it brings no appearance. Wrap the thing that does."],"note":"With an empty value it leaves the tab order and stops being a control, so it can stand around content unconditionally and be switched on by supplying a value.","shownIn":[{"story":"Atoms/Copy Value/Swatches"},{"story":"Atoms/Copy Value/OwnConfirmation"}],"sources":["libs/ui/src/lib/atoms/copy-value/docs.mdx","tickets#183"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-image-editor.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-editor","useFor":["Uploading and cropping one image to a ratio, result as a JPEG blob — a cover, an avatar. The media cover editor is the overlay variant; the embedded one sits in the flow."],"notFor":["Several images, drawing, filters.","Talking to a backend: it emits, the host uploads."],"shownIn":[{"story":"Molecules/Image Editor/WithImage"},{"story":"Molecules/Image Editor/Overlay"}],"sources":["libs/ui/src/lib/molecules/image-editor/docs.mdx"],"reviewed":"4cc1b639"}')},"./libs/ui/guide/ui-image-grid.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-grid","useFor":["The overview of a picture set, sharing one index with ui-image-slider. Always set cols; the default draws nothing.","A strip — one scrolling row of fixed-size tiles (singleRow with tileHeight and tileAspect): episode stills, a row of posters."],"notFor":["Showing one picture large — that is the slider\'s half."],"instead":["ui-image-slider"],"shownIn":[{"story":"Atoms/Image Grid/Strip"},{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"apps/website/src/app/content/image-grid/image-grid.component.html"}],"sources":["libs/ui/src/lib/atoms/image-grid/docs.mdx","libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"91c43f4c"}')},"./libs/ui/guide/ui-image-slider.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-slider","useFor":["One picture at a time with swipe, drag and zoom; as the zoom of a grid, created with @if only while open."],"notFor":["The overview of a set."],"instead":["ui-image-grid"],"shownIn":[{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/atoms/image-slider/docs.mdx","libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-inline-spinner.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-inline-spinner","useFor":["The loading state of ONE area — a panel waiting for its record, a tile waiting for a picture. It sits in the flow, blocks nothing and covers nothing."],"notFor":["The application\'s global wait: that is ui-layout-spinner, placed once at the root and switched through its service.","Holding the loading state: it shows while it is in the DOM, so an @if around the tag is the switch.","Progress: all three visuals are indeterminate, none of them can show how far along something is."],"shownIn":[{"story":"Atoms/Inline Spinner/Types"},{"story":"Atoms/Inline Spinner/InAPanel"}],"sources":["libs/ui/src/lib/atoms/inline-spinner/docs.mdx"],"reviewed":"8e6e0c56"}')},"./libs/ui/guide/ui-input.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-input","useFor":["Every text-based control in a form: wrap the native input, textarea or select, keep [(ngModel)] on the projected element, class=\\"ui\\" on it.","Inline editing in tables: the projected control takes class=\\"ui-flat\\" instead — invisible at rest, no layout jump. The proto keyboard table has sixteen of them."],"notFor":["Ranges, checkboxes, switches — they have wrappers of their own.","Suggestions while typing."],"instead":["ui-slider","ui-checkbox","ui-switch","ui-autocomplete"],"shownIn":[{"story":"Forms/Input/Input"},{"story":"Forms/Input/InputClearable"},{"file":"apps/change-me/src/app/slider/slider.component.html"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"}],"sources":["libs/ui/src/lib/forms/input/docs.mdx","usage.md (Forms)"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-lang-selector.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-lang-selector","useFor":["The one language switch of an app: one tag brings the service call, the storage and the restore on reload."],"notFor":["More than the two languages it knows; a switch that must not persist."],"shownIn":[{"story":"Examples/Transloco/LangSelector"},{"story":"Atoms/Lang Selector/OwnContent"},{"file":"apps/website/src/app/components/lang-selector/lang-selector.component.html"}],"sources":["libs/ui/src/lib/atoms/lang-selector/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-main.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-main","useFor":["The root of an app shell, once: the nav in its header slot, the page in its content, a footer. The website and change-me both start here."],"notFor":["A panel inside a page — splitter, tabs and top-scroll-bottom are for that."],"shownIn":[{"story":"Examples/Layout/Layout"},{"file":"apps/website/src/app/app.component.html"},{"file":"apps/change-me/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/main/docs.mdx","libs/ui/.storybook/demos/examples/layout/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-media-screen.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-media-screen","useFor":["Once in the app shell, so every breakpoint question goes to UiLayoutMediaScreenService — never a hard-coded width in TypeScript or a breakpoint through Tailwind."],"notFor":["Anything visible; a second instance."],"shownIn":[{"story":"Layout/Media Screen/MediaScreen"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/media-screen/docs.mdx","media CLAUDE.md (own repo): breakpoints never go through Tailwind"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-nav.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-nav","useFor":["The app navigation in the main header, fed by UiLayoutNavService — tab theme for a site, app theme with a home button for a tool."],"notFor":["A second nav in the same layout.","A menu in a drawer — that is the burger recipe with ui-layout-overlay."],"instead":["ui-layout-overlay"],"shownIn":[{"story":"Layout/Nav/TemplateTab"},{"story":"Layout/Nav/TemplateApp"},{"story":"Examples/Layout/Layout"},{"file":"apps/website/src/app/parts/header/header.component.html"}],"sources":["libs/ui/src/lib/layout/nav/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-overlay-header.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-overlay-header","useFor":["The plain header of an overlay: headline plus close, in the overlay-header slot."],"notFor":["A header with anything else in it — write your own bar into the same slot. The media record sheet does, because its close turns into a two-step discard."],"shownIn":[{"story":"Layout/Overlay Header/InsideAnOverlay"},{"story":"Examples/Burger Menu/BurgerMenu"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/overlay/header/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-overlay.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-overlay","useFor":["A drawer or a modal over the page — a burger menu, a sign-in sheet, a record editor. Place it at the app\'s top level next to the layout, bind active in and take activeOutput back. Several may stand at once: Escape and the focus trap belong to the one on top, the last visible overlay in the document."],"notFor":["Anything inside the layout tree.","A tooltip or a popover."],"shownIn":[{"story":"Examples/Burger Menu/BurgerMenu"},{"story":"Layout/Overlay/Overlay"},{"story":"Layout/Overlay/ScrollContainment"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/overlay/docs.mdx","libs/ui/src/lib/examples/docs.mdx"],"reviewed":"5f825e82"}')},"./libs/ui/guide/ui-layout-spinner.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-spinner","useFor":["The one global loading indicator at the app root, driven by UiLayoutSpinnerService from an HTTP interceptor or a page\'s resource — with a delay where a fast answer must not flash it."],"notFor":["A component\'s own loading state — that is ui-inline-spinner, which sits in the flow and blocks nothing; the table wrapper brings its own skeleton. Counting requests or timing out: it shows, waits its delay, animates out and hides, nothing more."],"shownIn":[{"story":"Layout/Spinner/Spinner"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/spinner/docs.mdx"],"reviewed":"068433e9"}')},"./libs/ui/guide/ui-layout-splitter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-splitter","useFor":["A working view with two panes and an action header. The media editor is one: table left, detail right, and the zoom is the handle that widens the table."],"notFor":["Moving items between two lists.","Resizing panes by dragging — it has direction, zoom and fullscreen, no drag handle."],"instead":["ui-cdk-drag-drop-splitter"],"shownIn":[{"story":"Layout/Splitter/Splitter"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/layout/splitter/docs.mdx","media CLAUDE.md (own repo): the 4K table shots and the zoom"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-tabs.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-tabs","useFor":["A few sections of one view switched in place, inside a pane."],"notFor":["Routing between pages.","Remembering the active tab across a reload."],"shownIn":[{"story":"Layout/Tabs/TabsDefault"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/layout/tabs/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-top-scroll-bottom.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-top-scroll-bottom","useFor":["A view whose middle scrolls while header and footer stay — once per route, inside main-content."],"notFor":["Anywhere outside ui-layout-main; a second one in the same view."],"shownIn":[{"story":"Layout/Top Scroll Bottom/TopScrollBottom"}],"sources":["libs/ui/src/lib/layout/top-scroll-bottom/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-mosaic.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-mosaic","useFor":["A decorative tile field behind a page or over a picture — placed with CSS, given a box."],"notFor":["Anything clickable (pointer events are off).","An element in the flow without a height — it renders nothing, because its tile count comes from its box."],"shownIn":[{"story":"Atoms/Mosaic/Images"},{"story":"Atoms/Mosaic/OverImage"}],"sources":["libs/ui/src/lib/atoms/mosaic/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-placeholder.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-placeholder","useFor":["Filler with visible mass in stories and examples, sized from the outside (class=\\"h-64\\") — so a reader can tell a stand-in from a component that failed to render."],"notFor":["Product UI. It is scenery for documentation."],"shownIn":[{"story":"Atoms/Placeholder/Sizes"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/atoms/placeholder/docs.mdx","agents.md (Storybook Guidelines: filler needs visible mass)"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-qr-code.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-qr-code","useFor":["A URL or a short text as a scannable code. M is the ordinary level; raise it for small prints or surfaces that get handled."],"notFor":["Payloads past the version-40 capacity at the chosen level; kanji or ECI encodings."],"shownIn":[{"story":"Atoms/QR Code/Default"},{"story":"Atoms/QR Code/Levels"}],"sources":["libs/ui/src/lib/atoms/qr-code/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-rating.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-rating","useFor":["Displaying a rating as filled icons — read-only, any Material glyph, colours and size as CSS variables."],"notFor":["Collecting a rating: it takes no input from the reader."],"shownIn":[{"story":"Atoms/Rating/Rating"}],"sources":["libs/ui/src/lib/atoms/rating/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-reader-doc.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-reader-doc","useFor":["Rendering a Markdown string in the house design — the website\'s content pages do. Whoever fetches, caches and picks the language stands in front of it."],"notFor":["Documents whose raw HTML must survive: it is discarded, counted and named on the page."],"shownIn":[{"story":"Atoms/ReaderDoc/Default"},{"story":"Atoms/ReaderDoc/DroppedMarkup"},{"story":"Atoms/ReaderDoc/Emphasis"},{"file":"apps/website/src/app/content/content.component.html"}],"sources":["libs/ui/src/lib/atoms/reader-doc/docs.mdx"],"reviewed":"2ae02124"}')},"./libs/ui/guide/ui-slider.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-slider","useFor":["A number or a min–max span the reader drags until it looks right."],"notFor":["A value the reader should type exactly — ui-input with type=\\"number\\"."],"instead":["ui-input"],"shownIn":[{"story":"Forms/Slider/Slider"},{"story":"Forms/Slider/Range"}],"sources":["libs/ui/src/lib/forms/slider/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-switch.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-switch","useFor":["A deliberate on/off decision that takes effect at once and is valid either way — a setting, a filter, a mode."],"notFor":["A choice that can be required or invalid, such as a consent."],"instead":["ui-checkbox"],"shownIn":[{"story":"Forms/Switch/Switch"},{"story":"Styling/Forms/Forms"}],"sources":["libs/ui/src/lib/forms/switch/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-text-animate.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-text-animate","useFor":["A headline that animates letter by letter; clip on the container when a variant travels in from outside."],"notFor":["Body text or anything longer than a phrase."],"shownIn":[{"story":"Atoms/Text Animate/TextAnimate"},{"file":"apps/change-me/src/app/slider/slider.component.html"}],"sources":["libs/ui/src/lib/atoms/text-animate/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-thumb.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-thumb","useFor":["A linked preview image with a caption — playlist tiles, news, references on the website. Place it in a grid cell or give it a width."],"notFor":["A gallery of pictures sharing a selection.","An image without a link — a plain <img> does that."],"instead":["ui-image-grid"],"shownIn":[{"story":"Atoms/Thumb/Thumb"},{"story":"Atoms/Thumb/ThumbInternalLink"},{"file":"apps/website/src/app/content/youtube/youtube.component.html"},{"file":"apps/website/src/app/components/news/display/display.component.html"}],"sources":["libs/ui/src/lib/atoms/thumb/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-timer.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-timer","useFor":["A countdown with a finished event; project the words that stand at zero, in your language."],"notFor":["Showing the time of day."],"instead":["ui-clock"],"shownIn":[{"story":"Atoms/Timer/Timer"}],"sources":["libs/ui/src/lib/atoms/timer/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-typewriter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-typewriter","useFor":["A line of text that types itself, optionally with a keystroke sound — the website\'s platformer intro."],"notFor":["Body text; a loop — a second sentence is a new run."],"shownIn":[{"story":"Atoms/Typewriter/Typewriter"},{"file":"apps/website/src/app/components/platformer/platformer.component.html"}],"sources":["libs/ui/src/lib/atoms/typewriter/docs.mdx"],"reviewed":"85173725"}')}}]);
2
- //# sourceMappingURL=4555.767c4a26.iframe.bundle.js.map
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4555],{"./libs/ui/guide sync \\.json$"(module,__unused_webpack_exports,__webpack_require__){const map={"./app-shell.json":"./libs/ui/guide/app-shell.json","./burger-menu.json":"./libs/ui/guide/burger-menu.json","./form-basics.json":"./libs/ui/guide/form-basics.json","./image-gallery.json":"./libs/ui/guide/image-gallery.json","./table-edit-focus.json":"./libs/ui/guide/table-edit-focus.json","./translations.json":"./libs/ui/guide/translations.json","./ui-autocomplete.json":"./libs/ui/guide/ui-autocomplete.json","./ui-background.json":"./libs/ui/guide/ui-background.json","./ui-barcode.json":"./libs/ui/guide/ui-barcode.json","./ui-buzzer.json":"./libs/ui/guide/ui-buzzer.json","./ui-card.json":"./libs/ui/guide/ui-card.json","./ui-cdk-drag-drop-splitter.json":"./libs/ui/guide/ui-cdk-drag-drop-splitter.json","./ui-cdk-table-wrapper.json":"./libs/ui/guide/ui-cdk-table-wrapper.json","./ui-chart.json":"./libs/ui/guide/ui-chart.json","./ui-checkbox.json":"./libs/ui/guide/ui-checkbox.json","./ui-chip.json":"./libs/ui/guide/ui-chip.json","./ui-clock.json":"./libs/ui/guide/ui-clock.json","./ui-copy-value.json":"./libs/ui/guide/ui-copy-value.json","./ui-image-editor.json":"./libs/ui/guide/ui-image-editor.json","./ui-image-grid.json":"./libs/ui/guide/ui-image-grid.json","./ui-image-slider.json":"./libs/ui/guide/ui-image-slider.json","./ui-inline-spinner.json":"./libs/ui/guide/ui-inline-spinner.json","./ui-input.json":"./libs/ui/guide/ui-input.json","./ui-lang-selector.json":"./libs/ui/guide/ui-lang-selector.json","./ui-layout-main.json":"./libs/ui/guide/ui-layout-main.json","./ui-layout-media-screen.json":"./libs/ui/guide/ui-layout-media-screen.json","./ui-layout-nav.json":"./libs/ui/guide/ui-layout-nav.json","./ui-layout-overlay-header.json":"./libs/ui/guide/ui-layout-overlay-header.json","./ui-layout-overlay.json":"./libs/ui/guide/ui-layout-overlay.json","./ui-layout-spinner.json":"./libs/ui/guide/ui-layout-spinner.json","./ui-layout-splitter.json":"./libs/ui/guide/ui-layout-splitter.json","./ui-layout-tabs.json":"./libs/ui/guide/ui-layout-tabs.json","./ui-layout-top-scroll-bottom.json":"./libs/ui/guide/ui-layout-top-scroll-bottom.json","./ui-mosaic.json":"./libs/ui/guide/ui-mosaic.json","./ui-placeholder.json":"./libs/ui/guide/ui-placeholder.json","./ui-qr-code.json":"./libs/ui/guide/ui-qr-code.json","./ui-rating.json":"./libs/ui/guide/ui-rating.json","./ui-reader-doc.json":"./libs/ui/guide/ui-reader-doc.json","./ui-slider.json":"./libs/ui/guide/ui-slider.json","./ui-switch.json":"./libs/ui/guide/ui-switch.json","./ui-text-animate.json":"./libs/ui/guide/ui-text-animate.json","./ui-thumb.json":"./libs/ui/guide/ui-thumb.json","./ui-timer.json":"./libs/ui/guide/ui-timer.json","./ui-typewriter.json":"./libs/ui/guide/ui-typewriter.json","libs/ui/guide/app-shell.json":"./libs/ui/guide/app-shell.json","libs/ui/guide/burger-menu.json":"./libs/ui/guide/burger-menu.json","libs/ui/guide/form-basics.json":"./libs/ui/guide/form-basics.json","libs/ui/guide/image-gallery.json":"./libs/ui/guide/image-gallery.json","libs/ui/guide/table-edit-focus.json":"./libs/ui/guide/table-edit-focus.json","libs/ui/guide/translations.json":"./libs/ui/guide/translations.json","libs/ui/guide/ui-autocomplete.json":"./libs/ui/guide/ui-autocomplete.json","libs/ui/guide/ui-background.json":"./libs/ui/guide/ui-background.json","libs/ui/guide/ui-barcode.json":"./libs/ui/guide/ui-barcode.json","libs/ui/guide/ui-buzzer.json":"./libs/ui/guide/ui-buzzer.json","libs/ui/guide/ui-card.json":"./libs/ui/guide/ui-card.json","libs/ui/guide/ui-cdk-drag-drop-splitter.json":"./libs/ui/guide/ui-cdk-drag-drop-splitter.json","libs/ui/guide/ui-cdk-table-wrapper.json":"./libs/ui/guide/ui-cdk-table-wrapper.json","libs/ui/guide/ui-chart.json":"./libs/ui/guide/ui-chart.json","libs/ui/guide/ui-checkbox.json":"./libs/ui/guide/ui-checkbox.json","libs/ui/guide/ui-chip.json":"./libs/ui/guide/ui-chip.json","libs/ui/guide/ui-clock.json":"./libs/ui/guide/ui-clock.json","libs/ui/guide/ui-copy-value.json":"./libs/ui/guide/ui-copy-value.json","libs/ui/guide/ui-image-editor.json":"./libs/ui/guide/ui-image-editor.json","libs/ui/guide/ui-image-grid.json":"./libs/ui/guide/ui-image-grid.json","libs/ui/guide/ui-image-slider.json":"./libs/ui/guide/ui-image-slider.json","libs/ui/guide/ui-inline-spinner.json":"./libs/ui/guide/ui-inline-spinner.json","libs/ui/guide/ui-input.json":"./libs/ui/guide/ui-input.json","libs/ui/guide/ui-lang-selector.json":"./libs/ui/guide/ui-lang-selector.json","libs/ui/guide/ui-layout-main.json":"./libs/ui/guide/ui-layout-main.json","libs/ui/guide/ui-layout-media-screen.json":"./libs/ui/guide/ui-layout-media-screen.json","libs/ui/guide/ui-layout-nav.json":"./libs/ui/guide/ui-layout-nav.json","libs/ui/guide/ui-layout-overlay-header.json":"./libs/ui/guide/ui-layout-overlay-header.json","libs/ui/guide/ui-layout-overlay.json":"./libs/ui/guide/ui-layout-overlay.json","libs/ui/guide/ui-layout-spinner.json":"./libs/ui/guide/ui-layout-spinner.json","libs/ui/guide/ui-layout-splitter.json":"./libs/ui/guide/ui-layout-splitter.json","libs/ui/guide/ui-layout-tabs.json":"./libs/ui/guide/ui-layout-tabs.json","libs/ui/guide/ui-layout-top-scroll-bottom.json":"./libs/ui/guide/ui-layout-top-scroll-bottom.json","libs/ui/guide/ui-mosaic.json":"./libs/ui/guide/ui-mosaic.json","libs/ui/guide/ui-placeholder.json":"./libs/ui/guide/ui-placeholder.json","libs/ui/guide/ui-qr-code.json":"./libs/ui/guide/ui-qr-code.json","libs/ui/guide/ui-rating.json":"./libs/ui/guide/ui-rating.json","libs/ui/guide/ui-reader-doc.json":"./libs/ui/guide/ui-reader-doc.json","libs/ui/guide/ui-slider.json":"./libs/ui/guide/ui-slider.json","libs/ui/guide/ui-switch.json":"./libs/ui/guide/ui-switch.json","libs/ui/guide/ui-text-animate.json":"./libs/ui/guide/ui-text-animate.json","libs/ui/guide/ui-thumb.json":"./libs/ui/guide/ui-thumb.json","libs/ui/guide/ui-timer.json":"./libs/ui/guide/ui-timer.json","libs/ui/guide/ui-typewriter.json":"./libs/ui/guide/ui-typewriter.json"};function webpackContext(req){const id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){const e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id="./libs/ui/guide sync \\.json$"},"./libs/ui/.storybook/blocks/guide.entries.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";const context=__webpack_require__("./libs/ui/guide sync \\.json$"),guideEntries=context.keys().filter(key=>key.startsWith("./")).map(key=>{const entry=context(key);return entry.default??entry});if(0===guideEntries.length)throw new Error("guide: libs/ui/guide/ holds no entries — an empty guide is a generator bug, not an empty page.");const subjects=guideEntries.map(entry=>entry.component??entry.situation),twice=subjects.find((subject,index)=>subjects.indexOf(subject)!==index);if(twice)throw new Error(`guide: "${twice}" is listed twice — one entry per subject, or the overview lies about the count.`);__webpack_require__.d(__webpack_exports__,["H",0,guideEntries])},"./libs/ui/.storybook/blocks/guide.model.mjs"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Cc:()=>guideModel,K9:()=>indexRows});var storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/storybook/dist/_browser-chunks/chunk-NULBREPZ.js");function storyHref(story){const cut=story.lastIndexOf("/");if(cut<=0||cut===story.length-1)throw new Error(`guide: story reference "${story}" is not "Title/Export".`);const title=story.slice(0,cut),name=story.slice(cut+1);return`?path=/story/${(0,storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__.Lr)(title,(0,storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__.bE)(name))}`}const subjectOf=entry=>entry.component??entry.situation;function pageOf(entries,subject){const entry=entries.find(e=>subjectOf(e)===subject),story=entry?.shownIn.find(r=>r.story)?.story;return story?(title=story.slice(0,story.lastIndexOf("/")),`?path=/docs/${(0,storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__.aj)(title)}--docs`):null;var title}function guideModel(entry,entries,of){if(!entry||"object"!=typeof entry)throw new Error(`guide: no entry handed to the block for "${of}".`);const subject=subjectOf(entry);if(void 0!==of&&subject!==of)throw new Error(`guide: the block on "${of}" was handed the entry of "${subject}" — wrong import.`);for(const key of["useFor","notFor","shownIn","sources"])if(!Array.isArray(entry[key]))throw new Error(`guide: entry "${subject}" has no "${key}" list.`);if(0===entry.shownIn.length)throw new Error(`guide: entry "${subject}" shows nothing — no proof, no block.`);return{subject,kind:entry.component?"component":"situation",uses:(entry.uses??[]).map(s=>({selector:s,href:pageOf(entries,s)})),useFor:entry.useFor,notFor:entry.notFor,instead:(entry.instead??[]).map(s=>({selector:s,href:pageOf(entries,s)})),note:entry.note??null,shownIn:entry.shownIn.map(r=>r.story?{label:r.story,href:storyHref(r.story)}:{label:r.file,href:null}),sources:entry.sources,reviewed:entry.reviewed}}function indexRows(entries){if(!Array.isArray(entries)||0===entries.length)throw new Error("guide: the overview has no entries — an empty guide is a generator bug, not an empty page.");return entries.map(e=>({subject:subjectOf(e),kind:e.component?"component":"situation",brief:e.useFor[0],href:pageOf(entries,subjectOf(e))})).sort((a,b)=>a.kind===b.kind?a.subject.localeCompare(b.subject):"situation"===a.kind?1:-1)}__webpack_require__.d(__webpack_exports__,["ED",0,entries=>[...new Set(entries.map(e=>e.reviewed))]])},"./libs/ui/guide/app-shell.json"(module){"use strict";module.exports=JSON.parse('{"situation":"app-shell","uses":["ui-layout-main","ui-layout-nav","ui-layout-splitter","ui-layout-tabs"],"useFor":["The four layout components nested by content projection: main holds the nav in its header and the page in its content; a splitter inside the content holds tabs in its left pane. Each slot is a named attribute on your own element."],"notFor":["Overlays — they stand next to the layout, not inside it."],"shownIn":[{"story":"Examples/Layout/Layout"},{"file":"libs/ui/.storybook/demos/examples/layout/docs.mdx"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/.storybook/demos/examples/layout/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/burger-menu.json"(module){"use strict";module.exports=JSON.parse('{"situation":"burger-menu","uses":["ui-layout-overlay","ui-layout-overlay-header"],"useFor":["A navigation drawer behind a burger button: the overlay with direction=\\"right\\", the header with its close, a plain link list in the overlay-content slot; every link click resets the open flag. Backdrop, Escape and the scroll-lock come with the overlay."],"notFor":["The main navigation on a wide screen — that is ui-layout-nav in the main header."],"shownIn":[{"story":"Examples/Burger Menu/BurgerMenu"},{"file":"libs/ui/src/lib/examples/docs.mdx"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/examples/docs.mdx","libs/ui/src/lib/layout/overlay/docs.mdx"],"reviewed":"5f825e82"}')},"./libs/ui/guide/form-basics.json"(module){"use strict";module.exports=JSON.parse('{"situation":"form-basics","uses":["ui-input","ui-checkbox","ui-switch","ui-slider"],"useFor":["Every form in the house: <ui-input [label]=\\"…\\"><input ui-tag class=\\"ui\\" [(ngModel)]=\\"…\\" /></ui-input>. The wrapper brings label and error display, the native control keeps value, validation and type. class=\\"ui\\" on the control; class=\\"ui-flat\\" where it sits inline in a table cell."],"notFor":["A control without the class — it renders unstyled.","A validator written in the app: validators belong in the library."],"shownIn":[{"story":"Styling/Forms/Forms"},{"story":"Forms/Validators/Email"},{"file":"apps/change-me/src/app/slider/slider.component.html"}],"sources":["usage.md (Forms)","libs/ui/src/lib/forms/input/docs.mdx","libs/ui/src/lib/forms/validators/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/image-gallery.json"(module){"use strict";module.exports=JSON.parse('{"situation":"image-gallery","uses":["ui-image-grid","ui-image-slider"],"useFor":["Grid and slider sharing one index: side by side, or the slider created with @if as the zoom — two clicks by design of the grid, the first selects, the second (on the projected uiImageGridClickArea) emits clickIndex."],"notFor":["A single linked preview — ui-thumb."],"shownIn":[{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"},{"file":"apps/website/src/app/content/image-grid/image-grid.component.html"}],"sources":["libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"1ecebedd"}')},"./libs/ui/guide/table-edit-focus.json"(module){"use strict";module.exports=JSON.parse('{"situation":"table-edit-focus","uses":["ui-cdk-table-wrapper","ui-input","ui-checkbox"],"useFor":["An inline-editing table walked by keyboard: the wrapper in inline fixed mode with the uiTableEditFocus directive; fields as ui-flat controls; the app answers uiRowNavigate and uiRowStep — the only two questions the library does not answer itself: may this row open, and what does locked mean — and calls focusCell() after it re-rendered the edit row."],"notFor":["A wrapper without inline mode: the cells shift when a text turns into a field.","Counting positions instead of naming buttons — the edit row carries more buttons than a read row."],"shownIn":[{"story":"Examples/Table Edit Focus/TableEditFocus"},{"story":"Examples/Table Edit Focus/TableEditFocusTall"},{"file":"libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.ts"}],"sources":["libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx","libs/ui/src/lib/cdk/components/table/docs.mdx","media CLAUDE.md (own repo): Keyboard navigation — who owns what","tickets#168","tickets#169"],"reviewed":"2eb766cc"}')},"./libs/ui/guide/translations.json"(module){"use strict";module.exports=JSON.parse('{"situation":"translations","uses":["ui-lang-selector"],"useFor":["Loading the library\'s translation files alongside the app\'s own with Transloco; the selector switches both. The list of every key the library ships is generated from the loaded translation, never written beside it."],"notFor":["Translating inside a computed — it snapshots an empty dictionary on first render; use the pipe, or a translate helper that listens."],"shownIn":[{"story":"Examples/Transloco/LangSelector"},{"story":"Examples/Transloco/AllKeys"},{"file":"libs/ui/.storybook/demos/examples/transloco/docs.mdx"}],"sources":["libs/ui/.storybook/demos/examples/transloco/docs.mdx","media CLAUDE.md (own repo): translate() inside a computed is a snapshot","tickets#182"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-autocomplete.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-autocomplete","useFor":["An input whose suggestions the host supplies — an in-memory list, signals or a backend; minChars and delay keep the requests civil, the component never fetches."],"notFor":["Multi-select, chips, a dropdown of fixed options — a native select inside ui-input does the last.","A waiting state or an empty message: there is none by design."],"instead":["ui-input"],"shownIn":[{"story":"Forms/Autocomplete/Autocomplete"},{"story":"Forms/Autocomplete/Loading"}],"sources":["libs/ui/src/lib/forms/autocomplete/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-background.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-background","useFor":["A patterned surface behind projected content — change-me\'s slider page puts its form on one."],"notFor":["Layout; a plain colour, which is one CSS line."],"shownIn":[{"story":"Atoms/Background/BackgroundExample"},{"file":"apps/change-me/src/app/slider/slider.component.html"}],"sources":["libs/ui/src/lib/atoms/background/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-barcode.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-barcode","useFor":["Drawing an EAN-13 the app already holds — an ISBN, an internal id under its own prefix. Size comes from the outside; a utility class on the tag wins."],"notFor":["Deciding which number to draw, printing it, or reacting to a click — that stays with the app.","Any symbology but EAN-13."],"note":"Wrap it in ui-copy-value to copy the digits; the bars stay the picture.","shownIn":[{"story":"Atoms/Barcode/Default"},{"story":"Atoms/Barcode/Sizes"}],"sources":["libs/ui/src/lib/atoms/barcode/docs.mdx","media frontend (own repo): internal-barcode.spec.ts, tickets#205"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-buzzer.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-buzzer","useFor":["One big, deliberate action — a contact trigger, a push button. The website uses it twice."],"notFor":["Ordinary form buttons: those are button.ui and button.ui-flat."],"shownIn":[{"story":"Atoms/Buzzer/Buzzer"},{"file":"apps/website/src/app/content/contact/contact.component.html"},{"file":"apps/website/src/app/components/push-button/push-button.component.html"}],"sources":["libs/ui/src/lib/atoms/buzzer/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-card.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-card","useFor":["A bounded surface with an optional headline and icon around projected content — a tile, a panel, a summary."],"notFor":["Anything that has to act: copying, linking, expanding. The card is presentational and composes nothing."],"instead":["ui-copy-value"],"note":"For a copyable card, wrap it: <ui-copy-value [value]=\\"…\\"><ui-card …></ui-card></ui-copy-value>. One job per component; composition, not a mode, adds the second.","shownIn":[{"story":"Atoms/Card/Card"}],"sources":["libs/ui/src/lib/atoms/card/docs.mdx","tickets#183"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-cdk-drag-drop-splitter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-cdk-drag-drop-splitter","useFor":["Sorting items into two buckets by drag and drop. Bind both outputs and hand the new arrays back, or nothing moves."],"notFor":["A two-pane layout.","A list that persists itself."],"instead":["ui-layout-splitter"],"shownIn":[{"story":"CDK/Drag And Drop Splitter/DragAndDropSplitter"}],"sources":["libs/ui/src/lib/cdk/components/drag-and-drop-splitter/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-cdk-table-wrapper.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-cdk-table-wrapper","useFor":["Any cdk-table in the house: loading skeleton, hover and focus, header colours, fixed or content layout.","Inline editing: inline fixed plus the uiTableEditFocus directive — the proto keyboard table and the media editor are built this way."],"notFor":["A table without the CDK.","Inline editing without inline mode: the cells shift when text turns into a field."],"shownIn":[{"story":"CDK/Table/Default"},{"story":"CDK/Table/Inline"},{"story":"Examples/Table Edit Focus/TableEditFocus"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"}],"sources":["libs/ui/src/lib/cdk/components/table/docs.mdx","libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx","media CLAUDE.md (own repo): Keyboard navigation — who owns what"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-chart.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-chart","useFor":["A single ring or bar of up to three segments — a share, a progress. The number of colours is the number of rings."],"notFor":["Series, axes, legends, tooltips, more than three parts."],"shownIn":[{"story":"Atoms/Chart/Rings"}],"sources":["libs/ui/src/lib/atoms/chart/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-checkbox.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-checkbox","useFor":["A choice that may be required or validated, inside a form that reports errors.","Flag cells of an editable table row: icons while the row is closed, checkboxes while it is edited — the proto keyboard table does that with display=\\"check-icon\\"."],"notFor":["An always-valid toggle.","The native variant where Safari matters — the self-painted icon variant renders the same everywhere."],"instead":["ui-switch"],"shownIn":[{"story":"Forms/Checkbox/CheckboxIcon"},{"story":"Forms/Checkbox/CheckboxValidation"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"}],"sources":["libs/ui/src/lib/forms/checkbox/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-chip.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-chip","useFor":["A small label that reports presses — a set filter above a table, a genre on a record, a tag that can be thrown away.","Rows of them: the parent holds the list, the chip only says the cross was pressed."],"notFor":["Removing itself: chipRemove is a message, and the list belongs to whoever holds it.","A selection: it has no active state and no group — a set of chips behaving as one choice is a different component.","A form control: it takes no value, no ngModel and no validation."],"shownIn":[{"story":"Forms/Chip/ARow"},{"story":"Forms/Chip/Removable"}],"sources":["libs/ui/src/lib/forms/chip/docs.mdx"],"reviewed":"8e6e0c56"}')},"./libs/ui/guide/ui-clock.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-clock","useFor":["A decorative time display — the website\'s landscape overlay."],"notFor":["A countdown; anything that needs time zones or formats beyond 12/24 h."],"instead":["ui-timer"],"shownIn":[{"story":"Atoms/Clock/Default"},{"file":"apps/website/src/app/parts/landscape-overlay/landscape-overlay.component.html"}],"sources":["libs/ui/src/lib/atoms/clock/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-copy-value.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-copy-value","useFor":["Click-to-copy around anything that shows a value — a swatch, a barcode, a truncated label. What is shown and what is copied are two different things, and this carries the second."],"notFor":["Showing the value: it brings no appearance. Wrap the thing that does."],"note":"With an empty value it leaves the tab order and stops being a control, so it can stand around content unconditionally and be switched on by supplying a value.","shownIn":[{"story":"Atoms/Copy Value/Swatches"},{"story":"Atoms/Copy Value/OwnConfirmation"}],"sources":["libs/ui/src/lib/atoms/copy-value/docs.mdx","tickets#183"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-image-editor.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-editor","useFor":["Uploading and cropping one image to a ratio, result as a JPEG blob — a cover, an avatar. The media cover editor is the overlay variant; the embedded one sits in the flow."],"notFor":["Several images, drawing, filters.","Talking to a backend: it emits, the host uploads."],"shownIn":[{"story":"Molecules/Image Editor/WithImage"},{"story":"Molecules/Image Editor/Overlay"}],"sources":["libs/ui/src/lib/molecules/image-editor/docs.mdx"],"reviewed":"4cc1b639"}')},"./libs/ui/guide/ui-image-grid.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-grid","useFor":["The overview of a picture set, sharing one index with ui-image-slider. Always set cols; the default draws nothing.","A strip — fixed-size tiles that scroll sideways (tileHeight with tileAspect), in one row or stacked with tileRows: episode stills, a row of posters, two rows of thumbnails. The tile height is never divided by the rows; a caller with a fixed block height divides it."],"notFor":["Showing one picture large — that is the slider\'s half."],"instead":["ui-image-slider"],"shownIn":[{"story":"Atoms/Image Grid/Strip"},{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"apps/website/src/app/content/image-grid/image-grid.component.html"}],"sources":["libs/ui/src/lib/atoms/image-grid/docs.mdx","libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"6ca75796"}')},"./libs/ui/guide/ui-image-slider.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-slider","useFor":["One picture at a time with swipe, drag and zoom; as the zoom of a grid, created with @if only while open."],"notFor":["The overview of a set."],"instead":["ui-image-grid"],"shownIn":[{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/atoms/image-slider/docs.mdx","libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-inline-spinner.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-inline-spinner","useFor":["The loading state of ONE area — a panel waiting for its record, a tile waiting for a picture. It sits in the flow, blocks nothing and covers nothing."],"notFor":["The application\'s global wait: that is ui-layout-spinner, placed once at the root and switched through its service.","Holding the loading state: it shows while it is in the DOM, so an @if around the tag is the switch.","Progress: all three visuals are indeterminate, none of them can show how far along something is."],"shownIn":[{"story":"Atoms/Inline Spinner/Types"},{"story":"Atoms/Inline Spinner/InAPanel"}],"sources":["libs/ui/src/lib/atoms/inline-spinner/docs.mdx"],"reviewed":"8e6e0c56"}')},"./libs/ui/guide/ui-input.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-input","useFor":["Every text-based control in a form: wrap the native input, textarea or select, keep [(ngModel)] on the projected element, class=\\"ui\\" on it.","Inline editing in tables: the projected control takes class=\\"ui-flat\\" instead — invisible at rest, no layout jump. The proto keyboard table has sixteen of them."],"notFor":["Ranges, checkboxes, switches — they have wrappers of their own.","Suggestions while typing."],"instead":["ui-slider","ui-checkbox","ui-switch","ui-autocomplete"],"shownIn":[{"story":"Forms/Input/Input"},{"story":"Forms/Input/InputClearable"},{"file":"apps/change-me/src/app/slider/slider.component.html"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"}],"sources":["libs/ui/src/lib/forms/input/docs.mdx","usage.md (Forms)"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-lang-selector.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-lang-selector","useFor":["The one language switch of an app: one tag brings the service call, the storage and the restore on reload."],"notFor":["More than the two languages it knows; a switch that must not persist."],"shownIn":[{"story":"Examples/Transloco/LangSelector"},{"story":"Atoms/Lang Selector/OwnContent"},{"file":"apps/website/src/app/components/lang-selector/lang-selector.component.html"}],"sources":["libs/ui/src/lib/atoms/lang-selector/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-main.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-main","useFor":["The root of an app shell, once: the nav in its header slot, the page in its content, a footer. The website and change-me both start here."],"notFor":["A panel inside a page — splitter, tabs and top-scroll-bottom are for that."],"shownIn":[{"story":"Examples/Layout/Layout"},{"file":"apps/website/src/app/app.component.html"},{"file":"apps/change-me/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/main/docs.mdx","libs/ui/.storybook/demos/examples/layout/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-media-screen.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-media-screen","useFor":["Once in the app shell, so every breakpoint question goes to UiLayoutMediaScreenService — never a hard-coded width in TypeScript or a breakpoint through Tailwind."],"notFor":["Anything visible; a second instance."],"shownIn":[{"story":"Layout/Media Screen/MediaScreen"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/media-screen/docs.mdx","media CLAUDE.md (own repo): breakpoints never go through Tailwind"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-nav.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-nav","useFor":["The app navigation in the main header, fed by UiLayoutNavService — tab theme for a site, app theme with a home button for a tool."],"notFor":["A second nav in the same layout.","A menu in a drawer — that is the burger recipe with ui-layout-overlay."],"instead":["ui-layout-overlay"],"shownIn":[{"story":"Layout/Nav/TemplateTab"},{"story":"Layout/Nav/TemplateApp"},{"story":"Examples/Layout/Layout"},{"file":"apps/website/src/app/parts/header/header.component.html"}],"sources":["libs/ui/src/lib/layout/nav/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-overlay-header.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-overlay-header","useFor":["The plain header of an overlay: headline plus close, in the overlay-header slot."],"notFor":["A header with anything else in it — write your own bar into the same slot. The media record sheet does, because its close turns into a two-step discard."],"shownIn":[{"story":"Layout/Overlay Header/InsideAnOverlay"},{"story":"Examples/Burger Menu/BurgerMenu"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/overlay/header/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-overlay.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-overlay","useFor":["A drawer or a modal over the page — a burger menu, a sign-in sheet, a record editor. Place it at the app\'s top level next to the layout, bind active in and take activeOutput back. Several may stand at once: Escape and the focus trap belong to the one on top, the last visible overlay in the document."],"notFor":["Anything inside the layout tree.","A tooltip or a popover."],"shownIn":[{"story":"Examples/Burger Menu/BurgerMenu"},{"story":"Layout/Overlay/Overlay"},{"story":"Layout/Overlay/ScrollContainment"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/overlay/docs.mdx","libs/ui/src/lib/examples/docs.mdx"],"reviewed":"5f825e82"}')},"./libs/ui/guide/ui-layout-spinner.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-spinner","useFor":["The one global loading indicator at the app root, driven by UiLayoutSpinnerService from an HTTP interceptor or a page\'s resource — with a delay where a fast answer must not flash it."],"notFor":["A component\'s own loading state — that is ui-inline-spinner, which sits in the flow and blocks nothing; the table wrapper brings its own skeleton. Counting requests or timing out: it shows, waits its delay, animates out and hides, nothing more."],"shownIn":[{"story":"Layout/Spinner/Spinner"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/spinner/docs.mdx"],"reviewed":"068433e9"}')},"./libs/ui/guide/ui-layout-splitter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-splitter","useFor":["A working view with two panes and an action header. The media editor is one: table left, detail right, and the zoom is the handle that widens the table."],"notFor":["Moving items between two lists.","Resizing panes by dragging — it has direction, zoom and fullscreen, no drag handle."],"instead":["ui-cdk-drag-drop-splitter"],"shownIn":[{"story":"Layout/Splitter/Splitter"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/layout/splitter/docs.mdx","media CLAUDE.md (own repo): the 4K table shots and the zoom"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-tabs.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-tabs","useFor":["A few sections of one view switched in place, inside a pane."],"notFor":["Routing between pages.","Remembering the active tab across a reload."],"shownIn":[{"story":"Layout/Tabs/TabsDefault"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/layout/tabs/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-top-scroll-bottom.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-top-scroll-bottom","useFor":["A view whose middle scrolls while header and footer stay — once per route, inside main-content."],"notFor":["Anywhere outside ui-layout-main; a second one in the same view."],"shownIn":[{"story":"Layout/Top Scroll Bottom/TopScrollBottom"}],"sources":["libs/ui/src/lib/layout/top-scroll-bottom/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-mosaic.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-mosaic","useFor":["A decorative tile field behind a page or over a picture — placed with CSS, given a box."],"notFor":["Anything clickable (pointer events are off).","An element in the flow without a height — it renders nothing, because its tile count comes from its box."],"shownIn":[{"story":"Atoms/Mosaic/Images"},{"story":"Atoms/Mosaic/OverImage"}],"sources":["libs/ui/src/lib/atoms/mosaic/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-placeholder.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-placeholder","useFor":["Filler with visible mass in stories and examples, sized from the outside (class=\\"h-64\\") — so a reader can tell a stand-in from a component that failed to render."],"notFor":["Product UI. It is scenery for documentation."],"shownIn":[{"story":"Atoms/Placeholder/Sizes"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/atoms/placeholder/docs.mdx","agents.md (Storybook Guidelines: filler needs visible mass)"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-qr-code.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-qr-code","useFor":["A URL or a short text as a scannable code. M is the ordinary level; raise it for small prints or surfaces that get handled."],"notFor":["Payloads past the version-40 capacity at the chosen level; kanji or ECI encodings."],"shownIn":[{"story":"Atoms/QR Code/Default"},{"story":"Atoms/QR Code/Levels"}],"sources":["libs/ui/src/lib/atoms/qr-code/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-rating.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-rating","useFor":["Displaying a rating as filled icons — read-only, any Material glyph, colours and size as CSS variables."],"notFor":["Collecting a rating: it takes no input from the reader."],"shownIn":[{"story":"Atoms/Rating/Rating"}],"sources":["libs/ui/src/lib/atoms/rating/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-reader-doc.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-reader-doc","useFor":["Rendering a Markdown string in the house design — the website\'s content pages do. Whoever fetches, caches and picks the language stands in front of it."],"notFor":["Documents whose raw HTML must survive: it is discarded, counted and named on the page."],"shownIn":[{"story":"Atoms/ReaderDoc/Default"},{"story":"Atoms/ReaderDoc/DroppedMarkup"},{"story":"Atoms/ReaderDoc/Emphasis"},{"file":"apps/website/src/app/content/content.component.html"}],"sources":["libs/ui/src/lib/atoms/reader-doc/docs.mdx"],"reviewed":"1ecebedd"}')},"./libs/ui/guide/ui-slider.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-slider","useFor":["A number or a min–max span the reader drags until it looks right."],"notFor":["A value the reader should type exactly — ui-input with type=\\"number\\"."],"instead":["ui-input"],"shownIn":[{"story":"Forms/Slider/Slider"},{"story":"Forms/Slider/Range"}],"sources":["libs/ui/src/lib/forms/slider/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-switch.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-switch","useFor":["A deliberate on/off decision that takes effect at once and is valid either way — a setting, a filter, a mode."],"notFor":["A choice that can be required or invalid, such as a consent."],"instead":["ui-checkbox"],"shownIn":[{"story":"Forms/Switch/Switch"},{"story":"Styling/Forms/Forms"}],"sources":["libs/ui/src/lib/forms/switch/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-text-animate.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-text-animate","useFor":["A headline that animates letter by letter; clip on the container when a variant travels in from outside."],"notFor":["Body text or anything longer than a phrase."],"shownIn":[{"story":"Atoms/Text Animate/TextAnimate"},{"file":"apps/change-me/src/app/slider/slider.component.html"}],"sources":["libs/ui/src/lib/atoms/text-animate/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-thumb.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-thumb","useFor":["A linked preview image with a caption — playlist tiles, news, references on the website. Place it in a grid cell or give it a width."],"notFor":["A gallery of pictures sharing a selection.","An image without a link — a plain <img> does that."],"instead":["ui-image-grid"],"shownIn":[{"story":"Atoms/Thumb/Thumb"},{"story":"Atoms/Thumb/ThumbInternalLink"},{"file":"apps/website/src/app/content/youtube/youtube.component.html"},{"file":"apps/website/src/app/components/news/display/display.component.html"}],"sources":["libs/ui/src/lib/atoms/thumb/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-timer.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-timer","useFor":["A countdown with a finished event; project the words that stand at zero, in your language."],"notFor":["Showing the time of day."],"instead":["ui-clock"],"shownIn":[{"story":"Atoms/Timer/Timer"}],"sources":["libs/ui/src/lib/atoms/timer/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-typewriter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-typewriter","useFor":["A line of text that types itself, optionally with a keystroke sound — the website\'s platformer intro."],"notFor":["Body text; a loop — a second sentence is a new run."],"shownIn":[{"story":"Atoms/Typewriter/Typewriter"},{"file":"apps/website/src/app/components/platformer/platformer.component.html"}],"sources":["libs/ui/src/lib/atoms/typewriter/docs.mdx"],"reviewed":"85173725"}')}}]);
2
+ //# sourceMappingURL=4555.755c5b81.iframe.bundle.js.map