@mojawork/ui-docs 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/bin/serve.mjs +73 -0
- package/catalog/atoms/background.md +130 -0
- package/catalog/atoms/barcode.md +285 -0
- package/catalog/atoms/buzzer.md +210 -0
- package/catalog/atoms/card.md +174 -0
- package/catalog/atoms/chart.md +236 -0
- package/catalog/atoms/clock.md +252 -0
- package/catalog/atoms/copy-value.md +203 -0
- package/catalog/atoms/image-grid.md +208 -0
- package/catalog/atoms/image-slider.md +216 -0
- package/catalog/atoms/lang-selector.md +237 -0
- package/catalog/atoms/mosaic.md +366 -0
- package/catalog/atoms/placeholder.md +157 -0
- package/catalog/atoms/qr-code.md +334 -0
- package/catalog/atoms/rating.md +176 -0
- package/catalog/atoms/reader-doc.md +404 -0
- package/catalog/atoms/text-animate.md +122 -0
- package/catalog/atoms/thumb.md +153 -0
- package/catalog/atoms/timer.md +111 -0
- package/catalog/atoms/typewriter.md +132 -0
- package/catalog/cdk/splitter.md +63 -0
- package/catalog/cdk/table.md +188 -0
- package/catalog/forms/autocomplete.md +304 -0
- package/catalog/forms/checkbox.md +218 -0
- package/catalog/forms/input.md +193 -0
- package/catalog/forms/slider.md +142 -0
- package/catalog/forms/switch.md +188 -0
- package/catalog/guide.json +1209 -0
- package/catalog/layout/header.md +167 -0
- package/catalog/layout/main.md +158 -0
- package/catalog/layout/media-screen.md +163 -0
- package/catalog/layout/nav.md +181 -0
- package/catalog/layout/overlay.md +256 -0
- package/catalog/layout/spinner.md +94 -0
- package/catalog/layout/splitter.md +331 -0
- package/catalog/layout/tabs.md +144 -0
- package/catalog/layout/top-scroll-bottom.md +98 -0
- package/catalog/manifest.json +482 -0
- package/catalog/mcp.json +44 -0
- package/catalog/molecules/image-editor.md +285 -0
- package/catalog/usage.md +137 -0
- package/catalog/version.json +4 -0
- package/package.json +10 -0
- package/storybook/1183.da25800b.iframe.bundle.js +1 -0
- package/storybook/1255.2abec879.iframe.bundle.js +2 -0
- package/storybook/1255.2abec879.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/1516.52d2dae7.iframe.bundle.js +2 -0
- package/storybook/1516.52d2dae7.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/2033.c705a7ce.iframe.bundle.js +1 -0
- package/storybook/2089.32694489.iframe.bundle.js +1 -0
- package/storybook/2096.431fc8f5.iframe.bundle.js +1 -0
- package/storybook/2127.29f153d2.iframe.bundle.js +2 -0
- package/storybook/2127.29f153d2.iframe.bundle.js.LICENSE.txt +7 -0
- package/storybook/2228.77650ef1.iframe.bundle.js +2 -0
- package/storybook/2228.77650ef1.iframe.bundle.js.LICENSE.txt +1 -0
- package/storybook/2249.6e6782ab.iframe.bundle.js +1 -0
- package/storybook/2639.29baa8af.iframe.bundle.js +1 -0
- package/storybook/2844.c9f47654.iframe.bundle.js +1 -0
- package/storybook/2971.edb202b4.iframe.bundle.js +1 -0
- package/storybook/3899.55560628.iframe.bundle.js +2 -0
- package/storybook/3899.55560628.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/3968.69b812e4.iframe.bundle.js +1 -0
- package/storybook/4255.eeeaf087.iframe.bundle.js +111 -0
- package/storybook/4255.eeeaf087.iframe.bundle.js.LICENSE.txt +49 -0
- package/storybook/4255.eeeaf087.iframe.bundle.js.map +1 -0
- package/storybook/4425.368129b3.iframe.bundle.js +2 -0
- package/storybook/4425.368129b3.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/4476.f8e4115f.iframe.bundle.js +1 -0
- package/storybook/4495.d1c8cc8d.iframe.bundle.js +1 -0
- package/storybook/4555.066c242d.iframe.bundle.js +1 -0
- package/storybook/4755.e4656207.iframe.bundle.js +23 -0
- package/storybook/4755.e4656207.iframe.bundle.js.LICENSE.txt +14 -0
- package/storybook/4755.e4656207.iframe.bundle.js.map +1 -0
- package/storybook/4935.8959522b.iframe.bundle.js +1 -0
- package/storybook/5568.c6172f92.iframe.bundle.js +1 -0
- package/storybook/5944.810cb147.iframe.bundle.js +1 -0
- package/storybook/6115.7f1470ef.iframe.bundle.js +1 -0
- package/storybook/6169.eaeed989.iframe.bundle.js +2 -0
- package/storybook/6169.eaeed989.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/6202.b8ca0e90.iframe.bundle.js +2 -0
- package/storybook/6202.b8ca0e90.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/660.18f0458e.iframe.bundle.js +1 -0
- package/storybook/6824.f5eb8bb7.iframe.bundle.js +1 -0
- package/storybook/7316.5b024e94.iframe.bundle.js +1 -0
- package/storybook/7749.2a853795.iframe.bundle.js +1 -0
- package/storybook/8051.719eb790.iframe.bundle.js +1 -0
- package/storybook/813.805c1e5f.iframe.bundle.js +1 -0
- package/storybook/8448.1baeb046.iframe.bundle.js +1 -0
- package/storybook/871.428deceb.iframe.bundle.js +1 -0
- package/storybook/8819.220ca21d.iframe.bundle.js +1 -0
- package/storybook/9045.a50616e9.iframe.bundle.js +2 -0
- package/storybook/9045.a50616e9.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/9560.668052f3.iframe.bundle.js +7 -0
- package/storybook/9560.668052f3.iframe.bundle.js.map +1 -0
- package/storybook/973.67f44bb0.iframe.bundle.js +1 -0
- package/storybook/9850.28367747.iframe.bundle.js +1 -0
- package/storybook/9946.36014b4e.iframe.bundle.js +1 -0
- package/storybook/MaterialIcons-Regular.woff2 +0 -0
- package/storybook/MaterialIconsOutlined-Regular.woff2 +0 -0
- package/storybook/PetMe64.ttf +0 -0
- package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-banner-mwork-banner-stories.d44f6917.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-basic-interpreter-mwork-basic-interpreter-stories.3252a9b8.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-music-player-docs-mdx.6f943768.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-music-player-mwork-music-player-stories.08fbf651.iframe.bundle.js +1 -0
- package/storybook/assets/fonts/PETME64-LICENSE.txt +20 -0
- package/storybook/assets/fonts/PetMe64.ttf +0 -0
- package/storybook/assets/fonts/icons/MaterialIcons-Regular.woff2 +0 -0
- package/storybook/assets/fonts/icons/MaterialIconsOutlined-Regular.woff2 +0 -0
- package/storybook/assets/ui/documents/demo.pdf +42 -0
- package/storybook/assets/ui/i18n/de-DE.json +1 -0
- package/storybook/assets/ui/i18n/en-EN.json +2 -0
- package/storybook/assets/ui/i18n/ui/de-DE.json +95 -0
- package/storybook/assets/ui/i18n/ui/en-EN.json +95 -0
- package/storybook/assets/ui/images/600x600.png +0 -0
- package/storybook/assets/ui/images/600x800.png +0 -0
- package/storybook/assets/ui/images/800x600.png +0 -0
- package/storybook/assets/ui/images/unknown.gif +0 -0
- package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +1 -0
- package/storybook/atoms-_electrons-form-error-message-form-error-message-component-stories.7f749acc.iframe.bundle.js +1 -0
- package/storybook/atoms-background-background-component-stories.b6b50c0c.iframe.bundle.js +1 -0
- package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +1 -0
- package/storybook/atoms-barcode-barcode-component-stories.dc462559.iframe.bundle.js +1 -0
- package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +1 -0
- package/storybook/atoms-buzzer-buzzer-component-stories.13ee130d.iframe.bundle.js +1 -0
- package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +1 -0
- package/storybook/atoms-card-card-component-stories.065b34e9.iframe.bundle.js +1 -0
- package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +1 -0
- package/storybook/atoms-chart-chart-component-stories.5247b7cb.iframe.bundle.js +1 -0
- package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +1 -0
- package/storybook/atoms-clock-clock-component-stories.d1464731.iframe.bundle.js +1 -0
- package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +1 -0
- package/storybook/atoms-copy-value-copy-value-component-stories.58d3956a.iframe.bundle.js +1 -0
- package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +1 -0
- package/storybook/atoms-image-grid-docs-mdx.18b4df2a.iframe.bundle.js +1 -0
- package/storybook/atoms-image-grid-image-grid-component-stories.a0a92d9e.iframe.bundle.js +1 -0
- package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +1 -0
- package/storybook/atoms-image-slider-image-slider-component-stories.484b9c41.iframe.bundle.js +1 -0
- package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +2 -0
- package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js +2 -0
- package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +1 -0
- package/storybook/atoms-mosaic-mosaic-component-stories.0a6bc043.iframe.bundle.js +1 -0
- package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +1 -0
- package/storybook/atoms-placeholder-placeholder-component-stories.bc221534.iframe.bundle.js +1 -0
- package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +1 -0
- package/storybook/atoms-qr-code-qr-code-component-stories.5018e2b0.iframe.bundle.js +1 -0
- package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +1 -0
- package/storybook/atoms-rating-rating-component-stories.982db47d.iframe.bundle.js +1 -0
- package/storybook/atoms-reader-doc-docs-mdx.0688c3b9.iframe.bundle.js +1 -0
- package/storybook/atoms-reader-doc-reader-doc-component-stories.a6fec57d.iframe.bundle.js +1 -0
- package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +1 -0
- package/storybook/atoms-text-animate-text-animate-component-stories.8041c0f1.iframe.bundle.js +1 -0
- package/storybook/atoms-thumb-docs-mdx.2143ad01.iframe.bundle.js +1 -0
- package/storybook/atoms-thumb-thumb-component-stories.06f51d03.iframe.bundle.js +1 -0
- package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +1 -0
- package/storybook/atoms-timer-timer-component-stories.9bee1037.iframe.bundle.js +1 -0
- package/storybook/atoms-typewriter-docs-mdx.3b1088c0.iframe.bundle.js +1 -0
- package/storybook/atoms-typewriter-typewriter-component-stories.4fefc019.iframe.bundle.js +1 -0
- package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +1 -0
- package/storybook/cdk-components-drag-and-drop-splitter-splitter-component-stories.286b5171.iframe.bundle.js +1 -0
- package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +1 -0
- package/storybook/cdk-components-table-table-component-stories.db9212fd.iframe.bundle.js +1 -0
- package/storybook/examples-burger-menu-stories.0a083a75.iframe.bundle.js +1 -0
- package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +1 -0
- package/storybook/examples-image-grid-slider-docs-mdx.9e38157e.iframe.bundle.js +1 -0
- package/storybook/examples-image-grid-slider-image-grid-slider-stories.028c8c2b.iframe.bundle.js +1 -0
- package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +1 -0
- package/storybook/examples-layout-layout-stories.05cd891f.iframe.bundle.js +1 -0
- package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +1 -0
- package/storybook/examples-table-edit-focus-table-edit-focus-stories.c79e214a.iframe.bundle.js +1 -0
- package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +2 -0
- package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js +2 -0
- package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/favicon-wrapper.svg +46 -0
- package/storybook/favicon.svg +1 -0
- package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js +2 -0
- package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +2 -0
- package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/forms-autofocus-autofocus-stories.2e94d887.iframe.bundle.js +1 -0
- package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +1 -0
- package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +1 -0
- package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +1 -0
- package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +1 -0
- package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +1 -0
- package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +1 -0
- package/storybook/forms-slider-slider-component-stories.058fb9b1.iframe.bundle.js +1 -0
- package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +1 -0
- package/storybook/forms-switch-switch-component-stories.bf67d7c9.iframe.bundle.js +1 -0
- package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +1 -0
- package/storybook/forms-validators-validators-component-stories.9525f97b.iframe.bundle.js +1 -0
- package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +1 -0
- package/storybook/home-overview-mdx.d0cf448a.iframe.bundle.js +1 -0
- package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +1 -0
- package/storybook/home-usage-mdx.7ba89dd0.iframe.bundle.js +1 -0
- package/storybook/iframe.html +558 -0
- package/storybook/index.html +155 -0
- package/storybook/index.json +1 -0
- package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +1 -0
- package/storybook/layout-main-main-component-stories.788c0c54.iframe.bundle.js +1 -0
- package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +2 -0
- package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js +2 -0
- package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +1 -0
- package/storybook/layout-nav-nav-component-stories.766738fc.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-header-header-component-stories.5eaef192.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-overlay-component-stories.01f6cd84.iframe.bundle.js +1 -0
- package/storybook/layout-spinner-docs-mdx.4be572c0.iframe.bundle.js +1 -0
- package/storybook/layout-spinner-spinner-component-stories.ab8245c6.iframe.bundle.js +1 -0
- package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +1 -0
- package/storybook/layout-splitter-splitter-component-stories.46b8b112.iframe.bundle.js +1 -0
- package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +1 -0
- package/storybook/layout-tabs-tabs-component-stories.8602cefa.iframe.bundle.js +1 -0
- package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +1 -0
- package/storybook/layout-top-scroll-bottom-top-scroll-bottom-component-stories.9ee7055f.iframe.bundle.js +1 -0
- package/storybook/main.2d116a57.iframe.bundle.js +1 -0
- package/storybook/main.a402659c6a0734088d14.css +2101 -0
- package/storybook/mocker-runtime-injected.js +1 -0
- package/storybook/molecules-image-editor-docs-mdx.119ea12a.iframe.bundle.js +1 -0
- package/storybook/molecules-image-editor-image-editor-component-stories.56467f17.iframe.bundle.js +1 -0
- package/storybook/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook/nunito-sans-bold.woff2 +0 -0
- package/storybook/nunito-sans-italic.woff2 +0 -0
- package/storybook/nunito-sans-regular.woff2 +0 -0
- package/storybook/project.json +1 -0
- package/storybook/runtime~main.a9b8ab83.iframe.bundle.js +1 -0
- package/storybook/sb-addons/docs-1/manager-bundle.js +3 -0
- package/storybook/sb-addons/libs-ui-storybook-2/manager-bundle.js +3 -0
- package/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
- package/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook/sb-common-assets/favicon.svg +1 -0
- package/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook/sb-manager/globals-runtime.js +76714 -0
- package/storybook/sb-manager/globals.js +24 -0
- package/storybook/sb-manager/manager-stores.js +23 -0
- package/storybook/sb-manager/runtime.js +27451 -0
- package/storybook/sb-preview/globals.js +20 -0
- package/storybook/sb-preview/runtime.js +35491 -0
- package/storybook/styling-colors-colors-component-stories.58031f40.iframe.bundle.js +1 -0
- package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +1 -0
- package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +1 -0
- package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +1 -0
- package/storybook/styling-forms-forms-component-stories.8af76278.iframe.bundle.js +1 -0
- package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +1 -0
- package/storybook/styling-icons-icons-component-stories.2dd8c6f8.iframe.bundle.js +1 -0
- package/storybook/styling-layers-docs-mdx.5039dc45.iframe.bundle.js +1 -0
- package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +1 -0
- package/storybook/styling-tags-tags-component-stories.7a64bd20.iframe.bundle.js +1 -0
- package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +1 -0
- package/storybook/styling-ui-tags-ui-tags-component-stories.2ec3109b.iframe.bundle.js +1 -0
- package/storybook/version.json +4 -0
- package/version.json +4 -0
|
@@ -0,0 +1,1209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "an agent — the Claude Code session of the library workspace, writing from the sources each entry names; not a person",
|
|
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.3.0",
|
|
5
|
+
"commit": "0d00b07f",
|
|
6
|
+
"entries": [
|
|
7
|
+
{
|
|
8
|
+
"kind": "situation",
|
|
9
|
+
"situation": "app-shell",
|
|
10
|
+
"uses": [
|
|
11
|
+
"ui-layout-main",
|
|
12
|
+
"ui-layout-nav",
|
|
13
|
+
"ui-layout-splitter",
|
|
14
|
+
"ui-layout-tabs"
|
|
15
|
+
],
|
|
16
|
+
"useFor": [
|
|
17
|
+
"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."
|
|
18
|
+
],
|
|
19
|
+
"notFor": [
|
|
20
|
+
"Overlays — they stand next to the layout, not inside it."
|
|
21
|
+
],
|
|
22
|
+
"shownIn": [
|
|
23
|
+
{
|
|
24
|
+
"story": "Examples/Layout/Layout",
|
|
25
|
+
"url": "https://moja.work/storybook/?path=/story/examples-layout--layout"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"file": "libs/ui/.storybook/demos/examples/layout/docs.mdx"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"file": "apps/website/src/app/app.component.html"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"sources": [
|
|
35
|
+
"libs/ui/.storybook/demos/examples/layout/docs.mdx"
|
|
36
|
+
],
|
|
37
|
+
"reviewed": "69197b72"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"kind": "situation",
|
|
41
|
+
"situation": "burger-menu",
|
|
42
|
+
"uses": [
|
|
43
|
+
"ui-layout-overlay",
|
|
44
|
+
"ui-layout-overlay-header"
|
|
45
|
+
],
|
|
46
|
+
"useFor": [
|
|
47
|
+
"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."
|
|
48
|
+
],
|
|
49
|
+
"notFor": [
|
|
50
|
+
"The main navigation on a wide screen — that is ui-layout-nav in the main header."
|
|
51
|
+
],
|
|
52
|
+
"shownIn": [
|
|
53
|
+
{
|
|
54
|
+
"story": "Examples/Burger Menu/BurgerMenu",
|
|
55
|
+
"url": "https://moja.work/storybook/?path=/story/examples-burger-menu--burger-menu"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"file": "libs/ui/src/lib/examples/docs.mdx"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"file": "apps/website/src/app/app.component.html"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"sources": [
|
|
65
|
+
"libs/ui/src/lib/examples/docs.mdx",
|
|
66
|
+
"libs/ui/src/lib/layout/overlay/docs.mdx"
|
|
67
|
+
],
|
|
68
|
+
"reviewed": "69197b72"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"kind": "situation",
|
|
72
|
+
"situation": "form-basics",
|
|
73
|
+
"uses": [
|
|
74
|
+
"ui-input",
|
|
75
|
+
"ui-checkbox",
|
|
76
|
+
"ui-switch",
|
|
77
|
+
"ui-slider"
|
|
78
|
+
],
|
|
79
|
+
"useFor": [
|
|
80
|
+
"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."
|
|
81
|
+
],
|
|
82
|
+
"notFor": [
|
|
83
|
+
"A control without the class — it renders unstyled.",
|
|
84
|
+
"A validator written in the app: validators belong in the library."
|
|
85
|
+
],
|
|
86
|
+
"shownIn": [
|
|
87
|
+
{
|
|
88
|
+
"story": "Styling/Forms/Forms",
|
|
89
|
+
"url": "https://moja.work/storybook/?path=/story/styling-forms--forms"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"story": "Forms/Validators/Email",
|
|
93
|
+
"url": "https://moja.work/storybook/?path=/story/forms-validators--email"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"file": "apps/change-me/src/app/slider/slider.component.html"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"sources": [
|
|
100
|
+
"usage.md (Forms)",
|
|
101
|
+
"libs/ui/src/lib/forms/input/docs.mdx",
|
|
102
|
+
"libs/ui/src/lib/forms/validators/docs.mdx"
|
|
103
|
+
],
|
|
104
|
+
"reviewed": "69197b72"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"kind": "situation",
|
|
108
|
+
"situation": "image-gallery",
|
|
109
|
+
"uses": [
|
|
110
|
+
"ui-image-grid",
|
|
111
|
+
"ui-image-slider"
|
|
112
|
+
],
|
|
113
|
+
"useFor": [
|
|
114
|
+
"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."
|
|
115
|
+
],
|
|
116
|
+
"notFor": [
|
|
117
|
+
"A single linked preview — ui-thumb."
|
|
118
|
+
],
|
|
119
|
+
"shownIn": [
|
|
120
|
+
{
|
|
121
|
+
"story": "Examples/Image Gallery/ImageGallery",
|
|
122
|
+
"url": "https://moja.work/storybook/?path=/story/examples-image-gallery--image-gallery"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"story": "Examples/Image Gallery/ImageGalleryZoom",
|
|
126
|
+
"url": "https://moja.work/storybook/?path=/story/examples-image-gallery--image-gallery-zoom"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"file": "libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"file": "apps/website/src/app/content/image-grid/image-grid.component.html"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"sources": [
|
|
136
|
+
"libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"
|
|
137
|
+
],
|
|
138
|
+
"reviewed": "69197b72"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"kind": "situation",
|
|
142
|
+
"situation": "table-edit-focus",
|
|
143
|
+
"uses": [
|
|
144
|
+
"ui-cdk-table-wrapper",
|
|
145
|
+
"ui-input",
|
|
146
|
+
"ui-checkbox"
|
|
147
|
+
],
|
|
148
|
+
"useFor": [
|
|
149
|
+
"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."
|
|
150
|
+
],
|
|
151
|
+
"notFor": [
|
|
152
|
+
"A wrapper without inline mode: the cells shift when a text turns into a field.",
|
|
153
|
+
"Counting positions instead of naming buttons — the edit row carries more buttons than a read row."
|
|
154
|
+
],
|
|
155
|
+
"shownIn": [
|
|
156
|
+
{
|
|
157
|
+
"story": "Examples/Table Edit Focus/TableEditFocus",
|
|
158
|
+
"url": "https://moja.work/storybook/?path=/story/examples-table-edit-focus--table-edit-focus"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"story": "Examples/Table Edit Focus/TableEditFocusTall",
|
|
162
|
+
"url": "https://moja.work/storybook/?path=/story/examples-table-edit-focus--table-edit-focus-tall"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"file": "libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"file": "apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"file": "apps/proto/src/app/examples/keyboard-table/keyboard-table.component.ts"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"sources": [
|
|
175
|
+
"libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx",
|
|
176
|
+
"libs/ui/src/lib/cdk/components/table/docs.mdx",
|
|
177
|
+
"media CLAUDE.md (own repo): Keyboard navigation — who owns what",
|
|
178
|
+
"tickets#168",
|
|
179
|
+
"tickets#169"
|
|
180
|
+
],
|
|
181
|
+
"reviewed": "69197b72"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"kind": "situation",
|
|
185
|
+
"situation": "translations",
|
|
186
|
+
"uses": [
|
|
187
|
+
"ui-lang-selector"
|
|
188
|
+
],
|
|
189
|
+
"useFor": [
|
|
190
|
+
"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."
|
|
191
|
+
],
|
|
192
|
+
"notFor": [
|
|
193
|
+
"Translating inside a computed — it snapshots an empty dictionary on first render; use the pipe, or a translate helper that listens."
|
|
194
|
+
],
|
|
195
|
+
"shownIn": [
|
|
196
|
+
{
|
|
197
|
+
"story": "Examples/Transloco/LangSelector",
|
|
198
|
+
"url": "https://moja.work/storybook/?path=/story/examples-transloco--lang-selector"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"story": "Examples/Transloco/AllKeys",
|
|
202
|
+
"url": "https://moja.work/storybook/?path=/story/examples-transloco--all-keys"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"file": "libs/ui/.storybook/demos/examples/transloco/docs.mdx"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"sources": [
|
|
209
|
+
"libs/ui/.storybook/demos/examples/transloco/docs.mdx",
|
|
210
|
+
"media CLAUDE.md (own repo): translate() inside a computed is a snapshot",
|
|
211
|
+
"tickets#182"
|
|
212
|
+
],
|
|
213
|
+
"reviewed": "69197b72"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"kind": "component",
|
|
217
|
+
"component": "ui-autocomplete",
|
|
218
|
+
"useFor": [
|
|
219
|
+
"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."
|
|
220
|
+
],
|
|
221
|
+
"notFor": [
|
|
222
|
+
"Multi-select, chips, a dropdown of fixed options — a native select inside ui-input does the last.",
|
|
223
|
+
"A waiting state or an empty message: there is none by design."
|
|
224
|
+
],
|
|
225
|
+
"instead": [
|
|
226
|
+
"ui-input"
|
|
227
|
+
],
|
|
228
|
+
"shownIn": [
|
|
229
|
+
{
|
|
230
|
+
"story": "Forms/Autocomplete/Autocomplete",
|
|
231
|
+
"url": "https://moja.work/storybook/?path=/story/forms-autocomplete--autocomplete"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"story": "Forms/Autocomplete/Loading",
|
|
235
|
+
"url": "https://moja.work/storybook/?path=/story/forms-autocomplete--loading"
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"sources": [
|
|
239
|
+
"libs/ui/src/lib/forms/autocomplete/docs.mdx"
|
|
240
|
+
],
|
|
241
|
+
"reviewed": "69197b72"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"kind": "component",
|
|
245
|
+
"component": "ui-background",
|
|
246
|
+
"useFor": [
|
|
247
|
+
"A patterned surface behind projected content — change-me's slider page puts its form on one."
|
|
248
|
+
],
|
|
249
|
+
"notFor": [
|
|
250
|
+
"Layout; a plain colour, which is one CSS line."
|
|
251
|
+
],
|
|
252
|
+
"shownIn": [
|
|
253
|
+
{
|
|
254
|
+
"story": "Atoms/Background/BackgroundExample",
|
|
255
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-background--background-example"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"file": "apps/change-me/src/app/slider/slider.component.html"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"sources": [
|
|
262
|
+
"libs/ui/src/lib/atoms/background/docs.mdx"
|
|
263
|
+
],
|
|
264
|
+
"reviewed": "69197b72"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"kind": "component",
|
|
268
|
+
"component": "ui-barcode",
|
|
269
|
+
"useFor": [
|
|
270
|
+
"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."
|
|
271
|
+
],
|
|
272
|
+
"notFor": [
|
|
273
|
+
"Deciding which number to draw, printing it, or reacting to a click — that stays with the app.",
|
|
274
|
+
"Any symbology but EAN-13."
|
|
275
|
+
],
|
|
276
|
+
"note": "Wrap it in ui-copy-value to copy the digits; the bars stay the picture.",
|
|
277
|
+
"shownIn": [
|
|
278
|
+
{
|
|
279
|
+
"story": "Atoms/Barcode/Default",
|
|
280
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-barcode--default"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"story": "Atoms/Barcode/Sizes",
|
|
284
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-barcode--sizes"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"sources": [
|
|
288
|
+
"libs/ui/src/lib/atoms/barcode/docs.mdx",
|
|
289
|
+
"media frontend (own repo): internal-barcode.spec.ts, tickets#205"
|
|
290
|
+
],
|
|
291
|
+
"reviewed": "69197b72"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"kind": "component",
|
|
295
|
+
"component": "ui-buzzer",
|
|
296
|
+
"useFor": [
|
|
297
|
+
"One big, deliberate action — a contact trigger, a push button. The website uses it twice."
|
|
298
|
+
],
|
|
299
|
+
"notFor": [
|
|
300
|
+
"Ordinary form buttons: those are button.ui and button.ui-flat."
|
|
301
|
+
],
|
|
302
|
+
"shownIn": [
|
|
303
|
+
{
|
|
304
|
+
"story": "Atoms/Buzzer/Buzzer",
|
|
305
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-buzzer--buzzer"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"file": "apps/website/src/app/content/contact/contact.component.html"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"file": "apps/website/src/app/components/push-button/push-button.component.html"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"sources": [
|
|
315
|
+
"libs/ui/src/lib/atoms/buzzer/docs.mdx"
|
|
316
|
+
],
|
|
317
|
+
"reviewed": "69197b72"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"kind": "component",
|
|
321
|
+
"component": "ui-card",
|
|
322
|
+
"useFor": [
|
|
323
|
+
"A bounded surface with an optional headline and icon around projected content — a tile, a panel, a summary."
|
|
324
|
+
],
|
|
325
|
+
"notFor": [
|
|
326
|
+
"Anything that has to act: copying, linking, expanding. The card is presentational and composes nothing."
|
|
327
|
+
],
|
|
328
|
+
"instead": [
|
|
329
|
+
"ui-copy-value"
|
|
330
|
+
],
|
|
331
|
+
"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.",
|
|
332
|
+
"shownIn": [
|
|
333
|
+
{
|
|
334
|
+
"story": "Atoms/Card/Card",
|
|
335
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-card--card"
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"sources": [
|
|
339
|
+
"libs/ui/src/lib/atoms/card/docs.mdx",
|
|
340
|
+
"tickets#183"
|
|
341
|
+
],
|
|
342
|
+
"reviewed": "69197b72"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"kind": "component",
|
|
346
|
+
"component": "ui-cdk-drag-drop-splitter",
|
|
347
|
+
"useFor": [
|
|
348
|
+
"Sorting items into two buckets by drag and drop. Bind both outputs and hand the new arrays back, or nothing moves."
|
|
349
|
+
],
|
|
350
|
+
"notFor": [
|
|
351
|
+
"A two-pane layout.",
|
|
352
|
+
"A list that persists itself."
|
|
353
|
+
],
|
|
354
|
+
"instead": [
|
|
355
|
+
"ui-layout-splitter"
|
|
356
|
+
],
|
|
357
|
+
"shownIn": [
|
|
358
|
+
{
|
|
359
|
+
"story": "CDK/Drag And Drop Splitter/DragAndDropSplitter",
|
|
360
|
+
"url": "https://moja.work/storybook/?path=/story/cdk-drag-and-drop-splitter--drag-and-drop-splitter"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"sources": [
|
|
364
|
+
"libs/ui/src/lib/cdk/components/drag-and-drop-splitter/docs.mdx"
|
|
365
|
+
],
|
|
366
|
+
"reviewed": "69197b72"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"kind": "component",
|
|
370
|
+
"component": "ui-cdk-table-wrapper",
|
|
371
|
+
"useFor": [
|
|
372
|
+
"Any cdk-table in the house: loading skeleton, hover and focus, header colours, fixed or content layout.",
|
|
373
|
+
"Inline editing: inline fixed plus the uiTableEditFocus directive — the proto keyboard table and the media editor are built this way."
|
|
374
|
+
],
|
|
375
|
+
"notFor": [
|
|
376
|
+
"A table without the CDK.",
|
|
377
|
+
"Inline editing without inline mode: the cells shift when text turns into a field."
|
|
378
|
+
],
|
|
379
|
+
"shownIn": [
|
|
380
|
+
{
|
|
381
|
+
"story": "CDK/Table/Default",
|
|
382
|
+
"url": "https://moja.work/storybook/?path=/story/cdk-table--default"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"story": "CDK/Table/Inline",
|
|
386
|
+
"url": "https://moja.work/storybook/?path=/story/cdk-table--inline"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"story": "Examples/Table Edit Focus/TableEditFocus",
|
|
390
|
+
"url": "https://moja.work/storybook/?path=/story/examples-table-edit-focus--table-edit-focus"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"file": "apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"
|
|
394
|
+
}
|
|
395
|
+
],
|
|
396
|
+
"sources": [
|
|
397
|
+
"libs/ui/src/lib/cdk/components/table/docs.mdx",
|
|
398
|
+
"libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx",
|
|
399
|
+
"media CLAUDE.md (own repo): Keyboard navigation — who owns what"
|
|
400
|
+
],
|
|
401
|
+
"reviewed": "69197b72"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"kind": "component",
|
|
405
|
+
"component": "ui-chart",
|
|
406
|
+
"useFor": [
|
|
407
|
+
"A single ring or bar of up to three segments — a share, a progress. The number of colours is the number of rings."
|
|
408
|
+
],
|
|
409
|
+
"notFor": [
|
|
410
|
+
"Series, axes, legends, tooltips, more than three parts."
|
|
411
|
+
],
|
|
412
|
+
"shownIn": [
|
|
413
|
+
{
|
|
414
|
+
"story": "Atoms/Chart/Rings",
|
|
415
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-chart--rings"
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"sources": [
|
|
419
|
+
"libs/ui/src/lib/atoms/chart/docs.mdx"
|
|
420
|
+
],
|
|
421
|
+
"reviewed": "69197b72"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"kind": "component",
|
|
425
|
+
"component": "ui-checkbox",
|
|
426
|
+
"useFor": [
|
|
427
|
+
"A choice that may be required or validated, inside a form that reports errors.",
|
|
428
|
+
"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\"."
|
|
429
|
+
],
|
|
430
|
+
"notFor": [
|
|
431
|
+
"An always-valid toggle.",
|
|
432
|
+
"The native variant where Safari matters — the self-painted icon variant renders the same everywhere."
|
|
433
|
+
],
|
|
434
|
+
"instead": [
|
|
435
|
+
"ui-switch"
|
|
436
|
+
],
|
|
437
|
+
"shownIn": [
|
|
438
|
+
{
|
|
439
|
+
"story": "Forms/Checkbox/CheckboxIcon",
|
|
440
|
+
"url": "https://moja.work/storybook/?path=/story/forms-checkbox--checkbox-icon"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"story": "Forms/Checkbox/CheckboxValidation",
|
|
444
|
+
"url": "https://moja.work/storybook/?path=/story/forms-checkbox--checkbox-validation"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"file": "apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"
|
|
448
|
+
}
|
|
449
|
+
],
|
|
450
|
+
"sources": [
|
|
451
|
+
"libs/ui/src/lib/forms/checkbox/docs.mdx"
|
|
452
|
+
],
|
|
453
|
+
"reviewed": "69197b72"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"kind": "component",
|
|
457
|
+
"component": "ui-clock",
|
|
458
|
+
"useFor": [
|
|
459
|
+
"A decorative time display — the website's landscape overlay."
|
|
460
|
+
],
|
|
461
|
+
"notFor": [
|
|
462
|
+
"A countdown; anything that needs time zones or formats beyond 12/24 h."
|
|
463
|
+
],
|
|
464
|
+
"instead": [
|
|
465
|
+
"ui-timer"
|
|
466
|
+
],
|
|
467
|
+
"shownIn": [
|
|
468
|
+
{
|
|
469
|
+
"story": "Atoms/Clock/Default",
|
|
470
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-clock--default"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"file": "apps/website/src/app/parts/landscape-overlay/landscape-overlay.component.html"
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
"sources": [
|
|
477
|
+
"libs/ui/src/lib/atoms/clock/docs.mdx"
|
|
478
|
+
],
|
|
479
|
+
"reviewed": "69197b72"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"kind": "component",
|
|
483
|
+
"component": "ui-copy-value",
|
|
484
|
+
"useFor": [
|
|
485
|
+
"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."
|
|
486
|
+
],
|
|
487
|
+
"notFor": [
|
|
488
|
+
"Showing the value: it brings no appearance. Wrap the thing that does."
|
|
489
|
+
],
|
|
490
|
+
"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.",
|
|
491
|
+
"shownIn": [
|
|
492
|
+
{
|
|
493
|
+
"story": "Atoms/Copy Value/Swatches",
|
|
494
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-copy-value--swatches"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"story": "Atoms/Copy Value/OwnConfirmation",
|
|
498
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-copy-value--own-confirmation"
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
"sources": [
|
|
502
|
+
"libs/ui/src/lib/atoms/copy-value/docs.mdx",
|
|
503
|
+
"tickets#183"
|
|
504
|
+
],
|
|
505
|
+
"reviewed": "69197b72"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"kind": "component",
|
|
509
|
+
"component": "ui-image-editor",
|
|
510
|
+
"useFor": [
|
|
511
|
+
"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."
|
|
512
|
+
],
|
|
513
|
+
"notFor": [
|
|
514
|
+
"Several images, drawing, filters.",
|
|
515
|
+
"Talking to a backend: it emits, the host uploads."
|
|
516
|
+
],
|
|
517
|
+
"shownIn": [
|
|
518
|
+
{
|
|
519
|
+
"story": "Molecules/Image Editor/WithImage",
|
|
520
|
+
"url": "https://moja.work/storybook/?path=/story/molecules-image-editor--with-image"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"story": "Molecules/Image Editor/Overlay",
|
|
524
|
+
"url": "https://moja.work/storybook/?path=/story/molecules-image-editor--overlay"
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
"sources": [
|
|
528
|
+
"libs/ui/src/lib/molecules/image-editor/docs.mdx"
|
|
529
|
+
],
|
|
530
|
+
"reviewed": "69197b72"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"kind": "component",
|
|
534
|
+
"component": "ui-image-grid",
|
|
535
|
+
"useFor": [
|
|
536
|
+
"The overview of a picture set, sharing one index with ui-image-slider. Always set cols; the default draws nothing."
|
|
537
|
+
],
|
|
538
|
+
"notFor": [
|
|
539
|
+
"Showing one picture large — that is the slider's half."
|
|
540
|
+
],
|
|
541
|
+
"instead": [
|
|
542
|
+
"ui-image-slider"
|
|
543
|
+
],
|
|
544
|
+
"shownIn": [
|
|
545
|
+
{
|
|
546
|
+
"story": "Examples/Image Gallery/ImageGallery",
|
|
547
|
+
"url": "https://moja.work/storybook/?path=/story/examples-image-gallery--image-gallery"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"story": "Examples/Image Gallery/ImageGalleryZoom",
|
|
551
|
+
"url": "https://moja.work/storybook/?path=/story/examples-image-gallery--image-gallery-zoom"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"file": "apps/website/src/app/content/image-grid/image-grid.component.html"
|
|
555
|
+
}
|
|
556
|
+
],
|
|
557
|
+
"sources": [
|
|
558
|
+
"libs/ui/src/lib/atoms/image-grid/docs.mdx",
|
|
559
|
+
"libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"
|
|
560
|
+
],
|
|
561
|
+
"reviewed": "69197b72"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"kind": "component",
|
|
565
|
+
"component": "ui-image-slider",
|
|
566
|
+
"useFor": [
|
|
567
|
+
"One picture at a time with swipe, drag and zoom; as the zoom of a grid, created with @if only while open."
|
|
568
|
+
],
|
|
569
|
+
"notFor": [
|
|
570
|
+
"The overview of a set."
|
|
571
|
+
],
|
|
572
|
+
"instead": [
|
|
573
|
+
"ui-image-grid"
|
|
574
|
+
],
|
|
575
|
+
"shownIn": [
|
|
576
|
+
{
|
|
577
|
+
"story": "Examples/Image Gallery/ImageGallery",
|
|
578
|
+
"url": "https://moja.work/storybook/?path=/story/examples-image-gallery--image-gallery"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"story": "Examples/Image Gallery/ImageGalleryZoom",
|
|
582
|
+
"url": "https://moja.work/storybook/?path=/story/examples-image-gallery--image-gallery-zoom"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"file": "apps/website/src/app/app.component.html"
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"sources": [
|
|
589
|
+
"libs/ui/src/lib/atoms/image-slider/docs.mdx",
|
|
590
|
+
"libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"
|
|
591
|
+
],
|
|
592
|
+
"reviewed": "69197b72"
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"kind": "component",
|
|
596
|
+
"component": "ui-input",
|
|
597
|
+
"useFor": [
|
|
598
|
+
"Every text-based control in a form: wrap the native input, textarea or select, keep [(ngModel)] on the projected element, class=\"ui\" on it.",
|
|
599
|
+
"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."
|
|
600
|
+
],
|
|
601
|
+
"notFor": [
|
|
602
|
+
"Ranges, checkboxes, switches — they have wrappers of their own.",
|
|
603
|
+
"Suggestions while typing."
|
|
604
|
+
],
|
|
605
|
+
"instead": [
|
|
606
|
+
"ui-slider",
|
|
607
|
+
"ui-checkbox",
|
|
608
|
+
"ui-switch",
|
|
609
|
+
"ui-autocomplete"
|
|
610
|
+
],
|
|
611
|
+
"shownIn": [
|
|
612
|
+
{
|
|
613
|
+
"story": "Forms/Input/Input",
|
|
614
|
+
"url": "https://moja.work/storybook/?path=/story/forms-input--input"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"story": "Forms/Input/InputClearable",
|
|
618
|
+
"url": "https://moja.work/storybook/?path=/story/forms-input--input-clearable"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"file": "apps/change-me/src/app/slider/slider.component.html"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"file": "apps/proto/src/app/examples/keyboard-table/keyboard-table.component.html"
|
|
625
|
+
}
|
|
626
|
+
],
|
|
627
|
+
"sources": [
|
|
628
|
+
"libs/ui/src/lib/forms/input/docs.mdx",
|
|
629
|
+
"usage.md (Forms)"
|
|
630
|
+
],
|
|
631
|
+
"reviewed": "69197b72"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"kind": "component",
|
|
635
|
+
"component": "ui-lang-selector",
|
|
636
|
+
"useFor": [
|
|
637
|
+
"The one language switch of an app: one tag brings the service call, the storage and the restore on reload."
|
|
638
|
+
],
|
|
639
|
+
"notFor": [
|
|
640
|
+
"More than the two languages it knows; a switch that must not persist."
|
|
641
|
+
],
|
|
642
|
+
"shownIn": [
|
|
643
|
+
{
|
|
644
|
+
"story": "Examples/Transloco/LangSelector",
|
|
645
|
+
"url": "https://moja.work/storybook/?path=/story/examples-transloco--lang-selector"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"story": "Atoms/Lang Selector/OwnContent",
|
|
649
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-lang-selector--own-content"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"file": "apps/website/src/app/components/lang-selector/lang-selector.component.html"
|
|
653
|
+
}
|
|
654
|
+
],
|
|
655
|
+
"sources": [
|
|
656
|
+
"libs/ui/src/lib/atoms/lang-selector/docs.mdx"
|
|
657
|
+
],
|
|
658
|
+
"reviewed": "69197b72"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"kind": "component",
|
|
662
|
+
"component": "ui-layout-main",
|
|
663
|
+
"useFor": [
|
|
664
|
+
"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."
|
|
665
|
+
],
|
|
666
|
+
"notFor": [
|
|
667
|
+
"A panel inside a page — splitter, tabs and top-scroll-bottom are for that."
|
|
668
|
+
],
|
|
669
|
+
"shownIn": [
|
|
670
|
+
{
|
|
671
|
+
"story": "Examples/Layout/Layout",
|
|
672
|
+
"url": "https://moja.work/storybook/?path=/story/examples-layout--layout"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"file": "apps/website/src/app/app.component.html"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"file": "apps/change-me/src/app/app.component.html"
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
"sources": [
|
|
682
|
+
"libs/ui/src/lib/layout/main/docs.mdx",
|
|
683
|
+
"libs/ui/.storybook/demos/examples/layout/docs.mdx"
|
|
684
|
+
],
|
|
685
|
+
"reviewed": "69197b72"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"kind": "component",
|
|
689
|
+
"component": "ui-layout-media-screen",
|
|
690
|
+
"useFor": [
|
|
691
|
+
"Once in the app shell, so every breakpoint question goes to UiLayoutMediaScreenService — never a hard-coded width in TypeScript or a breakpoint through Tailwind."
|
|
692
|
+
],
|
|
693
|
+
"notFor": [
|
|
694
|
+
"Anything visible; a second instance."
|
|
695
|
+
],
|
|
696
|
+
"shownIn": [
|
|
697
|
+
{
|
|
698
|
+
"story": "Layout/Media Screen/MediaScreen",
|
|
699
|
+
"url": "https://moja.work/storybook/?path=/story/layout-media-screen--media-screen"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"file": "apps/website/src/app/app.component.html"
|
|
703
|
+
}
|
|
704
|
+
],
|
|
705
|
+
"sources": [
|
|
706
|
+
"libs/ui/src/lib/layout/media-screen/docs.mdx",
|
|
707
|
+
"media CLAUDE.md (own repo): breakpoints never go through Tailwind"
|
|
708
|
+
],
|
|
709
|
+
"reviewed": "69197b72"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"kind": "component",
|
|
713
|
+
"component": "ui-layout-nav",
|
|
714
|
+
"useFor": [
|
|
715
|
+
"The app navigation in the main header, fed by UiLayoutNavService — tab theme for a site, app theme with a home button for a tool."
|
|
716
|
+
],
|
|
717
|
+
"notFor": [
|
|
718
|
+
"A second nav in the same layout.",
|
|
719
|
+
"A menu in a drawer — that is the burger recipe with ui-layout-overlay."
|
|
720
|
+
],
|
|
721
|
+
"instead": [
|
|
722
|
+
"ui-layout-overlay"
|
|
723
|
+
],
|
|
724
|
+
"shownIn": [
|
|
725
|
+
{
|
|
726
|
+
"story": "Layout/Nav/TemplateTab",
|
|
727
|
+
"url": "https://moja.work/storybook/?path=/story/layout-nav--template-tab"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"story": "Layout/Nav/TemplateApp",
|
|
731
|
+
"url": "https://moja.work/storybook/?path=/story/layout-nav--template-app"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"story": "Examples/Layout/Layout",
|
|
735
|
+
"url": "https://moja.work/storybook/?path=/story/examples-layout--layout"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"file": "apps/website/src/app/parts/header/header.component.html"
|
|
739
|
+
}
|
|
740
|
+
],
|
|
741
|
+
"sources": [
|
|
742
|
+
"libs/ui/src/lib/layout/nav/docs.mdx"
|
|
743
|
+
],
|
|
744
|
+
"reviewed": "69197b72"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"kind": "component",
|
|
748
|
+
"component": "ui-layout-overlay-header",
|
|
749
|
+
"useFor": [
|
|
750
|
+
"The plain header of an overlay: headline plus close, in the overlay-header slot."
|
|
751
|
+
],
|
|
752
|
+
"notFor": [
|
|
753
|
+
"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."
|
|
754
|
+
],
|
|
755
|
+
"shownIn": [
|
|
756
|
+
{
|
|
757
|
+
"story": "Layout/Overlay Header/InsideAnOverlay",
|
|
758
|
+
"url": "https://moja.work/storybook/?path=/story/layout-overlay-header--inside-an-overlay"
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"story": "Examples/Burger Menu/BurgerMenu",
|
|
762
|
+
"url": "https://moja.work/storybook/?path=/story/examples-burger-menu--burger-menu"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"file": "apps/website/src/app/app.component.html"
|
|
766
|
+
}
|
|
767
|
+
],
|
|
768
|
+
"sources": [
|
|
769
|
+
"libs/ui/src/lib/layout/overlay/header/docs.mdx"
|
|
770
|
+
],
|
|
771
|
+
"reviewed": "69197b72"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"kind": "component",
|
|
775
|
+
"component": "ui-layout-overlay",
|
|
776
|
+
"useFor": [
|
|
777
|
+
"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."
|
|
778
|
+
],
|
|
779
|
+
"notFor": [
|
|
780
|
+
"Anything inside the layout tree.",
|
|
781
|
+
"A tooltip or a popover."
|
|
782
|
+
],
|
|
783
|
+
"shownIn": [
|
|
784
|
+
{
|
|
785
|
+
"story": "Examples/Burger Menu/BurgerMenu",
|
|
786
|
+
"url": "https://moja.work/storybook/?path=/story/examples-burger-menu--burger-menu"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"story": "Layout/Overlay/Overlay",
|
|
790
|
+
"url": "https://moja.work/storybook/?path=/story/layout-overlay--overlay"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"story": "Layout/Overlay/ScrollContainment",
|
|
794
|
+
"url": "https://moja.work/storybook/?path=/story/layout-overlay--scroll-containment"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"file": "apps/website/src/app/app.component.html"
|
|
798
|
+
}
|
|
799
|
+
],
|
|
800
|
+
"sources": [
|
|
801
|
+
"libs/ui/src/lib/layout/overlay/docs.mdx",
|
|
802
|
+
"libs/ui/src/lib/examples/docs.mdx"
|
|
803
|
+
],
|
|
804
|
+
"reviewed": "69197b72"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"kind": "component",
|
|
808
|
+
"component": "ui-layout-spinner",
|
|
809
|
+
"useFor": [
|
|
810
|
+
"The one global loading indicator at the app root, driven by UiLayoutSpinnerService from an HTTP interceptor."
|
|
811
|
+
],
|
|
812
|
+
"notFor": [
|
|
813
|
+
"A component's own loading state — the table wrapper has its skeleton, everything else is local styling."
|
|
814
|
+
],
|
|
815
|
+
"shownIn": [
|
|
816
|
+
{
|
|
817
|
+
"story": "Layout/Spinner/Spinner",
|
|
818
|
+
"url": "https://moja.work/storybook/?path=/story/layout-spinner--spinner"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"file": "apps/website/src/app/app.component.html"
|
|
822
|
+
}
|
|
823
|
+
],
|
|
824
|
+
"sources": [
|
|
825
|
+
"libs/ui/src/lib/layout/spinner/docs.mdx"
|
|
826
|
+
],
|
|
827
|
+
"reviewed": "69197b72"
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"kind": "component",
|
|
831
|
+
"component": "ui-layout-splitter",
|
|
832
|
+
"useFor": [
|
|
833
|
+
"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."
|
|
834
|
+
],
|
|
835
|
+
"notFor": [
|
|
836
|
+
"Moving items between two lists.",
|
|
837
|
+
"Resizing panes by dragging — it has direction, zoom and fullscreen, no drag handle."
|
|
838
|
+
],
|
|
839
|
+
"instead": [
|
|
840
|
+
"ui-cdk-drag-drop-splitter"
|
|
841
|
+
],
|
|
842
|
+
"shownIn": [
|
|
843
|
+
{
|
|
844
|
+
"story": "Layout/Splitter/Splitter",
|
|
845
|
+
"url": "https://moja.work/storybook/?path=/story/layout-splitter--splitter"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"story": "Examples/Layout/Layout",
|
|
849
|
+
"url": "https://moja.work/storybook/?path=/story/examples-layout--layout"
|
|
850
|
+
}
|
|
851
|
+
],
|
|
852
|
+
"sources": [
|
|
853
|
+
"libs/ui/src/lib/layout/splitter/docs.mdx",
|
|
854
|
+
"media CLAUDE.md (own repo): the 4K table shots and the zoom"
|
|
855
|
+
],
|
|
856
|
+
"reviewed": "69197b72"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"kind": "component",
|
|
860
|
+
"component": "ui-layout-tabs",
|
|
861
|
+
"useFor": [
|
|
862
|
+
"A few sections of one view switched in place, inside a pane."
|
|
863
|
+
],
|
|
864
|
+
"notFor": [
|
|
865
|
+
"Routing between pages.",
|
|
866
|
+
"Remembering the active tab across a reload."
|
|
867
|
+
],
|
|
868
|
+
"shownIn": [
|
|
869
|
+
{
|
|
870
|
+
"story": "Layout/Tabs/TabsDefault",
|
|
871
|
+
"url": "https://moja.work/storybook/?path=/story/layout-tabs--tabs-default"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"story": "Examples/Layout/Layout",
|
|
875
|
+
"url": "https://moja.work/storybook/?path=/story/examples-layout--layout"
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"sources": [
|
|
879
|
+
"libs/ui/src/lib/layout/tabs/docs.mdx"
|
|
880
|
+
],
|
|
881
|
+
"reviewed": "69197b72"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"kind": "component",
|
|
885
|
+
"component": "ui-layout-top-scroll-bottom",
|
|
886
|
+
"useFor": [
|
|
887
|
+
"A view whose middle scrolls while header and footer stay — once per route, inside main-content."
|
|
888
|
+
],
|
|
889
|
+
"notFor": [
|
|
890
|
+
"Anywhere outside ui-layout-main; a second one in the same view."
|
|
891
|
+
],
|
|
892
|
+
"shownIn": [
|
|
893
|
+
{
|
|
894
|
+
"story": "Layout/Top Scroll Bottom/TopScrollBottom",
|
|
895
|
+
"url": "https://moja.work/storybook/?path=/story/layout-top-scroll-bottom--top-scroll-bottom"
|
|
896
|
+
}
|
|
897
|
+
],
|
|
898
|
+
"sources": [
|
|
899
|
+
"libs/ui/src/lib/layout/top-scroll-bottom/docs.mdx"
|
|
900
|
+
],
|
|
901
|
+
"reviewed": "69197b72"
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"kind": "component",
|
|
905
|
+
"component": "ui-mosaic",
|
|
906
|
+
"useFor": [
|
|
907
|
+
"A decorative tile field behind a page or over a picture — placed with CSS, given a box."
|
|
908
|
+
],
|
|
909
|
+
"notFor": [
|
|
910
|
+
"Anything clickable (pointer events are off).",
|
|
911
|
+
"An element in the flow without a height — it renders nothing, because its tile count comes from its box."
|
|
912
|
+
],
|
|
913
|
+
"shownIn": [
|
|
914
|
+
{
|
|
915
|
+
"story": "Atoms/Mosaic/Images",
|
|
916
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-mosaic--images"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"story": "Atoms/Mosaic/OverImage",
|
|
920
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-mosaic--over-image"
|
|
921
|
+
}
|
|
922
|
+
],
|
|
923
|
+
"sources": [
|
|
924
|
+
"libs/ui/src/lib/atoms/mosaic/docs.mdx"
|
|
925
|
+
],
|
|
926
|
+
"reviewed": "69197b72"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"kind": "component",
|
|
930
|
+
"component": "ui-placeholder",
|
|
931
|
+
"useFor": [
|
|
932
|
+
"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."
|
|
933
|
+
],
|
|
934
|
+
"notFor": [
|
|
935
|
+
"Product UI. It is scenery for documentation."
|
|
936
|
+
],
|
|
937
|
+
"shownIn": [
|
|
938
|
+
{
|
|
939
|
+
"story": "Atoms/Placeholder/Sizes",
|
|
940
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-placeholder--sizes"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"story": "Examples/Layout/Layout",
|
|
944
|
+
"url": "https://moja.work/storybook/?path=/story/examples-layout--layout"
|
|
945
|
+
}
|
|
946
|
+
],
|
|
947
|
+
"sources": [
|
|
948
|
+
"libs/ui/src/lib/atoms/placeholder/docs.mdx",
|
|
949
|
+
"agents.md (Storybook Guidelines: filler needs visible mass)"
|
|
950
|
+
],
|
|
951
|
+
"reviewed": "69197b72"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"kind": "component",
|
|
955
|
+
"component": "ui-qr-code",
|
|
956
|
+
"useFor": [
|
|
957
|
+
"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."
|
|
958
|
+
],
|
|
959
|
+
"notFor": [
|
|
960
|
+
"Payloads past the version-40 capacity at the chosen level; kanji or ECI encodings."
|
|
961
|
+
],
|
|
962
|
+
"shownIn": [
|
|
963
|
+
{
|
|
964
|
+
"story": "Atoms/QR Code/Default",
|
|
965
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-qr-code--default"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"story": "Atoms/QR Code/Levels",
|
|
969
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-qr-code--levels"
|
|
970
|
+
}
|
|
971
|
+
],
|
|
972
|
+
"sources": [
|
|
973
|
+
"libs/ui/src/lib/atoms/qr-code/docs.mdx"
|
|
974
|
+
],
|
|
975
|
+
"reviewed": "69197b72"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"kind": "component",
|
|
979
|
+
"component": "ui-rating",
|
|
980
|
+
"useFor": [
|
|
981
|
+
"Displaying a rating as filled icons — read-only, any Material glyph, colours and size as CSS variables."
|
|
982
|
+
],
|
|
983
|
+
"notFor": [
|
|
984
|
+
"Collecting a rating: it takes no input from the reader."
|
|
985
|
+
],
|
|
986
|
+
"shownIn": [
|
|
987
|
+
{
|
|
988
|
+
"story": "Atoms/Rating/Rating",
|
|
989
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-rating--rating"
|
|
990
|
+
}
|
|
991
|
+
],
|
|
992
|
+
"sources": [
|
|
993
|
+
"libs/ui/src/lib/atoms/rating/docs.mdx"
|
|
994
|
+
],
|
|
995
|
+
"reviewed": "69197b72"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"kind": "component",
|
|
999
|
+
"component": "ui-reader-doc",
|
|
1000
|
+
"useFor": [
|
|
1001
|
+
"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."
|
|
1002
|
+
],
|
|
1003
|
+
"notFor": [
|
|
1004
|
+
"Documents whose raw HTML must survive: it is discarded, counted and named on the page."
|
|
1005
|
+
],
|
|
1006
|
+
"shownIn": [
|
|
1007
|
+
{
|
|
1008
|
+
"story": "Atoms/ReaderDoc/Default",
|
|
1009
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-readerdoc--default"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"story": "Atoms/ReaderDoc/DroppedMarkup",
|
|
1013
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-readerdoc--dropped-markup"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"file": "apps/website/src/app/content/content.component.html"
|
|
1017
|
+
}
|
|
1018
|
+
],
|
|
1019
|
+
"sources": [
|
|
1020
|
+
"libs/ui/src/lib/atoms/reader-doc/docs.mdx"
|
|
1021
|
+
],
|
|
1022
|
+
"reviewed": "69197b72"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"kind": "component",
|
|
1026
|
+
"component": "ui-slider",
|
|
1027
|
+
"useFor": [
|
|
1028
|
+
"A number or a min–max span the reader drags until it looks right."
|
|
1029
|
+
],
|
|
1030
|
+
"notFor": [
|
|
1031
|
+
"A value the reader should type exactly — ui-input with type=\"number\"."
|
|
1032
|
+
],
|
|
1033
|
+
"instead": [
|
|
1034
|
+
"ui-input"
|
|
1035
|
+
],
|
|
1036
|
+
"shownIn": [
|
|
1037
|
+
{
|
|
1038
|
+
"story": "Forms/Slider/Slider",
|
|
1039
|
+
"url": "https://moja.work/storybook/?path=/story/forms-slider--slider"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"story": "Forms/Slider/Range",
|
|
1043
|
+
"url": "https://moja.work/storybook/?path=/story/forms-slider--range"
|
|
1044
|
+
}
|
|
1045
|
+
],
|
|
1046
|
+
"sources": [
|
|
1047
|
+
"libs/ui/src/lib/forms/slider/docs.mdx"
|
|
1048
|
+
],
|
|
1049
|
+
"reviewed": "69197b72"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"kind": "component",
|
|
1053
|
+
"component": "ui-switch",
|
|
1054
|
+
"useFor": [
|
|
1055
|
+
"A deliberate on/off decision that takes effect at once and is valid either way — a setting, a filter, a mode."
|
|
1056
|
+
],
|
|
1057
|
+
"notFor": [
|
|
1058
|
+
"A choice that can be required or invalid, such as a consent."
|
|
1059
|
+
],
|
|
1060
|
+
"instead": [
|
|
1061
|
+
"ui-checkbox"
|
|
1062
|
+
],
|
|
1063
|
+
"shownIn": [
|
|
1064
|
+
{
|
|
1065
|
+
"story": "Forms/Switch/Switch",
|
|
1066
|
+
"url": "https://moja.work/storybook/?path=/story/forms-switch--switch"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"story": "Styling/Forms/Forms",
|
|
1070
|
+
"url": "https://moja.work/storybook/?path=/story/styling-forms--forms"
|
|
1071
|
+
}
|
|
1072
|
+
],
|
|
1073
|
+
"sources": [
|
|
1074
|
+
"libs/ui/src/lib/forms/switch/docs.mdx"
|
|
1075
|
+
],
|
|
1076
|
+
"reviewed": "69197b72"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"kind": "component",
|
|
1080
|
+
"component": "ui-text-animate",
|
|
1081
|
+
"useFor": [
|
|
1082
|
+
"A headline that animates letter by letter; clip on the container when a variant travels in from outside."
|
|
1083
|
+
],
|
|
1084
|
+
"notFor": [
|
|
1085
|
+
"Body text or anything longer than a phrase."
|
|
1086
|
+
],
|
|
1087
|
+
"shownIn": [
|
|
1088
|
+
{
|
|
1089
|
+
"story": "Atoms/Text Animate/TextAnimate",
|
|
1090
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-text-animate--text-animate"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"file": "apps/change-me/src/app/slider/slider.component.html"
|
|
1094
|
+
}
|
|
1095
|
+
],
|
|
1096
|
+
"sources": [
|
|
1097
|
+
"libs/ui/src/lib/atoms/text-animate/docs.mdx"
|
|
1098
|
+
],
|
|
1099
|
+
"reviewed": "69197b72"
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"kind": "component",
|
|
1103
|
+
"component": "ui-thumb",
|
|
1104
|
+
"useFor": [
|
|
1105
|
+
"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."
|
|
1106
|
+
],
|
|
1107
|
+
"notFor": [
|
|
1108
|
+
"A gallery of pictures sharing a selection.",
|
|
1109
|
+
"An image without a link — a plain <img> does that."
|
|
1110
|
+
],
|
|
1111
|
+
"instead": [
|
|
1112
|
+
"ui-image-grid"
|
|
1113
|
+
],
|
|
1114
|
+
"shownIn": [
|
|
1115
|
+
{
|
|
1116
|
+
"story": "Atoms/Thumb/Thumb",
|
|
1117
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-thumb--thumb"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"story": "Atoms/Thumb/ThumbInternalLink",
|
|
1121
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-thumb--thumb-internal-link"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"file": "apps/website/src/app/content/youtube/youtube.component.html"
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"file": "apps/website/src/app/components/news/display/display.component.html"
|
|
1128
|
+
}
|
|
1129
|
+
],
|
|
1130
|
+
"sources": [
|
|
1131
|
+
"libs/ui/src/lib/atoms/thumb/docs.mdx"
|
|
1132
|
+
],
|
|
1133
|
+
"reviewed": "69197b72"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"kind": "component",
|
|
1137
|
+
"component": "ui-timer",
|
|
1138
|
+
"useFor": [
|
|
1139
|
+
"A countdown with a finished event; project the words that stand at zero, in your language."
|
|
1140
|
+
],
|
|
1141
|
+
"notFor": [
|
|
1142
|
+
"Showing the time of day."
|
|
1143
|
+
],
|
|
1144
|
+
"instead": [
|
|
1145
|
+
"ui-clock"
|
|
1146
|
+
],
|
|
1147
|
+
"shownIn": [
|
|
1148
|
+
{
|
|
1149
|
+
"story": "Atoms/Timer/Timer",
|
|
1150
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-timer--timer"
|
|
1151
|
+
}
|
|
1152
|
+
],
|
|
1153
|
+
"sources": [
|
|
1154
|
+
"libs/ui/src/lib/atoms/timer/docs.mdx"
|
|
1155
|
+
],
|
|
1156
|
+
"reviewed": "69197b72"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"kind": "component",
|
|
1160
|
+
"component": "ui-typewriter",
|
|
1161
|
+
"useFor": [
|
|
1162
|
+
"A line of text that types itself, optionally with a keystroke sound — the website's platformer intro."
|
|
1163
|
+
],
|
|
1164
|
+
"notFor": [
|
|
1165
|
+
"Body text; a loop — a second sentence is a new run."
|
|
1166
|
+
],
|
|
1167
|
+
"shownIn": [
|
|
1168
|
+
{
|
|
1169
|
+
"story": "Atoms/Typewriter/Typewriter",
|
|
1170
|
+
"url": "https://moja.work/storybook/?path=/story/atoms-typewriter--typewriter"
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"file": "apps/website/src/app/components/platformer/platformer.component.html"
|
|
1174
|
+
}
|
|
1175
|
+
],
|
|
1176
|
+
"sources": [
|
|
1177
|
+
"libs/ui/src/lib/atoms/typewriter/docs.mdx"
|
|
1178
|
+
],
|
|
1179
|
+
"reviewed": "69197b72"
|
|
1180
|
+
}
|
|
1181
|
+
],
|
|
1182
|
+
"houseRules": [
|
|
1183
|
+
{
|
|
1184
|
+
"heading": "Signals and zoneless change detection",
|
|
1185
|
+
"markdown": "- Use Angular Signals (`signal()`, `computed()`, `effect()`) for state and\n reactive logic instead of manual state or plain observables.\n- The library and its reference applications run **zoneless**\n (`provideZonelessChangeDetection()`, no `zone.js` polyfill). Any\n template-bound state that is updated from an async source\n (`setTimeout`/`setInterval`, RxJS `subscribe`, `Promise`,\n `requestAnimationFrame`) MUST be a signal (or use the `async` pipe /\n `toSignal()`); a plain field written from such a callback will not trigger\n change detection. Imperative DOM writes (e.g. `element.setAttribute`, CSS\n custom properties) do not need this."
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"heading": "Forms",
|
|
1189
|
+
"markdown": "Form inputs follow one fixed format:\n\n```html\n<ui-input [label]=\"'Label'\">\n <input ui-tag [(ngModel)]=\"model\" ... />\n</ui-input>\n```"
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"heading": "Styling and tokens",
|
|
1193
|
+
"markdown": "- Components are styled with plain CSS on the design tokens\n (`var(--ui-spacer)`, `var(--ui-border-radius)`, the `--ui-c-*` colours).\n No CSS framework is required, and no Sass.\n- Host geometry is a named hook with a fallback, never a pinned value —\n e.g. `width: var(--ui-background-width, 100%)`. A consumer without\n Tailwind sets the variable; one with Tailwind puts a utility on the tag,\n and the cascade layers below make it win. Each component documents its\n hooks in its story.\n- The package itself is Tailwind-free; its templates carry no utility\n classes. Tailwind is optional at the consumer: the package ships a\n ready-made Tailwind v4 theme that maps the utilities onto the tokens,\n including light/dark switching and the `ms1:`–`ms6:` breakpoint ladder."
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"heading": "Cascade layers — the library sits below the utilities",
|
|
1197
|
+
"markdown": "A utility you write on a ui tag must win against the component's own\ndefault. Tailwind v4 puts everything in cascade layers, and **unlayered CSS\nbeats layered CSS regardless of specificity** — the order of layers, not\nspecificity, decides who wins.\n\nThe library's styles live in the `ui` layer, declared before Tailwind's:\n\n```css\n@layer theme, base, cdk-resets, ui, components, utilities;\n@import 'tailwindcss';\n```\n\n**Every consumer with its own Tailwind entry declares the same line before\nits import.** A layer nobody names is appended behind all named ones and\nwould beat the whole library. `cdk-resets` is part of the line so the\nAngular CDK's drag-preview reset sits below the library instead of\nstripping every preview of its surface.\n\nWhat this means in practice: a Tailwind utility on a ui tag wins over the\ncomponent's default, and unlayered consumer CSS wins over both. A `!` on a\nutility against a ui tag is a symptom, not a fix — it means the layer line\nis missing somewhere."
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"heading": "Disabled controls and the keyboard",
|
|
1201
|
+
"markdown": "`disabled` is not only a visual state — it changes where the focus can live,\nand it does so retroactively. Two failure modes come out of that, and both\nhave already cost real debugging time.\n\n**A control that disables itself throws the focus away.** The moment an\nelement becomes `disabled`, the browser removes the focus from it and drops it\non `<body>`. So a button whose own activation makes it inert — a reset that\nhas nothing left to undo, a save that dies once everything is saved, a \"load\nmore\" at the end of a list — leaves a keyboard user with no place at all. The\nrow they were working in is gone from under them, and the next Tab starts over\nat the top of the document.\n\nNo navigation logic can repair this. It happens **after** the activation, so\nby the time anything notices, the previous position no longer exists.\n\n**Custom keyboard navigation and the browser disagree about who counts.** The\nbrowser skips disabled controls in the tab order; hand-written navigation that\ncollects controls with a plain `'input, select, textarea, button, a'` counts\nthem. The two sets drift apart: a remembered position points into a different\nlist than the one the focus actually walks, and `focus()` on a disabled\nelement does nothing at all — the focus stays put and the next key press picks\nthe very same dead target again. The navigation jams, silently, with no error\nanywhere.\n\n**Preferred pattern: do not disable at all.** Keep the control **enabled** and\nlet its action be a no-op when there is nothing to do. Express unavailability\nthrough styling plus `aria-disabled=\"true\"` — that keeps the control\nfocusable and reachable while screen readers still announce it as\nunavailable. A dimmed control without `aria-disabled` is, to anyone who only\nlistens, an ordinary control: the look carries the message, and nobody hears a\nlook.\n\n**If a control genuinely must be disabled**, move the focus somewhere\ndeliberate **before** disabling it — the neighbouring control, the container,\nthe element that replaces it. Never leave that decision to the browser.\n\n**And when you write navigation yourself**, derive the control list from the\nDOM on every key press and filter it to what can actually take focus\n(`:not(:disabled):not([hidden]):not([tabindex=\"-1\"])`), so it can never\ndisagree with the native tab order. Never cache the list and never store\npositions as constants: a cell may hold a different number of stations from\none moment to the next."
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"heading": "Where the documentation lives",
|
|
1205
|
+
"markdown": "The component page is the truth — the fixed section \"What it does, and what\nit does not\" on every page. The guide is the offer next to it: use for, not\nfor, instead, with proof. Where the two disagree, the page wins.\n\n- **Storybook** — `https://moja.work/storybook`: every component, every\n story, the guide entries next to the truth sections. It describes the\n current line (behaviour can change within 2.x) — pin an exact version of\n the package rather than a `^` range.\n- **MCP catalog for agents** — `https://moja.work/ui/mcp`: the tools\n `list_components` (the shelf), `get_component_doc` (one page, verbatim)\n and `get_guide` (the recommendations plus these rules). If you know a\n component's selector, ask for it directly instead of fetching the whole\n guide and filtering it yourself.\n- **`llms.txt`** — `https://moja.work/llms.txt`: the catalog for crawlers\n and plain-text readers.\n- **API reference** — the `.d.ts` files in the installed package are the\n version-true API; the hosted Compodoc at `https://moja.work/compodoc/ui`\n describes the line."
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
"missing": []
|
|
1209
|
+
}
|