@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.
Files changed (263) hide show
  1. package/README.md +22 -0
  2. package/bin/serve.mjs +73 -0
  3. package/catalog/atoms/background.md +130 -0
  4. package/catalog/atoms/barcode.md +285 -0
  5. package/catalog/atoms/buzzer.md +210 -0
  6. package/catalog/atoms/card.md +174 -0
  7. package/catalog/atoms/chart.md +236 -0
  8. package/catalog/atoms/clock.md +252 -0
  9. package/catalog/atoms/copy-value.md +203 -0
  10. package/catalog/atoms/image-grid.md +208 -0
  11. package/catalog/atoms/image-slider.md +216 -0
  12. package/catalog/atoms/lang-selector.md +237 -0
  13. package/catalog/atoms/mosaic.md +366 -0
  14. package/catalog/atoms/placeholder.md +157 -0
  15. package/catalog/atoms/qr-code.md +334 -0
  16. package/catalog/atoms/rating.md +176 -0
  17. package/catalog/atoms/reader-doc.md +404 -0
  18. package/catalog/atoms/text-animate.md +122 -0
  19. package/catalog/atoms/thumb.md +153 -0
  20. package/catalog/atoms/timer.md +111 -0
  21. package/catalog/atoms/typewriter.md +132 -0
  22. package/catalog/cdk/splitter.md +63 -0
  23. package/catalog/cdk/table.md +188 -0
  24. package/catalog/forms/autocomplete.md +304 -0
  25. package/catalog/forms/checkbox.md +218 -0
  26. package/catalog/forms/input.md +193 -0
  27. package/catalog/forms/slider.md +142 -0
  28. package/catalog/forms/switch.md +188 -0
  29. package/catalog/guide.json +1209 -0
  30. package/catalog/layout/header.md +167 -0
  31. package/catalog/layout/main.md +158 -0
  32. package/catalog/layout/media-screen.md +163 -0
  33. package/catalog/layout/nav.md +181 -0
  34. package/catalog/layout/overlay.md +256 -0
  35. package/catalog/layout/spinner.md +94 -0
  36. package/catalog/layout/splitter.md +331 -0
  37. package/catalog/layout/tabs.md +144 -0
  38. package/catalog/layout/top-scroll-bottom.md +98 -0
  39. package/catalog/manifest.json +482 -0
  40. package/catalog/mcp.json +44 -0
  41. package/catalog/molecules/image-editor.md +285 -0
  42. package/catalog/usage.md +137 -0
  43. package/catalog/version.json +4 -0
  44. package/package.json +10 -0
  45. package/storybook/1183.da25800b.iframe.bundle.js +1 -0
  46. package/storybook/1255.2abec879.iframe.bundle.js +2 -0
  47. package/storybook/1255.2abec879.iframe.bundle.js.LICENSE.txt +5 -0
  48. package/storybook/1516.52d2dae7.iframe.bundle.js +2 -0
  49. package/storybook/1516.52d2dae7.iframe.bundle.js.LICENSE.txt +5 -0
  50. package/storybook/2033.c705a7ce.iframe.bundle.js +1 -0
  51. package/storybook/2089.32694489.iframe.bundle.js +1 -0
  52. package/storybook/2096.431fc8f5.iframe.bundle.js +1 -0
  53. package/storybook/2127.29f153d2.iframe.bundle.js +2 -0
  54. package/storybook/2127.29f153d2.iframe.bundle.js.LICENSE.txt +7 -0
  55. package/storybook/2228.77650ef1.iframe.bundle.js +2 -0
  56. package/storybook/2228.77650ef1.iframe.bundle.js.LICENSE.txt +1 -0
  57. package/storybook/2249.6e6782ab.iframe.bundle.js +1 -0
  58. package/storybook/2639.29baa8af.iframe.bundle.js +1 -0
  59. package/storybook/2844.c9f47654.iframe.bundle.js +1 -0
  60. package/storybook/2971.edb202b4.iframe.bundle.js +1 -0
  61. package/storybook/3899.55560628.iframe.bundle.js +2 -0
  62. package/storybook/3899.55560628.iframe.bundle.js.LICENSE.txt +5 -0
  63. package/storybook/3968.69b812e4.iframe.bundle.js +1 -0
  64. package/storybook/4255.eeeaf087.iframe.bundle.js +111 -0
  65. package/storybook/4255.eeeaf087.iframe.bundle.js.LICENSE.txt +49 -0
  66. package/storybook/4255.eeeaf087.iframe.bundle.js.map +1 -0
  67. package/storybook/4425.368129b3.iframe.bundle.js +2 -0
  68. package/storybook/4425.368129b3.iframe.bundle.js.LICENSE.txt +5 -0
  69. package/storybook/4476.f8e4115f.iframe.bundle.js +1 -0
  70. package/storybook/4495.d1c8cc8d.iframe.bundle.js +1 -0
  71. package/storybook/4555.066c242d.iframe.bundle.js +1 -0
  72. package/storybook/4755.e4656207.iframe.bundle.js +23 -0
  73. package/storybook/4755.e4656207.iframe.bundle.js.LICENSE.txt +14 -0
  74. package/storybook/4755.e4656207.iframe.bundle.js.map +1 -0
  75. package/storybook/4935.8959522b.iframe.bundle.js +1 -0
  76. package/storybook/5568.c6172f92.iframe.bundle.js +1 -0
  77. package/storybook/5944.810cb147.iframe.bundle.js +1 -0
  78. package/storybook/6115.7f1470ef.iframe.bundle.js +1 -0
  79. package/storybook/6169.eaeed989.iframe.bundle.js +2 -0
  80. package/storybook/6169.eaeed989.iframe.bundle.js.LICENSE.txt +5 -0
  81. package/storybook/6202.b8ca0e90.iframe.bundle.js +2 -0
  82. package/storybook/6202.b8ca0e90.iframe.bundle.js.LICENSE.txt +5 -0
  83. package/storybook/660.18f0458e.iframe.bundle.js +1 -0
  84. package/storybook/6824.f5eb8bb7.iframe.bundle.js +1 -0
  85. package/storybook/7316.5b024e94.iframe.bundle.js +1 -0
  86. package/storybook/7749.2a853795.iframe.bundle.js +1 -0
  87. package/storybook/8051.719eb790.iframe.bundle.js +1 -0
  88. package/storybook/813.805c1e5f.iframe.bundle.js +1 -0
  89. package/storybook/8448.1baeb046.iframe.bundle.js +1 -0
  90. package/storybook/871.428deceb.iframe.bundle.js +1 -0
  91. package/storybook/8819.220ca21d.iframe.bundle.js +1 -0
  92. package/storybook/9045.a50616e9.iframe.bundle.js +2 -0
  93. package/storybook/9045.a50616e9.iframe.bundle.js.LICENSE.txt +5 -0
  94. package/storybook/9560.668052f3.iframe.bundle.js +7 -0
  95. package/storybook/9560.668052f3.iframe.bundle.js.map +1 -0
  96. package/storybook/973.67f44bb0.iframe.bundle.js +1 -0
  97. package/storybook/9850.28367747.iframe.bundle.js +1 -0
  98. package/storybook/9946.36014b4e.iframe.bundle.js +1 -0
  99. package/storybook/MaterialIcons-Regular.woff2 +0 -0
  100. package/storybook/MaterialIconsOutlined-Regular.woff2 +0 -0
  101. package/storybook/PetMe64.ttf +0 -0
  102. package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +1 -0
  103. package/storybook/_external-mwork-banner-mwork-banner-stories.d44f6917.iframe.bundle.js +1 -0
  104. package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +1 -0
  105. package/storybook/_external-mwork-basic-interpreter-mwork-basic-interpreter-stories.3252a9b8.iframe.bundle.js +1 -0
  106. package/storybook/_external-mwork-music-player-docs-mdx.6f943768.iframe.bundle.js +1 -0
  107. package/storybook/_external-mwork-music-player-mwork-music-player-stories.08fbf651.iframe.bundle.js +1 -0
  108. package/storybook/assets/fonts/PETME64-LICENSE.txt +20 -0
  109. package/storybook/assets/fonts/PetMe64.ttf +0 -0
  110. package/storybook/assets/fonts/icons/MaterialIcons-Regular.woff2 +0 -0
  111. package/storybook/assets/fonts/icons/MaterialIconsOutlined-Regular.woff2 +0 -0
  112. package/storybook/assets/ui/documents/demo.pdf +42 -0
  113. package/storybook/assets/ui/i18n/de-DE.json +1 -0
  114. package/storybook/assets/ui/i18n/en-EN.json +2 -0
  115. package/storybook/assets/ui/i18n/ui/de-DE.json +95 -0
  116. package/storybook/assets/ui/i18n/ui/en-EN.json +95 -0
  117. package/storybook/assets/ui/images/600x600.png +0 -0
  118. package/storybook/assets/ui/images/600x800.png +0 -0
  119. package/storybook/assets/ui/images/800x600.png +0 -0
  120. package/storybook/assets/ui/images/unknown.gif +0 -0
  121. package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +1 -0
  122. package/storybook/atoms-_electrons-form-error-message-form-error-message-component-stories.7f749acc.iframe.bundle.js +1 -0
  123. package/storybook/atoms-background-background-component-stories.b6b50c0c.iframe.bundle.js +1 -0
  124. package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +1 -0
  125. package/storybook/atoms-barcode-barcode-component-stories.dc462559.iframe.bundle.js +1 -0
  126. package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +1 -0
  127. package/storybook/atoms-buzzer-buzzer-component-stories.13ee130d.iframe.bundle.js +1 -0
  128. package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +1 -0
  129. package/storybook/atoms-card-card-component-stories.065b34e9.iframe.bundle.js +1 -0
  130. package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +1 -0
  131. package/storybook/atoms-chart-chart-component-stories.5247b7cb.iframe.bundle.js +1 -0
  132. package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +1 -0
  133. package/storybook/atoms-clock-clock-component-stories.d1464731.iframe.bundle.js +1 -0
  134. package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +1 -0
  135. package/storybook/atoms-copy-value-copy-value-component-stories.58d3956a.iframe.bundle.js +1 -0
  136. package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +1 -0
  137. package/storybook/atoms-image-grid-docs-mdx.18b4df2a.iframe.bundle.js +1 -0
  138. package/storybook/atoms-image-grid-image-grid-component-stories.a0a92d9e.iframe.bundle.js +1 -0
  139. package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +1 -0
  140. package/storybook/atoms-image-slider-image-slider-component-stories.484b9c41.iframe.bundle.js +1 -0
  141. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +2 -0
  142. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js.LICENSE.txt +5 -0
  143. package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js +2 -0
  144. package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js.LICENSE.txt +5 -0
  145. package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +1 -0
  146. package/storybook/atoms-mosaic-mosaic-component-stories.0a6bc043.iframe.bundle.js +1 -0
  147. package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +1 -0
  148. package/storybook/atoms-placeholder-placeholder-component-stories.bc221534.iframe.bundle.js +1 -0
  149. package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +1 -0
  150. package/storybook/atoms-qr-code-qr-code-component-stories.5018e2b0.iframe.bundle.js +1 -0
  151. package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +1 -0
  152. package/storybook/atoms-rating-rating-component-stories.982db47d.iframe.bundle.js +1 -0
  153. package/storybook/atoms-reader-doc-docs-mdx.0688c3b9.iframe.bundle.js +1 -0
  154. package/storybook/atoms-reader-doc-reader-doc-component-stories.a6fec57d.iframe.bundle.js +1 -0
  155. package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +1 -0
  156. package/storybook/atoms-text-animate-text-animate-component-stories.8041c0f1.iframe.bundle.js +1 -0
  157. package/storybook/atoms-thumb-docs-mdx.2143ad01.iframe.bundle.js +1 -0
  158. package/storybook/atoms-thumb-thumb-component-stories.06f51d03.iframe.bundle.js +1 -0
  159. package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +1 -0
  160. package/storybook/atoms-timer-timer-component-stories.9bee1037.iframe.bundle.js +1 -0
  161. package/storybook/atoms-typewriter-docs-mdx.3b1088c0.iframe.bundle.js +1 -0
  162. package/storybook/atoms-typewriter-typewriter-component-stories.4fefc019.iframe.bundle.js +1 -0
  163. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +1 -0
  164. package/storybook/cdk-components-drag-and-drop-splitter-splitter-component-stories.286b5171.iframe.bundle.js +1 -0
  165. package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +1 -0
  166. package/storybook/cdk-components-table-table-component-stories.db9212fd.iframe.bundle.js +1 -0
  167. package/storybook/examples-burger-menu-stories.0a083a75.iframe.bundle.js +1 -0
  168. package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +1 -0
  169. package/storybook/examples-image-grid-slider-docs-mdx.9e38157e.iframe.bundle.js +1 -0
  170. package/storybook/examples-image-grid-slider-image-grid-slider-stories.028c8c2b.iframe.bundle.js +1 -0
  171. package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +1 -0
  172. package/storybook/examples-layout-layout-stories.05cd891f.iframe.bundle.js +1 -0
  173. package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +1 -0
  174. package/storybook/examples-table-edit-focus-table-edit-focus-stories.c79e214a.iframe.bundle.js +1 -0
  175. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +2 -0
  176. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt +5 -0
  177. package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js +2 -0
  178. package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js.LICENSE.txt +5 -0
  179. package/storybook/favicon-wrapper.svg +46 -0
  180. package/storybook/favicon.svg +1 -0
  181. package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js +2 -0
  182. package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js.LICENSE.txt +5 -0
  183. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +2 -0
  184. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt +5 -0
  185. package/storybook/forms-autofocus-autofocus-stories.2e94d887.iframe.bundle.js +1 -0
  186. package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +1 -0
  187. package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +1 -0
  188. package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +1 -0
  189. package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +1 -0
  190. package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +1 -0
  191. package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +1 -0
  192. package/storybook/forms-slider-slider-component-stories.058fb9b1.iframe.bundle.js +1 -0
  193. package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +1 -0
  194. package/storybook/forms-switch-switch-component-stories.bf67d7c9.iframe.bundle.js +1 -0
  195. package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +1 -0
  196. package/storybook/forms-validators-validators-component-stories.9525f97b.iframe.bundle.js +1 -0
  197. package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +1 -0
  198. package/storybook/home-overview-mdx.d0cf448a.iframe.bundle.js +1 -0
  199. package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +1 -0
  200. package/storybook/home-usage-mdx.7ba89dd0.iframe.bundle.js +1 -0
  201. package/storybook/iframe.html +558 -0
  202. package/storybook/index.html +155 -0
  203. package/storybook/index.json +1 -0
  204. package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +1 -0
  205. package/storybook/layout-main-main-component-stories.788c0c54.iframe.bundle.js +1 -0
  206. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +2 -0
  207. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js.LICENSE.txt +5 -0
  208. package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js +2 -0
  209. package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js.LICENSE.txt +5 -0
  210. package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +1 -0
  211. package/storybook/layout-nav-nav-component-stories.766738fc.iframe.bundle.js +1 -0
  212. package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +1 -0
  213. package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +1 -0
  214. package/storybook/layout-overlay-header-header-component-stories.5eaef192.iframe.bundle.js +1 -0
  215. package/storybook/layout-overlay-overlay-component-stories.01f6cd84.iframe.bundle.js +1 -0
  216. package/storybook/layout-spinner-docs-mdx.4be572c0.iframe.bundle.js +1 -0
  217. package/storybook/layout-spinner-spinner-component-stories.ab8245c6.iframe.bundle.js +1 -0
  218. package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +1 -0
  219. package/storybook/layout-splitter-splitter-component-stories.46b8b112.iframe.bundle.js +1 -0
  220. package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +1 -0
  221. package/storybook/layout-tabs-tabs-component-stories.8602cefa.iframe.bundle.js +1 -0
  222. package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +1 -0
  223. package/storybook/layout-top-scroll-bottom-top-scroll-bottom-component-stories.9ee7055f.iframe.bundle.js +1 -0
  224. package/storybook/main.2d116a57.iframe.bundle.js +1 -0
  225. package/storybook/main.a402659c6a0734088d14.css +2101 -0
  226. package/storybook/mocker-runtime-injected.js +1 -0
  227. package/storybook/molecules-image-editor-docs-mdx.119ea12a.iframe.bundle.js +1 -0
  228. package/storybook/molecules-image-editor-image-editor-component-stories.56467f17.iframe.bundle.js +1 -0
  229. package/storybook/nunito-sans-bold-italic.woff2 +0 -0
  230. package/storybook/nunito-sans-bold.woff2 +0 -0
  231. package/storybook/nunito-sans-italic.woff2 +0 -0
  232. package/storybook/nunito-sans-regular.woff2 +0 -0
  233. package/storybook/project.json +1 -0
  234. package/storybook/runtime~main.a9b8ab83.iframe.bundle.js +1 -0
  235. package/storybook/sb-addons/docs-1/manager-bundle.js +3 -0
  236. package/storybook/sb-addons/libs-ui-storybook-2/manager-bundle.js +3 -0
  237. package/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
  238. package/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
  239. package/storybook/sb-common-assets/favicon.svg +1 -0
  240. package/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  241. package/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  242. package/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  243. package/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  244. package/storybook/sb-manager/globals-runtime.js +76714 -0
  245. package/storybook/sb-manager/globals.js +24 -0
  246. package/storybook/sb-manager/manager-stores.js +23 -0
  247. package/storybook/sb-manager/runtime.js +27451 -0
  248. package/storybook/sb-preview/globals.js +20 -0
  249. package/storybook/sb-preview/runtime.js +35491 -0
  250. package/storybook/styling-colors-colors-component-stories.58031f40.iframe.bundle.js +1 -0
  251. package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +1 -0
  252. package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +1 -0
  253. package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +1 -0
  254. package/storybook/styling-forms-forms-component-stories.8af76278.iframe.bundle.js +1 -0
  255. package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +1 -0
  256. package/storybook/styling-icons-icons-component-stories.2dd8c6f8.iframe.bundle.js +1 -0
  257. package/storybook/styling-layers-docs-mdx.5039dc45.iframe.bundle.js +1 -0
  258. package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +1 -0
  259. package/storybook/styling-tags-tags-component-stories.7a64bd20.iframe.bundle.js +1 -0
  260. package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +1 -0
  261. package/storybook/styling-ui-tags-ui-tags-component-stories.2ec3109b.iframe.bundle.js +1 -0
  262. package/storybook/version.json +4 -0
  263. package/version.json +4 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4067,7877],{"./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/text-animate/text-animate.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>uiTextAnimateData});const uiTextAnimateData=["none","zoom-in-out","scale-x","move-in","move-from-right"]},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/text-animate/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_text_animate_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/text-animate/text-animate.component.stories.ts"),_text_animate_types__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/src/lib/atoms/text-animate/text-animate.types.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_text_animate_json__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./libs/ui/guide/ui-text-animate.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_text_animate_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"text-animate",children:"Text Animate"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A component for applying letter-by-letter animations to text strings."}),"\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:["Splits one string into letters and animates them one after another with a\nstaggered delay; every input change restarts the run. It animates, and that is\nall: it does not clip letters that travel in from outside its box — that is the\nlayout's decision — and it runs as long as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"iterationCount"})," says, infinite by\ndefault. It is meant for a headline or a short phrase, not for body text."]}),"\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_6__.Ay,{of:"ui-text-animate",entry:_guide_ui_text_animate_json__WEBPACK_IMPORTED_MODULE_7__}),"\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:"UiTextAnimateComponent"})," splits a given string into individual characters and applies CSS animations to each, with a staggered delay. This creates a dynamic and engaging way to display headlines or short phrases."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The following properties can be used to configure the text animation:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"text"}),": (Input) The text string to animate."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"animation"}),": (Input) The type of animation to apply (e.g., 'zoom-in-out', 'scale-x')."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"iterationCount"}),": (Input) CSS ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"animation-iteration-count"})," value (default: 'infinite')."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Every input change restarts the animation: the letters are taken out of the\nDOM for a moment and put back, because a CSS animation only starts over on a\nfresh element."}),"\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:"clipping",children:"Clipping"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Some variants travel in from far outside — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"move-from-right"})," starts 1000px to\nthe right — and the component does not clip them itself. Clipping is a\ndecision about the layout around the text, so it is made there: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overflow: hidden"})," on the tag or on a container. The tag is a block of its own, so a\nrule on it is enough:"]}),"\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-text-animate class="headline" [text]="\'Animated Text\'" [animation]="\'move-from-right\'"></ui-text-animate>\n'})}),"\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-css",children:".headline {\n overflow: hidden;\n}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The overview below clips each row exactly that way (with a utility class,\nsince Storybook has Tailwind)."}),"\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:"accessibility",children:"Accessibility"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:'One span per letter would be spelled out — "A, n, i, m, a, t, e, d". The\nletters are therefore hidden from assistive technology, and the whole text\nstands once more in the tag, visually hidden. A reader gets the word; a\nviewer gets the animation.'}),"\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:"basic-example",children:"Basic Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"In this example, you can interactively change the text, the animation type\nand how often it plays."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_text_animate_component_stories__WEBPACK_IMPORTED_MODULE_4__.TextAnimate}),"\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:"variants",children:"Variants"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Every animation, named by itself and clipped by a class on the tag — five\nrows animating at once compete with the text of this page, so the overview\nopens on its own: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/atoms-text-animate--text-animate-theme",children:"Open story"})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:"<ui-text-animate [text]=\"'Animated Text'\" [animation]=\"'zoom-in-out'\"></ui-text-animate>\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"types-uitextanimatetype",children:"Types: UiTextAnimateType"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Available animation types, read from the exported ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiTextAnimateData"})," list —\nthis line cannot fall behind the code because it is the code:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:_text_animate_types__WEBPACK_IMPORTED_MODULE_5__.$.map(type=>`'${type}'`).join(" | ")})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/text-animate/text-animate.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TextAnimate:()=>TextAnimate,TextAnimateTheme:()=>TextAnimateTheme,__namedExportsOrder:()=>__namedExportsOrder,default:()=>text_animate_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 text_animate_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/text-animate/text-animate.component.css?ngResource"),text_animate_componentngResource_default=__webpack_require__.n(text_animate_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiTextAnimateComponent=class UiTextAnimateComponent{animation=(0,core.input)(null);text=(0,core.input)(null);iterationCount=(0,core.input)("infinite");letters=(0,_resource_chunk.EW)(()=>this.text()?.split("").map(item=>" "===item?" ":item)??null);display=(0,_effect_chunk2.vPA)(!0);constructor(){(0,_effect_chunk2.QZP)(onCleanup=>{this.text(),this.animation(),this.iterationCount(),(0,_resource_chunk.O8)(()=>this.display.set(!1));const timer=setTimeout(()=>this.display.set(!0),10);onCleanup(()=>clearTimeout(timer))})}delay(index){return.1*(index+1)}static ctorParameters=()=>[];static propDecorators={animation:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"animation",required:!1,transform:void 0}]}],text:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"text",required:!1,transform:void 0}]}],iterationCount:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"iterationCount",required:!1,transform:void 0}]}]}};UiTextAnimateComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-text-animate",template:'@if (letters() && display()) {\n <span class="_text">{{ text() }}</span>\n <div class="_wrapper">\n @for (letter of letters(); track $index; let i = $index) {\n <span\n aria-hidden="true"\n [class]="animation()"\n [style.animation-delay.s]="delay(i)"\n [style.animation-iteration-count]="iterationCount()"\n >{{ letter }}</span>\n }\n </div>\n}\n',encapsulation:_debug_node_chunk.gXe.None,styles:[text_animate_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiTextAnimateComponent);var text_animate_types=__webpack_require__("./libs/ui/src/lib/atoms/text-animate/text-animate.types.ts");const text_animate_component_stories={title:"Atoms/Text Animate",component:UiTextAnimateComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,fesm2022_forms.YN,UiTextAnimateComponent]})],argTypes:{animation:{control:"select",options:text_animate_types.$},text:{control:"text"},iterationCount:{control:"select",options:["infinite",1,2,3]},animations:{table:{disable:!0}}},args:{animation:"zoom-in-out",text:"Animated Text",iterationCount:"infinite"},parameters:{docs:{canvas:{sourceState:"none"}}}},TextAnimate={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-text-animate [text]="text" [animation]="animation" [iterationCount]="iterationCount">\n </ui-text-animate>\n </section>\n '})},TextAnimateTheme={parameters:{controls:{disable:!0}},render:args=>({props:{...args,animations:text_animate_types.$},template:'\n <ui-intern-header [display]="true" theme="theme-dark"></ui-intern-header>\n <section class="relative flex flex-col">\n @for (value of animations; track value) {\n <ui-text-animate class="overflow-hidden" [text]="value" [animation]="value" [iterationCount]="\'infinite\'"></ui-text-animate>\n }\n </section>\n '})},__namedExportsOrder=["TextAnimate","TextAnimateTheme"];TextAnimate.parameters={...TextAnimate.parameters,docs:{...TextAnimate.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-text-animate [text]="text" [animation]="animation" [iterationCount]="iterationCount">\n </ui-text-animate>\n </section>\n `\n };\n }\n}',...TextAnimate.parameters?.docs?.source}}},TextAnimateTheme.parameters={...TextAnimateTheme.parameters,docs:{...TextAnimateTheme.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: args => {\n return {\n props: {\n ...args,\n animations: uiTextAnimateData\n },\n template: `\n <ui-intern-header [display]="true" theme="theme-dark"></ui-intern-header>\n <section class="relative flex flex-col">\n @for (value of animations; track value) {\n <ui-text-animate class="overflow-hidden" [text]="value" [animation]="value" [iterationCount]="\'infinite\'"></ui-text-animate>\n }\n </section>\n `\n };\n }\n}',...TextAnimateTheme.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/text-animate/text-animate.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 ui-text-animate-zoom-in-out {\n 0% {\n color: var(--ui-c-background);\n transform: scale(1);\n }\n 2% {\n color: var(--ui-c-background);\n }\n 4% {\n transform: scale(6);\n }\n 12% {\n transform: scale(1);\n color: var(--ui-c-default);\n }\n 96% {\n transform: scale(1);\n color: var(--ui-c-default);\n }\n 100% {\n transform: scale(1);\n color: var(--ui-c-default);\n }\n}\n\n@keyframes ui-text-animate-move-from-right {\n 0% {\n transform: translateX(1000px);\n color: transparent;\n }\n\n 2% {\n color: var(--ui-c-background);\n }\n 12% {\n transform: translateX(0);\n color: var(--ui-c-default);\n }\n 14% {\n transform: translateX(10px);\n color: var(--ui-c-default);\n }\n 16% {\n transform: translateX(0);\n color: var(--ui-c-default);\n }\n 94% {\n transform: translateX(0);\n color: var(--ui-c-default);\n }\n}\n\n@keyframes ui-text-animate-scale-x {\n 0% {\n transform: scaleX(0) scale(1.2);\n color: transparent;\n }\n 10% {\n transform: scaleX(1);\n color: var(--ui-c-default);\n }\n 94% {\n color: var(--ui-c-default);\n }\n}\n\n@keyframes ui-text-animate-move-in-up {\n 0% {\n transform: translateY(-100px);\n color: transparent;\n }\n 6% {\n transform: translateY(0);\n color: var(--ui-c-default);\n }\n 94% {\n color: var(--ui-c-default);\n }\n}\n@keyframes ui-text-animate-move-in-down {\n 0% {\n transform: translateY(100px);\n color: transparent;\n }\n 6% {\n transform: translateY(0);\n color: var(--ui-c-default);\n }\n 94% {\n color: var(--ui-c-default);\n }\n}\n\nui-text-animate {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n\n /* A box of its own, so the tag can be clipped and sized from outside. It\n used to be inline and only became a box when a consumer happened to\n place it in a flex parent. Clipping is the consumer's: `overflow: hidden`\n on the tag or on a container, never an input here. */\n display: block;\n\n /* The whole text once, for assistive technology — the letters below are\n hidden from it, since a reader would spell the word out. Visually\n removed, not `display: none`, so it is still read. */\n ._text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n ._wrapper {\n display: flex;\n flex-grow: 1;\n /* rem, not em: the wrapper sets no font-size, so em hung on the inherited\n base — the 6.25px body fossil where nothing anchored it (tickets#148).\n Pinned pixel-true to the accepted 16px (2.6em x 6.25px = 16.25px; the\n quarter pixel loses to a whole number). */\n padding: 1.6rem;\n\n span {\n /* rem, not em: this is the fallback below the custom-media overrides\n (4rem / 3.8vw / 6.8rem). It only shows when custom-media fails — and\n then the old em hung on the 6.25px body fossil (tickets#148). Pinned\n to a readable 36px so the failure mode degrades sanely. */\n font-size: 3.6rem;\n display: flex;\n animation-duration: 4s;\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n color: var(--ui-c-secondary);\n }\n\n span.zoom-in-out {\n animation-name: ui-text-animate-zoom-in-out;\n }\n span.move-from-right {\n animation-name: ui-text-animate-move-from-right;\n }\n span.scale-x {\n animation-name: ui-text-animate-scale-x;\n }\n span:nth-child(even).move-in {\n animation-name: ui-text-animate-move-in-up;\n }\n span:nth-child(odd).move-in {\n animation-name: ui-text-animate-move-in-down;\n }\n\n @media screen and (max-width: 768px) {\n span {\n font-size: 4rem;\n }\n }\n\n @media screen and (min-width: 769px) and (max-width: 1900px) {\n span {\n font-size: 3.8vw;\n }\n }\n\n @media (min-width: 1901px) {\n span {\n font-size: 6.8rem;\n }\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[7877],{"./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/text-animate/text-animate.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>uiTextAnimateData});const uiTextAnimateData=["none","zoom-in-out","scale-x","move-in","move-from-right"]},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/src/lib/atoms/text-animate/text-animate.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TextAnimate:()=>TextAnimate,TextAnimateTheme:()=>TextAnimateTheme,__namedExportsOrder:()=>__namedExportsOrder,default:()=>text_animate_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 text_animate_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/text-animate/text-animate.component.css?ngResource"),text_animate_componentngResource_default=__webpack_require__.n(text_animate_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiTextAnimateComponent=class UiTextAnimateComponent{animation=(0,core.input)(null);text=(0,core.input)(null);iterationCount=(0,core.input)("infinite");letters=(0,_resource_chunk.EW)(()=>this.text()?.split("").map(item=>" "===item?" ":item)??null);display=(0,_effect_chunk2.vPA)(!0);constructor(){(0,_effect_chunk2.QZP)(onCleanup=>{this.text(),this.animation(),this.iterationCount(),(0,_resource_chunk.O8)(()=>this.display.set(!1));const timer=setTimeout(()=>this.display.set(!0),10);onCleanup(()=>clearTimeout(timer))})}delay(index){return.1*(index+1)}static ctorParameters=()=>[];static propDecorators={animation:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"animation",required:!1,transform:void 0}]}],text:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"text",required:!1,transform:void 0}]}],iterationCount:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"iterationCount",required:!1,transform:void 0}]}]}};UiTextAnimateComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-text-animate",template:'@if (letters() && display()) {\n <span class="_text">{{ text() }}</span>\n <div class="_wrapper">\n @for (letter of letters(); track $index; let i = $index) {\n <span\n aria-hidden="true"\n [class]="animation()"\n [style.animation-delay.s]="delay(i)"\n [style.animation-iteration-count]="iterationCount()"\n >{{ letter }}</span>\n }\n </div>\n}\n',encapsulation:_debug_node_chunk.gXe.None,styles:[text_animate_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiTextAnimateComponent);var text_animate_types=__webpack_require__("./libs/ui/src/lib/atoms/text-animate/text-animate.types.ts");const text_animate_component_stories={title:"Atoms/Text Animate",component:UiTextAnimateComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,fesm2022_forms.YN,UiTextAnimateComponent]})],argTypes:{animation:{control:"select",options:text_animate_types.$},text:{control:"text"},iterationCount:{control:"select",options:["infinite",1,2,3]},animations:{table:{disable:!0}}},args:{animation:"zoom-in-out",text:"Animated Text",iterationCount:"infinite"},parameters:{docs:{canvas:{sourceState:"none"}}}},TextAnimate={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-text-animate [text]="text" [animation]="animation" [iterationCount]="iterationCount">\n </ui-text-animate>\n </section>\n '})},TextAnimateTheme={parameters:{controls:{disable:!0}},render:args=>({props:{...args,animations:text_animate_types.$},template:'\n <ui-intern-header [display]="true" theme="theme-dark"></ui-intern-header>\n <section class="relative flex flex-col">\n @for (value of animations; track value) {\n <ui-text-animate class="overflow-hidden" [text]="value" [animation]="value" [iterationCount]="\'infinite\'"></ui-text-animate>\n }\n </section>\n '})},__namedExportsOrder=["TextAnimate","TextAnimateTheme"];TextAnimate.parameters={...TextAnimate.parameters,docs:{...TextAnimate.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-text-animate [text]="text" [animation]="animation" [iterationCount]="iterationCount">\n </ui-text-animate>\n </section>\n `\n };\n }\n}',...TextAnimate.parameters?.docs?.source}}},TextAnimateTheme.parameters={...TextAnimateTheme.parameters,docs:{...TextAnimateTheme.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: args => {\n return {\n props: {\n ...args,\n animations: uiTextAnimateData\n },\n template: `\n <ui-intern-header [display]="true" theme="theme-dark"></ui-intern-header>\n <section class="relative flex flex-col">\n @for (value of animations; track value) {\n <ui-text-animate class="overflow-hidden" [text]="value" [animation]="value" [iterationCount]="\'infinite\'"></ui-text-animate>\n }\n </section>\n `\n };\n }\n}',...TextAnimateTheme.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/text-animate/text-animate.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 ui-text-animate-zoom-in-out {\n 0% {\n color: var(--ui-c-background);\n transform: scale(1);\n }\n 2% {\n color: var(--ui-c-background);\n }\n 4% {\n transform: scale(6);\n }\n 12% {\n transform: scale(1);\n color: var(--ui-c-default);\n }\n 96% {\n transform: scale(1);\n color: var(--ui-c-default);\n }\n 100% {\n transform: scale(1);\n color: var(--ui-c-default);\n }\n}\n\n@keyframes ui-text-animate-move-from-right {\n 0% {\n transform: translateX(1000px);\n color: transparent;\n }\n\n 2% {\n color: var(--ui-c-background);\n }\n 12% {\n transform: translateX(0);\n color: var(--ui-c-default);\n }\n 14% {\n transform: translateX(10px);\n color: var(--ui-c-default);\n }\n 16% {\n transform: translateX(0);\n color: var(--ui-c-default);\n }\n 94% {\n transform: translateX(0);\n color: var(--ui-c-default);\n }\n}\n\n@keyframes ui-text-animate-scale-x {\n 0% {\n transform: scaleX(0) scale(1.2);\n color: transparent;\n }\n 10% {\n transform: scaleX(1);\n color: var(--ui-c-default);\n }\n 94% {\n color: var(--ui-c-default);\n }\n}\n\n@keyframes ui-text-animate-move-in-up {\n 0% {\n transform: translateY(-100px);\n color: transparent;\n }\n 6% {\n transform: translateY(0);\n color: var(--ui-c-default);\n }\n 94% {\n color: var(--ui-c-default);\n }\n}\n@keyframes ui-text-animate-move-in-down {\n 0% {\n transform: translateY(100px);\n color: transparent;\n }\n 6% {\n transform: translateY(0);\n color: var(--ui-c-default);\n }\n 94% {\n color: var(--ui-c-default);\n }\n}\n\nui-text-animate {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n\n /* A box of its own, so the tag can be clipped and sized from outside. It\n used to be inline and only became a box when a consumer happened to\n place it in a flex parent. Clipping is the consumer's: `overflow: hidden`\n on the tag or on a container, never an input here. */\n display: block;\n\n /* The whole text once, for assistive technology — the letters below are\n hidden from it, since a reader would spell the word out. Visually\n removed, not `display: none`, so it is still read. */\n ._text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n ._wrapper {\n display: flex;\n flex-grow: 1;\n /* rem, not em: the wrapper sets no font-size, so em hung on the inherited\n base — the 6.25px body fossil where nothing anchored it (tickets#148).\n Pinned pixel-true to the accepted 16px (2.6em x 6.25px = 16.25px; the\n quarter pixel loses to a whole number). */\n padding: 1.6rem;\n\n span {\n /* rem, not em: this is the fallback below the custom-media overrides\n (4rem / 3.8vw / 6.8rem). It only shows when custom-media fails — and\n then the old em hung on the 6.25px body fossil (tickets#148). Pinned\n to a readable 36px so the failure mode degrades sanely. */\n font-size: 3.6rem;\n display: flex;\n animation-duration: 4s;\n animation-fill-mode: forwards;\n animation-timing-function: linear;\n color: var(--ui-c-secondary);\n }\n\n span.zoom-in-out {\n animation-name: ui-text-animate-zoom-in-out;\n }\n span.move-from-right {\n animation-name: ui-text-animate-move-from-right;\n }\n span.scale-x {\n animation-name: ui-text-animate-scale-x;\n }\n span:nth-child(even).move-in {\n animation-name: ui-text-animate-move-in-up;\n }\n span:nth-child(odd).move-in {\n animation-name: ui-text-animate-move-in-down;\n }\n\n @media screen and (max-width: 768px) {\n span {\n font-size: 4rem;\n }\n }\n\n @media screen and (min-width: 769px) and (max-width: 1900px) {\n span {\n font-size: 3.8vw;\n }\n }\n\n @media (min-width: 1901px) {\n span {\n font-size: 6.8rem;\n }\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3925,5370],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/thumb/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_thumb_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/thumb/thumb.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_thumb_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-thumb.json");function _createMdxContent(props){const _components={code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_thumb_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"thumb",children:"Thumb"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A component for displaying thumbnail images with optional links and titles."}),"\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:["Shows one thumbnail from a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiThumbType"}),": the picture (with an optional WebP\nsource), its alt text, an optional caption from ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"title"}),", and a link around it —\nan external ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"link"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"target"})," or an in-app ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"routerLink"})," with a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fragment"}),". It takes\nthe width it is given and draws nothing else: no gallery, no lazy loading of its\nown, no decision about which picture to show."]}),"\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-thumb",entry:_guide_ui_thumb_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:"UiThumbComponent"})," is used to show image previews (thumbnails). It supports standard image formats as well as WebP, and can wrap the thumbnail in a link with a title and target attribute. For in-app navigation the thumbnail can render a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"routerLink"})," anchor with an optional URL ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fragment"})," instead of a plain external link."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The following properties can be used to configure the thumbnail:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"data"}),": (Input) An object of type ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiThumbType"})," containing the image source, alt text, link, and other metadata."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"basic-example",children:"Basic Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"In this example, you can see how the thumbnail is rendered using mock data."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_thumb_component_stories__WEBPACK_IMPORTED_MODULE_4__.Thumb}),"\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:"internal-link-example",children:"Internal Link Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["When ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"routerLink"})," is set, the thumbnail navigates within the app (SPA navigation, no page reload) and appends the optional ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fragment"})," to the URL. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"routerLink"})," takes precedence over ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"link"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"target"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_thumb_component_stories__WEBPACK_IMPORTED_MODULE_4__.ThumbInternalLink}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-thumb [data]="thumbData"></ui-thumb>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The tag is a block of its own and takes the width it is given — place it in\na grid cell or give it a width, nothing more is needed."}),"\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:"types-uithumbtype",children:"Types: UiThumbType"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The data object structure:"}),"\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:"interface UiThumbType {\n link: string | null;\n title: string | null;\n target: string | null;\n src: string | null;\n srcWebp: string | null;\n alt: string;\n routerLink?: string | null;\n fragment?: string | null;\n}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"routerLink"}),": in-app route for SPA navigation; takes precedence over ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"link"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"target"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fragment"}),": URL fragment appended to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"routerLink"}),", e.g. an anchor element id."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"css-custom-properties",children:"CSS Custom Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The image zoom is configurable per consumer by setting these custom properties on the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-thumb"})," host element:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Property"}),(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:"--ui-thumb-scale"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Base zoom of the thumbnail image."})]}),(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:"--ui-thumb-scale-hover"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1.4"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Zoom of the thumbnail image on hover."})]})]})]}),"\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-css",children:"ui-thumb {\n --ui-thumb-scale: 1.4;\n --ui-thumb-scale-hover: 1.6;\n}\n"})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/thumb/thumb.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Thumb:()=>Thumb,ThumbInternalLink:()=>ThumbInternalLink,ThumbTheme:()=>ThumbTheme,__namedExportsOrder:()=>__namedExportsOrder,default:()=>thumb_component_stories});var _router_module_chunk=__webpack_require__("./node_modules/@angular/router/fesm2022/_router_module-chunk.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 thumb_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/thumb/thumb.component.css?ngResource"),thumb_componentngResource_default=__webpack_require__.n(thumb_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.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");let UiThumbComponent=class UiThumbComponent{data=(0,core.input)(null);static propDecorators={data:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"data",required:!1,transform:void 0}]}]}};UiThumbComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-thumb",template:'@if (data()) {\n @if (data()!.routerLink) {\n <a\n [routerLink]="data()!.routerLink"\n [fragment]="data()!.fragment || undefined"\n >\n <ng-container *ngTemplateOutlet="figure"></ng-container>\n </a>\n } @else {\n <a\n [attr.href]="data()!.link || null"\n [attr.target]="data()!.target || null"\n >\n <ng-container *ngTemplateOutlet="figure"></ng-container>\n </a>\n }\n}\n\n<ng-template #figure>\n <figure>\n @if (data()!.title) {\n <figcaption>\n <span class="ui-ellipsis"> {{ data()!.title }}</span>\n </figcaption>\n }\n <picture>\n @if (data()!.srcWebp) {\n <source\n [srcset]="data()!.srcWebp"\n type="image/webp"\n />\n }\n <img [src]="data()!.src" [alt]="data()!.alt" />\n </picture>\n </figure>\n</ng-template>\n',encapsulation:_debug_node_chunk.gXe.Emulated,imports:[_common_module_chunk.T3,_router_module_chunk.Wk],styles:[thumb_componentngResource_default()]})],UiThumbComponent);const thumb_component_stories={title:"Atoms/Thumb",component:UiThumbComponent,decorators:[(0,dist.L4)({providers:[(0,_router_module_chunk.lh)([{path:"**",children:[]}])]}),(0,dist.Iz)({imports:[header_component.b,UiThumbComponent]})],argTypes:{data:{control:"object"}},args:{data:{link:"#",title:"thumb-title",target:"_blank",src:"https://moja.work/media/pictures/numbers/10/numbers-001.png",srcWebp:null,alt:"thumb alt"}},parameters:{docs:{canvas:{sourceState:"none"}}}},Thumb={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n '})},ThumbInternalLink={args:{data:{link:null,title:"thumb-internal-title",target:null,src:"https://moja.work/media/pictures/numbers/10/numbers-002.png",srcWebp:null,alt:"thumb alt",routerLink:"/target-page",fragment:"anchor-id",routerLink:".",fragment:"demo"}},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n '})},ThumbTheme={render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" [onTop]="true" theme="theme-dark"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n '})},__namedExportsOrder=["Thumb","ThumbInternalLink","ThumbTheme"];Thumb.parameters={...Thumb.parameters,docs:{...Thumb.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n `\n };\n }\n}',...Thumb.parameters?.docs?.source}}},ThumbInternalLink.parameters={...ThumbInternalLink.parameters,docs:{...ThumbInternalLink.parameters?.docs,source:{originalSource:'{\n args: {\n // Neutralized navigation: story links must never leave Storybook, so\n // the routerLink points at the current route (fragment only).\n data: {\n ...uiAtomThumbInternalMock,\n routerLink: \'.\',\n fragment: \'demo\'\n }\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n `\n };\n }\n}',...ThumbInternalLink.parameters?.docs?.source}}},ThumbTheme.parameters={...ThumbTheme.parameters,docs:{...ThumbTheme.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header [display]="true" [onTop]="true" theme="theme-dark"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n `\n };\n }\n}',...ThumbTheme.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/thumb/thumb.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n /* A box of its own. Every consumer used to declare `display: flex` on the\n tag itself before the thumb would take a width; that is the library's\n job, not three copies of the same rule in three apps. */\n display: block;\n\n a {\n display: flex;\n width: calc(100% - var(--ui-border-width) * 2);\n background-color: var(--ui-c-fourthly);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n overflow: hidden;\n }\n\n figure {\n position: relative;\n display: flex;\n width: 100%;\n margin: 0;\n\n z-index: 0;\n img {\n width: 100%;\n }\n figcaption {\n position: absolute;\n left: 0;\n bottom: 0;\n display: flex;\n width: 100%;\n height: fit-content;\n border: 0;\n color: var(--ui-c-default);\n background-color: rgba(var(--ui-c-background-value), 0.6);\n padding: calc(var(--ui-spacer) * 0.125);\n z-index: 1;\n }\n /* Zoom levels are consumer-configurable via the --ui-thumb-scale(-hover)\n custom properties (set them on the ui-thumb host element). */\n picture {\n transition: transform var(--ui-time);\n transform: scale(var(--ui-thumb-scale, 1));\n }\n picture:hover {\n transform: scale(var(--ui-thumb-scale-hover, 1.4));\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3925],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/src/lib/atoms/thumb/thumb.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Thumb:()=>Thumb,ThumbInternalLink:()=>ThumbInternalLink,ThumbTheme:()=>ThumbTheme,__namedExportsOrder:()=>__namedExportsOrder,default:()=>thumb_component_stories});var _router_module_chunk=__webpack_require__("./node_modules/@angular/router/fesm2022/_router_module-chunk.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 thumb_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/thumb/thumb.component.css?ngResource"),thumb_componentngResource_default=__webpack_require__.n(thumb_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.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");let UiThumbComponent=class UiThumbComponent{data=(0,core.input)(null);static propDecorators={data:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"data",required:!1,transform:void 0}]}]}};UiThumbComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-thumb",template:'@if (data()) {\n @if (data()!.routerLink) {\n <a\n [routerLink]="data()!.routerLink"\n [fragment]="data()!.fragment || undefined"\n >\n <ng-container *ngTemplateOutlet="figure"></ng-container>\n </a>\n } @else {\n <a\n [attr.href]="data()!.link || null"\n [attr.target]="data()!.target || null"\n >\n <ng-container *ngTemplateOutlet="figure"></ng-container>\n </a>\n }\n}\n\n<ng-template #figure>\n <figure>\n @if (data()!.title) {\n <figcaption>\n <span class="ui-ellipsis"> {{ data()!.title }}</span>\n </figcaption>\n }\n <picture>\n @if (data()!.srcWebp) {\n <source\n [srcset]="data()!.srcWebp"\n type="image/webp"\n />\n }\n <img [src]="data()!.src" [alt]="data()!.alt" />\n </picture>\n </figure>\n</ng-template>\n',encapsulation:_debug_node_chunk.gXe.Emulated,imports:[_common_module_chunk.T3,_router_module_chunk.Wk],styles:[thumb_componentngResource_default()]})],UiThumbComponent);const thumb_component_stories={title:"Atoms/Thumb",component:UiThumbComponent,decorators:[(0,dist.L4)({providers:[(0,_router_module_chunk.lh)([{path:"**",children:[]}])]}),(0,dist.Iz)({imports:[header_component.b,UiThumbComponent]})],argTypes:{data:{control:"object"}},args:{data:{link:"#",title:"thumb-title",target:"_blank",src:"https://moja.work/media/pictures/numbers/10/numbers-001.png",srcWebp:null,alt:"thumb alt"}},parameters:{docs:{canvas:{sourceState:"none"}}}},Thumb={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n '})},ThumbInternalLink={args:{data:{link:null,title:"thumb-internal-title",target:null,src:"https://moja.work/media/pictures/numbers/10/numbers-002.png",srcWebp:null,alt:"thumb alt",routerLink:"/target-page",fragment:"anchor-id",routerLink:".",fragment:"demo"}},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n '})},ThumbTheme={render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" [onTop]="true" theme="theme-dark"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n '})},__namedExportsOrder=["Thumb","ThumbInternalLink","ThumbTheme"];Thumb.parameters={...Thumb.parameters,docs:{...Thumb.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n `\n };\n }\n}',...Thumb.parameters?.docs?.source}}},ThumbInternalLink.parameters={...ThumbInternalLink.parameters,docs:{...ThumbInternalLink.parameters?.docs,source:{originalSource:'{\n args: {\n // Neutralized navigation: story links must never leave Storybook, so\n // the routerLink points at the current route (fragment only).\n data: {\n ...uiAtomThumbInternalMock,\n routerLink: \'.\',\n fragment: \'demo\'\n }\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n `\n };\n }\n}',...ThumbInternalLink.parameters?.docs?.source}}},ThumbTheme.parameters={...ThumbTheme.parameters,docs:{...ThumbTheme.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header [display]="true" [onTop]="true" theme="theme-dark"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-thumb [data]="data"></ui-thumb>\n </section>\n `\n };\n }\n}',...ThumbTheme.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/thumb/thumb.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n /* A box of its own. Every consumer used to declare `display: flex` on the\n tag itself before the thumb would take a width; that is the library's\n job, not three copies of the same rule in three apps. */\n display: block;\n\n a {\n display: flex;\n width: calc(100% - var(--ui-border-width) * 2);\n background-color: var(--ui-c-fourthly);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n overflow: hidden;\n }\n\n figure {\n position: relative;\n display: flex;\n width: 100%;\n margin: 0;\n\n z-index: 0;\n img {\n width: 100%;\n }\n figcaption {\n position: absolute;\n left: 0;\n bottom: 0;\n display: flex;\n width: 100%;\n height: fit-content;\n border: 0;\n color: var(--ui-c-default);\n background-color: rgba(var(--ui-c-background-value), 0.6);\n padding: calc(var(--ui-spacer) * 0.125);\n z-index: 1;\n }\n /* Zoom levels are consumer-configurable via the --ui-thumb-scale(-hover)\n custom properties (set them on the ui-thumb host element). */\n picture {\n transition: transform var(--ui-time);\n transform: scale(var(--ui-thumb-scale, 1));\n }\n picture:hover {\n transform: scale(var(--ui-thumb-scale-hover, 1.4));\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4447,6189],{"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/timer/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_timer_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/timer/timer.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_timer_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-timer.json");function _createMdxContent(props){const _components={code:"code",h3:"h3",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_timer_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"timer",children:"Timer"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A countdown that counts from a start value to zero at a configurable speed\nand reports when it gets there."}),"\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:["Counts down from ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"count"})," to zero at the pace ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"speed"})," sets and fires ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"finished"}),"\nonce when it gets there. It brings no words of its own — what stands at zero is\nwhatever is projected into the tag — and no control surface: there is no start,\npause or reset button; a new ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"count"})," starts it, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"null"})," stops it. A clock it is\nnot; that is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-clock"}),"."]}),"\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-timer",entry:_guide_ui_timer_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:"UiTimerComponent"})," takes a start value (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"count"}),") and an interval\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"speed"}),") in milliseconds, shows the current value, and fires ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"finished"}),"\nonce at zero. It brings no words of its own: what stands at zero is whatever\nyou project into the tag — your words, in your language — and nothing\nprojected means nothing but the 0."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Property"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("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:"count"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"Input<number | null>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The start value for the countdown; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})," stops and resets it to 0."]})]}),(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:"speed"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"Input<number>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The interval in milliseconds (default: 1000)."})]}),(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:"finished"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"Output<void>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Fires once when the countdown reaches 0."})]})]})]}),"\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:"restarting",children:"Restarting"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Any input change restarts the countdown from ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"count"}),". A ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"count"})," that does\nnot change does not restart it — a signal does not fire for the same value —\nso to run the same number again, set ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"null"})," and then the number."]}),"\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:"accessibility",children:"Accessibility"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The tag carries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'role="timer"'}),": a live region that is quiet by default, so a\nscreen reader is not told every second. Announce the end yourself where it\nmatters — the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"finished"})," output is the moment."]}),"\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:"basic-example",children:"Basic Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_timer_component_stories__WEBPACK_IMPORTED_MODULE_4__.Timer}),"\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:"fast-example",children:"Fast Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_timer_component_stories__WEBPACK_IMPORTED_MODULE_4__.Fast}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-timer [count]="60" [speed]="1000" (finished)="onTimeUp()">Time\'s up!</ui-timer>\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/timer/timer.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Fast:()=>Fast,Timer:()=>Timer,__namedExportsOrder:()=>__namedExportsOrder,default:()=>timer_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiTimerComponent=class UiTimerComponent{count=(0,core.input)(null);speed=(0,core.input)(1e3);finished=(0,core.output)();displayValue=(0,_effect_chunk2.vPA)(0);constructor(){(0,_effect_chunk2.QZP)(onCleanup=>{const start=this.count(),speed=this.speed();if(null===start)return void(0,_resource_chunk.O8)(()=>this.displayValue.set(0));(0,_resource_chunk.O8)(()=>this.displayValue.set(start));const timer=setInterval(()=>this.tick(timer),speed);onCleanup(()=>clearInterval(timer))})}tick(timer){const value=this.displayValue();value>1?this.displayValue.set(value-1):(clearInterval(timer),this.displayValue.set(0),1===value&&this.finished.emit())}static ctorParameters=()=>[];static propDecorators={count:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"count",required:!1,transform:void 0}]}],speed:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"speed",required:!1,transform:void 0}]}],finished:[{type:_debug_node_chunk.k7i,args:["finished"]}]}};UiTimerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-timer",template:"{{ displayValue() }}\n@if (displayValue() === 0) {\n <ng-content></ng-content>\n}\n",host:{role:"timer"}}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiTimerComponent);const timer_component_stories={title:"Atoms/Timer",component:UiTimerComponent,decorators:[(0,dist.Iz)({imports:[UiTimerComponent]})],argTypes:{count:{control:{type:"range",min:0,max:120,step:1},description:"The start value for the countdown"},speed:{control:{type:"range",min:50,max:3e3,step:50},description:"The interval speed in milliseconds"},finished:{table:{disable:!0}}},args:{count:59,speed:1e3},render:args=>({props:{...args},template:'<ui-timer [count]="count" [speed]="speed">finished</ui-timer>'})},Timer={},Fast={argTypes:{count:{table:{disable:!0}}},args:{count:100,speed:100}},__namedExportsOrder=["Timer","Fast"];Timer.parameters={...Timer.parameters,docs:{...Timer.parameters?.docs,source:{originalSource:"{}",...Timer.parameters?.docs?.source}}},Fast.parameters={...Fast.parameters,docs:{...Fast.parameters?.docs,source:{originalSource:"{\n argTypes: {\n count: {\n table: {\n disable: true\n }\n }\n },\n args: {\n count: 100,\n speed: 100\n }\n}",...Fast.parameters?.docs?.source}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[6189],{"./libs/ui/src/lib/atoms/timer/timer.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Fast:()=>Fast,Timer:()=>Timer,__namedExportsOrder:()=>__namedExportsOrder,default:()=>timer_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiTimerComponent=class UiTimerComponent{count=(0,core.input)(null);speed=(0,core.input)(1e3);finished=(0,core.output)();displayValue=(0,_effect_chunk2.vPA)(0);constructor(){(0,_effect_chunk2.QZP)(onCleanup=>{const start=this.count(),speed=this.speed();if(null===start)return void(0,_resource_chunk.O8)(()=>this.displayValue.set(0));(0,_resource_chunk.O8)(()=>this.displayValue.set(start));const timer=setInterval(()=>this.tick(timer),speed);onCleanup(()=>clearInterval(timer))})}tick(timer){const value=this.displayValue();value>1?this.displayValue.set(value-1):(clearInterval(timer),this.displayValue.set(0),1===value&&this.finished.emit())}static ctorParameters=()=>[];static propDecorators={count:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"count",required:!1,transform:void 0}]}],speed:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"speed",required:!1,transform:void 0}]}],finished:[{type:_debug_node_chunk.k7i,args:["finished"]}]}};UiTimerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-timer",template:"{{ displayValue() }}\n@if (displayValue() === 0) {\n <ng-content></ng-content>\n}\n",host:{role:"timer"}}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiTimerComponent);const timer_component_stories={title:"Atoms/Timer",component:UiTimerComponent,decorators:[(0,dist.Iz)({imports:[UiTimerComponent]})],argTypes:{count:{control:{type:"range",min:0,max:120,step:1},description:"The start value for the countdown"},speed:{control:{type:"range",min:50,max:3e3,step:50},description:"The interval speed in milliseconds"},finished:{table:{disable:!0}}},args:{count:59,speed:1e3},render:args=>({props:{...args},template:'<ui-timer [count]="count" [speed]="speed">finished</ui-timer>'})},Timer={},Fast={argTypes:{count:{table:{disable:!0}}},args:{count:100,speed:100}},__namedExportsOrder=["Timer","Fast"];Timer.parameters={...Timer.parameters,docs:{...Timer.parameters?.docs,source:{originalSource:"{}",...Timer.parameters?.docs?.source}}},Fast.parameters={...Fast.parameters,docs:{...Fast.parameters?.docs,source:{originalSource:"{\n argTypes: {\n count: {\n table: {\n disable: true\n }\n }\n },\n args: {\n count: 100,\n speed: 100\n }\n}",...Fast.parameters?.docs?.source}}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4713,4806],{"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/typewriter/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_typewriter_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/typewriter/typewriter.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_typewriter_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-typewriter.json");function _createMdxContent(props){const _components={code:"code",h3:"h3",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_typewriter_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"typewriter",children:"Typewriter"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A reusable Angular component that creates a typewriter effect, displaying text character by character."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Reveals a text one character at a time, with an optional keystroke sound. Text\nand speed restart the run when they change; the sound, its source and the volume\ndo not. It types what it is handed and stops at the end — there is no loop and\nno queue of sentences; a second text is a new run."}),"\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-typewriter",entry:_guide_ui_typewriter_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:"UiTypewriterComponent"})," reveals a text one character at a time, with an\noptional keystroke sound. The text and the speed restart the run when they\nchange; the sound, its source and the volume do not — switching the sound on\nmid-sentence leaves the sentence where it is. That matters to real callers: a\npage that starts silent and clacks only after the first Play must not jump\nback to its first letter the moment it is allowed to."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The following properties can be used to configure the typewriter:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Property"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("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:"text"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"input.required<string>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The text to be displayed with the typewriter effect; a change restarts the run."})]}),(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:"speed"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"input<number>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The delay between characters in milliseconds (default: 50); a change restarts the run."})]}),(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:"volume"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"input<number>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The volume of the typing sound, 0.0 to 1.0 (default: 0.2) — the range ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"HTMLMediaElement.volume"})," takes; the browser throws on anything else, and so does this."]})]}),(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:"sound"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"input<boolean>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Whether to play a sound on each keystroke (default: true). The clip is fetched the moment this is on, not before."})]}),(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:"src"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"input<string>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["URL of the keystroke audio file. Defaults to the house sound on"," ","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"moja.work"}),", so it only needs setting for a different one —\nor when the component has to run without reaching that host."]})})]}),(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:"typingFinish"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"output<void>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Emitted when the typewriter effect has finished displaying all text."})]})]})]}),"\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:"basic-example",children:"Basic Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"In this example, you can see the typewriter effect in action. You can adjust the text and speed using the controls."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_typewriter_component_stories__WEBPACK_IMPORTED_MODULE_4__.Typewriter}),"\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:"accessibility",children:"Accessibility"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The revealed part is hidden from assistive technology — a reader would get\nthe sentence in pieces, once per character. The whole text stands once in\nthe tag, visually hidden, so a reader gets the sentence and a viewer gets\nthe animation."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-typewriter\n [text]="\'404: Internet not found\'"\n [speed]="100"\n [volume]="0.5"\n [sound]="true"\n (typingFinish)="onFinish()">\n</ui-typewriter>\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/typewriter/typewriter.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Typewriter:()=>Typewriter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>typewriter_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var typewriter_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/typewriter/typewriter.component.css?ngResource"),typewriter_componentngResource_default=__webpack_require__.n(typewriter_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiTypewriterComponent=class UiTypewriterComponent{text=core.input.required();speed=(0,core.input)(50);volume=(0,core.input)(.2);sound=(0,core.input)(!0,{transform:core.booleanAttribute});src=(0,core.input)("https://moja.work/media/sounds/type.mp3");typingFinish=(0,core.output)();currentIndex=(0,_effect_chunk2.vPA)(0);audioHit=new Audio;displayedText=(0,_resource_chunk.EW)(()=>this.text().slice(0,Math.max(0,this.currentIndex())));constructor(){(0,_effect_chunk2.QZP)(onCleanup=>{const length=this.text().length,speed=this.speed();(0,_resource_chunk.O8)(()=>this.currentIndex.set(0));const timer=setInterval(()=>{if(this.currentIndex()<length)return this.currentIndex.update(i=>i+1),void this.playAudio();clearInterval(timer),this.typingFinish.emit()},speed);onCleanup(()=>clearInterval(timer))}),(0,_effect_chunk2.QZP)(()=>{if(!this.sound())return;const src=this.src();this.audioHit.src.includes(src)&&this.audioHit.readyState>=3||(this.audioHit.src=src,this.audioHit.load())}),(0,_effect_chunk2.QZP)(()=>{this.audioHit.volume=this.volume()})}playAudio(){if(!this.sound())return;const audio=this.audioHit.cloneNode();audio.volume=this.audioHit.volume,Promise.resolve(audio.play()).catch(()=>{})}static ctorParameters=()=>[];static propDecorators={text:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"text",required:!0,transform:void 0}]}],speed:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"speed",required:!1,transform:void 0}]}],volume:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"volume",required:!1,transform:void 0}]}],sound:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"sound",required:!1,transform:void 0}]}],src:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"src",required:!1,transform:void 0}]}],typingFinish:[{type:_debug_node_chunk.k7i,args:["typingFinish"]}]}};UiTypewriterComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-typewriter",template:'<span aria-hidden="true">{{ displayedText() }}</span><span class="_text">{{ text() }}</span>\n',styles:[typewriter_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiTypewriterComponent);const typewriter_component_stories={title:"Atoms/Typewriter",component:UiTypewriterComponent,decorators:[(0,dist.Iz)({imports:[UiTypewriterComponent]})],argTypes:{text:{control:"text"},speed:{control:{type:"range",min:10,max:500,step:10}},volume:{control:{type:"range",min:0,max:1,step:.1}},sound:{control:"boolean"},typingFinish:{table:{disable:!0}},src:{table:{disable:!0}}},args:{text:"404: Internet not found",speed:50,volume:.2,sound:!0}},Typewriter={args:{speed:120},render:args=>({props:args,template:'\n <div class="p-4">\n <ui-typewriter\n [text]="text"\n [speed]="speed"\n [volume]="volume"\n [sound]="sound">\n </ui-typewriter>\n </div>\n '})},__namedExportsOrder=["Typewriter"];Typewriter.parameters={...Typewriter.parameters,docs:{...Typewriter.parameters?.docs,source:{originalSource:'{\n args: {\n speed: 120\n },\n render: args => ({\n props: args,\n template: `\n <div class="p-4">\n <ui-typewriter\n [text]="text"\n [speed]="speed"\n [volume]="volume"\n [sound]="sound">\n </ui-typewriter>\n </div>\n `\n })\n}',...Typewriter.parameters?.docs?.source}}}},"./libs/ui/src/lib/atoms/typewriter/typewriter.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n display: inline-block;\n white-space: pre-wrap;\n}\n\n/* The whole text once, for assistive technology — the revealed part beside\n it is hidden from a reader, which would otherwise get a sentence in\n pieces. Visually removed, not `display: none`, so it is still read. */\n:host ._text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4713],{"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/src/lib/atoms/typewriter/typewriter.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Typewriter:()=>Typewriter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>typewriter_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var typewriter_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/typewriter/typewriter.component.css?ngResource"),typewriter_componentngResource_default=__webpack_require__.n(typewriter_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiTypewriterComponent=class UiTypewriterComponent{text=core.input.required();speed=(0,core.input)(50);volume=(0,core.input)(.2);sound=(0,core.input)(!0,{transform:core.booleanAttribute});src=(0,core.input)("https://moja.work/media/sounds/type.mp3");typingFinish=(0,core.output)();currentIndex=(0,_effect_chunk2.vPA)(0);audioHit=new Audio;displayedText=(0,_resource_chunk.EW)(()=>this.text().slice(0,Math.max(0,this.currentIndex())));constructor(){(0,_effect_chunk2.QZP)(onCleanup=>{const length=this.text().length,speed=this.speed();(0,_resource_chunk.O8)(()=>this.currentIndex.set(0));const timer=setInterval(()=>{if(this.currentIndex()<length)return this.currentIndex.update(i=>i+1),void this.playAudio();clearInterval(timer),this.typingFinish.emit()},speed);onCleanup(()=>clearInterval(timer))}),(0,_effect_chunk2.QZP)(()=>{if(!this.sound())return;const src=this.src();this.audioHit.src.includes(src)&&this.audioHit.readyState>=3||(this.audioHit.src=src,this.audioHit.load())}),(0,_effect_chunk2.QZP)(()=>{this.audioHit.volume=this.volume()})}playAudio(){if(!this.sound())return;const audio=this.audioHit.cloneNode();audio.volume=this.audioHit.volume,Promise.resolve(audio.play()).catch(()=>{})}static ctorParameters=()=>[];static propDecorators={text:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"text",required:!0,transform:void 0}]}],speed:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"speed",required:!1,transform:void 0}]}],volume:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"volume",required:!1,transform:void 0}]}],sound:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"sound",required:!1,transform:void 0}]}],src:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"src",required:!1,transform:void 0}]}],typingFinish:[{type:_debug_node_chunk.k7i,args:["typingFinish"]}]}};UiTypewriterComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-typewriter",template:'<span aria-hidden="true">{{ displayedText() }}</span><span class="_text">{{ text() }}</span>\n',styles:[typewriter_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiTypewriterComponent);const typewriter_component_stories={title:"Atoms/Typewriter",component:UiTypewriterComponent,decorators:[(0,dist.Iz)({imports:[UiTypewriterComponent]})],argTypes:{text:{control:"text"},speed:{control:{type:"range",min:10,max:500,step:10}},volume:{control:{type:"range",min:0,max:1,step:.1}},sound:{control:"boolean"},typingFinish:{table:{disable:!0}},src:{table:{disable:!0}}},args:{text:"404: Internet not found",speed:50,volume:.2,sound:!0}},Typewriter={args:{speed:120},render:args=>({props:args,template:'\n <div class="p-4">\n <ui-typewriter\n [text]="text"\n [speed]="speed"\n [volume]="volume"\n [sound]="sound">\n </ui-typewriter>\n </div>\n '})},__namedExportsOrder=["Typewriter"];Typewriter.parameters={...Typewriter.parameters,docs:{...Typewriter.parameters?.docs,source:{originalSource:'{\n args: {\n speed: 120\n },\n render: args => ({\n props: args,\n template: `\n <div class="p-4">\n <ui-typewriter\n [text]="text"\n [speed]="speed"\n [volume]="volume"\n [sound]="sound">\n </ui-typewriter>\n </div>\n `\n })\n}',...Typewriter.parameters?.docs?.source}}}},"./libs/ui/src/lib/atoms/typewriter/typewriter.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n display: inline-block;\n white-space: pre-wrap;\n}\n\n/* The whole text once, for assistive technology — the revealed part beside\n it is hidden from a reader, which would otherwise get a sentence in\n pieces. Visually removed, not `display: none`, so it is still read. */\n:host ._text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1327,4271],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_splitter_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_cdk_drag_drop_splitter_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-cdk-drag-drop-splitter.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_splitter_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"cdk-drag-and-drop-splitter",children:"CDK Drag and Drop Splitter"}),"\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:"ui-cdk-drag-drop-splitter"}),' is a versatile component designed to facilitate moving items between two lists (e.g., "To Do" and "Done") using Angular CDK Drag and Drop.']}),"\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:["Two lists side by side with drag and drop between them, each in a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"list"})," or\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cards"})," theme. It owns no state: it shows the two arrays it is given and, on\nevery drop, emits both as new arrays — the consumer hands them back, or nothing\nmoves. It does not persist, filter or sort, and it is not a layout splitter with\npanels; that is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-splitter"}),"."]}),"\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-cdk-drag-drop-splitter",entry:_guide_ui_cdk_drag_drop_splitter_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__.jsxs)(_components.p,{children:["In this example, you can drag items between the two columns and switch between ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"list"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cards"})," themes."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-interactive-drag-and-drop-splitter",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/cdk-drag-and-drop-splitter--drag-and-drop-splitter",children:"Open Interactive Drag and Drop Splitter"})}),"\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:"features",children:"Features"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Drag & Drop:"})," Seamlessly move items between two data sets."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Themeable Views:"})," Support for different visual representations like ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"list"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cards"})," for each side independently."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Output Events:"})," Emits both updated lists after every drop — reorder within a pane or transfer between panes."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"it-owns-no-state--bind-both-outputs",children:"It owns no state — bind both outputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The component shows what it is given and reports what a drop would do. It\nchanges neither of the two arrays it receives: every drop produces ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"new"}),"\narrays and emits both sides, and the next render comes from whatever the\nconsumer hands back."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Bind both outputs, or nothing moves. That is not a quirk to work around: an\narray changed in place is the same array, a signal handed its own reference\nhas nothing to report, and the dropped item snaps back to where it was picked\nup while the data behind it has already moved. Which is worse than not moving\nat all — the picture and the model disagree, and only one of them is visible."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The component requires two input arrays and provides themes for both sides:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-cdk-drag-drop-splitter\n [todo]="todoList"\n [done]="doneList"\n [themeTodo]="\'list\'"\n [themeDone]="\'cards\'"\n (todoOutput)="onTodoUpdate($event)"\n (doneOutput)="onDoneUpdate($event)">\n</ui-cdk-drag-drop-splitter>\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DragAndDropSplitter:()=>DragAndDropSplitter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>splitter_component_stories});var 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 splitter_componentngResource=__webpack_require__("./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.css?ngResource"),splitter_componentngResource_default=__webpack_require__.n(splitter_componentngResource),drag_drop=__webpack_require__("./node_modules/@angular/cdk/fesm2022/drag-drop.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");var cards_componentngResource=__webpack_require__("./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/cards/cards.component.css?ngResource"),cards_componentngResource_default=__webpack_require__.n(cards_componentngResource);let UiCDKDragDropSplitterCardsComponent=class UiCDKDragDropSplitterCardsComponent{data=(0,core.input)(null);dropped=(0,core.output)();static propDecorators={data:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"data",required:!1,transform:void 0}]}],dropped:[{type:_debug_node_chunk.k7i,args:["dropped"]}]}};UiCDKDragDropSplitterCardsComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-splitter-cards",template:'<div\n cdkDropList\n cdkDropListOrientation="mixed"\n [cdkDropListData]="data()"\n class="_cards"\n (cdkDropListDropped)="dropped.emit($event)"\n>\n @for (item of data(); track item) {\n <div class="_item-box" cdkDrag>\n <div class="_placeholder" *cdkDragPlaceholder></div>\n {{ item.label }}\n </div>\n }\n</div>\n',imports:[drag_drop.O7,drag_drop.T1,drag_drop.EM],styles:[cards_componentngResource_default()]})],UiCDKDragDropSplitterCardsComponent);var list_componentngResource=__webpack_require__("./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/list/list.component.css?ngResource"),list_componentngResource_default=__webpack_require__.n(list_componentngResource);let UiCDKDragDropSplitterListComponent=class UiCDKDragDropSplitterListComponent{data=(0,core.input)(null);dropped=(0,core.output)();static propDecorators={data:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"data",required:!1,transform:void 0}]}],dropped:[{type:_debug_node_chunk.k7i,args:["dropped"]}]}};UiCDKDragDropSplitterListComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-splitter-list",template:'<div\n cdkDropList\n [cdkDropListData]="data()"\n class="_list"\n (cdkDropListDropped)="dropped.emit($event)"\n>\n @for (item of data(); track item) {\n <div class="_item-box" cdkDrag>\n <div class="_placeholder" *cdkDragPlaceholder></div>\n {{ item.label }}\n </div>\n }\n</div>\n',imports:[drag_drop.O7,drag_drop.T1,drag_drop.EM],styles:[list_componentngResource_default()]})],UiCDKDragDropSplitterListComponent);let UiCDKDragDropSplitterComponent=class UiCDKDragDropSplitterComponent{themeTodo=(0,core.input)("list");themeDone=(0,core.input)("list");todo=(0,core.input)(null);done=(0,core.input)(null);todoOutput=(0,core.output)();doneOutput=(0,core.output)();onDrop(event,pane){const todo=[...this.todo()??[]],done=[...this.done()??[]],target="todo"===pane?todo:done;event.previousContainer===event.container?(0,drag_drop.HD)(target,event.previousIndex,event.currentIndex):(0,drag_drop.eg)("todo"===pane?done:todo,target,event.previousIndex,event.currentIndex),this.todoOutput.emit(todo),this.doneOutput.emit(done)}static propDecorators={themeTodo:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"themeTodo",required:!1,transform:void 0}]}],themeDone:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"themeDone",required:!1,transform:void 0}]}],todo:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"todo",required:!1,transform:void 0}]}],done:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"done",required:!1,transform:void 0}]}],todoOutput:[{type:_debug_node_chunk.k7i,args:["todoOutput"]}],doneOutput:[{type:_debug_node_chunk.k7i,args:["doneOutput"]}]}};UiCDKDragDropSplitterComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-cdk-drag-drop-splitter",template:'<div class="_wrapper" cdkDropListGroup>\n \x3c!-- todo --\x3e\n @if (themeTodo() === \'cards\') {\n <ui-electron-splitter-cards\n [data]="todo() ?? []"\n (dropped)="onDrop($event, \'todo\')"\n ></ui-electron-splitter-cards>\n } @else {\n <ui-electron-splitter-list\n [data]="todo() ?? []"\n (dropped)="onDrop($event, \'todo\')"\n ></ui-electron-splitter-list>\n }\n\n \x3c!-- done --\x3e\n @if (themeDone() === \'cards\') {\n <ui-electron-splitter-cards\n [data]="done() ?? []"\n (dropped)="onDrop($event, \'done\')"\n ></ui-electron-splitter-cards>\n } @else {\n <ui-electron-splitter-list\n [data]="done() ?? []"\n (dropped)="onDrop($event, \'done\')"\n ></ui-electron-splitter-list>\n }\n</div>\n',imports:[drag_drop.RK,UiCDKDragDropSplitterCardsComponent,UiCDKDragDropSplitterListComponent],styles:[splitter_componentngResource_default()]})],UiCDKDragDropSplitterComponent);const dragSplitterMockDataToDo=[{label:"ToDo 1"},{label:"ToDo 2"},{label:"ToDo 3"},{label:"ToDo 4"},{label:"ToDo 5"}],dragSplitterMockDataDone=[{label:"Done 1"},{label:"Done 2"},{label:"Done 3"},{label:"Done 4"},{label:"Done 5"}],splitter_component_stories={title:"CDK/Drag And Drop Splitter",component:UiCDKDragDropSplitterComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,UiCDKDragDropSplitterComponent]})],argTypes:{todoTheme:{control:"select",options:["list","cards"]},doneTheme:{control:"select",options:["list","cards"]}}},DragAndDropSplitter={args:{todoTheme:"cards",doneTheme:"list"},render:args=>({props:{...args,todo:[...dragSplitterMockDataToDo],done:[...dragSplitterMockDataDone]},template:'\n <section class="flex flex-col gap-[var(--ui-spacer)]">\n <div class="grid grid-cols-2 gap-[var(--ui-spacer)]">\n @for (pane of [\'todo\', \'done\']; track pane) {\n <div class="flex flex-row items-center gap-2">\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'list\'"\n (click)="pane === \'todo\' ? todoTheme = \'list\' : doneTheme = \'list\'"\n >list</button>\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'cards\'"\n (click)="pane === \'todo\' ? todoTheme = \'cards\' : doneTheme = \'cards\'"\n >cards</button>\n </div>\n }\n </div>\n\n <ui-cdk-drag-drop-splitter\n [themeTodo]="todoTheme"\n [themeDone]="doneTheme"\n [todo]="todo"\n [done]="done"\n (todoOutput)="todo = $event"\n (doneOutput)="done = $event"\n ></ui-cdk-drag-drop-splitter>\n </section>\n '})},__namedExportsOrder=["DragAndDropSplitter"];DragAndDropSplitter.parameters={...DragAndDropSplitter.parameters,docs:{...DragAndDropSplitter.parameters?.docs,source:{originalSource:'{\n args: {\n todoTheme: \'cards\',\n doneTheme: \'list\'\n },\n render: args => {\n return {\n props: {\n ...args,\n todo: [...dragSplitterMockDataToDo],\n done: [...dragSplitterMockDataDone]\n },\n template: `\n <section class="flex flex-col gap-[var(--ui-spacer)]">\n <div class="grid grid-cols-2 gap-[var(--ui-spacer)]">\n @for (pane of [\'todo\', \'done\']; track pane) {\n <div class="flex flex-row items-center gap-2">\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'list\'"\n (click)="pane === \'todo\' ? todoTheme = \'list\' : doneTheme = \'list\'"\n >list</button>\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'cards\'"\n (click)="pane === \'todo\' ? todoTheme = \'cards\' : doneTheme = \'cards\'"\n >cards</button>\n </div>\n }\n </div>\n\n <ui-cdk-drag-drop-splitter\n [themeTodo]="todoTheme"\n [themeDone]="doneTheme"\n [todo]="todo"\n [done]="done"\n (todoOutput)="todo = $event"\n (doneOutput)="done = $event"\n ></ui-cdk-drag-drop-splitter>\n </section>\n `\n };\n }\n}',...DragAndDropSplitter.parameters?.docs?.source},description:{story:"Both outputs are bound back to the props here, and that is not decoration:\nthe component owns no state. It hands out two new arrays after every drop\nand shows whatever it is given next — a consumer that binds neither output\nwatches every item snap back to where it was picked up.",...DragAndDropSplitter.parameters?.docs?.description}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/cards/cards.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/* Fills its pane, and keeps filling it when the last card is dragged out:\n an empty drop list of height 0 cannot be dropped into, and the items\n would have no way back. */\n._cards {\n flex: 1;\n display: flex;\n flex-flow: row wrap;\n align-content: flex-start;\n padding: calc(var(--ui-spacer) * 0.5);\n gap: calc(var(--ui-spacer) * 0.5);\n}\n\n._item-box,\n._placeholder,\n.cdk-drag-preview {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 6rem;\n min-width: calc(6rem * 3);\n padding: calc(var(--ui-spacer) * 0.5);\n border-radius: var(--ui-border-radius);\n}\n\n._item-box {\n cursor: move;\n background: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n transition: var(--ui-transition);\n\n &:hover {\n background-color: var(--ui-c-fourthly);\n }\n}\n\n._placeholder {\n border: calc(var(--ui-border-width) * 2) dotted var(--ui-c-secondary);\n background-color: rgba(var(--ui-c-default-value), 0.1);\n}\n\n/* The tile that flies is the tile you grabbed, lifted: an opaque surface and\n the shadow that says it is above the page. It used to be filled with 80%\n of the page background ON the page background — invisible on a light\n theme, with a border in the same transparent colour. */\n.cdk-drag-preview {\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n border-radius: var(--ui-border-radius);\n background-color: var(--ui-c-background);\n box-shadow: var(--ui-box-shadow);\n cursor: grabbing;\n}\n\n/* --- cdk overwrites --- */\n.cdk-drag-animating,\n._cards.cdk-drop-list-dragging ._item-box:not(.cdk-drag-placeholder) {\n transition: var(--ui-transition);\n}\n/* --- cdk overwrites --- */\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/list/list.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/* Fills its pane, and keeps filling it when the last item is dragged out:\n an empty drop list of height 0 cannot be dropped into, and the items would\n have no way back. */\n._list {\n flex: 1;\n width: 100%;\n display: flex;\n flex-flow: column;\n align-content: flex-start;\n}\n\n._item-box,\n._placeholder,\n.cdk-drag-preview {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-width: calc(6rem * 3);\n min-height: 6rem;\n padding: calc(var(--ui-spacer) * 0.25);\n}\n\n._item-box {\n cursor: move;\n background: var(--ui-c-background);\n border-bottom: var(--ui-border-width) solid var(--ui-c-secondary);\n transition: var(--ui-transition);\n &:hover {\n background-color: var(--ui-c-fourthly);\n }\n &:last-child:not(.cdk-drag-preview) {\n border: none;\n }\n}\n._placeholder {\n border: calc(var(--ui-border-width) * 2) dotted var(--ui-c-secondary);\n background-color: rgba(var(--ui-c-default-value), 0.1);\n}\n/* The tile that flies is the tile you grabbed, lifted: an opaque surface and\n the shadow that says it is above the page. It used to be filled with 80%\n of the page background ON the page background — invisible on a light\n theme, with a border in the same transparent colour. */\n.cdk-drag-preview {\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n border-radius: var(--ui-border-radius);\n background-color: var(--ui-c-background);\n box-shadow: var(--ui-box-shadow);\n cursor: grabbing;\n}\n\n/* --- cdk overwrites --- */\n.cdk-drag-animating,\n._list.cdk-drop-list-dragging ._item-box:not(.cdk-drag-placeholder) {\n transition: var(--ui-transition);\n}\n/* --- cdk overwrites --- */\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.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._wrapper {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--ui-spacer);\n height: 30rem;\n\n /* The two panes. `--c-background` and `--c-secondary` stood here and are\n no tokens of this library — the panes had no surface at all and the\n placeholder no fill. */\n > * {\n display: flex;\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n border-radius: var(--ui-border-radius);\n background-color: var(--ui-c-background);\n overflow: auto;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4271],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DragAndDropSplitter:()=>DragAndDropSplitter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>splitter_component_stories});var 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 splitter_componentngResource=__webpack_require__("./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.css?ngResource"),splitter_componentngResource_default=__webpack_require__.n(splitter_componentngResource),drag_drop=__webpack_require__("./node_modules/@angular/cdk/fesm2022/drag-drop.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");var cards_componentngResource=__webpack_require__("./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/cards/cards.component.css?ngResource"),cards_componentngResource_default=__webpack_require__.n(cards_componentngResource);let UiCDKDragDropSplitterCardsComponent=class UiCDKDragDropSplitterCardsComponent{data=(0,core.input)(null);dropped=(0,core.output)();static propDecorators={data:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"data",required:!1,transform:void 0}]}],dropped:[{type:_debug_node_chunk.k7i,args:["dropped"]}]}};UiCDKDragDropSplitterCardsComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-splitter-cards",template:'<div\n cdkDropList\n cdkDropListOrientation="mixed"\n [cdkDropListData]="data()"\n class="_cards"\n (cdkDropListDropped)="dropped.emit($event)"\n>\n @for (item of data(); track item) {\n <div class="_item-box" cdkDrag>\n <div class="_placeholder" *cdkDragPlaceholder></div>\n {{ item.label }}\n </div>\n }\n</div>\n',imports:[drag_drop.O7,drag_drop.T1,drag_drop.EM],styles:[cards_componentngResource_default()]})],UiCDKDragDropSplitterCardsComponent);var list_componentngResource=__webpack_require__("./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/list/list.component.css?ngResource"),list_componentngResource_default=__webpack_require__.n(list_componentngResource);let UiCDKDragDropSplitterListComponent=class UiCDKDragDropSplitterListComponent{data=(0,core.input)(null);dropped=(0,core.output)();static propDecorators={data:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"data",required:!1,transform:void 0}]}],dropped:[{type:_debug_node_chunk.k7i,args:["dropped"]}]}};UiCDKDragDropSplitterListComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-splitter-list",template:'<div\n cdkDropList\n [cdkDropListData]="data()"\n class="_list"\n (cdkDropListDropped)="dropped.emit($event)"\n>\n @for (item of data(); track item) {\n <div class="_item-box" cdkDrag>\n <div class="_placeholder" *cdkDragPlaceholder></div>\n {{ item.label }}\n </div>\n }\n</div>\n',imports:[drag_drop.O7,drag_drop.T1,drag_drop.EM],styles:[list_componentngResource_default()]})],UiCDKDragDropSplitterListComponent);let UiCDKDragDropSplitterComponent=class UiCDKDragDropSplitterComponent{themeTodo=(0,core.input)("list");themeDone=(0,core.input)("list");todo=(0,core.input)(null);done=(0,core.input)(null);todoOutput=(0,core.output)();doneOutput=(0,core.output)();onDrop(event,pane){const todo=[...this.todo()??[]],done=[...this.done()??[]],target="todo"===pane?todo:done;event.previousContainer===event.container?(0,drag_drop.HD)(target,event.previousIndex,event.currentIndex):(0,drag_drop.eg)("todo"===pane?done:todo,target,event.previousIndex,event.currentIndex),this.todoOutput.emit(todo),this.doneOutput.emit(done)}static propDecorators={themeTodo:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"themeTodo",required:!1,transform:void 0}]}],themeDone:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"themeDone",required:!1,transform:void 0}]}],todo:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"todo",required:!1,transform:void 0}]}],done:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"done",required:!1,transform:void 0}]}],todoOutput:[{type:_debug_node_chunk.k7i,args:["todoOutput"]}],doneOutput:[{type:_debug_node_chunk.k7i,args:["doneOutput"]}]}};UiCDKDragDropSplitterComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-cdk-drag-drop-splitter",template:'<div class="_wrapper" cdkDropListGroup>\n \x3c!-- todo --\x3e\n @if (themeTodo() === \'cards\') {\n <ui-electron-splitter-cards\n [data]="todo() ?? []"\n (dropped)="onDrop($event, \'todo\')"\n ></ui-electron-splitter-cards>\n } @else {\n <ui-electron-splitter-list\n [data]="todo() ?? []"\n (dropped)="onDrop($event, \'todo\')"\n ></ui-electron-splitter-list>\n }\n\n \x3c!-- done --\x3e\n @if (themeDone() === \'cards\') {\n <ui-electron-splitter-cards\n [data]="done() ?? []"\n (dropped)="onDrop($event, \'done\')"\n ></ui-electron-splitter-cards>\n } @else {\n <ui-electron-splitter-list\n [data]="done() ?? []"\n (dropped)="onDrop($event, \'done\')"\n ></ui-electron-splitter-list>\n }\n</div>\n',imports:[drag_drop.RK,UiCDKDragDropSplitterCardsComponent,UiCDKDragDropSplitterListComponent],styles:[splitter_componentngResource_default()]})],UiCDKDragDropSplitterComponent);const dragSplitterMockDataToDo=[{label:"ToDo 1"},{label:"ToDo 2"},{label:"ToDo 3"},{label:"ToDo 4"},{label:"ToDo 5"}],dragSplitterMockDataDone=[{label:"Done 1"},{label:"Done 2"},{label:"Done 3"},{label:"Done 4"},{label:"Done 5"}],splitter_component_stories={title:"CDK/Drag And Drop Splitter",component:UiCDKDragDropSplitterComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,UiCDKDragDropSplitterComponent]})],argTypes:{todoTheme:{control:"select",options:["list","cards"]},doneTheme:{control:"select",options:["list","cards"]}}},DragAndDropSplitter={args:{todoTheme:"cards",doneTheme:"list"},render:args=>({props:{...args,todo:[...dragSplitterMockDataToDo],done:[...dragSplitterMockDataDone]},template:'\n <section class="flex flex-col gap-[var(--ui-spacer)]">\n <div class="grid grid-cols-2 gap-[var(--ui-spacer)]">\n @for (pane of [\'todo\', \'done\']; track pane) {\n <div class="flex flex-row items-center gap-2">\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'list\'"\n (click)="pane === \'todo\' ? todoTheme = \'list\' : doneTheme = \'list\'"\n >list</button>\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'cards\'"\n (click)="pane === \'todo\' ? todoTheme = \'cards\' : doneTheme = \'cards\'"\n >cards</button>\n </div>\n }\n </div>\n\n <ui-cdk-drag-drop-splitter\n [themeTodo]="todoTheme"\n [themeDone]="doneTheme"\n [todo]="todo"\n [done]="done"\n (todoOutput)="todo = $event"\n (doneOutput)="done = $event"\n ></ui-cdk-drag-drop-splitter>\n </section>\n '})},__namedExportsOrder=["DragAndDropSplitter"];DragAndDropSplitter.parameters={...DragAndDropSplitter.parameters,docs:{...DragAndDropSplitter.parameters?.docs,source:{originalSource:'{\n args: {\n todoTheme: \'cards\',\n doneTheme: \'list\'\n },\n render: args => {\n return {\n props: {\n ...args,\n todo: [...dragSplitterMockDataToDo],\n done: [...dragSplitterMockDataDone]\n },\n template: `\n <section class="flex flex-col gap-[var(--ui-spacer)]">\n <div class="grid grid-cols-2 gap-[var(--ui-spacer)]">\n @for (pane of [\'todo\', \'done\']; track pane) {\n <div class="flex flex-row items-center gap-2">\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'list\'"\n (click)="pane === \'todo\' ? todoTheme = \'list\' : doneTheme = \'list\'"\n >list</button>\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'cards\'"\n (click)="pane === \'todo\' ? todoTheme = \'cards\' : doneTheme = \'cards\'"\n >cards</button>\n </div>\n }\n </div>\n\n <ui-cdk-drag-drop-splitter\n [themeTodo]="todoTheme"\n [themeDone]="doneTheme"\n [todo]="todo"\n [done]="done"\n (todoOutput)="todo = $event"\n (doneOutput)="done = $event"\n ></ui-cdk-drag-drop-splitter>\n </section>\n `\n };\n }\n}',...DragAndDropSplitter.parameters?.docs?.source},description:{story:"Both outputs are bound back to the props here, and that is not decoration:\nthe component owns no state. It hands out two new arrays after every drop\nand shows whatever it is given next — a consumer that binds neither output\nwatches every item snap back to where it was picked up.",...DragAndDropSplitter.parameters?.docs?.description}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/cards/cards.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/* Fills its pane, and keeps filling it when the last card is dragged out:\n an empty drop list of height 0 cannot be dropped into, and the items\n would have no way back. */\n._cards {\n flex: 1;\n display: flex;\n flex-flow: row wrap;\n align-content: flex-start;\n padding: calc(var(--ui-spacer) * 0.5);\n gap: calc(var(--ui-spacer) * 0.5);\n}\n\n._item-box,\n._placeholder,\n.cdk-drag-preview {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 6rem;\n min-width: calc(6rem * 3);\n padding: calc(var(--ui-spacer) * 0.5);\n border-radius: var(--ui-border-radius);\n}\n\n._item-box {\n cursor: move;\n background: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n transition: var(--ui-transition);\n\n &:hover {\n background-color: var(--ui-c-fourthly);\n }\n}\n\n._placeholder {\n border: calc(var(--ui-border-width) * 2) dotted var(--ui-c-secondary);\n background-color: rgba(var(--ui-c-default-value), 0.1);\n}\n\n/* The tile that flies is the tile you grabbed, lifted: an opaque surface and\n the shadow that says it is above the page. It used to be filled with 80%\n of the page background ON the page background — invisible on a light\n theme, with a border in the same transparent colour. */\n.cdk-drag-preview {\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n border-radius: var(--ui-border-radius);\n background-color: var(--ui-c-background);\n box-shadow: var(--ui-box-shadow);\n cursor: grabbing;\n}\n\n/* --- cdk overwrites --- */\n.cdk-drag-animating,\n._cards.cdk-drop-list-dragging ._item-box:not(.cdk-drag-placeholder) {\n transition: var(--ui-transition);\n}\n/* --- cdk overwrites --- */\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/list/list.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/* Fills its pane, and keeps filling it when the last item is dragged out:\n an empty drop list of height 0 cannot be dropped into, and the items would\n have no way back. */\n._list {\n flex: 1;\n width: 100%;\n display: flex;\n flex-flow: column;\n align-content: flex-start;\n}\n\n._item-box,\n._placeholder,\n.cdk-drag-preview {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-width: calc(6rem * 3);\n min-height: 6rem;\n padding: calc(var(--ui-spacer) * 0.25);\n}\n\n._item-box {\n cursor: move;\n background: var(--ui-c-background);\n border-bottom: var(--ui-border-width) solid var(--ui-c-secondary);\n transition: var(--ui-transition);\n &:hover {\n background-color: var(--ui-c-fourthly);\n }\n &:last-child:not(.cdk-drag-preview) {\n border: none;\n }\n}\n._placeholder {\n border: calc(var(--ui-border-width) * 2) dotted var(--ui-c-secondary);\n background-color: rgba(var(--ui-c-default-value), 0.1);\n}\n/* The tile that flies is the tile you grabbed, lifted: an opaque surface and\n the shadow that says it is above the page. It used to be filled with 80%\n of the page background ON the page background — invisible on a light\n theme, with a border in the same transparent colour. */\n.cdk-drag-preview {\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n border-radius: var(--ui-border-radius);\n background-color: var(--ui-c-background);\n box-shadow: var(--ui-box-shadow);\n cursor: grabbing;\n}\n\n/* --- cdk overwrites --- */\n.cdk-drag-animating,\n._list.cdk-drop-list-dragging ._item-box:not(.cdk-drag-placeholder) {\n transition: var(--ui-transition);\n}\n/* --- cdk overwrites --- */\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.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._wrapper {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--ui-spacer);\n height: 30rem;\n\n /* The two panes. `--c-background` and `--c-secondary` stood here and are\n no tokens of this library — the panes had no surface at all and the\n placeholder no fill. */\n > * {\n display: flex;\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n border-radius: var(--ui-border-radius);\n background-color: var(--ui-c-background);\n overflow: auto;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);