@mojawork/ui-docs 2.6.1 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +2 -2
  2. package/catalog/atoms/image-grid.md +45 -1
  3. package/catalog/atoms/inline-spinner.md +188 -0
  4. package/catalog/atoms/mosaic.md +1 -1
  5. package/catalog/atoms/reader-doc.md +25 -0
  6. package/catalog/forms/chip.md +285 -0
  7. package/catalog/guide.json +69 -7
  8. package/catalog/layout/spinner.md +7 -0
  9. package/catalog/manifest.json +29 -5
  10. package/catalog/version.json +2 -2
  11. package/package.json +1 -1
  12. package/storybook/2621.2245d387.iframe.bundle.js +1 -0
  13. package/storybook/4555.525bbef9.iframe.bundle.js +1 -0
  14. package/storybook/9045.46ed3f61.iframe.bundle.js +2 -0
  15. package/storybook/{_external-mwork-music-player-docs-mdx.6f943768.iframe.bundle.js → _external-mwork-music-player-docs-mdx.3d0f7156.iframe.bundle.js} +1 -1
  16. package/storybook/_external-mwork-music-player-mwork-music-player-stories.26c06b83.iframe.bundle.js +1 -0
  17. package/storybook/atoms-_electrons-loader-docs-mdx.1176957f.iframe.bundle.js +1 -0
  18. package/storybook/atoms-_electrons-loader-loader-component-stories.8edadc42.iframe.bundle.js +1 -0
  19. package/storybook/atoms-image-grid-docs-mdx.7cb6414e.iframe.bundle.js +1 -0
  20. package/storybook/atoms-image-grid-image-grid-component-stories.8290e900.iframe.bundle.js +1 -0
  21. package/storybook/atoms-inline-spinner-docs-mdx.a98163b8.iframe.bundle.js +1 -0
  22. package/storybook/atoms-inline-spinner-inline-spinner-component-stories.76f59aa8.iframe.bundle.js +1 -0
  23. package/storybook/{atoms-mosaic-mosaic-component-stories.0a6bc043.iframe.bundle.js → atoms-mosaic-mosaic-component-stories.c2ec95f2.iframe.bundle.js} +1 -1
  24. package/storybook/atoms-reader-doc-docs-mdx.1860338f.iframe.bundle.js +1 -0
  25. package/storybook/atoms-reader-doc-reader-doc-component-stories.8ccd618b.iframe.bundle.js +1 -0
  26. package/storybook/{atoms-thumb-docs-mdx.2143ad01.iframe.bundle.js → atoms-thumb-docs-mdx.7286b617.iframe.bundle.js} +1 -1
  27. package/storybook/{atoms-thumb-thumb-component-stories.06f51d03.iframe.bundle.js → atoms-thumb-thumb-component-stories.f7e9dbae.iframe.bundle.js} +1 -1
  28. package/storybook/{atoms-typewriter-docs-mdx.3b1088c0.iframe.bundle.js → atoms-typewriter-docs-mdx.993bc264.iframe.bundle.js} +1 -1
  29. package/storybook/atoms-typewriter-typewriter-component-stories.80f07c89.iframe.bundle.js +1 -0
  30. package/storybook/examples-image-grid-slider-docs-mdx.d3578699.iframe.bundle.js +1 -0
  31. package/storybook/examples-image-grid-slider-image-grid-slider-stories.cda91b79.iframe.bundle.js +1 -0
  32. package/storybook/forms-chip-chip-component-stories.90a45ea4.iframe.bundle.js +1 -0
  33. package/storybook/forms-chip-docs-mdx.01e1b518.iframe.bundle.js +1 -0
  34. package/storybook/{home-overview-mdx.0d4ede52.iframe.bundle.js → home-overview-mdx.a2833e60.iframe.bundle.js} +1 -1
  35. package/storybook/iframe.html +3 -3
  36. package/storybook/index.json +1 -1
  37. package/storybook/layout-spinner-docs-mdx.03741741.iframe.bundle.js +1 -0
  38. package/storybook/layout-spinner-spinner-component-stories.69ae1389.iframe.bundle.js +1 -0
  39. package/storybook/{main.e33bfc7e33aad318b1d2.css → main.4530991c57c404682bbb.css} +16 -0
  40. package/storybook/main.5e4e255f.iframe.bundle.js +1 -0
  41. package/storybook/project.json +1 -1
  42. package/storybook/runtime~main.a2ec52c2.iframe.bundle.js +1 -0
  43. package/storybook/version.json +2 -2
  44. package/version.json +2 -2
  45. package/storybook/4555.251b232c.iframe.bundle.js +0 -1
  46. package/storybook/9045.a50616e9.iframe.bundle.js +0 -2
  47. package/storybook/_external-mwork-music-player-mwork-music-player-stories.08fbf651.iframe.bundle.js +0 -1
  48. package/storybook/atoms-image-grid-docs-mdx.18b4df2a.iframe.bundle.js +0 -1
  49. package/storybook/atoms-image-grid-image-grid-component-stories.a0a92d9e.iframe.bundle.js +0 -1
  50. package/storybook/atoms-reader-doc-docs-mdx.0688c3b9.iframe.bundle.js +0 -1
  51. package/storybook/atoms-reader-doc-reader-doc-component-stories.a6fec57d.iframe.bundle.js +0 -1
  52. package/storybook/atoms-typewriter-typewriter-component-stories.4fefc019.iframe.bundle.js +0 -1
  53. package/storybook/examples-image-grid-slider-docs-mdx.9e38157e.iframe.bundle.js +0 -1
  54. package/storybook/examples-image-grid-slider-image-grid-slider-stories.028c8c2b.iframe.bundle.js +0 -1
  55. package/storybook/layout-spinner-docs-mdx.4be572c0.iframe.bundle.js +0 -1
  56. package/storybook/layout-spinner-spinner-component-stories.ab8245c6.iframe.bundle.js +0 -1
  57. package/storybook/main.1f12809e.iframe.bundle.js +0 -1
  58. package/storybook/runtime~main.52ba2f02.iframe.bundle.js +0 -1
  59. /package/storybook/{9045.a50616e9.iframe.bundle.js.LICENSE.txt → 9045.46ed3f61.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2690,4814],{"./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>UiElectronLoaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var loader_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.css?ngResource"),loader_componentngResource_default=__webpack_require__.n(loader_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiElectronLoaderComponent=class UiElectronLoaderComponent{type=(0,core.input)("ring");static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}]}};UiElectronLoaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-loader",template:'\x3c!-- Decoration, not information: whatever is loading says so in words\n elsewhere, and a screen reader has nothing to gain from a spinning\n gradient. --\x3e\n<span class="_loader" [class]="\'_-\' + type()" aria-hidden="true"></span>\n@if (type() === \'disco\') {\n <span class="_disco-blink" aria-hidden="true"></span>\n}\n',encapsulation:_debug_node_chunk.gXe.None,styles:[loader_componentngResource_default()]})],UiElectronLoaderComponent)},"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/src/lib/atoms/_electrons/loader/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_loader_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.stories.ts");function _createMdxContent(props){const _components={code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_loader_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"electron-loader",children:"Electron: Loader"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The turning thing itself (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-electron-loader"}),") — one of three animations, at\nwhatever size it is given, and nothing else. No overlay, no backdrop, no\nservice, no message, no state. It does not know why something is loading, and\nit is not exported for app consumption."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["It exists so the animation exists ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"once"}),". Two components show it and neither\ncarries a copy: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-spinner"})," builds it into the application's global\noverlay, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-inline-spinner"})," puts it in the flow of a page. Before the cut,\nthe keyframes, the conic gradients and the two radial masks lived in the\nglobal spinner's stylesheet; a second spinner would have meant a second copy,\nand two copies drift."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"size",children:"Size"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Geometry is a named hook, never a pinned value:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"variable"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"fallback"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"what it means"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-spinner-size"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"26rem"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"diameter of the two discs, length of the bar"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-spinner-stroke"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"2rem"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"2.4rem"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"0.6rem"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"how thickly the line is drawn — the ring's annulus, the disco ring, the\nbar's height. Three fallbacks because the three visuals were drawn at\nthree weights before the hook existed, and the global spinner had to\nkeep looking exactly as it did."})})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The box takes no size of its own: each variant brings its own shape and the\nhost shrink-wraps whichever one it holds. Sizing the host instead would need a\nrule that asks which variant is inside — a question the box should not have to\nask."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"args",children:"args"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"@Input"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"description"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"type"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'ring' | 'linear' | 'disco'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'ring'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Which of the three visuals is drawn."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"default",children:"Default"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_loader_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__.Default}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"the-three-visuals",children:"The three visuals"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_loader_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__.Types}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"accessibility",children:"Accessibility"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Everything it draws is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-hidden"}),". It is decoration: whatever is loading\nsays so in words elsewhere, and a screen reader has nothing to gain from a\nspinning gradient. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-inline-spinner"})," carries the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'role="status"'})," and the\nlabel above it."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/_electrons/loader/loader.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,Types:()=>Types,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_angular__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_loader_component__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Atoms/Electrons/Loader",component:_loader_component__WEBPACK_IMPORTED_MODULE_1__.p,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.Iz)({imports:[_loader_component__WEBPACK_IMPORTED_MODULE_1__.p]})],argTypes:{type:{control:"inline-radio",options:["ring","linear","disco"],description:"Which of the three visuals is drawn."}}},Default={args:{type:"ring"},render:args=>({props:{...args},template:'<ui-electron-loader [type]="type" />'})},Types={parameters:{controls:{disable:!0}},render:()=>({template:'\n <div\n class="flex flex-wrap items-center gap-16"\n style="--ui-spinner-size: 6rem; --ui-spinner-stroke: 0.6rem"\n >\n <ui-electron-loader type="ring" />\n <ui-electron-loader type="disco" />\n <ui-electron-loader type="linear" />\n </div>\n '})},__namedExportsOrder=["Default","Types"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {\n type: 'ring'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `<ui-electron-loader [type]=\"type\" />`\n })\n}",...Default.parameters?.docs?.source},description:{story:"The animation on its own, at the size the global spinner draws it — the\nfallback that applies when nothing sets `--ui-spinner-size`.",...Default.parameters?.docs?.description}}},Types.parameters={...Types.parameters,docs:{...Types.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n template: `\n <div\n class="flex flex-wrap items-center gap-16"\n style="--ui-spinner-size: 6rem; --ui-spinner-stroke: 0.6rem"\n >\n <ui-electron-loader type="ring" />\n <ui-electron-loader type="disco" />\n <ui-electron-loader type="linear" />\n </div>\n `\n })\n}',...Types.parameters?.docs?.source},description:{story:"The three visuals, sized down so they fit side by side. Two discs and a\nbar — all three read the same two variables.",...Types.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/_electrons/loader/loader.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 @keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n }\n\n @keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n }\n\n @keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n @keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n }\n\n /* The box the animation lives in — the positioning context for the disco\n sparkle, and nothing more. It takes no size of its own: each variant\n brings its own shape (two discs and a bar), and the host shrink-wraps\n whichever one it holds. Sizing the host instead would need a rule that\n asks which variant is inside, and that is a question the box should not\n have to ask.\n\n `--ui-spinner-size` is the named hook (see the geometry rule): unset, it\n renders the 26rem the global spinner has always drawn. */\n ui-electron-loader {\n position: relative;\n display: inline-block;\n }\n\n /* `display: block` is not decoration: the template draws with spans, and\n width and height do not apply to an inline box — the animation would\n compute its size and render nothing at all. */\n ._loader {\n position: relative;\n display: block;\n }\n\n /* ring — a conic-gradient comet tail masked into an annulus (hollow\n centre) that rotates seamlessly. */\n ._loader._-ring {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n rgba(var(--ui-c-fourthly-value), 0) 0deg,\n rgba(var(--ui-c-fourthly-value), 0.15) 90deg,\n var(--ui-c-fourthly) 360deg\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n animation: ring-spin 1.2s linear infinite;\n }\n\n /* linear — an indeterminate horizontal bar with a segment sliding across a\n faint track. */\n ._loader._-linear {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-stroke, 0.6rem);\n border-radius: 999px;\n background: rgba(var(--ui-c-fourthly-value), 0.15);\n overflow: hidden;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 40%;\n border-radius: inherit;\n background: var(--ui-c-fourthly);\n animation: linear-slide 1.2s ease-in-out infinite;\n }\n }\n\n /* disco — a full rainbow ring that spins while its hue rotates. */\n ._loader._-disco {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n #ff0040,\n #ff9500,\n #ffe600,\n #33dd55,\n #00c8ff,\n #4455ff,\n #cc44ff,\n #ff0040\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n animation:\n ring-spin 1s linear infinite,\n disco-hue 3s linear infinite;\n }\n\n /* disco centre sparkle — a glowing dot blinking in the hollow ring centre\n while cycling through party colours. Sized off the ring so it stays in\n proportion at any size. */\n ._disco-blink {\n position: absolute;\n top: 50%;\n left: 50%;\n width: calc(var(--ui-spinner-size, 26rem) * 0.192);\n height: calc(var(--ui-spinner-size, 26rem) * 0.192);\n /* Centred with margins, NOT with a translate: the blink animation owns\n `transform` (it scales), and a transform set here would be overwritten\n the moment the animation starts — the dot would jump into the corner. */\n margin-top: calc(var(--ui-spinner-size, 26rem) * -0.096);\n margin-left: calc(var(--ui-spinner-size, 26rem) * -0.096);\n border-radius: 50%;\n animation:\n disco-blink 0.5s ease-in-out infinite,\n disco-party 1.5s linear infinite;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ui-electron-loader ._loader._-ring,\n ui-electron-loader ._loader._-disco {\n animation-duration: 2s;\n }\n ui-electron-loader ._loader._-linear::before {\n animation-duration: 2s;\n }\n ui-electron-loader ._disco-blink {\n animation-duration: 2s, 6s;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2690],{"./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>UiElectronLoaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var loader_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.css?ngResource"),loader_componentngResource_default=__webpack_require__.n(loader_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiElectronLoaderComponent=class UiElectronLoaderComponent{type=(0,core.input)("ring");static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}]}};UiElectronLoaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-loader",template:'\x3c!-- Decoration, not information: whatever is loading says so in words\n elsewhere, and a screen reader has nothing to gain from a spinning\n gradient. --\x3e\n<span class="_loader" [class]="\'_-\' + type()" aria-hidden="true"></span>\n@if (type() === \'disco\') {\n <span class="_disco-blink" aria-hidden="true"></span>\n}\n',encapsulation:_debug_node_chunk.gXe.None,styles:[loader_componentngResource_default()]})],UiElectronLoaderComponent)},"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/src/lib/atoms/_electrons/loader/loader.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,Types:()=>Types,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_angular__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_loader_component__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Atoms/Electrons/Loader",component:_loader_component__WEBPACK_IMPORTED_MODULE_1__.p,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.Iz)({imports:[_loader_component__WEBPACK_IMPORTED_MODULE_1__.p]})],argTypes:{type:{control:"inline-radio",options:["ring","linear","disco"],description:"Which of the three visuals is drawn."}}},Default={args:{type:"ring"},render:args=>({props:{...args},template:'<ui-electron-loader [type]="type" />'})},Types={parameters:{controls:{disable:!0}},render:()=>({template:'\n <div\n class="flex flex-wrap items-center gap-16"\n style="--ui-spinner-size: 6rem; --ui-spinner-stroke: 0.6rem"\n >\n <ui-electron-loader type="ring" />\n <ui-electron-loader type="disco" />\n <ui-electron-loader type="linear" />\n </div>\n '})},__namedExportsOrder=["Default","Types"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {\n type: 'ring'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `<ui-electron-loader [type]=\"type\" />`\n })\n}",...Default.parameters?.docs?.source},description:{story:"The animation on its own, at the size the global spinner draws it — the\nfallback that applies when nothing sets `--ui-spinner-size`.",...Default.parameters?.docs?.description}}},Types.parameters={...Types.parameters,docs:{...Types.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n template: `\n <div\n class="flex flex-wrap items-center gap-16"\n style="--ui-spinner-size: 6rem; --ui-spinner-stroke: 0.6rem"\n >\n <ui-electron-loader type="ring" />\n <ui-electron-loader type="disco" />\n <ui-electron-loader type="linear" />\n </div>\n `\n })\n}',...Types.parameters?.docs?.source},description:{story:"The three visuals, sized down so they fit side by side. Two discs and a\nbar — all three read the same two variables.",...Types.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/_electrons/loader/loader.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 @keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n }\n\n @keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n }\n\n @keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n @keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n }\n\n /* The box the animation lives in — the positioning context for the disco\n sparkle, and nothing more. It takes no size of its own: each variant\n brings its own shape (two discs and a bar), and the host shrink-wraps\n whichever one it holds. Sizing the host instead would need a rule that\n asks which variant is inside, and that is a question the box should not\n have to ask.\n\n `--ui-spinner-size` is the named hook (see the geometry rule): unset, it\n renders the 26rem the global spinner has always drawn. */\n ui-electron-loader {\n position: relative;\n display: inline-block;\n }\n\n /* `display: block` is not decoration: the template draws with spans, and\n width and height do not apply to an inline box — the animation would\n compute its size and render nothing at all. */\n ._loader {\n position: relative;\n display: block;\n }\n\n /* ring — a conic-gradient comet tail masked into an annulus (hollow\n centre) that rotates seamlessly. */\n ._loader._-ring {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n rgba(var(--ui-c-fourthly-value), 0) 0deg,\n rgba(var(--ui-c-fourthly-value), 0.15) 90deg,\n var(--ui-c-fourthly) 360deg\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n animation: ring-spin 1.2s linear infinite;\n }\n\n /* linear — an indeterminate horizontal bar with a segment sliding across a\n faint track. */\n ._loader._-linear {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-stroke, 0.6rem);\n border-radius: 999px;\n background: rgba(var(--ui-c-fourthly-value), 0.15);\n overflow: hidden;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 40%;\n border-radius: inherit;\n background: var(--ui-c-fourthly);\n animation: linear-slide 1.2s ease-in-out infinite;\n }\n }\n\n /* disco — a full rainbow ring that spins while its hue rotates. */\n ._loader._-disco {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n #ff0040,\n #ff9500,\n #ffe600,\n #33dd55,\n #00c8ff,\n #4455ff,\n #cc44ff,\n #ff0040\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n animation:\n ring-spin 1s linear infinite,\n disco-hue 3s linear infinite;\n }\n\n /* disco centre sparkle — a glowing dot blinking in the hollow ring centre\n while cycling through party colours. Sized off the ring so it stays in\n proportion at any size. */\n ._disco-blink {\n position: absolute;\n top: 50%;\n left: 50%;\n width: calc(var(--ui-spinner-size, 26rem) * 0.192);\n height: calc(var(--ui-spinner-size, 26rem) * 0.192);\n /* Centred with margins, NOT with a translate: the blink animation owns\n `transform` (it scales), and a transform set here would be overwritten\n the moment the animation starts — the dot would jump into the corner. */\n margin-top: calc(var(--ui-spinner-size, 26rem) * -0.096);\n margin-left: calc(var(--ui-spinner-size, 26rem) * -0.096);\n border-radius: 50%;\n animation:\n disco-blink 0.5s ease-in-out infinite,\n disco-party 1.5s linear infinite;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ui-electron-loader ._loader._-ring,\n ui-electron-loader ._loader._-disco {\n animation-duration: 2s;\n }\n ui-electron-loader ._loader._-linear::before {\n animation-duration: 2s;\n }\n ui-electron-loader ._disco-blink {\n animation-duration: 2s, 6s;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3146,8039],{"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/image-grid/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_image_grid_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/image-grid/image-grid.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_image_grid_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-image-grid.json");function _createMdxContent(props){const _components={a:"a",code:"code",em:"em",h3:"h3",h4:"h4",h5:"h5",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_image_grid_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"atoms-image-grid",children:"Atoms: Image Grid"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"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."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["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 ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-image-slider"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"setIndex"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"currentIndex"}),") so grid and\nslider can point at the same picture. It opens nothing itself: a click emits\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"clickIndex"}),", and what follows — a slider in zoom, a route — is the host's\ndecision. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cols"})," must be set; the default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"0"})," draws no columns."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["As a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"strip"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"singleRow"})," with a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"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 ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cols"})," plays no part, nothing is\npadded, and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"tileAspect"})," gives the tile its shape. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"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",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-image-grid",entry:_guide_ui_image_grid_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"image-grid",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/atoms-image-grid--image-grid",children:"Image Grid"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"strip",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/atoms-image-grid--strip",children:"Strip"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["One row of fixed-size tiles that scrolls sideways — an episode strip, a row\nof posters. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"singleRow"})," with a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"tileHeight"}),": every tile is that tall and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"tileHeight × tileAspect"})," wide, the row holds exactly its items, and once\nthey are wider than the container it scrolls instead of shrinking them.\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cols"})," is not read. The pictures fill their tiles (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"imageFit: 'cover'"}),"), and\nthe click area names the tile — the story writes the item's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"alt"})," into it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"features",children:"Features"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Responsive Grid"}),": Automatically adjusts to its container and supports configurable column counts."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Lazy Loading Support"}),": Integrated ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"loaded"})," state to manage image rendering."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Interactive Overlays"}),": Supports different overlay types (e.g., 'default', 'doors') for enhanced user interaction."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Click Area"}),": An ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<ng-template uiImageGridClickArea>"})," projected into the tag is stamped into every tile as the active tile's overlay — with the tile's item and index as context."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Action Mode"}),": Enable interactive selection with event emitting for current and clicked indices."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Dynamic Styling"}),": Configure gap, height, and image scaling per item."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"inputs",children:"Inputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"@Input"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"data"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UiImageDisplayItemDataType[] | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Array of image objects containing source, alt text, and scaling info."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"cols"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"0"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Number of columns in the grid. The default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0"})," renders no columns — always set it."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"gap"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"0"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Gap between grid items in pixels."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"height"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"undefined"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Height of the grid container. If ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"singleRow"})," is false, this is the total height. If ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"singleRow"})," is true, this value is divided by ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"cols"})," to determine the row height. Falls back to 200px when no height is given."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"tileHeight"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"undefined"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Strip mode, with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"singleRow"}),": the fixed tile height in pixels. The row then holds exactly its items at that size and scrolls sideways when they do not fit; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"cols"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"height"})," are not read. Without it the single row keeps its ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"height / cols"})," sizing."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"tileAspect"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"string"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'1/1'"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The strip tile's shape as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"width/height"})," — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'16/9'"})," for stills, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'2/3'"})," for posters. Read only together with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"tileHeight"}),"."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"imageFit"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'none' | 'cover' | 'contain'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'none'"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["How a tile holds its picture. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"none"})," draws it at its own size and lets the tile crop it; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"cover"})," fills the tile and crops what does not fit; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"contain"})," shows the whole picture with bars where the shapes differ."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"singleRow"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"boolean"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"false"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["If true, the grid renders as a single row with horizontal scrolling. The row height is calculated as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"height / cols"}),"."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"setIndex"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"0"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Programmatically set the active/scrolled-to image index."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"action"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"boolean"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"false"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Enables click interactions and active state highlighting."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"loaded"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"boolean"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"false"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Flag to trigger image rendering (useful for deferred loading). While it is false, every tile shows its title instead of its picture — the same branch a tile without a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"src"}),' falls into, see "A tile without a picture".']})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"overlayType"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'default' | 'doors'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'default'"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Visual style of the hover/active overlay."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"debug"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"boolean"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"false"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Shows internal state information (cols, indices, src) for debugging."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"a-tile-without-a-picture",children:"A tile without a picture"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A tile without a source draws ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"no image at all"}),": it shows an icon with the\nitem's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"title"})," underneath, gets the modifier class ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"._-no-image"}),", and is left\nout of the click area. Nothing is broken — this is what the component does\nwhen it has nothing to show."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["In the story above, the fourth tile is that case, and it says so: the entry\ncarries the title ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:'"no image on purpose"'}),". Give it whatever wording fits your\ncase — the component supplies the space, never the words."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"A picture that fails to load"})," is the other case, and it ends in the same\npicture: the tile keeps its surface and shows the item's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"alt"})," text, centred,\nwhatever the fit mode — a sized ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<img>"})," that failed would otherwise draw the\nbrowser's broken-image icon in a corner. The grid marks the tile on the\nimage's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"error"})," event; new data clears the marks."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Two things worth knowing about the empty state:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.strong,{children:["It is the same branch as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"loaded: false"}),"."]})," Turn ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"loaded"})," off and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"every"}),'\ntile shows its title. The component does not distinguish "not there yet" from\n"not there at all" — both mean "no picture to draw", and both look the same.']}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"The grid pads to a square."})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"gridColsInternal"})," squares the column count,\nso a data set that does not fill the last row leaves empty tiles behind. With\nthe story's 25 items that is 49 tiles: 24 of them carry no data and render as\nthe same empty state."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"grid-logic",children:"Grid Logic"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The component uses internal computed signals to determine the grid layout and height."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h5,{id:"column-calculation-gridcolsinternal",children:["Column Calculation (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"gridColsInternal"}),")"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The number of columns is determined by the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cols"})," input and the total number of items (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"dataCount"}),"):"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["If ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"dataCount / cols > cols"}),', the grid becomes "square-ish" or expands to fit items, calculating columns as ',(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"Math.ceil(dataCount / cols)"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["Otherwise, it uses the fixed ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cols"})," value provided."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["With ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cols"})," at ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"0"})," (the default) no expansion happens and the grid gets zero columns — a column count is part of using the component."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["A ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"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."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h5,{id:"height-calculation-scrollerheight",children:["Height Calculation (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scrollerHeight"}),")"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The height of the grid container is dynamically calculated:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.strong,{children:["Standard Mode (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"singleRow"})," is false)"]}),": Uses the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"height"})," input value in pixels. Falls back to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"200px"})," when no ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"height"})," is given."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.strong,{children:["Single Row Mode (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"singleRow"})," is true)"]}),": The height is calculated as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"height / cols"})," (both must be set; otherwise the same ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"height"}),"-or-",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"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."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.strong,{children:["Strip Mode (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"singleRow"})," with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"tileHeight"}),")"]}),": The height IS ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"tileHeight"}),"; each tile is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"tileHeight"})," tall and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"tileHeight × tileAspect"})," wide, and the row's tracks are that width, so the row overflows and scrolls instead of shrinking the tiles to fit. See the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/atoms-image-grid--strip",children:"Strip"})," story."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"outputs",children:"Outputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"@Output"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"currentIndex"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"output<number>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Emitted when a new item becomes active or is clicked."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"clickIndex"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"output<number>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Emitted when an already active item is clicked (only when a click-area template is projected)."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"the-click-area",children:"The click area"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The overlay that appears on the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"active"})," tile, and whose second click\nemits ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"clickIndex"}),". It is an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<ng-template uiImageGridClickArea>"})," projected\ninto the tag: the grid stamps it into every tile, so everything Angular can\ndo inside a template works here — bindings, pipes, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"(click)"})," handlers — and\nthe template is handed the tile's item (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"let-item"}),") and index\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'let-index="index"'}),")."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A template rather than projected content, because content can be projected\nonce and the grid needs the area in every tile. It used to clone a projected\nelement's innerHTML per tile, which ran the markup through the sanitizer and\nleft a dead copy without events; a stamped template keeps all of that alive."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The marker is the directive ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiImageGridClickAreaDirective"})," — import it next\nto the grid. It is a marker and nothing else, so the grid finds the click\narea by name rather than taking the first template it meets; a caller may\nproject other templates (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"*ngIf"}),", a structural directive of their own)\nwithout one of those ending up in every tile."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-image-grid [data]="myData" [action]="true" (clickIndex)="open($event)">\n <ng-template uiImageGridClickArea let-item let-index="index">\n <div class="my-overlay">{{ index + 1 }}: {{ item.title }}</div>\n </ng-template>\n</ui-image-grid>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"sizing",children:"Sizing"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The host fills its container (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"100%"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"100%"}),") by default. Give it a fixed size\nwithout a cascade fight through the named hooks ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-image-grid-width"})," and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-image-grid-height"}),"."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/image-grid/image-grid.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ImageGrid:()=>ImageGrid,Strip:()=>Strip,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_forms__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),_image_mock__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/atoms/image.mock.ts"),_image_grid_click_area_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/image-grid/image-grid-click-area.directive.ts"),_image_grid_component__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/src/lib/atoms/image-grid/image-grid.component.ts");const meta={title:"Atoms/Image Grid",component:_image_grid_component__WEBPACK_IMPORTED_MODULE_5__.p,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({providers:[_angular_forms__WEBPACK_IMPORTED_MODULE_0__.vS],imports:[_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_2__.b,_angular_forms__WEBPACK_IMPORTED_MODULE_0__.YN,_image_grid_component__WEBPACK_IMPORTED_MODULE_5__.p,_image_grid_click_area_directive__WEBPACK_IMPORTED_MODULE_4__.u]})],argTypes:{cols:{control:{type:"range",min:1,max:16,step:1}},gap:{control:{type:"range",min:0,max:64,step:1}},height:{control:{type:"range",min:100,max:1e3,step:10}},setIndex:{control:{type:"range",min:0,max:24,step:1}},tileHeight:{control:{type:"range",min:40,max:300,step:10}},tileAspect:{control:"select",options:["1/1","16/9","4/3","2/3"]},imageFit:{control:"select",options:["none","cover","contain"]},action:{control:"boolean"},loaded:{control:"boolean"},singleRow:{control:"boolean"},overlayType:{control:"select",options:["default","doors"]},currentIndex:{table:{disable:!0}},clickIndex:{table:{disable:!0}},data:{control:"object"}},parameters:{docs:{canvas:{sourceState:"none"},source:{code:null}}},args:{cols:4,gap:4,height:520,setIndex:0,action:!0,loaded:!0,singleRow:!1,overlayType:"default",tileHeight:void 0,tileAspect:"1/1",imageFit:"none",data:(0,_image_mock__WEBPACK_IMPORTED_MODULE_3__.W)()}},hideAll=Object.fromEntries(["cols","gap","height","setIndex","action","loaded","singleRow","data","debug"].map(key=>[key,{table:{disable:!0}}])),__WEBPACK_DEFAULT_EXPORT__=meta,ImageGrid={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-image-grid\n [setIndex]="setIndex"\n (currentIndex)="currentIndex=$event"\n (clickIndex)="clickIndex=$event"\n [data]="data"\n [action]="action"\n [height]="height"\n [singleRow]="singleRow"\n [loaded]="loaded"\n [cols]="cols"\n [gap]="gap"\n [tileHeight]="tileHeight"\n [tileAspect]="tileAspect"\n [imageFit]="imageFit"\n [overlayType]="overlayType">\n <ng-template uiImageGridClickArea let-item let-index="index">\n <div class="bg-c-background p-2">{{ index + 1 }}: {{ item.title }}</div>\n </ng-template>\n </ui-image-grid>\n </section>\n '})},Strip={argTypes:hideAll,args:{tileHeight:100,tileAspect:"16/9",imageFit:"cover",overlayType:"default"},render:args=>({props:{...args,strip:(0,_image_mock__WEBPACK_IMPORTED_MODULE_3__.W)().slice(0,12)},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex w-full flex-col">\n <ui-image-grid\n class="w-full"\n [data]="strip"\n [singleRow]="true"\n [tileHeight]="tileHeight"\n [tileAspect]="tileAspect"\n [imageFit]="imageFit"\n [overlayType]="overlayType"\n [gap]="4"\n [action]="true"\n [loaded]="true">\n <ng-template uiImageGridClickArea let-item>\n <div class="bg-c-background px-2 py-1 font-bold">{{ item.alt }}</div>\n </ng-template>\n </ui-image-grid>\n </section>\n '})},__namedExportsOrder=["ImageGrid","Strip"];ImageGrid.parameters={...ImageGrid.parameters,docs:{...ImageGrid.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-image-grid\n [setIndex]="setIndex"\n (currentIndex)="currentIndex=$event"\n (clickIndex)="clickIndex=$event"\n [data]="data"\n [action]="action"\n [height]="height"\n [singleRow]="singleRow"\n [loaded]="loaded"\n [cols]="cols"\n [gap]="gap"\n [tileHeight]="tileHeight"\n [tileAspect]="tileAspect"\n [imageFit]="imageFit"\n [overlayType]="overlayType">\n <ng-template uiImageGridClickArea let-item let-index="index">\n <div class="bg-c-background p-2">{{ index + 1 }}: {{ item.title }}</div>\n </ng-template>\n </ui-image-grid>\n </section>\n `\n };\n }\n}',...ImageGrid.parameters?.docs?.source}}},Strip.parameters={...Strip.parameters,docs:{...Strip.parameters?.docs,source:{originalSource:'{\n argTypes: hideAll,\n args: {\n tileHeight: 100,\n tileAspect: \'16/9\',\n imageFit: \'cover\',\n overlayType: \'default\'\n },\n render: args => ({\n props: {\n ...args,\n strip: uiImageMock().slice(0, 12)\n },\n template: `\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex w-full flex-col">\n <ui-image-grid\n class="w-full"\n [data]="strip"\n [singleRow]="true"\n [tileHeight]="tileHeight"\n [tileAspect]="tileAspect"\n [imageFit]="imageFit"\n [overlayType]="overlayType"\n [gap]="4"\n [action]="true"\n [loaded]="true">\n <ng-template uiImageGridClickArea let-item>\n <div class="bg-c-background px-2 py-1 font-bold">{{ item.alt }}</div>\n </ng-template>\n </ui-image-grid>\n </section>\n `\n })\n}',...Strip.parameters?.docs?.source},description:{story:"One row of fixed-size tiles that scrolls sideways — an episode strip. The\ntiles keep their height and shape whatever the container's width; with\nmore of them than fit, the row overflows and scrolls instead of shrinking\nthem. `cols` is not read here, and nothing is padded: twelve pictures are\ntwelve tiles. The pictures fill their tiles (`imageFit: 'cover'`).",...Strip.parameters?.docs?.description}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[8039],{"./libs/ui/src/lib/atoms/image-grid/image-grid.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ImageGrid:()=>ImageGrid,Strip:()=>Strip,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_forms__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),_image_mock__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/atoms/image.mock.ts"),_image_grid_click_area_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/image-grid/image-grid-click-area.directive.ts"),_image_grid_component__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/src/lib/atoms/image-grid/image-grid.component.ts");const meta={title:"Atoms/Image Grid",component:_image_grid_component__WEBPACK_IMPORTED_MODULE_5__.p,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({providers:[_angular_forms__WEBPACK_IMPORTED_MODULE_0__.vS],imports:[_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_2__.b,_angular_forms__WEBPACK_IMPORTED_MODULE_0__.YN,_image_grid_component__WEBPACK_IMPORTED_MODULE_5__.p,_image_grid_click_area_directive__WEBPACK_IMPORTED_MODULE_4__.u]})],argTypes:{cols:{control:{type:"range",min:1,max:16,step:1}},gap:{control:{type:"range",min:0,max:64,step:1}},height:{control:{type:"range",min:100,max:1e3,step:10}},setIndex:{control:{type:"range",min:0,max:24,step:1}},tileHeight:{control:{type:"range",min:40,max:300,step:10}},tileAspect:{control:"select",options:["1/1","16/9","4/3","2/3"]},imageFit:{control:"select",options:["none","cover","contain"]},action:{control:"boolean"},loaded:{control:"boolean"},singleRow:{control:"boolean"},overlayType:{control:"select",options:["default","doors"]},currentIndex:{table:{disable:!0}},clickIndex:{table:{disable:!0}},data:{control:"object"}},parameters:{docs:{canvas:{sourceState:"none"},source:{code:null}}},args:{cols:4,gap:4,height:520,setIndex:0,action:!0,loaded:!0,singleRow:!1,overlayType:"default",tileHeight:void 0,tileAspect:"1/1",imageFit:"none",data:(0,_image_mock__WEBPACK_IMPORTED_MODULE_3__.W)()}},hideAll=Object.fromEntries(["cols","gap","height","setIndex","action","loaded","singleRow","data","debug"].map(key=>[key,{table:{disable:!0}}])),__WEBPACK_DEFAULT_EXPORT__=meta,ImageGrid={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-image-grid\n [setIndex]="setIndex"\n (currentIndex)="currentIndex=$event"\n (clickIndex)="clickIndex=$event"\n [data]="data"\n [action]="action"\n [height]="height"\n [singleRow]="singleRow"\n [loaded]="loaded"\n [cols]="cols"\n [gap]="gap"\n [tileHeight]="tileHeight"\n [tileAspect]="tileAspect"\n [imageFit]="imageFit"\n [overlayType]="overlayType">\n <ng-template uiImageGridClickArea let-item let-index="index">\n <div class="bg-c-background p-2">{{ index + 1 }}: {{ item.title }}</div>\n </ng-template>\n </ui-image-grid>\n </section>\n '})},Strip={argTypes:hideAll,args:{tileHeight:100,tileAspect:"16/9",imageFit:"cover",overlayType:"default"},render:args=>({props:{...args,strip:(0,_image_mock__WEBPACK_IMPORTED_MODULE_3__.W)().slice(0,12)},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex w-full flex-col">\n <ui-image-grid\n class="w-full"\n [data]="strip"\n [singleRow]="true"\n [tileHeight]="tileHeight"\n [tileAspect]="tileAspect"\n [imageFit]="imageFit"\n [overlayType]="overlayType"\n [gap]="4"\n [action]="true"\n [loaded]="true">\n <ng-template uiImageGridClickArea let-item>\n <div class="bg-c-background px-2 py-1 font-bold">{{ item.alt }}</div>\n </ng-template>\n </ui-image-grid>\n </section>\n '})},__namedExportsOrder=["ImageGrid","Strip"];ImageGrid.parameters={...ImageGrid.parameters,docs:{...ImageGrid.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-image-grid\n [setIndex]="setIndex"\n (currentIndex)="currentIndex=$event"\n (clickIndex)="clickIndex=$event"\n [data]="data"\n [action]="action"\n [height]="height"\n [singleRow]="singleRow"\n [loaded]="loaded"\n [cols]="cols"\n [gap]="gap"\n [tileHeight]="tileHeight"\n [tileAspect]="tileAspect"\n [imageFit]="imageFit"\n [overlayType]="overlayType">\n <ng-template uiImageGridClickArea let-item let-index="index">\n <div class="bg-c-background p-2">{{ index + 1 }}: {{ item.title }}</div>\n </ng-template>\n </ui-image-grid>\n </section>\n `\n };\n }\n}',...ImageGrid.parameters?.docs?.source}}},Strip.parameters={...Strip.parameters,docs:{...Strip.parameters?.docs,source:{originalSource:'{\n argTypes: hideAll,\n args: {\n tileHeight: 100,\n tileAspect: \'16/9\',\n imageFit: \'cover\',\n overlayType: \'default\'\n },\n render: args => ({\n props: {\n ...args,\n strip: uiImageMock().slice(0, 12)\n },\n template: `\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex w-full flex-col">\n <ui-image-grid\n class="w-full"\n [data]="strip"\n [singleRow]="true"\n [tileHeight]="tileHeight"\n [tileAspect]="tileAspect"\n [imageFit]="imageFit"\n [overlayType]="overlayType"\n [gap]="4"\n [action]="true"\n [loaded]="true">\n <ng-template uiImageGridClickArea let-item>\n <div class="bg-c-background px-2 py-1 font-bold">{{ item.alt }}</div>\n </ng-template>\n </ui-image-grid>\n </section>\n `\n })\n}',...Strip.parameters?.docs?.source},description:{story:"One row of fixed-size tiles that scrolls sideways — an episode strip. The\ntiles keep their height and shape whatever the container's width; with\nmore of them than fit, the row overflows and scrolls instead of shrinking\nthem. `cols` is not read here, and nothing is padded: twelve pictures are\ntwelve tiles. The pictures fill their tiles (`imageFit: 'cover'`).",...Strip.parameters?.docs?.description}}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[533,8931],{"./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>UiElectronLoaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var loader_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.css?ngResource"),loader_componentngResource_default=__webpack_require__.n(loader_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiElectronLoaderComponent=class UiElectronLoaderComponent{type=(0,core.input)("ring");static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}]}};UiElectronLoaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-loader",template:'\x3c!-- Decoration, not information: whatever is loading says so in words\n elsewhere, and a screen reader has nothing to gain from a spinning\n gradient. --\x3e\n<span class="_loader" [class]="\'_-\' + type()" aria-hidden="true"></span>\n@if (type() === \'disco\') {\n <span class="_disco-blink" aria-hidden="true"></span>\n}\n',encapsulation:_debug_node_chunk.gXe.None,styles:[loader_componentngResource_default()]})],UiElectronLoaderComponent)},"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/inline-spinner/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_inline_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/inline-spinner/inline-spinner.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_inline_spinner_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-inline-spinner.json");function _createMdxContent(props){const _components={code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_inline_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"inline-spinner",children:"Inline Spinner"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A loading indicator for one area of a page."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"It turns, where it is put. That is the whole component: no backdrop, no focus\ntrap, no service, no message, nothing blocked. A panel waiting for its record,\na tile waiting for a picture, a list waiting for a page — the indicator sits in\nthe flow and the layout around it stays where it is."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["It is the counterpart to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-spinner"}),", which is the application's single\nglobal overlay and says of itself that it is not the spinner for one\ncomponent's own loading state. This one is that spinner."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"It shows whenever it is in the DOM."})," Whether something is loading is the\nconsumer's question, and an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"@if"})," around the tag is the honest answer to it —\na ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"loading"})," input would only move the same boolean one level down and add a\nstate the component would have to be trusted with."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Both draw the same animation: it lives in an internal electron that the global\nspinner builds in as well, so there is one set of keyframes in the library and\nnot two that drift."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-inline-spinner",entry:_guide_ui_inline_spinner_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"default",children:"Default"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_inline_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"the-three-visuals",children:"The three visuals"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ring"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"disco"})," are discs, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"linear"})," is a bar. They are the same three the\nglobal spinner offers, because it is the same drawing."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_inline_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__.Types}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"size",children:"Size"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Size is a named hook, not an input: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-spinner-size"})," is the diameter of the\ndiscs and the length of the bar, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-spinner-stroke"})," is how thick the line is\ndrawn — the ring's annulus and the bar's height. Set them on the tag, or\ninherit them from a container, and the same component serves a spinner beside a\nline of text and one filling a panel."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Two consequences worth knowing. A width utility on the tag widens the wrapper,\nnot the animation — the variable is the handle. And unset, both fall back to\nwhat the global spinner has always drawn (26rem), which is why moving the\nanimation into the shared electron changed nothing about the overlay."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_inline_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__.Sizes}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"in-place",children:"In place"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Nothing is covered and nothing is blocked. The tag takes exactly the room the\nanimation needs and sits where it is put — it does not stretch across the line\nand centre itself, so placing it is the container's decision and not a\nbehaviour to work around. In the panel below, one pair of utility classes on\nthe panel does the centring."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_inline_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__.InAPanel}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"arguments-props",children:"Arguments (Props)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"inputs",children:"Inputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"type"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'ring' | 'linear' | 'disco'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'ring'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Which of the three visuals is drawn."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"label"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"string | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["What a screen reader is told while this is on screen. The animation is\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-hidden"}),", so without a word here the wait is silent. The sentence\nbelongs to the consumer — the library does not know what is loading and\nhas no dictionary for it."]})})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/inline-spinner/inline-spinner.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,InAPanel:()=>InAPanel,Sizes:()=>Sizes,Types:()=>Types,__namedExportsOrder:()=>__namedExportsOrder,default:()=>inline_spinner_component_stories});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var inline_spinner_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/inline-spinner/inline-spinner.component.css?ngResource"),inline_spinner_componentngResource_default=__webpack_require__.n(inline_spinner_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),loader_component=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts");let UiInlineSpinnerComponent=class UiInlineSpinnerComponent{type=(0,core.input)("ring");label=(0,core.input)(null);static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}],label:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"label",required:!1,transform:void 0}]}]}};UiInlineSpinnerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-inline-spinner",template:'\x3c!-- `status` rather than `alert`: something is taking a moment, which is\n worth saying once and not worth interrupting anyone for. The label is\n the consumer\'s — the library does not know what is loading, and a\n translated sentence belongs to the app that has the dictionary. --\x3e\n<div class="_inline-spinner" role="status" [attr.aria-label]="label()">\n <ui-electron-loader [type]="type()" />\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,imports:[loader_component.p],styles:[inline_spinner_componentngResource_default()]})],UiInlineSpinnerComponent);const inline_spinner_component_stories={title:"Atoms/Inline Spinner",component:UiInlineSpinnerComponent,argTypes:{type:{control:{type:"inline-radio"},options:["ring","linear","disco"]}}},Default={args:{type:"ring",label:"Loading"},render:args=>({props:{...args},template:'<ui-inline-spinner [type]="type" [label]="label" />'})},Types={parameters:{controls:{disable:!0}},render:()=>({template:'\n <div class="flex flex-wrap items-center gap-16">\n <ui-inline-spinner type="ring" />\n <ui-inline-spinner type="disco" />\n <ui-inline-spinner type="linear" style="--ui-spinner-size: 16rem" />\n </div>\n '})},Sizes={parameters:{controls:{disable:!0}},render:()=>({template:'\n <div class="flex flex-wrap items-center gap-16">\n <ui-inline-spinner style="--ui-spinner-size: 2rem; --ui-spinner-stroke: 0.3rem" />\n <ui-inline-spinner style="--ui-spinner-size: 4rem; --ui-spinner-stroke: 0.4rem" />\n <ui-inline-spinner style="--ui-spinner-size: 8rem; --ui-spinner-stroke: 0.8rem" />\n </div>\n '})},InAPanel={parameters:{controls:{disable:!0}},render:()=>({template:'\n <div class="flex h-64 w-96 items-center justify-center border">\n <ui-inline-spinner label="Loading" />\n </div>\n '})},__namedExportsOrder=["Default","Types","Sizes","InAPanel"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {\n type: 'ring',\n label: 'Loading'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `<ui-inline-spinner [type]=\"type\" [label]=\"label\" />`\n })\n}",...Default.parameters?.docs?.source},description:{story:"Everything it can, in one place: the three visuals and the label.",...Default.parameters?.docs?.description}}},Types.parameters={...Types.parameters,docs:{...Types.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n template: `\n <div class="flex flex-wrap items-center gap-16">\n <ui-inline-spinner type="ring" />\n <ui-inline-spinner type="disco" />\n <ui-inline-spinner type="linear" style="--ui-spinner-size: 16rem" />\n </div>\n `\n })\n}',...Types.parameters?.docs?.source},description:{story:"All three visuals side by side. All three read `--ui-spinner-size`: for the\ntwo discs it is the diameter, for the bar its length. A utility class on the\ntag widens the wrapper, not the animation — the variable is the handle.",...Types.parameters?.docs?.description}}},Sizes.parameters={...Sizes.parameters,docs:{...Sizes.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n template: `\n <div class="flex flex-wrap items-center gap-16">\n <ui-inline-spinner style="--ui-spinner-size: 2rem; --ui-spinner-stroke: 0.3rem" />\n <ui-inline-spinner style="--ui-spinner-size: 4rem; --ui-spinner-stroke: 0.4rem" />\n <ui-inline-spinner style="--ui-spinner-size: 8rem; --ui-spinner-stroke: 0.8rem" />\n </div>\n `\n })\n}',...Sizes.parameters?.docs?.source},description:{story:"Size rides on `--ui-spinner-size`, the stroke on `--ui-spinner-stroke` —\nset from the outside, so the tag needs no input per dimension and a caller\ncan drive them from their own tokens.",...Sizes.parameters?.docs?.description}}},InAPanel.parameters={...InAPanel.parameters,docs:{...InAPanel.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n template: `\n <div class="flex h-64 w-96 items-center justify-center border">\n <ui-inline-spinner label="Loading" />\n </div>\n `\n })\n}',...InAPanel.parameters?.docs?.source},description:{story:"In its place: a panel waiting for its content. The spinner sits in the flow\nand takes the width it is given — nothing is covered, nothing is blocked,\nand the page around it stays where it is.",...InAPanel.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/_electrons/loader/loader.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 @keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n }\n\n @keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n }\n\n @keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n @keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n }\n\n /* The box the animation lives in — the positioning context for the disco\n sparkle, and nothing more. It takes no size of its own: each variant\n brings its own shape (two discs and a bar), and the host shrink-wraps\n whichever one it holds. Sizing the host instead would need a rule that\n asks which variant is inside, and that is a question the box should not\n have to ask.\n\n `--ui-spinner-size` is the named hook (see the geometry rule): unset, it\n renders the 26rem the global spinner has always drawn. */\n ui-electron-loader {\n position: relative;\n display: inline-block;\n }\n\n /* `display: block` is not decoration: the template draws with spans, and\n width and height do not apply to an inline box — the animation would\n compute its size and render nothing at all. */\n ._loader {\n position: relative;\n display: block;\n }\n\n /* ring — a conic-gradient comet tail masked into an annulus (hollow\n centre) that rotates seamlessly. */\n ._loader._-ring {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n rgba(var(--ui-c-fourthly-value), 0) 0deg,\n rgba(var(--ui-c-fourthly-value), 0.15) 90deg,\n var(--ui-c-fourthly) 360deg\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n animation: ring-spin 1.2s linear infinite;\n }\n\n /* linear — an indeterminate horizontal bar with a segment sliding across a\n faint track. */\n ._loader._-linear {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-stroke, 0.6rem);\n border-radius: 999px;\n background: rgba(var(--ui-c-fourthly-value), 0.15);\n overflow: hidden;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 40%;\n border-radius: inherit;\n background: var(--ui-c-fourthly);\n animation: linear-slide 1.2s ease-in-out infinite;\n }\n }\n\n /* disco — a full rainbow ring that spins while its hue rotates. */\n ._loader._-disco {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n #ff0040,\n #ff9500,\n #ffe600,\n #33dd55,\n #00c8ff,\n #4455ff,\n #cc44ff,\n #ff0040\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n animation:\n ring-spin 1s linear infinite,\n disco-hue 3s linear infinite;\n }\n\n /* disco centre sparkle — a glowing dot blinking in the hollow ring centre\n while cycling through party colours. Sized off the ring so it stays in\n proportion at any size. */\n ._disco-blink {\n position: absolute;\n top: 50%;\n left: 50%;\n width: calc(var(--ui-spinner-size, 26rem) * 0.192);\n height: calc(var(--ui-spinner-size, 26rem) * 0.192);\n /* Centred with margins, NOT with a translate: the blink animation owns\n `transform` (it scales), and a transform set here would be overwritten\n the moment the animation starts — the dot would jump into the corner. */\n margin-top: calc(var(--ui-spinner-size, 26rem) * -0.096);\n margin-left: calc(var(--ui-spinner-size, 26rem) * -0.096);\n border-radius: 50%;\n animation:\n disco-blink 0.5s ease-in-out infinite,\n disco-party 1.5s linear infinite;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ui-electron-loader ._loader._-ring,\n ui-electron-loader ._loader._-disco {\n animation-duration: 2s;\n }\n ui-electron-loader ._loader._-linear::before {\n animation-duration: 2s;\n }\n ui-electron-loader ._disco-blink {\n animation-duration: 2s, 6s;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/inline-spinner/inline-spinner.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 /* Takes exactly the room the animation needs and sits where it is put.\n It does NOT stretch and centre itself: a component that quietly claims\n the full width decides its own placement, and then a caller who wanted it\n beside a line of text has to fight it. Centring is the container's job —\n the panel example does it in one utility class.\n\n The default size is small enough to stand next to text; the global\n spinner's 26rem would fill a panel. Both hooks are the electron's, so a\n consumer sets one variable and does not learn a second vocabulary. */\n ui-inline-spinner {\n --ui-spinner-size: 4rem;\n --ui-spinner-stroke: 0.4rem;\n\n display: inline-block;\n }\n\n ._inline-spinner {\n display: flex;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[533],{"./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>UiElectronLoaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var loader_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.css?ngResource"),loader_componentngResource_default=__webpack_require__.n(loader_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiElectronLoaderComponent=class UiElectronLoaderComponent{type=(0,core.input)("ring");static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}]}};UiElectronLoaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-loader",template:'\x3c!-- Decoration, not information: whatever is loading says so in words\n elsewhere, and a screen reader has nothing to gain from a spinning\n gradient. --\x3e\n<span class="_loader" [class]="\'_-\' + type()" aria-hidden="true"></span>\n@if (type() === \'disco\') {\n <span class="_disco-blink" aria-hidden="true"></span>\n}\n',encapsulation:_debug_node_chunk.gXe.None,styles:[loader_componentngResource_default()]})],UiElectronLoaderComponent)},"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/src/lib/atoms/inline-spinner/inline-spinner.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,InAPanel:()=>InAPanel,Sizes:()=>Sizes,Types:()=>Types,__namedExportsOrder:()=>__namedExportsOrder,default:()=>inline_spinner_component_stories});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var inline_spinner_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/inline-spinner/inline-spinner.component.css?ngResource"),inline_spinner_componentngResource_default=__webpack_require__.n(inline_spinner_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),loader_component=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts");let UiInlineSpinnerComponent=class UiInlineSpinnerComponent{type=(0,core.input)("ring");label=(0,core.input)(null);static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}],label:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"label",required:!1,transform:void 0}]}]}};UiInlineSpinnerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-inline-spinner",template:'\x3c!-- `status` rather than `alert`: something is taking a moment, which is\n worth saying once and not worth interrupting anyone for. The label is\n the consumer\'s — the library does not know what is loading, and a\n translated sentence belongs to the app that has the dictionary. --\x3e\n<div class="_inline-spinner" role="status" [attr.aria-label]="label()">\n <ui-electron-loader [type]="type()" />\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,imports:[loader_component.p],styles:[inline_spinner_componentngResource_default()]})],UiInlineSpinnerComponent);const inline_spinner_component_stories={title:"Atoms/Inline Spinner",component:UiInlineSpinnerComponent,argTypes:{type:{control:{type:"inline-radio"},options:["ring","linear","disco"]}}},Default={args:{type:"ring",label:"Loading"},render:args=>({props:{...args},template:'<ui-inline-spinner [type]="type" [label]="label" />'})},Types={parameters:{controls:{disable:!0}},render:()=>({template:'\n <div class="flex flex-wrap items-center gap-16">\n <ui-inline-spinner type="ring" />\n <ui-inline-spinner type="disco" />\n <ui-inline-spinner type="linear" style="--ui-spinner-size: 16rem" />\n </div>\n '})},Sizes={parameters:{controls:{disable:!0}},render:()=>({template:'\n <div class="flex flex-wrap items-center gap-16">\n <ui-inline-spinner style="--ui-spinner-size: 2rem; --ui-spinner-stroke: 0.3rem" />\n <ui-inline-spinner style="--ui-spinner-size: 4rem; --ui-spinner-stroke: 0.4rem" />\n <ui-inline-spinner style="--ui-spinner-size: 8rem; --ui-spinner-stroke: 0.8rem" />\n </div>\n '})},InAPanel={parameters:{controls:{disable:!0}},render:()=>({template:'\n <div class="flex h-64 w-96 items-center justify-center border">\n <ui-inline-spinner label="Loading" />\n </div>\n '})},__namedExportsOrder=["Default","Types","Sizes","InAPanel"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {\n type: 'ring',\n label: 'Loading'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `<ui-inline-spinner [type]=\"type\" [label]=\"label\" />`\n })\n}",...Default.parameters?.docs?.source},description:{story:"Everything it can, in one place: the three visuals and the label.",...Default.parameters?.docs?.description}}},Types.parameters={...Types.parameters,docs:{...Types.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n template: `\n <div class="flex flex-wrap items-center gap-16">\n <ui-inline-spinner type="ring" />\n <ui-inline-spinner type="disco" />\n <ui-inline-spinner type="linear" style="--ui-spinner-size: 16rem" />\n </div>\n `\n })\n}',...Types.parameters?.docs?.source},description:{story:"All three visuals side by side. All three read `--ui-spinner-size`: for the\ntwo discs it is the diameter, for the bar its length. A utility class on the\ntag widens the wrapper, not the animation — the variable is the handle.",...Types.parameters?.docs?.description}}},Sizes.parameters={...Sizes.parameters,docs:{...Sizes.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n template: `\n <div class="flex flex-wrap items-center gap-16">\n <ui-inline-spinner style="--ui-spinner-size: 2rem; --ui-spinner-stroke: 0.3rem" />\n <ui-inline-spinner style="--ui-spinner-size: 4rem; --ui-spinner-stroke: 0.4rem" />\n <ui-inline-spinner style="--ui-spinner-size: 8rem; --ui-spinner-stroke: 0.8rem" />\n </div>\n `\n })\n}',...Sizes.parameters?.docs?.source},description:{story:"Size rides on `--ui-spinner-size`, the stroke on `--ui-spinner-stroke` —\nset from the outside, so the tag needs no input per dimension and a caller\ncan drive them from their own tokens.",...Sizes.parameters?.docs?.description}}},InAPanel.parameters={...InAPanel.parameters,docs:{...InAPanel.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n template: `\n <div class="flex h-64 w-96 items-center justify-center border">\n <ui-inline-spinner label="Loading" />\n </div>\n `\n })\n}',...InAPanel.parameters?.docs?.source},description:{story:"In its place: a panel waiting for its content. The spinner sits in the flow\nand takes the width it is given — nothing is covered, nothing is blocked,\nand the page around it stays where it is.",...InAPanel.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/_electrons/loader/loader.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 @keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n }\n\n @keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n }\n\n @keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n @keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n }\n\n /* The box the animation lives in — the positioning context for the disco\n sparkle, and nothing more. It takes no size of its own: each variant\n brings its own shape (two discs and a bar), and the host shrink-wraps\n whichever one it holds. Sizing the host instead would need a rule that\n asks which variant is inside, and that is a question the box should not\n have to ask.\n\n `--ui-spinner-size` is the named hook (see the geometry rule): unset, it\n renders the 26rem the global spinner has always drawn. */\n ui-electron-loader {\n position: relative;\n display: inline-block;\n }\n\n /* `display: block` is not decoration: the template draws with spans, and\n width and height do not apply to an inline box — the animation would\n compute its size and render nothing at all. */\n ._loader {\n position: relative;\n display: block;\n }\n\n /* ring — a conic-gradient comet tail masked into an annulus (hollow\n centre) that rotates seamlessly. */\n ._loader._-ring {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n rgba(var(--ui-c-fourthly-value), 0) 0deg,\n rgba(var(--ui-c-fourthly-value), 0.15) 90deg,\n var(--ui-c-fourthly) 360deg\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n animation: ring-spin 1.2s linear infinite;\n }\n\n /* linear — an indeterminate horizontal bar with a segment sliding across a\n faint track. */\n ._loader._-linear {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-stroke, 0.6rem);\n border-radius: 999px;\n background: rgba(var(--ui-c-fourthly-value), 0.15);\n overflow: hidden;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 40%;\n border-radius: inherit;\n background: var(--ui-c-fourthly);\n animation: linear-slide 1.2s ease-in-out infinite;\n }\n }\n\n /* disco — a full rainbow ring that spins while its hue rotates. */\n ._loader._-disco {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n #ff0040,\n #ff9500,\n #ffe600,\n #33dd55,\n #00c8ff,\n #4455ff,\n #cc44ff,\n #ff0040\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n animation:\n ring-spin 1s linear infinite,\n disco-hue 3s linear infinite;\n }\n\n /* disco centre sparkle — a glowing dot blinking in the hollow ring centre\n while cycling through party colours. Sized off the ring so it stays in\n proportion at any size. */\n ._disco-blink {\n position: absolute;\n top: 50%;\n left: 50%;\n width: calc(var(--ui-spinner-size, 26rem) * 0.192);\n height: calc(var(--ui-spinner-size, 26rem) * 0.192);\n /* Centred with margins, NOT with a translate: the blink animation owns\n `transform` (it scales), and a transform set here would be overwritten\n the moment the animation starts — the dot would jump into the corner. */\n margin-top: calc(var(--ui-spinner-size, 26rem) * -0.096);\n margin-left: calc(var(--ui-spinner-size, 26rem) * -0.096);\n border-radius: 50%;\n animation:\n disco-blink 0.5s ease-in-out infinite,\n disco-party 1.5s linear infinite;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ui-electron-loader ._loader._-ring,\n ui-electron-loader ._loader._-disco {\n animation-duration: 2s;\n }\n ui-electron-loader ._loader._-linear::before {\n animation-duration: 2s;\n }\n ui-electron-loader ._disco-blink {\n animation-duration: 2s, 6s;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/inline-spinner/inline-spinner.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 /* Takes exactly the room the animation needs and sits where it is put.\n It does NOT stretch and centre itself: a component that quietly claims\n the full width decides its own placement, and then a caller who wanted it\n beside a line of text has to fight it. Centring is the container's job —\n the panel example does it in one utility class.\n\n The default size is small enough to stand next to text; the global\n spinner's 26rem would fill a panel. Both hooks are the electron's, so a\n consumer sets one variable and does not learn a second vocabulary. */\n ui-inline-spinner {\n --ui-spinner-size: 4rem;\n --ui-spinner-stroke: 0.4rem;\n\n display: inline-block;\n }\n\n ._inline-spinner {\n display: flex;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +1 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2831],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.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"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/atoms/placeholder/placeholder.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:()=>UiPlaceholderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var placeholder_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/placeholder/placeholder.component.css?ngResource"),placeholder_componentngResource_default=__webpack_require__.n(placeholder_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");let UiPlaceholderComponent=class UiPlaceholderComponent{label=(0,core.input)(null);static propDecorators={label:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"label",required:!1,transform:void 0}]}]}};UiPlaceholderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-placeholder",template:"<span class=\"_label\">{{ label() ?? ('placeholder.label' | transloco) }}</span>\n",encapsulation:_debug_node_chunk.gXe.None,imports:[ngneat_transloco.Kj],styles:[placeholder_componentngResource_default()]})],UiPlaceholderComponent)},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});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/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/src/lib/atoms/mosaic/mosaic.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Colors:()=>Colors,Images:()=>Images,OverImage:()=>OverImage,OverText:()=>OverText,__namedExportsOrder:()=>__namedExportsOrder,default:()=>mosaic_component_stories});var _effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),placeholder_component=__webpack_require__("./libs/ui/src/lib/atoms/placeholder/placeholder.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var mosaic_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/mosaic/mosaic.component.css?ngResource"),mosaic_componentngResource_default=__webpack_require__.n(mosaic_componentngResource),mosaic_animationsngResource=__webpack_require__("./libs/ui/src/lib/atoms/mosaic/mosaic.animations.css?ngResource"),mosaic_animationsngResource_default=__webpack_require__.n(mosaic_animationsngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");const ANIMATION_CLASS={infinity:"_-grow",pulse:"_-pulse",flip:"_-flip",fade:"_-fade",wave:"_-wave"};let UiMosaicComponent=class UiMosaicComponent{images=(0,core.input)(null);colors=(0,core.input)(null);mainImage=(0,core.input)(null);mainColor=(0,core.input)(null);mode=(0,core.input)("image");tileMinWidth=(0,core.input)(120);fallDelay=(0,core.input)(200);fallDuration=(0,core.input)(1200);animationType=(0,core.input)("falldown");border=(0,core.input)(!1,{transform:core.booleanAttribute});hostSize=(0,_effect_chunk2.vPA)({width:0,height:0});fallen=(0,_effect_chunk2.vPA)(new Set);animating=(0,_effect_chunk2.vPA)(new Set);animationClass=(0,_resource_chunk.EW)(()=>ANIMATION_CLASS[this.animationType()]??null);loadedImages=(0,_effect_chunk2.vPA)(0);onImageSettled(){this.loadedImages.update(count=>count+1)}allTilesSettled=(0,_resource_chunk.EW)(()=>{const tileCount=this.tiles().length;return 0!==tileCount&&("color"===this.mode()||this.loadedImages()>=tileCount)});cols=(0,_resource_chunk.EW)(()=>{const tileWidth=Math.max(1,this.tileMinWidth());return Math.max(1,Math.floor(this.hostSize().width/tileWidth))});tiles=(0,_resource_chunk.EW)(()=>{const source="color"===this.mode()?this.colors():this.images(),{width,height}=this.hostSize();if(!source?.length||width<=0||height<=0)return[];const cols=this.cols(),tileHeight=width/cols*(3/4),rows=Math.max(1,Math.ceil(height/tileHeight));return Array.from({length:cols*rows},(_,index)=>source[index%source.length])});tileImage(tile){return"string"==typeof tile?null:tile}tileColor(tile){return"string"==typeof tile?tile:null}constructor(){const host=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT).nativeElement,observer=new ResizeObserver(entries=>{const box=entries[0]?.contentRect;box&&this.hostSize.set({width:box.width,height:box.height})});observer.observe(host),(0,_effect_chunk2.WQX)(_effect_chunk2.abz).onDestroy(()=>observer.disconnect()),(0,_effect_chunk2.QZP)(onCleanup=>{const tileCount=this.tiles().length,cols=this.cols(),delay=this.fallDelay(),duration=this.fallDuration(),animationType=this.animationType(),ready=this.allTilesSettled();if((0,_resource_chunk.O8)(()=>{this.fallen.set(new Set),this.animating.set(new Set)}),0===tileCount||delay<=0||!ready)return;const timers=new Set,schedule=(handler,ms)=>{const timer=setTimeout(()=>{timers.delete(timer),handler()},ms);timers.add(timer)};if(onCleanup(()=>timers.forEach(timer=>clearTimeout(timer))),"falldown"!==animationType){const waveOrder="wave"===animationType?function diagonalOrder(tileCount,cols){return Array.from({length:tileCount},(_,index)=>index).sort((a,b)=>Math.floor(a/cols)+a%cols-(Math.floor(b/cols)+b%cols)||a%cols-b%cols)}(tileCount,cols):null;let pointer=0;const tick=()=>{const pick=waveOrder?waveOrder[pointer++%waveOrder.length]:Math.floor(Math.random()*tileCount);(0,_resource_chunk.O8)(this.animating).has(pick)||(this.animating.update(animating=>new Set(animating).add(pick)),schedule(()=>{this.animating.update(animating=>{const next=new Set(animating);return next.delete(pick),next})},duration)),schedule(tick,delay)};return void schedule(tick,1e3)}const order=function shuffle(values){for(let i=values.length-1;i>0;i--){const j=Math.floor(Math.random()*(i+1));[values[i],values[j]]=[values[j],values[i]]}return values}(Array.from({length:tileCount},(_,index)=>index)),tick=()=>{const next=order.shift();void 0!==next&&(this.fallen.update(fallen=>new Set(fallen).add(next)),schedule(tick,delay))};schedule(tick,1e3)})}static ctorParameters=()=>[];static propDecorators={images:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"images",required:!1,transform:void 0}]}],colors:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"colors",required:!1,transform:void 0}]}],mainImage:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"mainImage",required:!1,transform:void 0}]}],mainColor:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"mainColor",required:!1,transform:void 0}]}],mode:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"mode",required:!1,transform:void 0}]}],tileMinWidth:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"tileMinWidth",required:!1,transform:void 0}]}],fallDelay:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"fallDelay",required:!1,transform:void 0}]}],fallDuration:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"fallDuration",required:!1,transform:void 0}]}],animationType:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"animationType",required:!1,transform:void 0}]}],border:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"border",required:!1,transform:void 0}]}]}};UiMosaicComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-mosaic",template:'@if (mode() === \'color\') {\n @if (mainColor(); as color) {\n <div class="_main-color" [style.background-color]="color"></div>\n }\n} @else if (mainImage(); as image) {\n <div\n class="_main-image"\n role="img"\n [attr.aria-label]="image.alt"\n [style.background-image]="\'url(\' + image.src + \')\'"\n ></div>\n}\n<div\n class="_grid"\n [style.grid-template-columns]="\'repeat(\' + cols() + \', 1fr)\'"\n>\n @for (tile of tiles(); track $index) {\n <div\n class="_tile"\n [class._-fallen]="fallen().has($index)"\n [class]="\n animationClass() && animating().has($index) ? animationClass() : \'\'\n "\n [style.background-color]="tileColor(tile)"\n >\n @if (tileImage(tile); as image) {\n <img\n [src]="image.src"\n [alt]="image.alt"\n decoding="async"\n (load)="onImageSettled()"\n (error)="onImageSettled()"\n />\n }\n </div>\n }\n</div>\n',encapsulation:_debug_node_chunk.gXe.Emulated,host:{"[style.--ui-mosaic-fall.ms]":"fallDuration()","[class._-border]":"border()"},styles:[mosaic_componentngResource_default(),mosaic_animationsngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiMosaicComponent);const mosaic_component_stories={title:"Atoms/Mosaic",component:UiMosaicComponent,decorators:[(0,dist.Iz)({imports:[header_component.b,placeholder_component.F,UiMosaicComponent]})],argTypes:{animationType:{control:"radio",options:["falldown","infinity","pulse","flip","fade","wave"]},mode:{control:"radio",options:["image","color"]},mainColor:{control:"color"},tileMinWidth:{control:{type:"range",min:8,max:400,step:2}},fallDelay:{control:{type:"range",min:0,max:1e3,step:5}},fallDuration:{control:{type:"range",min:0,max:3e3,step:50}},border:{control:"boolean"},images:{control:"object"},colors:{control:"object"},mainImage:{control:"object"}},args:{animationType:"falldown",border:!1,mode:"image",colors:["#ff00ff","#00e5ff","#ffe000","#7c4dff","#00c853","#ff3d00"],mainColor:"#101014",tileMinWidth:120,fallDelay:200,fallDuration:1200,images:function uiMosaicMock(){return Array.from({length:120},()=>{const number=String(Math.floor(25*Math.random())+1).padStart(2,"0");return{src:`https://moja.work/media/pictures/numbers/25/numbers-0${number}.png`,alt:`number-${number}`}})}(),mainImage:{src:"https://moja.work/media/pictures/numbers/50/numbers-007.png",alt:"number-07"}},parameters:{docs:{canvas:{sourceState:"none"}}}},mosaic=hostClass=>`\n <ui-mosaic\n class="${hostClass}"\n [mode]="mode"\n [images]="images"\n [colors]="colors"\n [mainImage]="mainImage"\n [mainColor]="mainColor"\n [tileMinWidth]="tileMinWidth"\n [fallDelay]="fallDelay"\n [fallDuration]="fallDuration"\n [animationType]="animationType"\n [border]="border"\n ></ui-mosaic>`,replayProps=()=>{const shown=(0,_effect_chunk2.vPA)(!0);return{shown,replay:()=>{shown.set(!1),setTimeout(()=>shown.set(!0),60)}}},replayButton='\n <button class="ui fixed bottom-4 left-4 z-20" type="button" (click)="replay()">replay</button>',Images={render:args=>({props:{...args,...replayProps()},template:`\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n @if (shown()) { ${mosaic("fixed inset-0 -z-10")} }\n ${replayButton}\n </section>`})},Colors={args:{mode:"color",images:[]},render:args=>({props:{...args,...replayProps()},template:`\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n @if (shown()) { ${mosaic("fixed inset-0 -z-10")} }\n ${replayButton}\n </section>`})},OverText={args:{mode:"color",images:[],mainImage:null,mainColor:null,tileMinWidth:48,fallDelay:40},render:args=>({props:{...args,...replayProps()},template:`\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative m-4 w-full max-w-2xl">\n <ui-placeholder class="block h-64 w-full"></ui-placeholder>\n @if (shown()) { ${mosaic("absolute inset-0 z-10")} }\n </section>\n ${replayButton}`})},OverImage={args:{mode:"color",images:[],mainImage:null,mainColor:null,tileMinWidth:48,fallDelay:40},render:args=>({props:{...args,...replayProps()},template:`\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative m-4 h-96 w-[36rem]">\n <img\n class="h-full w-full object-cover"\n src="https://moja.work/media/pictures/numbers/50/numbers-007.png"\n alt="number-07"\n />\n @if (shown()) { ${mosaic("absolute inset-0 z-10")} }\n </section>\n ${replayButton}`})},__namedExportsOrder=["Images","Colors","OverText","OverImage"];Images.parameters={...Images.parameters,docs:{...Images.parameters?.docs,source:{originalSource:'{\n render: args => ({\n props: {\n ...args,\n ...replayProps()\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n @if (shown()) { ${mosaic(\'fixed inset-0 -z-10\')} }\n ${replayButton}\n </section>`\n })\n}',...Images.parameters?.docs?.source},description:{story:"Pinned behind the page, which is what the component used to do on its own.\nThe three declarations that were burned into `:host` now sit on the tag,\nwhere a consumer can see and change them.",...Images.parameters?.docs?.description}}},Colors.parameters={...Colors.parameters,docs:{...Colors.parameters?.docs,source:{originalSource:"{\n args: {\n mode: 'color',\n // Empty on purpose: this story is about the colors, and a control still\n // holding 120 images would suggest they are part of the example.\n images: []\n },\n render: args => ({\n props: {\n ...args,\n ...replayProps()\n },\n template: `\n <ui-intern-header theme=\"theme-light\"></ui-intern-header>\n <section class=\"relative flex flex-col\">\n @if (shown()) { ${mosaic('fixed inset-0 -z-10')} }\n ${replayButton}\n </section>`\n })\n}",...Colors.parameters?.docs?.source},description:{story:"The same host, filled with plain colors instead of images.",...Colors.parameters?.docs?.description}}},OverText.parameters={...OverText.parameters,docs:{...OverText.parameters?.docs,source:{originalSource:'{\n args: {\n mode: \'color\',\n images: [],\n mainImage: null,\n mainColor: null,\n tileMinWidth: 48,\n fallDelay: 40\n },\n render: args => ({\n props: {\n ...args,\n ...replayProps()\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative m-4 w-full max-w-2xl">\n <ui-placeholder class="block h-64 w-full"></ui-placeholder>\n @if (shown()) { ${mosaic(\'absolute inset-0 z-10\')} }\n </section>\n ${replayButton}`\n })\n}',...OverText.parameters?.docs?.source},description:{story:"Not a background at all: the same tag inside a `relative` box, stacked ON\nTOP of what it covers. Both backdrops are empty here on purpose — what the\nfalling tiles reveal is the content underneath, not a picture the mosaic\nbrought along.",...OverText.parameters?.docs?.description}}},OverImage.parameters={...OverImage.parameters,docs:{...OverImage.parameters?.docs,source:{originalSource:'{\n args: {\n mode: \'color\',\n images: [],\n mainImage: null,\n mainColor: null,\n tileMinWidth: 48,\n fallDelay: 40\n },\n render: args => ({\n props: {\n ...args,\n ...replayProps()\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative m-4 h-96 w-[36rem]">\n <img\n class="h-full w-full object-cover"\n src="https://moja.work/media/pictures/numbers/50/numbers-007.png"\n alt="number-07"\n />\n @if (shown()) { ${mosaic(\'absolute inset-0 z-10\')} }\n </section>\n ${replayButton}`\n })\n}',...OverImage.parameters?.docs?.source},description:{story:"The same again over a picture — the host is the only difference.",...OverImage.parameters?.docs?.description}}}},"./libs/ui/.storybook/demos/header/header.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,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/mosaic/mosaic.animations.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/* Animations of the background grid, separated from the layout styles.\n Each endless mode applies its modifier class to a picked tile and removes\n it after the animation finished (timer-driven), so tiles can replay. */\n\n/* infinity: a randomly picked tile pops from tiny to its full size. */\n._tile._-grow {\n animation: ui-mosaic-grow var(--ui-mosaic-fall, 1200ms)\n ease-out;\n}\n\n@keyframes ui-mosaic-grow {\n from {\n transform: scale(0);\n }\n\n to {\n transform: scale(1);\n }\n}\n\n/* pulse: a randomly picked tile takes a soft breath. */\n._tile._-pulse {\n animation: ui-mosaic-pulse var(--ui-mosaic-fall, 1200ms)\n ease-in-out;\n}\n\n@keyframes ui-mosaic-pulse {\n 0%,\n 100% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(1.12);\n }\n}\n\n/* flip: a randomly picked tile turns once around its Y axis. */\n._tile._-flip {\n animation: ui-mosaic-flip var(--ui-mosaic-fall, 1200ms)\n ease-in-out;\n}\n\n@keyframes ui-mosaic-flip {\n from {\n transform: perspective(60rem) rotateY(0deg);\n }\n\n to {\n transform: perspective(60rem) rotateY(360deg);\n }\n}\n\n/* fade: a randomly picked tile blinks out and back in. */\n._tile._-fade {\n animation: ui-mosaic-fade var(--ui-mosaic-fall, 1200ms)\n ease-in-out;\n}\n\n@keyframes ui-mosaic-fade {\n 0%,\n 100% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0;\n }\n}\n\n/* wave: tiles lift briefly while a diagonal sweep crosses the grid. */\n._tile._-wave {\n animation: ui-mosaic-wave var(--ui-mosaic-fall, 1200ms)\n ease-in-out;\n}\n\n@keyframes ui-mosaic-wave {\n 0%,\n 100% {\n transform: translateY(0) scale(1);\n }\n\n 50% {\n transform: translateY(-8%) scale(1.06);\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/mosaic/mosaic.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 /* No position, no z-index, no size: WHERE the mosaic sits — pinned behind\n the page, inside a box, over a picture — is the caller's decision, and so\n is how big it is. It fills the box it is given and brings nothing else.\n Given no box, it renders nothing; that is a wiring mistake, not a fault\n of the component. `pointer-events: none` stays: it is decoration, and\n decoration never takes a click away from what it lies on. */\n display: block;\n overflow: hidden;\n pointer-events: none;\n}\n\n._grid {\n /* Positioned so it paints ABOVE the absolutely positioned backdrop —\n unpositioned flow content would be covered by it regardless of DOM\n order. */\n position: relative;\n display: grid;\n width: 100%;\n height: 100%;\n}\n\n/* The backdrop behind the tiles — an image in `image` mode, a plain color in\n `color` mode. Both fill the host; what the falling tiles reveal is whichever\n one is present (and the page itself when neither is). */\n._main-image,\n._main-color {\n position: absolute;\n inset: 0;\n}\n\n._main-image {\n background-size: cover;\n background-position: center center;\n}\n\n/* In `color` mode the tile IS the surface — the color is bound straight onto\n this element, so a colored tile needs no child at all and falls, flips and\n pulses exactly like an image tile. */\n._tile {\n aspect-ratio: 4 / 3;\n overflow: hidden;\n transform-origin: center center;\n}\n\n/* Optional tile border (border input). */\n:host(._-border) ._tile {\n box-sizing: border-box;\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n}\n\n/* A fallen tile: shrunk to nothing around its center, fully transparent —\n it stays gone and reveals the main image behind the grid. The transition\n lives ONLY on the fallen state: shrinking animates, reappearing (state\n resets, infinity rounds) snaps instantly — tiles never grow into view. */\n._tile._-fallen {\n transform: scale(0);\n opacity: 0;\n transition:\n transform var(--ui-mosaic-fall, 1200ms) ease-in,\n opacity var(--ui-mosaic-fall, 1200ms) ease-in;\n}\n\n._tile img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center center;\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/placeholder/placeholder.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/* Encapsulation.None — one nested block anchored on the tag, so the rules\n cannot leak while the host itself stays styleable from outside. */\nui-placeholder {\n display: flex;\n align-items: center;\n justify-content: center;\n\n /* A floor, not a size: width and height come from wherever it is used.\n Without one an empty stand-in collapses to a text line and stops being\n the mass it exists to be. The floor is a named hook with a fallback, so a\n consumer who deliberately wants a smaller stand-in can set\n `--ui-placeholder-min-width` / `--ui-placeholder-min-height` without a\n cascade fight — an unlayered host rule otherwise beats a width utility in\n `@layer utilities` (tickets#241, tickets#251, tickets#253). */\n min-width: var(--ui-placeholder-min-width, calc(var(--ui-spacer) * 3));\n min-height: var(--ui-placeholder-min-height, calc(var(--ui-spacer) * 3));\n padding: calc(var(--ui-spacer) * 0.25);\n\n /* The overlay header's pair: filled enough to read as chrome rather than\n content, and theme-aware through the tokens. */\n background-color: var(--ui-c-primary);\n color: var(--ui-c-default);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-radius: var(--ui-border-radius);\n\n /* It is scenery, never the subject: nothing here should invite a click or\n land in a text selection. */\n -webkit-user-select: none;\n user-select: none;\n\n ._label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2831],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.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"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/atoms/placeholder/placeholder.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:()=>UiPlaceholderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var placeholder_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/placeholder/placeholder.component.css?ngResource"),placeholder_componentngResource_default=__webpack_require__.n(placeholder_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");let UiPlaceholderComponent=class UiPlaceholderComponent{label=(0,core.input)(null);static propDecorators={label:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"label",required:!1,transform:void 0}]}]}};UiPlaceholderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-placeholder",template:"<span class=\"_label\">{{ label() ?? ('placeholder.label' | transloco) }}</span>\n",encapsulation:_debug_node_chunk.gXe.None,imports:[ngneat_transloco.Kj],styles:[placeholder_componentngResource_default()]})],UiPlaceholderComponent)},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});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/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/src/lib/atoms/mosaic/mosaic.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Colors:()=>Colors,Images:()=>Images,OverImage:()=>OverImage,OverText:()=>OverText,__namedExportsOrder:()=>__namedExportsOrder,default:()=>mosaic_component_stories});var _effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),placeholder_component=__webpack_require__("./libs/ui/src/lib/atoms/placeholder/placeholder.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var mosaic_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/mosaic/mosaic.component.css?ngResource"),mosaic_componentngResource_default=__webpack_require__.n(mosaic_componentngResource),mosaic_animationsngResource=__webpack_require__("./libs/ui/src/lib/atoms/mosaic/mosaic.animations.css?ngResource"),mosaic_animationsngResource_default=__webpack_require__.n(mosaic_animationsngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");const ANIMATION_CLASS={infinity:"_-grow",pulse:"_-pulse",flip:"_-flip",fade:"_-fade",wave:"_-wave"};let UiMosaicComponent=class UiMosaicComponent{images=(0,core.input)(null);colors=(0,core.input)(null);mainImage=(0,core.input)(null);mainColor=(0,core.input)(null);mode=(0,core.input)("image");tileMinWidth=(0,core.input)(120);fallDelay=(0,core.input)(200);fallDuration=(0,core.input)(1200);animationType=(0,core.input)("falldown");border=(0,core.input)(!1,{transform:core.booleanAttribute});hostSize=(0,_effect_chunk2.vPA)({width:0,height:0});fallen=(0,_effect_chunk2.vPA)(new Set);animating=(0,_effect_chunk2.vPA)(new Set);animationClass=(0,_resource_chunk.EW)(()=>ANIMATION_CLASS[this.animationType()]??null);loadedImages=(0,_effect_chunk2.vPA)(0);onImageSettled(){this.loadedImages.update(count=>count+1)}allTilesSettled=(0,_resource_chunk.EW)(()=>{const tileCount=this.tiles().length;return 0!==tileCount&&("color"===this.mode()||this.loadedImages()>=tileCount)});cols=(0,_resource_chunk.EW)(()=>{const tileWidth=Math.max(1,this.tileMinWidth());return Math.max(1,Math.floor(this.hostSize().width/tileWidth))});tiles=(0,_resource_chunk.EW)(()=>{const source="color"===this.mode()?this.colors():this.images(),{width,height}=this.hostSize();if(!source?.length||width<=0||height<=0)return[];const cols=this.cols(),tileHeight=width/cols*(3/4),rows=Math.max(1,Math.ceil(height/tileHeight));return Array.from({length:cols*rows},(_,index)=>source[index%source.length])});tileImage(tile){return"string"==typeof tile?null:tile}tileColor(tile){return"string"==typeof tile?tile:null}constructor(){const host=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT).nativeElement,observer=new ResizeObserver(entries=>{const box=entries[0]?.contentRect;box&&this.hostSize.set({width:box.width,height:box.height})});observer.observe(host),(0,_effect_chunk2.WQX)(_effect_chunk2.abz).onDestroy(()=>observer.disconnect()),(0,_effect_chunk2.QZP)(onCleanup=>{const tileCount=this.tiles().length,cols=this.cols(),delay=this.fallDelay(),duration=this.fallDuration(),animationType=this.animationType(),ready=this.allTilesSettled();if((0,_resource_chunk.O8)(()=>{this.fallen.set(new Set),this.animating.set(new Set)}),0===tileCount||delay<=0||!ready)return;const timers=new Set,schedule=(handler,ms)=>{const timer=setTimeout(()=>{timers.delete(timer),handler()},ms);timers.add(timer)};if(onCleanup(()=>timers.forEach(timer=>clearTimeout(timer))),"falldown"!==animationType){const waveOrder="wave"===animationType?function diagonalOrder(tileCount,cols){return Array.from({length:tileCount},(_,index)=>index).sort((a,b)=>Math.floor(a/cols)+a%cols-(Math.floor(b/cols)+b%cols)||a%cols-b%cols)}(tileCount,cols):null;let pointer=0;const tick=()=>{const pick=waveOrder?waveOrder[pointer++%waveOrder.length]:Math.floor(Math.random()*tileCount);(0,_resource_chunk.O8)(this.animating).has(pick)||(this.animating.update(animating=>new Set(animating).add(pick)),schedule(()=>{this.animating.update(animating=>{const next=new Set(animating);return next.delete(pick),next})},duration)),schedule(tick,delay)};return void schedule(tick,1e3)}const order=function shuffle(values){for(let i=values.length-1;i>0;i--){const j=Math.floor(Math.random()*(i+1));[values[i],values[j]]=[values[j],values[i]]}return values}(Array.from({length:tileCount},(_,index)=>index)),tick=()=>{const next=order.shift();void 0!==next&&(this.fallen.update(fallen=>new Set(fallen).add(next)),schedule(tick,delay))};schedule(tick,1e3)})}static ctorParameters=()=>[];static propDecorators={images:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"images",required:!1,transform:void 0}]}],colors:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"colors",required:!1,transform:void 0}]}],mainImage:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"mainImage",required:!1,transform:void 0}]}],mainColor:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"mainColor",required:!1,transform:void 0}]}],mode:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"mode",required:!1,transform:void 0}]}],tileMinWidth:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"tileMinWidth",required:!1,transform:void 0}]}],fallDelay:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"fallDelay",required:!1,transform:void 0}]}],fallDuration:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"fallDuration",required:!1,transform:void 0}]}],animationType:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"animationType",required:!1,transform:void 0}]}],border:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"border",required:!1,transform:void 0}]}]}};UiMosaicComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-mosaic",template:'@if (mode() === \'color\') {\n @if (mainColor(); as color) {\n <div class="_main-color" [style.background-color]="color"></div>\n }\n} @else if (mainImage(); as image) {\n <div\n class="_main-image"\n role="img"\n [attr.aria-label]="image.alt"\n [style.background-image]="\'url(\' + image.src + \')\'"\n ></div>\n}\n<div\n class="_grid"\n [style.grid-template-columns]="\'repeat(\' + cols() + \', 1fr)\'"\n>\n @for (tile of tiles(); track $index) {\n <div\n class="_tile"\n [class._-fallen]="fallen().has($index)"\n [class]="\n animationClass() && animating().has($index) ? animationClass() : \'\'\n "\n [style.background-color]="tileColor(tile)"\n >\n @if (tileImage(tile); as image) {\n <img\n [src]="image.src"\n [alt]="image.alt"\n decoding="async"\n (load)="onImageSettled()"\n (error)="onImageSettled()"\n />\n }\n </div>\n }\n</div>\n',encapsulation:_debug_node_chunk.gXe.Emulated,host:{"[style.--ui-mosaic-fall.ms]":"fallDuration()","[class._-border]":"border()"},styles:[mosaic_componentngResource_default(),mosaic_animationsngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiMosaicComponent);const mosaic_component_stories={title:"Atoms/Mosaic",component:UiMosaicComponent,decorators:[(0,dist.Iz)({imports:[header_component.b,placeholder_component.F,UiMosaicComponent]})],argTypes:{animationType:{control:"radio",options:["falldown","infinity","pulse","flip","fade","wave"]},mode:{control:"radio",options:["image","color"]},mainColor:{control:"color"},tileMinWidth:{control:{type:"range",min:8,max:400,step:2}},fallDelay:{control:{type:"range",min:0,max:1e3,step:5}},fallDuration:{control:{type:"range",min:0,max:3e3,step:50}},border:{control:"boolean"},images:{control:"object"},colors:{control:"object"},mainImage:{control:"object"}},args:{animationType:"falldown",border:!1,mode:"image",colors:["#ff00ff","#00e5ff","#ffe000","#7c4dff","#00c853","#ff3d00"],mainColor:"#101014",tileMinWidth:120,fallDelay:200,fallDuration:1200,images:function uiMosaicMock(){return Array.from({length:120},()=>{const number=String(Math.floor(25*Math.random())+1).padStart(2,"0");return{src:`https://moja.work/content/_assets/pictures/numbers/25/numbers-0${number}.png`,alt:`number-${number}`}})}(),mainImage:{src:"https://moja.work/content/_assets/pictures/numbers/50/numbers-007.png",alt:"number-07"}},parameters:{docs:{canvas:{sourceState:"none"}}}},mosaic=hostClass=>`\n <ui-mosaic\n class="${hostClass}"\n [mode]="mode"\n [images]="images"\n [colors]="colors"\n [mainImage]="mainImage"\n [mainColor]="mainColor"\n [tileMinWidth]="tileMinWidth"\n [fallDelay]="fallDelay"\n [fallDuration]="fallDuration"\n [animationType]="animationType"\n [border]="border"\n ></ui-mosaic>`,replayProps=()=>{const shown=(0,_effect_chunk2.vPA)(!0);return{shown,replay:()=>{shown.set(!1),setTimeout(()=>shown.set(!0),60)}}},replayButton='\n <button class="ui fixed bottom-4 left-4 z-20" type="button" (click)="replay()">replay</button>',Images={render:args=>({props:{...args,...replayProps()},template:`\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n @if (shown()) { ${mosaic("fixed inset-0 -z-10")} }\n ${replayButton}\n </section>`})},Colors={args:{mode:"color",images:[]},render:args=>({props:{...args,...replayProps()},template:`\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n @if (shown()) { ${mosaic("fixed inset-0 -z-10")} }\n ${replayButton}\n </section>`})},OverText={args:{mode:"color",images:[],mainImage:null,mainColor:null,tileMinWidth:48,fallDelay:40},render:args=>({props:{...args,...replayProps()},template:`\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative m-4 w-full max-w-2xl">\n <ui-placeholder class="block h-64 w-full"></ui-placeholder>\n @if (shown()) { ${mosaic("absolute inset-0 z-10")} }\n </section>\n ${replayButton}`})},OverImage={args:{mode:"color",images:[],mainImage:null,mainColor:null,tileMinWidth:48,fallDelay:40},render:args=>({props:{...args,...replayProps()},template:`\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative m-4 h-96 w-[36rem]">\n <img\n class="h-full w-full object-cover"\n src="https://moja.work/content/_assets/pictures/numbers/50/numbers-007.png"\n alt="number-07"\n />\n @if (shown()) { ${mosaic("absolute inset-0 z-10")} }\n </section>\n ${replayButton}`})},__namedExportsOrder=["Images","Colors","OverText","OverImage"];Images.parameters={...Images.parameters,docs:{...Images.parameters?.docs,source:{originalSource:'{\n render: args => ({\n props: {\n ...args,\n ...replayProps()\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n @if (shown()) { ${mosaic(\'fixed inset-0 -z-10\')} }\n ${replayButton}\n </section>`\n })\n}',...Images.parameters?.docs?.source},description:{story:"Pinned behind the page, which is what the component used to do on its own.\nThe three declarations that were burned into `:host` now sit on the tag,\nwhere a consumer can see and change them.",...Images.parameters?.docs?.description}}},Colors.parameters={...Colors.parameters,docs:{...Colors.parameters?.docs,source:{originalSource:"{\n args: {\n mode: 'color',\n // Empty on purpose: this story is about the colors, and a control still\n // holding 120 images would suggest they are part of the example.\n images: []\n },\n render: args => ({\n props: {\n ...args,\n ...replayProps()\n },\n template: `\n <ui-intern-header theme=\"theme-light\"></ui-intern-header>\n <section class=\"relative flex flex-col\">\n @if (shown()) { ${mosaic('fixed inset-0 -z-10')} }\n ${replayButton}\n </section>`\n })\n}",...Colors.parameters?.docs?.source},description:{story:"The same host, filled with plain colors instead of images.",...Colors.parameters?.docs?.description}}},OverText.parameters={...OverText.parameters,docs:{...OverText.parameters?.docs,source:{originalSource:'{\n args: {\n mode: \'color\',\n images: [],\n mainImage: null,\n mainColor: null,\n tileMinWidth: 48,\n fallDelay: 40\n },\n render: args => ({\n props: {\n ...args,\n ...replayProps()\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative m-4 w-full max-w-2xl">\n <ui-placeholder class="block h-64 w-full"></ui-placeholder>\n @if (shown()) { ${mosaic(\'absolute inset-0 z-10\')} }\n </section>\n ${replayButton}`\n })\n}',...OverText.parameters?.docs?.source},description:{story:"Not a background at all: the same tag inside a `relative` box, stacked ON\nTOP of what it covers. Both backdrops are empty here on purpose — what the\nfalling tiles reveal is the content underneath, not a picture the mosaic\nbrought along.",...OverText.parameters?.docs?.description}}},OverImage.parameters={...OverImage.parameters,docs:{...OverImage.parameters?.docs,source:{originalSource:'{\n args: {\n mode: \'color\',\n images: [],\n mainImage: null,\n mainColor: null,\n tileMinWidth: 48,\n fallDelay: 40\n },\n render: args => ({\n props: {\n ...args,\n ...replayProps()\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative m-4 h-96 w-[36rem]">\n <img\n class="h-full w-full object-cover"\n src="https://moja.work/content/_assets/pictures/numbers/50/numbers-007.png"\n alt="number-07"\n />\n @if (shown()) { ${mosaic(\'absolute inset-0 z-10\')} }\n </section>\n ${replayButton}`\n })\n}',...OverImage.parameters?.docs?.source},description:{story:"The same again over a picture — the host is the only difference.",...OverImage.parameters?.docs?.description}}}},"./libs/ui/.storybook/demos/header/header.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,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/mosaic/mosaic.animations.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/* Animations of the background grid, separated from the layout styles.\n Each endless mode applies its modifier class to a picked tile and removes\n it after the animation finished (timer-driven), so tiles can replay. */\n\n/* infinity: a randomly picked tile pops from tiny to its full size. */\n._tile._-grow {\n animation: ui-mosaic-grow var(--ui-mosaic-fall, 1200ms)\n ease-out;\n}\n\n@keyframes ui-mosaic-grow {\n from {\n transform: scale(0);\n }\n\n to {\n transform: scale(1);\n }\n}\n\n/* pulse: a randomly picked tile takes a soft breath. */\n._tile._-pulse {\n animation: ui-mosaic-pulse var(--ui-mosaic-fall, 1200ms)\n ease-in-out;\n}\n\n@keyframes ui-mosaic-pulse {\n 0%,\n 100% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(1.12);\n }\n}\n\n/* flip: a randomly picked tile turns once around its Y axis. */\n._tile._-flip {\n animation: ui-mosaic-flip var(--ui-mosaic-fall, 1200ms)\n ease-in-out;\n}\n\n@keyframes ui-mosaic-flip {\n from {\n transform: perspective(60rem) rotateY(0deg);\n }\n\n to {\n transform: perspective(60rem) rotateY(360deg);\n }\n}\n\n/* fade: a randomly picked tile blinks out and back in. */\n._tile._-fade {\n animation: ui-mosaic-fade var(--ui-mosaic-fall, 1200ms)\n ease-in-out;\n}\n\n@keyframes ui-mosaic-fade {\n 0%,\n 100% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0;\n }\n}\n\n/* wave: tiles lift briefly while a diagonal sweep crosses the grid. */\n._tile._-wave {\n animation: ui-mosaic-wave var(--ui-mosaic-fall, 1200ms)\n ease-in-out;\n}\n\n@keyframes ui-mosaic-wave {\n 0%,\n 100% {\n transform: translateY(0) scale(1);\n }\n\n 50% {\n transform: translateY(-8%) scale(1.06);\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/mosaic/mosaic.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 /* No position, no z-index, no size: WHERE the mosaic sits — pinned behind\n the page, inside a box, over a picture — is the caller's decision, and so\n is how big it is. It fills the box it is given and brings nothing else.\n Given no box, it renders nothing; that is a wiring mistake, not a fault\n of the component. `pointer-events: none` stays: it is decoration, and\n decoration never takes a click away from what it lies on. */\n display: block;\n overflow: hidden;\n pointer-events: none;\n}\n\n._grid {\n /* Positioned so it paints ABOVE the absolutely positioned backdrop —\n unpositioned flow content would be covered by it regardless of DOM\n order. */\n position: relative;\n display: grid;\n width: 100%;\n height: 100%;\n}\n\n/* The backdrop behind the tiles — an image in `image` mode, a plain color in\n `color` mode. Both fill the host; what the falling tiles reveal is whichever\n one is present (and the page itself when neither is). */\n._main-image,\n._main-color {\n position: absolute;\n inset: 0;\n}\n\n._main-image {\n background-size: cover;\n background-position: center center;\n}\n\n/* In `color` mode the tile IS the surface — the color is bound straight onto\n this element, so a colored tile needs no child at all and falls, flips and\n pulses exactly like an image tile. */\n._tile {\n aspect-ratio: 4 / 3;\n overflow: hidden;\n transform-origin: center center;\n}\n\n/* Optional tile border (border input). */\n:host(._-border) ._tile {\n box-sizing: border-box;\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n}\n\n/* A fallen tile: shrunk to nothing around its center, fully transparent —\n it stays gone and reveals the main image behind the grid. The transition\n lives ONLY on the fallen state: shrinking animates, reappearing (state\n resets, infinity rounds) snaps instantly — tiles never grow into view. */\n._tile._-fallen {\n transform: scale(0);\n opacity: 0;\n transition:\n transform var(--ui-mosaic-fall, 1200ms) ease-in,\n opacity var(--ui-mosaic-fall, 1200ms) ease-in;\n}\n\n._tile img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center center;\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/placeholder/placeholder.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/* Encapsulation.None — one nested block anchored on the tag, so the rules\n cannot leak while the host itself stays styleable from outside. */\nui-placeholder {\n display: flex;\n align-items: center;\n justify-content: center;\n\n /* A floor, not a size: width and height come from wherever it is used.\n Without one an empty stand-in collapses to a text line and stops being\n the mass it exists to be. The floor is a named hook with a fallback, so a\n consumer who deliberately wants a smaller stand-in can set\n `--ui-placeholder-min-width` / `--ui-placeholder-min-height` without a\n cascade fight — an unlayered host rule otherwise beats a width utility in\n `@layer utilities` (tickets#241, tickets#251, tickets#253). */\n min-width: var(--ui-placeholder-min-width, calc(var(--ui-spacer) * 3));\n min-height: var(--ui-placeholder-min-height, calc(var(--ui-spacer) * 3));\n padding: calc(var(--ui-spacer) * 0.25);\n\n /* The overlay header's pair: filled enough to read as chrome rather than\n content, and theme-aware through the tokens. */\n background-color: var(--ui-c-primary);\n color: var(--ui-c-default);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-radius: var(--ui-border-radius);\n\n /* It is scenery, never the subject: nothing here should invite a click or\n land in a text selection. */\n -webkit-user-select: none;\n user-select: none;\n\n ._label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);