@mojawork/ui-docs 2.8.2 → 2.8.4

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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2168],{"./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_moja_code_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_moja_code_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/layout/overlay/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_moja_code_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"),_overlay_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/layout/overlay/overlay.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_layout_overlay_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-layout-overlay.json");function _createMdxContent(props){const _components={a:"a",code:"code",em:"em",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_moja_code_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:_overlay_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"layout-overlay",children:"Layout: Overlay"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A versatile modal/drawer component for displaying content over the main application interface."}),"\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:["A panel over the page — from the centre or any edge, up to a chosen width —\nwith backdrop, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Escape"}),", a focus trap and a scroll-lock on the page\nbehind, all built in. It shows what is projected into its slots and reports\nevery close through ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"activeOutput"}),"; whether it is open is the host's state,\nbound in. It belongs at the top level of the app, next to the layout, never\ninside it. It carries no header of its own: that is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-overlay-header"}),",\nplaced in the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overlay-header"})," slot."]}),"\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-layout-overlay",entry:_guide_ui_layout_overlay_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:"overview",children:"Overview"}),"\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:"UiLayoutOverlayComponent"})," provides a flexible way to present information or actions. It supports multiple entry directions (center, top, bottom, left, right) and various maximum widths. It's often used in conjunction with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutOverlayHeaderComponent"}),"."]}),"\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:"Dismissing:"})," the overlay closes on a click outside the panel (the backdrop) and by pressing ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Escape"})," while it is open. Both run the leave animation and then emit ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"activeOutput"})," = ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"false"}),", so keep the bound ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"active"})," state in sync with that output. The output reports exactly one close per close that actually happened — nothing on the initial binding round, and a reopen during the leave animation cancels the pending report instead of being shot down by it. With several overlays open at once, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Escape"})," and the focus trap belong to the one on top — the last visible overlay in the document, which is the one painted over the others — so a question asked over a sheet closes on its own, not together with the sheet."]}),"\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:"Keyboard:"})," the overlay is a modal dialog and keeps the keyboard inside. Opening moves the focus to the first focusable element in the panel (or the panel itself), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Tab"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Shift"}),"+",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Tab"}),' cycle within it instead of walking the page behind, and closing returns the focus to whatever opened the overlay. Without this the focus ring lands on elements the user cannot see — it reads as "no focus at all".']}),"\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:"Scroll containment:"})," while any overlay is visible, the page behind it is\nscroll-locked — purely declaratively via\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"body:has(.ui-overlay._-visible) { overflow: hidden }"})," in the component styles,\nno JavaScript bookkeeping involved. The lock holds as long as at least one\nvisible panel is in the DOM (nested/parallel overlays included, and through the\nclose animation) and falls automatically with the panel — whatever removes it:\na regular close, a component destroy, or a hot-reload/Storybook teardown that\nskips the Angular lifecycle. A stuck lock is impossible by construction. The\npanel's scroll containers additionally use ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overscroll-behavior: contain"}),", so\nscrolling inside the overlay never chains to the page underneath; the page\nkeeps its scroll position throughout."]}),"\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:"Caveat:"})," the rule carries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"!important"}),", because the lock is the overlay's\ncontract — while a panel is visible it also beats ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"inline"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overflow"})," styles\nthat apps set on the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<body>"})," themselves (the website, for example, manages\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"body.style.overflowY"})," for its own purposes; without ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"!important"})," that inline\nlonghand would win and the page would scroll behind the overlay). The one thing\nthat still defeats it is an app setting an inline ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overflow"})," with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"!important"}),"\n— don't do that; while an overlay is up, the page is locked, no exceptions."]}),"\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:"where-to-place-it--read-this-first",children:"Where to place it — read this first"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This overlay renders ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"where it stands in the template"}),". It is not moved into a\ncontainer at the end of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<body>"}),", the way Angular Material's CDK overlay does.\nThat keeps it simple — no portals, no position strategies, content projection\nand forms behave normally — but it has one consequence that costs an afternoon\nif you learn it the hard way:"]}),"\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:"Put the overlay at the top level of the app, next to the layout — not inside\nit."})," Anything above it in the DOM that establishes a containing block takes the\npanel hostage, because the panel is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"position: fixed"}),":"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",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:"Property on an ancestor"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"What it does to the panel"})]})}),(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__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"transform"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"perspective"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"filter"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Becomes the containing block: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"top/left/right/bottom"})," and\npercentage sizes resolve against that box instead of the window. In a\nlong page the panel can end up as tall as the whole document."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"contain: paint"})," (or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"content"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"strict"}),")"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Clips the panel to that element — the sheet is measured at full size but\ndrawn cut off, which looks like a styling bug and is not one."})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"overflow"})," other than ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"visible"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Clips the panel once the same ancestor is also a containing block."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["A ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"transition"})," on width/left/transform"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The panel rides along with it: opening the overlay then looks as if the\nwhole page slides sideways."})})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Safari adds a painting hazard on top of the geometry problems: under a\ntransformed ancestor it can mispaint ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"native form controls"})," — most visibly\na checked checkbox that simply disappears. An identity transform such as\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"translateX(0)"})," or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scale(1)"})," triggers this exactly like a real one, which is\nwhy the library keeps every resting state at ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transform: none"}),": the centered\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-main"})," drops its translate outside the centered breakpoints, and the\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"center"})," panel finishes its open animation on ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"none"})," instead of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scale(1)"}),".\nFollow the same rule in app code."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["If the overlay genuinely has to live inside such a subtree, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"viewportHeight"}),"\nis the escape hatch: it references the height to the browser window and counters\nthe displaced fixed origin. Treat it as a patch, not as the normal case — moving\nthe overlay out is always the better fix."]}),"\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:"example-overlay",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-overlay--overlay",children:"Example: Overlay"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"example-scroll-containment",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-overlay--scroll-containment",children:"Example: Scroll containment"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"example-content-height",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-overlay--fit-content",children:"Example: Content height"})}),"\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:"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__.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:"@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)("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)("code",{children:"active"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Controls the visibility of the overlay."})]}),(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)("code",{children:"direction"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UILayoutOverlayDirectionsType | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})," (renders as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'center'"}),")"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The entry direction of the overlay (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'center'"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'top'"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'bottom'"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'left'"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'right'"}),")."]})]}),(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)("code",{children:"maxWidth"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UILayoutOverlayMaxWidthType | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})," (renders as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'max'"}),")"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Sets the overlay’s maximum width. Available values are ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'max'"})," (default),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ms-1'"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"374px"}),"), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ms-2'"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"480px"}),"),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ms-3'"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"768px"}),"), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ms-4'"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1024px"}),"), and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ms-5'"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1900px"}),")."]})})]}),(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)("code",{children:"viewportHeight"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["References the overlay height to the browser viewport\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"100dvh"}),") instead of the containing block. Use this when a\ntransformed ancestor (e.g. the centered ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ui-layout-main"}),")\nhijacks ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"position: fixed"})," — the default percent heights\nwould span the whole document there. The component also counters the\ndisplaced fixed origin, so the panel always opens inside the visible\nwindow."]})})]}),(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)("code",{children:"fitContent"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Sizes the panel to its content instead of filling the available height,\ncapped at 80% of the window. Without it a sheet with little content\nstands there as a tall, mostly empty column. Combines with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"viewportHeight"}),"."]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A cap, no floor: a two-field form ends up two fields tall. If a panel\nneeds a minimum, write it where that decision belongs — the library\ncannot know whether a small sheet wants room or wants to be small."}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["It changes ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"height and nothing else"}),". Where a panel sits\nand how it slides in stays the business of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"direction"}),", so\nthe entrance animation is identical with and without it. An earlier\nversion also positioned the panel here, which overwrote the offset a"," ","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"top"})," sheet slides in from — it then stood in place instead\nof entering."]})]})]})]})]}),"\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:"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__.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:"@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__.jsx)("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)("code",{children:"activeOutput"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Emits ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})," when the overlay is dismissed (e.g., closed)."]})]})})]}),"\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:"content-slots-ng-content",children:"Content Slots (ng-content)"}),"\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.code,{children:"[overlay-header]"}),": Slot for the header (usually containing the title and close button)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[overlay-content]"}),": Main content area."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[overlay-footer]"}),": Optional footer area."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"usage"})})}),"\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-layout-overlay\n [direction]="\'right\'"\n [maxWidth]="\'ms-2\'"\n [active]="isOverlayActive"\n (activeOutput)="isOverlayActive = $event">\n\n <ui-layout-overlay-header overlay-header\n [headline]="\'Settings\'"\n (activeOutput)="isOverlayActive = $event">\n </ui-layout-overlay-header>\n\n <div overlay-content>\n \x3c!-- Your content here --\x3e\n </div>\n\n <div overlay-footer>\n <button class="ui-success">Save</button>\n </div>\n\n</ui-layout-overlay>\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_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)}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[365,1043],{"./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/_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)},"./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/.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_moja_code_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_moja_code_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/layout/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_moja_code_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"),_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_layout_spinner_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-layout-spinner.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_moja_code_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:_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"layout-spinner",children:"Layout: Spinner"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A global loading indicator that provides visual feedback during asynchronous operations."}),"\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:["A global loading indicator, placed once at the application root and switched\nthrough ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutSpinnerService"})," from anywhere — an HTTP interceptor, typically.\nIt shows, animates out and hides; it does not count requests, time out or block\ninput on its own, and it is not the spinner for one component's own loading\nstate. What it can do is wait: with a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"delay"}),", a start shows nothing until\nthat many milliseconds have passed, and an operation that ends inside them\nnever shows a spinner at all — not even the leave animation. That is the\nanswer to a fast answer flashing an overlay."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["That last sentence now has an address: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-inline-spinner"})," is the one for a\nsingle area. Both draw the same animation — it lives in an internal electron\nthat each of them builds in, so the library holds one set of keyframes rather\nthan two that drift. What stays here is what makes this one global: the\nbackdrop, the message box with its OK button, and the state coming from the\nservice."]}),"\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-layout-spinner",entry:_guide_ui_layout_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:"overview",children:"Overview"}),"\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:"UiLayoutSpinnerComponent"})," is a singleton component typically placed at the application root (e.g., ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"app.component.html"}),"). It's controlled via the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutSpinnerService"}),", making it easy to trigger from anywhere in the app, such as an HTTP interceptor."]}),"\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:"example-spinner",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-spinner--spinner",children:"Example: Spinner"})}),"\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",{class:"ui",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:"@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)("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)("code",{children:"debug"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["If ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"}),", displays a debug navigation to manually test spinner states."]})]}),(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)("code",{children:"close"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["If ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"}),", shows a close button to manually dismiss the spinner."]})]}),(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)("code",{children:"type"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("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)("code",{children:"'ring'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Selects the loading animation: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ring"})," (rotating gradient ring), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"linear"})," (indeterminate sliding bar), or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"disco"})," (spinning rainbow ring with hue rotation and a blinking sparkle in the centre)."]})]}),(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)("code",{children:"delay"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"number"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Milliseconds a start waits before the overlay appears. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0"})," shows it at once; an operation that ends inside the delay shows no spinner at all. In the story, set the slider and press Start, then Success before it fires."]})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"service-uilayoutspinnerservice",children:["Service: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutSpinnerService"})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Use this service to control the spinner's state:"}),"\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-typescript",children:"// Start the spinner — at once, or after the component's `delay`\nspinnerService.startSpinner();\n\n// Mark operation as successful (animates out and hides). A visible\n// message state is NOT auto-dismissed by this call.\nspinnerService.successSpinner();\n\n// Show a message within the spinner (stays until dismissed)\nspinnerService.messageSpinner('Loading your data...');\n\n// Dismiss unconditionally — also clears a message state (used by the\n// overlay's OK button when [close] is enabled)\nspinnerService.dismissSpinner();\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\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:"Usage: Add to Template"})," Place the component in your main application template."]}),"\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-layout-spinner [close]="true" [debug]="true"></ui-layout-spinner>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_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/layout/spinner/spinner.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Spinner:()=>Spinner,__namedExportsOrder:()=>__namedExportsOrder,default:()=>spinner_component_stories});var fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var spinner_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/spinner/spinner.component.css?ngResource"),spinner_componentngResource_default=__webpack_require__.n(spinner_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"),Subscription=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subscription.js"),loader_component=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");let UiLayoutSpinnerService=class UiLayoutSpinnerService{status=new BehaviorSubject.t({show:"none"});hideTimeout=null;delay=0;showTimeout=null;setDelay(ms){this.delay=Math.max(0,ms)}startSpinner(){this.cancelPendingHide(),this.cancelPendingShow(),this.delay>0?this.showTimeout=setTimeout(()=>{this.showTimeout=null,this.status.next({show:"showIn"})},this.delay):this.status.next({show:"showIn"})}messageSpinner(content){this.cancelPendingHide(),this.cancelPendingShow(),this.status.next({content,show:"error"})}successSpinner(){this.status.getValue().content||this.dismissSpinner()}dismissSpinner(){this.cancelPendingHide(),this.cancelPendingShow(),"none"!==this.status.getValue().show&&(this.status.next({show:"showOut"}),this.hideTimeout=setTimeout(()=>{this.hideTimeout=null,this.status.next({show:"none"})},1200))}cancelPendingHide(){null!==this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}cancelPendingShow(){null!==this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}getSpinner(){return this.status}};UiLayoutSpinnerService=(0,tslib_es6.Cg)([(0,_debug_node_chunk._qm)({providedIn:"root"})],UiLayoutSpinnerService);let UiLayoutSpinnerComponent=class UiLayoutSpinnerComponent{spinnerService=(0,_effect_chunk2.WQX)(UiLayoutSpinnerService);debug=(0,core.input)(!1);close=(0,core.input)(!1);type=(0,core.input)("ring");delay=(0,core.input)(0);status=(0,_effect_chunk2.vPA)({show:"none"});subscription=new Subscription.yU;constructor(){(0,_effect_chunk2.QZP)(()=>this.spinnerService.setDelay(this.delay()))}ngOnInit(){this.subscription.add(this.spinnerService.getSpinner().subscribe(show=>this.status.set(show)))}ngOnDestroy(){this.subscription.unsubscribe()}static ctorParameters=()=>[];static propDecorators={debug:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"debug",required:!1,transform:void 0}]}],close:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"close",required:!1,transform:void 0}]}],type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}],delay:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"delay",required:!1,transform:void 0}]}]}};UiLayoutSpinnerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-spinner",template:'@if (debug()) {\n <div class="ui-debug">\n <button class="ui" (click)="spinnerService.startSpinner()">Start</button>\n <button class="ui" (click)="spinnerService.successSpinner()">Success</button>\n <button class="ui" (click)="spinnerService.messageSpinner(\'Info message\')">Message</button>\n <span>\n {{ status() | json }}\n </span>\n </div>\n}\n\n@if (status().show !== \'none\') {\n <div class="_spinner" [class]="status().show">\n \x3c!-- The animation is the electron\'s, here and in `ui-inline-spinner`:\n one set of keyframes, one set of masks, two places that show them. --\x3e\n <ui-electron-loader [type]="type()" />\n @if (status().content) {\n <div class="_content">\n <span [innerHTML]="status().content"></span>\n @if (close()) {\n <div class="_actions">\n <button class="ui" (click)="spinnerService.dismissSpinner()">OK</button>\n </div>\n }\n </div>\n }\n </div>\n}\n',imports:[_common_module_chunk.TG,loader_component.p],styles:[spinner_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiLayoutSpinnerComponent);const spinner_component_stories={title:"Layout/Spinner",decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,fesm2022_forms.YN,UiLayoutSpinnerComponent]})],argTypes:{debug:{control:"boolean"},close:{control:"boolean"},type:{control:"select",options:["ring","linear","disco"]},delay:{control:{type:"range",min:0,max:3e3,step:100}}},args:{debug:!0,close:!0,type:"ring",delay:0}},Spinner={args:{debug:!0,close:!0,type:"ring",delay:0},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <ui-layout-spinner [close]="close" [debug]="debug" [type]="type" [delay]="delay"></ui-layout-spinner>\n '})},__namedExportsOrder=["Spinner"];Spinner.parameters={...Spinner.parameters,docs:{...Spinner.parameters?.docs,source:{originalSource:'{\n args: {\n debug: true,\n close: true,\n type: \'ring\',\n delay: 0\n },\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 <ui-layout-spinner [close]="close" [debug]="debug" [type]="type" [delay]="delay"></ui-layout-spinner>\n `\n };\n }\n}',...Spinner.parameters?.docs?.source}}}},"./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/_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/layout/spinner/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@keyframes pie-show-in {\n 0% {\n opacity: 0;\n }\n 10% {\n opacity: 1;\n }\n}\n\n@keyframes pie-show-out {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\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/* ---------------------------------------------------------------------------- */\n/* Defaut */\n/* ---------------------------------------------------------------------------- */\n\n._spinner {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(var(--ui-c-background-value), 0.6);\n z-index: 1000;\n\n &._debug {\n position: absolute;\n }\n\n &.showIn {\n animation-name: pie-show-in;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n /*z-index: 1000;*/\n }\n\n &.showOut {\n animation-name: pie-show-out;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n }\n\n /* The animation moved into `ui-electron-loader` (one copy for the global\n spinner and the inline one). What stays here is where it sits: centred\n in the overlay, on top of the backdrop. */\n ui-electron-loader {\n position: absolute;\n }\n\n ._content {\n z-index: 1001;\n display: flex;\n flex-flow: column;\n gap: calc(var(--ui-spacer) * 0.5);\n max-width: 80%;\n background-color: var(--ui-c-background);\n padding: calc(var(--ui-spacer) * 0.25);\n border-radius: var(--ui-border-radius);\n border:1px solid var(--ui-c-default);\n ._message {\n display: flex;\n justify-content: flex-end;\n }\n ._actions {\n padding-top: calc(var(--ui-spacer) * 0.5);\n border-top: var(--ui-border-width) solid var(--ui-c-default);\n display: flex;\n justify-content: flex-end;\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1043],{"./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/_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)},"./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/layout/spinner/spinner.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Spinner:()=>Spinner,__namedExportsOrder:()=>__namedExportsOrder,default:()=>spinner_component_stories});var fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var spinner_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/spinner/spinner.component.css?ngResource"),spinner_componentngResource_default=__webpack_require__.n(spinner_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"),Subscription=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subscription.js"),loader_component=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");let UiLayoutSpinnerService=class UiLayoutSpinnerService{status=new BehaviorSubject.t({show:"none"});hideTimeout=null;delay=0;showTimeout=null;setDelay(ms){this.delay=Math.max(0,ms)}startSpinner(){this.cancelPendingHide(),this.cancelPendingShow(),this.delay>0?this.showTimeout=setTimeout(()=>{this.showTimeout=null,this.status.next({show:"showIn"})},this.delay):this.status.next({show:"showIn"})}messageSpinner(content){this.cancelPendingHide(),this.cancelPendingShow(),this.status.next({content,show:"error"})}successSpinner(){this.status.getValue().content||this.dismissSpinner()}dismissSpinner(){this.cancelPendingHide(),this.cancelPendingShow(),"none"!==this.status.getValue().show&&(this.status.next({show:"showOut"}),this.hideTimeout=setTimeout(()=>{this.hideTimeout=null,this.status.next({show:"none"})},1200))}cancelPendingHide(){null!==this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}cancelPendingShow(){null!==this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}getSpinner(){return this.status}};UiLayoutSpinnerService=(0,tslib_es6.Cg)([(0,_debug_node_chunk._qm)({providedIn:"root"})],UiLayoutSpinnerService);let UiLayoutSpinnerComponent=class UiLayoutSpinnerComponent{spinnerService=(0,_effect_chunk2.WQX)(UiLayoutSpinnerService);debug=(0,core.input)(!1);close=(0,core.input)(!1);type=(0,core.input)("ring");delay=(0,core.input)(0);status=(0,_effect_chunk2.vPA)({show:"none"});subscription=new Subscription.yU;constructor(){(0,_effect_chunk2.QZP)(()=>this.spinnerService.setDelay(this.delay()))}ngOnInit(){this.subscription.add(this.spinnerService.getSpinner().subscribe(show=>this.status.set(show)))}ngOnDestroy(){this.subscription.unsubscribe()}static ctorParameters=()=>[];static propDecorators={debug:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"debug",required:!1,transform:void 0}]}],close:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"close",required:!1,transform:void 0}]}],type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}],delay:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"delay",required:!1,transform:void 0}]}]}};UiLayoutSpinnerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-spinner",template:'@if (debug()) {\n <div class="ui-debug">\n <button class="ui" (click)="spinnerService.startSpinner()">Start</button>\n <button class="ui" (click)="spinnerService.successSpinner()">Success</button>\n <button class="ui" (click)="spinnerService.messageSpinner(\'Info message\')">Message</button>\n <span>\n {{ status() | json }}\n </span>\n </div>\n}\n\n@if (status().show !== \'none\') {\n <div class="_spinner" [class]="status().show">\n \x3c!-- The animation is the electron\'s, here and in `ui-inline-spinner`:\n one set of keyframes, one set of masks, two places that show them. --\x3e\n <ui-electron-loader [type]="type()" />\n @if (status().content) {\n <div class="_content">\n <span [innerHTML]="status().content"></span>\n @if (close()) {\n <div class="_actions">\n <button class="ui" (click)="spinnerService.dismissSpinner()">OK</button>\n </div>\n }\n </div>\n }\n </div>\n}\n',imports:[_common_module_chunk.TG,loader_component.p],styles:[spinner_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiLayoutSpinnerComponent);const spinner_component_stories={title:"Layout/Spinner",decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,fesm2022_forms.YN,UiLayoutSpinnerComponent]})],argTypes:{debug:{control:"boolean"},close:{control:"boolean"},type:{control:"select",options:["ring","linear","disco"]},delay:{control:{type:"range",min:0,max:3e3,step:100}}},args:{debug:!0,close:!0,type:"ring",delay:0}},Spinner={args:{debug:!0,close:!0,type:"ring",delay:0},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <ui-layout-spinner [close]="close" [debug]="debug" [type]="type" [delay]="delay"></ui-layout-spinner>\n '})},__namedExportsOrder=["Spinner"];Spinner.parameters={...Spinner.parameters,docs:{...Spinner.parameters?.docs,source:{originalSource:'{\n args: {\n debug: true,\n close: true,\n type: \'ring\',\n delay: 0\n },\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 <ui-layout-spinner [close]="close" [debug]="debug" [type]="type" [delay]="delay"></ui-layout-spinner>\n `\n };\n }\n}',...Spinner.parameters?.docs?.source}}}},"./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/_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/layout/spinner/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@keyframes pie-show-in {\n 0% {\n opacity: 0;\n }\n 10% {\n opacity: 1;\n }\n}\n\n@keyframes pie-show-out {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\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/* ---------------------------------------------------------------------------- */\n/* Defaut */\n/* ---------------------------------------------------------------------------- */\n\n._spinner {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(var(--ui-c-background-value), 0.6);\n z-index: 1000;\n\n &._debug {\n position: absolute;\n }\n\n &.showIn {\n animation-name: pie-show-in;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n /*z-index: 1000;*/\n }\n\n &.showOut {\n animation-name: pie-show-out;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n }\n\n /* The animation moved into `ui-electron-loader` (one copy for the global\n spinner and the inline one). What stays here is where it sits: centred\n in the overlay, on top of the backdrop. */\n ui-electron-loader {\n position: absolute;\n }\n\n ._content {\n z-index: 1001;\n display: flex;\n flex-flow: column;\n gap: calc(var(--ui-spacer) * 0.5);\n max-width: 80%;\n background-color: var(--ui-c-background);\n padding: calc(var(--ui-spacer) * 0.25);\n border-radius: var(--ui-border-radius);\n border:1px solid var(--ui-c-default);\n ._message {\n display: flex;\n justify-content: flex-end;\n }\n ._actions {\n padding-top: calc(var(--ui-spacer) * 0.5);\n border-top: var(--ui-border-width) solid var(--ui-c-default);\n display: flex;\n justify-content: flex-end;\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +1 @@
1
- {"generatedAt":1788473305092,"userSince":1772191366759,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"knownPackages":{"testPackages":{"@ngneat/spectator":"22.1.0","@playwright/test":"1.61.1","@vitest/coverage-v8":"4.1.10","vitest":"4.1.10"},"stylingPackages":{"tailwindcss":"^4.3.2"}},"hasRouterPackage":true,"monorepo":"Nx","packageManager":{"type":"npm","agent":"npm","nodeLinker":"node_modules"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/angular","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/angular","portableStoriesFileCount":0,"applicationFileCount":6,"storybookVersion":"10.4.6","storybookVersionSpecifier":"^10.4.6","language":"typescript","storybookPackages":{"@nx/storybook":{"version":"23.0.1"},"@storybook/angular":{"version":"10.4.6"},"eslint-plugin-storybook":{"version":"10.4.6"},"storybook":{}},"addons":{"@storybook/addon-docs":{"version":"10.4.6"}},"packageJsonType":"unknown"}
1
+ {"generatedAt":1788736600961,"userSince":1772191366759,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"knownPackages":{"testPackages":{"@ngneat/spectator":"22.1.0","@playwright/test":"1.61.1","@vitest/coverage-v8":"4.1.10","vitest":"4.1.10"},"stylingPackages":{"tailwindcss":"^4.3.2"}},"hasRouterPackage":true,"monorepo":"Nx","packageManager":{"type":"npm","agent":"npm","nodeLinker":"node_modules"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/angular","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/angular","portableStoriesFileCount":0,"applicationFileCount":6,"storybookVersion":"10.4.6","storybookVersionSpecifier":"^10.4.6","language":"typescript","storybookPackages":{"@nx/storybook":{"version":"23.0.1"},"@storybook/angular":{"version":"10.4.6"},"eslint-plugin-storybook":{"version":"10.4.6"},"storybook":{}},"addons":{"@storybook/addon-docs":{"version":"10.4.6"}},"packageJsonType":"unknown"}
@@ -1 +1 @@
1
- (()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(!1&priority||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();void 0!==r&&(result=r)}}return result}priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;("object"==typeof current||"function"==typeof current)&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>def[key]=()=>value[key]);return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises),[])),__webpack_require__.u=chunkId=>(({128:"home-overview-mdx",166:"forms-autofocus-docs-mdx",365:"layout-spinner-docs-mdx",533:"atoms-inline-spinner-inline-spinner-component-stories",943:"examples-image-grid-slider-docs-mdx",947:"layout-splitter-docs-mdx",977:"forms-switch-docs-mdx",1043:"layout-spinner-spinner-component-stories",1165:"styling-tags-tags-component-stories",1296:"examples-docs-mdx",1322:"atoms-_electrons-form-error-message-form-error-message-component-stories",1327:"cdk-components-drag-and-drop-splitter-docs-mdx",1365:"_external-mwork-music-player-mwork-music-player-stories",1461:"atoms-image-slider-image-slider-component-stories",1481:"examples-layout-docs-mdx",1686:"forms-input-input-component-stories",1809:"atoms-clock-clock-component-stories",1838:"styling-colors-docs-mdx",1860:"forms-autocomplete-autocomplete-component-stories",1927:"styling-tags-docs-mdx",1954:"atoms-mosaic-docs-mdx",1977:"styling-forms-forms-component-stories",2006:"atoms-background-docs-mdx",2074:"atoms-_electrons-form-error-message-docs-mdx",2168:"layout-overlay-docs-mdx",2193:"atoms-qr-code-docs-mdx",2379:"_external-mwork-basic-interpreter-mwork-basic-interpreter-stories",2425:"atoms-chart-chart-component-stories",2690:"atoms-_electrons-loader-loader-component-stories",2831:"atoms-mosaic-mosaic-component-stories",2960:"atoms-lang-selector-docs-mdx",3007:"atoms-copy-value-docs-mdx",3045:"atoms-placeholder-placeholder-component-stories",3048:"forms-switch-switch-component-stories",3073:"layout-top-scroll-bottom-docs-mdx",3143:"home-tips-mdx",3146:"atoms-image-grid-docs-mdx",3151:"layout-media-screen-docs-mdx",3190:"molecules-image-editor-docs-mdx",3260:"_external-mwork-music-player-docs-mdx",3277:"atoms-lang-selector-lang-selector-component-stories",3338:"styling-ui-tags-docs-mdx",3550:"atoms-reader-doc-docs-mdx",3651:"layout-media-screen-media-screen-component-stories",3678:"forms-checkbox-checkbox-component-stories",3685:"atoms-rating-rating-component-stories",3752:"_external-mwork-basic-interpreter-docs-mdx",3767:"home-guide-mdx",3837:"layout-main-docs-mdx",3842:"home-usage-mdx",3853:"atoms-copy-value-copy-value-component-stories",3857:"styling-forms-docs-mdx",3925:"atoms-thumb-thumb-component-stories",3999:"atoms-reader-doc-reader-doc-component-stories",4067:"atoms-text-animate-docs-mdx",4271:"cdk-components-drag-and-drop-splitter-splitter-component-stories",4320:"atoms-buzzer-docs-mdx",4365:"atoms-qr-code-qr-code-component-stories",4447:"atoms-timer-docs-mdx",4713:"atoms-typewriter-typewriter-component-stories",4806:"atoms-typewriter-docs-mdx",4814:"atoms-_electrons-loader-docs-mdx",4855:"atoms-background-background-component-stories",4939:"forms-input-docs-mdx",4947:"atoms-card-card-component-stories",5084:"atoms-clock-docs-mdx",5233:"styling-ui-tags-ui-tags-component-stories",5370:"atoms-thumb-docs-mdx",5493:"examples-table-edit-focus-docs-mdx",5684:"examples-layout-layout-stories",5995:"styling-colors-colors-component-stories",6020:"forms-chip-chip-component-stories",6189:"atoms-timer-timer-component-stories",6203:"atoms-placeholder-docs-mdx",6212:"cdk-components-table-table-component-stories",6252:"forms-slider-docs-mdx",6331:"layout-splitter-splitter-component-stories",6354:"forms-validators-validators-component-stories",6501:"_external-mwork-banner-docs-mdx",6569:"cdk-components-table-docs-mdx",6659:"layout-overlay-overlay-component-stories",6768:"examples-transloco-docs-mdx",6892:"layout-tabs-docs-mdx",6922:"forms-slider-slider-component-stories",6978:"atoms-chart-docs-mdx",7363:"forms-chip-docs-mdx",7419:"atoms-buzzer-buzzer-component-stories",7586:"forms-validators-docs-mdx",7600:"styling-layers-docs-mdx",7653:"styling-icons-icons-component-stories",7683:"layout-main-main-component-stories",7819:"atoms-rating-docs-mdx",7837:"forms-autocomplete-docs-mdx",7867:"_external-mwork-banner-mwork-banner-stories",7877:"atoms-text-animate-text-animate-component-stories",7893:"styling-css-variables-docs-mdx",7947:"atoms-image-slider-docs-mdx",8039:"atoms-image-grid-image-grid-component-stories",8092:"styling-icons-docs-mdx",8108:"forms-checkbox-docs-mdx",8180:"molecules-image-editor-image-editor-component-stories",8753:"layout-tabs-tabs-component-stories",8852:"atoms-card-docs-mdx",8931:"atoms-inline-spinner-docs-mdx",8938:"examples-image-grid-slider-image-grid-slider-stories",9042:"layout-overlay-header-docs-mdx",9044:"examples-transloco-transloco-component-stories",9217:"atoms-barcode-barcode-component-stories",9236:"forms-autofocus-autofocus-stories",9240:"layout-overlay-header-header-component-stories",9475:"layout-nav-nav-component-stories",9652:"examples-burger-menu-stories",9653:"layout-nav-docs-mdx",9779:"layout-top-scroll-bottom-top-scroll-bottom-component-stories",9836:"examples-table-edit-focus-table-edit-focus-stories",9918:"atoms-barcode-docs-mdx"}[chunkId]||chunkId)+"."+{128:"00ee5070",166:"ce239261",365:"a792dea6",533:"76f59aa8",660:"18f0458e",813:"805c1e5f",871:"5a781df6",943:"e56160ef",947:"6b0e4fd2",973:"67f44bb0",977:"832228cb",1043:"69ae1389",1165:"7a64bd20",1183:"fafda52d",1255:"2abec879",1296:"1a9d8db0",1322:"7f749acc",1327:"0aa5b787",1365:"26c06b83",1461:"484b9c41",1481:"d7d6f90b",1516:"52d2dae7",1686:"b68ea104",1809:"d1464731",1838:"3f513a8d",1860:"443544e0",1927:"ce4814c9",1954:"738f012c",1977:"8af76278",2006:"0e861f2c",2033:"986e1406",2074:"9382b0cb",2089:"d5a3e21e",2096:"431fc8f5",2127:"d7de271b",2168:"a680859b",2193:"c47f67c9",2228:"7013a637",2249:"6e6782ab",2379:"3252a9b8",2425:"5247b7cb",2621:"b3ba2291",2639:"7f497882",2690:"8edadc42",2831:"c2ec95f2",2844:"c9f47654",2960:"0487b819",2971:"036e7a14",3007:"fbe168e2",3045:"bc221534",3048:"bf67d7c9",3073:"42c18a0d",3143:"24dc3e35",3146:"9df158a9",3151:"c382b73b",3190:"dba18ee6",3260:"46f4887e",3277:"41d7efd1",3338:"d94258ab",3550:"f5375a37",3651:"7941c064",3678:"df3196e5",3685:"982db47d",3752:"81168b4c",3767:"2f32ffc1",3837:"445bce2a",3842:"fc05feec",3853:"58d3956a",3857:"649ae948",3899:"55560628",3925:"f7e9dbae",3968:"3c931220",3999:"8ccd618b",4067:"152fc1bd",4255:"eeeaf087",4271:"286b5171",4320:"f9daf952",4365:"5018e2b0",4425:"7f753a38",4447:"686f0392",4476:"1b913b82",4495:"d1c8cc8d",4555:"c83b35c3",4713:"3a4f5356",4806:"a6c3f6b0",4814:"e8bb9642",4855:"b6b50c0c",4935:"f88465d9",4939:"56627297",4947:"065b34e9",5084:"6864626c",5233:"2ec3109b",5370:"525fc046",5493:"55960e55",5568:"be85a9aa",5684:"05cd891f",5944:"810cb147",5995:"58031f40",6020:"90a45ea4",6115:"7f1470ef",6169:"eaeed989",6189:"9bee1037",6202:"b8ca0e90",6203:"7d376291",6212:"db9212fd",6252:"68b9e21c",6331:"46b8b112",6354:"9525f97b",6501:"f33bbf56",6569:"74bd247c",6659:"01f6cd84",6768:"46447d84",6824:"4b8f7b0a",6892:"aad59db3",6922:"058fb9b1",6978:"29f10b89",7316:"5b024e94",7363:"89a48075",7419:"13ee130d",7586:"e11fe615",7600:"d810a2c8",7653:"2dd8c6f8",7683:"788c0c54",7749:"2a853795",7819:"d7df9a29",7837:"698eef62",7867:"d44f6917",7877:"8041c0f1",7893:"5a090407",7947:"4ae341f5",8039:"8290e900",8051:"dbaf9937",8092:"e3ed5ebd",8108:"890972f3",8180:"fbfeff1b",8448:"1baeb046",8753:"8602cefa",8819:"8e56201f",8852:"f8b63920",8931:"8b942147",8938:"cda91b79",9042:"6eb6e326",9044:"5baea2e2",9045:"46ed3f61",9217:"dc462559",9236:"2e94d887",9240:"5eaef192",9475:"766738fc",9560:"668052f3",9652:"0a083a75",9653:"92eac076",9779:"9ee7055f",9836:"c79e214a",9850:"5a17be74",9918:"78b610dc",9946:"6fea16dc"}[chunkId]+".iframe.bundle.js"),__webpack_require__.miniCssF=chunkId=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i<scripts.length;i++){var s=scripts[i];if(s.getAttribute("src")==url||s.getAttribute("data-webpack")=="moja-work:"+key){script=s;break}}script||(needAttach=!0,(script=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&script.setAttribute("nonce",__webpack_require__.nc),script.setAttribute("data-webpack","moja-work:"+key),script.src=url),inProgress[url]=[done];var onScriptComplete=(prev,event)=>{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach(fn=>fn(event)),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.p="",(()=>{var installedChunks={5354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(5354!=chunkId){var promise=new Promise((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]);promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}},"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some(id=>0!==installedChunks[id])){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunkmoja_work=self.webpackChunkmoja_work||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})(),__webpack_require__.nc=void 0})();
1
+ (()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(!1&priority||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();void 0!==r&&(result=r)}}return result}priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;("object"==typeof current||"function"==typeof current)&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>def[key]=()=>value[key]);return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises),[])),__webpack_require__.u=chunkId=>(({128:"home-overview-mdx",166:"forms-autofocus-docs-mdx",365:"layout-spinner-docs-mdx",533:"atoms-inline-spinner-inline-spinner-component-stories",943:"examples-image-grid-slider-docs-mdx",947:"layout-splitter-docs-mdx",977:"forms-switch-docs-mdx",1043:"layout-spinner-spinner-component-stories",1165:"styling-tags-tags-component-stories",1296:"examples-docs-mdx",1322:"atoms-_electrons-form-error-message-form-error-message-component-stories",1327:"cdk-components-drag-and-drop-splitter-docs-mdx",1365:"_external-mwork-music-player-mwork-music-player-stories",1461:"atoms-image-slider-image-slider-component-stories",1481:"examples-layout-docs-mdx",1686:"forms-input-input-component-stories",1809:"atoms-clock-clock-component-stories",1838:"styling-colors-docs-mdx",1860:"forms-autocomplete-autocomplete-component-stories",1927:"styling-tags-docs-mdx",1954:"atoms-mosaic-docs-mdx",1977:"styling-forms-forms-component-stories",2006:"atoms-background-docs-mdx",2074:"atoms-_electrons-form-error-message-docs-mdx",2168:"layout-overlay-docs-mdx",2193:"atoms-qr-code-docs-mdx",2379:"_external-mwork-basic-interpreter-mwork-basic-interpreter-stories",2425:"atoms-chart-chart-component-stories",2690:"atoms-_electrons-loader-loader-component-stories",2831:"atoms-mosaic-mosaic-component-stories",2960:"atoms-lang-selector-docs-mdx",3007:"atoms-copy-value-docs-mdx",3045:"atoms-placeholder-placeholder-component-stories",3048:"forms-switch-switch-component-stories",3073:"layout-top-scroll-bottom-docs-mdx",3143:"home-tips-mdx",3146:"atoms-image-grid-docs-mdx",3151:"layout-media-screen-docs-mdx",3190:"molecules-image-editor-docs-mdx",3260:"_external-mwork-music-player-docs-mdx",3277:"atoms-lang-selector-lang-selector-component-stories",3338:"styling-ui-tags-docs-mdx",3550:"atoms-reader-doc-docs-mdx",3651:"layout-media-screen-media-screen-component-stories",3678:"forms-checkbox-checkbox-component-stories",3685:"atoms-rating-rating-component-stories",3752:"_external-mwork-basic-interpreter-docs-mdx",3767:"home-guide-mdx",3837:"layout-main-docs-mdx",3842:"home-usage-mdx",3853:"atoms-copy-value-copy-value-component-stories",3857:"styling-forms-docs-mdx",3925:"atoms-thumb-thumb-component-stories",3999:"atoms-reader-doc-reader-doc-component-stories",4067:"atoms-text-animate-docs-mdx",4271:"cdk-components-drag-and-drop-splitter-splitter-component-stories",4320:"atoms-buzzer-docs-mdx",4365:"atoms-qr-code-qr-code-component-stories",4447:"atoms-timer-docs-mdx",4713:"atoms-typewriter-typewriter-component-stories",4806:"atoms-typewriter-docs-mdx",4814:"atoms-_electrons-loader-docs-mdx",4855:"atoms-background-background-component-stories",4939:"forms-input-docs-mdx",4947:"atoms-card-card-component-stories",5084:"atoms-clock-docs-mdx",5233:"styling-ui-tags-ui-tags-component-stories",5370:"atoms-thumb-docs-mdx",5493:"examples-table-edit-focus-docs-mdx",5684:"examples-layout-layout-stories",5995:"styling-colors-colors-component-stories",6020:"forms-chip-chip-component-stories",6189:"atoms-timer-timer-component-stories",6203:"atoms-placeholder-docs-mdx",6212:"cdk-components-table-table-component-stories",6252:"forms-slider-docs-mdx",6331:"layout-splitter-splitter-component-stories",6354:"forms-validators-validators-component-stories",6501:"_external-mwork-banner-docs-mdx",6569:"cdk-components-table-docs-mdx",6659:"layout-overlay-overlay-component-stories",6768:"examples-transloco-docs-mdx",6892:"layout-tabs-docs-mdx",6922:"forms-slider-slider-component-stories",6978:"atoms-chart-docs-mdx",7363:"forms-chip-docs-mdx",7419:"atoms-buzzer-buzzer-component-stories",7586:"forms-validators-docs-mdx",7600:"styling-layers-docs-mdx",7653:"styling-icons-icons-component-stories",7683:"layout-main-main-component-stories",7819:"atoms-rating-docs-mdx",7837:"forms-autocomplete-docs-mdx",7867:"_external-mwork-banner-mwork-banner-stories",7877:"atoms-text-animate-text-animate-component-stories",7893:"styling-css-variables-docs-mdx",7947:"atoms-image-slider-docs-mdx",8039:"atoms-image-grid-image-grid-component-stories",8092:"styling-icons-docs-mdx",8108:"forms-checkbox-docs-mdx",8180:"molecules-image-editor-image-editor-component-stories",8753:"layout-tabs-tabs-component-stories",8852:"atoms-card-docs-mdx",8931:"atoms-inline-spinner-docs-mdx",8938:"examples-image-grid-slider-image-grid-slider-stories",9042:"layout-overlay-header-docs-mdx",9044:"examples-transloco-transloco-component-stories",9217:"atoms-barcode-barcode-component-stories",9236:"forms-autofocus-autofocus-stories",9240:"layout-overlay-header-header-component-stories",9475:"layout-nav-nav-component-stories",9652:"examples-burger-menu-stories",9653:"layout-nav-docs-mdx",9779:"layout-top-scroll-bottom-top-scroll-bottom-component-stories",9836:"examples-table-edit-focus-table-edit-focus-stories",9918:"atoms-barcode-docs-mdx"}[chunkId]||chunkId)+"."+{128:"e5a67d1f",166:"ce239261",365:"d4e5afec",533:"76f59aa8",660:"18f0458e",813:"01ab4ac3",871:"5a781df6",943:"e56160ef",947:"6b0e4fd2",973:"67f44bb0",977:"832228cb",1043:"6b27a0bf",1165:"7a64bd20",1183:"fafda52d",1255:"2abec879",1296:"1a9d8db0",1322:"7f749acc",1327:"0aa5b787",1365:"26c06b83",1461:"484b9c41",1481:"d7d6f90b",1516:"52d2dae7",1686:"b68ea104",1809:"d1464731",1838:"3f513a8d",1860:"443544e0",1927:"ce4814c9",1954:"738f012c",1977:"8af76278",2006:"0e861f2c",2033:"986e1406",2074:"9382b0cb",2089:"d5a3e21e",2096:"431fc8f5",2127:"d7de271b",2168:"da4441f2",2193:"c47f67c9",2228:"7013a637",2249:"6e6782ab",2379:"3252a9b8",2425:"5247b7cb",2621:"b3ba2291",2639:"7f497882",2690:"8edadc42",2831:"c2ec95f2",2844:"c9f47654",2960:"0487b819",2971:"036e7a14",3007:"fbe168e2",3045:"bc221534",3048:"bf67d7c9",3073:"42c18a0d",3143:"24dc3e35",3146:"9df158a9",3151:"c382b73b",3190:"dba18ee6",3260:"46f4887e",3277:"41d7efd1",3338:"d94258ab",3550:"f5375a37",3651:"7941c064",3678:"df3196e5",3685:"982db47d",3752:"81168b4c",3767:"2f32ffc1",3837:"445bce2a",3842:"fc05feec",3853:"58d3956a",3857:"649ae948",3899:"55560628",3925:"f7e9dbae",3968:"3c931220",3999:"8ccd618b",4067:"152fc1bd",4255:"eeeaf087",4271:"286b5171",4320:"f9daf952",4365:"5018e2b0",4425:"7f753a38",4447:"686f0392",4476:"1b913b82",4495:"d1c8cc8d",4555:"727d0d1b",4713:"3a4f5356",4806:"a6c3f6b0",4814:"e8bb9642",4855:"b6b50c0c",4935:"f88465d9",4939:"56627297",4947:"065b34e9",5084:"6864626c",5233:"2ec3109b",5370:"525fc046",5493:"55960e55",5568:"be85a9aa",5684:"05cd891f",5944:"810cb147",5995:"58031f40",6020:"90a45ea4",6115:"7f1470ef",6169:"eaeed989",6189:"9bee1037",6202:"b8ca0e90",6203:"7d376291",6212:"db9212fd",6252:"68b9e21c",6331:"46b8b112",6354:"9525f97b",6501:"f33bbf56",6569:"74bd247c",6659:"01f6cd84",6768:"46447d84",6824:"4b8f7b0a",6892:"aad59db3",6922:"058fb9b1",6978:"29f10b89",7316:"5b024e94",7363:"89a48075",7419:"13ee130d",7586:"e11fe615",7600:"d810a2c8",7653:"2dd8c6f8",7683:"788c0c54",7749:"2a853795",7819:"d7df9a29",7837:"698eef62",7867:"d44f6917",7877:"8041c0f1",7893:"5a090407",7947:"4ae341f5",8039:"8290e900",8051:"dbaf9937",8092:"e3ed5ebd",8108:"890972f3",8180:"fbfeff1b",8448:"1baeb046",8753:"8602cefa",8819:"8e56201f",8852:"f8b63920",8931:"8b942147",8938:"cda91b79",9042:"6eb6e326",9044:"5baea2e2",9045:"46ed3f61",9217:"dc462559",9236:"2e94d887",9240:"5eaef192",9475:"766738fc",9560:"668052f3",9652:"0a083a75",9653:"92eac076",9779:"9ee7055f",9836:"c79e214a",9850:"5a17be74",9918:"78b610dc",9946:"6fea16dc"}[chunkId]+".iframe.bundle.js"),__webpack_require__.miniCssF=chunkId=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i<scripts.length;i++){var s=scripts[i];if(s.getAttribute("src")==url||s.getAttribute("data-webpack")=="moja-work:"+key){script=s;break}}script||(needAttach=!0,(script=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&script.setAttribute("nonce",__webpack_require__.nc),script.setAttribute("data-webpack","moja-work:"+key),script.src=url),inProgress[url]=[done];var onScriptComplete=(prev,event)=>{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach(fn=>fn(event)),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.p="",(()=>{var installedChunks={5354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(5354!=chunkId){var promise=new Promise((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]);promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}},"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some(id=>0!==installedChunks[id])){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunkmoja_work=self.webpackChunkmoja_work||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})(),__webpack_require__.nc=void 0})();
@@ -1,4 +1,4 @@
1
1
  {
2
- "commit": "e7e0359f",
3
- "uiVersion": "2.8.2"
2
+ "commit": "38130880",
3
+ "uiVersion": "2.8.4"
4
4
  }
package/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "uiVersion": "2.8.2",
3
- "commit": "e7e0359f"
2
+ "uiVersion": "2.8.4",
3
+ "commit": "38130880"
4
4
  }
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[813],{"./libs/ui/src/lib/layout/overlay/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{t:()=>UiOverlayHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/overlay/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_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 UiOverlayHeaderComponent=class UiOverlayHeaderComponent{headline=null;activeOutput=(0,core.output)();close(){this.activeOutput.emit(!1)}static propDecorators={headline:[{type:_debug_node_chunk.pde}],activeOutput:[{type:_debug_node_chunk.k7i,args:["activeOutput"]}]}};UiOverlayHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-overlay-header",template:'<h4>{{ headline }}</h4>\n<button class="ui" (click)="close()"><span class="ui-icon">close</span></button>\n',encapsulation:_debug_node_chunk.gXe.Emulated,styles:[header_componentngResource_default()]})],UiOverlayHeaderComponent)},"./libs/ui/src/lib/layout/overlay/overlay.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:()=>UiLayoutOverlayComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var UiLayoutOverlayComponent_1,overlay_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/overlay/overlay.component.css?ngResource"),overlay_componentngResource_default=__webpack_require__.n(overlay_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiLayoutOverlayComponent=class UiLayoutOverlayComponent{static{UiLayoutOverlayComponent_1=this}active=(0,core.input)(!1);maxWidth=(0,core.input)(null);direction=(0,core.input)(null);viewportHeight=(0,core.input)(!1,{transform:core.booleanAttribute});fitContent=(0,core.input)(!1,{transform:core.booleanAttribute});activeOutput=(0,core.output)();element=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);activeValue=!1;maxWidthValue=(0,_effect_chunk2.vPA)(null);directionValue=(0,_effect_chunk2.vPA)(null);lock=!1;visible=(0,_effect_chunk2.vPA)(!1);animation=(0,_effect_chunk2.vPA)(!1);viewportSync=()=>this.syncViewportOffset();closeTimer=null;focusOrigin=null;static focusableSelector=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");panel(){return this.element.nativeElement.querySelector("._direction")}focusable(){const panel=this.panel();if(!panel)return[];const nodes=panel.querySelectorAll(UiLayoutOverlayComponent_1.focusableSelector),items=[];return nodes.forEach(el=>{el.hidden||"true"===el.getAttribute("aria-hidden")||items.push(el)}),items}onTab(event){const key=event;if("Tab"!==key.key||!this.visible())return;const panel=this.panel();if(!panel)return;const items=this.focusable();if(0===items.length)return key.preventDefault(),void panel.focus();const first=items[0],last=items.at(-1),active=document.activeElement;if(!active||!panel.contains(active)||active===panel)return key.preventDefault(),void(key.shiftKey?last:first).focus();key.shiftKey&&active===first?(key.preventDefault(),last.focus()):key.shiftKey||active!==last||(key.preventDefault(),first.focus())}focusPanel(){const panel=this.panel();if(!panel)return;if(panel.contains(document.activeElement))return;const items=this.focusable();(items.find(el=>["INPUT","SELECT","TEXTAREA"].includes(el.tagName))??items[0]??panel).focus()}restoreFocus(){const origin=this.focusOrigin;this.focusOrigin=null,origin&&document.contains(origin)&&origin.focus()}activate(){null!==this.closeTimer&&(clearTimeout(this.closeTimer),this.closeTimer=null),this.focusOrigin=document.activeElement,this.visible.set(!0),this.lock=!0,this.viewportHeight()&&(window.addEventListener("scroll",this.viewportSync,{passive:!0}),window.addEventListener("resize",this.viewportSync,{passive:!0})),setTimeout(()=>{this.syncViewportOffset(),this.animation.set(!0),this.lock=!1,this.focusWhenSettled()},200)}focusWhenSettled(){const panel=this.panel();if(!panel)return;let done=!1;const finish=()=>{done||(done=!0,panel.removeEventListener("transitionend",onEnd),clearTimeout(fallback),this.focusPanel())},onEnd=event=>{event.target===panel&&finish()};panel.addEventListener("transitionend",onEnd);const duration=1e3*(Number.parseFloat(getComputedStyle(panel).transitionDuration)||0),fallback=setTimeout(finish,duration+100)}syncViewportOffset(){if(!this.viewportHeight())return;const root=this.element.nativeElement.querySelector(".ui-overlay");if(!root)return;root.style.setProperty("--_overlay-top","0px"),root.offsetHeight;const displaced=root.getBoundingClientRect().top;root.style.setProperty("--_overlay-top",-displaced+"px")}onEscape(){this.visible()&&!this.lock&&this.deactivate()}deactivate(){this.visible()&&(window.removeEventListener("scroll",this.viewportSync),window.removeEventListener("resize",this.viewportSync),this.restoreFocus(),this.animation.set(!1),null!==this.closeTimer&&clearTimeout(this.closeTimer),this.closeTimer=setTimeout(()=>{this.closeTimer=null,this.visible.set(!1),this.activeOutput.emit(!1)},600))}ngOnInit(){this.activeValue=this.active(),this.maxWidthValue.set(this.maxWidth()??"max"),this.directionValue.set(this.direction()??"center")}ngOnDestroy(){window.removeEventListener("scroll",this.viewportSync),window.removeEventListener("resize",this.viewportSync),this.focusOrigin=null}ngOnChanges(){this.activeValue=this.active(),this.maxWidthValue.set(this.maxWidth()??"max"),this.directionValue.set(this.direction()??"center"),this.activeValue&&!this.lock?this.activate():this.activeValue||this.deactivate()}static propDecorators={active:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"active",required:!1,transform:void 0}]}],maxWidth:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"maxWidth",required:!1,transform:void 0}]}],direction:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"direction",required:!1,transform:void 0}]}],viewportHeight:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"viewportHeight",required:!1,transform:void 0}]}],fitContent:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"fitContent",required:!1,transform:void 0}]}],activeOutput:[{type:_debug_node_chunk.k7i,args:["activeOutput"]}],onTab:[{type:_debug_node_chunk.Z$l,args:["document:keydown",["$event"]]}],onEscape:[{type:_debug_node_chunk.Z$l,args:["document:keydown.escape"]}]}};UiLayoutOverlayComponent=UiLayoutOverlayComponent_1=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-overlay",template:'\n\n\n\n<div class="ui-overlay" [class._-active]="animation()" [class._-visible]="visible()" [class._-viewport]="viewportHeight()" [class._-fit]="fitContent()">\n <div class="_action" (click)="deactivate()"></div>\n <div\n class="_direction"\n [class]="\'_\' + directionValue() + \' _\' + maxWidthValue()"\n role="dialog"\n aria-modal="true"\n tabindex="-1"\n >\n <header>\n <ng-content select="[overlay-header]"></ng-content>\n </header>\n <section>\n <ng-content select="[overlay-content]"></ng-content>\n </section>\n <footer>\n <ng-content select="[overlay-footer]"></ng-content>\n </footer>\n </div>\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,styles:[overlay_componentngResource_default()]})],UiLayoutOverlayComponent)},"./libs/ui/src/lib/layout/overlay/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,"@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n display: grid;\n grid-gap: calc(var(--ui-spacer) * 0.5);\n grid-template-columns: 1fr auto;\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/layout/overlay/overlay.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/* Page scroll lock (tickets#112): purely declarative — the body cannot scroll\n while an overlay panel is VISIBLE (open, or still playing its close\n animation). The lock falls automatically with the panel or its state class,\n whatever tears it down (close, destroy, Storybook/HMR teardown) — no JS\n bookkeeping that could leak a stuck lock. `!important` because the lock is\n the overlay's contract: it must also beat inline body styles that apps\n manage themselves (e.g. the website's own `body.style.overflowY`). */\nbody:has(.ui-overlay._-visible) {\n overflow: hidden !important;\n}\n\n.ui-overlay {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n transition: opacity var(--ui-time);\n z-index: 1000;\n background-color: rgba(var(--ui-c-background-value), 0.6);\n\n ._action {\n display: flex;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n ._direction {\n display: flex;\n flex-flow: column;\n position: absolute;\n /* The size classes carry the component prefix (`._ms-1`), because the\n bare names ARE Tailwind margin-inline-start utilities. Neutralising\n the stray margin here worked while component CSS was unlayered; since\n the library moved below `utilities` (tickets#241) the utility would\n win, and every centered overlay sat hard left. The prefix takes the\n collision out entirely. */\n margin: 0;\n width: calc(100% - var(--ui-spacer));\n\n height: calc(100% - var(--ui-spacer) * 4);\n background-color: var(--ui-cb-main);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n box-shadow:\n 0 10px 15px -3px rgb(0 0 0 / 0.1),\n 0 4px 6px -4px rgb(0 0 0 / 0.1);\n overflow-x: auto;\n /* Scrolling must not chain to the page underneath (tickets#112). */\n overscroll-behavior: contain;\n z-index: 1001;\n\n &._ms-1 {\n max-width: 374px;\n }\n\n &._ms-2 {\n max-width: 480px;\n }\n\n &._ms-3 {\n max-width: 768px;\n }\n\n &._ms-4 {\n max-width: 1024px;\n }\n\n &._ms-5 {\n max-width: 1900px;\n }\n\n &._center {\n top: calc(var(--ui-spacer) * 2);\n left: calc(var(--ui-spacer) * 0.5);\n border-radius: var(--ui-border-radius);\n transition: transform var(--ui-time);\n transform: scale(0.4);\n }\n\n &._top {\n top: -100%;\n left: calc(var(--ui-spacer) * 0.5);\n border-bottom-left-radius: var(--ui-border-radius);\n border-bottom-right-radius: var(--ui-border-radius);\n transition: top var(--ui-time);\n }\n\n &._bottom {\n bottom: -100%;\n left: calc(var(--ui-spacer) * 0.5);\n border-top-left-radius: var(--ui-border-radius);\n border-top-right-radius: var(--ui-border-radius);\n transition: bottom var(--ui-time);\n }\n\n /* Center the centered directions (center/top/bottom) pixel-perfectly. */\n /* With left:0 + right:0 + an explicit width, the browser solves the two */\n /* auto margins to equal values, so it stays symmetric regardless of the */\n /* max-width parity (a `calc(50% - width/2)` offset rounds asymmetrically */\n /* and can end up 1px off). */\n &._center._ms-1,\n &._top._ms-1,\n &._bottom._ms-1,\n &._center._ms-2,\n &._top._ms-2,\n &._bottom._ms-2,\n &._center._ms-3,\n &._top._ms-3,\n &._bottom._ms-3,\n &._center._ms-4,\n &._top._ms-4,\n &._bottom._ms-4,\n &._center._ms-5,\n &._top._ms-5,\n &._bottom._ms-5 {\n left: 0;\n right: 0;\n margin-inline: auto;\n }\n\n &._left {\n left: -100%;\n top: calc(var(--ui-spacer) * 0.5);\n border-top-right-radius: var(--ui-border-radius);\n border-bottom-right-radius: var(--ui-border-radius);\n transition: left var(--ui-time);\n }\n\n &._right {\n right: -100%;\n top: calc(var(--ui-spacer) * 0.5);\n border-top-left-radius: var(--ui-border-radius);\n border-bottom-left-radius: var(--ui-border-radius);\n transition: right var(--ui-time);\n }\n\n header {\n flex: 0 0;\n padding: calc(var(--ui-spacer) * 0.5);\n background-color: var(--ui-c-primary);\n color: var(--ui-c-default);\n * {\n color: var(--ui-c-default);\n }\n button {\n color: var(--ui-c-default);\n }\n }\n\n section {\n display: flex;\n flex-direction: column;\n flex: 1 1;\n padding: calc(var(--ui-spacer) * 0.5);\n /* real gap between content elements — the previous grid-gap was inert\n because the section is not a grid container */\n gap: calc(var(--ui-spacer) * 0.5);\n background-color: var(--ui-c-background);\n overflow: auto;\n /* Scrolling must not chain to the page underneath (tickets#112). */\n overscroll-behavior: contain;\n }\n footer {\n flex: 0 0;\n padding: calc(var(--ui-spacer) * 0.5);\n background-color: var(--ui-c-primary);\n /* Same pairing as the header: --ui-c-primary bg + theme-aware\n --ui-c-default text. --ui-c-static-invert is fixed white and is\n unreadable on a light primary in the light theme. */\n color: var(--ui-c-default);\n * {\n color: var(--ui-c-default);\n }\n }\n }\n\n /* Viewport mode: heights reference the browser window (100dvh) instead of\n the containing block — with a transformed ancestor (centered ui-main)\n the default percentages would span the whole document. --_overlay-top\n counters the displaced fixed origin (set by the component on open). */\n &._-viewport {\n top: var(--_overlay-top, 0);\n height: 100dvh;\n\n ._direction {\n height: calc(100dvh - var(--ui-spacer) * 4);\n }\n }\n\n /* Content height: the panel is as tall as its content needs, capped at 80%\n of the window so it never fills the screen. A CAP, nothing else.\n\n There used to be a floor here (`min-height: min(28rem, …)`), meant to keep\n a sheet with little content \"workable\". It broke the promise the option\n makes: a two-field sign-in form was inflated to 448px and carried a band\n of empty surface below its button. Whether a small panel wants room or\n wants to be small is a judgement about content the library does not have —\n a consumer who needs a floor writes one line of CSS, where the decision is\n visible to whoever questions it later.\n\n This block sets HEIGHT AND NOTHING ELSE. Where a panel sits and how it\n enters belongs to its direction, and fit must not have an opinion on it:\n an earlier version also set `top: 0; bottom: 0; margin-block: auto` here,\n which overwrote the `top: -100%` that `._top` starts its entrance from —\n same specificity, later in the file, so fit won. A top sheet with fit\n therefore stood in place instead of sliding in, and its transition ran\n from 0 to -1px, which is nothing. Height is a size, not a position.\n\n `height: auto`, not `fit-content`. Fit was only ever needed BECAUSE of\n those two insets: an absolutely positioned box pinned top AND bottom\n stretches across the whole distance, so `auto` silently became the cap.\n With one inset per direction the box grows with its content by itself,\n and plain `auto` is the rule every engine agrees on — `fit-content` on an\n absolutely positioned flex column whose middle scrolls is exactly where\n Safari parts ways and clips the content instead.\n\n Placed after the direction and viewport blocks so it wins over their\n fixed heights. */\n &._-fit ._direction {\n height: auto;\n max-height: calc(100dvh * 0.8);\n }\n\n &._-visible {\n display: block;\n }\n\n &._-active {\n opacity: 1;\n transition: opacity calc(var(--ui-time) * 0.5);\n\n ._direction._center {\n /* `none`, not scale(1): the open state must not keep a transform\n standing — Safari mispaints native form controls (checked\n checkboxes) under a transformed ancestor (tickets#137). `none`\n interpolates as identity, so the scale animation is unaffected. */\n transform: none;\n }\n\n ._direction._top {\n top: calc(-1 * var(--ui-border-width));\n }\n\n ._direction._bottom {\n bottom: calc(-1 * var(--ui-border-width));\n }\n\n ._direction._left {\n left: calc(-1 * var(--ui-border-width));\n }\n\n ._direction._right {\n right: calc(-1 * var(--ui-border-width));\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2168],{"./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_moja_code_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_moja_code_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/layout/overlay/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_moja_code_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"),_overlay_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/layout/overlay/overlay.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_layout_overlay_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-layout-overlay.json");function _createMdxContent(props){const _components={a:"a",code:"code",em:"em",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_moja_code_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:_overlay_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"layout-overlay",children:"Layout: Overlay"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A versatile modal/drawer component for displaying content over the main application interface."}),"\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:["A panel over the page — from the centre or any edge, up to a chosen width —\nwith backdrop, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Escape"}),", a focus trap and a scroll-lock on the page\nbehind, all built in. It shows what is projected into its slots and reports\nevery close through ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"activeOutput"}),"; whether it is open is the host's state,\nbound in. It belongs at the top level of the app, next to the layout, never\ninside it. It carries no header of its own: that is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-overlay-header"}),",\nplaced in the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overlay-header"})," slot."]}),"\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-layout-overlay",entry:_guide_ui_layout_overlay_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:"overview",children:"Overview"}),"\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:"UiLayoutOverlayComponent"})," provides a flexible way to present information or actions. It supports multiple entry directions (center, top, bottom, left, right) and various maximum widths. It's often used in conjunction with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutOverlayHeaderComponent"}),"."]}),"\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:"Dismissing:"})," the overlay closes on a click outside the panel (the backdrop) and by pressing ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Escape"})," while it is open. Both run the leave animation and then emit ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"activeOutput"})," = ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"false"}),", so keep the bound ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"active"})," state in sync with that output. The output reports exactly one close per close that actually happened — nothing on the initial binding round, and a reopen during the leave animation cancels the pending report instead of being shot down by it."]}),"\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:"Keyboard:"})," the overlay is a modal dialog and keeps the keyboard inside. Opening moves the focus to the first focusable element in the panel (or the panel itself), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Tab"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Shift"}),"+",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Tab"}),' cycle within it instead of walking the page behind, and closing returns the focus to whatever opened the overlay. Without this the focus ring lands on elements the user cannot see — it reads as "no focus at all".']}),"\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:"Scroll containment:"})," while any overlay is visible, the page behind it is\nscroll-locked — purely declaratively via\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"body:has(.ui-overlay._-visible) { overflow: hidden }"})," in the component styles,\nno JavaScript bookkeeping involved. The lock holds as long as at least one\nvisible panel is in the DOM (nested/parallel overlays included, and through the\nclose animation) and falls automatically with the panel — whatever removes it:\na regular close, a component destroy, or a hot-reload/Storybook teardown that\nskips the Angular lifecycle. A stuck lock is impossible by construction. The\npanel's scroll containers additionally use ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overscroll-behavior: contain"}),", so\nscrolling inside the overlay never chains to the page underneath; the page\nkeeps its scroll position throughout."]}),"\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:"Caveat:"})," the rule carries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"!important"}),", because the lock is the overlay's\ncontract — while a panel is visible it also beats ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"inline"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overflow"})," styles\nthat apps set on the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<body>"})," themselves (the website, for example, manages\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"body.style.overflowY"})," for its own purposes; without ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"!important"})," that inline\nlonghand would win and the page would scroll behind the overlay). The one thing\nthat still defeats it is an app setting an inline ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overflow"})," with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"!important"}),"\n— don't do that; while an overlay is up, the page is locked, no exceptions."]}),"\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:"where-to-place-it--read-this-first",children:"Where to place it — read this first"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This overlay renders ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"where it stands in the template"}),". It is not moved into a\ncontainer at the end of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<body>"}),", the way Angular Material's CDK overlay does.\nThat keeps it simple — no portals, no position strategies, content projection\nand forms behave normally — but it has one consequence that costs an afternoon\nif you learn it the hard way:"]}),"\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:"Put the overlay at the top level of the app, next to the layout — not inside\nit."})," Anything above it in the DOM that establishes a containing block takes the\npanel hostage, because the panel is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"position: fixed"}),":"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",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:"Property on an ancestor"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"What it does to the panel"})]})}),(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__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"transform"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"perspective"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"filter"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Becomes the containing block: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"top/left/right/bottom"})," and\npercentage sizes resolve against that box instead of the window. In a\nlong page the panel can end up as tall as the whole document."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"contain: paint"})," (or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"content"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"strict"}),")"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Clips the panel to that element — the sheet is measured at full size but\ndrawn cut off, which looks like a styling bug and is not one."})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"overflow"})," other than ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"visible"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Clips the panel once the same ancestor is also a containing block."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["A ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"transition"})," on width/left/transform"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The panel rides along with it: opening the overlay then looks as if the\nwhole page slides sideways."})})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Safari adds a painting hazard on top of the geometry problems: under a\ntransformed ancestor it can mispaint ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"native form controls"})," — most visibly\na checked checkbox that simply disappears. An identity transform such as\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"translateX(0)"})," or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scale(1)"})," triggers this exactly like a real one, which is\nwhy the library keeps every resting state at ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transform: none"}),": the centered\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-main"})," drops its translate outside the centered breakpoints, and the\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"center"})," panel finishes its open animation on ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"none"})," instead of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scale(1)"}),".\nFollow the same rule in app code."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["If the overlay genuinely has to live inside such a subtree, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"viewportHeight"}),"\nis the escape hatch: it references the height to the browser window and counters\nthe displaced fixed origin. Treat it as a patch, not as the normal case — moving\nthe overlay out is always the better fix."]}),"\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:"example-overlay",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-overlay--overlay",children:"Example: Overlay"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"example-scroll-containment",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-overlay--scroll-containment",children:"Example: Scroll containment"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"example-content-height",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-overlay--fit-content",children:"Example: Content height"})}),"\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:"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__.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:"@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)("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)("code",{children:"active"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Controls the visibility of the overlay."})]}),(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)("code",{children:"direction"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UILayoutOverlayDirectionsType | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})," (renders as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'center'"}),")"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The entry direction of the overlay (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'center'"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'top'"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'bottom'"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'left'"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'right'"}),")."]})]}),(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)("code",{children:"maxWidth"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UILayoutOverlayMaxWidthType | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})," (renders as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'max'"}),")"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Sets the overlay’s maximum width. Available values are ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'max'"})," (default),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ms-1'"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"374px"}),"), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ms-2'"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"480px"}),"),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ms-3'"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"768px"}),"), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ms-4'"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1024px"}),"), and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ms-5'"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1900px"}),")."]})})]}),(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)("code",{children:"viewportHeight"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["References the overlay height to the browser viewport\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"100dvh"}),") instead of the containing block. Use this when a\ntransformed ancestor (e.g. the centered ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ui-layout-main"}),")\nhijacks ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"position: fixed"})," — the default percent heights\nwould span the whole document there. The component also counters the\ndisplaced fixed origin, so the panel always opens inside the visible\nwindow."]})})]}),(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)("code",{children:"fitContent"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Sizes the panel to its content instead of filling the available height,\ncapped at 80% of the window. Without it a sheet with little content\nstands there as a tall, mostly empty column. Combines with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"viewportHeight"}),"."]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A cap, no floor: a two-field form ends up two fields tall. If a panel\nneeds a minimum, write it where that decision belongs — the library\ncannot know whether a small sheet wants room or wants to be small."}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["It changes ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"height and nothing else"}),". Where a panel sits\nand how it slides in stays the business of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"direction"}),", so\nthe entrance animation is identical with and without it. An earlier\nversion also positioned the panel here, which overwrote the offset a"," ","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"top"})," sheet slides in from — it then stood in place instead\nof entering."]})]})]})]})]}),"\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:"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__.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:"@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__.jsx)("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)("code",{children:"activeOutput"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Emits ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})," when the overlay is dismissed (e.g., closed)."]})]})})]}),"\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:"content-slots-ng-content",children:"Content Slots (ng-content)"}),"\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.code,{children:"[overlay-header]"}),": Slot for the header (usually containing the title and close button)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[overlay-content]"}),": Main content area."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[overlay-footer]"}),": Optional footer area."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"usage"})})}),"\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-layout-overlay\n [direction]="\'right\'"\n [maxWidth]="\'ms-2\'"\n [active]="isOverlayActive"\n (activeOutput)="isOverlayActive = $event">\n\n <ui-layout-overlay-header overlay-header\n [headline]="\'Settings\'"\n (activeOutput)="isOverlayActive = $event">\n </ui-layout-overlay-header>\n\n <div overlay-content>\n \x3c!-- Your content here --\x3e\n </div>\n\n <div overlay-footer>\n <button class="ui-success">Save</button>\n </div>\n\n</ui-layout-overlay>\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_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)}}}]);