@mojawork/ui-docs 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/catalog/atoms/inline-spinner.md +188 -0
- package/catalog/atoms/reader-doc.md +25 -0
- package/catalog/forms/chip.md +285 -0
- package/catalog/guide.json +63 -6
- package/catalog/layout/spinner.md +7 -0
- package/catalog/manifest.json +28 -4
- package/catalog/molecules/image-editor.md +34 -19
- package/catalog/version.json +2 -2
- package/package.json +1 -1
- package/storybook/4555.0f383313.iframe.bundle.js +1 -0
- package/storybook/assets/ui/i18n/ui/de-DE.json +0 -1
- package/storybook/assets/ui/i18n/ui/en-EN.json +0 -1
- package/storybook/atoms-_electrons-loader-docs-mdx.1176957f.iframe.bundle.js +1 -0
- package/storybook/atoms-_electrons-loader-loader-component-stories.8edadc42.iframe.bundle.js +1 -0
- package/storybook/atoms-inline-spinner-docs-mdx.a98163b8.iframe.bundle.js +1 -0
- package/storybook/atoms-inline-spinner-inline-spinner-component-stories.76f59aa8.iframe.bundle.js +1 -0
- package/storybook/atoms-reader-doc-docs-mdx.1860338f.iframe.bundle.js +1 -0
- package/storybook/atoms-reader-doc-reader-doc-component-stories.8ccd618b.iframe.bundle.js +1 -0
- package/storybook/forms-chip-chip-component-stories.90a45ea4.iframe.bundle.js +1 -0
- package/storybook/forms-chip-docs-mdx.01e1b518.iframe.bundle.js +1 -0
- package/storybook/{home-overview-mdx.53475252.iframe.bundle.js → home-overview-mdx.3b40bdbd.iframe.bundle.js} +1 -1
- package/storybook/iframe.html +2 -2
- package/storybook/index.json +1 -1
- package/storybook/layout-spinner-docs-mdx.03741741.iframe.bundle.js +1 -0
- package/storybook/layout-spinner-spinner-component-stories.69ae1389.iframe.bundle.js +1 -0
- package/storybook/main.4f406815.iframe.bundle.js +1 -0
- package/storybook/molecules-image-editor-docs-mdx.805dcd5a.iframe.bundle.js +1 -0
- package/storybook/molecules-image-editor-image-editor-component-stories.fbfeff1b.iframe.bundle.js +1 -0
- package/storybook/project.json +1 -1
- package/storybook/runtime~main.4072cb65.iframe.bundle.js +1 -0
- package/storybook/version.json +2 -2
- package/version.json +2 -2
- package/storybook/4555.2fc72918.iframe.bundle.js +0 -1
- package/storybook/atoms-reader-doc-docs-mdx.0688c3b9.iframe.bundle.js +0 -1
- package/storybook/atoms-reader-doc-reader-doc-component-stories.a6fec57d.iframe.bundle.js +0 -1
- package/storybook/layout-spinner-docs-mdx.4be572c0.iframe.bundle.js +0 -1
- package/storybook/layout-spinner-spinner-component-stories.ab8245c6.iframe.bundle.js +0 -1
- package/storybook/main.1f12809e.iframe.bundle.js +0 -1
- package/storybook/molecules-image-editor-docs-mdx.119ea12a.iframe.bundle.js +0 -1
- package/storybook/molecules-image-editor-image-editor-component-stories.56467f17.iframe.bundle.js +0 -1
- package/storybook/runtime~main.53ef982c.iframe.bundle.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4555],{"./libs/ui/guide sync \\.json$"(module,__unused_webpack_exports,__webpack_require__){var map={"./app-shell.json":"./libs/ui/guide/app-shell.json","./burger-menu.json":"./libs/ui/guide/burger-menu.json","./form-basics.json":"./libs/ui/guide/form-basics.json","./image-gallery.json":"./libs/ui/guide/image-gallery.json","./table-edit-focus.json":"./libs/ui/guide/table-edit-focus.json","./translations.json":"./libs/ui/guide/translations.json","./ui-autocomplete.json":"./libs/ui/guide/ui-autocomplete.json","./ui-background.json":"./libs/ui/guide/ui-background.json","./ui-barcode.json":"./libs/ui/guide/ui-barcode.json","./ui-buzzer.json":"./libs/ui/guide/ui-buzzer.json","./ui-card.json":"./libs/ui/guide/ui-card.json","./ui-cdk-drag-drop-splitter.json":"./libs/ui/guide/ui-cdk-drag-drop-splitter.json","./ui-cdk-table-wrapper.json":"./libs/ui/guide/ui-cdk-table-wrapper.json","./ui-chart.json":"./libs/ui/guide/ui-chart.json","./ui-checkbox.json":"./libs/ui/guide/ui-checkbox.json","./ui-clock.json":"./libs/ui/guide/ui-clock.json","./ui-copy-value.json":"./libs/ui/guide/ui-copy-value.json","./ui-image-editor.json":"./libs/ui/guide/ui-image-editor.json","./ui-image-grid.json":"./libs/ui/guide/ui-image-grid.json","./ui-image-slider.json":"./libs/ui/guide/ui-image-slider.json","./ui-input.json":"./libs/ui/guide/ui-input.json","./ui-lang-selector.json":"./libs/ui/guide/ui-lang-selector.json","./ui-layout-main.json":"./libs/ui/guide/ui-layout-main.json","./ui-layout-media-screen.json":"./libs/ui/guide/ui-layout-media-screen.json","./ui-layout-nav.json":"./libs/ui/guide/ui-layout-nav.json","./ui-layout-overlay-header.json":"./libs/ui/guide/ui-layout-overlay-header.json","./ui-layout-overlay.json":"./libs/ui/guide/ui-layout-overlay.json","./ui-layout-spinner.json":"./libs/ui/guide/ui-layout-spinner.json","./ui-layout-splitter.json":"./libs/ui/guide/ui-layout-splitter.json","./ui-layout-tabs.json":"./libs/ui/guide/ui-layout-tabs.json","./ui-layout-top-scroll-bottom.json":"./libs/ui/guide/ui-layout-top-scroll-bottom.json","./ui-mosaic.json":"./libs/ui/guide/ui-mosaic.json","./ui-placeholder.json":"./libs/ui/guide/ui-placeholder.json","./ui-qr-code.json":"./libs/ui/guide/ui-qr-code.json","./ui-rating.json":"./libs/ui/guide/ui-rating.json","./ui-reader-doc.json":"./libs/ui/guide/ui-reader-doc.json","./ui-slider.json":"./libs/ui/guide/ui-slider.json","./ui-switch.json":"./libs/ui/guide/ui-switch.json","./ui-text-animate.json":"./libs/ui/guide/ui-text-animate.json","./ui-thumb.json":"./libs/ui/guide/ui-thumb.json","./ui-timer.json":"./libs/ui/guide/ui-timer.json","./ui-typewriter.json":"./libs/ui/guide/ui-typewriter.json","libs/ui/guide/app-shell.json":"./libs/ui/guide/app-shell.json","libs/ui/guide/burger-menu.json":"./libs/ui/guide/burger-menu.json","libs/ui/guide/form-basics.json":"./libs/ui/guide/form-basics.json","libs/ui/guide/image-gallery.json":"./libs/ui/guide/image-gallery.json","libs/ui/guide/table-edit-focus.json":"./libs/ui/guide/table-edit-focus.json","libs/ui/guide/translations.json":"./libs/ui/guide/translations.json","libs/ui/guide/ui-autocomplete.json":"./libs/ui/guide/ui-autocomplete.json","libs/ui/guide/ui-background.json":"./libs/ui/guide/ui-background.json","libs/ui/guide/ui-barcode.json":"./libs/ui/guide/ui-barcode.json","libs/ui/guide/ui-buzzer.json":"./libs/ui/guide/ui-buzzer.json","libs/ui/guide/ui-card.json":"./libs/ui/guide/ui-card.json","libs/ui/guide/ui-cdk-drag-drop-splitter.json":"./libs/ui/guide/ui-cdk-drag-drop-splitter.json","libs/ui/guide/ui-cdk-table-wrapper.json":"./libs/ui/guide/ui-cdk-table-wrapper.json","libs/ui/guide/ui-chart.json":"./libs/ui/guide/ui-chart.json","libs/ui/guide/ui-checkbox.json":"./libs/ui/guide/ui-checkbox.json","libs/ui/guide/ui-clock.json":"./libs/ui/guide/ui-clock.json","libs/ui/guide/ui-copy-value.json":"./libs/ui/guide/ui-copy-value.json","libs/ui/guide/ui-image-editor.json":"./libs/ui/guide/ui-image-editor.json","libs/ui/guide/ui-image-grid.json":"./libs/ui/guide/ui-image-grid.json","libs/ui/guide/ui-image-slider.json":"./libs/ui/guide/ui-image-slider.json","libs/ui/guide/ui-input.json":"./libs/ui/guide/ui-input.json","libs/ui/guide/ui-lang-selector.json":"./libs/ui/guide/ui-lang-selector.json","libs/ui/guide/ui-layout-main.json":"./libs/ui/guide/ui-layout-main.json","libs/ui/guide/ui-layout-media-screen.json":"./libs/ui/guide/ui-layout-media-screen.json","libs/ui/guide/ui-layout-nav.json":"./libs/ui/guide/ui-layout-nav.json","libs/ui/guide/ui-layout-overlay-header.json":"./libs/ui/guide/ui-layout-overlay-header.json","libs/ui/guide/ui-layout-overlay.json":"./libs/ui/guide/ui-layout-overlay.json","libs/ui/guide/ui-layout-spinner.json":"./libs/ui/guide/ui-layout-spinner.json","libs/ui/guide/ui-layout-splitter.json":"./libs/ui/guide/ui-layout-splitter.json","libs/ui/guide/ui-layout-tabs.json":"./libs/ui/guide/ui-layout-tabs.json","libs/ui/guide/ui-layout-top-scroll-bottom.json":"./libs/ui/guide/ui-layout-top-scroll-bottom.json","libs/ui/guide/ui-mosaic.json":"./libs/ui/guide/ui-mosaic.json","libs/ui/guide/ui-placeholder.json":"./libs/ui/guide/ui-placeholder.json","libs/ui/guide/ui-qr-code.json":"./libs/ui/guide/ui-qr-code.json","libs/ui/guide/ui-rating.json":"./libs/ui/guide/ui-rating.json","libs/ui/guide/ui-reader-doc.json":"./libs/ui/guide/ui-reader-doc.json","libs/ui/guide/ui-slider.json":"./libs/ui/guide/ui-slider.json","libs/ui/guide/ui-switch.json":"./libs/ui/guide/ui-switch.json","libs/ui/guide/ui-text-animate.json":"./libs/ui/guide/ui-text-animate.json","libs/ui/guide/ui-thumb.json":"./libs/ui/guide/ui-thumb.json","libs/ui/guide/ui-timer.json":"./libs/ui/guide/ui-timer.json","libs/ui/guide/ui-typewriter.json":"./libs/ui/guide/ui-typewriter.json"};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id="./libs/ui/guide sync \\.json$"},"./libs/ui/.storybook/blocks/guide.entries.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:()=>guideEntries});const context=__webpack_require__("./libs/ui/guide sync \\.json$"),guideEntries=context.keys().filter(key=>key.startsWith("./")).map(key=>{const entry=context(key);return entry.default??entry});if(0===guideEntries.length)throw new Error("guide: libs/ui/guide/ holds no entries — an empty guide is a generator bug, not an empty page.");const subjects=guideEntries.map(e=>e.component??e.situation),twice=subjects.find((s,i)=>subjects.indexOf(s)!==i);if(twice)throw new Error(`guide: "${twice}" is listed twice — one entry per subject, or the overview lies about the count.`)},"./libs/ui/.storybook/blocks/guide.model.mjs"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Cc:()=>guideModel,ED:()=>reviewedStamps,K9:()=>indexRows});var storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/storybook/dist/csf/index.js");function storyHref(story){const cut=story.lastIndexOf("/");if(cut<=0||cut===story.length-1)throw new Error(`guide: story reference "${story}" is not "Title/Export".`);const title=story.slice(0,cut),name=story.slice(cut+1);return`?path=/story/${(0,storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__.Lr)(title,(0,storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__.bE)(name))}`}const subjectOf=entry=>entry.component??entry.situation;function pageOf(entries,subject){const entry=entries.find(e=>subjectOf(e)===subject),story=entry?.shownIn.find(r=>r.story)?.story;return story?(title=story.slice(0,story.lastIndexOf("/")),`?path=/docs/${(0,storybook_internal_csf__WEBPACK_IMPORTED_MODULE_0__.aj)(title)}--docs`):null;var title}function guideModel(entry,entries,of){if(!entry||"object"!=typeof entry)throw new Error(`guide: no entry handed to the block for "${of}".`);const subject=subjectOf(entry);if(void 0!==of&&subject!==of)throw new Error(`guide: the block on "${of}" was handed the entry of "${subject}" — wrong import.`);for(const key of["useFor","notFor","shownIn","sources"])if(!Array.isArray(entry[key]))throw new Error(`guide: entry "${subject}" has no "${key}" list.`);if(0===entry.shownIn.length)throw new Error(`guide: entry "${subject}" shows nothing — no proof, no block.`);return{subject,kind:entry.component?"component":"situation",uses:(entry.uses??[]).map(s=>({selector:s,href:pageOf(entries,s)})),useFor:entry.useFor,notFor:entry.notFor,instead:(entry.instead??[]).map(s=>({selector:s,href:pageOf(entries,s)})),note:entry.note??null,shownIn:entry.shownIn.map(r=>r.story?{label:r.story,href:storyHref(r.story)}:{label:r.file,href:null}),sources:entry.sources,reviewed:entry.reviewed}}function indexRows(entries){if(!Array.isArray(entries)||0===entries.length)throw new Error("guide: the overview has no entries — an empty guide is a generator bug, not an empty page.");return entries.map(e=>({subject:subjectOf(e),kind:e.component?"component":"situation",brief:e.useFor[0],href:pageOf(entries,subjectOf(e))})).sort((a,b)=>a.kind===b.kind?a.subject.localeCompare(b.subject):"situation"===a.kind?1:-1)}const reviewedStamps=entries=>[...new Set(entries.map(e=>e.reviewed))]},"./libs/ui/guide/app-shell.json"(module){"use strict";module.exports=JSON.parse('{"situation":"app-shell","uses":["ui-layout-main","ui-layout-nav","ui-layout-splitter","ui-layout-tabs"],"useFor":["The four layout components nested by content projection: main holds the nav in its header and the page in its content; a splitter inside the content holds tabs in its left pane. Each slot is a named attribute on your own element."],"notFor":["Overlays — they stand next to the layout, not inside it."],"shownIn":[{"story":"Examples/Layout/Layout"},{"file":"libs/ui/.storybook/demos/examples/layout/docs.mdx"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/.storybook/demos/examples/layout/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/burger-menu.json"(module){"use strict";module.exports=JSON.parse('{"situation":"burger-menu","uses":["ui-layout-overlay","ui-layout-overlay-header"],"useFor":["A navigation drawer behind a burger button: the overlay with direction=\\"right\\", the header with its close, a plain link list in the overlay-content slot; every link click resets the open flag. Backdrop, Escape and the scroll-lock come with the overlay."],"notFor":["The main navigation on a wide screen — that is ui-layout-nav in the main header."],"shownIn":[{"story":"Examples/Burger Menu/BurgerMenu"},{"file":"libs/ui/src/lib/examples/docs.mdx"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/examples/docs.mdx","libs/ui/src/lib/layout/overlay/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/form-basics.json"(module){"use strict";module.exports=JSON.parse('{"situation":"form-basics","uses":["ui-input","ui-checkbox","ui-switch","ui-slider"],"useFor":["Every form in the house: <ui-input [label]=\\"…\\"><input ui-tag class=\\"ui\\" [(ngModel)]=\\"…\\" /></ui-input>. The wrapper brings label and error display, the native control keeps value, validation and type. class=\\"ui\\" on the control; class=\\"ui-flat\\" where it sits inline in a table cell."],"notFor":["A control without the class — it renders unstyled.","A validator written in the app: validators belong in the library."],"shownIn":[{"story":"Styling/Forms/Forms"},{"story":"Forms/Validators/Email"},{"file":"apps/change-me/src/app/slider/slider.component.html"}],"sources":["usage.md (Forms)","libs/ui/src/lib/forms/input/docs.mdx","libs/ui/src/lib/forms/validators/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/image-gallery.json"(module){"use strict";module.exports=JSON.parse('{"situation":"image-gallery","uses":["ui-image-grid","ui-image-slider"],"useFor":["Grid and slider sharing one index: side by side, or the slider created with @if as the zoom — two clicks by design of the grid, the first selects, the second (on the projected uiImageGridClickArea) emits clickIndex."],"notFor":["A single linked preview — ui-thumb."],"shownIn":[{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"},{"file":"apps/website/src/app/content/image-grid/image-grid.component.html"}],"sources":["libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/table-edit-focus.json"(module){"use strict";module.exports=JSON.parse('{"situation":"table-edit-focus","uses":["ui-cdk-table-wrapper","ui-input","ui-checkbox"],"useFor":["An inline-editing table walked by keyboard: the wrapper in inline fixed mode with the uiTableEditFocus directive; fields as ui-flat controls; the app answers uiRowNavigate and uiRowStep — the only two questions the library does not answer itself: may this row open, and what does locked mean — and calls focusCell() after it re-rendered the edit row."],"notFor":["A wrapper without inline mode: the cells shift when a text turns into a field.","Counting positions instead of naming buttons — the edit row carries more buttons than a read row."],"shownIn":[{"story":"Examples/Table Edit Focus/TableEditFocus"},{"story":"Examples/Table Edit Focus/TableEditFocusTall"},{"file":"libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.ts"}],"sources":["libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx","libs/ui/src/lib/cdk/components/table/docs.mdx","media CLAUDE.md (own repo): Keyboard navigation — who owns what","tickets#168","tickets#169"],"reviewed":"69197b72"}')},"./libs/ui/guide/translations.json"(module){"use strict";module.exports=JSON.parse('{"situation":"translations","uses":["ui-lang-selector"],"useFor":["Loading the library\'s translation files alongside the app\'s own with Transloco; the selector switches both. The list of every key the library ships is generated from the loaded translation, never written beside it."],"notFor":["Translating inside a computed — it snapshots an empty dictionary on first render; use the pipe, or a translate helper that listens."],"shownIn":[{"story":"Examples/Transloco/LangSelector"},{"story":"Examples/Transloco/AllKeys"},{"file":"libs/ui/.storybook/demos/examples/transloco/docs.mdx"}],"sources":["libs/ui/.storybook/demos/examples/transloco/docs.mdx","media CLAUDE.md (own repo): translate() inside a computed is a snapshot","tickets#182"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-autocomplete.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-autocomplete","useFor":["An input whose suggestions the host supplies — an in-memory list, signals or a backend; minChars and delay keep the requests civil, the component never fetches."],"notFor":["Multi-select, chips, a dropdown of fixed options — a native select inside ui-input does the last.","A waiting state or an empty message: there is none by design."],"instead":["ui-input"],"shownIn":[{"story":"Forms/Autocomplete/Autocomplete"},{"story":"Forms/Autocomplete/Loading"}],"sources":["libs/ui/src/lib/forms/autocomplete/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-background.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-background","useFor":["A patterned surface behind projected content — change-me\'s slider page puts its form on one."],"notFor":["Layout; a plain colour, which is one CSS line."],"shownIn":[{"story":"Atoms/Background/BackgroundExample"},{"file":"apps/change-me/src/app/slider/slider.component.html"}],"sources":["libs/ui/src/lib/atoms/background/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-barcode.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-barcode","useFor":["Drawing an EAN-13 the app already holds — an ISBN, an internal id under its own prefix. Size comes from the outside; a utility class on the tag wins."],"notFor":["Deciding which number to draw, printing it, or reacting to a click — that stays with the app.","Any symbology but EAN-13."],"note":"Wrap it in ui-copy-value to copy the digits; the bars stay the picture.","shownIn":[{"story":"Atoms/Barcode/Default"},{"story":"Atoms/Barcode/Sizes"}],"sources":["libs/ui/src/lib/atoms/barcode/docs.mdx","media frontend (own repo): internal-barcode.spec.ts, tickets#205"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-buzzer.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-buzzer","useFor":["One big, deliberate action — a contact trigger, a push button. The website uses it twice."],"notFor":["Ordinary form buttons: those are button.ui and button.ui-flat."],"shownIn":[{"story":"Atoms/Buzzer/Buzzer"},{"file":"apps/website/src/app/content/contact/contact.component.html"},{"file":"apps/website/src/app/components/push-button/push-button.component.html"}],"sources":["libs/ui/src/lib/atoms/buzzer/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-card.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-card","useFor":["A bounded surface with an optional headline and icon around projected content — a tile, a panel, a summary."],"notFor":["Anything that has to act: copying, linking, expanding. The card is presentational and composes nothing."],"instead":["ui-copy-value"],"note":"For a copyable card, wrap it: <ui-copy-value [value]=\\"…\\"><ui-card …></ui-card></ui-copy-value>. One job per component; composition, not a mode, adds the second.","shownIn":[{"story":"Atoms/Card/Card"}],"sources":["libs/ui/src/lib/atoms/card/docs.mdx","tickets#183"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-cdk-drag-drop-splitter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-cdk-drag-drop-splitter","useFor":["Sorting items into two buckets by drag and drop. Bind both outputs and hand the new arrays back, or nothing moves."],"notFor":["A two-pane layout.","A list that persists itself."],"instead":["ui-layout-splitter"],"shownIn":[{"story":"CDK/Drag And Drop Splitter/DragAndDropSplitter"}],"sources":["libs/ui/src/lib/cdk/components/drag-and-drop-splitter/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-cdk-table-wrapper.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-cdk-table-wrapper","useFor":["Any cdk-table in the house: loading skeleton, hover and focus, header colours, fixed or content layout.","Inline editing: inline fixed plus the uiTableEditFocus directive — the proto keyboard table and the media editor are built this way."],"notFor":["A table without the CDK.","Inline editing without inline mode: the cells shift when text turns into a field."],"shownIn":[{"story":"CDK/Table/Default"},{"story":"CDK/Table/Inline"},{"story":"Examples/Table Edit Focus/TableEditFocus"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"}],"sources":["libs/ui/src/lib/cdk/components/table/docs.mdx","libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx","media CLAUDE.md (own repo): Keyboard navigation — who owns what"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-chart.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-chart","useFor":["A single ring or bar of up to three segments — a share, a progress. The number of colours is the number of rings."],"notFor":["Series, axes, legends, tooltips, more than three parts."],"shownIn":[{"story":"Atoms/Chart/Rings"}],"sources":["libs/ui/src/lib/atoms/chart/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-checkbox.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-checkbox","useFor":["A choice that may be required or validated, inside a form that reports errors.","Flag cells of an editable table row: icons while the row is closed, checkboxes while it is edited — the proto keyboard table does that with display=\\"check-icon\\"."],"notFor":["An always-valid toggle.","The native variant where Safari matters — the self-painted icon variant renders the same everywhere."],"instead":["ui-switch"],"shownIn":[{"story":"Forms/Checkbox/CheckboxIcon"},{"story":"Forms/Checkbox/CheckboxValidation"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"}],"sources":["libs/ui/src/lib/forms/checkbox/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-clock.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-clock","useFor":["A decorative time display — the website\'s landscape overlay."],"notFor":["A countdown; anything that needs time zones or formats beyond 12/24 h."],"instead":["ui-timer"],"shownIn":[{"story":"Atoms/Clock/Default"},{"file":"apps/website/src/app/parts/landscape-overlay/landscape-overlay.component.html"}],"sources":["libs/ui/src/lib/atoms/clock/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-copy-value.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-copy-value","useFor":["Click-to-copy around anything that shows a value — a swatch, a barcode, a truncated label. What is shown and what is copied are two different things, and this carries the second."],"notFor":["Showing the value: it brings no appearance. Wrap the thing that does."],"note":"With an empty value it leaves the tab order and stops being a control, so it can stand around content unconditionally and be switched on by supplying a value.","shownIn":[{"story":"Atoms/Copy Value/Swatches"},{"story":"Atoms/Copy Value/OwnConfirmation"}],"sources":["libs/ui/src/lib/atoms/copy-value/docs.mdx","tickets#183"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-image-editor.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-editor","useFor":["Uploading and cropping one image to a ratio, result as a JPEG blob — a cover, an avatar. The media cover editor is the overlay variant; the embedded one sits in the flow."],"notFor":["Several images, drawing, filters.","Talking to a backend: it emits, the host uploads."],"shownIn":[{"story":"Molecules/Image Editor/WithImage"},{"story":"Molecules/Image Editor/Overlay"}],"sources":["libs/ui/src/lib/molecules/image-editor/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-image-grid.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-grid","useFor":["The overview of a picture set, sharing one index with ui-image-slider. Always set cols; the default draws nothing."],"notFor":["Showing one picture large — that is the slider\'s half."],"instead":["ui-image-slider"],"shownIn":[{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"apps/website/src/app/content/image-grid/image-grid.component.html"}],"sources":["libs/ui/src/lib/atoms/image-grid/docs.mdx","libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-image-slider.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-slider","useFor":["One picture at a time with swipe, drag and zoom; as the zoom of a grid, created with @if only while open."],"notFor":["The overview of a set."],"instead":["ui-image-grid"],"shownIn":[{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/atoms/image-slider/docs.mdx","libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-input.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-input","useFor":["Every text-based control in a form: wrap the native input, textarea or select, keep [(ngModel)] on the projected element, class=\\"ui\\" on it.","Inline editing in tables: the projected control takes class=\\"ui-flat\\" instead — invisible at rest, no layout jump. The proto keyboard table has sixteen of them."],"notFor":["Ranges, checkboxes, switches — they have wrappers of their own.","Suggestions while typing."],"instead":["ui-slider","ui-checkbox","ui-switch","ui-autocomplete"],"shownIn":[{"story":"Forms/Input/Input"},{"story":"Forms/Input/InputClearable"},{"file":"apps/change-me/src/app/slider/slider.component.html"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"}],"sources":["libs/ui/src/lib/forms/input/docs.mdx","usage.md (Forms)"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-lang-selector.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-lang-selector","useFor":["The one language switch of an app: one tag brings the service call, the storage and the restore on reload."],"notFor":["More than the two languages it knows; a switch that must not persist."],"shownIn":[{"story":"Examples/Transloco/LangSelector"},{"story":"Atoms/Lang Selector/OwnContent"},{"file":"apps/website/src/app/components/lang-selector/lang-selector.component.html"}],"sources":["libs/ui/src/lib/atoms/lang-selector/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-main.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-main","useFor":["The root of an app shell, once: the nav in its header slot, the page in its content, a footer. The website and change-me both start here."],"notFor":["A panel inside a page — splitter, tabs and top-scroll-bottom are for that."],"shownIn":[{"story":"Examples/Layout/Layout"},{"file":"apps/website/src/app/app.component.html"},{"file":"apps/change-me/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/main/docs.mdx","libs/ui/.storybook/demos/examples/layout/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-media-screen.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-media-screen","useFor":["Once in the app shell, so every breakpoint question goes to UiLayoutMediaScreenService — never a hard-coded width in TypeScript or a breakpoint through Tailwind."],"notFor":["Anything visible; a second instance."],"shownIn":[{"story":"Layout/Media Screen/MediaScreen"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/media-screen/docs.mdx","media CLAUDE.md (own repo): breakpoints never go through Tailwind"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-nav.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-nav","useFor":["The app navigation in the main header, fed by UiLayoutNavService — tab theme for a site, app theme with a home button for a tool."],"notFor":["A second nav in the same layout.","A menu in a drawer — that is the burger recipe with ui-layout-overlay."],"instead":["ui-layout-overlay"],"shownIn":[{"story":"Layout/Nav/TemplateTab"},{"story":"Layout/Nav/TemplateApp"},{"story":"Examples/Layout/Layout"},{"file":"apps/website/src/app/parts/header/header.component.html"}],"sources":["libs/ui/src/lib/layout/nav/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-overlay-header.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-overlay-header","useFor":["The plain header of an overlay: headline plus close, in the overlay-header slot."],"notFor":["A header with anything else in it — write your own bar into the same slot. The media record sheet does, because its close turns into a two-step discard."],"shownIn":[{"story":"Layout/Overlay Header/InsideAnOverlay"},{"story":"Examples/Burger Menu/BurgerMenu"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/overlay/header/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-overlay.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-overlay","useFor":["A drawer or a modal over the page — a burger menu, a sign-in sheet, a record editor. Place it at the app\'s top level next to the layout, bind active in and take activeOutput back."],"notFor":["Anything inside the layout tree.","A tooltip or a popover."],"shownIn":[{"story":"Examples/Burger Menu/BurgerMenu"},{"story":"Layout/Overlay/Overlay"},{"story":"Layout/Overlay/ScrollContainment"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/overlay/docs.mdx","libs/ui/src/lib/examples/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-spinner.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-spinner","useFor":["The one global loading indicator at the app root, driven by UiLayoutSpinnerService from an HTTP interceptor."],"notFor":["A component\'s own loading state — the table wrapper has its skeleton, everything else is local styling."],"shownIn":[{"story":"Layout/Spinner/Spinner"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/spinner/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-splitter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-splitter","useFor":["A working view with two panes and an action header. The media editor is one: table left, detail right, and the zoom is the handle that widens the table."],"notFor":["Moving items between two lists.","Resizing panes by dragging — it has direction, zoom and fullscreen, no drag handle."],"instead":["ui-cdk-drag-drop-splitter"],"shownIn":[{"story":"Layout/Splitter/Splitter"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/layout/splitter/docs.mdx","media CLAUDE.md (own repo): the 4K table shots and the zoom"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-tabs.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-tabs","useFor":["A few sections of one view switched in place, inside a pane."],"notFor":["Routing between pages.","Remembering the active tab across a reload."],"shownIn":[{"story":"Layout/Tabs/TabsDefault"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/layout/tabs/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-top-scroll-bottom.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-top-scroll-bottom","useFor":["A view whose middle scrolls while header and footer stay — once per route, inside main-content."],"notFor":["Anywhere outside ui-layout-main; a second one in the same view."],"shownIn":[{"story":"Layout/Top Scroll Bottom/TopScrollBottom"}],"sources":["libs/ui/src/lib/layout/top-scroll-bottom/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-mosaic.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-mosaic","useFor":["A decorative tile field behind a page or over a picture — placed with CSS, given a box."],"notFor":["Anything clickable (pointer events are off).","An element in the flow without a height — it renders nothing, because its tile count comes from its box."],"shownIn":[{"story":"Atoms/Mosaic/Images"},{"story":"Atoms/Mosaic/OverImage"}],"sources":["libs/ui/src/lib/atoms/mosaic/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-placeholder.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-placeholder","useFor":["Filler with visible mass in stories and examples, sized from the outside (class=\\"h-64\\") — so a reader can tell a stand-in from a component that failed to render."],"notFor":["Product UI. It is scenery for documentation."],"shownIn":[{"story":"Atoms/Placeholder/Sizes"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/atoms/placeholder/docs.mdx","agents.md (Storybook Guidelines: filler needs visible mass)"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-qr-code.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-qr-code","useFor":["A URL or a short text as a scannable code. M is the ordinary level; raise it for small prints or surfaces that get handled."],"notFor":["Payloads past the version-40 capacity at the chosen level; kanji or ECI encodings."],"shownIn":[{"story":"Atoms/QR Code/Default"},{"story":"Atoms/QR Code/Levels"}],"sources":["libs/ui/src/lib/atoms/qr-code/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-rating.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-rating","useFor":["Displaying a rating as filled icons — read-only, any Material glyph, colours and size as CSS variables."],"notFor":["Collecting a rating: it takes no input from the reader."],"shownIn":[{"story":"Atoms/Rating/Rating"}],"sources":["libs/ui/src/lib/atoms/rating/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-reader-doc.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-reader-doc","useFor":["Rendering a Markdown string in the house design — the website\'s content pages do. Whoever fetches, caches and picks the language stands in front of it."],"notFor":["Documents whose raw HTML must survive: it is discarded, counted and named on the page."],"shownIn":[{"story":"Atoms/ReaderDoc/Default"},{"story":"Atoms/ReaderDoc/DroppedMarkup"},{"file":"apps/website/src/app/content/content.component.html"}],"sources":["libs/ui/src/lib/atoms/reader-doc/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-slider.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-slider","useFor":["A number or a min–max span the reader drags until it looks right."],"notFor":["A value the reader should type exactly — ui-input with type=\\"number\\"."],"instead":["ui-input"],"shownIn":[{"story":"Forms/Slider/Slider"},{"story":"Forms/Slider/Range"}],"sources":["libs/ui/src/lib/forms/slider/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-switch.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-switch","useFor":["A deliberate on/off decision that takes effect at once and is valid either way — a setting, a filter, a mode."],"notFor":["A choice that can be required or invalid, such as a consent."],"instead":["ui-checkbox"],"shownIn":[{"story":"Forms/Switch/Switch"},{"story":"Styling/Forms/Forms"}],"sources":["libs/ui/src/lib/forms/switch/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-text-animate.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-text-animate","useFor":["A headline that animates letter by letter; clip on the container when a variant travels in from outside."],"notFor":["Body text or anything longer than a phrase."],"shownIn":[{"story":"Atoms/Text Animate/TextAnimate"},{"file":"apps/change-me/src/app/slider/slider.component.html"}],"sources":["libs/ui/src/lib/atoms/text-animate/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-thumb.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-thumb","useFor":["A linked preview image with a caption — playlist tiles, news, references on the website. Place it in a grid cell or give it a width."],"notFor":["A gallery of pictures sharing a selection.","An image without a link — a plain <img> does that."],"instead":["ui-image-grid"],"shownIn":[{"story":"Atoms/Thumb/Thumb"},{"story":"Atoms/Thumb/ThumbInternalLink"},{"file":"apps/website/src/app/content/youtube/youtube.component.html"},{"file":"apps/website/src/app/components/news/display/display.component.html"}],"sources":["libs/ui/src/lib/atoms/thumb/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-timer.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-timer","useFor":["A countdown with a finished event; project the words that stand at zero, in your language."],"notFor":["Showing the time of day."],"instead":["ui-clock"],"shownIn":[{"story":"Atoms/Timer/Timer"}],"sources":["libs/ui/src/lib/atoms/timer/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-typewriter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-typewriter","useFor":["A line of text that types itself, optionally with a keystroke sound — the website\'s platformer intro."],"notFor":["Body text; a loop — a second sentence is a new run."],"shownIn":[{"story":"Atoms/Typewriter/Typewriter"},{"file":"apps/website/src/app/components/platformer/platformer.component.html"}],"sources":["libs/ui/src/lib/atoms/typewriter/docs.mdx"],"reviewed":"69197b72"}')}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3550],{"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/reader-doc/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_reader_doc_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/reader-doc/reader-doc.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_reader_doc_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-reader-doc.json");function _createMdxContent(props){const _components={code:"code",em:"em",h3:"h3",hr:"hr",p:"p",strong:"strong",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_reader_doc_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"readerdoc",children:"ReaderDoc"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Reads a Markdown document in the house design."}),"\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:["It takes Markdown as a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"string"}),". No ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"HttpClient"}),", no route, no cache, no\nlanguage switching, no publication list — everything that knows ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"where"})," a text\ncame from, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"which"})," language it should appear in and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"whether"})," there is a file\nto take away stands in front of it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"That is what lets the same component serve a public site, this Storybook page\nand a customer instance without any of them leaking into the others. On this\npage it runs with no network at all."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_reader_doc_component_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-reader-doc",entry:_guide_ui_reader_doc_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:"raw-html-is-discarded-not-sanitised",children:"Raw HTML is discarded, not sanitised"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Markdown allows embedded HTML, and that is the only way foreign markup could\nreach the page. The renderer closes it without any dependency: an HTML token\nproduces nothing, so afterwards the output can only consist of the tags the\nMarkdown parser builds itself. What is left to check is exactly one thing —\nthe values of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"href"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"src"}),". Three schemes pass — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"http:"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"https:"})," and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"mailto:"})," — and so does every relative address, an anchor included. Everything\nelse is refused, counted and named like a dropped tag. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"urlAllowed"})," carries a\nspec of its own listing both sides, so this paragraph cannot drift away from\nthe code."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This is a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"tighter"})," boundary than a sanitiser, not a cheaper one. A sanitiser\npermits a lot and forbids the known-bad; this renderer cannot produce anything\nforeign in the first place. It is a design decision as much as a safety one: a\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<div align>"})," or an inline ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"style"})," out of a README would break the house design\nopen from the inside."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The words between the tags survive — they are separate tokens, so a sentence\nkeeps its text and loses only its markup."}),"\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:"And nothing disappears quietly."})," What was dropped is counted, named and\nstated on the page. There is no input that hides it: the notice appears only\nwhen content really was left out, so a switch against it would be flipped in\nexactly the moment it is needed. Whoever writes Markdown without HTML never\nsees it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_reader_doc_component_stories__WEBPACK_IMPORTED_MODULE_4__.DroppedMarkup}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"A trap worth knowing:"})," HTML comments are raw-HTML tokens too.\nA house convention such as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"\x3c!-- break --\x3e"})," is a\nconvention, not discarded content, and is never counted — otherwise every\ndocument in the house would report a finding and the state would be noise\nnobody reads."]})}),"\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:"sections",children:"Sections"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Every second-level heading starts a section, and every section stands open.\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Nothing in a document opens or closes."})," A reader came to read, and a text\nthat has to be unpacked first is a text that is half missing — so there is no\nfold, no summary and no second, shorter version to switch to. What the\ncomponent offers instead are ways ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"out"})," of the document: a finished file and a\nsheet of paper."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The title is a real ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"h2"})," carrying the section's anchor, so the document keeps\nan outline for anyone navigating by headings."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"the-text-keeps-its-own-voice",children:"The text keeps its own voice"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The document area brings ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"no design of its own"}),". Headings are told apart by\nsize and air, links are underlined, code blocks, tables and quotes take the\nlibrary's tokens and nothing else. There is no house gesture stamped onto the\ntext."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"That is not modesty, it is the job: this component carries a foreign document —\na README, a licence, a text somebody else wrote — and a reader that decorates\nwhat it displays makes every source look like it was written here. The\nsurroundings are the library's; the text is the author's."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"One position the reader does decide, because Markdown cannot: a paragraph\nthat holds nothing but an image — linked or not — is a figure and stands\ncentred. An image inside prose keeps its place in the line. No frame, no\ncaption, nothing else."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_reader_doc_component_stories__WEBPACK_IMPORTED_MODULE_4__.Figure}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["And one thing it keeps whole: inline code never wraps. An identifier, a file\nname, a flag is one token, and a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"change-me"})," split at its hyphen across two\nlines of a narrow table cell is no longer the thing it names. The line around\nthe token breaks; the token does not. A code block is unaffected — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"pre"}),"\nkeeps its own line breaks and scrolls sideways. In the same picture: table\ncells read from their first line — a one-word key starts level with the\ndescription beside it, not halfway down it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_reader_doc_component_stories__WEBPACK_IMPORTED_MODULE_4__.CodeInNarrowCell}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"And it holds that in both directions: the component leaves no hooks in its\noutput for an outside stylesheet to hang a design on. What it renders is\nheadings, paragraphs, lists, links, tables — the tags themselves, with nothing\nwrapped around them. Whatever this reader looks like, it decides here, in its\nown file."}),"\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:"anchors-what-survives-and-what-does-not",children:"Anchors: what survives and what does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The renderer gives every heading a slug, and the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"section"})," carries it into\nthe DOM from the template — so a section is a link target."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A heading ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"inside"})," the injected HTML is not. Angular's sanitiser runs over\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[innerHTML]"})," as a second net and strips ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"id"})," on the way. That net is kept\ndeliberately rather than bypassed: the safety here already comes from the\nrenderer, and a second one costs nothing but those ids. The behaviour is\npinned by a test, so it cannot change unnoticed."]}),"\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:"two-language-states-and-they-must-never-be-confused",children:"Two language states, and they must never be confused"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"State"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"When"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"How it looks"})]})}),(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:"none"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"view language = content language"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"nothing"})]}),(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:"source-language"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["they differ, and that is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("em",{children:"expected"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"a quiet note above the document"})]}),(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:"fallback"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"the requested language is missing although it should exist"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"defect"}),": error colour, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'role="alert"'})]})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The component shows the state; it does not decide it. Only the placer knows\nwhether a document ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"ought to have been"})," published in both languages. A fallback\nthat reads like an offer is how an English page ends up in a German view\nunremarked."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_reader_doc_component_stories__WEBPACK_IMPORTED_MODULE_4__.SourceLanguage}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_reader_doc_component_stories__WEBPACK_IMPORTED_MODULE_4__.FallbackDefect}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"the-ways-out",children:"The ways out"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A button appears only when it can keep its promise: no address, no download\nbutton. The file itself is handed in — the component makes nothing and knows\nnothing about how it came to be."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Printing is the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"side way"}),": the chrome disappears and the page breaks are\nkept off headings and out of list items — that is all the component does for\npaper, and deliberately so. A full paper design is somebody else's job; this\none shows a document on a screen and gets out of the way when the sheet\ncomes."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Both ways out are icon buttons in the library's own shape, with their wording\nin ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"title"})," so it stays translated."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:'The date in the footer is handed in as text. The component never asks the\nclock: a document is as current as the release that shipped it, and a component\nstamping "today" onto it would be making that up.'}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_reader_doc_component_stories__WEBPACK_IMPORTED_MODULE_4__.WaysOut}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"the-loud-states",children:"The loud states"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Nothing to read is a state, not an absence. An empty area looks like a\ncomponent that failed to render, and a reader cannot tell the difference."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_reader_doc_component_stories__WEBPACK_IMPORTED_MODULE_4__.Empty}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A failure the placer wants shown appears in its own words, in place of the\ndocument."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_reader_doc_component_stories__WEBPACK_IMPORTED_MODULE_4__.Failed}),"\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:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"markdown"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The document. Empty or missing ends in the loud empty state, never in a\nblank page."})})]}),(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:"error"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A failure to show ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("em",{children:"instead of"})," the document, in the placer's own\nwords — only they can say it in a way that fits the site."]})})]}),(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:"notice"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UiReaderNotice"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'none'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'source-language'"})," or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'fallback'"})," — see the two\nlanguage states above. The component shows the state; it does not\ndecide it."]})})]}),(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:"contentLang"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The language the text is in, for the notice — a label such as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"EN"}),"."]})]}),(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:"stand"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The house stamp, pre-formatted. Text, because the component never asks\nthe clock."})})]}),(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:"downloadHref"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Where the ready-made file lies. No address, no button — the component\nmakes no file and knows nothing about how one came to be."})})]}),(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:"downloadName"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The name the file is saved under."})]}),(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:"printable"})}),(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:["Whether the print button is drawn. It is not a lock on the method:\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"print()"})," is public, so a host can put the control wherever\nit belongs and leave this off."]})})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3999],{"./libs/ui/src/lib/atoms/reader-doc/reader-doc.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CodeInNarrowCell:()=>CodeInNarrowCell,Default:()=>Default,DroppedMarkup:()=>DroppedMarkup,Empty:()=>Empty,Failed:()=>Failed,FallbackDefect:()=>FallbackDefect,Figure:()=>Figure,SourceLanguage:()=>SourceLanguage,WaysOut:()=>WaysOut,__namedExportsOrder:()=>__namedExportsOrder,default:()=>reader_doc_component_stories});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var reader_doc_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/reader-doc/reader-doc.component.css?ngResource"),reader_doc_componentngResource_default=__webpack_require__.n(reader_doc_componentngResource),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),marked_esm=__webpack_require__("./node_modules/marked/lib/marked.esm.js");const ALLOWED_SCHEMES=new Set(["http:","https:","mailto:"]);function slug(text){return text.toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,"")||"section"}function urlAllowed(href){const value=href.trim();if(""===value)return!1;if(/[\0-]/.test(value))return!1;if(!/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(value))return!0;try{return ALLOWED_SCHEMES.has(new URL(value).protocol)}catch{return!1}}class Collector{names=new Set;total=0;add(name){this.names.add(name),this.total+=1}result(){return{count:this.total,tags:[...this.names].sort()}}}function instance(collector){return new marked_esm.Dz({renderer:{html:token=>(function openingTags(raw){return[...raw.replaceAll(/<!--[\s\S]*?-->/g,"").matchAll(/<([a-zA-Z][a-zA-Z0-9-]*)/g)].map(m=>m[1].toLowerCase())}(token.raw??token.text??"").forEach(name=>collector.add(name)),""),heading(token){const text=this.parser.parseInline(token.tokens),id=slug(token.text);return`<h${token.depth} id="${id}">${text}</h${token.depth}>\n`},link(token){const text=this.parser.parseInline(token.tokens);if(!urlAllowed(token.href))return collector.add("a"),text;const title=token.title?` title="${escapeAttribute(token.title)}"`:"";return`<a href="${escapeAttribute(token.href)}"${title}>${text}</a>`},table(token){return marked_esm.A4.prototype.table.call(this,token).replace("<table>",'<table class="ui">')},image(token){if(!urlAllowed(token.href))return collector.add("img"),"";const title=token.title?` title="${escapeAttribute(token.title)}"`:"";return`<img src="${escapeAttribute(token.href)}" alt="${escapeAttribute(token.text)}"${title} />`}}})}function escapeAttribute(value){return value.replaceAll("&","&").replaceAll('"',""").replaceAll("<","<").replaceAll(">",">")}function toView(markdown,marked){const tokens=marked.lexer(markdown),lead=[],sections=[];for(const token of tokens){if("heading"===token.type&&2===token.depth){const heading=token;sections.push({id:slug(heading.text),title:heading.text,tokens:[]});continue}const current=sections.at(-1);(void 0===current?lead:current.tokens).push(token)}return{lead:marked.parser(lead),sections:sections.map(section=>({id:section.id,title:section.title,html:marked.parser(section.tokens)}))}}let UiReaderDocComponent=class UiReaderDocComponent{markdown=(0,core.input)(null);error=(0,core.input)(null);notice=(0,core.input)("none");contentLang=(0,core.input)(null);stand=(0,core.input)(null);downloadHref=(0,core.input)(null);downloadName=(0,core.input)(null);printable=(0,core.input)(!1);document=(0,_effect_chunk2.WQX)(_effect_chunk2.qQL);rendered=(0,_resource_chunk.EW)(()=>function renderReaderDocument(markdown=""){const collector=new Collector;return{full:toView(markdown,instance(collector)),dropped:collector.result()}}(this.markdown()??""));dropped=(0,_resource_chunk.EW)(()=>this.rendered().dropped);lead=(0,_resource_chunk.EW)(()=>this.rendered().full.lead);sections=(0,_resource_chunk.EW)(()=>this.rendered().full.sections);hasBar=(0,_resource_chunk.EW)(()=>"none"!==this.notice()||this.dropped().count>0||null!==this.downloadHref()||this.printable());isEmpty=(0,_resource_chunk.EW)(()=>{const doc=this.rendered().full;return""===doc.lead.trim()&&0===doc.sections.length});print(){this.document.defaultView?.print()}static propDecorators={markdown:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"markdown",required:!1,transform:void 0}]}],error:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"error",required:!1,transform:void 0}]}],notice:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"notice",required:!1,transform:void 0}]}],contentLang:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"contentLang",required:!1,transform:void 0}]}],stand:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"stand",required:!1,transform:void 0}]}],downloadHref:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"downloadHref",required:!1,transform:void 0}]}],downloadName:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"downloadName",required:!1,transform:void 0}]}],printable:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"printable",required:!1,transform:void 0}]}]}};UiReaderDocComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-reader-doc",template:'@if (error(); as message) {\n <p class="_state _error" role="alert">{{ message }}</p>\n} @else if (isEmpty()) {\n <p class="_state _empty" role="alert">{{ \'reader.empty\' | transloco }}</p>\n} @else {\n @if (hasBar()) {\n <header class="_bar">\n <div class="_notices">\n @switch (notice()) {\n @case (\'source-language\') {\n <p class="_notice">\n {{ \'reader.sourceLanguage\' | transloco: { lang: contentLang() ?? \'\' } }}\n </p>\n }\n @case (\'fallback\') {\n <p class="_notice _defect" role="alert">\n {{ \'reader.fallback\' | transloco: { lang: contentLang() ?? \'\' } }}\n </p>\n }\n }\n\n \x3c!-- Not switchable off: it appears only when content really was left\n out, and a reader that keeps that to itself is lying quietly. --\x3e\n @if (dropped().count > 0) {\n <p class="_notice _dropped">\n {{\n \'reader.dropped\'\n | transloco: { count: dropped().count, tags: dropped().tags.join(\', \') }\n }}\n </p>\n }\n </div>\n\n <div class="_actions">\n \x3c!-- Icon buttons in the library\'s own shape: the glyph is the content,\n the wording lives in `title` so it stays translated and reachable. --\x3e\n @if (downloadHref(); as href) {\n <a\n class="ui-icon _download"\n [href]="href"\n [attr.download]="downloadName() ?? \'\'"\n [title]="\'reader.download\' | transloco"\n [attr.aria-label]="\'reader.download\' | transloco"\n >file_download</a\n >\n }\n @if (printable()) {\n <button\n type="button"\n class="ui-icon _print"\n [title]="\'reader.print\' | transloco"\n [attr.aria-label]="\'reader.print\' | transloco"\n (click)="print()"\n >\n print\n </button>\n }\n </div>\n </header>\n }\n\n <article class="_doc">\n \x3c!-- The HTML comes from the renderer next door, which can only produce the\n tags marked builds itself. Angular\'s sanitiser still runs over it — a\n second net costs nothing here, and nothing is waved through. --\x3e\n <div class="_lead" [innerHTML]="lead()"></div>\n\n @for (section of sections(); track section.id) {\n <section class="_section">\n <h2 [id]="section.id">{{ section.title }}</h2>\n <div [innerHTML]="section.html"></div>\n </section>\n }\n </article>\n\n @if (stand(); as date) {\n <footer class="_stand">{{ \'reader.stand\' | transloco: { date: date } }}</footer>\n }\n}\n',encapsulation:_debug_node_chunk.gXe.None,imports:[ngneat_transloco.Kj],styles:[reader_doc_componentngResource_default()]})],UiReaderDocComponent);const reader_doc_component_stories={title:"Atoms/ReaderDoc",component:UiReaderDocComponent,argTypes:{notice:{control:"select",options:["none","source-language","fallback"]},printable:{control:"boolean"}}},noControls={controls:{disable:!0}},render=args=>({props:{...args},template:'\n <ui-reader-doc\n class="block max-w-3xl border border-c-secondary p-6"\n [markdown]="markdown"\n [error]="error"\n [notice]="notice"\n [contentLang]="contentLang"\n [stand]="stand"\n [downloadHref]="downloadHref"\n [downloadName]="downloadName"\n [printable]="printable"\n ></ui-reader-doc>\n '}),base={markdown:"# Demo document\n\nThis document exists to be read by the component below. Everything in it\ndemonstrates one of the shapes the renderer handles.\n\n- a list item, which carries the gear instead of a bullet on paper\n- a second one, so the spacing has something to show\n\nA [link that is kept](https://moja.work) and `inline code`.\n\n## A section\n\nSecond-level headings start a section. This paragraph sits inside one.\n\n| Column | Column |\n| --- | --- |\n| cell | cell |\n\n## Another section\n\n```\na code block keeps itself whole\n```\n",error:null,notice:"none",contentLang:null,stand:null,downloadHref:null,downloadName:null,printable:!1},Default={args:{...base},render},WaysOut={parameters:noControls,args:{...base,downloadHref:"assets/ui/documents/demo.pdf",downloadName:"demo.pdf",printable:!0,stand:"2026-08-15"},render},Figure={parameters:noControls,args:{...base,markdown:"# Demo document\n\nA paragraph that holds nothing but an image is a figure and stands centred.\nThe one below links somewhere as well — a linked image is a figure too.\n\n[](https://moja.work)\n\nProse with an image inside keeps its flow: \nthe picture sits in the line where the author put it.\n"},render},CodeInNarrowCell={parameters:noControls,args:{...base,markdown:"# Demo document\n\nInline code is one token and never wraps, however narrow the cell — the text\naround it breaks instead. A code block keeps its own breaks and scrolls.\n\n| App | What it is |\n| --- | --- |\n| `change-me` | A long description that takes the width, so the first column is squeezed to what the name needs and not one character more |\n| `another-long-name` | The same again, a second row so the column has to agree on one width for both names |\n"},render},SourceLanguage={parameters:noControls,args:{...base,notice:"source-language",contentLang:"EN"},render},FallbackDefect={parameters:noControls,args:{...base,notice:"fallback",contentLang:"EN"},render},DroppedMarkup={parameters:noControls,args:{...base,markdown:"# Demo document\n\nThis document contains <b>raw HTML</b> and a <details>block element</details>.\nThe words survive, the markup does not — and the notice above says so.\n"},render},Empty={parameters:noControls,args:{...base,markdown:""},render},Failed={parameters:noControls,args:{...base,error:"The source did not answer."},render},__namedExportsOrder=["Default","WaysOut","Figure","CodeInNarrowCell","SourceLanguage","FallbackDefect","DroppedMarkup","Empty","Failed"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {\n ...base\n },\n render\n}",...Default.parameters?.docs?.source},description:{story:"Reading, and nothing else. No buttons, because none were handed in — a\nbutton appears only when it can keep its promise.",...Default.parameters?.docs?.description}}},WaysOut.parameters={...WaysOut.parameters,docs:{...WaysOut.parameters?.docs,source:{originalSource:"{\n parameters: noControls,\n args: {\n ...base,\n // A real, tiny PDF from the library's own assets — a stand-in that says\n // it is one when you open it. The previous one was text under a `.pdf`\n // name, so every click ended in \"the file could not be opened\": a story\n // teaching that the download is broken.\n downloadHref: 'assets/ui/documents/demo.pdf',\n downloadName: 'demo.pdf',\n printable: true,\n stand: '2026-08-15'\n },\n render\n}",...WaysOut.parameters?.docs?.source},description:{story:"Both ways out. The download is the main way and carries the weight; printing\nis the side way. The file is handed in as an address — the component makes\nnothing.",...WaysOut.parameters?.docs?.description}}},Figure.parameters={...Figure.parameters,docs:{...Figure.parameters?.docs,source:{originalSource:"{\n parameters: noControls,\n args: {\n ...base,\n markdown: WITH_FIGURE\n },\n render\n}",...Figure.parameters?.docs?.source},description:{story:"A lone image is a figure: centred, whether it links somewhere or not. An\nimage inside prose is not — it stays in its line. The renderer draws no\nframe and no caption; where the picture stands is all it decides.",...Figure.parameters?.docs?.description}}},CodeInNarrowCell.parameters={...CodeInNarrowCell.parameters,docs:{...CodeInNarrowCell.parameters?.docs,source:{originalSource:"{\n parameters: noControls,\n args: {\n ...base,\n markdown: WITH_CODE_IN_CELL\n },\n render\n}",...CodeInNarrowCell.parameters?.docs?.source},description:{story:"Inline code in a squeezed table cell: the hyphenated names stay on one line\neach, the description column takes the break.",...CodeInNarrowCell.parameters?.docs?.description}}},SourceLanguage.parameters={...SourceLanguage.parameters,docs:{...SourceLanguage.parameters?.docs,source:{originalSource:"{\n parameters: noControls,\n args: {\n ...base,\n notice: 'source-language',\n contentLang: 'EN'\n },\n render\n}",...SourceLanguage.parameters?.docs?.source},description:{story:"The quiet note: the text is in its source language and that is expected. It\nmust be distinguishable at a glance from the state below — that is the whole\nreason they are two states.",...SourceLanguage.parameters?.docs?.description}}},FallbackDefect.parameters={...FallbackDefect.parameters,docs:{...FallbackDefect.parameters?.docs,source:{originalSource:"{\n parameters: noControls,\n args: {\n ...base,\n notice: 'fallback',\n contentLang: 'EN'\n },\n render\n}",...FallbackDefect.parameters?.docs?.source},description:{story:'The defect: the requested language is missing although it should exist. It\ncarries the error colour and `role="alert"`, because a fallback nobody\nnotices is how an English page ends up in a German view unremarked.',...FallbackDefect.parameters?.docs?.description}}},DroppedMarkup.parameters={...DroppedMarkup.parameters,docs:{...DroppedMarkup.parameters?.docs,source:{originalSource:"{\n parameters: noControls,\n args: {\n ...base,\n markdown: WITH_HTML\n },\n render\n}",...DroppedMarkup.parameters?.docs?.source},description:{story:"Raw HTML is discarded, and the reader says so with a count and the element\nnames. There is no input that hides this: the notice only ever appears when\nsomething really was left out.",...DroppedMarkup.parameters?.docs?.description}}},Empty.parameters={...Empty.parameters,docs:{...Empty.parameters?.docs,source:{originalSource:"{\n parameters: noControls,\n args: {\n ...base,\n markdown: ''\n },\n render\n}",...Empty.parameters?.docs?.source},description:{story:"Nothing to read is a loud state, never a blank area that reads as a broken component.",...Empty.parameters?.docs?.description}}},Failed.parameters={...Failed.parameters,docs:{...Failed.parameters?.docs,source:{originalSource:"{\n parameters: noControls,\n args: {\n ...base,\n error: 'The source did not answer.'\n },\n render\n}",...Failed.parameters?.docs?.source},description:{story:"A failure the placer wants shown in its own words, in place of the document.",...Failed.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/reader-doc/reader-doc.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/* The reader on SCREEN, and nothing but. The document area stays neutral —\n this component carries foreign text, and a reader that decorates what it\n displays makes every source look like it was written in this house.\n\n It hangs on nothing outside itself: no stylesheet is imported, no class is\n left in the output as a hook for one, and no other file is named here as\n the other half of a design. Whatever this looks like is decided in this\n file.\n\n Encapsulation is None, so everything hangs under the tag. */\n\nui-reader-doc {\n display: block;\n color: var(--ui-c-default);\n\n /* ---- states that replace the document ---- */\n\n ._state {\n /* Centred in both directions: these two replace the whole document, so the\n sentence stands in the middle of the space the text would have had\n rather than in its top-left corner like a first paragraph. */\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: var(--ui-spacer);\n border-radius: var(--ui-border-radius);\n background-color: var(--ui-c-primary);\n color: var(--ui-c-primary-invert);\n }\n\n /* A tint rather than a slab of red, and the sentence in the error colour\n itself — the same pair the fallback notice uses, one step louder. A filled\n red block reads as a warning sign; this reads as a message that went\n wrong, which is what it is. */\n ._state._error {\n border: var(--ui-border-width) solid var(--ui-c-error);\n background-color: color-mix(in srgb, var(--ui-c-error) 20%, transparent);\n color: var(--ui-c-error);\n font-weight: bold;\n }\n\n /* ---- the bar above the document ---- */\n\n ._bar {\n display: flex;\n flex-wrap: wrap;\n gap: calc(var(--ui-spacer) * 0.5);\n justify-content: space-between;\n align-items: flex-start;\n /* Half a spacer, the same step the bar uses between its own parts. A full\n one left the notice floating well clear of the text it is about. */\n margin-bottom: calc(var(--ui-spacer) * 0.5);\n }\n\n ._notices {\n display: flex;\n flex-direction: column;\n gap: calc(var(--ui-spacer) * 0.25);\n flex: 1 1 20rem;\n }\n\n ._notice {\n margin: 0;\n padding: calc(var(--ui-spacer) * 0.5);\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n border-radius: var(--ui-border-radius);\n /* A tint of the border's own colour, mixed against whatever lies behind\n it — so the note carries in both themes without a second token. */\n background-color: color-mix(in srgb, var(--ui-c-secondary) 12%, transparent);\n font-size: 0.9em;\n }\n\n /* A fallback is a DEFECT and looks like one. It must never be mistaken for\n the quiet note that a text is simply in its source language — that is the\n whole reason the two are separate states. */\n ._notice._defect {\n border-color: var(--ui-c-error);\n background-color: color-mix(in srgb, var(--ui-c-error) 10%, transparent);\n color: var(--ui-c-error);\n font-weight: bold;\n }\n\n ._actions {\n display: flex;\n gap: calc(var(--ui-spacer) * 0.25);\n align-items: center;\n }\n\n /* The print button needs nothing here: `ui-icon` puts it under the library's\n own button rule, which is where the splitter's icon row gets its look\n from. The download cannot use that rule — it is an `<a>`, because `href`\n and `download` belong on a link — so the rule's declarations are mirrored\n for it, token for token, rather than a second button design invented next\n to it. Size and padding come from `.ui-icon` for both. */\n ._actions ._download {\n background-color: var(--ui-c-fourthly);\n border: var(--ui-border-width) solid transparent;\n border-radius: var(--ui-border-radius);\n box-shadow: 0 0 var(--ui-button-shadow) 0 var(--ui-c-thirdly);\n color: var(--ui-c-default);\n font-weight: 400;\n text-decoration: none;\n cursor: pointer;\n }\n\n ._actions button:hover,\n ._actions a:hover {\n color: var(--ui-c-focus);\n }\n\n ._actions button:focus-visible,\n ._actions a:focus-visible {\n outline: var(--ui-border-width) solid var(--ui-c-focus);\n outline-offset: 2px;\n }\n\n /* ---- the document ---- */\n\n ._doc {\n line-height: 165%;\n }\n\n /* Headings are told apart by size and air, not by decoration. The library\n already sizes h1..h3 globally, so the document needs nothing beyond room\n around them — a reader carries a foreign text and must not push a house\n style onto it. */\n ._doc h1,\n ._doc h2 {\n /* In `em`, so the air scales with the heading rather than with the layout\n spacer — that one is 4rem and turned every heading into a clearing.\n More room above than below: a heading belongs to the text under it. */\n margin: 1.2em 0 0.4em;\n font-weight: normal;\n line-height: 140%;\n }\n\n ._doc ._lead > :first-child {\n margin-top: 0;\n }\n\n /* A step under every block that carries text, so a paragraph, a section body\n and a table never sit flush against whatever follows them. */\n ._doc div,\n ._doc p {\n padding-bottom: calc(var(--ui-spacer) * 0.25);\n }\n\n /* A table takes its step as margin: `table.ui` collapses its borders, and in\n that model the browser ignores padding on the table itself — the text\n after it sat flush against the last row. */\n ._doc table {\n margin-bottom: calc(var(--ui-spacer) * 0.5);\n }\n\n /* The fold keeps the browser's own marker. A section that folds has to look\n like it does, and the platform's triangle says so in the reader's own\n idiom — a house shape here would be the reader's design talking over the\n document's. */\n ._doc a {\n color: var(--ui-c-default);\n text-decoration: underline;\n text-decoration-color: var(--ui-c-secondary);\n }\n\n ._doc img {\n max-width: 100%;\n }\n\n /* A paragraph that holds nothing but an image — or an image that is a link —\n is a figure, and a figure stands centred. That is the one place the reader\n decides a position for the author: Markdown has no way to say it, and a\n picture flush left under a table reads as a mistake, not as a choice.\n Prose with an image inside keeps its flow; only the lone image moves. */\n ._doc p:has(> img:only-child),\n ._doc p:has(> a:only-child > img:only-child) {\n text-align: center;\n\n /* The Tailwind preflight makes every img a block, and a block ignores\n text-align; the figure is laid out as a block of its own width in the\n middle of the line, which is what \"centred\" means for either display. */\n img {\n display: inline-block;\n }\n }\n\n /* A token is one thing. Inline code names an identifier, a file, a flag —\n and an identifier cut at its hyphen (`change-` / `me`) is no longer the\n thing it names. So code in running text never wraps; the line around it\n does. A code BLOCK is not this: `pre` keeps its own breaks and scrolls. */\n ._doc :not(pre) > code {\n white-space: nowrap;\n }\n\n ._doc pre {\n padding: calc(var(--ui-spacer) * 0.5);\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n border-radius: var(--ui-border-radius);\n overflow-x: auto;\n }\n\n /* Tables carry `class=\"ui\"` from the renderer and take the library's own\n table design with it — see Styling / Tags. A second table style in this\n component is exactly the house design the document area must not bring. */\n ._doc table.ui {\n width: 100%;\n\n /* A cell reads from its first line. Browsers centre cells vertically, so a\n one-word key next to a three-line description floats mid-air and the\n eye has to find the row it belongs to; at the top, key and text start\n together. That is reading, not design — the look stays the library's. */\n th,\n td {\n vertical-align: top;\n }\n }\n\n ._doc blockquote {\n margin: 0 0 calc(var(--ui-spacer) * 0.5);\n padding-left: var(--ui-spacer);\n border-left: calc(var(--ui-border-width) * 2) solid var(--ui-c-secondary);\n }\n\n ._stand {\n margin-top: var(--ui-spacer);\n font-size: 0.85em;\n color: var(--ui-c-secondary);\n }\n\n /* ---- the side way ----\n A print of the PAGE, not a paper design: the chrome goes and the breaks\n are kept off headings, so a sheet coming out of a browser is readable.\n That is the whole of it. What a document looks like on paper as a\n designed thing is not this component's question, and nothing here knows\n of an answer to it. */\n @media print {\n ._bar ._actions,\n ._stand {\n display: none;\n }\n\n ._doc h1,\n ._doc h2,\n ._doc li,\n ._doc pre,\n ._doc blockquote {\n break-inside: avoid;\n }\n\n ._doc h1,\n ._doc h2,\n ._doc h3 {\n break-after: avoid;\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
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/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_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/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_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_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."]}),"\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)."]})]})]})]}),"\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\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_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"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");let UiLayoutSpinnerService=class UiLayoutSpinnerService{status=new BehaviorSubject.t({show:"none"});hideTimeout=null;startSpinner(){this.cancelPendingHide(),this.status.next({show:"showIn"})}messageSpinner(content){this.cancelPendingHide(),this.status.next({content,show:"error"})}successSpinner(){this.status.getValue().content||this.dismissSpinner()}dismissSpinner(){this.cancelPendingHide(),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)}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");status=(0,_effect_chunk2.vPA)({show:"none"});subscription=new Subscription.yU;ngOnInit(){this.subscription.add(this.spinnerService.getSpinner().subscribe(show=>this.status.set(show)))}ngOnDestroy(){this.subscription.unsubscribe()}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}]}]}};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 <div class="_loader" [class]="\'_-\' + type()" aria-hidden="true"></div>\n @if (type() === \'disco\') {\n <div class="_disco-blink" aria-hidden="true"></div>\n }\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],styles:[spinner_componentngResource_default()]})],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"]}},args:{debug:!0,close:!0,type:"ring"}},Spinner={args:{debug:!0,close:!0,type:"ring"},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"></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 },\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"></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/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 /* Loading indicator. The visual is selected via the `type` input, which\n adds one of the `_-ring` / `_-linear` / `_-disco` modifiers. */\n ._loader {\n position: absolute;\n }\n\n /* ring — a conic-gradient comet tail masked into an annulus (hollow\n centre) that rotates seamlessly. */\n ._loader._-ring {\n width: 26rem;\n height: 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% - 2rem),\n #000 calc(100% - 2rem)\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - 2rem),\n #000 calc(100% - 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: 26rem;\n height: 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: 26rem;\n height: 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% - 2.4rem),\n #000 calc(100% - 2.4rem)\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - 2.4rem),\n #000 calc(100% - 2.4rem)\n );\n animation:\n ring-spin 1s linear infinite,\n disco-hue 3s linear infinite;\n }\n\n /* disco centre sparkle — a big glowing dot blinking on/off in the hollow\n ring centre while cycling through party colours. */\n ._disco-blink {\n position: absolute;\n width: 5rem;\n height: 5rem;\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 ._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@media (prefers-reduced-motion: reduce) {\n ._spinner ._loader._-ring,\n ._spinner ._loader._-disco {\n animation-duration: 2s;\n }\n ._spinner ._loader._-linear::before {\n animation-duration: 2s;\n }\n ._spinner ._disco-blink {\n animation-duration: 2s, 6s;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
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/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"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");let UiLayoutSpinnerService=class UiLayoutSpinnerService{status=new BehaviorSubject.t({show:"none"});hideTimeout=null;startSpinner(){this.cancelPendingHide(),this.status.next({show:"showIn"})}messageSpinner(content){this.cancelPendingHide(),this.status.next({content,show:"error"})}successSpinner(){this.status.getValue().content||this.dismissSpinner()}dismissSpinner(){this.cancelPendingHide(),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)}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");status=(0,_effect_chunk2.vPA)({show:"none"});subscription=new Subscription.yU;ngOnInit(){this.subscription.add(this.spinnerService.getSpinner().subscribe(show=>this.status.set(show)))}ngOnDestroy(){this.subscription.unsubscribe()}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}]}]}};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 <div class="_loader" [class]="\'_-\' + type()" aria-hidden="true"></div>\n @if (type() === \'disco\') {\n <div class="_disco-blink" aria-hidden="true"></div>\n }\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],styles:[spinner_componentngResource_default()]})],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"]}},args:{debug:!0,close:!0,type:"ring"}},Spinner={args:{debug:!0,close:!0,type:"ring"},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"></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 },\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"></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/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 /* Loading indicator. The visual is selected via the `type` input, which\n adds one of the `_-ring` / `_-linear` / `_-disco` modifiers. */\n ._loader {\n position: absolute;\n }\n\n /* ring — a conic-gradient comet tail masked into an annulus (hollow\n centre) that rotates seamlessly. */\n ._loader._-ring {\n width: 26rem;\n height: 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% - 2rem),\n #000 calc(100% - 2rem)\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - 2rem),\n #000 calc(100% - 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: 26rem;\n height: 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: 26rem;\n height: 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% - 2.4rem),\n #000 calc(100% - 2.4rem)\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - 2.4rem),\n #000 calc(100% - 2.4rem)\n );\n animation:\n ring-spin 1s linear infinite,\n disco-hue 3s linear infinite;\n }\n\n /* disco centre sparkle — a big glowing dot blinking on/off in the hollow\n ring centre while cycling through party colours. */\n ._disco-blink {\n position: absolute;\n width: 5rem;\n height: 5rem;\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 ._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@media (prefers-reduced-motion: reduce) {\n ._spinner ._loader._-ring,\n ._spinner ._loader._-disco {\n animation-duration: 2s;\n }\n ._spinner ._loader._-linear::before {\n animation-duration: 2s;\n }\n ._spinner ._disco-blink {\n animation-duration: 2s, 6s;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[8792],{"./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$"(module,__unused_webpack_exports,__webpack_require__){var map={"./examples/image-grid-slider/docs.mdx":["./libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx",[2096,4255,4555,9045,7316,943]],"./examples/layout/docs.mdx":["./libs/ui/.storybook/demos/examples/layout/docs.mdx",[2096,4255,4425,4555,2249,1255,1481]],"./examples/table-edit-focus/docs.mdx":["./libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx",[2096,4255,6169,660,973,4555,7749,5493]],"./examples/transloco/docs.mdx":["./libs/ui/.storybook/demos/examples/transloco/docs.mdx",[2096,4255,4555,6768]],"./styling/colors/docs.mdx":["./libs/ui/.storybook/demos/styling/colors/docs.mdx",[2096,4255,1838]],"./styling/css-variables/docs.mdx":["./libs/ui/.storybook/demos/styling/css-variables/docs.mdx",[4255,7893]],"./styling/forms/docs.mdx":["./libs/ui/.storybook/demos/styling/forms/docs.mdx",[2096,4255,6169,4555,1516,3857]],"./styling/icons/docs.mdx":["./libs/ui/.storybook/demos/styling/icons/docs.mdx",[2096,4255,6169,1516,7653,8092]],"./styling/layers/docs.mdx":["./libs/ui/.storybook/demos/styling/layers/docs.mdx",[4255,7600]],"./styling/tags/docs.mdx":["./libs/ui/.storybook/demos/styling/tags/docs.mdx",[2096,4255,1927]],"./styling/ui-tags/docs.mdx":["./libs/ui/.storybook/demos/styling/ui-tags/docs.mdx",[2096,4255,3338]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackAsyncContext},"./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$"(module,__unused_webpack_exports,__webpack_require__){var map={"./examples/image-grid-slider/image-grid-slider.stories":["./libs/ui/.storybook/demos/examples/image-grid-slider/image-grid-slider.stories.ts",[2096,9045,7316,8938]],"./examples/image-grid-slider/image-grid-slider.stories.ts":["./libs/ui/.storybook/demos/examples/image-grid-slider/image-grid-slider.stories.ts",[2096,9045,7316,8938]],"./examples/layout/layout.stories":["./libs/ui/.storybook/demos/examples/layout/layout.stories.ts",[2096,4425,2249,1255,5684]],"./examples/layout/layout.stories.ts":["./libs/ui/.storybook/demos/examples/layout/layout.stories.ts",[2096,4425,2249,1255,5684]],"./examples/table-edit-focus/table-edit-focus.stories":["./libs/ui/.storybook/demos/examples/table-edit-focus/table-edit-focus.stories.ts",[2096,6169,660,973,7749,9836]],"./examples/table-edit-focus/table-edit-focus.stories.ts":["./libs/ui/.storybook/demos/examples/table-edit-focus/table-edit-focus.stories.ts",[2096,6169,660,973,7749,9836]],"./examples/transloco/transloco.component.stories":["./libs/ui/.storybook/demos/examples/transloco/transloco.component.stories.ts",[2096,9044]],"./examples/transloco/transloco.component.stories.ts":["./libs/ui/.storybook/demos/examples/transloco/transloco.component.stories.ts",[2096,9044]],"./styling/colors/colors.component.stories":["./libs/ui/.storybook/demos/styling/colors/colors.component.stories.ts",[2096,5995]],"./styling/colors/colors.component.stories.ts":["./libs/ui/.storybook/demos/styling/colors/colors.component.stories.ts",[2096,5995]],"./styling/forms/forms.component.stories":["./libs/ui/.storybook/demos/styling/forms/forms.component.stories.ts",[2096,6169,1516,1977]],"./styling/forms/forms.component.stories.ts":["./libs/ui/.storybook/demos/styling/forms/forms.component.stories.ts",[2096,6169,1516,1977]],"./styling/icons/icons.component.stories":["./libs/ui/.storybook/demos/styling/icons/icons.component.stories.ts",[2096,6169,1516,7653]],"./styling/icons/icons.component.stories.ts":["./libs/ui/.storybook/demos/styling/icons/icons.component.stories.ts",[2096,6169,1516,7653]],"./styling/tags/tags.component.stories":["./libs/ui/.storybook/demos/styling/tags/tags.component.stories.ts",[2096,1165]],"./styling/tags/tags.component.stories.ts":["./libs/ui/.storybook/demos/styling/tags/tags.component.stories.ts",[2096,1165]],"./styling/ui-tags/ui-tags.component.stories":["./libs/ui/.storybook/demos/styling/ui-tags/ui-tags.component.stories.ts",[2096,5233]],"./styling/ui-tags/ui-tags.component.stories.ts":["./libs/ui/.storybook/demos/styling/ui-tags/ui-tags.component.stories.ts",[2096,5233]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$",module.exports=webpackAsyncContext},"./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$"(module,__unused_webpack_exports,__webpack_require__){var map={"./_external/mwork-banner/docs.mdx":["./libs/ui/src/lib/_external/mwork-banner/docs.mdx",[4255,2228,6501]],"./_external/mwork-basic-interpreter/docs.mdx":["./libs/ui/src/lib/_external/mwork-basic-interpreter/docs.mdx",[4255,2228,3752]],"./_external/mwork-music-player/docs.mdx":["./libs/ui/src/lib/_external/mwork-music-player/docs.mdx",[4255,2228,3260]],"./atoms/_electrons/form-error-message/docs.mdx":["./libs/ui/src/lib/atoms/_electrons/form-error-message/docs.mdx",[2096,4255,2074]],"./atoms/background/docs.mdx":["./libs/ui/src/lib/atoms/background/docs.mdx",[2096,4255,4555,2006]],"./atoms/barcode/docs.mdx":["./libs/ui/src/lib/atoms/barcode/docs.mdx",[4255,4555,9918]],"./atoms/buzzer/docs.mdx":["./libs/ui/src/lib/atoms/buzzer/docs.mdx",[2096,4255,4555,4320]],"./atoms/card/docs.mdx":["./libs/ui/src/lib/atoms/card/docs.mdx",[2096,4255,6169,4555,8852]],"./atoms/chart/docs.mdx":["./libs/ui/src/lib/atoms/chart/docs.mdx",[2096,4255,4555,6978]],"./atoms/clock/docs.mdx":["./libs/ui/src/lib/atoms/clock/docs.mdx",[4255,4555,5084]],"./atoms/copy-value/docs.mdx":["./libs/ui/src/lib/atoms/copy-value/docs.mdx",[4255,4555,3007]],"./atoms/image-grid/docs.mdx":["./libs/ui/src/lib/atoms/image-grid/docs.mdx",[2096,4255,6169,4555,9045,8039,3146]],"./atoms/image-slider/docs.mdx":["./libs/ui/src/lib/atoms/image-slider/docs.mdx",[2096,4255,4555,9045,7316,7947]],"./atoms/lang-selector/docs.mdx":["./libs/ui/src/lib/atoms/lang-selector/docs.mdx",[2096,4255,4555,2960]],"./atoms/mosaic/docs.mdx":["./libs/ui/src/lib/atoms/mosaic/docs.mdx",[2096,4255,4555,2831,1954]],"./atoms/placeholder/docs.mdx":["./libs/ui/src/lib/atoms/placeholder/docs.mdx",[4255,4555,6203]],"./atoms/qr-code/docs.mdx":["./libs/ui/src/lib/atoms/qr-code/docs.mdx",[4255,4555,2193]],"./atoms/rating/docs.mdx":["./libs/ui/src/lib/atoms/rating/docs.mdx",[4255,4555,7819]],"./atoms/reader-doc/docs.mdx":["./libs/ui/src/lib/atoms/reader-doc/docs.mdx",[4255,1183,4555,3999,3550]],"./atoms/text-animate/docs.mdx":["./libs/ui/src/lib/atoms/text-animate/docs.mdx",[2096,4255,6169,4555,4067]],"./atoms/thumb/docs.mdx":["./libs/ui/src/lib/atoms/thumb/docs.mdx",[2096,4255,4425,4555,5370]],"./atoms/timer/docs.mdx":["./libs/ui/src/lib/atoms/timer/docs.mdx",[4255,4555,4447]],"./atoms/typewriter/docs.mdx":["./libs/ui/src/lib/atoms/typewriter/docs.mdx",[4255,4555,4806]],"./cdk/components/drag-and-drop-splitter/docs.mdx":["./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/docs.mdx",[2096,4255,660,2844,4555,1327]],"./cdk/components/table/docs.mdx":["./libs/ui/src/lib/cdk/components/table/docs.mdx",[2096,4255,6169,660,2844,973,4555,7749,6569]],"./examples/docs.mdx":["./libs/ui/src/lib/examples/docs.mdx",[4255,4555,813,1296]],"./forms/autocomplete/docs.mdx":["./libs/ui/src/lib/forms/autocomplete/docs.mdx",[2096,4255,6169,4555,7837]],"./forms/autofocus/docs.mdx":["./libs/ui/src/lib/forms/autofocus/docs.mdx",[2096,4255,6169,1516,166]],"./forms/checkbox/docs.mdx":["./libs/ui/src/lib/forms/checkbox/docs.mdx",[2096,4255,6169,4555,8108]],"./forms/input/docs.mdx":["./libs/ui/src/lib/forms/input/docs.mdx",[2096,4255,6169,4555,1516,4939]],"./forms/slider/docs.mdx":["./libs/ui/src/lib/forms/slider/docs.mdx",[2096,4255,6169,4555,6202,6252]],"./forms/switch/docs.mdx":["./libs/ui/src/lib/forms/switch/docs.mdx",[2096,4255,6169,4555,977]],"./forms/validators/docs.mdx":["./libs/ui/src/lib/forms/validators/docs.mdx",[2096,4255,6169,1516,7586]],"./home/guide.mdx":["./libs/ui/src/lib/home/guide.mdx",[4255,4555,3767]],"./home/overview.mdx":["./libs/ui/src/lib/home/overview.mdx",[4255,128]],"./home/tips.mdx":["./libs/ui/src/lib/home/tips.mdx",[4255,3143]],"./home/usage.mdx":["./libs/ui/src/lib/home/usage.mdx",[4255,3842]],"./layout/main/docs.mdx":["./libs/ui/src/lib/layout/main/docs.mdx",[2096,4255,4555,2249,3837]],"./layout/media-screen/docs.mdx":["./libs/ui/src/lib/layout/media-screen/docs.mdx",[4255,4555,3151]],"./layout/nav/docs.mdx":["./libs/ui/src/lib/layout/nav/docs.mdx",[2096,4255,4425,4555,1255,9653]],"./layout/overlay/docs.mdx":["./libs/ui/src/lib/layout/overlay/docs.mdx",[2096,4255,6169,4555,813,6659,2168]],"./layout/overlay/header/docs.mdx":["./libs/ui/src/lib/layout/overlay/header/docs.mdx",[4255,4555,813,9042]],"./layout/spinner/docs.mdx":["./libs/ui/src/lib/layout/spinner/docs.mdx",[2096,4255,6169,4555,365]],"./layout/splitter/docs.mdx":["./libs/ui/src/lib/layout/splitter/docs.mdx",[2096,4255,6169,4555,2249,6331,947]],"./layout/tabs/docs.mdx":["./libs/ui/src/lib/layout/tabs/docs.mdx",[2096,4255,6169,4555,6892]],"./layout/top-scroll-bottom/docs.mdx":["./libs/ui/src/lib/layout/top-scroll-bottom/docs.mdx",[2096,4255,4555,2249,3073]],"./molecules/image-editor/docs.mdx":["./libs/ui/src/lib/molecules/image-editor/docs.mdx",[2096,4255,6169,4555,813,6202,8180,3190]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackAsyncContext},"./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$"(module,__unused_webpack_exports,__webpack_require__){var map={"./_external/mwork-banner/mwork-banner.stories":["./libs/ui/src/lib/_external/mwork-banner/mwork-banner.stories.ts",[2228,7867]],"./_external/mwork-banner/mwork-banner.stories.ts":["./libs/ui/src/lib/_external/mwork-banner/mwork-banner.stories.ts",[2228,7867]],"./_external/mwork-basic-interpreter/mwork-basic-interpreter.stories":["./libs/ui/src/lib/_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts",[2228,2379]],"./_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts":["./libs/ui/src/lib/_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts",[2228,2379]],"./_external/mwork-music-player/mwork-music-player.stories":["./libs/ui/src/lib/_external/mwork-music-player/mwork-music-player.stories.ts",[2228,1365]],"./_external/mwork-music-player/mwork-music-player.stories.ts":["./libs/ui/src/lib/_external/mwork-music-player/mwork-music-player.stories.ts",[2228,1365]],"./atoms/_electrons/form-error-message/form-error-message.component.stories":["./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.stories.ts",[2096,1322]],"./atoms/_electrons/form-error-message/form-error-message.component.stories.ts":["./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.stories.ts",[2096,1322]],"./atoms/background/background.component.stories":["./libs/ui/src/lib/atoms/background/background.component.stories.ts",[2096,4855]],"./atoms/background/background.component.stories.ts":["./libs/ui/src/lib/atoms/background/background.component.stories.ts",[2096,4855]],"./atoms/barcode/barcode.component.stories":["./libs/ui/src/lib/atoms/barcode/barcode.component.stories.ts",[9217]],"./atoms/barcode/barcode.component.stories.ts":["./libs/ui/src/lib/atoms/barcode/barcode.component.stories.ts",[9217]],"./atoms/buzzer/buzzer.component.stories":["./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts",[2096,7419]],"./atoms/buzzer/buzzer.component.stories.ts":["./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts",[2096,7419]],"./atoms/card/card.component.stories":["./libs/ui/src/lib/atoms/card/card.component.stories.ts",[2096,6169,4947]],"./atoms/card/card.component.stories.ts":["./libs/ui/src/lib/atoms/card/card.component.stories.ts",[2096,6169,4947]],"./atoms/chart/chart.component.stories":["./libs/ui/src/lib/atoms/chart/chart.component.stories.ts",[2096,2425]],"./atoms/chart/chart.component.stories.ts":["./libs/ui/src/lib/atoms/chart/chart.component.stories.ts",[2096,2425]],"./atoms/clock/clock.component.stories":["./libs/ui/src/lib/atoms/clock/clock.component.stories.ts",[1809]],"./atoms/clock/clock.component.stories.ts":["./libs/ui/src/lib/atoms/clock/clock.component.stories.ts",[1809]],"./atoms/copy-value/copy-value.component.stories":["./libs/ui/src/lib/atoms/copy-value/copy-value.component.stories.ts",[3853]],"./atoms/copy-value/copy-value.component.stories.ts":["./libs/ui/src/lib/atoms/copy-value/copy-value.component.stories.ts",[3853]],"./atoms/image-grid/image-grid.component.stories":["./libs/ui/src/lib/atoms/image-grid/image-grid.component.stories.ts",[2096,6169,9045,8039]],"./atoms/image-grid/image-grid.component.stories.ts":["./libs/ui/src/lib/atoms/image-grid/image-grid.component.stories.ts",[2096,6169,9045,8039]],"./atoms/image-slider/image-slider.component.stories":["./libs/ui/src/lib/atoms/image-slider/image-slider.component.stories.ts",[2096,9045,7316,1461]],"./atoms/image-slider/image-slider.component.stories.ts":["./libs/ui/src/lib/atoms/image-slider/image-slider.component.stories.ts",[2096,9045,7316,1461]],"./atoms/lang-selector/lang-selector.component.stories":["./libs/ui/src/lib/atoms/lang-selector/lang-selector.component.stories.ts",[2096,3277]],"./atoms/lang-selector/lang-selector.component.stories.ts":["./libs/ui/src/lib/atoms/lang-selector/lang-selector.component.stories.ts",[2096,3277]],"./atoms/mosaic/mosaic.component.stories":["./libs/ui/src/lib/atoms/mosaic/mosaic.component.stories.ts",[2096,2831]],"./atoms/mosaic/mosaic.component.stories.ts":["./libs/ui/src/lib/atoms/mosaic/mosaic.component.stories.ts",[2096,2831]],"./atoms/placeholder/placeholder.component.stories":["./libs/ui/src/lib/atoms/placeholder/placeholder.component.stories.ts",[3045]],"./atoms/placeholder/placeholder.component.stories.ts":["./libs/ui/src/lib/atoms/placeholder/placeholder.component.stories.ts",[3045]],"./atoms/qr-code/qr-code.component.stories":["./libs/ui/src/lib/atoms/qr-code/qr-code.component.stories.ts",[4365]],"./atoms/qr-code/qr-code.component.stories.ts":["./libs/ui/src/lib/atoms/qr-code/qr-code.component.stories.ts",[4365]],"./atoms/rating/rating.component.stories":["./libs/ui/src/lib/atoms/rating/rating.component.stories.ts",[3685]],"./atoms/rating/rating.component.stories.ts":["./libs/ui/src/lib/atoms/rating/rating.component.stories.ts",[3685]],"./atoms/reader-doc/reader-doc.component.stories":["./libs/ui/src/lib/atoms/reader-doc/reader-doc.component.stories.ts",[1183,3999]],"./atoms/reader-doc/reader-doc.component.stories.ts":["./libs/ui/src/lib/atoms/reader-doc/reader-doc.component.stories.ts",[1183,3999]],"./atoms/text-animate/text-animate.component.stories":["./libs/ui/src/lib/atoms/text-animate/text-animate.component.stories.ts",[2096,6169,7877]],"./atoms/text-animate/text-animate.component.stories.ts":["./libs/ui/src/lib/atoms/text-animate/text-animate.component.stories.ts",[2096,6169,7877]],"./atoms/thumb/thumb.component.stories":["./libs/ui/src/lib/atoms/thumb/thumb.component.stories.ts",[2096,4425,3925]],"./atoms/thumb/thumb.component.stories.ts":["./libs/ui/src/lib/atoms/thumb/thumb.component.stories.ts",[2096,4425,3925]],"./atoms/timer/timer.component.stories":["./libs/ui/src/lib/atoms/timer/timer.component.stories.ts",[6189]],"./atoms/timer/timer.component.stories.ts":["./libs/ui/src/lib/atoms/timer/timer.component.stories.ts",[6189]],"./atoms/typewriter/typewriter.component.stories":["./libs/ui/src/lib/atoms/typewriter/typewriter.component.stories.ts",[4713]],"./atoms/typewriter/typewriter.component.stories.ts":["./libs/ui/src/lib/atoms/typewriter/typewriter.component.stories.ts",[4713]],"./cdk/components/drag-and-drop-splitter/splitter.component.stories":["./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.stories.ts",[2096,660,2844,4271]],"./cdk/components/drag-and-drop-splitter/splitter.component.stories.ts":["./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.stories.ts",[2096,660,2844,4271]],"./cdk/components/table/table.component.stories":["./libs/ui/src/lib/cdk/components/table/table.component.stories.ts",[2096,6169,660,2844,973,7749,6212]],"./cdk/components/table/table.component.stories.ts":["./libs/ui/src/lib/cdk/components/table/table.component.stories.ts",[2096,6169,660,2844,973,7749,6212]],"./examples/burger-menu.stories":["./libs/ui/src/lib/examples/burger-menu.stories.ts",[813,9652]],"./examples/burger-menu.stories.ts":["./libs/ui/src/lib/examples/burger-menu.stories.ts",[813,9652]],"./forms/autocomplete/autocomplete.component.stories":["./libs/ui/src/lib/forms/autocomplete/autocomplete.component.stories.ts",[2096,6169,1860]],"./forms/autocomplete/autocomplete.component.stories.ts":["./libs/ui/src/lib/forms/autocomplete/autocomplete.component.stories.ts",[2096,6169,1860]],"./forms/autofocus/autofocus.stories":["./libs/ui/src/lib/forms/autofocus/autofocus.stories.ts",[2096,6169,1516,9236]],"./forms/autofocus/autofocus.stories.ts":["./libs/ui/src/lib/forms/autofocus/autofocus.stories.ts",[2096,6169,1516,9236]],"./forms/checkbox/checkbox.component.stories":["./libs/ui/src/lib/forms/checkbox/checkbox.component.stories.ts",[2096,6169,3678]],"./forms/checkbox/checkbox.component.stories.ts":["./libs/ui/src/lib/forms/checkbox/checkbox.component.stories.ts",[2096,6169,3678]],"./forms/input/input.component.stories":["./libs/ui/src/lib/forms/input/input.component.stories.ts",[2096,6169,1516,1686]],"./forms/input/input.component.stories.ts":["./libs/ui/src/lib/forms/input/input.component.stories.ts",[2096,6169,1516,1686]],"./forms/slider/slider.component.stories":["./libs/ui/src/lib/forms/slider/slider.component.stories.ts",[2096,6169,6202,6922]],"./forms/slider/slider.component.stories.ts":["./libs/ui/src/lib/forms/slider/slider.component.stories.ts",[2096,6169,6202,6922]],"./forms/switch/switch.component.stories":["./libs/ui/src/lib/forms/switch/switch.component.stories.ts",[2096,6169,3048]],"./forms/switch/switch.component.stories.ts":["./libs/ui/src/lib/forms/switch/switch.component.stories.ts",[2096,6169,3048]],"./forms/validators/validators.component.stories":["./libs/ui/src/lib/forms/validators/validators.component.stories.ts",[2096,6169,1516,6354]],"./forms/validators/validators.component.stories.ts":["./libs/ui/src/lib/forms/validators/validators.component.stories.ts",[2096,6169,1516,6354]],"./layout/main/main.component.stories":["./libs/ui/src/lib/layout/main/main.component.stories.ts",[2096,2249,7683]],"./layout/main/main.component.stories.ts":["./libs/ui/src/lib/layout/main/main.component.stories.ts",[2096,2249,7683]],"./layout/media-screen/media-screen.component.stories":["./libs/ui/src/lib/layout/media-screen/media-screen.component.stories.ts",[3651]],"./layout/media-screen/media-screen.component.stories.ts":["./libs/ui/src/lib/layout/media-screen/media-screen.component.stories.ts",[3651]],"./layout/nav/nav.component.stories":["./libs/ui/src/lib/layout/nav/nav.component.stories.ts",[2096,4425,1255,9475]],"./layout/nav/nav.component.stories.ts":["./libs/ui/src/lib/layout/nav/nav.component.stories.ts",[2096,4425,1255,9475]],"./layout/overlay/header/header.component.stories":["./libs/ui/src/lib/layout/overlay/header/header.component.stories.ts",[813,9240]],"./layout/overlay/header/header.component.stories.ts":["./libs/ui/src/lib/layout/overlay/header/header.component.stories.ts",[813,9240]],"./layout/overlay/overlay.component.stories":["./libs/ui/src/lib/layout/overlay/overlay.component.stories.ts",[2096,6169,813,6659]],"./layout/overlay/overlay.component.stories.ts":["./libs/ui/src/lib/layout/overlay/overlay.component.stories.ts",[2096,6169,813,6659]],"./layout/spinner/spinner.component.stories":["./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts",[2096,6169,1043]],"./layout/spinner/spinner.component.stories.ts":["./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts",[2096,6169,1043]],"./layout/splitter/splitter.component.stories":["./libs/ui/src/lib/layout/splitter/splitter.component.stories.ts",[2096,6169,2249,6331]],"./layout/splitter/splitter.component.stories.ts":["./libs/ui/src/lib/layout/splitter/splitter.component.stories.ts",[2096,6169,2249,6331]],"./layout/tabs/tabs.component.stories":["./libs/ui/src/lib/layout/tabs/tabs.component.stories.ts",[2096,6169,8753]],"./layout/tabs/tabs.component.stories.ts":["./libs/ui/src/lib/layout/tabs/tabs.component.stories.ts",[2096,6169,8753]],"./layout/top-scroll-bottom/top-scroll-bottom.component.stories":["./libs/ui/src/lib/layout/top-scroll-bottom/top-scroll-bottom.component.stories.ts",[2096,2249,9779]],"./layout/top-scroll-bottom/top-scroll-bottom.component.stories.ts":["./libs/ui/src/lib/layout/top-scroll-bottom/top-scroll-bottom.component.stories.ts",[2096,2249,9779]],"./molecules/image-editor/image-editor.component.stories":["./libs/ui/src/lib/molecules/image-editor/image-editor.component.stories.ts",[2096,6169,813,6202,8180]],"./molecules/image-editor/image-editor.component.stories.ts":["./libs/ui/src/lib/molecules/image-editor/image-editor.component.stories.ts",[2096,6169,813,6202,8180]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$",module.exports=webpackAsyncContext},"./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:()=>TranslocoStorybookModule});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_common_http__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/common/fesm2022/_module-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ngneat/transloco-locale/fesm2022/ngneat-transloco-locale.mjs"),_ngneat_transloco_messageformat__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ngneat/transloco-messageformat/fesm2022/ngneat-transloco-messageformat.mjs");let TranslocoHttpLoader=class TranslocoHttpLoader{http=(0,_angular_core__WEBPACK_IMPORTED_MODULE_4__.WQX)(_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.Qq);getTranslation(lang){return this.http.get(`assets/ui/i18n/ui/${lang}.json`)}};TranslocoHttpLoader=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__._qm)({providedIn:"root"})],TranslocoHttpLoader);let TranslocoStorybookModule=class TranslocoStorybookModule{};TranslocoStorybookModule=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.UQu)({exports:[_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__.Q8,_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__.C],imports:[_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__.Q8,_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__.C],providers:[(0,_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__.$o)({config:{availableLangs:[{id:"en-EN",label:"EN"},{id:"de-DE",label:"DE"}],defaultLang:"de-DE",reRenderOnLangChange:!0,prodMode:!(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.isDevMode)(),missingHandler:{logMissingKey:!0}},loader:TranslocoHttpLoader}),(0,_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__.Ne)({localeConfig:{global:{date:{dateStyle:"medium",timeStyle:"medium"}}}}),(0,_ngneat_transloco_messageformat__WEBPACK_IMPORTED_MODULE_7__.vj)()]})],TranslocoStorybookModule)},"./libs/ui/.storybook/preview.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__,preview:()=>preview});var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/common/fesm2022/_module-chunk.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"),_ngneat_transloco__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/firstValueFrom.js"),storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("storybook/internal/core-events"),storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("storybook/preview-api"),_src_lib_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts");const channel=storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_7__.addons.getChannel(),cleanupHandler=()=>{["#uiNavMain","#uiNavHome"].forEach(id=>{const el=document.querySelector(id);el&&el.remove()})};channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_6__.STORY_CHANGED,cleanupHandler),channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_6__.DOCS_RENDERED,cleanupHandler);const preview={parameters:{actions:{disable:!0},interactions:{disable:!0},options:{storySort:{order:["Home",["Introduction","Usage","Guide","Tips & Tricks"],"Layout","Molecules","CDK","Forms",["Input","*","Electrons"],"Atoms","Styling",["CSS Variables","Colors","*"],"Examples","External"]}}},decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_4__.L4)({providers:[(0,_angular_common_http__WEBPACK_IMPORTED_MODULE_0__.$R)(),(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.oKB)(_src_lib_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_8__.o),(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.phd)(()=>{const transloco=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngneat_transloco__WEBPACK_IMPORTED_MODULE_3__.JO);return transloco.setActiveLang("en-EN"),(0,rxjs__WEBPACK_IMPORTED_MODULE_5__._)(transloco.load("en-EN"))})]})]},__WEBPACK_DEFAULT_EXPORT__=preview},"./storybook-config-entry.js"(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("storybook/internal/channels"),csf=(__webpack_require__("storybook/internal/core-events"),__webpack_require__("./node_modules/storybook/dist/csf/index.js")),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/preview-api"),asyncToGenerator=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");const pipeline=x=>x(),importers=[function(){var _ref=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/src\/lib(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(18);return __webpack_require__("./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)});return function(_x){return _ref.apply(this,arguments)}}(),function(){var _ref2=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/src\/lib(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|ts|tsx))$/.exec(path))return;const pathRemainder=path.substring(18);return __webpack_require__("./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$")("./"+pathRemainder)});return function(_x2){return _ref2.apply(this,arguments)}}(),function(){var _ref3=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/\.storybook\/demos(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(27);return __webpack_require__("./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)});return function(_x3){return _ref3.apply(this,arguments)}}(),function(){var _ref4=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/\.storybook\/demos(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|ts|tsx))$/.exec(path))return;const pathRemainder=path.substring(27);return __webpack_require__("./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$")("./"+pathRemainder)});return function(_x4){return _ref4.apply(this,arguments)}}()];function _importFn(){return(_importFn=(0,asyncToGenerator.A)(function*(path){for(let i=0;i<importers.length;i++){const moduleExports=yield pipeline(()=>importers[i](path));if(moduleExports)return moduleExports}})).apply(this,arguments)}const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb(function importFn(_x5){return _importFn.apply(this,arguments)},()=>{const previewAnnotations=[__webpack_require__("./node_modules/@storybook/angular/dist/client/preview-prod.js"),__webpack_require__("./node_modules/@storybook/angular/dist/client/config.js"),__webpack_require__("./node_modules/@storybook/angular/dist/client/docs/config.js"),__webpack_require__("./node_modules/@storybook/addon-docs/preview.js"),__webpack_require__("./libs/ui/.storybook/preview.ts")],userPreview=previewAnnotations[previewAnnotations.length-1]?.default;return(0,csf.bU)(userPreview)?userPreview.composed:(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)(previewAnnotations)});window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./libs/ui/src/styles/storybook.css?ngGlobalStyle"(){},"./libs/ui/src/styles/tailwind.css?ngGlobalStyle"(){},"./node_modules/storybook/dist/_browser-chunks sync recursive"(module){function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/storybook/dist/_browser-chunks sync recursive",module.exports=webpackEmptyContext},"storybook/actions"(module){"use strict";module.exports=__STORYBOOK_MODULE_ACTIONS__},"storybook/internal/channels"(module){"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"storybook/internal/client-logger"(module){"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"storybook/internal/preview-errors"(module){"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"storybook/internal/core-events"(module){"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global"(module){"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"storybook/preview-api"(module){"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__},"storybook/test"(module){"use strict";module.exports=__STORYBOOK_MODULE_TEST__},"storybook/internal/types"(module){"use strict";module.exports=__STORYBOOK_MODULE_TYPES__}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[4755],()=>(__webpack_exec__("./node_modules/@angular/compiler/fesm2022/compiler.mjs"),__webpack_exec__("./storybook-config-entry.js"),__webpack_exec__("./libs/ui/src/styles/tailwind.css?ngGlobalStyle"),__webpack_exec__("./libs/ui/src/styles/storybook.css?ngGlobalStyle")));__webpack_require__.O()}]);
|