@mojawork/ui-docs 2.8.2 → 2.8.3
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/guide.json +5 -5
- package/catalog/layout/spinner.md +11 -2
- package/catalog/manifest.json +4 -4
- package/catalog/version.json +2 -2
- package/package.json +1 -1
- package/storybook/{4555.c83b35c3.iframe.bundle.js → 4555.574c843f.iframe.bundle.js} +1 -1
- package/storybook/{home-overview-mdx.00ee5070.iframe.bundle.js → home-overview-mdx.9b160561.iframe.bundle.js} +1 -1
- package/storybook/iframe.html +1 -1
- package/storybook/layout-spinner-docs-mdx.d4e5afec.iframe.bundle.js +1 -0
- package/storybook/layout-spinner-spinner-component-stories.6b27a0bf.iframe.bundle.js +1 -0
- package/storybook/project.json +1 -1
- package/storybook/{runtime~main.ec39977b.iframe.bundle.js → runtime~main.805054f3.iframe.bundle.js} +1 -1
- package/storybook/version.json +2 -2
- package/version.json +2 -2
- package/storybook/layout-spinner-docs-mdx.a792dea6.iframe.bundle.js +0 -1
- package/storybook/layout-spinner-spinner-component-stories.69ae1389.iframe.bundle.js +0 -1
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @mojawork/ui-docs
|
|
2
2
|
|
|
3
|
-
The documentation of `@mojawork/ui` 2.8.
|
|
3
|
+
The documentation of `@mojawork/ui` 2.8.3, version-true and offline:
|
|
4
4
|
the built Storybook plus the cooked catalog. Install nothing — start it:
|
|
5
5
|
|
|
6
6
|
```bash
|
|
7
|
-
npx @mojawork/ui-docs@2.8.
|
|
7
|
+
npx @mojawork/ui-docs@2.8.3
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
and open the printed URL. The Storybook you see is exactly the one this
|
package/catalog/guide.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "an agent — the Claude Code session of the library workspace, writing from the sources each entry names; not a person",
|
|
3
3
|
"disclaimer": "Recommendations, not truth. Every entry was written by an agent from the sources it names, and only for what demonstrably runs somewhere in the house (shownIn). The component page — get_component_doc — is the truth; where the two disagree, the page wins. The house rules are read verbatim from the usage contract of the library (usage.md).",
|
|
4
|
-
"uiVersion": "2.8.
|
|
5
|
-
"commit": "
|
|
4
|
+
"uiVersion": "2.8.3",
|
|
5
|
+
"commit": "d0bbe892",
|
|
6
6
|
"entries": [
|
|
7
7
|
{
|
|
8
8
|
"kind": "situation",
|
|
@@ -865,10 +865,10 @@
|
|
|
865
865
|
"kind": "component",
|
|
866
866
|
"component": "ui-layout-spinner",
|
|
867
867
|
"useFor": [
|
|
868
|
-
"The one global loading indicator at the app root, driven by UiLayoutSpinnerService from an HTTP interceptor."
|
|
868
|
+
"The one global loading indicator at the app root, driven by UiLayoutSpinnerService from an HTTP interceptor or a page's resource — with a delay where a fast answer must not flash it."
|
|
869
869
|
],
|
|
870
870
|
"notFor": [
|
|
871
|
-
"A component's own loading state — that is ui-inline-spinner, which sits in the flow and blocks nothing; the table wrapper brings its own skeleton."
|
|
871
|
+
"A component's own loading state — that is ui-inline-spinner, which sits in the flow and blocks nothing; the table wrapper brings its own skeleton. Counting requests or timing out: it shows, waits its delay, animates out and hides, nothing more."
|
|
872
872
|
],
|
|
873
873
|
"shownIn": [
|
|
874
874
|
{
|
|
@@ -882,7 +882,7 @@
|
|
|
882
882
|
"sources": [
|
|
883
883
|
"libs/ui/src/lib/layout/spinner/docs.mdx"
|
|
884
884
|
],
|
|
885
|
-
"reviewed": "
|
|
885
|
+
"reviewed": "068433e9"
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
888
|
"kind": "component",
|
|
@@ -10,7 +10,10 @@ A global loading indicator, placed once at the application root and switched
|
|
|
10
10
|
through `UiLayoutSpinnerService` from anywhere — an HTTP interceptor, typically.
|
|
11
11
|
It shows, animates out and hides; it does not count requests, time out or block
|
|
12
12
|
input on its own, and it is not the spinner for one component's own loading
|
|
13
|
-
state.
|
|
13
|
+
state. What it can do is wait: with a `delay`, a start shows nothing until
|
|
14
|
+
that many milliseconds have passed, and an operation that ends inside them
|
|
15
|
+
never shows a spinner at all — not even the leave animation. That is the
|
|
16
|
+
answer to a fast answer flashing an overlay.
|
|
14
17
|
|
|
15
18
|
That last sentence now has an address: `ui-inline-spinner` is the one for a
|
|
16
19
|
single area. Both draw the same animation — it lives in an internal electron
|
|
@@ -67,6 +70,12 @@ The `UiLayoutSpinnerComponent` is a singleton component typically placed at the
|
|
|
67
70
|
<td><code>'ring'</code></td>
|
|
68
71
|
<td>Selects the loading animation: <code>ring</code> (rotating gradient ring), <code>linear</code> (indeterminate sliding bar), or <code>disco</code> (spinning rainbow ring with hue rotation and a blinking sparkle in the centre).</td>
|
|
69
72
|
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<td><code>delay</code></td>
|
|
75
|
+
<td><code>number</code></td>
|
|
76
|
+
<td><code>0</code></td>
|
|
77
|
+
<td>Milliseconds a start waits before the overlay appears. <code>0</code> shows it at once; an operation that ends inside the delay shows no spinner at all. In the story, set the slider and press Start, then Success before it fires.</td>
|
|
78
|
+
</tr>
|
|
70
79
|
</tbody>
|
|
71
80
|
</table>
|
|
72
81
|
|
|
@@ -77,7 +86,7 @@ The `UiLayoutSpinnerComponent` is a singleton component typically placed at the
|
|
|
77
86
|
Use this service to control the spinner's state:
|
|
78
87
|
|
|
79
88
|
```typescript
|
|
80
|
-
// Start the spinner
|
|
89
|
+
// Start the spinner — at once, or after the component's `delay`
|
|
81
90
|
spinnerService.startSpinner();
|
|
82
91
|
|
|
83
92
|
// Mark operation as successful (animates out and hides). A visible
|
package/catalog/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"uiVersion": "2.8.
|
|
3
|
-
"commit": "
|
|
4
|
-
"builtAt": "2026-09-
|
|
2
|
+
"uiVersion": "2.8.3",
|
|
3
|
+
"commit": "d0bbe892",
|
|
4
|
+
"builtAt": "2026-09-06T11:48:12.331Z",
|
|
5
5
|
"guide": "guide.json",
|
|
6
6
|
"usage": "usage.md",
|
|
7
7
|
"mcp": "mcp.json",
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
"file": "layout/spinner.md",
|
|
412
412
|
"description": "A global loading indicator that provides visual feedback during asynchronous operations.",
|
|
413
413
|
"brief": "A global loading indicator, placed once at the application root and switched through `UiLayoutSpinnerService` from anywhere — an HTTP interceptor, typically.",
|
|
414
|
-
"truth": "A global loading indicator, placed once at the application root and switched\nthrough `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\nThat last sentence now has an address: `ui-inline-spinner` is the one for a\nsingle area. Both draw the same animation — it lives in an internal electron\nthat each of them builds in, so the library holds one set of keyframes rather\nthan two that drift. What stays here is what makes this one global: the\nbackdrop, the message box with its OK button, and the state coming from the\nservice.\n\n---",
|
|
414
|
+
"truth": "A global loading indicator, placed once at the application root and switched\nthrough `UiLayoutSpinnerService` from anywhere — an HTTP interceptor, typically.\nIt shows, animates out and hides; it does not count requests, time out or block\ninput on its own, and it is not the spinner for one component's own loading\nstate. What it can do is wait: with a `delay`, a start shows nothing until\nthat many milliseconds have passed, and an operation that ends inside them\nnever shows a spinner at all — not even the leave animation. That is the\nanswer to a fast answer flashing an overlay.\n\nThat last sentence now has an address: `ui-inline-spinner` is the one for a\nsingle area. Both draw the same animation — it lives in an internal electron\nthat each of them builds in, so the library holds one set of keyframes rather\nthan two that drift. What stays here is what makes this one global: the\nbackdrop, the message box with its OK button, and the state coming from the\nservice.\n\n---",
|
|
415
415
|
"api": "https://moja.work/compodoc/ui/components/UiLayoutSpinnerComponent.html"
|
|
416
416
|
},
|
|
417
417
|
{
|
package/catalog/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojawork/ui-docs",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.3",
|
|
4
4
|
"description": "The documentation of @mojawork/ui, version-true: the built Storybook plus the cooked catalog (truth pages, guide, usage contract, tool definitions). npx-startable.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -1 +1 @@
|
|
|
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-chip.json":"./libs/ui/guide/ui-chip.json","./ui-clock.json":"./libs/ui/guide/ui-clock.json","./ui-copy-value.json":"./libs/ui/guide/ui-copy-value.json","./ui-image-editor.json":"./libs/ui/guide/ui-image-editor.json","./ui-image-grid.json":"./libs/ui/guide/ui-image-grid.json","./ui-image-slider.json":"./libs/ui/guide/ui-image-slider.json","./ui-inline-spinner.json":"./libs/ui/guide/ui-inline-spinner.json","./ui-input.json":"./libs/ui/guide/ui-input.json","./ui-lang-selector.json":"./libs/ui/guide/ui-lang-selector.json","./ui-layout-main.json":"./libs/ui/guide/ui-layout-main.json","./ui-layout-media-screen.json":"./libs/ui/guide/ui-layout-media-screen.json","./ui-layout-nav.json":"./libs/ui/guide/ui-layout-nav.json","./ui-layout-overlay-header.json":"./libs/ui/guide/ui-layout-overlay-header.json","./ui-layout-overlay.json":"./libs/ui/guide/ui-layout-overlay.json","./ui-layout-spinner.json":"./libs/ui/guide/ui-layout-spinner.json","./ui-layout-splitter.json":"./libs/ui/guide/ui-layout-splitter.json","./ui-layout-tabs.json":"./libs/ui/guide/ui-layout-tabs.json","./ui-layout-top-scroll-bottom.json":"./libs/ui/guide/ui-layout-top-scroll-bottom.json","./ui-mosaic.json":"./libs/ui/guide/ui-mosaic.json","./ui-placeholder.json":"./libs/ui/guide/ui-placeholder.json","./ui-qr-code.json":"./libs/ui/guide/ui-qr-code.json","./ui-rating.json":"./libs/ui/guide/ui-rating.json","./ui-reader-doc.json":"./libs/ui/guide/ui-reader-doc.json","./ui-slider.json":"./libs/ui/guide/ui-slider.json","./ui-switch.json":"./libs/ui/guide/ui-switch.json","./ui-text-animate.json":"./libs/ui/guide/ui-text-animate.json","./ui-thumb.json":"./libs/ui/guide/ui-thumb.json","./ui-timer.json":"./libs/ui/guide/ui-timer.json","./ui-typewriter.json":"./libs/ui/guide/ui-typewriter.json","libs/ui/guide/app-shell.json":"./libs/ui/guide/app-shell.json","libs/ui/guide/burger-menu.json":"./libs/ui/guide/burger-menu.json","libs/ui/guide/form-basics.json":"./libs/ui/guide/form-basics.json","libs/ui/guide/image-gallery.json":"./libs/ui/guide/image-gallery.json","libs/ui/guide/table-edit-focus.json":"./libs/ui/guide/table-edit-focus.json","libs/ui/guide/translations.json":"./libs/ui/guide/translations.json","libs/ui/guide/ui-autocomplete.json":"./libs/ui/guide/ui-autocomplete.json","libs/ui/guide/ui-background.json":"./libs/ui/guide/ui-background.json","libs/ui/guide/ui-barcode.json":"./libs/ui/guide/ui-barcode.json","libs/ui/guide/ui-buzzer.json":"./libs/ui/guide/ui-buzzer.json","libs/ui/guide/ui-card.json":"./libs/ui/guide/ui-card.json","libs/ui/guide/ui-cdk-drag-drop-splitter.json":"./libs/ui/guide/ui-cdk-drag-drop-splitter.json","libs/ui/guide/ui-cdk-table-wrapper.json":"./libs/ui/guide/ui-cdk-table-wrapper.json","libs/ui/guide/ui-chart.json":"./libs/ui/guide/ui-chart.json","libs/ui/guide/ui-checkbox.json":"./libs/ui/guide/ui-checkbox.json","libs/ui/guide/ui-chip.json":"./libs/ui/guide/ui-chip.json","libs/ui/guide/ui-clock.json":"./libs/ui/guide/ui-clock.json","libs/ui/guide/ui-copy-value.json":"./libs/ui/guide/ui-copy-value.json","libs/ui/guide/ui-image-editor.json":"./libs/ui/guide/ui-image-editor.json","libs/ui/guide/ui-image-grid.json":"./libs/ui/guide/ui-image-grid.json","libs/ui/guide/ui-image-slider.json":"./libs/ui/guide/ui-image-slider.json","libs/ui/guide/ui-inline-spinner.json":"./libs/ui/guide/ui-inline-spinner.json","libs/ui/guide/ui-input.json":"./libs/ui/guide/ui-input.json","libs/ui/guide/ui-lang-selector.json":"./libs/ui/guide/ui-lang-selector.json","libs/ui/guide/ui-layout-main.json":"./libs/ui/guide/ui-layout-main.json","libs/ui/guide/ui-layout-media-screen.json":"./libs/ui/guide/ui-layout-media-screen.json","libs/ui/guide/ui-layout-nav.json":"./libs/ui/guide/ui-layout-nav.json","libs/ui/guide/ui-layout-overlay-header.json":"./libs/ui/guide/ui-layout-overlay-header.json","libs/ui/guide/ui-layout-overlay.json":"./libs/ui/guide/ui-layout-overlay.json","libs/ui/guide/ui-layout-spinner.json":"./libs/ui/guide/ui-layout-spinner.json","libs/ui/guide/ui-layout-splitter.json":"./libs/ui/guide/ui-layout-splitter.json","libs/ui/guide/ui-layout-tabs.json":"./libs/ui/guide/ui-layout-tabs.json","libs/ui/guide/ui-layout-top-scroll-bottom.json":"./libs/ui/guide/ui-layout-top-scroll-bottom.json","libs/ui/guide/ui-mosaic.json":"./libs/ui/guide/ui-mosaic.json","libs/ui/guide/ui-placeholder.json":"./libs/ui/guide/ui-placeholder.json","libs/ui/guide/ui-qr-code.json":"./libs/ui/guide/ui-qr-code.json","libs/ui/guide/ui-rating.json":"./libs/ui/guide/ui-rating.json","libs/ui/guide/ui-reader-doc.json":"./libs/ui/guide/ui-reader-doc.json","libs/ui/guide/ui-slider.json":"./libs/ui/guide/ui-slider.json","libs/ui/guide/ui-switch.json":"./libs/ui/guide/ui-switch.json","libs/ui/guide/ui-text-animate.json":"./libs/ui/guide/ui-text-animate.json","libs/ui/guide/ui-thumb.json":"./libs/ui/guide/ui-thumb.json","libs/ui/guide/ui-timer.json":"./libs/ui/guide/ui-timer.json","libs/ui/guide/ui-typewriter.json":"./libs/ui/guide/ui-typewriter.json"};function webpackContext(req){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(entry=>entry.component??entry.situation),twice=subjects.find((subject,index)=>subjects.indexOf(subject)!==index);if(twice)throw new Error(`guide: "${twice}" is listed twice — one entry per subject, or the overview lies about the count.`)},"./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-chip.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-chip","useFor":["A small label that reports presses — a set filter above a table, a genre on a record, a tag that can be thrown away.","Rows of them: the parent holds the list, the chip only says the cross was pressed."],"notFor":["Removing itself: chipRemove is a message, and the list belongs to whoever holds it.","A selection: it has no active state and no group — a set of chips behaving as one choice is a different component.","A form control: it takes no value, no ngModel and no validation."],"shownIn":[{"story":"Forms/Chip/ARow"},{"story":"Forms/Chip/Removable"}],"sources":["libs/ui/src/lib/forms/chip/docs.mdx"],"reviewed":"8e6e0c56"}')},"./libs/ui/guide/ui-clock.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-clock","useFor":["A decorative time display — the website\'s landscape overlay."],"notFor":["A countdown; anything that needs time zones or formats beyond 12/24 h."],"instead":["ui-timer"],"shownIn":[{"story":"Atoms/Clock/Default"},{"file":"apps/website/src/app/parts/landscape-overlay/landscape-overlay.component.html"}],"sources":["libs/ui/src/lib/atoms/clock/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-copy-value.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-copy-value","useFor":["Click-to-copy around anything that shows a value — a swatch, a barcode, a truncated label. What is shown and what is copied are two different things, and this carries the second."],"notFor":["Showing the value: it brings no appearance. Wrap the thing that does."],"note":"With an empty value it leaves the tab order and stops being a control, so it can stand around content unconditionally and be switched on by supplying a value.","shownIn":[{"story":"Atoms/Copy Value/Swatches"},{"story":"Atoms/Copy Value/OwnConfirmation"}],"sources":["libs/ui/src/lib/atoms/copy-value/docs.mdx","tickets#183"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-image-editor.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-editor","useFor":["Uploading and cropping one image to a ratio, result as a JPEG blob — a cover, an avatar. The media cover editor is the overlay variant; the embedded one sits in the flow."],"notFor":["Several images, drawing, filters.","Talking to a backend: it emits, the host uploads."],"shownIn":[{"story":"Molecules/Image Editor/WithImage"},{"story":"Molecules/Image Editor/Overlay"}],"sources":["libs/ui/src/lib/molecules/image-editor/docs.mdx"],"reviewed":"4cc1b639"}')},"./libs/ui/guide/ui-image-grid.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-grid","useFor":["The overview of a picture set, sharing one index with ui-image-slider. Always set cols; the default draws nothing.","A strip — one scrolling row of fixed-size tiles (singleRow with tileHeight and tileAspect): episode stills, a row of posters."],"notFor":["Showing one picture large — that is the slider\'s half."],"instead":["ui-image-slider"],"shownIn":[{"story":"Atoms/Image Grid/Strip"},{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"apps/website/src/app/content/image-grid/image-grid.component.html"}],"sources":["libs/ui/src/lib/atoms/image-grid/docs.mdx","libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"91c43f4c"}')},"./libs/ui/guide/ui-image-slider.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-slider","useFor":["One picture at a time with swipe, drag and zoom; as the zoom of a grid, created with @if only while open."],"notFor":["The overview of a set."],"instead":["ui-image-grid"],"shownIn":[{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/atoms/image-slider/docs.mdx","libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-inline-spinner.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-inline-spinner","useFor":["The loading state of ONE area — a panel waiting for its record, a tile waiting for a picture. It sits in the flow, blocks nothing and covers nothing."],"notFor":["The application\'s global wait: that is ui-layout-spinner, placed once at the root and switched through its service.","Holding the loading state: it shows while it is in the DOM, so an @if around the tag is the switch.","Progress: all three visuals are indeterminate, none of them can show how far along something is."],"shownIn":[{"story":"Atoms/Inline Spinner/Types"},{"story":"Atoms/Inline Spinner/InAPanel"}],"sources":["libs/ui/src/lib/atoms/inline-spinner/docs.mdx"],"reviewed":"8e6e0c56"}')},"./libs/ui/guide/ui-input.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-input","useFor":["Every text-based control in a form: wrap the native input, textarea or select, keep [(ngModel)] on the projected element, class=\\"ui\\" on it.","Inline editing in tables: the projected control takes class=\\"ui-flat\\" instead — invisible at rest, no layout jump. The proto keyboard table has sixteen of them."],"notFor":["Ranges, checkboxes, switches — they have wrappers of their own.","Suggestions while typing."],"instead":["ui-slider","ui-checkbox","ui-switch","ui-autocomplete"],"shownIn":[{"story":"Forms/Input/Input"},{"story":"Forms/Input/InputClearable"},{"file":"apps/change-me/src/app/slider/slider.component.html"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"}],"sources":["libs/ui/src/lib/forms/input/docs.mdx","usage.md (Forms)"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-lang-selector.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-lang-selector","useFor":["The one language switch of an app: one tag brings the service call, the storage and the restore on reload."],"notFor":["More than the two languages it knows; a switch that must not persist."],"shownIn":[{"story":"Examples/Transloco/LangSelector"},{"story":"Atoms/Lang Selector/OwnContent"},{"file":"apps/website/src/app/components/lang-selector/lang-selector.component.html"}],"sources":["libs/ui/src/lib/atoms/lang-selector/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-main.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-main","useFor":["The root of an app shell, once: the nav in its header slot, the page in its content, a footer. The website and change-me both start here."],"notFor":["A panel inside a page — splitter, tabs and top-scroll-bottom are for that."],"shownIn":[{"story":"Examples/Layout/Layout"},{"file":"apps/website/src/app/app.component.html"},{"file":"apps/change-me/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/main/docs.mdx","libs/ui/.storybook/demos/examples/layout/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-media-screen.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-media-screen","useFor":["Once in the app shell, so every breakpoint question goes to UiLayoutMediaScreenService — never a hard-coded width in TypeScript or a breakpoint through Tailwind."],"notFor":["Anything visible; a second instance."],"shownIn":[{"story":"Layout/Media Screen/MediaScreen"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/media-screen/docs.mdx","media CLAUDE.md (own repo): breakpoints never go through Tailwind"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-nav.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-nav","useFor":["The app navigation in the main header, fed by UiLayoutNavService — tab theme for a site, app theme with a home button for a tool."],"notFor":["A second nav in the same layout.","A menu in a drawer — that is the burger recipe with ui-layout-overlay."],"instead":["ui-layout-overlay"],"shownIn":[{"story":"Layout/Nav/TemplateTab"},{"story":"Layout/Nav/TemplateApp"},{"story":"Examples/Layout/Layout"},{"file":"apps/website/src/app/parts/header/header.component.html"}],"sources":["libs/ui/src/lib/layout/nav/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-overlay-header.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-overlay-header","useFor":["The plain header of an overlay: headline plus close, in the overlay-header slot."],"notFor":["A header with anything else in it — write your own bar into the same slot. The media record sheet does, because its close turns into a two-step discard."],"shownIn":[{"story":"Layout/Overlay Header/InsideAnOverlay"},{"story":"Examples/Burger Menu/BurgerMenu"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/overlay/header/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-overlay.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-overlay","useFor":["A drawer or a modal over the page — a burger menu, a sign-in sheet, a record editor. Place it at the app\'s top level next to the layout, bind active in and take activeOutput back."],"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 — that is ui-inline-spinner, which sits in the flow and blocks nothing; the table wrapper brings its own skeleton."],"shownIn":[{"story":"Layout/Spinner/Spinner"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/spinner/docs.mdx"],"reviewed":"8e6e0c56"}')},"./libs/ui/guide/ui-layout-splitter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-splitter","useFor":["A working view with two panes and an action header. The media editor is one: table left, detail right, and the zoom is the handle that widens the table."],"notFor":["Moving items between two lists.","Resizing panes by dragging — it has direction, zoom and fullscreen, no drag handle."],"instead":["ui-cdk-drag-drop-splitter"],"shownIn":[{"story":"Layout/Splitter/Splitter"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/layout/splitter/docs.mdx","media CLAUDE.md (own repo): the 4K table shots and the zoom"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-tabs.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-tabs","useFor":["A few sections of one view switched in place, inside a pane."],"notFor":["Routing between pages.","Remembering the active tab across a reload."],"shownIn":[{"story":"Layout/Tabs/TabsDefault"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/layout/tabs/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-top-scroll-bottom.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-top-scroll-bottom","useFor":["A view whose middle scrolls while header and footer stay — once per route, inside main-content."],"notFor":["Anywhere outside ui-layout-main; a second one in the same view."],"shownIn":[{"story":"Layout/Top Scroll Bottom/TopScrollBottom"}],"sources":["libs/ui/src/lib/layout/top-scroll-bottom/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-mosaic.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-mosaic","useFor":["A decorative tile field behind a page or over a picture — placed with CSS, given a box."],"notFor":["Anything clickable (pointer events are off).","An element in the flow without a height — it renders nothing, because its tile count comes from its box."],"shownIn":[{"story":"Atoms/Mosaic/Images"},{"story":"Atoms/Mosaic/OverImage"}],"sources":["libs/ui/src/lib/atoms/mosaic/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-placeholder.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-placeholder","useFor":["Filler with visible mass in stories and examples, sized from the outside (class=\\"h-64\\") — so a reader can tell a stand-in from a component that failed to render."],"notFor":["Product UI. It is scenery for documentation."],"shownIn":[{"story":"Atoms/Placeholder/Sizes"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/atoms/placeholder/docs.mdx","agents.md (Storybook Guidelines: filler needs visible mass)"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-qr-code.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-qr-code","useFor":["A URL or a short text as a scannable code. M is the ordinary level; raise it for small prints or surfaces that get handled."],"notFor":["Payloads past the version-40 capacity at the chosen level; kanji or ECI encodings."],"shownIn":[{"story":"Atoms/QR Code/Default"},{"story":"Atoms/QR Code/Levels"}],"sources":["libs/ui/src/lib/atoms/qr-code/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-rating.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-rating","useFor":["Displaying a rating as filled icons — read-only, any Material glyph, colours and size as CSS variables."],"notFor":["Collecting a rating: it takes no input from the reader."],"shownIn":[{"story":"Atoms/Rating/Rating"}],"sources":["libs/ui/src/lib/atoms/rating/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-reader-doc.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-reader-doc","useFor":["Rendering a Markdown string in the house design — the website\'s content pages do. Whoever fetches, caches and picks the language stands in front of it."],"notFor":["Documents whose raw HTML must survive: it is discarded, counted and named on the page."],"shownIn":[{"story":"Atoms/ReaderDoc/Default"},{"story":"Atoms/ReaderDoc/DroppedMarkup"},{"story":"Atoms/ReaderDoc/Emphasis"},{"file":"apps/website/src/app/content/content.component.html"}],"sources":["libs/ui/src/lib/atoms/reader-doc/docs.mdx"],"reviewed":"2ae02124"}')},"./libs/ui/guide/ui-slider.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-slider","useFor":["A number or a min–max span the reader drags until it looks right."],"notFor":["A value the reader should type exactly — ui-input with type=\\"number\\"."],"instead":["ui-input"],"shownIn":[{"story":"Forms/Slider/Slider"},{"story":"Forms/Slider/Range"}],"sources":["libs/ui/src/lib/forms/slider/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-switch.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-switch","useFor":["A deliberate on/off decision that takes effect at once and is valid either way — a setting, a filter, a mode."],"notFor":["A choice that can be required or invalid, such as a consent."],"instead":["ui-checkbox"],"shownIn":[{"story":"Forms/Switch/Switch"},{"story":"Styling/Forms/Forms"}],"sources":["libs/ui/src/lib/forms/switch/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-text-animate.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-text-animate","useFor":["A headline that animates letter by letter; clip on the container when a variant travels in from outside."],"notFor":["Body text or anything longer than a phrase."],"shownIn":[{"story":"Atoms/Text Animate/TextAnimate"},{"file":"apps/change-me/src/app/slider/slider.component.html"}],"sources":["libs/ui/src/lib/atoms/text-animate/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-thumb.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-thumb","useFor":["A linked preview image with a caption — playlist tiles, news, references on the website. Place it in a grid cell or give it a width."],"notFor":["A gallery of pictures sharing a selection.","An image without a link — a plain <img> does that."],"instead":["ui-image-grid"],"shownIn":[{"story":"Atoms/Thumb/Thumb"},{"story":"Atoms/Thumb/ThumbInternalLink"},{"file":"apps/website/src/app/content/youtube/youtube.component.html"},{"file":"apps/website/src/app/components/news/display/display.component.html"}],"sources":["libs/ui/src/lib/atoms/thumb/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-timer.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-timer","useFor":["A countdown with a finished event; project the words that stand at zero, in your language."],"notFor":["Showing the time of day."],"instead":["ui-clock"],"shownIn":[{"story":"Atoms/Timer/Timer"}],"sources":["libs/ui/src/lib/atoms/timer/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-typewriter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-typewriter","useFor":["A line of text that types itself, optionally with a keystroke sound — the website\'s platformer intro."],"notFor":["Body text; a loop — a second sentence is a new run."],"shownIn":[{"story":"Atoms/Typewriter/Typewriter"},{"file":"apps/website/src/app/components/platformer/platformer.component.html"}],"sources":["libs/ui/src/lib/atoms/typewriter/docs.mdx"],"reviewed":"85173725"}')}}]);
|
|
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-chip.json":"./libs/ui/guide/ui-chip.json","./ui-clock.json":"./libs/ui/guide/ui-clock.json","./ui-copy-value.json":"./libs/ui/guide/ui-copy-value.json","./ui-image-editor.json":"./libs/ui/guide/ui-image-editor.json","./ui-image-grid.json":"./libs/ui/guide/ui-image-grid.json","./ui-image-slider.json":"./libs/ui/guide/ui-image-slider.json","./ui-inline-spinner.json":"./libs/ui/guide/ui-inline-spinner.json","./ui-input.json":"./libs/ui/guide/ui-input.json","./ui-lang-selector.json":"./libs/ui/guide/ui-lang-selector.json","./ui-layout-main.json":"./libs/ui/guide/ui-layout-main.json","./ui-layout-media-screen.json":"./libs/ui/guide/ui-layout-media-screen.json","./ui-layout-nav.json":"./libs/ui/guide/ui-layout-nav.json","./ui-layout-overlay-header.json":"./libs/ui/guide/ui-layout-overlay-header.json","./ui-layout-overlay.json":"./libs/ui/guide/ui-layout-overlay.json","./ui-layout-spinner.json":"./libs/ui/guide/ui-layout-spinner.json","./ui-layout-splitter.json":"./libs/ui/guide/ui-layout-splitter.json","./ui-layout-tabs.json":"./libs/ui/guide/ui-layout-tabs.json","./ui-layout-top-scroll-bottom.json":"./libs/ui/guide/ui-layout-top-scroll-bottom.json","./ui-mosaic.json":"./libs/ui/guide/ui-mosaic.json","./ui-placeholder.json":"./libs/ui/guide/ui-placeholder.json","./ui-qr-code.json":"./libs/ui/guide/ui-qr-code.json","./ui-rating.json":"./libs/ui/guide/ui-rating.json","./ui-reader-doc.json":"./libs/ui/guide/ui-reader-doc.json","./ui-slider.json":"./libs/ui/guide/ui-slider.json","./ui-switch.json":"./libs/ui/guide/ui-switch.json","./ui-text-animate.json":"./libs/ui/guide/ui-text-animate.json","./ui-thumb.json":"./libs/ui/guide/ui-thumb.json","./ui-timer.json":"./libs/ui/guide/ui-timer.json","./ui-typewriter.json":"./libs/ui/guide/ui-typewriter.json","libs/ui/guide/app-shell.json":"./libs/ui/guide/app-shell.json","libs/ui/guide/burger-menu.json":"./libs/ui/guide/burger-menu.json","libs/ui/guide/form-basics.json":"./libs/ui/guide/form-basics.json","libs/ui/guide/image-gallery.json":"./libs/ui/guide/image-gallery.json","libs/ui/guide/table-edit-focus.json":"./libs/ui/guide/table-edit-focus.json","libs/ui/guide/translations.json":"./libs/ui/guide/translations.json","libs/ui/guide/ui-autocomplete.json":"./libs/ui/guide/ui-autocomplete.json","libs/ui/guide/ui-background.json":"./libs/ui/guide/ui-background.json","libs/ui/guide/ui-barcode.json":"./libs/ui/guide/ui-barcode.json","libs/ui/guide/ui-buzzer.json":"./libs/ui/guide/ui-buzzer.json","libs/ui/guide/ui-card.json":"./libs/ui/guide/ui-card.json","libs/ui/guide/ui-cdk-drag-drop-splitter.json":"./libs/ui/guide/ui-cdk-drag-drop-splitter.json","libs/ui/guide/ui-cdk-table-wrapper.json":"./libs/ui/guide/ui-cdk-table-wrapper.json","libs/ui/guide/ui-chart.json":"./libs/ui/guide/ui-chart.json","libs/ui/guide/ui-checkbox.json":"./libs/ui/guide/ui-checkbox.json","libs/ui/guide/ui-chip.json":"./libs/ui/guide/ui-chip.json","libs/ui/guide/ui-clock.json":"./libs/ui/guide/ui-clock.json","libs/ui/guide/ui-copy-value.json":"./libs/ui/guide/ui-copy-value.json","libs/ui/guide/ui-image-editor.json":"./libs/ui/guide/ui-image-editor.json","libs/ui/guide/ui-image-grid.json":"./libs/ui/guide/ui-image-grid.json","libs/ui/guide/ui-image-slider.json":"./libs/ui/guide/ui-image-slider.json","libs/ui/guide/ui-inline-spinner.json":"./libs/ui/guide/ui-inline-spinner.json","libs/ui/guide/ui-input.json":"./libs/ui/guide/ui-input.json","libs/ui/guide/ui-lang-selector.json":"./libs/ui/guide/ui-lang-selector.json","libs/ui/guide/ui-layout-main.json":"./libs/ui/guide/ui-layout-main.json","libs/ui/guide/ui-layout-media-screen.json":"./libs/ui/guide/ui-layout-media-screen.json","libs/ui/guide/ui-layout-nav.json":"./libs/ui/guide/ui-layout-nav.json","libs/ui/guide/ui-layout-overlay-header.json":"./libs/ui/guide/ui-layout-overlay-header.json","libs/ui/guide/ui-layout-overlay.json":"./libs/ui/guide/ui-layout-overlay.json","libs/ui/guide/ui-layout-spinner.json":"./libs/ui/guide/ui-layout-spinner.json","libs/ui/guide/ui-layout-splitter.json":"./libs/ui/guide/ui-layout-splitter.json","libs/ui/guide/ui-layout-tabs.json":"./libs/ui/guide/ui-layout-tabs.json","libs/ui/guide/ui-layout-top-scroll-bottom.json":"./libs/ui/guide/ui-layout-top-scroll-bottom.json","libs/ui/guide/ui-mosaic.json":"./libs/ui/guide/ui-mosaic.json","libs/ui/guide/ui-placeholder.json":"./libs/ui/guide/ui-placeholder.json","libs/ui/guide/ui-qr-code.json":"./libs/ui/guide/ui-qr-code.json","libs/ui/guide/ui-rating.json":"./libs/ui/guide/ui-rating.json","libs/ui/guide/ui-reader-doc.json":"./libs/ui/guide/ui-reader-doc.json","libs/ui/guide/ui-slider.json":"./libs/ui/guide/ui-slider.json","libs/ui/guide/ui-switch.json":"./libs/ui/guide/ui-switch.json","libs/ui/guide/ui-text-animate.json":"./libs/ui/guide/ui-text-animate.json","libs/ui/guide/ui-thumb.json":"./libs/ui/guide/ui-thumb.json","libs/ui/guide/ui-timer.json":"./libs/ui/guide/ui-timer.json","libs/ui/guide/ui-typewriter.json":"./libs/ui/guide/ui-typewriter.json"};function webpackContext(req){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(entry=>entry.component??entry.situation),twice=subjects.find((subject,index)=>subjects.indexOf(subject)!==index);if(twice)throw new Error(`guide: "${twice}" is listed twice — one entry per subject, or the overview lies about the count.`)},"./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-chip.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-chip","useFor":["A small label that reports presses — a set filter above a table, a genre on a record, a tag that can be thrown away.","Rows of them: the parent holds the list, the chip only says the cross was pressed."],"notFor":["Removing itself: chipRemove is a message, and the list belongs to whoever holds it.","A selection: it has no active state and no group — a set of chips behaving as one choice is a different component.","A form control: it takes no value, no ngModel and no validation."],"shownIn":[{"story":"Forms/Chip/ARow"},{"story":"Forms/Chip/Removable"}],"sources":["libs/ui/src/lib/forms/chip/docs.mdx"],"reviewed":"8e6e0c56"}')},"./libs/ui/guide/ui-clock.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-clock","useFor":["A decorative time display — the website\'s landscape overlay."],"notFor":["A countdown; anything that needs time zones or formats beyond 12/24 h."],"instead":["ui-timer"],"shownIn":[{"story":"Atoms/Clock/Default"},{"file":"apps/website/src/app/parts/landscape-overlay/landscape-overlay.component.html"}],"sources":["libs/ui/src/lib/atoms/clock/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-copy-value.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-copy-value","useFor":["Click-to-copy around anything that shows a value — a swatch, a barcode, a truncated label. What is shown and what is copied are two different things, and this carries the second."],"notFor":["Showing the value: it brings no appearance. Wrap the thing that does."],"note":"With an empty value it leaves the tab order and stops being a control, so it can stand around content unconditionally and be switched on by supplying a value.","shownIn":[{"story":"Atoms/Copy Value/Swatches"},{"story":"Atoms/Copy Value/OwnConfirmation"}],"sources":["libs/ui/src/lib/atoms/copy-value/docs.mdx","tickets#183"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-image-editor.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-editor","useFor":["Uploading and cropping one image to a ratio, result as a JPEG blob — a cover, an avatar. The media cover editor is the overlay variant; the embedded one sits in the flow."],"notFor":["Several images, drawing, filters.","Talking to a backend: it emits, the host uploads."],"shownIn":[{"story":"Molecules/Image Editor/WithImage"},{"story":"Molecules/Image Editor/Overlay"}],"sources":["libs/ui/src/lib/molecules/image-editor/docs.mdx"],"reviewed":"4cc1b639"}')},"./libs/ui/guide/ui-image-grid.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-grid","useFor":["The overview of a picture set, sharing one index with ui-image-slider. Always set cols; the default draws nothing.","A strip — one scrolling row of fixed-size tiles (singleRow with tileHeight and tileAspect): episode stills, a row of posters."],"notFor":["Showing one picture large — that is the slider\'s half."],"instead":["ui-image-slider"],"shownIn":[{"story":"Atoms/Image Grid/Strip"},{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"apps/website/src/app/content/image-grid/image-grid.component.html"}],"sources":["libs/ui/src/lib/atoms/image-grid/docs.mdx","libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"91c43f4c"}')},"./libs/ui/guide/ui-image-slider.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-image-slider","useFor":["One picture at a time with swipe, drag and zoom; as the zoom of a grid, created with @if only while open."],"notFor":["The overview of a set."],"instead":["ui-image-grid"],"shownIn":[{"story":"Examples/Image Gallery/ImageGallery"},{"story":"Examples/Image Gallery/ImageGalleryZoom"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/atoms/image-slider/docs.mdx","libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-inline-spinner.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-inline-spinner","useFor":["The loading state of ONE area — a panel waiting for its record, a tile waiting for a picture. It sits in the flow, blocks nothing and covers nothing."],"notFor":["The application\'s global wait: that is ui-layout-spinner, placed once at the root and switched through its service.","Holding the loading state: it shows while it is in the DOM, so an @if around the tag is the switch.","Progress: all three visuals are indeterminate, none of them can show how far along something is."],"shownIn":[{"story":"Atoms/Inline Spinner/Types"},{"story":"Atoms/Inline Spinner/InAPanel"}],"sources":["libs/ui/src/lib/atoms/inline-spinner/docs.mdx"],"reviewed":"8e6e0c56"}')},"./libs/ui/guide/ui-input.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-input","useFor":["Every text-based control in a form: wrap the native input, textarea or select, keep [(ngModel)] on the projected element, class=\\"ui\\" on it.","Inline editing in tables: the projected control takes class=\\"ui-flat\\" instead — invisible at rest, no layout jump. The proto keyboard table has sixteen of them."],"notFor":["Ranges, checkboxes, switches — they have wrappers of their own.","Suggestions while typing."],"instead":["ui-slider","ui-checkbox","ui-switch","ui-autocomplete"],"shownIn":[{"story":"Forms/Input/Input"},{"story":"Forms/Input/InputClearable"},{"file":"apps/change-me/src/app/slider/slider.component.html"},{"file":"apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"}],"sources":["libs/ui/src/lib/forms/input/docs.mdx","usage.md (Forms)"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-lang-selector.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-lang-selector","useFor":["The one language switch of an app: one tag brings the service call, the storage and the restore on reload."],"notFor":["More than the two languages it knows; a switch that must not persist."],"shownIn":[{"story":"Examples/Transloco/LangSelector"},{"story":"Atoms/Lang Selector/OwnContent"},{"file":"apps/website/src/app/components/lang-selector/lang-selector.component.html"}],"sources":["libs/ui/src/lib/atoms/lang-selector/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-main.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-main","useFor":["The root of an app shell, once: the nav in its header slot, the page in its content, a footer. The website and change-me both start here."],"notFor":["A panel inside a page — splitter, tabs and top-scroll-bottom are for that."],"shownIn":[{"story":"Examples/Layout/Layout"},{"file":"apps/website/src/app/app.component.html"},{"file":"apps/change-me/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/main/docs.mdx","libs/ui/.storybook/demos/examples/layout/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-media-screen.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-media-screen","useFor":["Once in the app shell, so every breakpoint question goes to UiLayoutMediaScreenService — never a hard-coded width in TypeScript or a breakpoint through Tailwind."],"notFor":["Anything visible; a second instance."],"shownIn":[{"story":"Layout/Media Screen/MediaScreen"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/media-screen/docs.mdx","media CLAUDE.md (own repo): breakpoints never go through Tailwind"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-nav.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-nav","useFor":["The app navigation in the main header, fed by UiLayoutNavService — tab theme for a site, app theme with a home button for a tool."],"notFor":["A second nav in the same layout.","A menu in a drawer — that is the burger recipe with ui-layout-overlay."],"instead":["ui-layout-overlay"],"shownIn":[{"story":"Layout/Nav/TemplateTab"},{"story":"Layout/Nav/TemplateApp"},{"story":"Examples/Layout/Layout"},{"file":"apps/website/src/app/parts/header/header.component.html"}],"sources":["libs/ui/src/lib/layout/nav/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-overlay-header.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-overlay-header","useFor":["The plain header of an overlay: headline plus close, in the overlay-header slot."],"notFor":["A header with anything else in it — write your own bar into the same slot. The media record sheet does, because its close turns into a two-step discard."],"shownIn":[{"story":"Layout/Overlay Header/InsideAnOverlay"},{"story":"Examples/Burger Menu/BurgerMenu"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/overlay/header/docs.mdx"],"reviewed":"592c82aa"}')},"./libs/ui/guide/ui-layout-overlay.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-overlay","useFor":["A drawer or a modal over the page — a burger menu, a sign-in sheet, a record editor. Place it at the app\'s top level next to the layout, bind active in and take activeOutput back."],"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 or a page\'s resource — with a delay where a fast answer must not flash it."],"notFor":["A component\'s own loading state — that is ui-inline-spinner, which sits in the flow and blocks nothing; the table wrapper brings its own skeleton. Counting requests or timing out: it shows, waits its delay, animates out and hides, nothing more."],"shownIn":[{"story":"Layout/Spinner/Spinner"},{"file":"apps/website/src/app/app.component.html"}],"sources":["libs/ui/src/lib/layout/spinner/docs.mdx"],"reviewed":"068433e9"}')},"./libs/ui/guide/ui-layout-splitter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-splitter","useFor":["A working view with two panes and an action header. The media editor is one: table left, detail right, and the zoom is the handle that widens the table."],"notFor":["Moving items between two lists.","Resizing panes by dragging — it has direction, zoom and fullscreen, no drag handle."],"instead":["ui-cdk-drag-drop-splitter"],"shownIn":[{"story":"Layout/Splitter/Splitter"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/layout/splitter/docs.mdx","media CLAUDE.md (own repo): the 4K table shots and the zoom"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-tabs.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-tabs","useFor":["A few sections of one view switched in place, inside a pane."],"notFor":["Routing between pages.","Remembering the active tab across a reload."],"shownIn":[{"story":"Layout/Tabs/TabsDefault"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/layout/tabs/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-layout-top-scroll-bottom.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-layout-top-scroll-bottom","useFor":["A view whose middle scrolls while header and footer stay — once per route, inside main-content."],"notFor":["Anywhere outside ui-layout-main; a second one in the same view."],"shownIn":[{"story":"Layout/Top Scroll Bottom/TopScrollBottom"}],"sources":["libs/ui/src/lib/layout/top-scroll-bottom/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-mosaic.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-mosaic","useFor":["A decorative tile field behind a page or over a picture — placed with CSS, given a box."],"notFor":["Anything clickable (pointer events are off).","An element in the flow without a height — it renders nothing, because its tile count comes from its box."],"shownIn":[{"story":"Atoms/Mosaic/Images"},{"story":"Atoms/Mosaic/OverImage"}],"sources":["libs/ui/src/lib/atoms/mosaic/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-placeholder.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-placeholder","useFor":["Filler with visible mass in stories and examples, sized from the outside (class=\\"h-64\\") — so a reader can tell a stand-in from a component that failed to render."],"notFor":["Product UI. It is scenery for documentation."],"shownIn":[{"story":"Atoms/Placeholder/Sizes"},{"story":"Examples/Layout/Layout"}],"sources":["libs/ui/src/lib/atoms/placeholder/docs.mdx","agents.md (Storybook Guidelines: filler needs visible mass)"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-qr-code.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-qr-code","useFor":["A URL or a short text as a scannable code. M is the ordinary level; raise it for small prints or surfaces that get handled."],"notFor":["Payloads past the version-40 capacity at the chosen level; kanji or ECI encodings."],"shownIn":[{"story":"Atoms/QR Code/Default"},{"story":"Atoms/QR Code/Levels"}],"sources":["libs/ui/src/lib/atoms/qr-code/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-rating.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-rating","useFor":["Displaying a rating as filled icons — read-only, any Material glyph, colours and size as CSS variables."],"notFor":["Collecting a rating: it takes no input from the reader."],"shownIn":[{"story":"Atoms/Rating/Rating"}],"sources":["libs/ui/src/lib/atoms/rating/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-reader-doc.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-reader-doc","useFor":["Rendering a Markdown string in the house design — the website\'s content pages do. Whoever fetches, caches and picks the language stands in front of it."],"notFor":["Documents whose raw HTML must survive: it is discarded, counted and named on the page."],"shownIn":[{"story":"Atoms/ReaderDoc/Default"},{"story":"Atoms/ReaderDoc/DroppedMarkup"},{"story":"Atoms/ReaderDoc/Emphasis"},{"file":"apps/website/src/app/content/content.component.html"}],"sources":["libs/ui/src/lib/atoms/reader-doc/docs.mdx"],"reviewed":"2ae02124"}')},"./libs/ui/guide/ui-slider.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-slider","useFor":["A number or a min–max span the reader drags until it looks right."],"notFor":["A value the reader should type exactly — ui-input with type=\\"number\\"."],"instead":["ui-input"],"shownIn":[{"story":"Forms/Slider/Slider"},{"story":"Forms/Slider/Range"}],"sources":["libs/ui/src/lib/forms/slider/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-switch.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-switch","useFor":["A deliberate on/off decision that takes effect at once and is valid either way — a setting, a filter, a mode."],"notFor":["A choice that can be required or invalid, such as a consent."],"instead":["ui-checkbox"],"shownIn":[{"story":"Forms/Switch/Switch"},{"story":"Styling/Forms/Forms"}],"sources":["libs/ui/src/lib/forms/switch/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-text-animate.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-text-animate","useFor":["A headline that animates letter by letter; clip on the container when a variant travels in from outside."],"notFor":["Body text or anything longer than a phrase."],"shownIn":[{"story":"Atoms/Text Animate/TextAnimate"},{"file":"apps/change-me/src/app/slider/slider.component.html"}],"sources":["libs/ui/src/lib/atoms/text-animate/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-thumb.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-thumb","useFor":["A linked preview image with a caption — playlist tiles, news, references on the website. Place it in a grid cell or give it a width."],"notFor":["A gallery of pictures sharing a selection.","An image without a link — a plain <img> does that."],"instead":["ui-image-grid"],"shownIn":[{"story":"Atoms/Thumb/Thumb"},{"story":"Atoms/Thumb/ThumbInternalLink"},{"file":"apps/website/src/app/content/youtube/youtube.component.html"},{"file":"apps/website/src/app/components/news/display/display.component.html"}],"sources":["libs/ui/src/lib/atoms/thumb/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-timer.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-timer","useFor":["A countdown with a finished event; project the words that stand at zero, in your language."],"notFor":["Showing the time of day."],"instead":["ui-clock"],"shownIn":[{"story":"Atoms/Timer/Timer"}],"sources":["libs/ui/src/lib/atoms/timer/docs.mdx"],"reviewed":"69197b72"}')},"./libs/ui/guide/ui-typewriter.json"(module){"use strict";module.exports=JSON.parse('{"component":"ui-typewriter","useFor":["A line of text that types itself, optionally with a keystroke sound — the website\'s platformer intro."],"notFor":["Body text; a loop — a second sentence is a new run."],"shownIn":[{"story":"Atoms/Typewriter/Typewriter"},{"file":"apps/website/src/app/components/platformer/platformer.component.html"}],"sources":["libs/ui/src/lib/atoms/typewriter/docs.mdx"],"reviewed":"85173725"}')}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[128],{"./libs/ui/src/lib/home/overview.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 jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),lib=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),blocks=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js");const package_namespaceObject_rE="2.8.2";function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,lib.R)(),...props.components};return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(blocks.W8,{title:"Home/Introduction"}),"\n","\n","\n",(0,jsx_runtime.jsx)("h2",{style:{textAlign:"right",borderBottom:"none",marginBottom:0},children:"Built for developers and agents"}),"\n",(0,jsx_runtime.jsx)("h1",{style:{textAlign:"right",color:"var(--ui-c-focus)",paddingBottom:"1rem",borderBottom:"var(--ui-border-width) solid var(--ui-c-fourthly)"},children:"Customers just talk to the agent"}),"\n",(0,jsx_runtime.jsx)(_components.h3,{id:"ui-library-overview",children:"UI Library Overview"}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["This library provides a modular set of Angular components for building consistent user\ninterfaces. It follows an atomic design approach, categorized into Electrons, Atoms,\nMolecules, Layouts, and Forms. Everything is ",(0,jsx_runtime.jsx)(_components.strong,{children:"standalone"})," — there are no NgModules anymore (the\nTransloco configuration modules are the only exception). State is managed with ",(0,jsx_runtime.jsx)(_components.strong,{children:"Signals"}),"\nand all apps run ",(0,jsx_runtime.jsx)(_components.strong,{children:"zoneless"}),"."]}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["This documentation describes version ",(0,jsx_runtime.jsx)(_components.strong,{children:package_namespaceObject_rE})," of the library. To\ninstall exactly what is documented here:\n",(0,jsx_runtime.jsxs)("code",{children:["npm i @mojawork/ui@",package_namespaceObject_rE]}),"."]}),"\n",(0,jsx_runtime.jsx)(_components.hr,{}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"core-architecture",children:"Core Architecture"}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["The library is organized into the following categories (folders under ",(0,jsx_runtime.jsx)(_components.code,{children:"libs/ui/src/lib"}),").\nThe first three are layers, and they are told apart by ",(0,jsx_runtime.jsx)(_components.strong,{children:"composition and\nvisibility"}),", not by size: an atom may be large and a molecule small."]}),"\n",(0,jsx_runtime.jsxs)("table",{class:"ui",children:[(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("th",{style:{width:"16rem"},children:"Category"}),(0,jsx_runtime.jsx)("th",{children:"Description"})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"atoms/_electrons"})}),(0,jsx_runtime.jsxs)("td",{children:["Internal building blocks, ",(0,jsx_runtime.jsx)("strong",{children:"not exported"}),", selector ",(0,jsx_runtime.jsx)("code",{children:"ui-electron-*"}),". They exist only so ui components can build them in — an app never names one. Today: the form error message."]})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"atoms"})}),(0,jsx_runtime.jsx)("td",{children:"Exported building blocks that compose nothing else from this library (e.g., thumbs, typewriter, language selector, copy-value)."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"molecules"})}),(0,jsx_runtime.jsxs)("td",{children:["Built from at least one other ui component — that single test is the whole definition, and the folder follows it. ",(0,jsx_runtime.jsx)("code",{children:"image-editor"})," is the only one: it builds in the crop box, the overlay, its header and the slider. Size plays no part; an atom may be a large class and a molecule twenty lines."]})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"cdk"})}),(0,jsx_runtime.jsx)("td",{children:"CDK-based building blocks (e.g., table wrapper, drag-and-drop splitter)."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"layout"})}),(0,jsx_runtime.jsx)("td",{children:"Structural components that define the page grid and navigation (e.g., main layout, spinner, splitter)."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"forms"})}),(0,jsx_runtime.jsx)("td",{children:"Input elements and form validation components (inputs, checkboxes, validator directives)."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsxs)("td",{children:[(0,jsx_runtime.jsx)("code",{children:"_directives"})," / ",(0,jsx_runtime.jsx)("code",{children:"_pipes"})]}),(0,jsx_runtime.jsx)("td",{children:"Utility directives and pipes for behavior modification (e.g., autofocus, intersection observer)."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"transloco-modules"})}),(0,jsx_runtime.jsxs)("td",{children:["Internationalization setup (",(0,jsx_runtime.jsx)("code",{children:"TranslocoRootModule"}),") — the only remaining NgModules, imported once at application level."]})]})]}),"\n",(0,jsx_runtime.jsx)(_components.hr,{}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"styling-concept",children:"Styling Concept"}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["Every component in this library ships ",(0,jsx_runtime.jsx)(_components.strong,{children:"fully self-contained"}),": plain CSS built\nexclusively on ",(0,jsx_runtime.jsx)(_components.strong,{children:"design tokens"})," — CSS custom properties such as ",(0,jsx_runtime.jsx)(_components.code,{children:"--ui-c-*"}),"\n(colors, theme-aware), ",(0,jsx_runtime.jsx)(_components.code,{children:"--ui-spacer"}),", ",(0,jsx_runtime.jsx)(_components.code,{children:"--ui-border-radius"})," and ",(0,jsx_runtime.jsx)(_components.code,{children:"--ui-time"}),".\nThere are no hidden dependencies on any CSS framework, utility system or build\ntool: the components coexist with whatever styling setup your project uses."]}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"Responsiveness"})," follows a single canonical breakpoint ladder with six levels\n(",(0,jsx_runtime.jsx)(_components.code,{children:"ms1"})," 340px · ",(0,jsx_runtime.jsx)(_components.code,{children:"ms2"})," 375px · ",(0,jsx_runtime.jsx)(_components.code,{children:"ms3"})," 481px · ",(0,jsx_runtime.jsx)(_components.code,{children:"ms4"})," 769px · ",(0,jsx_runtime.jsx)(_components.code,{children:"ms5"})," 1025px ·\n",(0,jsx_runtime.jsx)(_components.code,{children:"ms6"})," 1901px). The ladder deliberately exists only once and serves every layer\nfrom the same source:"]}),"\n",(0,jsx_runtime.jsxs)(_components.ul,{children:["\n",(0,jsx_runtime.jsxs)(_components.li,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"CSS"}),": via named media queries (",(0,jsx_runtime.jsx)(_components.code,{children:"@media (--ms4)"}),", ",(0,jsx_runtime.jsx)(_components.code,{children:"@media (--below-ms5)"}),")\nthat are resolved into standard queries at build time — the published package\ncontains plain, universally working CSS."]}),"\n",(0,jsx_runtime.jsxs)(_components.li,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"TypeScript"}),": via the ",(0,jsx_runtime.jsx)(_components.code,{children:"UiLayoutMediaScreenService"}),", which exposes the\ncurrent level as a signal (",(0,jsx_runtime.jsx)(_components.code,{children:"mediascreen: 1..6"}),") — logic and layout are\nguaranteed to switch at the same boundaries."]}),"\n"]}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"tailwind--not-required-but-offered",children:"Tailwind — not required, but offered"}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["The npm package ",(0,jsx_runtime.jsx)(_components.strong,{children:"does not require Tailwind"}),". Whether a project uses Tailwind\nis entirely that project's decision — the components work identically either\nway."]}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["Projects that ",(0,jsx_runtime.jsx)(_components.strong,{children:"do want Tailwind (v4)"})," get a head start: the package ships a\nready-made theme file, ",(0,jsx_runtime.jsx)(_components.code,{children:"@mojawork/ui/styles/theme.css"}),". One import in the\napp's own Tailwind entry wires Tailwind into the library's design system:"]}),"\n",(0,jsx_runtime.jsx)(_components.pre,{children:(0,jsx_runtime.jsx)(_components.code,{className:"language-css",children:"@layer theme, base, cdk-resets, ui, components, utilities;\n@import 'tailwindcss';\n@import '@mojawork/ui/styles/theme.css';\n@source './app';\n@source '../node_modules/@mojawork/ui';\n"})}),"\n",(0,jsx_runtime.jsxs)(_components.ul,{children:["\n",(0,jsx_runtime.jsxs)(_components.li,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"Colors"})," mapped via ",(0,jsx_runtime.jsx)(_components.code,{children:"@theme"})," onto the runtime tokens — utilities like\n",(0,jsx_runtime.jsx)(_components.code,{children:"text-c-primary"})," automatically follow light/dark theme switching."]}),"\n",(0,jsx_runtime.jsxs)(_components.li,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"Breakpoints"})," ",(0,jsx_runtime.jsx)(_components.code,{children:"ms1:"}),"–",(0,jsx_runtime.jsx)(_components.code,{children:"ms6:"})," — the same ladder the components use\ninternally."]}),"\n",(0,jsx_runtime.jsxs)(_components.li,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"Animation presets"})," (e.g. ",(0,jsx_runtime.jsx)(_components.code,{children:"loading"}),")."]}),"\n"]}),"\n",(0,jsx_runtime.jsx)(_components.p,{children:"The theme carries the mapping and nothing else: no Tailwind import of its\nown, no source paths. The layer line stays in the app's file because it has\nto be the first statement there, before Tailwind declares its own layers —\nan import cannot put it in front of itself."}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["In short: ",(0,jsx_runtime.jsx)(_components.strong,{children:"shipped Tailwind-free, Tailwind-ready when wanted."})," Both paths are\nfirst-class; neither is forced."]}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["Everything the library ships sits in the ",(0,jsx_runtime.jsx)(_components.code,{children:"ui"})," cascade layer, below Tailwind's\n",(0,jsx_runtime.jsx)(_components.code,{children:"utilities"})," — so a utility you write on a ui tag beats the component's own\ndefault, and your app's unlayered CSS beats both. One line on the Tailwind\nside makes the order explicit; see ",(0,jsx_runtime.jsx)(_components.a,{href:"?path=/docs/styling-layers--docs",children:"Styling › Layers"}),"."]}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"for-contributors",children:"For contributors"}),"\n",(0,jsx_runtime.jsxs)(_components.ul,{children:["\n",(0,jsx_runtime.jsxs)(_components.li,{children:["Components in ",(0,jsx_runtime.jsx)(_components.code,{children:"src/lib"})," never use Tailwind utilities or ",(0,jsx_runtime.jsx)(_components.code,{children:"@apply"})," — plain CSS\nwith ",(0,jsx_runtime.jsx)(_components.code,{children:"--ui-*"})," tokens only; component-local classes carry a ",(0,jsx_runtime.jsx)(_components.code,{children:"_"})," prefix."]}),"\n",(0,jsx_runtime.jsxs)(_components.li,{children:["Storybook ",(0,jsx_runtime.jsx)(_components.strong,{children:"stories"})," (and the showcase components under ",(0,jsx_runtime.jsx)(_components.code,{children:".storybook/demos/"}),")\nexplicitly use Tailwind for their example layout."]}),"\n",(0,jsx_runtime.jsx)(_components.li,{children:"Breakpoints are never written as pixel literals — always via the ladder's\nnamed queries."}),"\n"]}),"\n",(0,jsx_runtime.jsx)(_components.hr,{}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"getting-started",children:"Getting Started"}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["All components are standalone: import them directly from the barrel into the ",(0,jsx_runtime.jsx)(_components.code,{children:"imports"}),"\narray of your standalone component. Inside the monorepo the import path is mapped via\ntsconfig; external apps install the published npm package\n(",(0,jsx_runtime.jsx)("a",{href:"https://www.npmjs.com/package/@mojawork/ui",target:"_blank",rel:"noopener",children:"@mojawork/ui"}),")."]}),"\n",(0,jsx_runtime.jsx)(_components.pre,{children:(0,jsx_runtime.jsx)(_components.code,{className:"language-typescript",children:"import { Component } from '@angular/core';\nimport { UiInputComponent, UiCardComponent } from '@mojawork/ui';\n\n@Component({\n selector: 'app-my-feature',\n imports: [UiInputComponent, UiCardComponent],\n templateUrl: './my-feature.component.html',\n})\nexport class MyFeatureComponent {}\n"})}),"\n",(0,jsx_runtime.jsx)(_components.hr,{}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"usage-principles",children:"Usage Principles"}),"\n",(0,jsx_runtime.jsxs)("table",{class:"ui",children:[(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("th",{style:{width:"16rem"},children:"Principle"}),(0,jsx_runtime.jsx)("th",{children:"Description"})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:"Composition"}),(0,jsx_runtime.jsx)("td",{children:"Prefer composing smaller components into larger ones."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:"Consistency"}),(0,jsx_runtime.jsx)("td",{children:"Use the provided layouts to maintain a unified user experience across the application."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:"Signals & zoneless"}),(0,jsx_runtime.jsx)("td",{children:"Component state uses Angular Signals; all consumers run without Zone.js."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:"Translation"}),(0,jsx_runtime.jsx)("td",{children:"All text within components is managed via Transloco for easy localization."})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,lib.R)(),...props.components};return MDXLayout?(0,jsx_runtime.jsx)(MDXLayout,{...props,children:(0,jsx_runtime.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[128],{"./libs/ui/src/lib/home/overview.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 jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),lib=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),blocks=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js");const package_namespaceObject_rE="2.8.3";function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,lib.R)(),...props.components};return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(blocks.W8,{title:"Home/Introduction"}),"\n","\n","\n",(0,jsx_runtime.jsx)("h2",{style:{textAlign:"right",borderBottom:"none",marginBottom:0},children:"Built for developers and agents"}),"\n",(0,jsx_runtime.jsx)("h1",{style:{textAlign:"right",color:"var(--ui-c-focus)",paddingBottom:"1rem",borderBottom:"var(--ui-border-width) solid var(--ui-c-fourthly)"},children:"Customers just talk to the agent"}),"\n",(0,jsx_runtime.jsx)(_components.h3,{id:"ui-library-overview",children:"UI Library Overview"}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["This library provides a modular set of Angular components for building consistent user\ninterfaces. It follows an atomic design approach, categorized into Electrons, Atoms,\nMolecules, Layouts, and Forms. Everything is ",(0,jsx_runtime.jsx)(_components.strong,{children:"standalone"})," — there are no NgModules anymore (the\nTransloco configuration modules are the only exception). State is managed with ",(0,jsx_runtime.jsx)(_components.strong,{children:"Signals"}),"\nand all apps run ",(0,jsx_runtime.jsx)(_components.strong,{children:"zoneless"}),"."]}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["This documentation describes version ",(0,jsx_runtime.jsx)(_components.strong,{children:package_namespaceObject_rE})," of the library. To\ninstall exactly what is documented here:\n",(0,jsx_runtime.jsxs)("code",{children:["npm i @mojawork/ui@",package_namespaceObject_rE]}),"."]}),"\n",(0,jsx_runtime.jsx)(_components.hr,{}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"core-architecture",children:"Core Architecture"}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["The library is organized into the following categories (folders under ",(0,jsx_runtime.jsx)(_components.code,{children:"libs/ui/src/lib"}),").\nThe first three are layers, and they are told apart by ",(0,jsx_runtime.jsx)(_components.strong,{children:"composition and\nvisibility"}),", not by size: an atom may be large and a molecule small."]}),"\n",(0,jsx_runtime.jsxs)("table",{class:"ui",children:[(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("th",{style:{width:"16rem"},children:"Category"}),(0,jsx_runtime.jsx)("th",{children:"Description"})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"atoms/_electrons"})}),(0,jsx_runtime.jsxs)("td",{children:["Internal building blocks, ",(0,jsx_runtime.jsx)("strong",{children:"not exported"}),", selector ",(0,jsx_runtime.jsx)("code",{children:"ui-electron-*"}),". They exist only so ui components can build them in — an app never names one. Today: the form error message."]})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"atoms"})}),(0,jsx_runtime.jsx)("td",{children:"Exported building blocks that compose nothing else from this library (e.g., thumbs, typewriter, language selector, copy-value)."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"molecules"})}),(0,jsx_runtime.jsxs)("td",{children:["Built from at least one other ui component — that single test is the whole definition, and the folder follows it. ",(0,jsx_runtime.jsx)("code",{children:"image-editor"})," is the only one: it builds in the crop box, the overlay, its header and the slider. Size plays no part; an atom may be a large class and a molecule twenty lines."]})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"cdk"})}),(0,jsx_runtime.jsx)("td",{children:"CDK-based building blocks (e.g., table wrapper, drag-and-drop splitter)."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"layout"})}),(0,jsx_runtime.jsx)("td",{children:"Structural components that define the page grid and navigation (e.g., main layout, spinner, splitter)."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"forms"})}),(0,jsx_runtime.jsx)("td",{children:"Input elements and form validation components (inputs, checkboxes, validator directives)."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsxs)("td",{children:[(0,jsx_runtime.jsx)("code",{children:"_directives"})," / ",(0,jsx_runtime.jsx)("code",{children:"_pipes"})]}),(0,jsx_runtime.jsx)("td",{children:"Utility directives and pipes for behavior modification (e.g., autofocus, intersection observer)."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:(0,jsx_runtime.jsx)("code",{children:"transloco-modules"})}),(0,jsx_runtime.jsxs)("td",{children:["Internationalization setup (",(0,jsx_runtime.jsx)("code",{children:"TranslocoRootModule"}),") — the only remaining NgModules, imported once at application level."]})]})]}),"\n",(0,jsx_runtime.jsx)(_components.hr,{}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"styling-concept",children:"Styling Concept"}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["Every component in this library ships ",(0,jsx_runtime.jsx)(_components.strong,{children:"fully self-contained"}),": plain CSS built\nexclusively on ",(0,jsx_runtime.jsx)(_components.strong,{children:"design tokens"})," — CSS custom properties such as ",(0,jsx_runtime.jsx)(_components.code,{children:"--ui-c-*"}),"\n(colors, theme-aware), ",(0,jsx_runtime.jsx)(_components.code,{children:"--ui-spacer"}),", ",(0,jsx_runtime.jsx)(_components.code,{children:"--ui-border-radius"})," and ",(0,jsx_runtime.jsx)(_components.code,{children:"--ui-time"}),".\nThere are no hidden dependencies on any CSS framework, utility system or build\ntool: the components coexist with whatever styling setup your project uses."]}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"Responsiveness"})," follows a single canonical breakpoint ladder with six levels\n(",(0,jsx_runtime.jsx)(_components.code,{children:"ms1"})," 340px · ",(0,jsx_runtime.jsx)(_components.code,{children:"ms2"})," 375px · ",(0,jsx_runtime.jsx)(_components.code,{children:"ms3"})," 481px · ",(0,jsx_runtime.jsx)(_components.code,{children:"ms4"})," 769px · ",(0,jsx_runtime.jsx)(_components.code,{children:"ms5"})," 1025px ·\n",(0,jsx_runtime.jsx)(_components.code,{children:"ms6"})," 1901px). The ladder deliberately exists only once and serves every layer\nfrom the same source:"]}),"\n",(0,jsx_runtime.jsxs)(_components.ul,{children:["\n",(0,jsx_runtime.jsxs)(_components.li,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"CSS"}),": via named media queries (",(0,jsx_runtime.jsx)(_components.code,{children:"@media (--ms4)"}),", ",(0,jsx_runtime.jsx)(_components.code,{children:"@media (--below-ms5)"}),")\nthat are resolved into standard queries at build time — the published package\ncontains plain, universally working CSS."]}),"\n",(0,jsx_runtime.jsxs)(_components.li,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"TypeScript"}),": via the ",(0,jsx_runtime.jsx)(_components.code,{children:"UiLayoutMediaScreenService"}),", which exposes the\ncurrent level as a signal (",(0,jsx_runtime.jsx)(_components.code,{children:"mediascreen: 1..6"}),") — logic and layout are\nguaranteed to switch at the same boundaries."]}),"\n"]}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"tailwind--not-required-but-offered",children:"Tailwind — not required, but offered"}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["The npm package ",(0,jsx_runtime.jsx)(_components.strong,{children:"does not require Tailwind"}),". Whether a project uses Tailwind\nis entirely that project's decision — the components work identically either\nway."]}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["Projects that ",(0,jsx_runtime.jsx)(_components.strong,{children:"do want Tailwind (v4)"})," get a head start: the package ships a\nready-made theme file, ",(0,jsx_runtime.jsx)(_components.code,{children:"@mojawork/ui/styles/theme.css"}),". One import in the\napp's own Tailwind entry wires Tailwind into the library's design system:"]}),"\n",(0,jsx_runtime.jsx)(_components.pre,{children:(0,jsx_runtime.jsx)(_components.code,{className:"language-css",children:"@layer theme, base, cdk-resets, ui, components, utilities;\n@import 'tailwindcss';\n@import '@mojawork/ui/styles/theme.css';\n@source './app';\n@source '../node_modules/@mojawork/ui';\n"})}),"\n",(0,jsx_runtime.jsxs)(_components.ul,{children:["\n",(0,jsx_runtime.jsxs)(_components.li,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"Colors"})," mapped via ",(0,jsx_runtime.jsx)(_components.code,{children:"@theme"})," onto the runtime tokens — utilities like\n",(0,jsx_runtime.jsx)(_components.code,{children:"text-c-primary"})," automatically follow light/dark theme switching."]}),"\n",(0,jsx_runtime.jsxs)(_components.li,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"Breakpoints"})," ",(0,jsx_runtime.jsx)(_components.code,{children:"ms1:"}),"–",(0,jsx_runtime.jsx)(_components.code,{children:"ms6:"})," — the same ladder the components use\ninternally."]}),"\n",(0,jsx_runtime.jsxs)(_components.li,{children:[(0,jsx_runtime.jsx)(_components.strong,{children:"Animation presets"})," (e.g. ",(0,jsx_runtime.jsx)(_components.code,{children:"loading"}),")."]}),"\n"]}),"\n",(0,jsx_runtime.jsx)(_components.p,{children:"The theme carries the mapping and nothing else: no Tailwind import of its\nown, no source paths. The layer line stays in the app's file because it has\nto be the first statement there, before Tailwind declares its own layers —\nan import cannot put it in front of itself."}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["In short: ",(0,jsx_runtime.jsx)(_components.strong,{children:"shipped Tailwind-free, Tailwind-ready when wanted."})," Both paths are\nfirst-class; neither is forced."]}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["Everything the library ships sits in the ",(0,jsx_runtime.jsx)(_components.code,{children:"ui"})," cascade layer, below Tailwind's\n",(0,jsx_runtime.jsx)(_components.code,{children:"utilities"})," — so a utility you write on a ui tag beats the component's own\ndefault, and your app's unlayered CSS beats both. One line on the Tailwind\nside makes the order explicit; see ",(0,jsx_runtime.jsx)(_components.a,{href:"?path=/docs/styling-layers--docs",children:"Styling › Layers"}),"."]}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"for-contributors",children:"For contributors"}),"\n",(0,jsx_runtime.jsxs)(_components.ul,{children:["\n",(0,jsx_runtime.jsxs)(_components.li,{children:["Components in ",(0,jsx_runtime.jsx)(_components.code,{children:"src/lib"})," never use Tailwind utilities or ",(0,jsx_runtime.jsx)(_components.code,{children:"@apply"})," — plain CSS\nwith ",(0,jsx_runtime.jsx)(_components.code,{children:"--ui-*"})," tokens only; component-local classes carry a ",(0,jsx_runtime.jsx)(_components.code,{children:"_"})," prefix."]}),"\n",(0,jsx_runtime.jsxs)(_components.li,{children:["Storybook ",(0,jsx_runtime.jsx)(_components.strong,{children:"stories"})," (and the showcase components under ",(0,jsx_runtime.jsx)(_components.code,{children:".storybook/demos/"}),")\nexplicitly use Tailwind for their example layout."]}),"\n",(0,jsx_runtime.jsx)(_components.li,{children:"Breakpoints are never written as pixel literals — always via the ladder's\nnamed queries."}),"\n"]}),"\n",(0,jsx_runtime.jsx)(_components.hr,{}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"getting-started",children:"Getting Started"}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["All components are standalone: import them directly from the barrel into the ",(0,jsx_runtime.jsx)(_components.code,{children:"imports"}),"\narray of your standalone component. Inside the monorepo the import path is mapped via\ntsconfig; external apps install the published npm package\n(",(0,jsx_runtime.jsx)("a",{href:"https://www.npmjs.com/package/@mojawork/ui",target:"_blank",rel:"noopener",children:"@mojawork/ui"}),")."]}),"\n",(0,jsx_runtime.jsx)(_components.pre,{children:(0,jsx_runtime.jsx)(_components.code,{className:"language-typescript",children:"import { Component } from '@angular/core';\nimport { UiInputComponent, UiCardComponent } from '@mojawork/ui';\n\n@Component({\n selector: 'app-my-feature',\n imports: [UiInputComponent, UiCardComponent],\n templateUrl: './my-feature.component.html',\n})\nexport class MyFeatureComponent {}\n"})}),"\n",(0,jsx_runtime.jsx)(_components.hr,{}),"\n",(0,jsx_runtime.jsx)(_components.h4,{id:"usage-principles",children:"Usage Principles"}),"\n",(0,jsx_runtime.jsxs)("table",{class:"ui",children:[(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("th",{style:{width:"16rem"},children:"Principle"}),(0,jsx_runtime.jsx)("th",{children:"Description"})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:"Composition"}),(0,jsx_runtime.jsx)("td",{children:"Prefer composing smaller components into larger ones."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:"Consistency"}),(0,jsx_runtime.jsx)("td",{children:"Use the provided layouts to maintain a unified user experience across the application."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:"Signals & zoneless"}),(0,jsx_runtime.jsx)("td",{children:"Component state uses Angular Signals; all consumers run without Zone.js."})]}),(0,jsx_runtime.jsxs)("tr",{children:[(0,jsx_runtime.jsx)("td",{children:"Translation"}),(0,jsx_runtime.jsx)("td",{children:"All text within components is managed via Transloco for easy localization."})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,lib.R)(),...props.components};return MDXLayout?(0,jsx_runtime.jsx)(MDXLayout,{...props,children:(0,jsx_runtime.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}}}]);
|
package/storybook/iframe.html
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[365,1043],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>UiElectronLoaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var loader_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.css?ngResource"),loader_componentngResource_default=__webpack_require__.n(loader_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiElectronLoaderComponent=class UiElectronLoaderComponent{type=(0,core.input)("ring");static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}]}};UiElectronLoaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-loader",template:'\x3c!-- Decoration, not information: whatever is loading says so in words\n elsewhere, and a screen reader has nothing to gain from a spinning\n gradient. --\x3e\n<span class="_loader" [class]="\'_-\' + type()" aria-hidden="true"></span>\n@if (type() === \'disco\') {\n <span class="_disco-blink" aria-hidden="true"></span>\n}\n',encapsulation:_debug_node_chunk.gXe.None,styles:[loader_componentngResource_default()]})],UiElectronLoaderComponent)},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/layout/spinner/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_layout_spinner_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-layout-spinner.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"layout-spinner",children:"Layout: Spinner"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A global loading indicator that provides visual feedback during asynchronous operations."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A global loading indicator, placed once at the application root and switched\nthrough ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutSpinnerService"})," from anywhere — an HTTP interceptor, typically.\nIt shows, animates out and hides; it does not count requests, time out or block\ninput on its own, and it is not the spinner for one component's own loading\nstate. What it can do is wait: with a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"delay"}),", a start shows nothing until\nthat many milliseconds have passed, and an operation that ends inside them\nnever shows a spinner at all — not even the leave animation. That is the\nanswer to a fast answer flashing an overlay."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["That last sentence now has an address: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-inline-spinner"})," is the one for a\nsingle area. Both draw the same animation — it lives in an internal electron\nthat each of them builds in, so the library holds one set of keyframes rather\nthan two that drift. What stays here is what makes this one global: the\nbackdrop, the message box with its OK button, and the state coming from the\nservice."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-layout-spinner",entry:_guide_ui_layout_spinner_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"overview",children:"Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutSpinnerComponent"})," is a singleton component typically placed at the application root (e.g., ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"app.component.html"}),"). It's controlled via the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutSpinnerService"}),", making it easy to trigger from anywhere in the app, such as an HTTP interceptor."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"example-spinner",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-spinner--spinner",children:"Example: Spinner"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"arguments-props",children:"Arguments (Props)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"inputs",children:"Inputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"@Input"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"debug"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["If ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"}),", displays a debug navigation to manually test spinner states."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"close"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["If ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"}),", shows a close button to manually dismiss the spinner."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"type"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ring' | 'linear' | 'disco'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ring'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Selects the loading animation: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ring"})," (rotating gradient ring), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"linear"})," (indeterminate sliding bar), or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"disco"})," (spinning rainbow ring with hue rotation and a blinking sparkle in the centre)."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"delay"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"number"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Milliseconds a start waits before the overlay appears. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0"})," shows it at once; an operation that ends inside the delay shows no spinner at all. In the story, set the slider and press Start, then Success before it fires."]})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"service-uilayoutspinnerservice",children:["Service: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutSpinnerService"})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Use this service to control the spinner's state:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-typescript",children:"// Start the spinner — at once, or after the component's `delay`\nspinnerService.startSpinner();\n\n// Mark operation as successful (animates out and hides). A visible\n// message state is NOT auto-dismissed by this call.\nspinnerService.successSpinner();\n\n// Show a message within the spinner (stays until dismissed)\nspinnerService.messageSpinner('Loading your data...');\n\n// Dismiss unconditionally — also clears a message state (used by the\n// overlay's OK button when [close] is enabled)\nspinnerService.dismissSpinner();\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage: Add to Template"})," Place the component in your main application template."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-layout-spinner [close]="true" [debug]="true"></ui-layout-spinner>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Spinner:()=>Spinner,__namedExportsOrder:()=>__namedExportsOrder,default:()=>spinner_component_stories});var fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var spinner_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/spinner/spinner.component.css?ngResource"),spinner_componentngResource_default=__webpack_require__.n(spinner_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),Subscription=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subscription.js"),loader_component=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");let UiLayoutSpinnerService=class UiLayoutSpinnerService{status=new BehaviorSubject.t({show:"none"});hideTimeout=null;delay=0;showTimeout=null;setDelay(ms){this.delay=Math.max(0,ms)}startSpinner(){this.cancelPendingHide(),this.cancelPendingShow(),this.delay>0?this.showTimeout=setTimeout(()=>{this.showTimeout=null,this.status.next({show:"showIn"})},this.delay):this.status.next({show:"showIn"})}messageSpinner(content){this.cancelPendingHide(),this.cancelPendingShow(),this.status.next({content,show:"error"})}successSpinner(){this.status.getValue().content||this.dismissSpinner()}dismissSpinner(){this.cancelPendingHide(),this.cancelPendingShow(),"none"!==this.status.getValue().show&&(this.status.next({show:"showOut"}),this.hideTimeout=setTimeout(()=>{this.hideTimeout=null,this.status.next({show:"none"})},1200))}cancelPendingHide(){null!==this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}cancelPendingShow(){null!==this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}getSpinner(){return this.status}};UiLayoutSpinnerService=(0,tslib_es6.Cg)([(0,_debug_node_chunk._qm)({providedIn:"root"})],UiLayoutSpinnerService);let UiLayoutSpinnerComponent=class UiLayoutSpinnerComponent{spinnerService=(0,_effect_chunk2.WQX)(UiLayoutSpinnerService);debug=(0,core.input)(!1);close=(0,core.input)(!1);type=(0,core.input)("ring");delay=(0,core.input)(0);status=(0,_effect_chunk2.vPA)({show:"none"});subscription=new Subscription.yU;constructor(){(0,_effect_chunk2.QZP)(()=>this.spinnerService.setDelay(this.delay()))}ngOnInit(){this.subscription.add(this.spinnerService.getSpinner().subscribe(show=>this.status.set(show)))}ngOnDestroy(){this.subscription.unsubscribe()}static ctorParameters=()=>[];static propDecorators={debug:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"debug",required:!1,transform:void 0}]}],close:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"close",required:!1,transform:void 0}]}],type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}],delay:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"delay",required:!1,transform:void 0}]}]}};UiLayoutSpinnerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-spinner",template:'@if (debug()) {\n <div class="ui-debug">\n <button class="ui" (click)="spinnerService.startSpinner()">Start</button>\n <button class="ui" (click)="spinnerService.successSpinner()">Success</button>\n <button class="ui" (click)="spinnerService.messageSpinner(\'Info message\')">Message</button>\n <span>\n {{ status() | json }}\n </span>\n </div>\n}\n\n@if (status().show !== \'none\') {\n <div class="_spinner" [class]="status().show">\n \x3c!-- The animation is the electron\'s, here and in `ui-inline-spinner`:\n one set of keyframes, one set of masks, two places that show them. --\x3e\n <ui-electron-loader [type]="type()" />\n @if (status().content) {\n <div class="_content">\n <span [innerHTML]="status().content"></span>\n @if (close()) {\n <div class="_actions">\n <button class="ui" (click)="spinnerService.dismissSpinner()">OK</button>\n </div>\n }\n </div>\n }\n </div>\n}\n',imports:[_common_module_chunk.TG,loader_component.p],styles:[spinner_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiLayoutSpinnerComponent);const spinner_component_stories={title:"Layout/Spinner",decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,fesm2022_forms.YN,UiLayoutSpinnerComponent]})],argTypes:{debug:{control:"boolean"},close:{control:"boolean"},type:{control:"select",options:["ring","linear","disco"]},delay:{control:{type:"range",min:0,max:3e3,step:100}}},args:{debug:!0,close:!0,type:"ring",delay:0}},Spinner={args:{debug:!0,close:!0,type:"ring",delay:0},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <ui-layout-spinner [close]="close" [debug]="debug" [type]="type" [delay]="delay"></ui-layout-spinner>\n '})},__namedExportsOrder=["Spinner"];Spinner.parameters={...Spinner.parameters,docs:{...Spinner.parameters?.docs,source:{originalSource:'{\n args: {\n debug: true,\n close: true,\n type: \'ring\',\n delay: 0\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <ui-layout-spinner [close]="close" [debug]="debug" [type]="type" [delay]="delay"></ui-layout-spinner>\n `\n };\n }\n}',...Spinner.parameters?.docs?.source}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/_electrons/loader/loader.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n @keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n }\n\n @keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n }\n\n @keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n @keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n }\n\n /* The box the animation lives in — the positioning context for the disco\n sparkle, and nothing more. It takes no size of its own: each variant\n brings its own shape (two discs and a bar), and the host shrink-wraps\n whichever one it holds. Sizing the host instead would need a rule that\n asks which variant is inside, and that is a question the box should not\n have to ask.\n\n `--ui-spinner-size` is the named hook (see the geometry rule): unset, it\n renders the 26rem the global spinner has always drawn. */\n ui-electron-loader {\n position: relative;\n display: inline-block;\n }\n\n /* `display: block` is not decoration: the template draws with spans, and\n width and height do not apply to an inline box — the animation would\n compute its size and render nothing at all. */\n ._loader {\n position: relative;\n display: block;\n }\n\n /* ring — a conic-gradient comet tail masked into an annulus (hollow\n centre) that rotates seamlessly. */\n ._loader._-ring {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n rgba(var(--ui-c-fourthly-value), 0) 0deg,\n rgba(var(--ui-c-fourthly-value), 0.15) 90deg,\n var(--ui-c-fourthly) 360deg\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n animation: ring-spin 1.2s linear infinite;\n }\n\n /* linear — an indeterminate horizontal bar with a segment sliding across a\n faint track. */\n ._loader._-linear {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-stroke, 0.6rem);\n border-radius: 999px;\n background: rgba(var(--ui-c-fourthly-value), 0.15);\n overflow: hidden;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 40%;\n border-radius: inherit;\n background: var(--ui-c-fourthly);\n animation: linear-slide 1.2s ease-in-out infinite;\n }\n }\n\n /* disco — a full rainbow ring that spins while its hue rotates. */\n ._loader._-disco {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n #ff0040,\n #ff9500,\n #ffe600,\n #33dd55,\n #00c8ff,\n #4455ff,\n #cc44ff,\n #ff0040\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n animation:\n ring-spin 1s linear infinite,\n disco-hue 3s linear infinite;\n }\n\n /* disco centre sparkle — a glowing dot blinking in the hollow ring centre\n while cycling through party colours. Sized off the ring so it stays in\n proportion at any size. */\n ._disco-blink {\n position: absolute;\n top: 50%;\n left: 50%;\n width: calc(var(--ui-spinner-size, 26rem) * 0.192);\n height: calc(var(--ui-spinner-size, 26rem) * 0.192);\n /* Centred with margins, NOT with a translate: the blink animation owns\n `transform` (it scales), and a transform set here would be overwritten\n the moment the animation starts — the dot would jump into the corner. */\n margin-top: calc(var(--ui-spinner-size, 26rem) * -0.096);\n margin-left: calc(var(--ui-spinner-size, 26rem) * -0.096);\n border-radius: 50%;\n animation:\n disco-blink 0.5s ease-in-out infinite,\n disco-party 1.5s linear infinite;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ui-electron-loader ._loader._-ring,\n ui-electron-loader ._loader._-disco {\n animation-duration: 2s;\n }\n ui-electron-loader ._loader._-linear::before {\n animation-duration: 2s;\n }\n ui-electron-loader ._disco-blink {\n animation-duration: 2s, 6s;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/layout/spinner/spinner.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n@keyframes pie-show-in {\n 0% {\n opacity: 0;\n }\n 10% {\n opacity: 1;\n }\n}\n\n@keyframes pie-show-out {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n@keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n}\n\n@keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n}\n\n@keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n}\n\n/* ---------------------------------------------------------------------------- */\n/* Defaut */\n/* ---------------------------------------------------------------------------- */\n\n._spinner {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(var(--ui-c-background-value), 0.6);\n z-index: 1000;\n\n &._debug {\n position: absolute;\n }\n\n &.showIn {\n animation-name: pie-show-in;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n /*z-index: 1000;*/\n }\n\n &.showOut {\n animation-name: pie-show-out;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n }\n\n /* The animation moved into `ui-electron-loader` (one copy for the global\n spinner and the inline one). What stays here is where it sits: centred\n in the overlay, on top of the backdrop. */\n ui-electron-loader {\n position: absolute;\n }\n\n ._content {\n z-index: 1001;\n display: flex;\n flex-flow: column;\n gap: calc(var(--ui-spacer) * 0.5);\n max-width: 80%;\n background-color: var(--ui-c-background);\n padding: calc(var(--ui-spacer) * 0.25);\n border-radius: var(--ui-border-radius);\n border:1px solid var(--ui-c-default);\n ._message {\n display: flex;\n justify-content: flex-end;\n }\n ._actions {\n padding-top: calc(var(--ui-spacer) * 0.5);\n border-top: var(--ui-border-width) solid var(--ui-c-default);\n display: flex;\n justify-content: flex-end;\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1043],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>UiElectronLoaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var loader_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.css?ngResource"),loader_componentngResource_default=__webpack_require__.n(loader_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiElectronLoaderComponent=class UiElectronLoaderComponent{type=(0,core.input)("ring");static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}]}};UiElectronLoaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-loader",template:'\x3c!-- Decoration, not information: whatever is loading says so in words\n elsewhere, and a screen reader has nothing to gain from a spinning\n gradient. --\x3e\n<span class="_loader" [class]="\'_-\' + type()" aria-hidden="true"></span>\n@if (type() === \'disco\') {\n <span class="_disco-blink" aria-hidden="true"></span>\n}\n',encapsulation:_debug_node_chunk.gXe.None,styles:[loader_componentngResource_default()]})],UiElectronLoaderComponent)},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Spinner:()=>Spinner,__namedExportsOrder:()=>__namedExportsOrder,default:()=>spinner_component_stories});var fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var spinner_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/spinner/spinner.component.css?ngResource"),spinner_componentngResource_default=__webpack_require__.n(spinner_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),Subscription=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subscription.js"),loader_component=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");let UiLayoutSpinnerService=class UiLayoutSpinnerService{status=new BehaviorSubject.t({show:"none"});hideTimeout=null;delay=0;showTimeout=null;setDelay(ms){this.delay=Math.max(0,ms)}startSpinner(){this.cancelPendingHide(),this.cancelPendingShow(),this.delay>0?this.showTimeout=setTimeout(()=>{this.showTimeout=null,this.status.next({show:"showIn"})},this.delay):this.status.next({show:"showIn"})}messageSpinner(content){this.cancelPendingHide(),this.cancelPendingShow(),this.status.next({content,show:"error"})}successSpinner(){this.status.getValue().content||this.dismissSpinner()}dismissSpinner(){this.cancelPendingHide(),this.cancelPendingShow(),"none"!==this.status.getValue().show&&(this.status.next({show:"showOut"}),this.hideTimeout=setTimeout(()=>{this.hideTimeout=null,this.status.next({show:"none"})},1200))}cancelPendingHide(){null!==this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}cancelPendingShow(){null!==this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}getSpinner(){return this.status}};UiLayoutSpinnerService=(0,tslib_es6.Cg)([(0,_debug_node_chunk._qm)({providedIn:"root"})],UiLayoutSpinnerService);let UiLayoutSpinnerComponent=class UiLayoutSpinnerComponent{spinnerService=(0,_effect_chunk2.WQX)(UiLayoutSpinnerService);debug=(0,core.input)(!1);close=(0,core.input)(!1);type=(0,core.input)("ring");delay=(0,core.input)(0);status=(0,_effect_chunk2.vPA)({show:"none"});subscription=new Subscription.yU;constructor(){(0,_effect_chunk2.QZP)(()=>this.spinnerService.setDelay(this.delay()))}ngOnInit(){this.subscription.add(this.spinnerService.getSpinner().subscribe(show=>this.status.set(show)))}ngOnDestroy(){this.subscription.unsubscribe()}static ctorParameters=()=>[];static propDecorators={debug:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"debug",required:!1,transform:void 0}]}],close:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"close",required:!1,transform:void 0}]}],type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}],delay:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"delay",required:!1,transform:void 0}]}]}};UiLayoutSpinnerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-spinner",template:'@if (debug()) {\n <div class="ui-debug">\n <button class="ui" (click)="spinnerService.startSpinner()">Start</button>\n <button class="ui" (click)="spinnerService.successSpinner()">Success</button>\n <button class="ui" (click)="spinnerService.messageSpinner(\'Info message\')">Message</button>\n <span>\n {{ status() | json }}\n </span>\n </div>\n}\n\n@if (status().show !== \'none\') {\n <div class="_spinner" [class]="status().show">\n \x3c!-- The animation is the electron\'s, here and in `ui-inline-spinner`:\n one set of keyframes, one set of masks, two places that show them. --\x3e\n <ui-electron-loader [type]="type()" />\n @if (status().content) {\n <div class="_content">\n <span [innerHTML]="status().content"></span>\n @if (close()) {\n <div class="_actions">\n <button class="ui" (click)="spinnerService.dismissSpinner()">OK</button>\n </div>\n }\n </div>\n }\n </div>\n}\n',imports:[_common_module_chunk.TG,loader_component.p],styles:[spinner_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiLayoutSpinnerComponent);const spinner_component_stories={title:"Layout/Spinner",decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,fesm2022_forms.YN,UiLayoutSpinnerComponent]})],argTypes:{debug:{control:"boolean"},close:{control:"boolean"},type:{control:"select",options:["ring","linear","disco"]},delay:{control:{type:"range",min:0,max:3e3,step:100}}},args:{debug:!0,close:!0,type:"ring",delay:0}},Spinner={args:{debug:!0,close:!0,type:"ring",delay:0},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <ui-layout-spinner [close]="close" [debug]="debug" [type]="type" [delay]="delay"></ui-layout-spinner>\n '})},__namedExportsOrder=["Spinner"];Spinner.parameters={...Spinner.parameters,docs:{...Spinner.parameters?.docs,source:{originalSource:'{\n args: {\n debug: true,\n close: true,\n type: \'ring\',\n delay: 0\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <ui-layout-spinner [close]="close" [debug]="debug" [type]="type" [delay]="delay"></ui-layout-spinner>\n `\n };\n }\n}',...Spinner.parameters?.docs?.source}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/_electrons/loader/loader.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n @keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n }\n\n @keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n }\n\n @keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n @keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n }\n\n /* The box the animation lives in — the positioning context for the disco\n sparkle, and nothing more. It takes no size of its own: each variant\n brings its own shape (two discs and a bar), and the host shrink-wraps\n whichever one it holds. Sizing the host instead would need a rule that\n asks which variant is inside, and that is a question the box should not\n have to ask.\n\n `--ui-spinner-size` is the named hook (see the geometry rule): unset, it\n renders the 26rem the global spinner has always drawn. */\n ui-electron-loader {\n position: relative;\n display: inline-block;\n }\n\n /* `display: block` is not decoration: the template draws with spans, and\n width and height do not apply to an inline box — the animation would\n compute its size and render nothing at all. */\n ._loader {\n position: relative;\n display: block;\n }\n\n /* ring — a conic-gradient comet tail masked into an annulus (hollow\n centre) that rotates seamlessly. */\n ._loader._-ring {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n rgba(var(--ui-c-fourthly-value), 0) 0deg,\n rgba(var(--ui-c-fourthly-value), 0.15) 90deg,\n var(--ui-c-fourthly) 360deg\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n animation: ring-spin 1.2s linear infinite;\n }\n\n /* linear — an indeterminate horizontal bar with a segment sliding across a\n faint track. */\n ._loader._-linear {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-stroke, 0.6rem);\n border-radius: 999px;\n background: rgba(var(--ui-c-fourthly-value), 0.15);\n overflow: hidden;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 40%;\n border-radius: inherit;\n background: var(--ui-c-fourthly);\n animation: linear-slide 1.2s ease-in-out infinite;\n }\n }\n\n /* disco — a full rainbow ring that spins while its hue rotates. */\n ._loader._-disco {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n #ff0040,\n #ff9500,\n #ffe600,\n #33dd55,\n #00c8ff,\n #4455ff,\n #cc44ff,\n #ff0040\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n animation:\n ring-spin 1s linear infinite,\n disco-hue 3s linear infinite;\n }\n\n /* disco centre sparkle — a glowing dot blinking in the hollow ring centre\n while cycling through party colours. Sized off the ring so it stays in\n proportion at any size. */\n ._disco-blink {\n position: absolute;\n top: 50%;\n left: 50%;\n width: calc(var(--ui-spinner-size, 26rem) * 0.192);\n height: calc(var(--ui-spinner-size, 26rem) * 0.192);\n /* Centred with margins, NOT with a translate: the blink animation owns\n `transform` (it scales), and a transform set here would be overwritten\n the moment the animation starts — the dot would jump into the corner. */\n margin-top: calc(var(--ui-spinner-size, 26rem) * -0.096);\n margin-left: calc(var(--ui-spinner-size, 26rem) * -0.096);\n border-radius: 50%;\n animation:\n disco-blink 0.5s ease-in-out infinite,\n disco-party 1.5s linear infinite;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ui-electron-loader ._loader._-ring,\n ui-electron-loader ._loader._-disco {\n animation-duration: 2s;\n }\n ui-electron-loader ._loader._-linear::before {\n animation-duration: 2s;\n }\n ui-electron-loader ._disco-blink {\n animation-duration: 2s, 6s;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/layout/spinner/spinner.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n@keyframes pie-show-in {\n 0% {\n opacity: 0;\n }\n 10% {\n opacity: 1;\n }\n}\n\n@keyframes pie-show-out {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n@keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n}\n\n@keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n}\n\n@keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n}\n\n/* ---------------------------------------------------------------------------- */\n/* Defaut */\n/* ---------------------------------------------------------------------------- */\n\n._spinner {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(var(--ui-c-background-value), 0.6);\n z-index: 1000;\n\n &._debug {\n position: absolute;\n }\n\n &.showIn {\n animation-name: pie-show-in;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n /*z-index: 1000;*/\n }\n\n &.showOut {\n animation-name: pie-show-out;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n }\n\n /* The animation moved into `ui-electron-loader` (one copy for the global\n spinner and the inline one). What stays here is where it sits: centred\n in the overlay, on top of the backdrop. */\n ui-electron-loader {\n position: absolute;\n }\n\n ._content {\n z-index: 1001;\n display: flex;\n flex-flow: column;\n gap: calc(var(--ui-spacer) * 0.5);\n max-width: 80%;\n background-color: var(--ui-c-background);\n padding: calc(var(--ui-spacer) * 0.25);\n border-radius: var(--ui-border-radius);\n border:1px solid var(--ui-c-default);\n ._message {\n display: flex;\n justify-content: flex-end;\n }\n ._actions {\n padding-top: calc(var(--ui-spacer) * 0.5);\n border-top: var(--ui-border-width) solid var(--ui-c-default);\n display: flex;\n justify-content: flex-end;\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|
package/storybook/project.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1788695279684,"userSince":1772191366759,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"knownPackages":{"testPackages":{"@ngneat/spectator":"22.1.0","@playwright/test":"1.61.1","@vitest/coverage-v8":"4.1.10","vitest":"4.1.10"},"stylingPackages":{"tailwindcss":"^4.3.2"}},"hasRouterPackage":true,"monorepo":"Nx","packageManager":{"type":"npm","agent":"npm","nodeLinker":"node_modules"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/angular","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/angular","portableStoriesFileCount":0,"applicationFileCount":6,"storybookVersion":"10.4.6","storybookVersionSpecifier":"^10.4.6","language":"typescript","storybookPackages":{"@nx/storybook":{"version":"23.0.1"},"@storybook/angular":{"version":"10.4.6"},"eslint-plugin-storybook":{"version":"10.4.6"},"storybook":{}},"addons":{"@storybook/addon-docs":{"version":"10.4.6"}},"packageJsonType":"unknown"}
|
package/storybook/{runtime~main.ec39977b.iframe.bundle.js → runtime~main.805054f3.iframe.bundle.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(!1&priority||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();void 0!==r&&(result=r)}}return result}priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;("object"==typeof current||"function"==typeof current)&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>def[key]=()=>value[key]);return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises),[])),__webpack_require__.u=chunkId=>(({128:"home-overview-mdx",166:"forms-autofocus-docs-mdx",365:"layout-spinner-docs-mdx",533:"atoms-inline-spinner-inline-spinner-component-stories",943:"examples-image-grid-slider-docs-mdx",947:"layout-splitter-docs-mdx",977:"forms-switch-docs-mdx",1043:"layout-spinner-spinner-component-stories",1165:"styling-tags-tags-component-stories",1296:"examples-docs-mdx",1322:"atoms-_electrons-form-error-message-form-error-message-component-stories",1327:"cdk-components-drag-and-drop-splitter-docs-mdx",1365:"_external-mwork-music-player-mwork-music-player-stories",1461:"atoms-image-slider-image-slider-component-stories",1481:"examples-layout-docs-mdx",1686:"forms-input-input-component-stories",1809:"atoms-clock-clock-component-stories",1838:"styling-colors-docs-mdx",1860:"forms-autocomplete-autocomplete-component-stories",1927:"styling-tags-docs-mdx",1954:"atoms-mosaic-docs-mdx",1977:"styling-forms-forms-component-stories",2006:"atoms-background-docs-mdx",2074:"atoms-_electrons-form-error-message-docs-mdx",2168:"layout-overlay-docs-mdx",2193:"atoms-qr-code-docs-mdx",2379:"_external-mwork-basic-interpreter-mwork-basic-interpreter-stories",2425:"atoms-chart-chart-component-stories",2690:"atoms-_electrons-loader-loader-component-stories",2831:"atoms-mosaic-mosaic-component-stories",2960:"atoms-lang-selector-docs-mdx",3007:"atoms-copy-value-docs-mdx",3045:"atoms-placeholder-placeholder-component-stories",3048:"forms-switch-switch-component-stories",3073:"layout-top-scroll-bottom-docs-mdx",3143:"home-tips-mdx",3146:"atoms-image-grid-docs-mdx",3151:"layout-media-screen-docs-mdx",3190:"molecules-image-editor-docs-mdx",3260:"_external-mwork-music-player-docs-mdx",3277:"atoms-lang-selector-lang-selector-component-stories",3338:"styling-ui-tags-docs-mdx",3550:"atoms-reader-doc-docs-mdx",3651:"layout-media-screen-media-screen-component-stories",3678:"forms-checkbox-checkbox-component-stories",3685:"atoms-rating-rating-component-stories",3752:"_external-mwork-basic-interpreter-docs-mdx",3767:"home-guide-mdx",3837:"layout-main-docs-mdx",3842:"home-usage-mdx",3853:"atoms-copy-value-copy-value-component-stories",3857:"styling-forms-docs-mdx",3925:"atoms-thumb-thumb-component-stories",3999:"atoms-reader-doc-reader-doc-component-stories",4067:"atoms-text-animate-docs-mdx",4271:"cdk-components-drag-and-drop-splitter-splitter-component-stories",4320:"atoms-buzzer-docs-mdx",4365:"atoms-qr-code-qr-code-component-stories",4447:"atoms-timer-docs-mdx",4713:"atoms-typewriter-typewriter-component-stories",4806:"atoms-typewriter-docs-mdx",4814:"atoms-_electrons-loader-docs-mdx",4855:"atoms-background-background-component-stories",4939:"forms-input-docs-mdx",4947:"atoms-card-card-component-stories",5084:"atoms-clock-docs-mdx",5233:"styling-ui-tags-ui-tags-component-stories",5370:"atoms-thumb-docs-mdx",5493:"examples-table-edit-focus-docs-mdx",5684:"examples-layout-layout-stories",5995:"styling-colors-colors-component-stories",6020:"forms-chip-chip-component-stories",6189:"atoms-timer-timer-component-stories",6203:"atoms-placeholder-docs-mdx",6212:"cdk-components-table-table-component-stories",6252:"forms-slider-docs-mdx",6331:"layout-splitter-splitter-component-stories",6354:"forms-validators-validators-component-stories",6501:"_external-mwork-banner-docs-mdx",6569:"cdk-components-table-docs-mdx",6659:"layout-overlay-overlay-component-stories",6768:"examples-transloco-docs-mdx",6892:"layout-tabs-docs-mdx",6922:"forms-slider-slider-component-stories",6978:"atoms-chart-docs-mdx",7363:"forms-chip-docs-mdx",7419:"atoms-buzzer-buzzer-component-stories",7586:"forms-validators-docs-mdx",7600:"styling-layers-docs-mdx",7653:"styling-icons-icons-component-stories",7683:"layout-main-main-component-stories",7819:"atoms-rating-docs-mdx",7837:"forms-autocomplete-docs-mdx",7867:"_external-mwork-banner-mwork-banner-stories",7877:"atoms-text-animate-text-animate-component-stories",7893:"styling-css-variables-docs-mdx",7947:"atoms-image-slider-docs-mdx",8039:"atoms-image-grid-image-grid-component-stories",8092:"styling-icons-docs-mdx",8108:"forms-checkbox-docs-mdx",8180:"molecules-image-editor-image-editor-component-stories",8753:"layout-tabs-tabs-component-stories",8852:"atoms-card-docs-mdx",8931:"atoms-inline-spinner-docs-mdx",8938:"examples-image-grid-slider-image-grid-slider-stories",9042:"layout-overlay-header-docs-mdx",9044:"examples-transloco-transloco-component-stories",9217:"atoms-barcode-barcode-component-stories",9236:"forms-autofocus-autofocus-stories",9240:"layout-overlay-header-header-component-stories",9475:"layout-nav-nav-component-stories",9652:"examples-burger-menu-stories",9653:"layout-nav-docs-mdx",9779:"layout-top-scroll-bottom-top-scroll-bottom-component-stories",9836:"examples-table-edit-focus-table-edit-focus-stories",9918:"atoms-barcode-docs-mdx"}[chunkId]||chunkId)+"."+{128:"00ee5070",166:"ce239261",365:"a792dea6",533:"76f59aa8",660:"18f0458e",813:"805c1e5f",871:"5a781df6",943:"e56160ef",947:"6b0e4fd2",973:"67f44bb0",977:"832228cb",1043:"69ae1389",1165:"7a64bd20",1183:"fafda52d",1255:"2abec879",1296:"1a9d8db0",1322:"7f749acc",1327:"0aa5b787",1365:"26c06b83",1461:"484b9c41",1481:"d7d6f90b",1516:"52d2dae7",1686:"b68ea104",1809:"d1464731",1838:"3f513a8d",1860:"443544e0",1927:"ce4814c9",1954:"738f012c",1977:"8af76278",2006:"0e861f2c",2033:"986e1406",2074:"9382b0cb",2089:"d5a3e21e",2096:"431fc8f5",2127:"d7de271b",2168:"a680859b",2193:"c47f67c9",2228:"7013a637",2249:"6e6782ab",2379:"3252a9b8",2425:"5247b7cb",2621:"b3ba2291",2639:"7f497882",2690:"8edadc42",2831:"c2ec95f2",2844:"c9f47654",2960:"0487b819",2971:"036e7a14",3007:"fbe168e2",3045:"bc221534",3048:"bf67d7c9",3073:"42c18a0d",3143:"24dc3e35",3146:"9df158a9",3151:"c382b73b",3190:"dba18ee6",3260:"46f4887e",3277:"41d7efd1",3338:"d94258ab",3550:"f5375a37",3651:"7941c064",3678:"df3196e5",3685:"982db47d",3752:"81168b4c",3767:"2f32ffc1",3837:"445bce2a",3842:"fc05feec",3853:"58d3956a",3857:"649ae948",3899:"55560628",3925:"f7e9dbae",3968:"3c931220",3999:"8ccd618b",4067:"152fc1bd",4255:"eeeaf087",4271:"286b5171",4320:"f9daf952",4365:"5018e2b0",4425:"7f753a38",4447:"686f0392",4476:"1b913b82",4495:"d1c8cc8d",4555:"c83b35c3",4713:"3a4f5356",4806:"a6c3f6b0",4814:"e8bb9642",4855:"b6b50c0c",4935:"f88465d9",4939:"56627297",4947:"065b34e9",5084:"6864626c",5233:"2ec3109b",5370:"525fc046",5493:"55960e55",5568:"be85a9aa",5684:"05cd891f",5944:"810cb147",5995:"58031f40",6020:"90a45ea4",6115:"7f1470ef",6169:"eaeed989",6189:"9bee1037",6202:"b8ca0e90",6203:"7d376291",6212:"db9212fd",6252:"68b9e21c",6331:"46b8b112",6354:"9525f97b",6501:"f33bbf56",6569:"74bd247c",6659:"01f6cd84",6768:"46447d84",6824:"4b8f7b0a",6892:"aad59db3",6922:"058fb9b1",6978:"29f10b89",7316:"5b024e94",7363:"89a48075",7419:"13ee130d",7586:"e11fe615",7600:"d810a2c8",7653:"2dd8c6f8",7683:"788c0c54",7749:"2a853795",7819:"d7df9a29",7837:"698eef62",7867:"d44f6917",7877:"8041c0f1",7893:"5a090407",7947:"4ae341f5",8039:"8290e900",8051:"dbaf9937",8092:"e3ed5ebd",8108:"890972f3",8180:"fbfeff1b",8448:"1baeb046",8753:"8602cefa",8819:"8e56201f",8852:"f8b63920",8931:"8b942147",8938:"cda91b79",9042:"6eb6e326",9044:"5baea2e2",9045:"46ed3f61",9217:"dc462559",9236:"2e94d887",9240:"5eaef192",9475:"766738fc",9560:"668052f3",9652:"0a083a75",9653:"92eac076",9779:"9ee7055f",9836:"c79e214a",9850:"5a17be74",9918:"78b610dc",9946:"6fea16dc"}[chunkId]+".iframe.bundle.js"),__webpack_require__.miniCssF=chunkId=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i<scripts.length;i++){var s=scripts[i];if(s.getAttribute("src")==url||s.getAttribute("data-webpack")=="moja-work:"+key){script=s;break}}script||(needAttach=!0,(script=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&script.setAttribute("nonce",__webpack_require__.nc),script.setAttribute("data-webpack","moja-work:"+key),script.src=url),inProgress[url]=[done];var onScriptComplete=(prev,event)=>{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach(fn=>fn(event)),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.p="",(()=>{var installedChunks={5354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(5354!=chunkId){var promise=new Promise((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]);promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}},"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some(id=>0!==installedChunks[id])){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunkmoja_work=self.webpackChunkmoja_work||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})(),__webpack_require__.nc=void 0})();
|
|
1
|
+
(()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(!1&priority||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();void 0!==r&&(result=r)}}return result}priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;("object"==typeof current||"function"==typeof current)&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>def[key]=()=>value[key]);return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises),[])),__webpack_require__.u=chunkId=>(({128:"home-overview-mdx",166:"forms-autofocus-docs-mdx",365:"layout-spinner-docs-mdx",533:"atoms-inline-spinner-inline-spinner-component-stories",943:"examples-image-grid-slider-docs-mdx",947:"layout-splitter-docs-mdx",977:"forms-switch-docs-mdx",1043:"layout-spinner-spinner-component-stories",1165:"styling-tags-tags-component-stories",1296:"examples-docs-mdx",1322:"atoms-_electrons-form-error-message-form-error-message-component-stories",1327:"cdk-components-drag-and-drop-splitter-docs-mdx",1365:"_external-mwork-music-player-mwork-music-player-stories",1461:"atoms-image-slider-image-slider-component-stories",1481:"examples-layout-docs-mdx",1686:"forms-input-input-component-stories",1809:"atoms-clock-clock-component-stories",1838:"styling-colors-docs-mdx",1860:"forms-autocomplete-autocomplete-component-stories",1927:"styling-tags-docs-mdx",1954:"atoms-mosaic-docs-mdx",1977:"styling-forms-forms-component-stories",2006:"atoms-background-docs-mdx",2074:"atoms-_electrons-form-error-message-docs-mdx",2168:"layout-overlay-docs-mdx",2193:"atoms-qr-code-docs-mdx",2379:"_external-mwork-basic-interpreter-mwork-basic-interpreter-stories",2425:"atoms-chart-chart-component-stories",2690:"atoms-_electrons-loader-loader-component-stories",2831:"atoms-mosaic-mosaic-component-stories",2960:"atoms-lang-selector-docs-mdx",3007:"atoms-copy-value-docs-mdx",3045:"atoms-placeholder-placeholder-component-stories",3048:"forms-switch-switch-component-stories",3073:"layout-top-scroll-bottom-docs-mdx",3143:"home-tips-mdx",3146:"atoms-image-grid-docs-mdx",3151:"layout-media-screen-docs-mdx",3190:"molecules-image-editor-docs-mdx",3260:"_external-mwork-music-player-docs-mdx",3277:"atoms-lang-selector-lang-selector-component-stories",3338:"styling-ui-tags-docs-mdx",3550:"atoms-reader-doc-docs-mdx",3651:"layout-media-screen-media-screen-component-stories",3678:"forms-checkbox-checkbox-component-stories",3685:"atoms-rating-rating-component-stories",3752:"_external-mwork-basic-interpreter-docs-mdx",3767:"home-guide-mdx",3837:"layout-main-docs-mdx",3842:"home-usage-mdx",3853:"atoms-copy-value-copy-value-component-stories",3857:"styling-forms-docs-mdx",3925:"atoms-thumb-thumb-component-stories",3999:"atoms-reader-doc-reader-doc-component-stories",4067:"atoms-text-animate-docs-mdx",4271:"cdk-components-drag-and-drop-splitter-splitter-component-stories",4320:"atoms-buzzer-docs-mdx",4365:"atoms-qr-code-qr-code-component-stories",4447:"atoms-timer-docs-mdx",4713:"atoms-typewriter-typewriter-component-stories",4806:"atoms-typewriter-docs-mdx",4814:"atoms-_electrons-loader-docs-mdx",4855:"atoms-background-background-component-stories",4939:"forms-input-docs-mdx",4947:"atoms-card-card-component-stories",5084:"atoms-clock-docs-mdx",5233:"styling-ui-tags-ui-tags-component-stories",5370:"atoms-thumb-docs-mdx",5493:"examples-table-edit-focus-docs-mdx",5684:"examples-layout-layout-stories",5995:"styling-colors-colors-component-stories",6020:"forms-chip-chip-component-stories",6189:"atoms-timer-timer-component-stories",6203:"atoms-placeholder-docs-mdx",6212:"cdk-components-table-table-component-stories",6252:"forms-slider-docs-mdx",6331:"layout-splitter-splitter-component-stories",6354:"forms-validators-validators-component-stories",6501:"_external-mwork-banner-docs-mdx",6569:"cdk-components-table-docs-mdx",6659:"layout-overlay-overlay-component-stories",6768:"examples-transloco-docs-mdx",6892:"layout-tabs-docs-mdx",6922:"forms-slider-slider-component-stories",6978:"atoms-chart-docs-mdx",7363:"forms-chip-docs-mdx",7419:"atoms-buzzer-buzzer-component-stories",7586:"forms-validators-docs-mdx",7600:"styling-layers-docs-mdx",7653:"styling-icons-icons-component-stories",7683:"layout-main-main-component-stories",7819:"atoms-rating-docs-mdx",7837:"forms-autocomplete-docs-mdx",7867:"_external-mwork-banner-mwork-banner-stories",7877:"atoms-text-animate-text-animate-component-stories",7893:"styling-css-variables-docs-mdx",7947:"atoms-image-slider-docs-mdx",8039:"atoms-image-grid-image-grid-component-stories",8092:"styling-icons-docs-mdx",8108:"forms-checkbox-docs-mdx",8180:"molecules-image-editor-image-editor-component-stories",8753:"layout-tabs-tabs-component-stories",8852:"atoms-card-docs-mdx",8931:"atoms-inline-spinner-docs-mdx",8938:"examples-image-grid-slider-image-grid-slider-stories",9042:"layout-overlay-header-docs-mdx",9044:"examples-transloco-transloco-component-stories",9217:"atoms-barcode-barcode-component-stories",9236:"forms-autofocus-autofocus-stories",9240:"layout-overlay-header-header-component-stories",9475:"layout-nav-nav-component-stories",9652:"examples-burger-menu-stories",9653:"layout-nav-docs-mdx",9779:"layout-top-scroll-bottom-top-scroll-bottom-component-stories",9836:"examples-table-edit-focus-table-edit-focus-stories",9918:"atoms-barcode-docs-mdx"}[chunkId]||chunkId)+"."+{128:"9b160561",166:"ce239261",365:"d4e5afec",533:"76f59aa8",660:"18f0458e",813:"805c1e5f",871:"5a781df6",943:"e56160ef",947:"6b0e4fd2",973:"67f44bb0",977:"832228cb",1043:"6b27a0bf",1165:"7a64bd20",1183:"fafda52d",1255:"2abec879",1296:"1a9d8db0",1322:"7f749acc",1327:"0aa5b787",1365:"26c06b83",1461:"484b9c41",1481:"d7d6f90b",1516:"52d2dae7",1686:"b68ea104",1809:"d1464731",1838:"3f513a8d",1860:"443544e0",1927:"ce4814c9",1954:"738f012c",1977:"8af76278",2006:"0e861f2c",2033:"986e1406",2074:"9382b0cb",2089:"d5a3e21e",2096:"431fc8f5",2127:"d7de271b",2168:"a680859b",2193:"c47f67c9",2228:"7013a637",2249:"6e6782ab",2379:"3252a9b8",2425:"5247b7cb",2621:"b3ba2291",2639:"7f497882",2690:"8edadc42",2831:"c2ec95f2",2844:"c9f47654",2960:"0487b819",2971:"036e7a14",3007:"fbe168e2",3045:"bc221534",3048:"bf67d7c9",3073:"42c18a0d",3143:"24dc3e35",3146:"9df158a9",3151:"c382b73b",3190:"dba18ee6",3260:"46f4887e",3277:"41d7efd1",3338:"d94258ab",3550:"f5375a37",3651:"7941c064",3678:"df3196e5",3685:"982db47d",3752:"81168b4c",3767:"2f32ffc1",3837:"445bce2a",3842:"fc05feec",3853:"58d3956a",3857:"649ae948",3899:"55560628",3925:"f7e9dbae",3968:"3c931220",3999:"8ccd618b",4067:"152fc1bd",4255:"eeeaf087",4271:"286b5171",4320:"f9daf952",4365:"5018e2b0",4425:"7f753a38",4447:"686f0392",4476:"1b913b82",4495:"d1c8cc8d",4555:"574c843f",4713:"3a4f5356",4806:"a6c3f6b0",4814:"e8bb9642",4855:"b6b50c0c",4935:"f88465d9",4939:"56627297",4947:"065b34e9",5084:"6864626c",5233:"2ec3109b",5370:"525fc046",5493:"55960e55",5568:"be85a9aa",5684:"05cd891f",5944:"810cb147",5995:"58031f40",6020:"90a45ea4",6115:"7f1470ef",6169:"eaeed989",6189:"9bee1037",6202:"b8ca0e90",6203:"7d376291",6212:"db9212fd",6252:"68b9e21c",6331:"46b8b112",6354:"9525f97b",6501:"f33bbf56",6569:"74bd247c",6659:"01f6cd84",6768:"46447d84",6824:"4b8f7b0a",6892:"aad59db3",6922:"058fb9b1",6978:"29f10b89",7316:"5b024e94",7363:"89a48075",7419:"13ee130d",7586:"e11fe615",7600:"d810a2c8",7653:"2dd8c6f8",7683:"788c0c54",7749:"2a853795",7819:"d7df9a29",7837:"698eef62",7867:"d44f6917",7877:"8041c0f1",7893:"5a090407",7947:"4ae341f5",8039:"8290e900",8051:"dbaf9937",8092:"e3ed5ebd",8108:"890972f3",8180:"fbfeff1b",8448:"1baeb046",8753:"8602cefa",8819:"8e56201f",8852:"f8b63920",8931:"8b942147",8938:"cda91b79",9042:"6eb6e326",9044:"5baea2e2",9045:"46ed3f61",9217:"dc462559",9236:"2e94d887",9240:"5eaef192",9475:"766738fc",9560:"668052f3",9652:"0a083a75",9653:"92eac076",9779:"9ee7055f",9836:"c79e214a",9850:"5a17be74",9918:"78b610dc",9946:"6fea16dc"}[chunkId]+".iframe.bundle.js"),__webpack_require__.miniCssF=chunkId=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i<scripts.length;i++){var s=scripts[i];if(s.getAttribute("src")==url||s.getAttribute("data-webpack")=="moja-work:"+key){script=s;break}}script||(needAttach=!0,(script=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&script.setAttribute("nonce",__webpack_require__.nc),script.setAttribute("data-webpack","moja-work:"+key),script.src=url),inProgress[url]=[done];var onScriptComplete=(prev,event)=>{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach(fn=>fn(event)),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.p="",(()=>{var installedChunks={5354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(5354!=chunkId){var promise=new Promise((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]);promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}},"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some(id=>0!==installedChunks[id])){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunkmoja_work=self.webpackChunkmoja_work||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})(),__webpack_require__.nc=void 0})();
|
package/storybook/version.json
CHANGED
package/version.json
CHANGED
|
@@ -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/atoms/_electrons/loader/loader.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>UiElectronLoaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var loader_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.css?ngResource"),loader_componentngResource_default=__webpack_require__.n(loader_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiElectronLoaderComponent=class UiElectronLoaderComponent{type=(0,core.input)("ring");static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}]}};UiElectronLoaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-loader",template:'\x3c!-- Decoration, not information: whatever is loading says so in words\n elsewhere, and a screen reader has nothing to gain from a spinning\n gradient. --\x3e\n<span class="_loader" [class]="\'_-\' + type()" aria-hidden="true"></span>\n@if (type() === \'disco\') {\n <span class="_disco-blink" aria-hidden="true"></span>\n}\n',encapsulation:_debug_node_chunk.gXe.None,styles:[loader_componentngResource_default()]})],UiElectronLoaderComponent)},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/layout/spinner/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_layout_spinner_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-layout-spinner.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_spinner_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"layout-spinner",children:"Layout: Spinner"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A global loading indicator that provides visual feedback during asynchronous operations."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A global loading indicator, placed once at the application root and switched\nthrough ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutSpinnerService"})," from anywhere — an HTTP interceptor, typically.\nIt shows, animates out and hides; it does not count requests, time out or block\ninput on its own, and it is not the spinner for one component's own loading\nstate."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["That last sentence now has an address: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-inline-spinner"})," is the one for a\nsingle area. Both draw the same animation — it lives in an internal electron\nthat each of them builds in, so the library holds one set of keyframes rather\nthan two that drift. What stays here is what makes this one global: the\nbackdrop, the message box with its OK button, and the state coming from the\nservice."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-layout-spinner",entry:_guide_ui_layout_spinner_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"overview",children:"Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutSpinnerComponent"})," is a singleton component typically placed at the application root (e.g., ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"app.component.html"}),"). It's controlled via the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutSpinnerService"}),", making it easy to trigger from anywhere in the app, such as an HTTP interceptor."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"example-spinner",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-spinner--spinner",children:"Example: Spinner"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"arguments-props",children:"Arguments (Props)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"inputs",children:"Inputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"@Input"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"debug"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["If ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"}),", displays a debug navigation to manually test spinner states."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"close"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["If ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"}),", shows a close button to manually dismiss the spinner."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"type"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ring' | 'linear' | 'disco'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'ring'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Selects the loading animation: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ring"})," (rotating gradient ring), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"linear"})," (indeterminate sliding bar), or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"disco"})," (spinning rainbow ring with hue rotation and a blinking sparkle in the centre)."]})]})]})]}),"\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_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Spinner:()=>Spinner,__namedExportsOrder:()=>__namedExportsOrder,default:()=>spinner_component_stories});var fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var spinner_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/spinner/spinner.component.css?ngResource"),spinner_componentngResource_default=__webpack_require__.n(spinner_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),Subscription=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subscription.js"),loader_component=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");let UiLayoutSpinnerService=class UiLayoutSpinnerService{status=new BehaviorSubject.t({show:"none"});hideTimeout=null;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 \x3c!-- The animation is the electron\'s, here and in `ui-inline-spinner`:\n one set of keyframes, one set of masks, two places that show them. --\x3e\n <ui-electron-loader [type]="type()" />\n @if (status().content) {\n <div class="_content">\n <span [innerHTML]="status().content"></span>\n @if (close()) {\n <div class="_actions">\n <button class="ui" (click)="spinnerService.dismissSpinner()">OK</button>\n </div>\n }\n </div>\n }\n </div>\n}\n',imports:[_common_module_chunk.TG,loader_component.p],styles:[spinner_componentngResource_default()]})],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/atoms/_electrons/loader/loader.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n @keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n }\n\n @keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n }\n\n @keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n @keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n }\n\n /* The box the animation lives in — the positioning context for the disco\n sparkle, and nothing more. It takes no size of its own: each variant\n brings its own shape (two discs and a bar), and the host shrink-wraps\n whichever one it holds. Sizing the host instead would need a rule that\n asks which variant is inside, and that is a question the box should not\n have to ask.\n\n `--ui-spinner-size` is the named hook (see the geometry rule): unset, it\n renders the 26rem the global spinner has always drawn. */\n ui-electron-loader {\n position: relative;\n display: inline-block;\n }\n\n /* `display: block` is not decoration: the template draws with spans, and\n width and height do not apply to an inline box — the animation would\n compute its size and render nothing at all. */\n ._loader {\n position: relative;\n display: block;\n }\n\n /* ring — a conic-gradient comet tail masked into an annulus (hollow\n centre) that rotates seamlessly. */\n ._loader._-ring {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n rgba(var(--ui-c-fourthly-value), 0) 0deg,\n rgba(var(--ui-c-fourthly-value), 0.15) 90deg,\n var(--ui-c-fourthly) 360deg\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n animation: ring-spin 1.2s linear infinite;\n }\n\n /* linear — an indeterminate horizontal bar with a segment sliding across a\n faint track. */\n ._loader._-linear {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-stroke, 0.6rem);\n border-radius: 999px;\n background: rgba(var(--ui-c-fourthly-value), 0.15);\n overflow: hidden;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 40%;\n border-radius: inherit;\n background: var(--ui-c-fourthly);\n animation: linear-slide 1.2s ease-in-out infinite;\n }\n }\n\n /* disco — a full rainbow ring that spins while its hue rotates. */\n ._loader._-disco {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n #ff0040,\n #ff9500,\n #ffe600,\n #33dd55,\n #00c8ff,\n #4455ff,\n #cc44ff,\n #ff0040\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n animation:\n ring-spin 1s linear infinite,\n disco-hue 3s linear infinite;\n }\n\n /* disco centre sparkle — a glowing dot blinking in the hollow ring centre\n while cycling through party colours. Sized off the ring so it stays in\n proportion at any size. */\n ._disco-blink {\n position: absolute;\n top: 50%;\n left: 50%;\n width: calc(var(--ui-spinner-size, 26rem) * 0.192);\n height: calc(var(--ui-spinner-size, 26rem) * 0.192);\n /* Centred with margins, NOT with a translate: the blink animation owns\n `transform` (it scales), and a transform set here would be overwritten\n the moment the animation starts — the dot would jump into the corner. */\n margin-top: calc(var(--ui-spinner-size, 26rem) * -0.096);\n margin-left: calc(var(--ui-spinner-size, 26rem) * -0.096);\n border-radius: 50%;\n animation:\n disco-blink 0.5s ease-in-out infinite,\n disco-party 1.5s linear infinite;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ui-electron-loader ._loader._-ring,\n ui-electron-loader ._loader._-disco {\n animation-duration: 2s;\n }\n ui-electron-loader ._loader._-linear::before {\n animation-duration: 2s;\n }\n ui-electron-loader ._disco-blink {\n animation-duration: 2s, 6s;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/layout/spinner/spinner.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n@keyframes pie-show-in {\n 0% {\n opacity: 0;\n }\n 10% {\n opacity: 1;\n }\n}\n\n@keyframes pie-show-out {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n@keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n}\n\n@keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n}\n\n@keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n}\n\n/* ---------------------------------------------------------------------------- */\n/* Defaut */\n/* ---------------------------------------------------------------------------- */\n\n._spinner {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(var(--ui-c-background-value), 0.6);\n z-index: 1000;\n\n &._debug {\n position: absolute;\n }\n\n &.showIn {\n animation-name: pie-show-in;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n /*z-index: 1000;*/\n }\n\n &.showOut {\n animation-name: pie-show-out;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n }\n\n /* The animation moved into `ui-electron-loader` (one copy for the global\n spinner and the inline one). What stays here is where it sits: centred\n in the overlay, on top of the backdrop. */\n ui-electron-loader {\n position: absolute;\n }\n\n ._content {\n z-index: 1001;\n display: flex;\n flex-flow: column;\n gap: calc(var(--ui-spacer) * 0.5);\n max-width: 80%;\n background-color: var(--ui-c-background);\n padding: calc(var(--ui-spacer) * 0.25);\n border-radius: var(--ui-border-radius);\n border:1px solid var(--ui-c-default);\n ._message {\n display: flex;\n justify-content: flex-end;\n }\n ._actions {\n padding-top: calc(var(--ui-spacer) * 0.5);\n border-top: var(--ui-border-width) solid var(--ui-c-default);\n display: flex;\n justify-content: flex-end;\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|
|
@@ -1 +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/atoms/_electrons/loader/loader.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>UiElectronLoaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var loader_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.css?ngResource"),loader_componentngResource_default=__webpack_require__.n(loader_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiElectronLoaderComponent=class UiElectronLoaderComponent{type=(0,core.input)("ring");static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}]}};UiElectronLoaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-loader",template:'\x3c!-- Decoration, not information: whatever is loading says so in words\n elsewhere, and a screen reader has nothing to gain from a spinning\n gradient. --\x3e\n<span class="_loader" [class]="\'_-\' + type()" aria-hidden="true"></span>\n@if (type() === \'disco\') {\n <span class="_disco-blink" aria-hidden="true"></span>\n}\n',encapsulation:_debug_node_chunk.gXe.None,styles:[loader_componentngResource_default()]})],UiElectronLoaderComponent)},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Spinner:()=>Spinner,__namedExportsOrder:()=>__namedExportsOrder,default:()=>spinner_component_stories});var fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var spinner_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/spinner/spinner.component.css?ngResource"),spinner_componentngResource_default=__webpack_require__.n(spinner_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),Subscription=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subscription.js"),loader_component=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/loader/loader.component.ts"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");let UiLayoutSpinnerService=class UiLayoutSpinnerService{status=new BehaviorSubject.t({show:"none"});hideTimeout=null;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 \x3c!-- The animation is the electron\'s, here and in `ui-inline-spinner`:\n one set of keyframes, one set of masks, two places that show them. --\x3e\n <ui-electron-loader [type]="type()" />\n @if (status().content) {\n <div class="_content">\n <span [innerHTML]="status().content"></span>\n @if (close()) {\n <div class="_actions">\n <button class="ui" (click)="spinnerService.dismissSpinner()">OK</button>\n </div>\n }\n </div>\n }\n </div>\n}\n',imports:[_common_module_chunk.TG,loader_component.p],styles:[spinner_componentngResource_default()]})],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/atoms/_electrons/loader/loader.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n @keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n }\n\n @keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n }\n\n @keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n @keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n }\n\n /* The box the animation lives in — the positioning context for the disco\n sparkle, and nothing more. It takes no size of its own: each variant\n brings its own shape (two discs and a bar), and the host shrink-wraps\n whichever one it holds. Sizing the host instead would need a rule that\n asks which variant is inside, and that is a question the box should not\n have to ask.\n\n `--ui-spinner-size` is the named hook (see the geometry rule): unset, it\n renders the 26rem the global spinner has always drawn. */\n ui-electron-loader {\n position: relative;\n display: inline-block;\n }\n\n /* `display: block` is not decoration: the template draws with spans, and\n width and height do not apply to an inline box — the animation would\n compute its size and render nothing at all. */\n ._loader {\n position: relative;\n display: block;\n }\n\n /* ring — a conic-gradient comet tail masked into an annulus (hollow\n centre) that rotates seamlessly. */\n ._loader._-ring {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n rgba(var(--ui-c-fourthly-value), 0) 0deg,\n rgba(var(--ui-c-fourthly-value), 0.15) 90deg,\n var(--ui-c-fourthly) 360deg\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2rem))\n );\n animation: ring-spin 1.2s linear infinite;\n }\n\n /* linear — an indeterminate horizontal bar with a segment sliding across a\n faint track. */\n ._loader._-linear {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-stroke, 0.6rem);\n border-radius: 999px;\n background: rgba(var(--ui-c-fourthly-value), 0.15);\n overflow: hidden;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 40%;\n border-radius: inherit;\n background: var(--ui-c-fourthly);\n animation: linear-slide 1.2s ease-in-out infinite;\n }\n }\n\n /* disco — a full rainbow ring that spins while its hue rotates. */\n ._loader._-disco {\n width: var(--ui-spinner-size, 26rem);\n height: var(--ui-spinner-size, 26rem);\n border-radius: 50%;\n background: conic-gradient(\n from 0deg,\n #ff0040,\n #ff9500,\n #ffe600,\n #33dd55,\n #00c8ff,\n #4455ff,\n #cc44ff,\n #ff0040\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ui-spinner-stroke, 2.4rem)),\n #000 calc(100% - var(--ui-spinner-stroke, 2.4rem))\n );\n animation:\n ring-spin 1s linear infinite,\n disco-hue 3s linear infinite;\n }\n\n /* disco centre sparkle — a glowing dot blinking in the hollow ring centre\n while cycling through party colours. Sized off the ring so it stays in\n proportion at any size. */\n ._disco-blink {\n position: absolute;\n top: 50%;\n left: 50%;\n width: calc(var(--ui-spinner-size, 26rem) * 0.192);\n height: calc(var(--ui-spinner-size, 26rem) * 0.192);\n /* Centred with margins, NOT with a translate: the blink animation owns\n `transform` (it scales), and a transform set here would be overwritten\n the moment the animation starts — the dot would jump into the corner. */\n margin-top: calc(var(--ui-spinner-size, 26rem) * -0.096);\n margin-left: calc(var(--ui-spinner-size, 26rem) * -0.096);\n border-radius: 50%;\n animation:\n disco-blink 0.5s ease-in-out infinite,\n disco-party 1.5s linear infinite;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n ui-electron-loader ._loader._-ring,\n ui-electron-loader ._loader._-disco {\n animation-duration: 2s;\n }\n ui-electron-loader ._loader._-linear::before {\n animation-duration: 2s;\n }\n ui-electron-loader ._disco-blink {\n animation-duration: 2s, 6s;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/layout/spinner/spinner.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n@keyframes pie-show-in {\n 0% {\n opacity: 0;\n }\n 10% {\n opacity: 1;\n }\n}\n\n@keyframes pie-show-out {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n@keyframes ring-spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes linear-slide {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(250%);\n }\n}\n\n@keyframes disco-hue {\n to {\n filter: hue-rotate(360deg);\n }\n}\n\n@keyframes disco-blink {\n 0%,\n 40% {\n opacity: 1;\n transform: scale(1);\n }\n 50%,\n 90% {\n opacity: 0.15;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes disco-party {\n 0% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n 16% {\n background: #ff9500;\n box-shadow: 0 0 2rem 0.6rem #ff9500;\n }\n 33% {\n background: #ffe600;\n box-shadow: 0 0 2rem 0.6rem #ffe600;\n }\n 50% {\n background: #33dd55;\n box-shadow: 0 0 2rem 0.6rem #33dd55;\n }\n 66% {\n background: #00c8ff;\n box-shadow: 0 0 2rem 0.6rem #00c8ff;\n }\n 83% {\n background: #cc44ff;\n box-shadow: 0 0 2rem 0.6rem #cc44ff;\n }\n 100% {\n background: #ff2d95;\n box-shadow: 0 0 2rem 0.6rem #ff2d95;\n }\n}\n\n/* ---------------------------------------------------------------------------- */\n/* Defaut */\n/* ---------------------------------------------------------------------------- */\n\n._spinner {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(var(--ui-c-background-value), 0.6);\n z-index: 1000;\n\n &._debug {\n position: absolute;\n }\n\n &.showIn {\n animation-name: pie-show-in;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n /*z-index: 1000;*/\n }\n\n &.showOut {\n animation-name: pie-show-out;\n animation-duration: calc(0.6s * 2.25);\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n }\n\n /* The animation moved into `ui-electron-loader` (one copy for the global\n spinner and the inline one). What stays here is where it sits: centred\n in the overlay, on top of the backdrop. */\n ui-electron-loader {\n position: absolute;\n }\n\n ._content {\n z-index: 1001;\n display: flex;\n flex-flow: column;\n gap: calc(var(--ui-spacer) * 0.5);\n max-width: 80%;\n background-color: var(--ui-c-background);\n padding: calc(var(--ui-spacer) * 0.25);\n border-radius: var(--ui-border-radius);\n border:1px solid var(--ui-c-default);\n ._message {\n display: flex;\n justify-content: flex-end;\n }\n ._actions {\n padding-top: calc(var(--ui-spacer) * 0.5);\n border-top: var(--ui-border-width) solid var(--ui-c-default);\n display: flex;\n justify-content: flex-end;\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|